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.
Files changed (114) hide show
  1. package/.agent/skills/codebase-mapper/SKILL.md +226 -0
  2. package/.agent/skills/context-compressor/SKILL.md +201 -0
  3. package/.agent/skills/context-fetch/SKILL.md +184 -0
  4. package/.agent/skills/context-health-monitor/SKILL.md +105 -0
  5. package/.agent/skills/debugger/SKILL.md +273 -0
  6. package/.agent/skills/empirical-validation/SKILL.md +97 -0
  7. package/.agent/skills/executor/SKILL.md +465 -0
  8. package/.agent/skills/plan-checker/SKILL.md +283 -0
  9. package/.agent/skills/planner/SKILL.md +485 -0
  10. package/.agent/skills/token-budget/SKILL.md +166 -0
  11. package/.agent/skills/verifier/SKILL.md +421 -0
  12. package/.agent/workflows/add-phase.md +96 -0
  13. package/.agent/workflows/add-todo.md +69 -0
  14. package/.agent/workflows/audit-milestone.md +107 -0
  15. package/.agent/workflows/check-todos.md +80 -0
  16. package/.agent/workflows/complete-milestone.md +135 -0
  17. package/.agent/workflows/debug.md +235 -0
  18. package/.agent/workflows/discuss-phase.md +103 -0
  19. package/.agent/workflows/execute.md +325 -0
  20. package/.agent/workflows/health.md +122 -0
  21. package/.agent/workflows/help.md +96 -0
  22. package/.agent/workflows/insert-phase.md +109 -0
  23. package/.agent/workflows/install.md +152 -0
  24. package/.agent/workflows/list-phase-assumptions.md +82 -0
  25. package/.agent/workflows/map.md +394 -0
  26. package/.agent/workflows/new-milestone.md +126 -0
  27. package/.agent/workflows/new-project.md +368 -0
  28. package/.agent/workflows/pause.md +176 -0
  29. package/.agent/workflows/plan-milestone-gaps.md +116 -0
  30. package/.agent/workflows/plan.md +380 -0
  31. package/.agent/workflows/progress.md +90 -0
  32. package/.agent/workflows/quick.md +128 -0
  33. package/.agent/workflows/remove-phase.md +139 -0
  34. package/.agent/workflows/research-phase.md +160 -0
  35. package/.agent/workflows/resume.md +131 -0
  36. package/.agent/workflows/update.md +203 -0
  37. package/.agent/workflows/verify.md +263 -0
  38. package/.agent/workflows/web-search.md +121 -0
  39. package/.agent/workflows/whats-new.md +80 -0
  40. package/.gemini/GEMINI.md +67 -0
  41. package/.gsd/DEBUG.md +26 -0
  42. package/.gsd/GSD-STYLE.md +272 -0
  43. package/.gsd/PROJECT_RULES.md +256 -0
  44. package/.gsd/ROADMAP.md +38 -0
  45. package/.gsd/SPEC.md +16 -0
  46. package/.gsd/STATE.md +10 -0
  47. package/.gsd/adapters/CLAUDE.md +77 -0
  48. package/.gsd/adapters/GEMINI.md +92 -0
  49. package/.gsd/adapters/GPT_OSS.md +130 -0
  50. package/.gsd/docs/model-selection-playbook.md +128 -0
  51. package/.gsd/docs/runbook.md +296 -0
  52. package/.gsd/docs/token-optimization-guide.md +207 -0
  53. package/.gsd/model_capabilities.yaml +108 -0
  54. package/.gsd/phases/1/1-PLAN.md +44 -0
  55. package/.gsd/phases/1/2-PLAN.md +54 -0
  56. package/.gsd/phases/1/3-PLAN.md +46 -0
  57. package/.gsd/phases/1/4-PLAN.md +39 -0
  58. package/.gsd/phases/2/2-1-SUMMARY.md +8 -0
  59. package/.gsd/phases/2/2-PLAN.md +47 -0
  60. package/.gsd/phases/3/3-1-SUMMARY.md +8 -0
  61. package/.gsd/phases/3/3-PLAN.md +43 -0
  62. package/.gsd/phases/4/4-1-PLAN.md +44 -0
  63. package/.gsd/phases/4/4-1-SUMMARY.md +8 -0
  64. package/.gsd/phases/4/4-2-PLAN.md +59 -0
  65. package/.gsd/phases/4/4-2-SUMMARY.md +8 -0
  66. package/.gsd/phases/4/4-3-PLAN.md +42 -0
  67. package/.gsd/phases/4/4-3-SUMMARY.md +8 -0
  68. package/.gsd/phases/4/VERIFICATION.md +8 -0
  69. package/.gsd/phases/5/1-SUMMARY.md +5 -0
  70. package/.gsd/phases/5/5-PLAN.md +47 -0
  71. package/.gsd/phases/5/RESEARCH.md +24 -0
  72. package/.gsd/phases/5/VERIFICATION.md +8 -0
  73. package/.gsd/phases/6/1-SUMMARY.md +6 -0
  74. package/.gsd/phases/6/6-PLAN.md +46 -0
  75. package/.gsd/phases/6/RESEARCH.md +33 -0
  76. package/.gsd/phases/6/VERIFICATION.md +7 -0
  77. package/.gsd/phases/7/1-SUMMARY.md +12 -0
  78. package/.gsd/phases/7/7-PLAN.md +78 -0
  79. package/.gsd/phases/7/VERIFICATION.md +7 -0
  80. package/.gsd/templates/DEBUG.md +123 -0
  81. package/.gsd/templates/PLAN.md +90 -0
  82. package/.gsd/templates/RESEARCH.md +75 -0
  83. package/.gsd/templates/SUMMARY.md +103 -0
  84. package/.gsd/templates/UAT.md +168 -0
  85. package/.gsd/templates/VERIFICATION.md +70 -0
  86. package/.gsd/templates/architecture.md +67 -0
  87. package/.gsd/templates/context.md +91 -0
  88. package/.gsd/templates/decisions.md +37 -0
  89. package/.gsd/templates/discovery.md +122 -0
  90. package/.gsd/templates/journal.md +46 -0
  91. package/.gsd/templates/milestone.md +91 -0
  92. package/.gsd/templates/phase-summary.md +52 -0
  93. package/.gsd/templates/project.md +124 -0
  94. package/.gsd/templates/requirements.md +92 -0
  95. package/.gsd/templates/roadmap.md +103 -0
  96. package/.gsd/templates/spec.md +51 -0
  97. package/.gsd/templates/sprint.md +57 -0
  98. package/.gsd/templates/stack.md +62 -0
  99. package/.gsd/templates/state.md +92 -0
  100. package/.gsd/templates/state_snapshot.md +132 -0
  101. package/.gsd/templates/todo.md +32 -0
  102. package/.gsd/templates/token_report.md +79 -0
  103. package/.gsd/templates/user-setup.md +116 -0
  104. package/.husky/commit-msg +1 -0
  105. package/.husky/pre-commit +1 -0
  106. package/LICENSE +21 -21
  107. package/README.MD +1280 -1230
  108. package/commitlint.config.js +3 -0
  109. package/dist/index.d.mts +1397 -908
  110. package/dist/index.d.ts +1397 -908
  111. package/dist/index.js +29 -28
  112. package/dist/index.mjs +29 -28
  113. package/package.json +11 -27
  114. 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 { JetDB } from 'jetdb';
4
- import z, { z as z$1 } from 'zod';
3
+ import { RootDatabase } from 'lmdb';
4
+ import * as v from 'valibot';
5
5
  import pino from 'pino';
6
6
  import Stream from 'stream';
7
- import _ from 'lodash';
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: z.ZodEnum<{
33
- delete: "delete";
34
- forward: "forward";
35
- button: "button";
36
- edit: "edit";
37
- }>;
38
- declare const SignalOptionsType: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
39
- text: z.ZodString;
40
- }, z.core.$loose>, z.ZodObject<{
41
- image: z.ZodUnion<[z.ZodUnion<[z.ZodURL, z.ZodBase64]>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
42
- caption: z.ZodOptional<z.ZodString>;
43
- }, z.core.$loose>, z.ZodObject<{
44
- audio: z.ZodUnion<[z.ZodUnion<[z.ZodURL, z.ZodBase64]>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
45
- caption: z.ZodOptional<z.ZodString>;
46
- ptt: z.ZodOptional<z.ZodBoolean>;
47
- }, z.core.$loose>, z.ZodObject<{
48
- video: z.ZodUnion<[z.ZodUnion<[z.ZodURL, z.ZodBase64]>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
49
- caption: z.ZodOptional<z.ZodString>;
50
- ptv: z.ZodOptional<z.ZodBoolean>;
51
- }, z.core.$loose>, z.ZodObject<{
52
- sticker: z.ZodUnion<[z.ZodUnion<[z.ZodURL, z.ZodBase64]>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
53
- shape: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
54
- default: "default";
55
- rounded: "rounded";
56
- circle: "circle";
57
- oval: "oval";
58
- }>>>;
59
- caption: z.ZodOptional<z.ZodString>;
60
- }, z.core.$loose>, z.ZodObject<{
61
- document: z.ZodUnion<[z.ZodUnion<[z.ZodURL, z.ZodBase64]>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
62
- caption: z.ZodOptional<z.ZodString>;
63
- fileName: z.ZodOptional<z.ZodString>;
64
- }, z.core.$loose>, z.ZodObject<{
65
- location: z.ZodOptional<z.ZodObject<{
66
- latitude: z.ZodNumber;
67
- longitude: z.ZodNumber;
68
- url: z.ZodOptional<z.ZodURL>;
69
- title: z.ZodOptional<z.ZodString>;
70
- footer: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strip>>;
72
- }, z.core.$loose>, z.ZodObject<{
73
- contacts: z.ZodObject<{
74
- title: z.ZodOptional<z.ZodString>;
75
- contacts: z.ZodArray<z.ZodObject<{
76
- fullname: z.ZodString;
77
- phoneNumber: z.ZodNumber;
78
- organization: z.ZodOptional<z.ZodString>;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
81
- }, z.core.$loose>, z.ZodObject<{
82
- poll: z.ZodObject<{
83
- name: z.ZodString;
84
- answers: z.ZodArray<z.ZodString>;
85
- isMultiple: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
86
- }, z.core.$strip>;
87
- }, z.core.$strip>]>, z.ZodObject<{
88
- isViewOnce: z.ZodOptional<z.ZodBoolean>;
89
- replied: z.ZodOptional<z.ZodCustom<WAMessage, WAMessage>>;
90
- isForwardedMany: z.ZodOptional<z.ZodBoolean>;
91
- banner: z.ZodOptional<z.ZodCustom<proto.ContextInfo.IExternalAdReplyInfo, proto.ContextInfo.IExternalAdReplyInfo>>;
92
- }, z.core.$strip>>]>;
93
- declare const ButtonOptionsType: z.ZodIntersection<z.ZodObject<{
94
- text: z.ZodString;
95
- }, z.core.$loose>, z.ZodObject<{
96
- buttons: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
97
- type: z.ZodLiteral<"simple">;
98
- footer: z.ZodOptional<z.ZodString>;
99
- data: z.ZodArray<z.ZodObject<{
100
- id: z.ZodString;
101
- text: z.ZodString;
102
- }, z.core.$strip>>;
103
- }, z.core.$strip>, z.ZodObject<{
104
- type: z.ZodLiteral<"interactive">;
105
- footer: z.ZodOptional<z.ZodString>;
106
- data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
107
- type: z.ZodLiteral<"quick_reply">;
108
- text: z.ZodString;
109
- }, z.core.$strip>, z.ZodObject<{
110
- type: z.ZodLiteral<"cta_url">;
111
- url: z.ZodURL;
112
- text: z.ZodString;
113
- }, z.core.$strip>, z.ZodObject<{
114
- type: z.ZodLiteral<"cta_copy">;
115
- copy: z.ZodString;
116
- text: z.ZodString;
117
- }, z.core.$strip>, z.ZodObject<{
118
- type: z.ZodLiteral<"cta_call">;
119
- text: z.ZodString;
120
- phoneNumber: z.ZodString;
121
- }, z.core.$strip>, z.ZodObject<{
122
- type: z.ZodLiteral<"single_select">;
123
- text: z.ZodString;
124
- section: z.ZodArray<z.ZodObject<{
125
- title: z.ZodString;
126
- highlight_label: z.ZodOptional<z.ZodString>;
127
- rows: z.ZodArray<z.ZodObject<{
128
- id: z.ZodString;
129
- title: z.ZodString;
130
- header: z.ZodOptional<z.ZodString>;
131
- description: z.ZodOptional<z.ZodString>;
132
- }, z.core.$strip>>;
133
- }, z.core.$strip>>;
134
- }, z.core.$strip>]>>;
135
- }, z.core.$strip>]>>;
136
- isViewOnce: z.ZodOptional<z.ZodBoolean>;
137
- replied: z.ZodOptional<z.ZodCustom<WAMessage, WAMessage>>;
138
- isForwardedMany: z.ZodOptional<z.ZodBoolean>;
139
- }, z.core.$strip>>;
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: z.infer<typeof SignalOptionsType>, type?: z.infer<typeof SignalType>, message?: WAMessage): Promise<WAMessage>;
145
- send(roomId: string, options: z.infer<typeof SignalOptionsType>): Promise<WAMessage>;
146
- forward(roomId: string, options: z.infer<typeof SignalOptionsType>): Promise<WAMessage>;
147
- button(roomId: string, options: z.infer<typeof ButtonOptionsType>): Promise<WAMessage>;
148
- edit(message: WAMessage, options: z.infer<typeof SignalOptionsType>): Promise<WAMessage>;
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: z.ZodObject<{
276
- callId: z.ZodString;
277
- callerId: z.ZodString;
278
- roomId: z.ZodString;
279
- roomName: z.ZodString;
280
- date: z.ZodDate;
281
- offline: z.ZodBoolean;
282
- status: z.ZodEnum<{
283
- accept: "accept";
284
- offer: "offer";
285
- reject: "reject";
286
- ringing: "ringing";
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: z.ZodObject<{
296
- status: z.ZodEnum<{
297
- connecting: "connecting";
298
- open: "open";
299
- close: "close";
300
- reload: "reload";
301
- syncing: "syncing";
302
- }>;
303
- authType: z.ZodEnum<{
304
- pairing: "pairing";
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: z.ZodEnum<{
316
- unknown: "unknown";
317
- android: "android";
318
- ios: "ios";
319
- desktop: "desktop";
320
- web: "web";
321
- }>;
322
- declare const MESSAGE_ENUM_TYPES: z.ZodEnum<{
323
- sticker: "sticker";
324
- video: "video";
325
- text: "text";
326
- album: "album";
327
- image: "image";
328
- contact: "contact";
329
- location: "location";
330
- document: "document";
331
- audio: "audio";
332
- protocol: "protocol";
333
- contacts: "contacts";
334
- highlyStructured: "highlyStructured";
335
- sendPayment: "sendPayment";
336
- requestPayment: "requestPayment";
337
- groupStatusMention: "groupStatusMention";
338
- statusMention: "statusMention";
339
- declinePaymentRequest: "declinePaymentRequest";
340
- cancelPaymentRequest: "cancelPaymentRequest";
341
- template: "template";
342
- groupInvite: "groupInvite";
343
- product: "product";
344
- deviceSent: "deviceSent";
345
- lists: "lists";
346
- viewOnce: "viewOnce";
347
- order: "order";
348
- ephemeral: "ephemeral";
349
- invoice: "invoice";
350
- buttons: "buttons";
351
- paymentInvite: "paymentInvite";
352
- interactive: "interactive";
353
- reaction: "reaction";
354
- interactiveResponse: "interactiveResponse";
355
- pollCreation: "pollCreation";
356
- pollUpdate: "pollUpdate";
357
- keepInChat: "keepInChat";
358
- requestPhoneNumber: "requestPhoneNumber";
359
- scheduledCallCreation: "scheduledCallCreation";
360
- groupMentioned: "groupMentioned";
361
- pinInChat: "pinInChat";
362
- scheduledCallEdit: "scheduledCallEdit";
363
- ptv: "ptv";
364
- botInvoke: "botInvoke";
365
- callLog: "callLog";
366
- encComment: "encComment";
367
- bcall: "bcall";
368
- lottieSticker: "lottieSticker";
369
- event: "event";
370
- comment: "comment";
371
- placeholder: "placeholder";
372
- encEventUpdate: "encEventUpdate";
373
- }>;
374
- declare const BaseMessagesType: z.ZodObject<{
375
- channelId: z.ZodString;
376
- uniqueId: z.ZodString;
377
- chatId: z.ZodString;
378
- chatType: z.ZodEnum<{
379
- sticker: "sticker";
380
- video: "video";
381
- text: "text";
382
- album: "album";
383
- image: "image";
384
- contact: "contact";
385
- location: "location";
386
- document: "document";
387
- audio: "audio";
388
- protocol: "protocol";
389
- contacts: "contacts";
390
- highlyStructured: "highlyStructured";
391
- sendPayment: "sendPayment";
392
- requestPayment: "requestPayment";
393
- groupStatusMention: "groupStatusMention";
394
- statusMention: "statusMention";
395
- declinePaymentRequest: "declinePaymentRequest";
396
- cancelPaymentRequest: "cancelPaymentRequest";
397
- template: "template";
398
- groupInvite: "groupInvite";
399
- product: "product";
400
- deviceSent: "deviceSent";
401
- lists: "lists";
402
- viewOnce: "viewOnce";
403
- order: "order";
404
- ephemeral: "ephemeral";
405
- invoice: "invoice";
406
- buttons: "buttons";
407
- paymentInvite: "paymentInvite";
408
- interactive: "interactive";
409
- reaction: "reaction";
410
- interactiveResponse: "interactiveResponse";
411
- pollCreation: "pollCreation";
412
- pollUpdate: "pollUpdate";
413
- keepInChat: "keepInChat";
414
- requestPhoneNumber: "requestPhoneNumber";
415
- scheduledCallCreation: "scheduledCallCreation";
416
- groupMentioned: "groupMentioned";
417
- pinInChat: "pinInChat";
418
- scheduledCallEdit: "scheduledCallEdit";
419
- ptv: "ptv";
420
- botInvoke: "botInvoke";
421
- callLog: "callLog";
422
- encComment: "encComment";
423
- bcall: "bcall";
424
- lottieSticker: "lottieSticker";
425
- event: "event";
426
- comment: "comment";
427
- placeholder: "placeholder";
428
- encEventUpdate: "encEventUpdate";
429
- }>;
430
- receiverLid: z.ZodString;
431
- receiverId: z.ZodString;
432
- receiverName: z.ZodString;
433
- roomId: z.ZodString;
434
- roomName: z.ZodString;
435
- senderLid: z.ZodString;
436
- senderId: z.ZodString;
437
- senderName: z.ZodString;
438
- senderDevice: z.ZodEnum<{
439
- unknown: "unknown";
440
- android: "android";
441
- ios: "ios";
442
- desktop: "desktop";
443
- web: "web";
444
- }>;
445
- timestamp: z.ZodNumber;
446
- text: z.ZodNullable<z.ZodString>;
447
- mentions: z.ZodArray<z.ZodString>;
448
- links: z.ZodArray<z.ZodString>;
449
- isBot: z.ZodBoolean;
450
- isFromMe: z.ZodBoolean;
451
- isPrefix: z.ZodBoolean;
452
- isSpam: z.ZodBoolean;
453
- isTagMe: z.ZodBoolean;
454
- isStatusMention: z.ZodBoolean;
455
- isGroupStatusMention: z.ZodBoolean;
456
- isHideTags: z.ZodBoolean;
457
- isGroup: z.ZodBoolean;
458
- isNewsletter: z.ZodBoolean;
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: z$1.ZodOptional<z$1.ZodObject<{
686
- maxMessages: z$1.ZodDefault<z$1.ZodNumber>;
687
- durationMs: z$1.ZodDefault<z$1.ZodNumber>;
688
- }, z$1.core.$strip>>;
689
- declare const CitationType: 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>>>>>;
690
- declare const FakeReplyType: z$1.ZodOptional<z$1.ZodObject<{
691
- provider: z$1.ZodUnion<[z$1.ZodEnum<{
692
- whatsapp: "whatsapp";
693
- meta: "meta";
694
- chatgpt: "chatgpt";
695
- copilot: "copilot";
696
- instagram: "instagram";
697
- tiktok: "tiktok";
698
- }>, z$1.ZodNumber]>;
699
- }, z$1.core.$strip>>;
700
- declare const StickerShapeType: z$1.ZodDefault<z$1.ZodEnum<{
701
- default: "default";
702
- rounded: "rounded";
703
- circle: "circle";
704
- oval: "oval";
705
- }>>;
706
- declare const StickerMetadataType: z$1.ZodOptional<z$1.ZodObject<{
707
- packageName: z$1.ZodOptional<z$1.ZodString>;
708
- authorName: z$1.ZodOptional<z$1.ZodString>;
709
- quality: z$1.ZodOptional<z$1.ZodNumber>;
710
- shape: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
711
- default: "default";
712
- rounded: "rounded";
713
- circle: "circle";
714
- oval: "oval";
715
- }>>>;
716
- }, z$1.core.$strip>>;
717
- declare const autoCleanUp: z$1.ZodOptional<z$1.ZodObject<{
718
- enabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
719
- intervalMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
720
- maxAgeMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
721
- scopes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
722
- }, z$1.core.$strip>>;
723
- declare const ClientBaseType: z$1.ZodObject<{
724
- session: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
725
- prefix: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
726
- ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
727
- showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
728
- fancyLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
729
- syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
730
- disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
731
- autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
732
- autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
733
- autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
734
- autoRead: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
735
- autoPresence: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
736
- autoRejectCall: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
737
- pluginsDir: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
738
- pluginsHmr: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
739
- autoCleanUp: z$1.ZodOptional<z$1.ZodObject<{
740
- enabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
741
- intervalMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
742
- maxAgeMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
743
- scopes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
744
- }, z$1.core.$strip>>;
745
- limiter: z$1.ZodOptional<z$1.ZodObject<{
746
- maxMessages: z$1.ZodDefault<z$1.ZodNumber>;
747
- durationMs: z$1.ZodDefault<z$1.ZodNumber>;
748
- }, z$1.core.$strip>>;
749
- 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>>>>>;
750
- fakeReply: z$1.ZodOptional<z$1.ZodObject<{
751
- provider: z$1.ZodUnion<[z$1.ZodEnum<{
752
- whatsapp: "whatsapp";
753
- meta: "meta";
754
- chatgpt: "chatgpt";
755
- copilot: "copilot";
756
- instagram: "instagram";
757
- tiktok: "tiktok";
758
- }>, z$1.ZodNumber]>;
759
- }, z$1.core.$strip>>;
760
- sticker: z$1.ZodOptional<z$1.ZodObject<{
761
- packageName: z$1.ZodOptional<z$1.ZodString>;
762
- authorName: z$1.ZodOptional<z$1.ZodString>;
763
- quality: z$1.ZodOptional<z$1.ZodNumber>;
764
- shape: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
765
- default: "default";
766
- rounded: "rounded";
767
- circle: "circle";
768
- oval: "oval";
769
- }>>>;
770
- }, z$1.core.$strip>>;
771
- }, z$1.core.$strip>;
772
- declare const ClientAuthPairingType: z$1.ZodObject<{
773
- authType: z$1.ZodLiteral<"pairing">;
774
- phoneNumber: z$1.ZodNumber;
775
- }, z$1.core.$strip>;
776
- declare const ClientAuthQRType: z$1.ZodObject<{
777
- authType: z$1.ZodLiteral<"qr">;
778
- }, z$1.core.$strip>;
779
- declare const ClientOptionsType: z$1.ZodUnion<readonly [z$1.ZodObject<{
780
- authType: z$1.ZodLiteral<"pairing">;
781
- phoneNumber: z$1.ZodNumber;
782
- session: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
783
- prefix: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
784
- ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
785
- showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
786
- fancyLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
787
- syncFullHistory: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
788
- disableFFmpeg: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
789
- autoMarkAI: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
790
- autoMentions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
791
- autoOnline: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
792
- autoRead: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
793
- autoPresence: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
794
- autoRejectCall: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
795
- pluginsDir: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
796
- pluginsHmr: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
797
- autoCleanUp: z$1.ZodOptional<z$1.ZodObject<{
798
- enabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
799
- intervalMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
800
- maxAgeMs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
801
- scopes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
802
- }, z$1.core.$strip>>;
803
- limiter: z$1.ZodOptional<z$1.ZodObject<{
804
- maxMessages: z$1.ZodDefault<z$1.ZodNumber>;
805
- durationMs: z$1.ZodDefault<z$1.ZodNumber>;
806
- }, z$1.core.$strip>>;
807
- 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>>>>>;
808
- fakeReply: z$1.ZodOptional<z$1.ZodObject<{
809
- provider: z$1.ZodUnion<[z$1.ZodEnum<{
810
- whatsapp: "whatsapp";
811
- meta: "meta";
812
- chatgpt: "chatgpt";
813
- copilot: "copilot";
814
- instagram: "instagram";
815
- tiktok: "tiktok";
816
- }>, z$1.ZodNumber]>;
817
- }, z$1.core.$strip>>;
818
- sticker: z$1.ZodOptional<z$1.ZodObject<{
819
- packageName: z$1.ZodOptional<z$1.ZodString>;
820
- authorName: z$1.ZodOptional<z$1.ZodString>;
821
- quality: z$1.ZodOptional<z$1.ZodNumber>;
822
- shape: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
823
- default: "default";
824
- rounded: "rounded";
825
- circle: "circle";
826
- oval: "oval";
827
- }>>>;
828
- }, z$1.core.$strip>>;
829
- }, z$1.core.$strip>, z$1.ZodObject<{
830
- authType: z$1.ZodLiteral<"qr">;
831
- session: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
832
- prefix: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>>;
833
- ignoreMe: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
834
- showLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
835
- fancyLogs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
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: z.ZodObject<{
891
- type: z.ZodLiteral<"quick_reply">;
892
- text: z.ZodString;
893
- }, z.core.$strip>;
894
- declare const ButtonInteractiveUrlType: z.ZodObject<{
895
- type: z.ZodLiteral<"cta_url">;
896
- url: z.ZodURL;
897
- text: z.ZodString;
898
- }, z.core.$strip>;
899
- declare const ButtonInteractiveCopyType: z.ZodObject<{
900
- type: z.ZodLiteral<"cta_copy">;
901
- copy: z.ZodString;
902
- text: z.ZodString;
903
- }, z.core.$strip>;
904
- declare const ButtonInteractiveCallType: z.ZodObject<{
905
- type: z.ZodLiteral<"cta_call">;
906
- text: z.ZodString;
907
- phoneNumber: z.ZodString;
908
- }, z.core.$strip>;
909
- declare const ButtonInteractiveSingleSelectType: z.ZodObject<{
910
- type: z.ZodLiteral<"single_select">;
911
- text: z.ZodString;
912
- section: z.ZodArray<z.ZodObject<{
913
- title: z.ZodString;
914
- highlight_label: z.ZodOptional<z.ZodString>;
915
- rows: z.ZodArray<z.ZodObject<{
916
- id: z.ZodString;
917
- title: z.ZodString;
918
- header: z.ZodOptional<z.ZodString>;
919
- description: z.ZodOptional<z.ZodString>;
920
- }, z.core.$strip>>;
921
- }, z.core.$strip>>;
922
- }, z.core.$strip>;
923
- declare const ButtonInteractiveType: z.ZodObject<{
924
- type: z.ZodLiteral<"interactive">;
925
- footer: z.ZodOptional<z.ZodString>;
926
- data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
927
- type: z.ZodLiteral<"quick_reply">;
928
- text: z.ZodString;
929
- }, z.core.$strip>, z.ZodObject<{
930
- type: z.ZodLiteral<"cta_url">;
931
- url: z.ZodURL;
932
- text: z.ZodString;
933
- }, z.core.$strip>, z.ZodObject<{
934
- type: z.ZodLiteral<"cta_copy">;
935
- copy: z.ZodString;
936
- text: z.ZodString;
937
- }, z.core.$strip>, z.ZodObject<{
938
- type: z.ZodLiteral<"cta_call">;
939
- text: z.ZodString;
940
- phoneNumber: z.ZodString;
941
- }, z.core.$strip>, z.ZodObject<{
942
- type: z.ZodLiteral<"single_select">;
943
- text: z.ZodString;
944
- section: z.ZodArray<z.ZodObject<{
945
- title: z.ZodString;
946
- highlight_label: z.ZodOptional<z.ZodString>;
947
- rows: z.ZodArray<z.ZodObject<{
948
- id: z.ZodString;
949
- title: z.ZodString;
950
- header: z.ZodOptional<z.ZodString>;
951
- description: z.ZodOptional<z.ZodString>;
952
- }, z.core.$strip>>;
953
- }, z.core.$strip>>;
954
- }, z.core.$strip>]>>;
955
- }, z.core.$strip>;
956
- declare const ButtonSimpleType: z.ZodObject<{
957
- type: z.ZodLiteral<"simple">;
958
- footer: z.ZodOptional<z.ZodString>;
959
- data: z.ZodArray<z.ZodObject<{
960
- id: z.ZodString;
961
- text: z.ZodString;
962
- }, z.core.$strip>>;
963
- }, z.core.$strip>;
964
- declare const ButtonType: z.ZodUnion<readonly [z.ZodObject<{
965
- type: z.ZodLiteral<"simple">;
966
- footer: z.ZodOptional<z.ZodString>;
967
- data: z.ZodArray<z.ZodObject<{
968
- id: z.ZodString;
969
- text: z.ZodString;
970
- }, z.core.$strip>>;
971
- }, z.core.$strip>, z.ZodObject<{
972
- type: z.ZodLiteral<"interactive">;
973
- footer: z.ZodOptional<z.ZodString>;
974
- data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
975
- type: z.ZodLiteral<"quick_reply">;
976
- text: z.ZodString;
977
- }, z.core.$strip>, z.ZodObject<{
978
- type: z.ZodLiteral<"cta_url">;
979
- url: z.ZodURL;
980
- text: z.ZodString;
981
- }, z.core.$strip>, z.ZodObject<{
982
- type: z.ZodLiteral<"cta_copy">;
983
- copy: z.ZodString;
984
- text: z.ZodString;
985
- }, z.core.$strip>, z.ZodObject<{
986
- type: z.ZodLiteral<"cta_call">;
987
- text: z.ZodString;
988
- phoneNumber: z.ZodString;
989
- }, z.core.$strip>, z.ZodObject<{
990
- type: z.ZodLiteral<"single_select">;
991
- text: z.ZodString;
992
- section: z.ZodArray<z.ZodObject<{
993
- title: z.ZodString;
994
- highlight_label: z.ZodOptional<z.ZodString>;
995
- rows: z.ZodArray<z.ZodObject<{
996
- id: z.ZodString;
997
- title: z.ZodString;
998
- header: z.ZodOptional<z.ZodString>;
999
- description: z.ZodOptional<z.ZodString>;
1000
- }, z.core.$strip>>;
1001
- }, z.core.$strip>>;
1002
- }, z.core.$strip>]>>;
1003
- }, z.core.$strip>]>;
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" | "orange" | "dimgray" | "blue";
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, any>;
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 getAllFiles;
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): boolean;
1059
- disable(matcher: string | RegExp): boolean;
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, any>;
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
- constructor(options: z.infer<typeof ClientOptionsType>);
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): JetDB;
1089
- on<T extends z.infer<typeof EventEnumType>>(event: T, handler: EventCallbackType[T]): void;
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) => 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) => _.Omit<any, "message" | "url" | "contextInfo" | "fileSha256" | "fileEncSha256" | "mediaKey" | "directPath" | "waveform" | "thumbnail" | "jpegThumbnail" | "thumbnailEncSha256" | "thumbnailSha256" | "thumbnailDirectPath" | "firstFrameSidecar" | "streamingSidecar" | "scansSidecar" | "callKey" | "key" | "midQualityFileSha256" | "historySyncNotification" | "appStateSyncKeyShare" | "appStateSyncKeyRequest" | "initialSecurityNotificationSettingSync" | "appStateFatalExceptionNotification" | "disappearingMode" | "peerDataOperationRequestMessage" | "peerDataOperationRequestResponseMessage" | "botFeedbackMessage">;
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, MediaModifier, type MessagesContext, type PluginDefinition, Plugins, type PluginsConfigType, type PluginsHandlerType, StickerMetadataType, StickerShapeType, autoCleanUp, cleanJid, cleanMediaObject, definePlugins, extractJids, extractUrls, findGlobalWord, findNestedByKeys, generateId, getDeepContent, getLatestLibVersion, getUsersMentions, ignoreLint, logColor, mediaModifier, modifyFn, normalizeText, numbersToJids, pickKeysFromArray, randomize, registerAuthCreds, removeAuthCreds, shuffleString, toJson, toString, useAuthState };
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 };