zaileys 2.2.7 → 3.0.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/.agent/skills/codebase-mapper/SKILL.md +226 -0
- package/.agent/skills/context-compressor/SKILL.md +201 -0
- package/.agent/skills/context-fetch/SKILL.md +184 -0
- package/.agent/skills/context-health-monitor/SKILL.md +105 -0
- package/.agent/skills/debugger/SKILL.md +273 -0
- package/.agent/skills/empirical-validation/SKILL.md +97 -0
- package/.agent/skills/executor/SKILL.md +465 -0
- package/.agent/skills/plan-checker/SKILL.md +283 -0
- package/.agent/skills/planner/SKILL.md +485 -0
- package/.agent/skills/token-budget/SKILL.md +166 -0
- package/.agent/skills/verifier/SKILL.md +421 -0
- package/.agent/workflows/add-phase.md +96 -0
- package/.agent/workflows/add-todo.md +69 -0
- package/.agent/workflows/audit-milestone.md +107 -0
- package/.agent/workflows/check-todos.md +80 -0
- package/.agent/workflows/complete-milestone.md +135 -0
- package/.agent/workflows/debug.md +235 -0
- package/.agent/workflows/discuss-phase.md +103 -0
- package/.agent/workflows/execute.md +325 -0
- package/.agent/workflows/health.md +122 -0
- package/.agent/workflows/help.md +96 -0
- package/.agent/workflows/insert-phase.md +109 -0
- package/.agent/workflows/install.md +152 -0
- package/.agent/workflows/list-phase-assumptions.md +82 -0
- package/.agent/workflows/map.md +394 -0
- package/.agent/workflows/new-milestone.md +126 -0
- package/.agent/workflows/new-project.md +368 -0
- package/.agent/workflows/pause.md +176 -0
- package/.agent/workflows/plan-milestone-gaps.md +116 -0
- package/.agent/workflows/plan.md +380 -0
- package/.agent/workflows/progress.md +90 -0
- package/.agent/workflows/quick.md +128 -0
- package/.agent/workflows/remove-phase.md +139 -0
- package/.agent/workflows/research-phase.md +160 -0
- package/.agent/workflows/resume.md +131 -0
- package/.agent/workflows/update.md +203 -0
- package/.agent/workflows/verify.md +263 -0
- package/.agent/workflows/web-search.md +121 -0
- package/.agent/workflows/whats-new.md +80 -0
- package/.gemini/GEMINI.md +67 -0
- package/.gsd/DEBUG.md +26 -0
- package/.gsd/GSD-STYLE.md +272 -0
- package/.gsd/PROJECT_RULES.md +256 -0
- package/.gsd/ROADMAP.md +38 -0
- package/.gsd/SPEC.md +16 -0
- package/.gsd/STATE.md +10 -0
- package/.gsd/adapters/CLAUDE.md +77 -0
- package/.gsd/adapters/GEMINI.md +92 -0
- package/.gsd/adapters/GPT_OSS.md +130 -0
- package/.gsd/docs/model-selection-playbook.md +128 -0
- package/.gsd/docs/runbook.md +296 -0
- package/.gsd/docs/token-optimization-guide.md +207 -0
- package/.gsd/model_capabilities.yaml +108 -0
- package/.gsd/phases/1/1-PLAN.md +44 -0
- package/.gsd/phases/1/2-PLAN.md +54 -0
- package/.gsd/phases/1/3-PLAN.md +46 -0
- package/.gsd/phases/1/4-PLAN.md +39 -0
- package/.gsd/phases/2/2-1-SUMMARY.md +8 -0
- package/.gsd/phases/2/2-PLAN.md +47 -0
- package/.gsd/phases/3/3-1-SUMMARY.md +8 -0
- package/.gsd/phases/3/3-PLAN.md +43 -0
- package/.gsd/phases/4/4-1-PLAN.md +44 -0
- package/.gsd/phases/4/4-1-SUMMARY.md +8 -0
- package/.gsd/phases/4/4-2-PLAN.md +59 -0
- package/.gsd/phases/4/4-2-SUMMARY.md +8 -0
- package/.gsd/phases/4/4-3-PLAN.md +42 -0
- package/.gsd/phases/4/4-3-SUMMARY.md +8 -0
- package/.gsd/phases/4/VERIFICATION.md +8 -0
- package/.gsd/phases/5/1-SUMMARY.md +5 -0
- package/.gsd/phases/5/5-PLAN.md +47 -0
- package/.gsd/phases/5/RESEARCH.md +24 -0
- package/.gsd/phases/5/VERIFICATION.md +8 -0
- package/.gsd/phases/6/1-SUMMARY.md +6 -0
- package/.gsd/phases/6/6-PLAN.md +46 -0
- package/.gsd/phases/6/RESEARCH.md +33 -0
- package/.gsd/phases/6/VERIFICATION.md +7 -0
- package/.gsd/phases/7/1-SUMMARY.md +12 -0
- package/.gsd/phases/7/7-PLAN.md +78 -0
- package/.gsd/phases/7/VERIFICATION.md +7 -0
- package/.gsd/templates/DEBUG.md +123 -0
- package/.gsd/templates/PLAN.md +90 -0
- package/.gsd/templates/RESEARCH.md +75 -0
- package/.gsd/templates/SUMMARY.md +103 -0
- package/.gsd/templates/UAT.md +168 -0
- package/.gsd/templates/VERIFICATION.md +70 -0
- package/.gsd/templates/architecture.md +67 -0
- package/.gsd/templates/context.md +91 -0
- package/.gsd/templates/decisions.md +37 -0
- package/.gsd/templates/discovery.md +122 -0
- package/.gsd/templates/journal.md +46 -0
- package/.gsd/templates/milestone.md +91 -0
- package/.gsd/templates/phase-summary.md +52 -0
- package/.gsd/templates/project.md +124 -0
- package/.gsd/templates/requirements.md +92 -0
- package/.gsd/templates/roadmap.md +103 -0
- package/.gsd/templates/spec.md +51 -0
- package/.gsd/templates/sprint.md +57 -0
- package/.gsd/templates/stack.md +62 -0
- package/.gsd/templates/state.md +92 -0
- package/.gsd/templates/state_snapshot.md +132 -0
- package/.gsd/templates/todo.md +32 -0
- package/.gsd/templates/token_report.md +79 -0
- package/.gsd/templates/user-setup.md +116 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +1 -0
- package/LICENSE +21 -21
- package/README.MD +1280 -1230
- package/commitlint.config.js +3 -0
- package/dist/index.d.mts +1397 -908
- package/dist/index.d.ts +1397 -908
- package/dist/index.js +29 -28
- package/dist/index.mjs +29 -28
- package/package.json +11 -27
- package/tsconfig.json +19 -19
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as baileys from 'baileys';
|
|
2
2
|
import baileys__default, { AuthenticationState, WAMessage, proto, ParticipantAction, WAPrivacyValue, WAPrivacyOnlineValue, WAReadReceiptsValue, WAPrivacyGroupAddValue } from 'baileys';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { RootDatabase } from 'lmdb';
|
|
4
|
+
import * as v from 'valibot';
|
|
5
5
|
import pino from 'pino';
|
|
6
6
|
import Stream from 'stream';
|
|
7
|
-
|
|
7
|
+
export * from '@zaadevofc/media-process';
|
|
8
8
|
|
|
9
9
|
declare const useAuthState: (folder: string) => Promise<{
|
|
10
10
|
state: AuthenticationState;
|
|
@@ -24,128 +24,858 @@ declare class HealthManager {
|
|
|
24
24
|
private client;
|
|
25
25
|
private keysDb;
|
|
26
26
|
constructor(client: Client);
|
|
27
|
-
private setupLogFilters;
|
|
28
27
|
repair(jid: string): Promise<void>;
|
|
29
28
|
get logger(): pino.Logger<never, boolean>;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
declare const SignalType:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
caption:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
type:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
31
|
+
declare const SignalType: v.PicklistSchema<["forward", "button", "edit", "delete"], undefined>;
|
|
32
|
+
declare const SignalOptionsType: v.UnionSchema<[v.StringSchema<undefined>, v.IntersectSchema<[v.UnionSchema<[v.LooseObjectSchema<{
|
|
33
|
+
readonly text: v.StringSchema<undefined>;
|
|
34
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
35
|
+
readonly image: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, v.CustomSchema<Buffer<ArrayBufferLike>, undefined>], undefined>;
|
|
36
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
38
|
+
readonly audio: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, v.CustomSchema<Buffer<ArrayBufferLike>, undefined>], undefined>;
|
|
39
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly ptt: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
42
|
+
readonly video: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, v.CustomSchema<Buffer<ArrayBufferLike>, undefined>], undefined>;
|
|
43
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly ptv: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
45
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
46
|
+
readonly sticker: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, v.CustomSchema<Buffer<ArrayBufferLike>, undefined>], undefined>;
|
|
47
|
+
readonly shape: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">, undefined>;
|
|
48
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
50
|
+
readonly document: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, v.CustomSchema<Buffer<ArrayBufferLike>, undefined>], undefined>;
|
|
51
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly fileName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
54
|
+
readonly location: v.OptionalSchema<v.ObjectSchema<{
|
|
55
|
+
readonly latitude: v.NumberSchema<undefined>;
|
|
56
|
+
readonly longitude: v.NumberSchema<undefined>;
|
|
57
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
58
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
+
}, undefined>, undefined>;
|
|
61
|
+
}, undefined>, v.LooseObjectSchema<{
|
|
62
|
+
readonly contacts: v.ObjectSchema<{
|
|
63
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly contacts: v.ArraySchema<v.ObjectSchema<{
|
|
65
|
+
readonly fullname: v.StringSchema<undefined>;
|
|
66
|
+
readonly phoneNumber: v.NumberSchema<undefined>;
|
|
67
|
+
readonly organization: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
68
|
+
}, undefined>, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
}, undefined>, v.ObjectSchema<{
|
|
71
|
+
readonly poll: v.ObjectSchema<{
|
|
72
|
+
readonly name: v.StringSchema<undefined>;
|
|
73
|
+
readonly answers: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
74
|
+
readonly isMultiple: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
}, undefined>], undefined>, Omit<v.ObjectSchema<{
|
|
77
|
+
readonly replied: v.OptionalSchema<v.CustomSchema<WAMessage, undefined>, undefined>;
|
|
78
|
+
readonly isForwardedMany: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
79
|
+
readonly isViewOnce: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
80
|
+
readonly banner: v.OptionalSchema<v.CustomSchema<proto.ContextInfo.IExternalAdReplyInfo, undefined>, undefined>;
|
|
81
|
+
readonly buttons: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
82
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
83
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
84
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
85
|
+
readonly id: v.StringSchema<undefined>;
|
|
86
|
+
readonly text: v.StringSchema<undefined>;
|
|
87
|
+
}, undefined>, undefined>;
|
|
88
|
+
}, undefined>, v.ObjectSchema<{
|
|
89
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
90
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
92
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
93
|
+
readonly id: v.StringSchema<undefined>;
|
|
94
|
+
readonly text: v.StringSchema<undefined>;
|
|
95
|
+
}, undefined>, v.ObjectSchema<{
|
|
96
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
97
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
98
|
+
readonly text: v.StringSchema<undefined>;
|
|
99
|
+
}, undefined>, v.ObjectSchema<{
|
|
100
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
101
|
+
readonly id: v.StringSchema<undefined>;
|
|
102
|
+
readonly copy: v.StringSchema<undefined>;
|
|
103
|
+
readonly text: v.StringSchema<undefined>;
|
|
104
|
+
}, undefined>, v.ObjectSchema<{
|
|
105
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
106
|
+
readonly text: v.StringSchema<undefined>;
|
|
107
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
108
|
+
}, undefined>, v.ObjectSchema<{
|
|
109
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
110
|
+
readonly text: v.StringSchema<undefined>;
|
|
111
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
112
|
+
readonly title: v.StringSchema<undefined>;
|
|
113
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
115
|
+
readonly id: v.StringSchema<undefined>;
|
|
116
|
+
readonly title: v.StringSchema<undefined>;
|
|
117
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
119
|
+
}, undefined>, undefined>;
|
|
120
|
+
}, undefined>, undefined>;
|
|
121
|
+
}, undefined>], undefined>, undefined>;
|
|
122
|
+
}, undefined>, v.ObjectSchema<{
|
|
123
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
124
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
125
|
+
readonly body: v.StringSchema<undefined>;
|
|
126
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
127
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
128
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
129
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
131
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
}, undefined>, undefined>;
|
|
134
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
135
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
136
|
+
readonly id: v.StringSchema<undefined>;
|
|
137
|
+
readonly text: v.StringSchema<undefined>;
|
|
138
|
+
}, undefined>, v.ObjectSchema<{
|
|
139
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
140
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
141
|
+
readonly text: v.StringSchema<undefined>;
|
|
142
|
+
}, undefined>, v.ObjectSchema<{
|
|
143
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
144
|
+
readonly id: v.StringSchema<undefined>;
|
|
145
|
+
readonly copy: v.StringSchema<undefined>;
|
|
146
|
+
readonly text: v.StringSchema<undefined>;
|
|
147
|
+
}, undefined>, v.ObjectSchema<{
|
|
148
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
149
|
+
readonly text: v.StringSchema<undefined>;
|
|
150
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
151
|
+
}, undefined>], undefined>, undefined>;
|
|
152
|
+
}, undefined>, undefined>;
|
|
153
|
+
}, undefined>], undefined>, undefined>;
|
|
154
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
155
|
+
readonly entries: Omit<{
|
|
156
|
+
readonly replied: v.OptionalSchema<v.CustomSchema<WAMessage, undefined>, undefined>;
|
|
157
|
+
readonly isForwardedMany: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
158
|
+
readonly isViewOnce: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
159
|
+
readonly banner: v.OptionalSchema<v.CustomSchema<proto.ContextInfo.IExternalAdReplyInfo, undefined>, undefined>;
|
|
160
|
+
readonly buttons: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
161
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
162
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
163
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
164
|
+
readonly id: v.StringSchema<undefined>;
|
|
165
|
+
readonly text: v.StringSchema<undefined>;
|
|
166
|
+
}, undefined>, undefined>;
|
|
167
|
+
}, undefined>, v.ObjectSchema<{
|
|
168
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
169
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
171
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
172
|
+
readonly id: v.StringSchema<undefined>;
|
|
173
|
+
readonly text: v.StringSchema<undefined>;
|
|
174
|
+
}, undefined>, v.ObjectSchema<{
|
|
175
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
176
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
177
|
+
readonly text: v.StringSchema<undefined>;
|
|
178
|
+
}, undefined>, v.ObjectSchema<{
|
|
179
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
180
|
+
readonly id: v.StringSchema<undefined>;
|
|
181
|
+
readonly copy: v.StringSchema<undefined>;
|
|
182
|
+
readonly text: v.StringSchema<undefined>;
|
|
183
|
+
}, undefined>, v.ObjectSchema<{
|
|
184
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
185
|
+
readonly text: v.StringSchema<undefined>;
|
|
186
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
187
|
+
}, undefined>, v.ObjectSchema<{
|
|
188
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
189
|
+
readonly text: v.StringSchema<undefined>;
|
|
190
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
191
|
+
readonly title: v.StringSchema<undefined>;
|
|
192
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
193
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
194
|
+
readonly id: v.StringSchema<undefined>;
|
|
195
|
+
readonly title: v.StringSchema<undefined>;
|
|
196
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
198
|
+
}, undefined>, undefined>;
|
|
199
|
+
}, undefined>, undefined>;
|
|
200
|
+
}, undefined>], undefined>, undefined>;
|
|
201
|
+
}, undefined>, v.ObjectSchema<{
|
|
202
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
203
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
204
|
+
readonly body: v.StringSchema<undefined>;
|
|
205
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
206
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
207
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
208
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
209
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
210
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
211
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
+
}, undefined>, undefined>;
|
|
213
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
214
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
215
|
+
readonly id: v.StringSchema<undefined>;
|
|
216
|
+
readonly text: v.StringSchema<undefined>;
|
|
217
|
+
}, undefined>, v.ObjectSchema<{
|
|
218
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
219
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
220
|
+
readonly text: v.StringSchema<undefined>;
|
|
221
|
+
}, undefined>, v.ObjectSchema<{
|
|
222
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
223
|
+
readonly id: v.StringSchema<undefined>;
|
|
224
|
+
readonly copy: v.StringSchema<undefined>;
|
|
225
|
+
readonly text: v.StringSchema<undefined>;
|
|
226
|
+
}, undefined>, v.ObjectSchema<{
|
|
227
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
228
|
+
readonly text: v.StringSchema<undefined>;
|
|
229
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
230
|
+
}, undefined>], undefined>, undefined>;
|
|
231
|
+
}, undefined>, undefined>;
|
|
232
|
+
}, undefined>], undefined>, undefined>;
|
|
233
|
+
}, "buttons">;
|
|
234
|
+
readonly "~standard": v.StandardProps<{
|
|
235
|
+
isViewOnce?: boolean;
|
|
236
|
+
replied?: proto.IWebMessageInfo & {
|
|
237
|
+
key: baileys.WAMessageKey;
|
|
238
|
+
messageStubParameters?: any;
|
|
239
|
+
category?: string;
|
|
240
|
+
retryCount?: number;
|
|
241
|
+
};
|
|
242
|
+
isForwardedMany?: boolean;
|
|
243
|
+
banner?: proto.ContextInfo.IExternalAdReplyInfo;
|
|
244
|
+
}, {
|
|
245
|
+
isViewOnce?: boolean;
|
|
246
|
+
replied?: proto.IWebMessageInfo & {
|
|
247
|
+
key: baileys.WAMessageKey;
|
|
248
|
+
messageStubParameters?: any;
|
|
249
|
+
category?: string;
|
|
250
|
+
retryCount?: number;
|
|
251
|
+
};
|
|
252
|
+
isForwardedMany?: boolean;
|
|
253
|
+
banner?: proto.ContextInfo.IExternalAdReplyInfo;
|
|
254
|
+
}>;
|
|
255
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
256
|
+
isViewOnce?: boolean;
|
|
257
|
+
replied?: proto.IWebMessageInfo & {
|
|
258
|
+
key: baileys.WAMessageKey;
|
|
259
|
+
messageStubParameters?: any;
|
|
260
|
+
category?: string;
|
|
261
|
+
retryCount?: number;
|
|
262
|
+
};
|
|
263
|
+
isForwardedMany?: boolean;
|
|
264
|
+
banner?: proto.ContextInfo.IExternalAdReplyInfo;
|
|
265
|
+
}, v.ObjectIssue | v.BooleanIssue | v.CustomIssue>;
|
|
266
|
+
readonly "~types"?: {
|
|
267
|
+
readonly input: {
|
|
268
|
+
isViewOnce?: boolean;
|
|
269
|
+
replied?: proto.IWebMessageInfo & {
|
|
270
|
+
key: baileys.WAMessageKey;
|
|
271
|
+
messageStubParameters?: any;
|
|
272
|
+
category?: string;
|
|
273
|
+
retryCount?: number;
|
|
274
|
+
};
|
|
275
|
+
isForwardedMany?: boolean;
|
|
276
|
+
banner?: proto.ContextInfo.IExternalAdReplyInfo;
|
|
277
|
+
};
|
|
278
|
+
readonly output: {
|
|
279
|
+
isViewOnce?: boolean;
|
|
280
|
+
replied?: proto.IWebMessageInfo & {
|
|
281
|
+
key: baileys.WAMessageKey;
|
|
282
|
+
messageStubParameters?: any;
|
|
283
|
+
category?: string;
|
|
284
|
+
retryCount?: number;
|
|
285
|
+
};
|
|
286
|
+
isForwardedMany?: boolean;
|
|
287
|
+
banner?: proto.ContextInfo.IExternalAdReplyInfo;
|
|
288
|
+
};
|
|
289
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue | v.CustomIssue;
|
|
290
|
+
};
|
|
291
|
+
}], undefined>], undefined>;
|
|
292
|
+
declare const ButtonOptionsType: v.IntersectSchema<[v.LooseObjectSchema<{
|
|
293
|
+
readonly text: v.StringSchema<undefined>;
|
|
294
|
+
}, undefined>, Omit<v.ObjectSchema<{
|
|
295
|
+
readonly replied: v.OptionalSchema<v.CustomSchema<WAMessage, undefined>, undefined>;
|
|
296
|
+
readonly isForwardedMany: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
297
|
+
readonly isViewOnce: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
298
|
+
readonly banner: v.OptionalSchema<v.CustomSchema<proto.ContextInfo.IExternalAdReplyInfo, undefined>, undefined>;
|
|
299
|
+
readonly buttons: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
300
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
301
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
302
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
303
|
+
readonly id: v.StringSchema<undefined>;
|
|
304
|
+
readonly text: v.StringSchema<undefined>;
|
|
305
|
+
}, undefined>, undefined>;
|
|
306
|
+
}, undefined>, v.ObjectSchema<{
|
|
307
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
308
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
309
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
310
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
311
|
+
readonly id: v.StringSchema<undefined>;
|
|
312
|
+
readonly text: v.StringSchema<undefined>;
|
|
313
|
+
}, undefined>, v.ObjectSchema<{
|
|
314
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
315
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
316
|
+
readonly text: v.StringSchema<undefined>;
|
|
317
|
+
}, undefined>, v.ObjectSchema<{
|
|
318
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
319
|
+
readonly id: v.StringSchema<undefined>;
|
|
320
|
+
readonly copy: v.StringSchema<undefined>;
|
|
321
|
+
readonly text: v.StringSchema<undefined>;
|
|
322
|
+
}, undefined>, v.ObjectSchema<{
|
|
323
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
324
|
+
readonly text: v.StringSchema<undefined>;
|
|
325
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
326
|
+
}, undefined>, v.ObjectSchema<{
|
|
327
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
328
|
+
readonly text: v.StringSchema<undefined>;
|
|
329
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
330
|
+
readonly title: v.StringSchema<undefined>;
|
|
331
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
332
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
333
|
+
readonly id: v.StringSchema<undefined>;
|
|
334
|
+
readonly title: v.StringSchema<undefined>;
|
|
335
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
336
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
337
|
+
}, undefined>, undefined>;
|
|
338
|
+
}, undefined>, undefined>;
|
|
339
|
+
}, undefined>], undefined>, undefined>;
|
|
340
|
+
}, undefined>, v.ObjectSchema<{
|
|
341
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
342
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
343
|
+
readonly body: v.StringSchema<undefined>;
|
|
344
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
345
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
346
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
347
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
348
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
349
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
350
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
351
|
+
}, undefined>, undefined>;
|
|
352
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
353
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
354
|
+
readonly id: v.StringSchema<undefined>;
|
|
355
|
+
readonly text: v.StringSchema<undefined>;
|
|
356
|
+
}, undefined>, v.ObjectSchema<{
|
|
357
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
358
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
359
|
+
readonly text: v.StringSchema<undefined>;
|
|
360
|
+
}, undefined>, v.ObjectSchema<{
|
|
361
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
362
|
+
readonly id: v.StringSchema<undefined>;
|
|
363
|
+
readonly copy: v.StringSchema<undefined>;
|
|
364
|
+
readonly text: v.StringSchema<undefined>;
|
|
365
|
+
}, undefined>, v.ObjectSchema<{
|
|
366
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
367
|
+
readonly text: v.StringSchema<undefined>;
|
|
368
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
369
|
+
}, undefined>], undefined>, undefined>;
|
|
370
|
+
}, undefined>, undefined>;
|
|
371
|
+
}, undefined>], undefined>, undefined>;
|
|
372
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
373
|
+
readonly entries: Omit<{
|
|
374
|
+
readonly replied: v.OptionalSchema<v.CustomSchema<WAMessage, undefined>, undefined>;
|
|
375
|
+
readonly isForwardedMany: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
376
|
+
readonly isViewOnce: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
377
|
+
readonly banner: v.OptionalSchema<v.CustomSchema<proto.ContextInfo.IExternalAdReplyInfo, undefined>, undefined>;
|
|
378
|
+
readonly buttons: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
379
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
380
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
381
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
382
|
+
readonly id: v.StringSchema<undefined>;
|
|
383
|
+
readonly text: v.StringSchema<undefined>;
|
|
384
|
+
}, undefined>, undefined>;
|
|
385
|
+
}, undefined>, v.ObjectSchema<{
|
|
386
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
387
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
388
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
389
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
390
|
+
readonly id: v.StringSchema<undefined>;
|
|
391
|
+
readonly text: v.StringSchema<undefined>;
|
|
392
|
+
}, undefined>, v.ObjectSchema<{
|
|
393
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
394
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
395
|
+
readonly text: v.StringSchema<undefined>;
|
|
396
|
+
}, undefined>, v.ObjectSchema<{
|
|
397
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
398
|
+
readonly id: v.StringSchema<undefined>;
|
|
399
|
+
readonly copy: v.StringSchema<undefined>;
|
|
400
|
+
readonly text: v.StringSchema<undefined>;
|
|
401
|
+
}, undefined>, v.ObjectSchema<{
|
|
402
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
403
|
+
readonly text: v.StringSchema<undefined>;
|
|
404
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
405
|
+
}, undefined>, v.ObjectSchema<{
|
|
406
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
407
|
+
readonly text: v.StringSchema<undefined>;
|
|
408
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
409
|
+
readonly title: v.StringSchema<undefined>;
|
|
410
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
412
|
+
readonly id: v.StringSchema<undefined>;
|
|
413
|
+
readonly title: v.StringSchema<undefined>;
|
|
414
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
415
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
416
|
+
}, undefined>, undefined>;
|
|
417
|
+
}, undefined>, undefined>;
|
|
418
|
+
}, undefined>], undefined>, undefined>;
|
|
419
|
+
}, undefined>, v.ObjectSchema<{
|
|
420
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
421
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
422
|
+
readonly body: v.StringSchema<undefined>;
|
|
423
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
424
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
425
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
426
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
427
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
428
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
429
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
430
|
+
}, undefined>, undefined>;
|
|
431
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
432
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
433
|
+
readonly id: v.StringSchema<undefined>;
|
|
434
|
+
readonly text: v.StringSchema<undefined>;
|
|
435
|
+
}, undefined>, v.ObjectSchema<{
|
|
436
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
437
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
438
|
+
readonly text: v.StringSchema<undefined>;
|
|
439
|
+
}, undefined>, v.ObjectSchema<{
|
|
440
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
441
|
+
readonly id: v.StringSchema<undefined>;
|
|
442
|
+
readonly copy: v.StringSchema<undefined>;
|
|
443
|
+
readonly text: v.StringSchema<undefined>;
|
|
444
|
+
}, undefined>, v.ObjectSchema<{
|
|
445
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
446
|
+
readonly text: v.StringSchema<undefined>;
|
|
447
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
448
|
+
}, undefined>], undefined>, undefined>;
|
|
449
|
+
}, undefined>, undefined>;
|
|
450
|
+
}, undefined>], undefined>, undefined>;
|
|
451
|
+
}, "banner">;
|
|
452
|
+
readonly "~standard": v.StandardProps<{
|
|
453
|
+
buttons?: {
|
|
454
|
+
type: "simple";
|
|
455
|
+
footer?: string;
|
|
456
|
+
data: {
|
|
457
|
+
id: string;
|
|
458
|
+
text: string;
|
|
459
|
+
}[];
|
|
460
|
+
} | {
|
|
461
|
+
type: "interactive";
|
|
462
|
+
footer?: string;
|
|
463
|
+
data: ({
|
|
464
|
+
type: "quick_reply";
|
|
465
|
+
id: string;
|
|
466
|
+
text: string;
|
|
467
|
+
} | {
|
|
468
|
+
type: "cta_url";
|
|
469
|
+
url: string;
|
|
470
|
+
text: string;
|
|
471
|
+
} | {
|
|
472
|
+
type: "cta_copy";
|
|
473
|
+
id: string;
|
|
474
|
+
copy: string;
|
|
475
|
+
text: string;
|
|
476
|
+
} | {
|
|
477
|
+
type: "cta_call";
|
|
478
|
+
text: string;
|
|
479
|
+
phoneNumber: string;
|
|
480
|
+
} | {
|
|
481
|
+
type: "single_select";
|
|
482
|
+
text: string;
|
|
483
|
+
section: {
|
|
484
|
+
title: string;
|
|
485
|
+
highlight_label?: string;
|
|
486
|
+
rows: {
|
|
487
|
+
id: string;
|
|
488
|
+
title: string;
|
|
489
|
+
header?: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
}[];
|
|
492
|
+
}[];
|
|
493
|
+
})[];
|
|
494
|
+
} | {
|
|
495
|
+
type: "carousel";
|
|
496
|
+
data: {
|
|
497
|
+
body: string;
|
|
498
|
+
footer?: string;
|
|
499
|
+
header?: {
|
|
500
|
+
title?: string;
|
|
501
|
+
subtitle?: string;
|
|
502
|
+
hasMediaAttachment?: boolean;
|
|
503
|
+
image?: string;
|
|
504
|
+
video?: string;
|
|
505
|
+
};
|
|
506
|
+
nativeFlow: ({
|
|
507
|
+
type: "quick_reply";
|
|
508
|
+
id: string;
|
|
509
|
+
text: string;
|
|
510
|
+
} | {
|
|
511
|
+
type: "cta_url";
|
|
512
|
+
url: string;
|
|
513
|
+
text: string;
|
|
514
|
+
} | {
|
|
515
|
+
type: "cta_copy";
|
|
516
|
+
id: string;
|
|
517
|
+
copy: string;
|
|
518
|
+
text: string;
|
|
519
|
+
} | {
|
|
520
|
+
type: "cta_call";
|
|
521
|
+
text: string;
|
|
522
|
+
phoneNumber: string;
|
|
523
|
+
})[];
|
|
524
|
+
}[];
|
|
525
|
+
};
|
|
526
|
+
isViewOnce?: boolean;
|
|
527
|
+
replied?: proto.IWebMessageInfo & {
|
|
528
|
+
key: baileys.WAMessageKey;
|
|
529
|
+
messageStubParameters?: any;
|
|
530
|
+
category?: string;
|
|
531
|
+
retryCount?: number;
|
|
532
|
+
};
|
|
533
|
+
isForwardedMany?: boolean;
|
|
534
|
+
}, {
|
|
535
|
+
buttons?: {
|
|
536
|
+
type: "simple";
|
|
537
|
+
footer?: string;
|
|
538
|
+
data: {
|
|
539
|
+
id: string;
|
|
540
|
+
text: string;
|
|
541
|
+
}[];
|
|
542
|
+
} | {
|
|
543
|
+
type: "interactive";
|
|
544
|
+
footer?: string;
|
|
545
|
+
data: ({
|
|
546
|
+
type: "quick_reply";
|
|
547
|
+
id: string;
|
|
548
|
+
text: string;
|
|
549
|
+
} | {
|
|
550
|
+
type: "cta_url";
|
|
551
|
+
url: string;
|
|
552
|
+
text: string;
|
|
553
|
+
} | {
|
|
554
|
+
type: "cta_copy";
|
|
555
|
+
id: string;
|
|
556
|
+
copy: string;
|
|
557
|
+
text: string;
|
|
558
|
+
} | {
|
|
559
|
+
type: "cta_call";
|
|
560
|
+
text: string;
|
|
561
|
+
phoneNumber: string;
|
|
562
|
+
} | {
|
|
563
|
+
type: "single_select";
|
|
564
|
+
text: string;
|
|
565
|
+
section: {
|
|
566
|
+
title: string;
|
|
567
|
+
highlight_label?: string;
|
|
568
|
+
rows: {
|
|
569
|
+
id: string;
|
|
570
|
+
title: string;
|
|
571
|
+
header?: string;
|
|
572
|
+
description?: string;
|
|
573
|
+
}[];
|
|
574
|
+
}[];
|
|
575
|
+
})[];
|
|
576
|
+
} | {
|
|
577
|
+
type: "carousel";
|
|
578
|
+
data: {
|
|
579
|
+
body: string;
|
|
580
|
+
footer?: string;
|
|
581
|
+
header?: {
|
|
582
|
+
title?: string;
|
|
583
|
+
subtitle?: string;
|
|
584
|
+
hasMediaAttachment?: boolean;
|
|
585
|
+
image?: string;
|
|
586
|
+
video?: string;
|
|
587
|
+
};
|
|
588
|
+
nativeFlow: ({
|
|
589
|
+
type: "quick_reply";
|
|
590
|
+
id: string;
|
|
591
|
+
text: string;
|
|
592
|
+
} | {
|
|
593
|
+
type: "cta_url";
|
|
594
|
+
url: string;
|
|
595
|
+
text: string;
|
|
596
|
+
} | {
|
|
597
|
+
type: "cta_copy";
|
|
598
|
+
id: string;
|
|
599
|
+
copy: string;
|
|
600
|
+
text: string;
|
|
601
|
+
} | {
|
|
602
|
+
type: "cta_call";
|
|
603
|
+
text: string;
|
|
604
|
+
phoneNumber: string;
|
|
605
|
+
})[];
|
|
606
|
+
}[];
|
|
607
|
+
};
|
|
608
|
+
isViewOnce?: boolean;
|
|
609
|
+
replied?: proto.IWebMessageInfo & {
|
|
610
|
+
key: baileys.WAMessageKey;
|
|
611
|
+
messageStubParameters?: any;
|
|
612
|
+
category?: string;
|
|
613
|
+
retryCount?: number;
|
|
614
|
+
};
|
|
615
|
+
isForwardedMany?: boolean;
|
|
616
|
+
}>;
|
|
617
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
618
|
+
buttons?: {
|
|
619
|
+
type: "simple";
|
|
620
|
+
footer?: string;
|
|
621
|
+
data: {
|
|
622
|
+
id: string;
|
|
623
|
+
text: string;
|
|
624
|
+
}[];
|
|
625
|
+
} | {
|
|
626
|
+
type: "interactive";
|
|
627
|
+
footer?: string;
|
|
628
|
+
data: ({
|
|
629
|
+
type: "quick_reply";
|
|
630
|
+
id: string;
|
|
631
|
+
text: string;
|
|
632
|
+
} | {
|
|
633
|
+
type: "cta_url";
|
|
634
|
+
url: string;
|
|
635
|
+
text: string;
|
|
636
|
+
} | {
|
|
637
|
+
type: "cta_copy";
|
|
638
|
+
id: string;
|
|
639
|
+
copy: string;
|
|
640
|
+
text: string;
|
|
641
|
+
} | {
|
|
642
|
+
type: "cta_call";
|
|
643
|
+
text: string;
|
|
644
|
+
phoneNumber: string;
|
|
645
|
+
} | {
|
|
646
|
+
type: "single_select";
|
|
647
|
+
text: string;
|
|
648
|
+
section: {
|
|
649
|
+
title: string;
|
|
650
|
+
highlight_label?: string;
|
|
651
|
+
rows: {
|
|
652
|
+
id: string;
|
|
653
|
+
title: string;
|
|
654
|
+
header?: string;
|
|
655
|
+
description?: string;
|
|
656
|
+
}[];
|
|
657
|
+
}[];
|
|
658
|
+
})[];
|
|
659
|
+
} | {
|
|
660
|
+
type: "carousel";
|
|
661
|
+
data: {
|
|
662
|
+
body: string;
|
|
663
|
+
footer?: string;
|
|
664
|
+
header?: {
|
|
665
|
+
title?: string;
|
|
666
|
+
subtitle?: string;
|
|
667
|
+
hasMediaAttachment?: boolean;
|
|
668
|
+
image?: string;
|
|
669
|
+
video?: string;
|
|
670
|
+
};
|
|
671
|
+
nativeFlow: ({
|
|
672
|
+
type: "quick_reply";
|
|
673
|
+
id: string;
|
|
674
|
+
text: string;
|
|
675
|
+
} | {
|
|
676
|
+
type: "cta_url";
|
|
677
|
+
url: string;
|
|
678
|
+
text: string;
|
|
679
|
+
} | {
|
|
680
|
+
type: "cta_copy";
|
|
681
|
+
id: string;
|
|
682
|
+
copy: string;
|
|
683
|
+
text: string;
|
|
684
|
+
} | {
|
|
685
|
+
type: "cta_call";
|
|
686
|
+
text: string;
|
|
687
|
+
phoneNumber: string;
|
|
688
|
+
})[];
|
|
689
|
+
}[];
|
|
690
|
+
};
|
|
691
|
+
isViewOnce?: boolean;
|
|
692
|
+
replied?: proto.IWebMessageInfo & {
|
|
693
|
+
key: baileys.WAMessageKey;
|
|
694
|
+
messageStubParameters?: any;
|
|
695
|
+
category?: string;
|
|
696
|
+
retryCount?: number;
|
|
697
|
+
};
|
|
698
|
+
isForwardedMany?: boolean;
|
|
699
|
+
}, v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.BooleanIssue | v.CustomIssue | v.UrlIssue<string> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.BooleanIssue | v.UrlIssue<string> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.UrlIssue<string>>>>;
|
|
700
|
+
readonly "~types"?: {
|
|
701
|
+
readonly input: {
|
|
702
|
+
buttons?: {
|
|
703
|
+
type: "simple";
|
|
704
|
+
footer?: string;
|
|
705
|
+
data: {
|
|
706
|
+
id: string;
|
|
707
|
+
text: string;
|
|
708
|
+
}[];
|
|
709
|
+
} | {
|
|
710
|
+
type: "interactive";
|
|
711
|
+
footer?: string;
|
|
712
|
+
data: ({
|
|
713
|
+
type: "quick_reply";
|
|
714
|
+
id: string;
|
|
715
|
+
text: string;
|
|
716
|
+
} | {
|
|
717
|
+
type: "cta_url";
|
|
718
|
+
url: string;
|
|
719
|
+
text: string;
|
|
720
|
+
} | {
|
|
721
|
+
type: "cta_copy";
|
|
722
|
+
id: string;
|
|
723
|
+
copy: string;
|
|
724
|
+
text: string;
|
|
725
|
+
} | {
|
|
726
|
+
type: "cta_call";
|
|
727
|
+
text: string;
|
|
728
|
+
phoneNumber: string;
|
|
729
|
+
} | {
|
|
730
|
+
type: "single_select";
|
|
731
|
+
text: string;
|
|
732
|
+
section: {
|
|
733
|
+
title: string;
|
|
734
|
+
highlight_label?: string;
|
|
735
|
+
rows: {
|
|
736
|
+
id: string;
|
|
737
|
+
title: string;
|
|
738
|
+
header?: string;
|
|
739
|
+
description?: string;
|
|
740
|
+
}[];
|
|
741
|
+
}[];
|
|
742
|
+
})[];
|
|
743
|
+
} | {
|
|
744
|
+
type: "carousel";
|
|
745
|
+
data: {
|
|
746
|
+
body: string;
|
|
747
|
+
footer?: string;
|
|
748
|
+
header?: {
|
|
749
|
+
title?: string;
|
|
750
|
+
subtitle?: string;
|
|
751
|
+
hasMediaAttachment?: boolean;
|
|
752
|
+
image?: string;
|
|
753
|
+
video?: string;
|
|
754
|
+
};
|
|
755
|
+
nativeFlow: ({
|
|
756
|
+
type: "quick_reply";
|
|
757
|
+
id: string;
|
|
758
|
+
text: string;
|
|
759
|
+
} | {
|
|
760
|
+
type: "cta_url";
|
|
761
|
+
url: string;
|
|
762
|
+
text: string;
|
|
763
|
+
} | {
|
|
764
|
+
type: "cta_copy";
|
|
765
|
+
id: string;
|
|
766
|
+
copy: string;
|
|
767
|
+
text: string;
|
|
768
|
+
} | {
|
|
769
|
+
type: "cta_call";
|
|
770
|
+
text: string;
|
|
771
|
+
phoneNumber: string;
|
|
772
|
+
})[];
|
|
773
|
+
}[];
|
|
774
|
+
};
|
|
775
|
+
isViewOnce?: boolean;
|
|
776
|
+
replied?: proto.IWebMessageInfo & {
|
|
777
|
+
key: baileys.WAMessageKey;
|
|
778
|
+
messageStubParameters?: any;
|
|
779
|
+
category?: string;
|
|
780
|
+
retryCount?: number;
|
|
781
|
+
};
|
|
782
|
+
isForwardedMany?: boolean;
|
|
783
|
+
};
|
|
784
|
+
readonly output: {
|
|
785
|
+
buttons?: {
|
|
786
|
+
type: "simple";
|
|
787
|
+
footer?: string;
|
|
788
|
+
data: {
|
|
789
|
+
id: string;
|
|
790
|
+
text: string;
|
|
791
|
+
}[];
|
|
792
|
+
} | {
|
|
793
|
+
type: "interactive";
|
|
794
|
+
footer?: string;
|
|
795
|
+
data: ({
|
|
796
|
+
type: "quick_reply";
|
|
797
|
+
id: string;
|
|
798
|
+
text: string;
|
|
799
|
+
} | {
|
|
800
|
+
type: "cta_url";
|
|
801
|
+
url: string;
|
|
802
|
+
text: string;
|
|
803
|
+
} | {
|
|
804
|
+
type: "cta_copy";
|
|
805
|
+
id: string;
|
|
806
|
+
copy: string;
|
|
807
|
+
text: string;
|
|
808
|
+
} | {
|
|
809
|
+
type: "cta_call";
|
|
810
|
+
text: string;
|
|
811
|
+
phoneNumber: string;
|
|
812
|
+
} | {
|
|
813
|
+
type: "single_select";
|
|
814
|
+
text: string;
|
|
815
|
+
section: {
|
|
816
|
+
title: string;
|
|
817
|
+
highlight_label?: string;
|
|
818
|
+
rows: {
|
|
819
|
+
id: string;
|
|
820
|
+
title: string;
|
|
821
|
+
header?: string;
|
|
822
|
+
description?: string;
|
|
823
|
+
}[];
|
|
824
|
+
}[];
|
|
825
|
+
})[];
|
|
826
|
+
} | {
|
|
827
|
+
type: "carousel";
|
|
828
|
+
data: {
|
|
829
|
+
body: string;
|
|
830
|
+
footer?: string;
|
|
831
|
+
header?: {
|
|
832
|
+
title?: string;
|
|
833
|
+
subtitle?: string;
|
|
834
|
+
hasMediaAttachment?: boolean;
|
|
835
|
+
image?: string;
|
|
836
|
+
video?: string;
|
|
837
|
+
};
|
|
838
|
+
nativeFlow: ({
|
|
839
|
+
type: "quick_reply";
|
|
840
|
+
id: string;
|
|
841
|
+
text: string;
|
|
842
|
+
} | {
|
|
843
|
+
type: "cta_url";
|
|
844
|
+
url: string;
|
|
845
|
+
text: string;
|
|
846
|
+
} | {
|
|
847
|
+
type: "cta_copy";
|
|
848
|
+
id: string;
|
|
849
|
+
copy: string;
|
|
850
|
+
text: string;
|
|
851
|
+
} | {
|
|
852
|
+
type: "cta_call";
|
|
853
|
+
text: string;
|
|
854
|
+
phoneNumber: string;
|
|
855
|
+
})[];
|
|
856
|
+
}[];
|
|
857
|
+
};
|
|
858
|
+
isViewOnce?: boolean;
|
|
859
|
+
replied?: proto.IWebMessageInfo & {
|
|
860
|
+
key: baileys.WAMessageKey;
|
|
861
|
+
messageStubParameters?: any;
|
|
862
|
+
category?: string;
|
|
863
|
+
retryCount?: number;
|
|
864
|
+
};
|
|
865
|
+
isForwardedMany?: boolean;
|
|
866
|
+
};
|
|
867
|
+
readonly issue: v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.BooleanIssue | v.CustomIssue | v.UrlIssue<string> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.BooleanIssue | v.UrlIssue<string> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.ArrayIssue | v.UrlIssue<string>> | v.UnionIssue<v.ObjectIssue | v.LiteralIssue | v.StringIssue | v.UrlIssue<string>>>;
|
|
868
|
+
};
|
|
869
|
+
}], undefined>;
|
|
140
870
|
|
|
141
871
|
declare class Signal {
|
|
142
872
|
protected client: Client;
|
|
143
873
|
constructor(client: Client);
|
|
144
|
-
protected signal(roomId: string, options:
|
|
145
|
-
send(roomId: string, options:
|
|
146
|
-
forward(roomId: string, options:
|
|
147
|
-
button(roomId: string, options:
|
|
148
|
-
edit(message: WAMessage, options:
|
|
874
|
+
protected signal(roomId: string, options: v.InferInput<typeof SignalOptionsType> | any, type?: v.InferInput<typeof SignalType>, message?: WAMessage): Promise<WAMessage>;
|
|
875
|
+
send(roomId: string, options: v.InferInput<typeof SignalOptionsType>): Promise<WAMessage>;
|
|
876
|
+
forward(roomId: string, options: v.InferInput<typeof SignalOptionsType>): Promise<WAMessage>;
|
|
877
|
+
button(roomId: string, options: v.InferInput<typeof ButtonOptionsType>): Promise<WAMessage>;
|
|
878
|
+
edit(message: WAMessage, options: v.InferInput<typeof SignalOptionsType>): Promise<WAMessage>;
|
|
149
879
|
delete(message: WAMessage | WAMessage[]): Promise<WAMessage | (baileys.proto.IWebMessageInfo & {
|
|
150
880
|
key: baileys.WAMessageKey;
|
|
151
881
|
messageStubParameters?: any;
|
|
@@ -272,735 +1002,544 @@ declare class SignalPrivacy {
|
|
|
272
1002
|
constructor(plient: Client);
|
|
273
1003
|
}
|
|
274
1004
|
|
|
275
|
-
declare const ListenerCallsType:
|
|
276
|
-
callId:
|
|
277
|
-
callerId:
|
|
278
|
-
roomId:
|
|
279
|
-
roomName:
|
|
280
|
-
date:
|
|
281
|
-
offline:
|
|
282
|
-
status:
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
terminate: "terminate";
|
|
288
|
-
timeout: "timeout";
|
|
289
|
-
}>;
|
|
290
|
-
isVideo: z.ZodBoolean;
|
|
291
|
-
isGroup: z.ZodBoolean;
|
|
292
|
-
}, z.core.$strip>;
|
|
293
|
-
type CallsContext = z.infer<typeof ListenerCallsType>;
|
|
1005
|
+
declare const ListenerCallsType: v.ObjectSchema<{
|
|
1006
|
+
readonly callId: v.StringSchema<undefined>;
|
|
1007
|
+
readonly callerId: v.StringSchema<undefined>;
|
|
1008
|
+
readonly roomId: v.StringSchema<undefined>;
|
|
1009
|
+
readonly roomName: v.StringSchema<undefined>;
|
|
1010
|
+
readonly date: v.DateSchema<undefined>;
|
|
1011
|
+
readonly offline: v.BooleanSchema<undefined>;
|
|
1012
|
+
readonly status: v.PicklistSchema<["accept", "offer", "reject", "ringing", "terminate", "timeout"], undefined>;
|
|
1013
|
+
readonly isVideo: v.BooleanSchema<undefined>;
|
|
1014
|
+
readonly isGroup: v.BooleanSchema<undefined>;
|
|
1015
|
+
}, undefined>;
|
|
1016
|
+
type CallsContext = v.InferOutput<typeof ListenerCallsType>;
|
|
294
1017
|
|
|
295
|
-
declare const ListenerConnectionType:
|
|
296
|
-
status:
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
qr: "qr";
|
|
306
|
-
}>;
|
|
307
|
-
authTimeout: z.ZodOptional<z.ZodNumber>;
|
|
308
|
-
syncProgress: z.ZodOptional<z.ZodNumber>;
|
|
309
|
-
syncCompleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
310
|
-
qr: z.ZodOptional<z.ZodString>;
|
|
311
|
-
code: z.ZodOptional<z.ZodString>;
|
|
312
|
-
}, z.core.$strip>;
|
|
313
|
-
type ConnectionContext = z.infer<typeof ListenerConnectionType>;
|
|
1018
|
+
declare const ListenerConnectionType: v.ObjectSchema<{
|
|
1019
|
+
readonly status: v.PicklistSchema<["connecting", "open", "close", "reload", "syncing"], undefined>;
|
|
1020
|
+
readonly authType: v.PicklistSchema<["pairing", "qr"], undefined>;
|
|
1021
|
+
readonly authTimeout: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1022
|
+
readonly syncProgress: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1023
|
+
readonly syncCompleted: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1024
|
+
readonly qr: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1025
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1026
|
+
}, undefined>;
|
|
1027
|
+
type ConnectionContext = v.InferOutput<typeof ListenerConnectionType>;
|
|
314
1028
|
|
|
315
|
-
declare const DEVICE_ENUM_TYPES:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
text:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
isQuestion: z.ZodBoolean;
|
|
460
|
-
isStory: z.ZodBoolean;
|
|
461
|
-
isViewOnce: z.ZodBoolean;
|
|
462
|
-
isEdited: z.ZodBoolean;
|
|
463
|
-
isDeleted: z.ZodBoolean;
|
|
464
|
-
isPinned: z.ZodBoolean;
|
|
465
|
-
isUnPinned: z.ZodBoolean;
|
|
466
|
-
isBroadcast: z.ZodBoolean;
|
|
467
|
-
isEphemeral: z.ZodBoolean;
|
|
468
|
-
isForwarded: z.ZodBoolean;
|
|
469
|
-
citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
|
|
470
|
-
media: z.ZodNullable<z.ZodObject<{
|
|
471
|
-
buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
472
|
-
stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream, Stream>>>;
|
|
473
|
-
}, z.core.$loose>>;
|
|
474
|
-
injection: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
475
|
-
message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
|
|
476
|
-
}, z.core.$strip>;
|
|
477
|
-
declare const ListenerMessagesType: z.ZodObject<{
|
|
478
|
-
channelId: z.ZodString;
|
|
479
|
-
uniqueId: z.ZodString;
|
|
480
|
-
chatId: z.ZodString;
|
|
481
|
-
chatType: z.ZodEnum<{
|
|
482
|
-
sticker: "sticker";
|
|
483
|
-
video: "video";
|
|
484
|
-
text: "text";
|
|
485
|
-
album: "album";
|
|
486
|
-
image: "image";
|
|
487
|
-
contact: "contact";
|
|
488
|
-
location: "location";
|
|
489
|
-
document: "document";
|
|
490
|
-
audio: "audio";
|
|
491
|
-
protocol: "protocol";
|
|
492
|
-
contacts: "contacts";
|
|
493
|
-
highlyStructured: "highlyStructured";
|
|
494
|
-
sendPayment: "sendPayment";
|
|
495
|
-
requestPayment: "requestPayment";
|
|
496
|
-
groupStatusMention: "groupStatusMention";
|
|
497
|
-
statusMention: "statusMention";
|
|
498
|
-
declinePaymentRequest: "declinePaymentRequest";
|
|
499
|
-
cancelPaymentRequest: "cancelPaymentRequest";
|
|
500
|
-
template: "template";
|
|
501
|
-
groupInvite: "groupInvite";
|
|
502
|
-
product: "product";
|
|
503
|
-
deviceSent: "deviceSent";
|
|
504
|
-
lists: "lists";
|
|
505
|
-
viewOnce: "viewOnce";
|
|
506
|
-
order: "order";
|
|
507
|
-
ephemeral: "ephemeral";
|
|
508
|
-
invoice: "invoice";
|
|
509
|
-
buttons: "buttons";
|
|
510
|
-
paymentInvite: "paymentInvite";
|
|
511
|
-
interactive: "interactive";
|
|
512
|
-
reaction: "reaction";
|
|
513
|
-
interactiveResponse: "interactiveResponse";
|
|
514
|
-
pollCreation: "pollCreation";
|
|
515
|
-
pollUpdate: "pollUpdate";
|
|
516
|
-
keepInChat: "keepInChat";
|
|
517
|
-
requestPhoneNumber: "requestPhoneNumber";
|
|
518
|
-
scheduledCallCreation: "scheduledCallCreation";
|
|
519
|
-
groupMentioned: "groupMentioned";
|
|
520
|
-
pinInChat: "pinInChat";
|
|
521
|
-
scheduledCallEdit: "scheduledCallEdit";
|
|
522
|
-
ptv: "ptv";
|
|
523
|
-
botInvoke: "botInvoke";
|
|
524
|
-
callLog: "callLog";
|
|
525
|
-
encComment: "encComment";
|
|
526
|
-
bcall: "bcall";
|
|
527
|
-
lottieSticker: "lottieSticker";
|
|
528
|
-
event: "event";
|
|
529
|
-
comment: "comment";
|
|
530
|
-
placeholder: "placeholder";
|
|
531
|
-
encEventUpdate: "encEventUpdate";
|
|
532
|
-
}>;
|
|
533
|
-
receiverLid: z.ZodString;
|
|
534
|
-
receiverId: z.ZodString;
|
|
535
|
-
receiverName: z.ZodString;
|
|
536
|
-
roomId: z.ZodString;
|
|
537
|
-
roomName: z.ZodString;
|
|
538
|
-
senderLid: z.ZodString;
|
|
539
|
-
senderId: z.ZodString;
|
|
540
|
-
senderName: z.ZodString;
|
|
541
|
-
senderDevice: z.ZodEnum<{
|
|
542
|
-
unknown: "unknown";
|
|
543
|
-
android: "android";
|
|
544
|
-
ios: "ios";
|
|
545
|
-
desktop: "desktop";
|
|
546
|
-
web: "web";
|
|
547
|
-
}>;
|
|
548
|
-
timestamp: z.ZodNumber;
|
|
549
|
-
text: z.ZodNullable<z.ZodString>;
|
|
550
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
551
|
-
links: z.ZodArray<z.ZodString>;
|
|
552
|
-
isBot: z.ZodBoolean;
|
|
553
|
-
isFromMe: z.ZodBoolean;
|
|
554
|
-
isPrefix: z.ZodBoolean;
|
|
555
|
-
isSpam: z.ZodBoolean;
|
|
556
|
-
isTagMe: z.ZodBoolean;
|
|
557
|
-
isStatusMention: z.ZodBoolean;
|
|
558
|
-
isGroupStatusMention: z.ZodBoolean;
|
|
559
|
-
isHideTags: z.ZodBoolean;
|
|
560
|
-
isGroup: z.ZodBoolean;
|
|
561
|
-
isNewsletter: z.ZodBoolean;
|
|
562
|
-
isQuestion: z.ZodBoolean;
|
|
563
|
-
isStory: z.ZodBoolean;
|
|
564
|
-
isViewOnce: z.ZodBoolean;
|
|
565
|
-
isEdited: z.ZodBoolean;
|
|
566
|
-
isDeleted: z.ZodBoolean;
|
|
567
|
-
isPinned: z.ZodBoolean;
|
|
568
|
-
isUnPinned: z.ZodBoolean;
|
|
569
|
-
isBroadcast: z.ZodBoolean;
|
|
570
|
-
isEphemeral: z.ZodBoolean;
|
|
571
|
-
isForwarded: z.ZodBoolean;
|
|
572
|
-
citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
|
|
573
|
-
media: z.ZodNullable<z.ZodObject<{
|
|
574
|
-
buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
575
|
-
stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream, Stream>>>;
|
|
576
|
-
}, z.core.$loose>>;
|
|
577
|
-
injection: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
578
|
-
message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
|
|
579
|
-
replied: z.ZodNullable<z.ZodObject<{
|
|
580
|
-
channelId: z.ZodString;
|
|
581
|
-
uniqueId: z.ZodString;
|
|
582
|
-
chatId: z.ZodString;
|
|
583
|
-
chatType: z.ZodEnum<{
|
|
584
|
-
sticker: "sticker";
|
|
585
|
-
video: "video";
|
|
586
|
-
text: "text";
|
|
587
|
-
album: "album";
|
|
588
|
-
image: "image";
|
|
589
|
-
contact: "contact";
|
|
590
|
-
location: "location";
|
|
591
|
-
document: "document";
|
|
592
|
-
audio: "audio";
|
|
593
|
-
protocol: "protocol";
|
|
594
|
-
contacts: "contacts";
|
|
595
|
-
highlyStructured: "highlyStructured";
|
|
596
|
-
sendPayment: "sendPayment";
|
|
597
|
-
requestPayment: "requestPayment";
|
|
598
|
-
groupStatusMention: "groupStatusMention";
|
|
599
|
-
statusMention: "statusMention";
|
|
600
|
-
declinePaymentRequest: "declinePaymentRequest";
|
|
601
|
-
cancelPaymentRequest: "cancelPaymentRequest";
|
|
602
|
-
template: "template";
|
|
603
|
-
groupInvite: "groupInvite";
|
|
604
|
-
product: "product";
|
|
605
|
-
deviceSent: "deviceSent";
|
|
606
|
-
lists: "lists";
|
|
607
|
-
viewOnce: "viewOnce";
|
|
608
|
-
order: "order";
|
|
609
|
-
ephemeral: "ephemeral";
|
|
610
|
-
invoice: "invoice";
|
|
611
|
-
buttons: "buttons";
|
|
612
|
-
paymentInvite: "paymentInvite";
|
|
613
|
-
interactive: "interactive";
|
|
614
|
-
reaction: "reaction";
|
|
615
|
-
interactiveResponse: "interactiveResponse";
|
|
616
|
-
pollCreation: "pollCreation";
|
|
617
|
-
pollUpdate: "pollUpdate";
|
|
618
|
-
keepInChat: "keepInChat";
|
|
619
|
-
requestPhoneNumber: "requestPhoneNumber";
|
|
620
|
-
scheduledCallCreation: "scheduledCallCreation";
|
|
621
|
-
groupMentioned: "groupMentioned";
|
|
622
|
-
pinInChat: "pinInChat";
|
|
623
|
-
scheduledCallEdit: "scheduledCallEdit";
|
|
624
|
-
ptv: "ptv";
|
|
625
|
-
botInvoke: "botInvoke";
|
|
626
|
-
callLog: "callLog";
|
|
627
|
-
encComment: "encComment";
|
|
628
|
-
bcall: "bcall";
|
|
629
|
-
lottieSticker: "lottieSticker";
|
|
630
|
-
event: "event";
|
|
631
|
-
comment: "comment";
|
|
632
|
-
placeholder: "placeholder";
|
|
633
|
-
encEventUpdate: "encEventUpdate";
|
|
634
|
-
}>;
|
|
635
|
-
receiverLid: z.ZodString;
|
|
636
|
-
receiverId: z.ZodString;
|
|
637
|
-
receiverName: z.ZodString;
|
|
638
|
-
roomId: z.ZodString;
|
|
639
|
-
roomName: z.ZodString;
|
|
640
|
-
senderLid: z.ZodString;
|
|
641
|
-
senderId: z.ZodString;
|
|
642
|
-
senderName: z.ZodString;
|
|
643
|
-
senderDevice: z.ZodEnum<{
|
|
644
|
-
unknown: "unknown";
|
|
645
|
-
android: "android";
|
|
646
|
-
ios: "ios";
|
|
647
|
-
desktop: "desktop";
|
|
648
|
-
web: "web";
|
|
649
|
-
}>;
|
|
650
|
-
timestamp: z.ZodNumber;
|
|
651
|
-
text: z.ZodNullable<z.ZodString>;
|
|
652
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
653
|
-
links: z.ZodArray<z.ZodString>;
|
|
654
|
-
isBot: z.ZodBoolean;
|
|
655
|
-
isFromMe: z.ZodBoolean;
|
|
656
|
-
isPrefix: z.ZodBoolean;
|
|
657
|
-
isSpam: z.ZodBoolean;
|
|
658
|
-
isTagMe: z.ZodBoolean;
|
|
659
|
-
isStatusMention: z.ZodBoolean;
|
|
660
|
-
isGroupStatusMention: z.ZodBoolean;
|
|
661
|
-
isHideTags: z.ZodBoolean;
|
|
662
|
-
isGroup: z.ZodBoolean;
|
|
663
|
-
isNewsletter: z.ZodBoolean;
|
|
664
|
-
isQuestion: z.ZodBoolean;
|
|
665
|
-
isStory: z.ZodBoolean;
|
|
666
|
-
isViewOnce: z.ZodBoolean;
|
|
667
|
-
isEdited: z.ZodBoolean;
|
|
668
|
-
isDeleted: z.ZodBoolean;
|
|
669
|
-
isPinned: z.ZodBoolean;
|
|
670
|
-
isUnPinned: z.ZodBoolean;
|
|
671
|
-
isBroadcast: z.ZodBoolean;
|
|
672
|
-
isEphemeral: z.ZodBoolean;
|
|
673
|
-
isForwarded: z.ZodBoolean;
|
|
674
|
-
citation: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodBoolean>>>>;
|
|
675
|
-
media: z.ZodNullable<z.ZodObject<{
|
|
676
|
-
buffer: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
|
|
677
|
-
stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodCustom<Stream, Stream>>>;
|
|
678
|
-
}, z.core.$loose>>;
|
|
679
|
-
injection: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
680
|
-
message: z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodCustom<WAMessage, WAMessage>>;
|
|
681
|
-
}, z.core.$strip>>;
|
|
682
|
-
}, z.core.$strip>;
|
|
683
|
-
type MessagesContext = z.infer<typeof ListenerMessagesType>;
|
|
1029
|
+
declare const DEVICE_ENUM_TYPES: v.PicklistSchema<["unknown", "android", "ios", "desktop", "web"], undefined>;
|
|
1030
|
+
declare const MESSAGE_ENUM_TYPES: v.PicklistSchema<["text", "album", "image", "contact", "location", "document", "audio", "video", "protocol", "contacts", "highlyStructured", "sendPayment", "requestPayment", "groupStatusMention", "statusMention", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "product", "deviceSent", "lists", "viewOnce", "order", "ephemeral", "invoice", "buttons", "paymentInvite", "interactive", "reaction", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "requestPhoneNumber", "scheduledCallCreation", "groupMentioned", "pinInChat", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "placeholder", "encEventUpdate"], undefined>;
|
|
1031
|
+
declare const BaseMessagesType: v.ObjectSchema<{
|
|
1032
|
+
readonly channelId: v.StringSchema<undefined>;
|
|
1033
|
+
readonly uniqueId: v.StringSchema<undefined>;
|
|
1034
|
+
readonly chatId: v.StringSchema<undefined>;
|
|
1035
|
+
readonly chatType: v.PicklistSchema<["text", "album", "image", "contact", "location", "document", "audio", "video", "protocol", "contacts", "highlyStructured", "sendPayment", "requestPayment", "groupStatusMention", "statusMention", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "product", "deviceSent", "lists", "viewOnce", "order", "ephemeral", "invoice", "buttons", "paymentInvite", "interactive", "reaction", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "requestPhoneNumber", "scheduledCallCreation", "groupMentioned", "pinInChat", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "placeholder", "encEventUpdate"], undefined>;
|
|
1036
|
+
readonly receiverLid: v.StringSchema<undefined>;
|
|
1037
|
+
readonly receiverId: v.StringSchema<undefined>;
|
|
1038
|
+
readonly receiverName: v.StringSchema<undefined>;
|
|
1039
|
+
readonly roomId: v.StringSchema<undefined>;
|
|
1040
|
+
readonly roomLid: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1041
|
+
readonly roomName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1042
|
+
readonly senderLid: v.StringSchema<undefined>;
|
|
1043
|
+
readonly senderId: v.StringSchema<undefined>;
|
|
1044
|
+
readonly senderName: v.StringSchema<undefined>;
|
|
1045
|
+
readonly senderDevice: v.PicklistSchema<["unknown", "android", "ios", "desktop", "web"], undefined>;
|
|
1046
|
+
readonly timestamp: v.NumberSchema<undefined>;
|
|
1047
|
+
readonly text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1048
|
+
readonly mentions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1049
|
+
readonly links: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1050
|
+
readonly isBot: v.BooleanSchema<undefined>;
|
|
1051
|
+
readonly isFromMe: v.BooleanSchema<undefined>;
|
|
1052
|
+
readonly isPrefix: v.BooleanSchema<undefined>;
|
|
1053
|
+
readonly isSpam: v.BooleanSchema<undefined>;
|
|
1054
|
+
readonly isTagMe: v.BooleanSchema<undefined>;
|
|
1055
|
+
readonly isStatusMention: v.BooleanSchema<undefined>;
|
|
1056
|
+
readonly isGroupStatusMention: v.BooleanSchema<undefined>;
|
|
1057
|
+
readonly isHideTags: v.BooleanSchema<undefined>;
|
|
1058
|
+
readonly isGroup: v.BooleanSchema<undefined>;
|
|
1059
|
+
readonly isNewsletter: v.BooleanSchema<undefined>;
|
|
1060
|
+
readonly isQuestion: v.BooleanSchema<undefined>;
|
|
1061
|
+
readonly isStory: v.BooleanSchema<undefined>;
|
|
1062
|
+
readonly isViewOnce: v.BooleanSchema<undefined>;
|
|
1063
|
+
readonly isEdited: v.BooleanSchema<undefined>;
|
|
1064
|
+
readonly isDeleted: v.BooleanSchema<undefined>;
|
|
1065
|
+
readonly isPinned: v.BooleanSchema<undefined>;
|
|
1066
|
+
readonly isUnPinned: v.BooleanSchema<undefined>;
|
|
1067
|
+
readonly isBroadcast: v.BooleanSchema<undefined>;
|
|
1068
|
+
readonly isEphemeral: v.BooleanSchema<undefined>;
|
|
1069
|
+
readonly isForwarded: v.BooleanSchema<undefined>;
|
|
1070
|
+
readonly citation: v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<boolean>, undefined>, undefined>, undefined>;
|
|
1071
|
+
readonly media: v.NullableSchema<v.LooseObjectSchema<{
|
|
1072
|
+
readonly buffer: v.CustomSchema<() => Promise<Buffer>, undefined>;
|
|
1073
|
+
readonly stream: v.CustomSchema<() => Promise<Stream>, undefined>;
|
|
1074
|
+
}, undefined>, undefined>;
|
|
1075
|
+
readonly injection: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, {}>;
|
|
1076
|
+
readonly message: v.CustomSchema<() => WAMessage, undefined>;
|
|
1077
|
+
}, undefined>;
|
|
1078
|
+
declare const ListenerMessagesType: v.ObjectSchema<{
|
|
1079
|
+
readonly replied: v.NullableSchema<v.ObjectSchema<{
|
|
1080
|
+
readonly channelId: v.StringSchema<undefined>;
|
|
1081
|
+
readonly uniqueId: v.StringSchema<undefined>;
|
|
1082
|
+
readonly chatId: v.StringSchema<undefined>;
|
|
1083
|
+
readonly chatType: v.PicklistSchema<["text", "album", "image", "contact", "location", "document", "audio", "video", "protocol", "contacts", "highlyStructured", "sendPayment", "requestPayment", "groupStatusMention", "statusMention", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "product", "deviceSent", "lists", "viewOnce", "order", "ephemeral", "invoice", "buttons", "paymentInvite", "interactive", "reaction", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "requestPhoneNumber", "scheduledCallCreation", "groupMentioned", "pinInChat", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "placeholder", "encEventUpdate"], undefined>;
|
|
1084
|
+
readonly receiverLid: v.StringSchema<undefined>;
|
|
1085
|
+
readonly receiverId: v.StringSchema<undefined>;
|
|
1086
|
+
readonly receiverName: v.StringSchema<undefined>;
|
|
1087
|
+
readonly roomId: v.StringSchema<undefined>;
|
|
1088
|
+
readonly roomLid: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1089
|
+
readonly roomName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1090
|
+
readonly senderLid: v.StringSchema<undefined>;
|
|
1091
|
+
readonly senderId: v.StringSchema<undefined>;
|
|
1092
|
+
readonly senderName: v.StringSchema<undefined>;
|
|
1093
|
+
readonly senderDevice: v.PicklistSchema<["unknown", "android", "ios", "desktop", "web"], undefined>;
|
|
1094
|
+
readonly timestamp: v.NumberSchema<undefined>;
|
|
1095
|
+
readonly text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1096
|
+
readonly mentions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1097
|
+
readonly links: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1098
|
+
readonly isBot: v.BooleanSchema<undefined>;
|
|
1099
|
+
readonly isFromMe: v.BooleanSchema<undefined>;
|
|
1100
|
+
readonly isPrefix: v.BooleanSchema<undefined>;
|
|
1101
|
+
readonly isSpam: v.BooleanSchema<undefined>;
|
|
1102
|
+
readonly isTagMe: v.BooleanSchema<undefined>;
|
|
1103
|
+
readonly isStatusMention: v.BooleanSchema<undefined>;
|
|
1104
|
+
readonly isGroupStatusMention: v.BooleanSchema<undefined>;
|
|
1105
|
+
readonly isHideTags: v.BooleanSchema<undefined>;
|
|
1106
|
+
readonly isGroup: v.BooleanSchema<undefined>;
|
|
1107
|
+
readonly isNewsletter: v.BooleanSchema<undefined>;
|
|
1108
|
+
readonly isQuestion: v.BooleanSchema<undefined>;
|
|
1109
|
+
readonly isStory: v.BooleanSchema<undefined>;
|
|
1110
|
+
readonly isViewOnce: v.BooleanSchema<undefined>;
|
|
1111
|
+
readonly isEdited: v.BooleanSchema<undefined>;
|
|
1112
|
+
readonly isDeleted: v.BooleanSchema<undefined>;
|
|
1113
|
+
readonly isPinned: v.BooleanSchema<undefined>;
|
|
1114
|
+
readonly isUnPinned: v.BooleanSchema<undefined>;
|
|
1115
|
+
readonly isBroadcast: v.BooleanSchema<undefined>;
|
|
1116
|
+
readonly isEphemeral: v.BooleanSchema<undefined>;
|
|
1117
|
+
readonly isForwarded: v.BooleanSchema<undefined>;
|
|
1118
|
+
readonly citation: v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<boolean>, undefined>, undefined>, undefined>;
|
|
1119
|
+
readonly media: v.NullableSchema<v.LooseObjectSchema<{
|
|
1120
|
+
readonly buffer: v.CustomSchema<() => Promise<Buffer>, undefined>;
|
|
1121
|
+
readonly stream: v.CustomSchema<() => Promise<Stream>, undefined>;
|
|
1122
|
+
}, undefined>, undefined>;
|
|
1123
|
+
readonly injection: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, {}>;
|
|
1124
|
+
readonly message: v.CustomSchema<() => WAMessage, undefined>;
|
|
1125
|
+
}, undefined>, undefined>;
|
|
1126
|
+
readonly channelId: v.StringSchema<undefined>;
|
|
1127
|
+
readonly uniqueId: v.StringSchema<undefined>;
|
|
1128
|
+
readonly chatId: v.StringSchema<undefined>;
|
|
1129
|
+
readonly chatType: v.PicklistSchema<["text", "album", "image", "contact", "location", "document", "audio", "video", "protocol", "contacts", "highlyStructured", "sendPayment", "requestPayment", "groupStatusMention", "statusMention", "declinePaymentRequest", "cancelPaymentRequest", "template", "sticker", "groupInvite", "product", "deviceSent", "lists", "viewOnce", "order", "ephemeral", "invoice", "buttons", "paymentInvite", "interactive", "reaction", "interactiveResponse", "pollCreation", "pollUpdate", "keepInChat", "requestPhoneNumber", "scheduledCallCreation", "groupMentioned", "pinInChat", "scheduledCallEdit", "ptv", "botInvoke", "callLog", "encComment", "bcall", "lottieSticker", "event", "comment", "placeholder", "encEventUpdate"], undefined>;
|
|
1130
|
+
readonly receiverLid: v.StringSchema<undefined>;
|
|
1131
|
+
readonly receiverId: v.StringSchema<undefined>;
|
|
1132
|
+
readonly receiverName: v.StringSchema<undefined>;
|
|
1133
|
+
readonly roomId: v.StringSchema<undefined>;
|
|
1134
|
+
readonly roomLid: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1135
|
+
readonly roomName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1136
|
+
readonly senderLid: v.StringSchema<undefined>;
|
|
1137
|
+
readonly senderId: v.StringSchema<undefined>;
|
|
1138
|
+
readonly senderName: v.StringSchema<undefined>;
|
|
1139
|
+
readonly senderDevice: v.PicklistSchema<["unknown", "android", "ios", "desktop", "web"], undefined>;
|
|
1140
|
+
readonly timestamp: v.NumberSchema<undefined>;
|
|
1141
|
+
readonly text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1142
|
+
readonly mentions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1143
|
+
readonly links: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1144
|
+
readonly isBot: v.BooleanSchema<undefined>;
|
|
1145
|
+
readonly isFromMe: v.BooleanSchema<undefined>;
|
|
1146
|
+
readonly isPrefix: v.BooleanSchema<undefined>;
|
|
1147
|
+
readonly isSpam: v.BooleanSchema<undefined>;
|
|
1148
|
+
readonly isTagMe: v.BooleanSchema<undefined>;
|
|
1149
|
+
readonly isStatusMention: v.BooleanSchema<undefined>;
|
|
1150
|
+
readonly isGroupStatusMention: v.BooleanSchema<undefined>;
|
|
1151
|
+
readonly isHideTags: v.BooleanSchema<undefined>;
|
|
1152
|
+
readonly isGroup: v.BooleanSchema<undefined>;
|
|
1153
|
+
readonly isNewsletter: v.BooleanSchema<undefined>;
|
|
1154
|
+
readonly isQuestion: v.BooleanSchema<undefined>;
|
|
1155
|
+
readonly isStory: v.BooleanSchema<undefined>;
|
|
1156
|
+
readonly isViewOnce: v.BooleanSchema<undefined>;
|
|
1157
|
+
readonly isEdited: v.BooleanSchema<undefined>;
|
|
1158
|
+
readonly isDeleted: v.BooleanSchema<undefined>;
|
|
1159
|
+
readonly isPinned: v.BooleanSchema<undefined>;
|
|
1160
|
+
readonly isUnPinned: v.BooleanSchema<undefined>;
|
|
1161
|
+
readonly isBroadcast: v.BooleanSchema<undefined>;
|
|
1162
|
+
readonly isEphemeral: v.BooleanSchema<undefined>;
|
|
1163
|
+
readonly isForwarded: v.BooleanSchema<undefined>;
|
|
1164
|
+
readonly citation: v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<boolean>, undefined>, undefined>, undefined>;
|
|
1165
|
+
readonly media: v.NullableSchema<v.LooseObjectSchema<{
|
|
1166
|
+
readonly buffer: v.CustomSchema<() => Promise<Buffer>, undefined>;
|
|
1167
|
+
readonly stream: v.CustomSchema<() => Promise<Stream>, undefined>;
|
|
1168
|
+
}, undefined>, undefined>;
|
|
1169
|
+
readonly injection: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, {}>;
|
|
1170
|
+
readonly message: v.CustomSchema<() => WAMessage, undefined>;
|
|
1171
|
+
}, undefined>;
|
|
1172
|
+
type MessagesContext = v.InferOutput<typeof ListenerMessagesType>;
|
|
684
1173
|
|
|
685
|
-
declare const LimiterType:
|
|
686
|
-
maxMessages:
|
|
687
|
-
durationMs:
|
|
688
|
-
},
|
|
689
|
-
declare const CitationType:
|
|
690
|
-
declare const FakeReplyType:
|
|
691
|
-
provider:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
},
|
|
700
|
-
declare const
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
706
|
-
declare const
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
837
|
-
disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
838
|
-
autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
839
|
-
autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
840
|
-
autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
841
|
-
autoRead: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
842
|
-
autoPresence: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
843
|
-
autoRejectCall: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
844
|
-
pluginsDir: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
|
|
845
|
-
pluginsHmr: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
846
|
-
autoCleanUp: z$1.ZodOptional<z$1.ZodObject<{
|
|
847
|
-
enabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
848
|
-
intervalMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
|
|
849
|
-
maxAgeMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
|
|
850
|
-
scopes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
|
|
851
|
-
}, z$1.core.$strip>>;
|
|
852
|
-
limiter: z$1.ZodOptional<z$1.ZodObject<{
|
|
853
|
-
maxMessages: z$1.ZodDefault<z$1.ZodNumber>;
|
|
854
|
-
durationMs: z$1.ZodDefault<z$1.ZodNumber>;
|
|
855
|
-
}, z$1.core.$strip>>;
|
|
856
|
-
citation: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodFunction<z$1.core.$ZodFunctionArgs, z$1.ZodPromise<z$1.ZodArray<z$1.ZodNumber>>>>>;
|
|
857
|
-
fakeReply: z$1.ZodOptional<z$1.ZodObject<{
|
|
858
|
-
provider: z$1.ZodUnion<[z$1.ZodEnum<{
|
|
859
|
-
whatsapp: "whatsapp";
|
|
860
|
-
meta: "meta";
|
|
861
|
-
chatgpt: "chatgpt";
|
|
862
|
-
copilot: "copilot";
|
|
863
|
-
instagram: "instagram";
|
|
864
|
-
tiktok: "tiktok";
|
|
865
|
-
}>, z$1.ZodNumber]>;
|
|
866
|
-
}, z$1.core.$strip>>;
|
|
867
|
-
sticker: z$1.ZodOptional<z$1.ZodObject<{
|
|
868
|
-
packageName: z$1.ZodOptional<z$1.ZodString>;
|
|
869
|
-
authorName: z$1.ZodOptional<z$1.ZodString>;
|
|
870
|
-
quality: z$1.ZodOptional<z$1.ZodNumber>;
|
|
871
|
-
shape: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
|
|
872
|
-
default: "default";
|
|
873
|
-
rounded: "rounded";
|
|
874
|
-
circle: "circle";
|
|
875
|
-
oval: "oval";
|
|
876
|
-
}>>>;
|
|
877
|
-
}, z$1.core.$strip>>;
|
|
878
|
-
}, z$1.core.$strip>]>;
|
|
879
|
-
declare const EventEnumType: z$1.ZodEnum<{
|
|
880
|
-
messages: "messages";
|
|
881
|
-
connection: "connection";
|
|
882
|
-
calls: "calls";
|
|
883
|
-
}>;
|
|
1174
|
+
declare const LimiterType: v.OptionalSchema<v.ObjectSchema<{
|
|
1175
|
+
readonly maxMessages: v.OptionalSchema<v.NumberSchema<undefined>, 20>;
|
|
1176
|
+
readonly durationMs: v.OptionalSchema<v.NumberSchema<undefined>, 10000>;
|
|
1177
|
+
}, undefined>, undefined>;
|
|
1178
|
+
declare const CitationType: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<number[]>, undefined>, undefined>, undefined>;
|
|
1179
|
+
declare const FakeReplyType: v.OptionalSchema<v.ObjectSchema<{
|
|
1180
|
+
readonly provider: v.UnionSchema<[v.PicklistSchema<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"], undefined>, v.NumberSchema<undefined>], undefined>;
|
|
1181
|
+
}, undefined>, undefined>;
|
|
1182
|
+
declare const ClientStickerShapeType: v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">;
|
|
1183
|
+
declare const ClientStickerOptionsType: v.OptionalSchema<v.ObjectSchema<{
|
|
1184
|
+
readonly packageName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1185
|
+
readonly authorName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1186
|
+
readonly quality: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1187
|
+
readonly shape: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">, undefined>;
|
|
1188
|
+
}, undefined>, undefined>;
|
|
1189
|
+
declare const autoCleanUp: v.OptionalSchema<v.ObjectSchema<{
|
|
1190
|
+
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1191
|
+
readonly intervalMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1192
|
+
readonly maxAgeMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1193
|
+
readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly ["messages"]>;
|
|
1194
|
+
}, undefined>, undefined>;
|
|
1195
|
+
declare const ClientBaseType: v.ObjectSchema<{
|
|
1196
|
+
readonly session: v.OptionalSchema<v.StringSchema<undefined>, "zaileys">;
|
|
1197
|
+
readonly prefix: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
1198
|
+
readonly ignoreMe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1199
|
+
readonly showLogs: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1200
|
+
readonly fancyLogs: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1201
|
+
readonly syncFullHistory: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1202
|
+
readonly disableFFmpeg: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1203
|
+
readonly autoMarkAI: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1204
|
+
readonly autoMentions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1205
|
+
readonly autoOnline: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1206
|
+
readonly autoRead: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1207
|
+
readonly autoPresence: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1208
|
+
readonly autoRejectCall: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1209
|
+
readonly showSpinner: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1210
|
+
readonly maxReplies: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1211
|
+
readonly deleteSessionOnLogout: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1212
|
+
readonly pluginsDir: v.OptionalSchema<v.StringSchema<undefined>, "plugins">;
|
|
1213
|
+
readonly pluginsHmr: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1214
|
+
readonly autoCleanUp: v.OptionalSchema<v.ObjectSchema<{
|
|
1215
|
+
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1216
|
+
readonly intervalMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1217
|
+
readonly maxAgeMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1218
|
+
readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly ["messages"]>;
|
|
1219
|
+
}, undefined>, undefined>;
|
|
1220
|
+
readonly limiter: v.OptionalSchema<v.ObjectSchema<{
|
|
1221
|
+
readonly maxMessages: v.OptionalSchema<v.NumberSchema<undefined>, 20>;
|
|
1222
|
+
readonly durationMs: v.OptionalSchema<v.NumberSchema<undefined>, 10000>;
|
|
1223
|
+
}, undefined>, undefined>;
|
|
1224
|
+
readonly citation: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<number[]>, undefined>, undefined>, undefined>;
|
|
1225
|
+
readonly fakeReply: v.OptionalSchema<v.ObjectSchema<{
|
|
1226
|
+
readonly provider: v.UnionSchema<[v.PicklistSchema<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"], undefined>, v.NumberSchema<undefined>], undefined>;
|
|
1227
|
+
}, undefined>, undefined>;
|
|
1228
|
+
readonly sticker: v.OptionalSchema<v.ObjectSchema<{
|
|
1229
|
+
readonly packageName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1230
|
+
readonly authorName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1231
|
+
readonly quality: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1232
|
+
readonly shape: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">, undefined>;
|
|
1233
|
+
}, undefined>, undefined>;
|
|
1234
|
+
}, undefined>;
|
|
1235
|
+
declare const ClientAuthPairingType: v.ObjectSchema<{
|
|
1236
|
+
readonly authType: v.LiteralSchema<"pairing", undefined>;
|
|
1237
|
+
readonly phoneNumber: v.NumberSchema<undefined>;
|
|
1238
|
+
}, undefined>;
|
|
1239
|
+
declare const ClientAuthQRType: v.ObjectSchema<{
|
|
1240
|
+
readonly authType: v.LiteralSchema<"qr", undefined>;
|
|
1241
|
+
}, undefined>;
|
|
1242
|
+
declare const ClientOptionsType: v.UnionSchema<[v.ObjectSchema<{
|
|
1243
|
+
readonly session: v.OptionalSchema<v.StringSchema<undefined>, "zaileys">;
|
|
1244
|
+
readonly prefix: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
1245
|
+
readonly ignoreMe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1246
|
+
readonly showLogs: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1247
|
+
readonly fancyLogs: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1248
|
+
readonly syncFullHistory: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1249
|
+
readonly disableFFmpeg: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1250
|
+
readonly autoMarkAI: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1251
|
+
readonly autoMentions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1252
|
+
readonly autoOnline: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1253
|
+
readonly autoRead: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1254
|
+
readonly autoPresence: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1255
|
+
readonly autoRejectCall: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1256
|
+
readonly showSpinner: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1257
|
+
readonly maxReplies: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1258
|
+
readonly deleteSessionOnLogout: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1259
|
+
readonly pluginsDir: v.OptionalSchema<v.StringSchema<undefined>, "plugins">;
|
|
1260
|
+
readonly pluginsHmr: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1261
|
+
readonly autoCleanUp: v.OptionalSchema<v.ObjectSchema<{
|
|
1262
|
+
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1263
|
+
readonly intervalMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1264
|
+
readonly maxAgeMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1265
|
+
readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly ["messages"]>;
|
|
1266
|
+
}, undefined>, undefined>;
|
|
1267
|
+
readonly limiter: v.OptionalSchema<v.ObjectSchema<{
|
|
1268
|
+
readonly maxMessages: v.OptionalSchema<v.NumberSchema<undefined>, 20>;
|
|
1269
|
+
readonly durationMs: v.OptionalSchema<v.NumberSchema<undefined>, 10000>;
|
|
1270
|
+
}, undefined>, undefined>;
|
|
1271
|
+
readonly citation: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<number[]>, undefined>, undefined>, undefined>;
|
|
1272
|
+
readonly fakeReply: v.OptionalSchema<v.ObjectSchema<{
|
|
1273
|
+
readonly provider: v.UnionSchema<[v.PicklistSchema<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"], undefined>, v.NumberSchema<undefined>], undefined>;
|
|
1274
|
+
}, undefined>, undefined>;
|
|
1275
|
+
readonly sticker: v.OptionalSchema<v.ObjectSchema<{
|
|
1276
|
+
readonly packageName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1277
|
+
readonly authorName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1278
|
+
readonly quality: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1279
|
+
readonly shape: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">, undefined>;
|
|
1280
|
+
}, undefined>, undefined>;
|
|
1281
|
+
readonly authType: v.LiteralSchema<"pairing", undefined>;
|
|
1282
|
+
readonly phoneNumber: v.NumberSchema<undefined>;
|
|
1283
|
+
}, undefined>, v.ObjectSchema<{
|
|
1284
|
+
readonly session: v.OptionalSchema<v.StringSchema<undefined>, "zaileys">;
|
|
1285
|
+
readonly prefix: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
1286
|
+
readonly ignoreMe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1287
|
+
readonly showLogs: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1288
|
+
readonly fancyLogs: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1289
|
+
readonly syncFullHistory: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1290
|
+
readonly disableFFmpeg: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1291
|
+
readonly autoMarkAI: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1292
|
+
readonly autoMentions: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1293
|
+
readonly autoOnline: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1294
|
+
readonly autoRead: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1295
|
+
readonly autoPresence: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1296
|
+
readonly autoRejectCall: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1297
|
+
readonly showSpinner: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1298
|
+
readonly maxReplies: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1299
|
+
readonly deleteSessionOnLogout: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1300
|
+
readonly pluginsDir: v.OptionalSchema<v.StringSchema<undefined>, "plugins">;
|
|
1301
|
+
readonly pluginsHmr: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
1302
|
+
readonly autoCleanUp: v.OptionalSchema<v.ObjectSchema<{
|
|
1303
|
+
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1304
|
+
readonly intervalMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1305
|
+
readonly maxAgeMs: v.OptionalSchema<v.NumberSchema<undefined>, number>;
|
|
1306
|
+
readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly ["messages"]>;
|
|
1307
|
+
}, undefined>, undefined>;
|
|
1308
|
+
readonly limiter: v.OptionalSchema<v.ObjectSchema<{
|
|
1309
|
+
readonly maxMessages: v.OptionalSchema<v.NumberSchema<undefined>, 20>;
|
|
1310
|
+
readonly durationMs: v.OptionalSchema<v.NumberSchema<undefined>, 10000>;
|
|
1311
|
+
}, undefined>, undefined>;
|
|
1312
|
+
readonly citation: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.CustomSchema<(...args: unknown[]) => Promise<number[]>, undefined>, undefined>, undefined>;
|
|
1313
|
+
readonly fakeReply: v.OptionalSchema<v.ObjectSchema<{
|
|
1314
|
+
readonly provider: v.UnionSchema<[v.PicklistSchema<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"], undefined>, v.NumberSchema<undefined>], undefined>;
|
|
1315
|
+
}, undefined>, undefined>;
|
|
1316
|
+
readonly sticker: v.OptionalSchema<v.ObjectSchema<{
|
|
1317
|
+
readonly packageName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1318
|
+
readonly authorName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1319
|
+
readonly quality: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1320
|
+
readonly shape: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["default", "rounded", "circle", "oval"], undefined>, "default">, undefined>;
|
|
1321
|
+
}, undefined>, undefined>;
|
|
1322
|
+
readonly authType: v.LiteralSchema<"qr", undefined>;
|
|
1323
|
+
}, undefined>], undefined>;
|
|
1324
|
+
declare const EventEnumType: v.PicklistSchema<["connection", "messages", "calls"], undefined>;
|
|
884
1325
|
type EventCallbackType = {
|
|
885
1326
|
connection: (ctx: ConnectionContext) => void;
|
|
886
1327
|
messages: (ctx: MessagesContext) => void;
|
|
887
1328
|
calls: (ctx: CallsContext) => void;
|
|
888
1329
|
};
|
|
889
1330
|
|
|
890
|
-
declare const ButtonInteractiveReplyType:
|
|
891
|
-
type:
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
},
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
},
|
|
942
|
-
type:
|
|
943
|
-
text:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
},
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1331
|
+
declare const ButtonInteractiveReplyType: v.ObjectSchema<{
|
|
1332
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1333
|
+
readonly id: v.StringSchema<undefined>;
|
|
1334
|
+
readonly text: v.StringSchema<undefined>;
|
|
1335
|
+
}, undefined>;
|
|
1336
|
+
declare const ButtonInteractiveUrlType: v.ObjectSchema<{
|
|
1337
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1338
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1339
|
+
readonly text: v.StringSchema<undefined>;
|
|
1340
|
+
}, undefined>;
|
|
1341
|
+
declare const ButtonInteractiveCopyType: v.ObjectSchema<{
|
|
1342
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1343
|
+
readonly id: v.StringSchema<undefined>;
|
|
1344
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1345
|
+
readonly text: v.StringSchema<undefined>;
|
|
1346
|
+
}, undefined>;
|
|
1347
|
+
declare const ButtonInteractiveCallType: v.ObjectSchema<{
|
|
1348
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1349
|
+
readonly text: v.StringSchema<undefined>;
|
|
1350
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1351
|
+
}, undefined>;
|
|
1352
|
+
declare const ButtonInteractiveSingleSelectType: v.ObjectSchema<{
|
|
1353
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
1354
|
+
readonly text: v.StringSchema<undefined>;
|
|
1355
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
1356
|
+
readonly title: v.StringSchema<undefined>;
|
|
1357
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1358
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
1359
|
+
readonly id: v.StringSchema<undefined>;
|
|
1360
|
+
readonly title: v.StringSchema<undefined>;
|
|
1361
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1362
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1363
|
+
}, undefined>, undefined>;
|
|
1364
|
+
}, undefined>, undefined>;
|
|
1365
|
+
}, undefined>;
|
|
1366
|
+
declare const ButtonInteractiveType: v.ObjectSchema<{
|
|
1367
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
1368
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1369
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1370
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1371
|
+
readonly id: v.StringSchema<undefined>;
|
|
1372
|
+
readonly text: v.StringSchema<undefined>;
|
|
1373
|
+
}, undefined>, v.ObjectSchema<{
|
|
1374
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1375
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1376
|
+
readonly text: v.StringSchema<undefined>;
|
|
1377
|
+
}, undefined>, v.ObjectSchema<{
|
|
1378
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1379
|
+
readonly id: v.StringSchema<undefined>;
|
|
1380
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1381
|
+
readonly text: v.StringSchema<undefined>;
|
|
1382
|
+
}, undefined>, v.ObjectSchema<{
|
|
1383
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1384
|
+
readonly text: v.StringSchema<undefined>;
|
|
1385
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1386
|
+
}, undefined>, v.ObjectSchema<{
|
|
1387
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
1388
|
+
readonly text: v.StringSchema<undefined>;
|
|
1389
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
1390
|
+
readonly title: v.StringSchema<undefined>;
|
|
1391
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1392
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
1393
|
+
readonly id: v.StringSchema<undefined>;
|
|
1394
|
+
readonly title: v.StringSchema<undefined>;
|
|
1395
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1396
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1397
|
+
}, undefined>, undefined>;
|
|
1398
|
+
}, undefined>, undefined>;
|
|
1399
|
+
}, undefined>], undefined>, undefined>;
|
|
1400
|
+
}, undefined>;
|
|
1401
|
+
declare const ButtonSimpleType: v.ObjectSchema<{
|
|
1402
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
1403
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1404
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
1405
|
+
readonly id: v.StringSchema<undefined>;
|
|
1406
|
+
readonly text: v.StringSchema<undefined>;
|
|
1407
|
+
}, undefined>, undefined>;
|
|
1408
|
+
}, undefined>;
|
|
1409
|
+
declare const ButtonCarouselCardType: v.ObjectSchema<{
|
|
1410
|
+
readonly body: v.StringSchema<undefined>;
|
|
1411
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1412
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
1413
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1414
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1415
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1416
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1417
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1418
|
+
}, undefined>, undefined>;
|
|
1419
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1420
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1421
|
+
readonly id: v.StringSchema<undefined>;
|
|
1422
|
+
readonly text: v.StringSchema<undefined>;
|
|
1423
|
+
}, undefined>, v.ObjectSchema<{
|
|
1424
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1425
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1426
|
+
readonly text: v.StringSchema<undefined>;
|
|
1427
|
+
}, undefined>, v.ObjectSchema<{
|
|
1428
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1429
|
+
readonly id: v.StringSchema<undefined>;
|
|
1430
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1431
|
+
readonly text: v.StringSchema<undefined>;
|
|
1432
|
+
}, undefined>, v.ObjectSchema<{
|
|
1433
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1434
|
+
readonly text: v.StringSchema<undefined>;
|
|
1435
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1436
|
+
}, undefined>], undefined>, undefined>;
|
|
1437
|
+
}, undefined>;
|
|
1438
|
+
declare const ButtonCarouselType: v.ObjectSchema<{
|
|
1439
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
1440
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
1441
|
+
readonly body: v.StringSchema<undefined>;
|
|
1442
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1443
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
1444
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1445
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1446
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1447
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1448
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1449
|
+
}, undefined>, undefined>;
|
|
1450
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1451
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1452
|
+
readonly id: v.StringSchema<undefined>;
|
|
1453
|
+
readonly text: v.StringSchema<undefined>;
|
|
1454
|
+
}, undefined>, v.ObjectSchema<{
|
|
1455
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1456
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1457
|
+
readonly text: v.StringSchema<undefined>;
|
|
1458
|
+
}, undefined>, v.ObjectSchema<{
|
|
1459
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1460
|
+
readonly id: v.StringSchema<undefined>;
|
|
1461
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1462
|
+
readonly text: v.StringSchema<undefined>;
|
|
1463
|
+
}, undefined>, v.ObjectSchema<{
|
|
1464
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1465
|
+
readonly text: v.StringSchema<undefined>;
|
|
1466
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1467
|
+
}, undefined>], undefined>, undefined>;
|
|
1468
|
+
}, undefined>, undefined>;
|
|
1469
|
+
}, undefined>;
|
|
1470
|
+
declare const ButtonType: v.UnionSchema<[v.ObjectSchema<{
|
|
1471
|
+
readonly type: v.LiteralSchema<"simple", undefined>;
|
|
1472
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1473
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
1474
|
+
readonly id: v.StringSchema<undefined>;
|
|
1475
|
+
readonly text: v.StringSchema<undefined>;
|
|
1476
|
+
}, undefined>, undefined>;
|
|
1477
|
+
}, undefined>, v.ObjectSchema<{
|
|
1478
|
+
readonly type: v.LiteralSchema<"interactive", undefined>;
|
|
1479
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1480
|
+
readonly data: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1481
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1482
|
+
readonly id: v.StringSchema<undefined>;
|
|
1483
|
+
readonly text: v.StringSchema<undefined>;
|
|
1484
|
+
}, undefined>, v.ObjectSchema<{
|
|
1485
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1486
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1487
|
+
readonly text: v.StringSchema<undefined>;
|
|
1488
|
+
}, undefined>, v.ObjectSchema<{
|
|
1489
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1490
|
+
readonly id: v.StringSchema<undefined>;
|
|
1491
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1492
|
+
readonly text: v.StringSchema<undefined>;
|
|
1493
|
+
}, undefined>, v.ObjectSchema<{
|
|
1494
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1495
|
+
readonly text: v.StringSchema<undefined>;
|
|
1496
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1497
|
+
}, undefined>, v.ObjectSchema<{
|
|
1498
|
+
readonly type: v.LiteralSchema<"single_select", undefined>;
|
|
1499
|
+
readonly text: v.StringSchema<undefined>;
|
|
1500
|
+
readonly section: v.ArraySchema<v.ObjectSchema<{
|
|
1501
|
+
readonly title: v.StringSchema<undefined>;
|
|
1502
|
+
readonly highlight_label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1503
|
+
readonly rows: v.ArraySchema<v.ObjectSchema<{
|
|
1504
|
+
readonly id: v.StringSchema<undefined>;
|
|
1505
|
+
readonly title: v.StringSchema<undefined>;
|
|
1506
|
+
readonly header: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1507
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1508
|
+
}, undefined>, undefined>;
|
|
1509
|
+
}, undefined>, undefined>;
|
|
1510
|
+
}, undefined>], undefined>, undefined>;
|
|
1511
|
+
}, undefined>, v.ObjectSchema<{
|
|
1512
|
+
readonly type: v.LiteralSchema<"carousel", undefined>;
|
|
1513
|
+
readonly data: v.ArraySchema<v.ObjectSchema<{
|
|
1514
|
+
readonly body: v.StringSchema<undefined>;
|
|
1515
|
+
readonly footer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1516
|
+
readonly header: v.OptionalSchema<v.ObjectSchema<{
|
|
1517
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1518
|
+
readonly subtitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1519
|
+
readonly hasMediaAttachment: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1520
|
+
readonly image: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1521
|
+
readonly video: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1522
|
+
}, undefined>, undefined>;
|
|
1523
|
+
readonly nativeFlow: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1524
|
+
readonly type: v.LiteralSchema<"quick_reply", undefined>;
|
|
1525
|
+
readonly id: v.StringSchema<undefined>;
|
|
1526
|
+
readonly text: v.StringSchema<undefined>;
|
|
1527
|
+
}, undefined>, v.ObjectSchema<{
|
|
1528
|
+
readonly type: v.LiteralSchema<"cta_url", undefined>;
|
|
1529
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
1530
|
+
readonly text: v.StringSchema<undefined>;
|
|
1531
|
+
}, undefined>, v.ObjectSchema<{
|
|
1532
|
+
readonly type: v.LiteralSchema<"cta_copy", undefined>;
|
|
1533
|
+
readonly id: v.StringSchema<undefined>;
|
|
1534
|
+
readonly copy: v.StringSchema<undefined>;
|
|
1535
|
+
readonly text: v.StringSchema<undefined>;
|
|
1536
|
+
}, undefined>, v.ObjectSchema<{
|
|
1537
|
+
readonly type: v.LiteralSchema<"cta_call", undefined>;
|
|
1538
|
+
readonly text: v.StringSchema<undefined>;
|
|
1539
|
+
readonly phoneNumber: v.StringSchema<undefined>;
|
|
1540
|
+
}, undefined>], undefined>, undefined>;
|
|
1541
|
+
}, undefined>, undefined>;
|
|
1542
|
+
}, undefined>], undefined>;
|
|
1004
1543
|
|
|
1005
1544
|
declare class Logs {
|
|
1006
1545
|
private client;
|
|
@@ -1008,7 +1547,7 @@ declare class Logs {
|
|
|
1008
1547
|
private logsDisplayed;
|
|
1009
1548
|
private isReady;
|
|
1010
1549
|
constructor(client: Client);
|
|
1011
|
-
getRoomColor(validator: any): "lime" | "
|
|
1550
|
+
getRoomColor(validator: any): "lime" | "blue" | "orange" | "dimgray";
|
|
1012
1551
|
initialize(): void;
|
|
1013
1552
|
private displayIndicator;
|
|
1014
1553
|
message(message: Partial<MessagesContext>): void;
|
|
@@ -1031,11 +1570,12 @@ declare class Middleware<T> {
|
|
|
1031
1570
|
type PluginsHandlerType = (wa: Client, ctx: MiddlewareContextType) => Promise<void> | void;
|
|
1032
1571
|
type PluginsConfigType = {
|
|
1033
1572
|
matcher: (string | RegExp)[];
|
|
1034
|
-
metadata?: Record<string,
|
|
1573
|
+
metadata?: Record<string, unknown>;
|
|
1035
1574
|
};
|
|
1036
1575
|
type PluginDefinition = {
|
|
1037
1576
|
handler: PluginsHandlerType;
|
|
1038
1577
|
config: PluginsConfigType;
|
|
1578
|
+
filePath: string;
|
|
1039
1579
|
parent: string | null;
|
|
1040
1580
|
enabled: boolean;
|
|
1041
1581
|
};
|
|
@@ -1046,47 +1586,47 @@ declare class Plugins {
|
|
|
1046
1586
|
private disabledPlugins;
|
|
1047
1587
|
private hmr;
|
|
1048
1588
|
private watcher;
|
|
1589
|
+
private reloadTimer;
|
|
1049
1590
|
constructor(pluginsDir?: string, hmr?: boolean);
|
|
1050
|
-
private
|
|
1591
|
+
private getPluginId;
|
|
1051
1592
|
load(): Promise<void>;
|
|
1052
1593
|
setupHmr(): void;
|
|
1053
|
-
private getPluginId;
|
|
1054
1594
|
execute(wa: Client, ctx: MiddlewareContextType): Promise<void>;
|
|
1055
1595
|
private match;
|
|
1056
1596
|
enableAll(): void;
|
|
1057
1597
|
disableAll(): void;
|
|
1058
|
-
enable(matcher: string | RegExp):
|
|
1059
|
-
disable(matcher: string | RegExp):
|
|
1598
|
+
enable(matcher: string | RegExp): number;
|
|
1599
|
+
disable(matcher: string | RegExp): number;
|
|
1060
1600
|
enableByParent(parent: string): number;
|
|
1061
1601
|
disableByParent(parent: string): number;
|
|
1062
1602
|
isEnabled(): boolean;
|
|
1063
1603
|
getLoadedPlugins(): PluginDefinition[];
|
|
1064
1604
|
getPluginsInfo(): {
|
|
1065
1605
|
matcher: (string | RegExp)[];
|
|
1066
|
-
metadata?: Record<string,
|
|
1606
|
+
metadata?: Record<string, unknown>;
|
|
1067
1607
|
parent: string | null;
|
|
1068
1608
|
enabled: boolean;
|
|
1069
1609
|
}[];
|
|
1070
1610
|
reload(): Promise<void>;
|
|
1071
1611
|
stopHmr(): void;
|
|
1072
1612
|
}
|
|
1073
|
-
declare const definePlugins: (handler: PluginsHandlerType, config: PluginsConfigType) => Omit<PluginDefinition, "parent" | "enabled">;
|
|
1613
|
+
declare const definePlugins: (handler: PluginsHandlerType, config: PluginsConfigType) => Omit<PluginDefinition, "parent" | "enabled" | "filePath">;
|
|
1074
1614
|
|
|
1075
1615
|
interface Client extends Signal, SignalGroup, SignalPrivacy, SignalNewsletter, SignalCommunity {
|
|
1076
1616
|
}
|
|
1077
1617
|
declare class Client {
|
|
1078
|
-
options: z.infer<typeof ClientOptionsType>;
|
|
1079
1618
|
private _ready;
|
|
1080
1619
|
logs: Logs;
|
|
1081
1620
|
middleware: Middleware<any>;
|
|
1082
1621
|
plugins: Plugins;
|
|
1083
1622
|
health: HealthManager;
|
|
1084
1623
|
cleanup: CleanUpManager;
|
|
1085
|
-
|
|
1624
|
+
options: v.InferOutput<typeof ClientOptionsType>;
|
|
1625
|
+
constructor(options: v.InferInput<typeof ClientOptionsType>);
|
|
1086
1626
|
initialize(client?: Client): Promise<void>;
|
|
1087
1627
|
ready(): Promise<void>;
|
|
1088
|
-
db(scope: string):
|
|
1089
|
-
on<T extends
|
|
1628
|
+
db(scope: string): RootDatabase;
|
|
1629
|
+
on<T extends v.InferOutput<typeof EventEnumType>>(event: T, handler: EventCallbackType[T]): void;
|
|
1090
1630
|
use<T>(handler: MiddlewareHandler<T>): this;
|
|
1091
1631
|
get socket(): ReturnType<typeof baileys__default>;
|
|
1092
1632
|
getRoomName(roomId: string): Promise<string>;
|
|
@@ -1103,73 +1643,22 @@ declare const toJson: (object: unknown) => any;
|
|
|
1103
1643
|
declare const toString: (object: unknown) => string;
|
|
1104
1644
|
declare const shuffleString: (str?: string) => string;
|
|
1105
1645
|
declare const findGlobalWord: (text?: string, word?: string) => boolean;
|
|
1106
|
-
declare const extractUrls: (text?: string) =>
|
|
1646
|
+
declare const extractUrls: (text?: string) => any[] | RegExpMatchArray;
|
|
1107
1647
|
declare const randomize: (arr: string[]) => string;
|
|
1108
1648
|
declare const pickKeysFromArray: (arr: any[], keys: string[]) => any;
|
|
1109
1649
|
declare const findNestedByKeys: (data: unknown, target: Record<string, any> | Record<string, any>[]) => any;
|
|
1110
1650
|
declare const modifyFn: <T extends (...args: any[]) => any>(fn: T, before?: (args: any[]) => void | any, after?: (result: any, args: any[]) => any) => T;
|
|
1111
|
-
|
|
1112
|
-
type MediaInput = string | ArrayBuffer | Buffer;
|
|
1113
|
-
|
|
1114
|
-
type AudioType = 'opus' | 'mp3';
|
|
1115
|
-
|
|
1116
|
-
declare class AudioModifier {
|
|
1117
|
-
private input;
|
|
1118
|
-
constructor(input: MediaInput);
|
|
1119
|
-
toOpus(): Promise<Buffer>;
|
|
1120
|
-
toMp3(): Promise<Buffer>;
|
|
1121
|
-
convert(type?: AudioType): Promise<Buffer>;
|
|
1122
|
-
}
|
|
1123
|
-
declare class VideoModifier {
|
|
1124
|
-
private input;
|
|
1125
|
-
constructor(input: MediaInput);
|
|
1126
|
-
toMp4(): Promise<Buffer>;
|
|
1127
|
-
thumbnail(): Promise<string>;
|
|
1128
|
-
}
|
|
1129
|
-
declare class ImageModifier {
|
|
1130
|
-
private input;
|
|
1131
|
-
constructor(input: MediaInput);
|
|
1132
|
-
toJpeg(): Promise<Buffer>;
|
|
1133
|
-
thumbnail(): Promise<string>;
|
|
1134
|
-
resize(width: number, height: number): Promise<Buffer>;
|
|
1135
|
-
}
|
|
1136
|
-
declare class StickerModifier {
|
|
1137
|
-
private input;
|
|
1138
|
-
private metadata?;
|
|
1139
|
-
constructor(input: MediaInput, metadata?: z.infer<typeof StickerMetadataType>);
|
|
1140
|
-
create(): Promise<Buffer>;
|
|
1141
|
-
}
|
|
1142
|
-
declare class DocumentModifier {
|
|
1143
|
-
private input;
|
|
1144
|
-
constructor(input: MediaInput);
|
|
1145
|
-
create(): Promise<{
|
|
1146
|
-
document: Buffer<ArrayBufferLike>;
|
|
1147
|
-
mimetype: string;
|
|
1148
|
-
fileName: string;
|
|
1149
|
-
jpegThumbnail: string;
|
|
1150
|
-
}>;
|
|
1151
|
-
}
|
|
1152
|
-
declare class MediaThumbnailModifier {
|
|
1153
|
-
private input;
|
|
1154
|
-
constructor(input: MediaInput);
|
|
1155
|
-
get(): Promise<string>;
|
|
1156
|
-
}
|
|
1157
|
-
declare class MediaModifier {
|
|
1158
|
-
audio(input: MediaInput): AudioModifier;
|
|
1159
|
-
video(input: MediaInput): VideoModifier;
|
|
1160
|
-
image(input: MediaInput): ImageModifier;
|
|
1161
|
-
sticker(input: MediaInput, metadata?: z.infer<typeof StickerMetadataType>): StickerModifier;
|
|
1162
|
-
document(input: MediaInput): DocumentModifier;
|
|
1163
|
-
thumbnail(input: MediaInput): MediaThumbnailModifier;
|
|
1164
|
-
toBuffer(input: MediaInput): Promise<Buffer>;
|
|
1165
|
-
}
|
|
1166
|
-
declare const mediaModifier: MediaModifier;
|
|
1651
|
+
declare const escapeRegExp: (text: string) => string;
|
|
1167
1652
|
|
|
1168
1653
|
declare const generateId: (input: string | string[]) => string;
|
|
1169
1654
|
declare const getUsersMentions: (text?: string) => string[];
|
|
1170
1655
|
declare const extractJids: (text?: string) => string[];
|
|
1656
|
+
declare const resolveJids: (jids: (string | null | undefined)[]) => {
|
|
1657
|
+
id: string;
|
|
1658
|
+
lid: string;
|
|
1659
|
+
};
|
|
1171
1660
|
declare const numbersToJids: (numbers: number[]) => string[];
|
|
1172
|
-
declare const cleanMediaObject: (object: any) =>
|
|
1661
|
+
declare const cleanMediaObject: (object: any) => Omit<any, "key" | "message" | "url" | "contextInfo" | "fileSha256" | "fileEncSha256" | "mediaKey" | "directPath" | "waveform" | "thumbnail" | "jpegThumbnail" | "thumbnailEncSha256" | "thumbnailSha256" | "thumbnailDirectPath" | "firstFrameSidecar" | "streamingSidecar" | "scansSidecar" | "callKey" | "midQualityFileSha256" | "historySyncNotification" | "appStateSyncKeyShare" | "appStateSyncKeyRequest" | "initialSecurityNotificationSettingSync" | "appStateFatalExceptionNotification" | "disappearingMode" | "peerDataOperationRequestMessage" | "peerDataOperationRequestResponseMessage" | "botFeedbackMessage">;
|
|
1173
1662
|
declare const getDeepContent: (raw?: proto.IMessage | null) => {
|
|
1174
1663
|
leaf: any;
|
|
1175
1664
|
chain: string[];
|
|
@@ -1181,4 +1670,4 @@ declare const getLatestLibVersion: () => Promise<any>;
|
|
|
1181
1670
|
declare const removeAuthCreds: (session: string) => Promise<void>;
|
|
1182
1671
|
declare const normalizeText: (text?: string) => string;
|
|
1183
1672
|
|
|
1184
|
-
export { BaseMessagesType, ButtonInteractiveCallType, ButtonInteractiveCopyType, ButtonInteractiveReplyType, ButtonInteractiveSingleSelectType, ButtonInteractiveType, ButtonInteractiveUrlType, ButtonSimpleType, ButtonType, type CallsContext, CitationType, Client, ClientAuthPairingType, ClientAuthQRType, ClientBaseType, ClientOptionsType, type ConnectionContext, DEVICE_ENUM_TYPES, type EventCallbackType, EventEnumType, FakeReplyType, LimiterType, ListenerCallsType, ListenerConnectionType, ListenerMessagesType, MESSAGE_ENUM_TYPES,
|
|
1673
|
+
export { BaseMessagesType, ButtonCarouselCardType, ButtonCarouselType, ButtonInteractiveCallType, ButtonInteractiveCopyType, ButtonInteractiveReplyType, ButtonInteractiveSingleSelectType, ButtonInteractiveType, ButtonInteractiveUrlType, ButtonSimpleType, ButtonType, type CallsContext, CitationType, Client, ClientAuthPairingType, ClientAuthQRType, ClientBaseType, ClientOptionsType, ClientStickerOptionsType, ClientStickerShapeType, type ConnectionContext, DEVICE_ENUM_TYPES, type EventCallbackType, EventEnumType, FakeReplyType, LimiterType, ListenerCallsType, ListenerConnectionType, ListenerMessagesType, MESSAGE_ENUM_TYPES, type MessagesContext, type PluginDefinition, Plugins, type PluginsConfigType, type PluginsHandlerType, autoCleanUp, cleanJid, cleanMediaObject, definePlugins, escapeRegExp, extractJids, extractUrls, findGlobalWord, findNestedByKeys, generateId, getDeepContent, getLatestLibVersion, getUsersMentions, ignoreLint, logColor, modifyFn, normalizeText, numbersToJids, pickKeysFromArray, randomize, registerAuthCreds, removeAuthCreds, resolveJids, shuffleString, toJson, toString, useAuthState };
|