@open-wa/schema 5.6.2 → 5.6.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/dist/generated/index.cjs +1 -1
- package/dist/generated/index.d.cts +1 -1
- package/dist/generated/index.d.mts +31 -31
- package/dist/generated/index.mjs +1 -1
- package/dist/{index-DOca1sBu.d.mts → index-C3kjyOe-.d.mts} +3 -526
- package/dist/index-C3kjyOe-.d.mts.map +1 -0
- package/dist/{index-Cl1bU6DB.d.cts → index-HeicIada.d.cts} +3 -526
- package/dist/index-HeicIada.d.cts.map +1 -0
- package/dist/index.cjs +26 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interactive-DxUwKpzK.d.cts +527 -0
- package/dist/interactive-DxUwKpzK.d.cts.map +1 -0
- package/dist/interactive-DxUwKpzK.d.mts +527 -0
- package/dist/interactive-DxUwKpzK.d.mts.map +1 -0
- package/dist/interactive.cjs +305 -0
- package/dist/interactive.cjs.map +1 -0
- package/dist/interactive.d.cts +2 -0
- package/dist/interactive.d.mts +2 -0
- package/dist/interactive.mjs +283 -0
- package/dist/interactive.mjs.map +1 -0
- package/dist/methods/index.cjs +1 -1
- package/dist/methods/index.d.cts +1 -1
- package/dist/methods/index.d.mts +1 -1
- package/dist/methods/index.mjs +1 -1
- package/dist/{methods-BH7nDC3z.mjs → methods-CGm5G9VI.mjs} +14 -292
- package/dist/methods-CGm5G9VI.mjs.map +1 -0
- package/dist/{methods-DpDzgsbe.cjs → methods-QZbG0hN2.cjs} +15 -425
- package/dist/methods-QZbG0hN2.cjs.map +1 -0
- package/package.json +13 -3
- package/src/generated/asyncapi.json +1 -1
- package/src/generated/openapi.json +2 -2
- package/dist/index-Cl1bU6DB.d.cts.map +0 -1
- package/dist/index-DOca1sBu.d.mts.map +0 -1
- package/dist/methods-BH7nDC3z.mjs.map +0 -1
- package/dist/methods-DpDzgsbe.cjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_registry = require("./registry-_s9a7_jl.cjs");
|
|
2
|
+
const require_interactive = require("./interactive.cjs");
|
|
2
3
|
let zod = require("zod");
|
|
3
4
|
let effect = require("effect");
|
|
4
5
|
let _open_wa_utils = require("@open-wa/utils");
|
|
@@ -62,7 +63,7 @@ function projectEffectSchema(schema) {
|
|
|
62
63
|
}
|
|
63
64
|
//#endregion
|
|
64
65
|
//#region src/whatsapp-events.ts
|
|
65
|
-
const id
|
|
66
|
+
const id = effect.Schema.String.check(effect.Schema.isMinLength(1));
|
|
66
67
|
const seconds = effect.Schema.Number.check(effect.Schema.isInt(), effect.Schema.isGreaterThanOrEqualTo(0), effect.Schema.isLessThanOrEqualTo(2147483647));
|
|
67
68
|
const milliseconds = effect.Schema.Number.check(effect.Schema.isInt(), effect.Schema.isGreaterThanOrEqualTo(0));
|
|
68
69
|
/** Native WhatsApp event input. All event times are Unix seconds. */
|
|
@@ -76,7 +77,7 @@ const EventInputSchema = effect.Schema.Struct({
|
|
|
76
77
|
callType: effect.Schema.optional(effect.Schema.Literals(["voice", "video"])),
|
|
77
78
|
isScheduledCall: effect.Schema.optional(effect.Schema.Boolean),
|
|
78
79
|
requireApproval: effect.Schema.optional(effect.Schema.Boolean),
|
|
79
|
-
quotedMsgId: effect.Schema.optional(id
|
|
80
|
+
quotedMsgId: effect.Schema.optional(id)
|
|
80
81
|
});
|
|
81
82
|
function validateEventInput(input) {
|
|
82
83
|
const event = effect.Schema.decodeUnknownSync(EventInputSchema)(input);
|
|
@@ -100,9 +101,9 @@ function validateEventUpdate(input) {
|
|
|
100
101
|
}
|
|
101
102
|
/** A JSON-safe event snapshot. Message secrets and encrypted RSVP data stay private. */
|
|
102
103
|
const WhatsAppEventSchema = effect.Schema.Struct({
|
|
103
|
-
id
|
|
104
|
-
chatId: id
|
|
105
|
-
creatorId: id
|
|
104
|
+
id,
|
|
105
|
+
chatId: id,
|
|
106
|
+
creatorId: id,
|
|
106
107
|
name: effect.Schema.String,
|
|
107
108
|
startTime: seconds,
|
|
108
109
|
endTime: effect.Schema.optional(seconds),
|
|
@@ -126,10 +127,10 @@ const EventResponseTypeSchema = effect.Schema.Literals([
|
|
|
126
127
|
"unknown"
|
|
127
128
|
]);
|
|
128
129
|
const EventResponseSchema = effect.Schema.Struct({
|
|
129
|
-
id
|
|
130
|
-
eventId: id
|
|
131
|
-
chatId: id
|
|
132
|
-
senderId: id
|
|
130
|
+
id,
|
|
131
|
+
eventId: id,
|
|
132
|
+
chatId: id,
|
|
133
|
+
senderId: id,
|
|
133
134
|
response: EventResponseTypeSchema,
|
|
134
135
|
/** Sender's monotonically increasing RSVP timestamp, in milliseconds. */
|
|
135
136
|
timestamp: milliseconds,
|
|
@@ -137,11 +138,11 @@ const EventResponseSchema = effect.Schema.Struct({
|
|
|
137
138
|
});
|
|
138
139
|
const EventListOptionsSchema = effect.Schema.Struct({
|
|
139
140
|
limit: effect.Schema.optional(effect.Schema.Number.check(effect.Schema.isInt(), effect.Schema.isGreaterThanOrEqualTo(1), effect.Schema.isLessThanOrEqualTo(100))),
|
|
140
|
-
before: effect.Schema.optional(id
|
|
141
|
+
before: effect.Schema.optional(id)
|
|
141
142
|
});
|
|
142
143
|
const EventPageSchema = effect.Schema.Struct({
|
|
143
144
|
events: effect.Schema.Array(WhatsAppEventSchema),
|
|
144
|
-
nextCursor: effect.Schema.NullOr(id
|
|
145
|
+
nextCursor: effect.Schema.NullOr(id)
|
|
145
146
|
});
|
|
146
147
|
const decodeWhatsAppEvent = effect.Schema.decodeUnknownSync(WhatsAppEventSchema);
|
|
147
148
|
const decodeEventResponse = effect.Schema.decodeUnknownSync(EventResponseSchema);
|
|
@@ -3350,293 +3351,14 @@ const downloadMedia = require_registry.defineMethodV2("downloadMedia", {
|
|
|
3350
3351
|
output: zod.z.string().describe("Path to the saved file")
|
|
3351
3352
|
});
|
|
3352
3353
|
//#endregion
|
|
3353
|
-
//#region src/interactive.ts
|
|
3354
|
-
const JsonValueSchema = zod.z.lazy(() => zod.z.union([
|
|
3355
|
-
zod.z.null(),
|
|
3356
|
-
zod.z.boolean(),
|
|
3357
|
-
zod.z.number().finite(),
|
|
3358
|
-
zod.z.string(),
|
|
3359
|
-
zod.z.array(JsonValueSchema),
|
|
3360
|
-
zod.z.record(zod.z.string(), JsonValueSchema)
|
|
3361
|
-
]));
|
|
3362
|
-
const JsonObjectSchema = zod.z.record(zod.z.string(), JsonValueSchema);
|
|
3363
|
-
const text = zod.z.string().min(1);
|
|
3364
|
-
const url = zod.z.url().refine((value) => /^https?:\/\//i.test(value), "Use an HTTP or HTTPS URL");
|
|
3365
|
-
const id = text.describe("Stable application-defined ID returned when the recipient chooses this item");
|
|
3366
|
-
const ReplyActionSchema = zod.z.object({
|
|
3367
|
-
type: zod.z.literal("reply"),
|
|
3368
|
-
id,
|
|
3369
|
-
label: text
|
|
3370
|
-
}).strict();
|
|
3371
|
-
const LinkActionSchema = zod.z.object({
|
|
3372
|
-
type: zod.z.literal("url"),
|
|
3373
|
-
label: text,
|
|
3374
|
-
url
|
|
3375
|
-
}).strict();
|
|
3376
|
-
const CallActionSchema = zod.z.object({
|
|
3377
|
-
type: zod.z.literal("call"),
|
|
3378
|
-
label: text,
|
|
3379
|
-
phoneNumber: text
|
|
3380
|
-
}).strict();
|
|
3381
|
-
const CopyActionSchema = zod.z.object({
|
|
3382
|
-
type: zod.z.literal("copy"),
|
|
3383
|
-
label: text,
|
|
3384
|
-
code: text
|
|
3385
|
-
}).strict();
|
|
3386
|
-
const InteractiveActionSchema = zod.z.discriminatedUnion("type", [
|
|
3387
|
-
ReplyActionSchema,
|
|
3388
|
-
LinkActionSchema,
|
|
3389
|
-
CallActionSchema,
|
|
3390
|
-
CopyActionSchema
|
|
3391
|
-
]);
|
|
3392
|
-
const NativeActionSchema = zod.z.object({
|
|
3393
|
-
name: text.describe("WhatsApp native action name; availability depends on the recipient and account"),
|
|
3394
|
-
parameters: JsonObjectSchema.optional()
|
|
3395
|
-
}).strict();
|
|
3396
|
-
const actions = zod.z.array(InteractiveActionSchema).min(1).superRefine((items, ctx) => {
|
|
3397
|
-
const replies = items.filter((item) => item.type === "reply");
|
|
3398
|
-
if (replies.length && replies.length !== items.length) ctx.addIssue({
|
|
3399
|
-
code: "custom",
|
|
3400
|
-
message: "Reply actions cannot be mixed with URL, call or copy actions"
|
|
3401
|
-
});
|
|
3402
|
-
const ids = /* @__PURE__ */ new Set();
|
|
3403
|
-
items.forEach((item, index) => {
|
|
3404
|
-
if (item.type !== "reply") return;
|
|
3405
|
-
if (ids.has(item.id)) ctx.addIssue({
|
|
3406
|
-
code: "custom",
|
|
3407
|
-
path: [index, "id"],
|
|
3408
|
-
message: "Duplicate reply ID"
|
|
3409
|
-
});
|
|
3410
|
-
ids.add(item.id);
|
|
3411
|
-
});
|
|
3412
|
-
});
|
|
3413
|
-
const media$1 = {
|
|
3414
|
-
source: text.describe("HTTP(S) URL, local file path or base64 data URL; resolved by the client before sending"),
|
|
3415
|
-
filename: text.optional(),
|
|
3416
|
-
title: zod.z.string().optional()
|
|
3417
|
-
};
|
|
3418
|
-
const InteractiveHeaderSchema = zod.z.discriminatedUnion("type", [
|
|
3419
|
-
zod.z.object({
|
|
3420
|
-
type: zod.z.literal("text"),
|
|
3421
|
-
text
|
|
3422
|
-
}).strict(),
|
|
3423
|
-
zod.z.object({
|
|
3424
|
-
type: zod.z.literal("image"),
|
|
3425
|
-
...media$1
|
|
3426
|
-
}).strict(),
|
|
3427
|
-
zod.z.object({
|
|
3428
|
-
type: zod.z.literal("video"),
|
|
3429
|
-
...media$1
|
|
3430
|
-
}).strict(),
|
|
3431
|
-
zod.z.object({
|
|
3432
|
-
type: zod.z.literal("document"),
|
|
3433
|
-
...media$1
|
|
3434
|
-
}).strict()
|
|
3435
|
-
]);
|
|
3436
|
-
const base = {
|
|
3437
|
-
version: zod.z.literal(1).optional().describe("Document format version, defaults to 1; independent of WhatsApp protocol versions"),
|
|
3438
|
-
body: text,
|
|
3439
|
-
footer: zod.z.string().optional()
|
|
3440
|
-
};
|
|
3441
|
-
const ButtonsContentSchema = zod.z.object({
|
|
3442
|
-
...base,
|
|
3443
|
-
type: zod.z.literal("buttons"),
|
|
3444
|
-
header: InteractiveHeaderSchema.optional(),
|
|
3445
|
-
actions
|
|
3446
|
-
}).strict();
|
|
3447
|
-
const ListRowSchema = zod.z.object({
|
|
3448
|
-
id,
|
|
3449
|
-
title: text,
|
|
3450
|
-
description: zod.z.string().optional()
|
|
3451
|
-
}).strict();
|
|
3452
|
-
const ListContentSchema = zod.z.object({
|
|
3453
|
-
...base,
|
|
3454
|
-
type: zod.z.literal("list"),
|
|
3455
|
-
title: zod.z.string().optional(),
|
|
3456
|
-
buttonLabel: text.default("Choose an option"),
|
|
3457
|
-
sections: zod.z.array(zod.z.object({
|
|
3458
|
-
title: zod.z.string().optional(),
|
|
3459
|
-
rows: zod.z.array(ListRowSchema).min(1)
|
|
3460
|
-
}).strict()).min(1)
|
|
3461
|
-
}).strict();
|
|
3462
|
-
const FormQuestionSchema = zod.z.object({
|
|
3463
|
-
type: zod.z.enum(["singleSelect", "multiSelect"]),
|
|
3464
|
-
id,
|
|
3465
|
-
label: text,
|
|
3466
|
-
options: zod.z.array(zod.z.object({
|
|
3467
|
-
id,
|
|
3468
|
-
label: text
|
|
3469
|
-
}).strict()).min(1),
|
|
3470
|
-
allowCustomAnswer: zod.z.boolean().optional()
|
|
3471
|
-
}).strict();
|
|
3472
|
-
const FormContentSchema = zod.z.object({
|
|
3473
|
-
...base,
|
|
3474
|
-
type: zod.z.literal("form"),
|
|
3475
|
-
title: zod.z.string().optional(),
|
|
3476
|
-
questions: zod.z.array(FormQuestionSchema).min(1)
|
|
3477
|
-
}).strict();
|
|
3478
|
-
const CarouselCardSchema = zod.z.object({
|
|
3479
|
-
body: text,
|
|
3480
|
-
header: zod.z.object({
|
|
3481
|
-
type: zod.z.literal("image"),
|
|
3482
|
-
...media$1
|
|
3483
|
-
}).strict(),
|
|
3484
|
-
actions
|
|
3485
|
-
}).strict();
|
|
3486
|
-
const CarouselContentSchema = zod.z.object({
|
|
3487
|
-
...base,
|
|
3488
|
-
type: zod.z.literal("carousel"),
|
|
3489
|
-
cards: zod.z.array(CarouselCardSchema).min(1)
|
|
3490
|
-
}).strict();
|
|
3491
|
-
const BookingContentSchema = zod.z.object({
|
|
3492
|
-
...base,
|
|
3493
|
-
type: zod.z.literal("booking"),
|
|
3494
|
-
title: zod.z.string().optional(),
|
|
3495
|
-
buttonLabel: text.default("View booking"),
|
|
3496
|
-
booking: zod.z.object({
|
|
3497
|
-
startAt: zod.z.iso.datetime({ offset: true }),
|
|
3498
|
-
endAt: zod.z.iso.datetime({ offset: true }).optional(),
|
|
3499
|
-
location: zod.z.string().optional(),
|
|
3500
|
-
url: url.optional(),
|
|
3501
|
-
managementUrl: url.optional(),
|
|
3502
|
-
phoneNumber: zod.z.string().optional(),
|
|
3503
|
-
email: zod.z.email().optional(),
|
|
3504
|
-
description: zod.z.string().optional(),
|
|
3505
|
-
labels: zod.z.object({
|
|
3506
|
-
language: zod.z.string().optional(),
|
|
3507
|
-
meetingType: zod.z.string().optional(),
|
|
3508
|
-
detailsTitle: zod.z.string().optional(),
|
|
3509
|
-
addToCalendar: zod.z.string().optional(),
|
|
3510
|
-
viewOnMap: zod.z.string().optional(),
|
|
3511
|
-
manageBooking: zod.z.string().optional()
|
|
3512
|
-
}).strict().optional()
|
|
3513
|
-
}).strict(),
|
|
3514
|
-
actions: zod.z.array(zod.z.discriminatedUnion("type", [
|
|
3515
|
-
LinkActionSchema,
|
|
3516
|
-
CallActionSchema,
|
|
3517
|
-
CopyActionSchema
|
|
3518
|
-
])).optional()
|
|
3519
|
-
}).strict();
|
|
3520
|
-
const NativeContentSchema = zod.z.object({
|
|
3521
|
-
...base,
|
|
3522
|
-
type: zod.z.literal("native"),
|
|
3523
|
-
header: InteractiveHeaderSchema.optional(),
|
|
3524
|
-
actions: zod.z.array(NativeActionSchema).min(1),
|
|
3525
|
-
parameters: JsonObjectSchema.optional()
|
|
3526
|
-
}).strict().describe("Advanced extension for new native action types; parameters are passed through without claiming recipient support");
|
|
3527
|
-
const InteractiveContentSchema = zod.z.discriminatedUnion("type", [
|
|
3528
|
-
ButtonsContentSchema,
|
|
3529
|
-
ListContentSchema,
|
|
3530
|
-
FormContentSchema,
|
|
3531
|
-
CarouselContentSchema,
|
|
3532
|
-
BookingContentSchema,
|
|
3533
|
-
NativeContentSchema
|
|
3534
|
-
]).superRefine((content, ctx) => {
|
|
3535
|
-
const unique = (items, path) => {
|
|
3536
|
-
const seen = /* @__PURE__ */ new Set();
|
|
3537
|
-
items.forEach((item, index) => {
|
|
3538
|
-
if (seen.has(item.id)) ctx.addIssue({
|
|
3539
|
-
code: "custom",
|
|
3540
|
-
path: [
|
|
3541
|
-
...path,
|
|
3542
|
-
index,
|
|
3543
|
-
"id"
|
|
3544
|
-
],
|
|
3545
|
-
message: "IDs must be unique"
|
|
3546
|
-
});
|
|
3547
|
-
seen.add(item.id);
|
|
3548
|
-
});
|
|
3549
|
-
};
|
|
3550
|
-
if (content.type === "form") {
|
|
3551
|
-
unique(content.questions, ["questions"]);
|
|
3552
|
-
content.questions.forEach((q, index) => {
|
|
3553
|
-
unique(q.options, [
|
|
3554
|
-
"questions",
|
|
3555
|
-
index,
|
|
3556
|
-
"options"
|
|
3557
|
-
]);
|
|
3558
|
-
if (q.id === "__openwa_form__") ctx.addIssue({
|
|
3559
|
-
code: "custom",
|
|
3560
|
-
path: [
|
|
3561
|
-
"questions",
|
|
3562
|
-
index,
|
|
3563
|
-
"id"
|
|
3564
|
-
],
|
|
3565
|
-
message: "This question ID is reserved"
|
|
3566
|
-
});
|
|
3567
|
-
});
|
|
3568
|
-
}
|
|
3569
|
-
if (content.type === "list") {
|
|
3570
|
-
const seen = /* @__PURE__ */ new Set();
|
|
3571
|
-
content.sections.forEach((section, s) => section.rows.forEach((row, r) => {
|
|
3572
|
-
if (seen.has(row.id)) ctx.addIssue({
|
|
3573
|
-
code: "custom",
|
|
3574
|
-
path: [
|
|
3575
|
-
"sections",
|
|
3576
|
-
s,
|
|
3577
|
-
"rows",
|
|
3578
|
-
r,
|
|
3579
|
-
"id"
|
|
3580
|
-
],
|
|
3581
|
-
message: "Row IDs must be unique across sections"
|
|
3582
|
-
});
|
|
3583
|
-
seen.add(row.id);
|
|
3584
|
-
}));
|
|
3585
|
-
}
|
|
3586
|
-
if (content.type === "booking" && content.booking.endAt && Date.parse(content.booking.endAt) <= Date.parse(content.booking.startAt)) ctx.addIssue({
|
|
3587
|
-
code: "custom",
|
|
3588
|
-
path: ["booking", "endAt"],
|
|
3589
|
-
message: "Booking end must be after its start"
|
|
3590
|
-
});
|
|
3591
|
-
});
|
|
3592
|
-
/** Validate a JSON document without sending it or loading media; suitable for UI builders. */
|
|
3593
|
-
function defineInteractiveMessage(content) {
|
|
3594
|
-
return InteractiveContentSchema.parse(content);
|
|
3595
|
-
}
|
|
3596
|
-
const responseBase = {
|
|
3597
|
-
messageId: text,
|
|
3598
|
-
chatId: text,
|
|
3599
|
-
senderId: text,
|
|
3600
|
-
originalMessageId: zod.z.string().optional().describe("Original WhatsApp stanza ID; may not be a full serialized message key"),
|
|
3601
|
-
timestamp: zod.z.number().optional(),
|
|
3602
|
-
raw: JsonObjectSchema
|
|
3603
|
-
};
|
|
3604
|
-
const FormResponseSchema = zod.z.object({
|
|
3605
|
-
...responseBase,
|
|
3606
|
-
type: zod.z.literal("form"),
|
|
3607
|
-
answers: zod.z.record(zod.z.string(), zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]))
|
|
3608
|
-
});
|
|
3609
|
-
const InteractiveResponseSchema = zod.z.discriminatedUnion("type", [
|
|
3610
|
-
FormResponseSchema,
|
|
3611
|
-
zod.z.object({
|
|
3612
|
-
...responseBase,
|
|
3613
|
-
type: zod.z.literal("reply"),
|
|
3614
|
-
id: text,
|
|
3615
|
-
label: zod.z.string().optional()
|
|
3616
|
-
}),
|
|
3617
|
-
zod.z.object({
|
|
3618
|
-
...responseBase,
|
|
3619
|
-
type: zod.z.literal("list"),
|
|
3620
|
-
id: text,
|
|
3621
|
-
label: zod.z.string().optional()
|
|
3622
|
-
}),
|
|
3623
|
-
zod.z.object({
|
|
3624
|
-
...responseBase,
|
|
3625
|
-
type: zod.z.literal("native"),
|
|
3626
|
-
name: text,
|
|
3627
|
-
parameters: JsonValueSchema.optional(),
|
|
3628
|
-
parseError: zod.z.string().optional()
|
|
3629
|
-
})
|
|
3630
|
-
]);
|
|
3631
|
-
//#endregion
|
|
3632
3354
|
//#region src/methods/interactive.ts
|
|
3633
3355
|
const SendInteractiveInputSchema = zod.z.object({
|
|
3634
3356
|
to: toParam,
|
|
3635
|
-
content: InteractiveContentSchema
|
|
3357
|
+
content: require_interactive.InteractiveContentSchema
|
|
3636
3358
|
}).strict();
|
|
3637
3359
|
const SendRawMessageInputSchema = zod.z.object({
|
|
3638
3360
|
to: toParam,
|
|
3639
|
-
payload: JsonObjectSchema
|
|
3361
|
+
payload: require_interactive.JsonObjectSchema
|
|
3640
3362
|
}).strict();
|
|
3641
3363
|
const sendInteractive = require_registry.defineMethodV2("sendInteractive", {
|
|
3642
3364
|
meta: {
|
|
@@ -3939,36 +3661,18 @@ Object.defineProperty(exports, "Base64ToDataUrlSchema", {
|
|
|
3939
3661
|
return Base64ToDataUrlSchema;
|
|
3940
3662
|
}
|
|
3941
3663
|
});
|
|
3942
|
-
Object.defineProperty(exports, "BookingContentSchema", {
|
|
3943
|
-
enumerable: true,
|
|
3944
|
-
get: function() {
|
|
3945
|
-
return BookingContentSchema;
|
|
3946
|
-
}
|
|
3947
|
-
});
|
|
3948
3664
|
Object.defineProperty(exports, "BusinessProfileSchema", {
|
|
3949
3665
|
enumerable: true,
|
|
3950
3666
|
get: function() {
|
|
3951
3667
|
return BusinessProfileSchema;
|
|
3952
3668
|
}
|
|
3953
3669
|
});
|
|
3954
|
-
Object.defineProperty(exports, "ButtonsContentSchema", {
|
|
3955
|
-
enumerable: true,
|
|
3956
|
-
get: function() {
|
|
3957
|
-
return ButtonsContentSchema;
|
|
3958
|
-
}
|
|
3959
|
-
});
|
|
3960
3670
|
Object.defineProperty(exports, "CallActionResultSchema", {
|
|
3961
3671
|
enumerable: true,
|
|
3962
3672
|
get: function() {
|
|
3963
3673
|
return CallActionResultSchema;
|
|
3964
3674
|
}
|
|
3965
3675
|
});
|
|
3966
|
-
Object.defineProperty(exports, "CallActionSchema", {
|
|
3967
|
-
enumerable: true,
|
|
3968
|
-
get: function() {
|
|
3969
|
-
return CallActionSchema;
|
|
3970
|
-
}
|
|
3971
|
-
});
|
|
3972
3676
|
Object.defineProperty(exports, "CallCapabilitiesSchema", {
|
|
3973
3677
|
enumerable: true,
|
|
3974
3678
|
get: function() {
|
|
@@ -4005,18 +3709,6 @@ Object.defineProperty(exports, "CallSnapshotSchema", {
|
|
|
4005
3709
|
return CallSnapshotSchema;
|
|
4006
3710
|
}
|
|
4007
3711
|
});
|
|
4008
|
-
Object.defineProperty(exports, "CarouselCardSchema", {
|
|
4009
|
-
enumerable: true,
|
|
4010
|
-
get: function() {
|
|
4011
|
-
return CarouselCardSchema;
|
|
4012
|
-
}
|
|
4013
|
-
});
|
|
4014
|
-
Object.defineProperty(exports, "CarouselContentSchema", {
|
|
4015
|
-
enumerable: true,
|
|
4016
|
-
get: function() {
|
|
4017
|
-
return CarouselContentSchema;
|
|
4018
|
-
}
|
|
4019
|
-
});
|
|
4020
3712
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
4021
3713
|
enumerable: true,
|
|
4022
3714
|
get: function() {
|
|
@@ -4107,12 +3799,6 @@ Object.defineProperty(exports, "ContactStatusSchema", {
|
|
|
4107
3799
|
return ContactStatusSchema;
|
|
4108
3800
|
}
|
|
4109
3801
|
});
|
|
4110
|
-
Object.defineProperty(exports, "CopyActionSchema", {
|
|
4111
|
-
enumerable: true,
|
|
4112
|
-
get: function() {
|
|
4113
|
-
return CopyActionSchema;
|
|
4114
|
-
}
|
|
4115
|
-
});
|
|
4116
3802
|
Object.defineProperty(exports, "DataURLSchema", {
|
|
4117
3803
|
enumerable: true,
|
|
4118
3804
|
get: function() {
|
|
@@ -4179,24 +3865,6 @@ Object.defineProperty(exports, "FileToDataUrlSchema", {
|
|
|
4179
3865
|
return FileToDataUrlSchema;
|
|
4180
3866
|
}
|
|
4181
3867
|
});
|
|
4182
|
-
Object.defineProperty(exports, "FormContentSchema", {
|
|
4183
|
-
enumerable: true,
|
|
4184
|
-
get: function() {
|
|
4185
|
-
return FormContentSchema;
|
|
4186
|
-
}
|
|
4187
|
-
});
|
|
4188
|
-
Object.defineProperty(exports, "FormQuestionSchema", {
|
|
4189
|
-
enumerable: true,
|
|
4190
|
-
get: function() {
|
|
4191
|
-
return FormQuestionSchema;
|
|
4192
|
-
}
|
|
4193
|
-
});
|
|
4194
|
-
Object.defineProperty(exports, "FormResponseSchema", {
|
|
4195
|
-
enumerable: true,
|
|
4196
|
-
get: function() {
|
|
4197
|
-
return FormResponseSchema;
|
|
4198
|
-
}
|
|
4199
|
-
});
|
|
4200
3868
|
Object.defineProperty(exports, "GifSendOptionsSchema", {
|
|
4201
3869
|
enumerable: true,
|
|
4202
3870
|
get: function() {
|
|
@@ -4275,48 +3943,12 @@ Object.defineProperty(exports, "ImageSendOptionsSchema", {
|
|
|
4275
3943
|
return ImageSendOptionsSchema;
|
|
4276
3944
|
}
|
|
4277
3945
|
});
|
|
4278
|
-
Object.defineProperty(exports, "InteractiveActionSchema", {
|
|
4279
|
-
enumerable: true,
|
|
4280
|
-
get: function() {
|
|
4281
|
-
return InteractiveActionSchema;
|
|
4282
|
-
}
|
|
4283
|
-
});
|
|
4284
|
-
Object.defineProperty(exports, "InteractiveContentSchema", {
|
|
4285
|
-
enumerable: true,
|
|
4286
|
-
get: function() {
|
|
4287
|
-
return InteractiveContentSchema;
|
|
4288
|
-
}
|
|
4289
|
-
});
|
|
4290
|
-
Object.defineProperty(exports, "InteractiveHeaderSchema", {
|
|
4291
|
-
enumerable: true,
|
|
4292
|
-
get: function() {
|
|
4293
|
-
return InteractiveHeaderSchema;
|
|
4294
|
-
}
|
|
4295
|
-
});
|
|
4296
|
-
Object.defineProperty(exports, "InteractiveResponseSchema", {
|
|
4297
|
-
enumerable: true,
|
|
4298
|
-
get: function() {
|
|
4299
|
-
return InteractiveResponseSchema;
|
|
4300
|
-
}
|
|
4301
|
-
});
|
|
4302
3946
|
Object.defineProperty(exports, "IsoDatetimeToDateSchema", {
|
|
4303
3947
|
enumerable: true,
|
|
4304
3948
|
get: function() {
|
|
4305
3949
|
return IsoDatetimeToDateSchema;
|
|
4306
3950
|
}
|
|
4307
3951
|
});
|
|
4308
|
-
Object.defineProperty(exports, "JsonObjectSchema", {
|
|
4309
|
-
enumerable: true,
|
|
4310
|
-
get: function() {
|
|
4311
|
-
return JsonObjectSchema;
|
|
4312
|
-
}
|
|
4313
|
-
});
|
|
4314
|
-
Object.defineProperty(exports, "JsonValueSchema", {
|
|
4315
|
-
enumerable: true,
|
|
4316
|
-
get: function() {
|
|
4317
|
-
return JsonValueSchema;
|
|
4318
|
-
}
|
|
4319
|
-
});
|
|
4320
3952
|
Object.defineProperty(exports, "LLMMessageSchema", {
|
|
4321
3953
|
enumerable: true,
|
|
4322
3954
|
get: function() {
|
|
@@ -4341,24 +3973,6 @@ Object.defineProperty(exports, "LicenseTypeSchema", {
|
|
|
4341
3973
|
return LicenseTypeSchema;
|
|
4342
3974
|
}
|
|
4343
3975
|
});
|
|
4344
|
-
Object.defineProperty(exports, "LinkActionSchema", {
|
|
4345
|
-
enumerable: true,
|
|
4346
|
-
get: function() {
|
|
4347
|
-
return LinkActionSchema;
|
|
4348
|
-
}
|
|
4349
|
-
});
|
|
4350
|
-
Object.defineProperty(exports, "ListContentSchema", {
|
|
4351
|
-
enumerable: true,
|
|
4352
|
-
get: function() {
|
|
4353
|
-
return ListContentSchema;
|
|
4354
|
-
}
|
|
4355
|
-
});
|
|
4356
|
-
Object.defineProperty(exports, "ListRowSchema", {
|
|
4357
|
-
enumerable: true,
|
|
4358
|
-
get: function() {
|
|
4359
|
-
return ListRowSchema;
|
|
4360
|
-
}
|
|
4361
|
-
});
|
|
4362
3976
|
Object.defineProperty(exports, "LocationSchema", {
|
|
4363
3977
|
enumerable: true,
|
|
4364
3978
|
get: function() {
|
|
@@ -4425,18 +4039,6 @@ Object.defineProperty(exports, "MessageTypes", {
|
|
|
4425
4039
|
return MessageTypes;
|
|
4426
4040
|
}
|
|
4427
4041
|
});
|
|
4428
|
-
Object.defineProperty(exports, "NativeActionSchema", {
|
|
4429
|
-
enumerable: true,
|
|
4430
|
-
get: function() {
|
|
4431
|
-
return NativeActionSchema;
|
|
4432
|
-
}
|
|
4433
|
-
});
|
|
4434
|
-
Object.defineProperty(exports, "NativeContentSchema", {
|
|
4435
|
-
enumerable: true,
|
|
4436
|
-
get: function() {
|
|
4437
|
-
return NativeContentSchema;
|
|
4438
|
-
}
|
|
4439
|
-
});
|
|
4440
4042
|
Object.defineProperty(exports, "NumberCheckSchema", {
|
|
4441
4043
|
enumerable: true,
|
|
4442
4044
|
get: function() {
|
|
@@ -4497,12 +4099,6 @@ Object.defineProperty(exports, "RawAudioFormatSchema", {
|
|
|
4497
4099
|
return RawAudioFormatSchema;
|
|
4498
4100
|
}
|
|
4499
4101
|
});
|
|
4500
|
-
Object.defineProperty(exports, "ReplyActionSchema", {
|
|
4501
|
-
enumerable: true,
|
|
4502
|
-
get: function() {
|
|
4503
|
-
return ReplyActionSchema;
|
|
4504
|
-
}
|
|
4505
|
-
});
|
|
4506
4102
|
Object.defineProperty(exports, "SendInteractiveInputSchema", {
|
|
4507
4103
|
enumerable: true,
|
|
4508
4104
|
get: function() {
|
|
@@ -4731,12 +4327,6 @@ Object.defineProperty(exports, "decryptMedia", {
|
|
|
4731
4327
|
return decryptMedia;
|
|
4732
4328
|
}
|
|
4733
4329
|
});
|
|
4734
|
-
Object.defineProperty(exports, "defineInteractiveMessage", {
|
|
4735
|
-
enumerable: true,
|
|
4736
|
-
get: function() {
|
|
4737
|
-
return defineInteractiveMessage;
|
|
4738
|
-
}
|
|
4739
|
-
});
|
|
4740
4330
|
Object.defineProperty(exports, "deleteAllStatus", {
|
|
4741
4331
|
enumerable: true,
|
|
4742
4332
|
get: function() {
|
|
@@ -5848,4 +5438,4 @@ Object.defineProperty(exports, "withNewMessagesOnlyParam", {
|
|
|
5848
5438
|
}
|
|
5849
5439
|
});
|
|
5850
5440
|
|
|
5851
|
-
//# sourceMappingURL=methods-
|
|
5441
|
+
//# sourceMappingURL=methods-QZbG0hN2.cjs.map
|