@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
|
@@ -2628,12 +2628,357 @@ const downloadMedia = require_registry.defineMethodV2("downloadMedia", {
|
|
|
2628
2628
|
output: zod.z.string().describe("Path to the saved file")
|
|
2629
2629
|
});
|
|
2630
2630
|
//#endregion
|
|
2631
|
+
//#region src/interactive.ts
|
|
2632
|
+
const JsonValueSchema = zod.z.lazy(() => zod.z.union([
|
|
2633
|
+
zod.z.null(),
|
|
2634
|
+
zod.z.boolean(),
|
|
2635
|
+
zod.z.number().finite(),
|
|
2636
|
+
zod.z.string(),
|
|
2637
|
+
zod.z.array(JsonValueSchema),
|
|
2638
|
+
zod.z.record(zod.z.string(), JsonValueSchema)
|
|
2639
|
+
]));
|
|
2640
|
+
const JsonObjectSchema = zod.z.record(zod.z.string(), JsonValueSchema);
|
|
2641
|
+
const text = zod.z.string().min(1);
|
|
2642
|
+
const url = zod.z.url().refine((value) => /^https?:\/\//i.test(value), "Use an HTTP or HTTPS URL");
|
|
2643
|
+
const id = text.describe("Stable application-defined ID returned when the recipient chooses this item");
|
|
2644
|
+
const ReplyActionSchema = zod.z.object({
|
|
2645
|
+
type: zod.z.literal("reply"),
|
|
2646
|
+
id,
|
|
2647
|
+
label: text
|
|
2648
|
+
}).strict();
|
|
2649
|
+
const LinkActionSchema = zod.z.object({
|
|
2650
|
+
type: zod.z.literal("url"),
|
|
2651
|
+
label: text,
|
|
2652
|
+
url
|
|
2653
|
+
}).strict();
|
|
2654
|
+
const CallActionSchema = zod.z.object({
|
|
2655
|
+
type: zod.z.literal("call"),
|
|
2656
|
+
label: text,
|
|
2657
|
+
phoneNumber: text
|
|
2658
|
+
}).strict();
|
|
2659
|
+
const CopyActionSchema = zod.z.object({
|
|
2660
|
+
type: zod.z.literal("copy"),
|
|
2661
|
+
label: text,
|
|
2662
|
+
code: text
|
|
2663
|
+
}).strict();
|
|
2664
|
+
const InteractiveActionSchema = zod.z.discriminatedUnion("type", [
|
|
2665
|
+
ReplyActionSchema,
|
|
2666
|
+
LinkActionSchema,
|
|
2667
|
+
CallActionSchema,
|
|
2668
|
+
CopyActionSchema
|
|
2669
|
+
]);
|
|
2670
|
+
const NativeActionSchema = zod.z.object({
|
|
2671
|
+
name: text.describe("WhatsApp native action name; availability depends on the recipient and account"),
|
|
2672
|
+
parameters: JsonObjectSchema.optional()
|
|
2673
|
+
}).strict();
|
|
2674
|
+
const actions = zod.z.array(InteractiveActionSchema).min(1).superRefine((items, ctx) => {
|
|
2675
|
+
const replies = items.filter((item) => item.type === "reply");
|
|
2676
|
+
if (replies.length && replies.length !== items.length) ctx.addIssue({
|
|
2677
|
+
code: "custom",
|
|
2678
|
+
message: "Reply actions cannot be mixed with URL, call or copy actions"
|
|
2679
|
+
});
|
|
2680
|
+
const ids = /* @__PURE__ */ new Set();
|
|
2681
|
+
items.forEach((item, index) => {
|
|
2682
|
+
if (item.type !== "reply") return;
|
|
2683
|
+
if (ids.has(item.id)) ctx.addIssue({
|
|
2684
|
+
code: "custom",
|
|
2685
|
+
path: [index, "id"],
|
|
2686
|
+
message: "Duplicate reply ID"
|
|
2687
|
+
});
|
|
2688
|
+
ids.add(item.id);
|
|
2689
|
+
});
|
|
2690
|
+
});
|
|
2691
|
+
const media = {
|
|
2692
|
+
source: text.describe("HTTP(S) URL, local file path or base64 data URL; resolved by the client before sending"),
|
|
2693
|
+
filename: text.optional(),
|
|
2694
|
+
title: zod.z.string().optional()
|
|
2695
|
+
};
|
|
2696
|
+
const InteractiveHeaderSchema = zod.z.discriminatedUnion("type", [
|
|
2697
|
+
zod.z.object({
|
|
2698
|
+
type: zod.z.literal("text"),
|
|
2699
|
+
text
|
|
2700
|
+
}).strict(),
|
|
2701
|
+
zod.z.object({
|
|
2702
|
+
type: zod.z.literal("image"),
|
|
2703
|
+
...media
|
|
2704
|
+
}).strict(),
|
|
2705
|
+
zod.z.object({
|
|
2706
|
+
type: zod.z.literal("video"),
|
|
2707
|
+
...media
|
|
2708
|
+
}).strict(),
|
|
2709
|
+
zod.z.object({
|
|
2710
|
+
type: zod.z.literal("document"),
|
|
2711
|
+
...media
|
|
2712
|
+
}).strict()
|
|
2713
|
+
]);
|
|
2714
|
+
const base = {
|
|
2715
|
+
version: zod.z.literal(1).optional().describe("Document format version, defaults to 1; independent of WhatsApp protocol versions"),
|
|
2716
|
+
body: text,
|
|
2717
|
+
footer: zod.z.string().optional()
|
|
2718
|
+
};
|
|
2719
|
+
const ButtonsContentSchema = zod.z.object({
|
|
2720
|
+
...base,
|
|
2721
|
+
type: zod.z.literal("buttons"),
|
|
2722
|
+
header: InteractiveHeaderSchema.optional(),
|
|
2723
|
+
actions
|
|
2724
|
+
}).strict();
|
|
2725
|
+
const ListRowSchema = zod.z.object({
|
|
2726
|
+
id,
|
|
2727
|
+
title: text,
|
|
2728
|
+
description: zod.z.string().optional()
|
|
2729
|
+
}).strict();
|
|
2730
|
+
const ListContentSchema = zod.z.object({
|
|
2731
|
+
...base,
|
|
2732
|
+
type: zod.z.literal("list"),
|
|
2733
|
+
title: zod.z.string().optional(),
|
|
2734
|
+
buttonLabel: text.default("Choose an option"),
|
|
2735
|
+
sections: zod.z.array(zod.z.object({
|
|
2736
|
+
title: zod.z.string().optional(),
|
|
2737
|
+
rows: zod.z.array(ListRowSchema).min(1)
|
|
2738
|
+
}).strict()).min(1)
|
|
2739
|
+
}).strict();
|
|
2740
|
+
const FormQuestionSchema = zod.z.object({
|
|
2741
|
+
type: zod.z.enum(["singleSelect", "multiSelect"]),
|
|
2742
|
+
id,
|
|
2743
|
+
label: text,
|
|
2744
|
+
options: zod.z.array(zod.z.object({
|
|
2745
|
+
id,
|
|
2746
|
+
label: text
|
|
2747
|
+
}).strict()).min(1),
|
|
2748
|
+
allowCustomAnswer: zod.z.boolean().optional()
|
|
2749
|
+
}).strict();
|
|
2750
|
+
const FormContentSchema = zod.z.object({
|
|
2751
|
+
...base,
|
|
2752
|
+
type: zod.z.literal("form"),
|
|
2753
|
+
title: zod.z.string().optional(),
|
|
2754
|
+
questions: zod.z.array(FormQuestionSchema).min(1)
|
|
2755
|
+
}).strict();
|
|
2756
|
+
const CarouselCardSchema = zod.z.object({
|
|
2757
|
+
body: text,
|
|
2758
|
+
header: zod.z.object({
|
|
2759
|
+
type: zod.z.literal("image"),
|
|
2760
|
+
...media
|
|
2761
|
+
}).strict(),
|
|
2762
|
+
actions
|
|
2763
|
+
}).strict();
|
|
2764
|
+
const CarouselContentSchema = zod.z.object({
|
|
2765
|
+
...base,
|
|
2766
|
+
type: zod.z.literal("carousel"),
|
|
2767
|
+
cards: zod.z.array(CarouselCardSchema).min(1)
|
|
2768
|
+
}).strict();
|
|
2769
|
+
const BookingContentSchema = zod.z.object({
|
|
2770
|
+
...base,
|
|
2771
|
+
type: zod.z.literal("booking"),
|
|
2772
|
+
title: zod.z.string().optional(),
|
|
2773
|
+
buttonLabel: text.default("View booking"),
|
|
2774
|
+
booking: zod.z.object({
|
|
2775
|
+
startAt: zod.z.iso.datetime({ offset: true }),
|
|
2776
|
+
endAt: zod.z.iso.datetime({ offset: true }).optional(),
|
|
2777
|
+
location: zod.z.string().optional(),
|
|
2778
|
+
url: url.optional(),
|
|
2779
|
+
managementUrl: url.optional(),
|
|
2780
|
+
phoneNumber: zod.z.string().optional(),
|
|
2781
|
+
email: zod.z.email().optional(),
|
|
2782
|
+
description: zod.z.string().optional(),
|
|
2783
|
+
labels: zod.z.object({
|
|
2784
|
+
language: zod.z.string().optional(),
|
|
2785
|
+
meetingType: zod.z.string().optional(),
|
|
2786
|
+
detailsTitle: zod.z.string().optional(),
|
|
2787
|
+
addToCalendar: zod.z.string().optional(),
|
|
2788
|
+
viewOnMap: zod.z.string().optional(),
|
|
2789
|
+
manageBooking: zod.z.string().optional()
|
|
2790
|
+
}).strict().optional()
|
|
2791
|
+
}).strict(),
|
|
2792
|
+
actions: zod.z.array(zod.z.discriminatedUnion("type", [
|
|
2793
|
+
LinkActionSchema,
|
|
2794
|
+
CallActionSchema,
|
|
2795
|
+
CopyActionSchema
|
|
2796
|
+
])).optional()
|
|
2797
|
+
}).strict();
|
|
2798
|
+
const NativeContentSchema = zod.z.object({
|
|
2799
|
+
...base,
|
|
2800
|
+
type: zod.z.literal("native"),
|
|
2801
|
+
header: InteractiveHeaderSchema.optional(),
|
|
2802
|
+
actions: zod.z.array(NativeActionSchema).min(1),
|
|
2803
|
+
parameters: JsonObjectSchema.optional()
|
|
2804
|
+
}).strict().describe("Advanced extension for new native action types; parameters are passed through without claiming recipient support");
|
|
2805
|
+
const InteractiveContentSchema = zod.z.discriminatedUnion("type", [
|
|
2806
|
+
ButtonsContentSchema,
|
|
2807
|
+
ListContentSchema,
|
|
2808
|
+
FormContentSchema,
|
|
2809
|
+
CarouselContentSchema,
|
|
2810
|
+
BookingContentSchema,
|
|
2811
|
+
NativeContentSchema
|
|
2812
|
+
]).superRefine((content, ctx) => {
|
|
2813
|
+
const unique = (items, path) => {
|
|
2814
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2815
|
+
items.forEach((item, index) => {
|
|
2816
|
+
if (seen.has(item.id)) ctx.addIssue({
|
|
2817
|
+
code: "custom",
|
|
2818
|
+
path: [
|
|
2819
|
+
...path,
|
|
2820
|
+
index,
|
|
2821
|
+
"id"
|
|
2822
|
+
],
|
|
2823
|
+
message: "IDs must be unique"
|
|
2824
|
+
});
|
|
2825
|
+
seen.add(item.id);
|
|
2826
|
+
});
|
|
2827
|
+
};
|
|
2828
|
+
if (content.type === "form") {
|
|
2829
|
+
unique(content.questions, ["questions"]);
|
|
2830
|
+
content.questions.forEach((q, index) => {
|
|
2831
|
+
unique(q.options, [
|
|
2832
|
+
"questions",
|
|
2833
|
+
index,
|
|
2834
|
+
"options"
|
|
2835
|
+
]);
|
|
2836
|
+
if (q.id === "__openwa_form__") ctx.addIssue({
|
|
2837
|
+
code: "custom",
|
|
2838
|
+
path: [
|
|
2839
|
+
"questions",
|
|
2840
|
+
index,
|
|
2841
|
+
"id"
|
|
2842
|
+
],
|
|
2843
|
+
message: "This question ID is reserved"
|
|
2844
|
+
});
|
|
2845
|
+
});
|
|
2846
|
+
}
|
|
2847
|
+
if (content.type === "list") {
|
|
2848
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2849
|
+
content.sections.forEach((section, s) => section.rows.forEach((row, r) => {
|
|
2850
|
+
if (seen.has(row.id)) ctx.addIssue({
|
|
2851
|
+
code: "custom",
|
|
2852
|
+
path: [
|
|
2853
|
+
"sections",
|
|
2854
|
+
s,
|
|
2855
|
+
"rows",
|
|
2856
|
+
r,
|
|
2857
|
+
"id"
|
|
2858
|
+
],
|
|
2859
|
+
message: "Row IDs must be unique across sections"
|
|
2860
|
+
});
|
|
2861
|
+
seen.add(row.id);
|
|
2862
|
+
}));
|
|
2863
|
+
}
|
|
2864
|
+
if (content.type === "booking" && content.booking.endAt && Date.parse(content.booking.endAt) <= Date.parse(content.booking.startAt)) ctx.addIssue({
|
|
2865
|
+
code: "custom",
|
|
2866
|
+
path: ["booking", "endAt"],
|
|
2867
|
+
message: "Booking end must be after its start"
|
|
2868
|
+
});
|
|
2869
|
+
});
|
|
2870
|
+
/** Validate a JSON document without sending it or loading media; suitable for UI builders. */
|
|
2871
|
+
function defineInteractiveMessage(content) {
|
|
2872
|
+
return InteractiveContentSchema.parse(content);
|
|
2873
|
+
}
|
|
2874
|
+
const responseBase = {
|
|
2875
|
+
messageId: text,
|
|
2876
|
+
chatId: text,
|
|
2877
|
+
senderId: text,
|
|
2878
|
+
originalMessageId: zod.z.string().optional().describe("Original WhatsApp stanza ID; may not be a full serialized message key"),
|
|
2879
|
+
timestamp: zod.z.number().optional(),
|
|
2880
|
+
raw: JsonObjectSchema
|
|
2881
|
+
};
|
|
2882
|
+
const FormResponseSchema = zod.z.object({
|
|
2883
|
+
...responseBase,
|
|
2884
|
+
type: zod.z.literal("form"),
|
|
2885
|
+
answers: zod.z.record(zod.z.string(), zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]))
|
|
2886
|
+
});
|
|
2887
|
+
const InteractiveResponseSchema = zod.z.discriminatedUnion("type", [
|
|
2888
|
+
FormResponseSchema,
|
|
2889
|
+
zod.z.object({
|
|
2890
|
+
...responseBase,
|
|
2891
|
+
type: zod.z.literal("reply"),
|
|
2892
|
+
id: text,
|
|
2893
|
+
label: zod.z.string().optional()
|
|
2894
|
+
}),
|
|
2895
|
+
zod.z.object({
|
|
2896
|
+
...responseBase,
|
|
2897
|
+
type: zod.z.literal("list"),
|
|
2898
|
+
id: text,
|
|
2899
|
+
label: zod.z.string().optional()
|
|
2900
|
+
}),
|
|
2901
|
+
zod.z.object({
|
|
2902
|
+
...responseBase,
|
|
2903
|
+
type: zod.z.literal("native"),
|
|
2904
|
+
name: text,
|
|
2905
|
+
parameters: JsonValueSchema.optional(),
|
|
2906
|
+
parseError: zod.z.string().optional()
|
|
2907
|
+
})
|
|
2908
|
+
]);
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region src/methods/interactive.ts
|
|
2911
|
+
const SendInteractiveInputSchema = zod.z.object({
|
|
2912
|
+
to: toParam,
|
|
2913
|
+
content: InteractiveContentSchema
|
|
2914
|
+
}).strict();
|
|
2915
|
+
const SendRawMessageInputSchema = zod.z.object({
|
|
2916
|
+
to: toParam,
|
|
2917
|
+
payload: JsonObjectSchema
|
|
2918
|
+
}).strict();
|
|
2919
|
+
const sendInteractive = require_registry.defineMethodV2("sendInteractive", {
|
|
2920
|
+
meta: {
|
|
2921
|
+
description: "Send a portable interactive message document (Insiders and above)",
|
|
2922
|
+
namespace: "messages",
|
|
2923
|
+
action: "send",
|
|
2924
|
+
license: "insiders",
|
|
2925
|
+
functionality: "both",
|
|
2926
|
+
httpMethod: "POST"
|
|
2927
|
+
},
|
|
2928
|
+
input: SendInteractiveInputSchema,
|
|
2929
|
+
parameterOrder: ["to", "content"],
|
|
2930
|
+
output: zod.z.string()
|
|
2931
|
+
});
|
|
2932
|
+
const sendRawMessage = require_registry.defineMethodV2("sendRawMessage", {
|
|
2933
|
+
meta: {
|
|
2934
|
+
description: "Send a constructed WhatsApp protobuf Message payload (Insiders and above); media must already be uploaded",
|
|
2935
|
+
namespace: "messages",
|
|
2936
|
+
action: "send",
|
|
2937
|
+
license: "insiders",
|
|
2938
|
+
functionality: "both",
|
|
2939
|
+
httpMethod: "POST"
|
|
2940
|
+
},
|
|
2941
|
+
input: SendRawMessageInputSchema,
|
|
2942
|
+
parameterOrder: ["to", "payload"],
|
|
2943
|
+
output: zod.z.string()
|
|
2944
|
+
});
|
|
2945
|
+
//#endregion
|
|
2631
2946
|
Object.defineProperty(exports, "Base64ToDataUrlSchema", {
|
|
2632
2947
|
enumerable: true,
|
|
2633
2948
|
get: function() {
|
|
2634
2949
|
return Base64ToDataUrlSchema;
|
|
2635
2950
|
}
|
|
2636
2951
|
});
|
|
2952
|
+
Object.defineProperty(exports, "BookingContentSchema", {
|
|
2953
|
+
enumerable: true,
|
|
2954
|
+
get: function() {
|
|
2955
|
+
return BookingContentSchema;
|
|
2956
|
+
}
|
|
2957
|
+
});
|
|
2958
|
+
Object.defineProperty(exports, "ButtonsContentSchema", {
|
|
2959
|
+
enumerable: true,
|
|
2960
|
+
get: function() {
|
|
2961
|
+
return ButtonsContentSchema;
|
|
2962
|
+
}
|
|
2963
|
+
});
|
|
2964
|
+
Object.defineProperty(exports, "CallActionSchema", {
|
|
2965
|
+
enumerable: true,
|
|
2966
|
+
get: function() {
|
|
2967
|
+
return CallActionSchema;
|
|
2968
|
+
}
|
|
2969
|
+
});
|
|
2970
|
+
Object.defineProperty(exports, "CarouselCardSchema", {
|
|
2971
|
+
enumerable: true,
|
|
2972
|
+
get: function() {
|
|
2973
|
+
return CarouselCardSchema;
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
Object.defineProperty(exports, "CarouselContentSchema", {
|
|
2977
|
+
enumerable: true,
|
|
2978
|
+
get: function() {
|
|
2979
|
+
return CarouselContentSchema;
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2637
2982
|
Object.defineProperty(exports, "ChatIdCodecSchema", {
|
|
2638
2983
|
enumerable: true,
|
|
2639
2984
|
get: function() {
|
|
@@ -2670,12 +3015,36 @@ Object.defineProperty(exports, "ContactSchema", {
|
|
|
2670
3015
|
return ContactSchema;
|
|
2671
3016
|
}
|
|
2672
3017
|
});
|
|
3018
|
+
Object.defineProperty(exports, "CopyActionSchema", {
|
|
3019
|
+
enumerable: true,
|
|
3020
|
+
get: function() {
|
|
3021
|
+
return CopyActionSchema;
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
2673
3024
|
Object.defineProperty(exports, "FileToDataUrlSchema", {
|
|
2674
3025
|
enumerable: true,
|
|
2675
3026
|
get: function() {
|
|
2676
3027
|
return FileToDataUrlSchema;
|
|
2677
3028
|
}
|
|
2678
3029
|
});
|
|
3030
|
+
Object.defineProperty(exports, "FormContentSchema", {
|
|
3031
|
+
enumerable: true,
|
|
3032
|
+
get: function() {
|
|
3033
|
+
return FormContentSchema;
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3036
|
+
Object.defineProperty(exports, "FormQuestionSchema", {
|
|
3037
|
+
enumerable: true,
|
|
3038
|
+
get: function() {
|
|
3039
|
+
return FormQuestionSchema;
|
|
3040
|
+
}
|
|
3041
|
+
});
|
|
3042
|
+
Object.defineProperty(exports, "FormResponseSchema", {
|
|
3043
|
+
enumerable: true,
|
|
3044
|
+
get: function() {
|
|
3045
|
+
return FormResponseSchema;
|
|
3046
|
+
}
|
|
3047
|
+
});
|
|
2679
3048
|
Object.defineProperty(exports, "GroupChatIdSchema", {
|
|
2680
3049
|
enumerable: true,
|
|
2681
3050
|
get: function() {
|
|
@@ -2712,12 +3081,66 @@ Object.defineProperty(exports, "IdSchema", {
|
|
|
2712
3081
|
return IdSchema;
|
|
2713
3082
|
}
|
|
2714
3083
|
});
|
|
3084
|
+
Object.defineProperty(exports, "InteractiveActionSchema", {
|
|
3085
|
+
enumerable: true,
|
|
3086
|
+
get: function() {
|
|
3087
|
+
return InteractiveActionSchema;
|
|
3088
|
+
}
|
|
3089
|
+
});
|
|
3090
|
+
Object.defineProperty(exports, "InteractiveContentSchema", {
|
|
3091
|
+
enumerable: true,
|
|
3092
|
+
get: function() {
|
|
3093
|
+
return InteractiveContentSchema;
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
Object.defineProperty(exports, "InteractiveHeaderSchema", {
|
|
3097
|
+
enumerable: true,
|
|
3098
|
+
get: function() {
|
|
3099
|
+
return InteractiveHeaderSchema;
|
|
3100
|
+
}
|
|
3101
|
+
});
|
|
3102
|
+
Object.defineProperty(exports, "InteractiveResponseSchema", {
|
|
3103
|
+
enumerable: true,
|
|
3104
|
+
get: function() {
|
|
3105
|
+
return InteractiveResponseSchema;
|
|
3106
|
+
}
|
|
3107
|
+
});
|
|
2715
3108
|
Object.defineProperty(exports, "IsoDatetimeToDateSchema", {
|
|
2716
3109
|
enumerable: true,
|
|
2717
3110
|
get: function() {
|
|
2718
3111
|
return IsoDatetimeToDateSchema;
|
|
2719
3112
|
}
|
|
2720
3113
|
});
|
|
3114
|
+
Object.defineProperty(exports, "JsonObjectSchema", {
|
|
3115
|
+
enumerable: true,
|
|
3116
|
+
get: function() {
|
|
3117
|
+
return JsonObjectSchema;
|
|
3118
|
+
}
|
|
3119
|
+
});
|
|
3120
|
+
Object.defineProperty(exports, "JsonValueSchema", {
|
|
3121
|
+
enumerable: true,
|
|
3122
|
+
get: function() {
|
|
3123
|
+
return JsonValueSchema;
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
Object.defineProperty(exports, "LinkActionSchema", {
|
|
3127
|
+
enumerable: true,
|
|
3128
|
+
get: function() {
|
|
3129
|
+
return LinkActionSchema;
|
|
3130
|
+
}
|
|
3131
|
+
});
|
|
3132
|
+
Object.defineProperty(exports, "ListContentSchema", {
|
|
3133
|
+
enumerable: true,
|
|
3134
|
+
get: function() {
|
|
3135
|
+
return ListContentSchema;
|
|
3136
|
+
}
|
|
3137
|
+
});
|
|
3138
|
+
Object.defineProperty(exports, "ListRowSchema", {
|
|
3139
|
+
enumerable: true,
|
|
3140
|
+
get: function() {
|
|
3141
|
+
return ListRowSchema;
|
|
3142
|
+
}
|
|
3143
|
+
});
|
|
2721
3144
|
Object.defineProperty(exports, "LocationSchema", {
|
|
2722
3145
|
enumerable: true,
|
|
2723
3146
|
get: function() {
|
|
@@ -2760,6 +3183,36 @@ Object.defineProperty(exports, "MessageTypes", {
|
|
|
2760
3183
|
return MessageTypes;
|
|
2761
3184
|
}
|
|
2762
3185
|
});
|
|
3186
|
+
Object.defineProperty(exports, "NativeActionSchema", {
|
|
3187
|
+
enumerable: true,
|
|
3188
|
+
get: function() {
|
|
3189
|
+
return NativeActionSchema;
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
Object.defineProperty(exports, "NativeContentSchema", {
|
|
3193
|
+
enumerable: true,
|
|
3194
|
+
get: function() {
|
|
3195
|
+
return NativeContentSchema;
|
|
3196
|
+
}
|
|
3197
|
+
});
|
|
3198
|
+
Object.defineProperty(exports, "ReplyActionSchema", {
|
|
3199
|
+
enumerable: true,
|
|
3200
|
+
get: function() {
|
|
3201
|
+
return ReplyActionSchema;
|
|
3202
|
+
}
|
|
3203
|
+
});
|
|
3204
|
+
Object.defineProperty(exports, "SendInteractiveInputSchema", {
|
|
3205
|
+
enumerable: true,
|
|
3206
|
+
get: function() {
|
|
3207
|
+
return SendInteractiveInputSchema;
|
|
3208
|
+
}
|
|
3209
|
+
});
|
|
3210
|
+
Object.defineProperty(exports, "SendRawMessageInputSchema", {
|
|
3211
|
+
enumerable: true,
|
|
3212
|
+
get: function() {
|
|
3213
|
+
return SendRawMessageInputSchema;
|
|
3214
|
+
}
|
|
3215
|
+
});
|
|
2763
3216
|
Object.defineProperty(exports, "SimpleListener", {
|
|
2764
3217
|
enumerable: true,
|
|
2765
3218
|
get: function() {
|
|
@@ -2898,6 +3351,12 @@ Object.defineProperty(exports, "decryptMedia", {
|
|
|
2898
3351
|
return decryptMedia;
|
|
2899
3352
|
}
|
|
2900
3353
|
});
|
|
3354
|
+
Object.defineProperty(exports, "defineInteractiveMessage", {
|
|
3355
|
+
enumerable: true,
|
|
3356
|
+
get: function() {
|
|
3357
|
+
return defineInteractiveMessage;
|
|
3358
|
+
}
|
|
3359
|
+
});
|
|
2901
3360
|
Object.defineProperty(exports, "deleteAllStatus", {
|
|
2902
3361
|
enumerable: true,
|
|
2903
3362
|
get: function() {
|
|
@@ -3552,6 +4011,12 @@ Object.defineProperty(exports, "sendImage", {
|
|
|
3552
4011
|
return sendImage;
|
|
3553
4012
|
}
|
|
3554
4013
|
});
|
|
4014
|
+
Object.defineProperty(exports, "sendInteractive", {
|
|
4015
|
+
enumerable: true,
|
|
4016
|
+
get: function() {
|
|
4017
|
+
return sendInteractive;
|
|
4018
|
+
}
|
|
4019
|
+
});
|
|
3555
4020
|
Object.defineProperty(exports, "sendLinkWithAutoPreview", {
|
|
3556
4021
|
enumerable: true,
|
|
3557
4022
|
get: function() {
|
|
@@ -3600,6 +4065,12 @@ Object.defineProperty(exports, "sendPtt", {
|
|
|
3600
4065
|
return sendPtt;
|
|
3601
4066
|
}
|
|
3602
4067
|
});
|
|
4068
|
+
Object.defineProperty(exports, "sendRawMessage", {
|
|
4069
|
+
enumerable: true,
|
|
4070
|
+
get: function() {
|
|
4071
|
+
return sendRawMessage;
|
|
4072
|
+
}
|
|
4073
|
+
});
|
|
3603
4074
|
Object.defineProperty(exports, "sendReplyWithMentions", {
|
|
3604
4075
|
enumerable: true,
|
|
3605
4076
|
get: function() {
|
|
@@ -3799,4 +4270,4 @@ Object.defineProperty(exports, "withNewMessagesOnlyParam", {
|
|
|
3799
4270
|
}
|
|
3800
4271
|
});
|
|
3801
4272
|
|
|
3802
|
-
//# sourceMappingURL=methods-
|
|
4273
|
+
//# sourceMappingURL=methods-DO0JONvB.cjs.map
|