meta-cloud-api 1.1.3 → 1.1.5

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 (159) hide show
  1. package/dist/base.d.ts +19 -0
  2. package/dist/base.d.ts.map +1 -0
  3. package/dist/chunk-PECeCxCb.js +15 -0
  4. package/dist/config.d.ts +80 -0
  5. package/dist/config.d.ts.map +1 -0
  6. package/dist/enums.d.ts +668 -0
  7. package/dist/enums.d.ts.map +1 -0
  8. package/dist/enums.js +681 -0
  9. package/dist/enums.js.map +1 -0
  10. package/dist/httpsClient.d.ts +21 -0
  11. package/dist/httpsClient.d.ts.map +1 -0
  12. package/dist/index.d.ts +4386 -27
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +3436 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/logger.d.ts +11 -0
  17. package/dist/logger.d.ts.map +1 -0
  18. package/dist/request.d.ts +52 -0
  19. package/dist/request.d.ts.map +1 -0
  20. package/package.json +11 -118
  21. package/dist/BusinessProfileApi-C_sEOrWM.d.ts +0 -353
  22. package/dist/EncryptionApi-CcCfeK2b.d.ts +0 -22
  23. package/dist/FlowApi-DDHrFT_Q.d.ts +0 -136
  24. package/dist/MediaApi-CY9RVo7u.d.ts +0 -90
  25. package/dist/MessageApi-CX_jN8da.d.ts +0 -171
  26. package/dist/PhoneNumberApi-B-hY7g1M.d.ts +0 -142
  27. package/dist/QrCodeApi-DRICKN04.d.ts +0 -98
  28. package/dist/RegistrationApi-CFPzU1Vw.d.ts +0 -47
  29. package/dist/TemplateApi-fCIlzBtK.d.ts +0 -161
  30. package/dist/TwoStepVerificationApi-C0jpAKfu.d.ts +0 -33
  31. package/dist/WabaApi-x5PhsLT3.d.ts +0 -175
  32. package/dist/WebhookProcessor-DEIZ2PRU.d.ts +0 -707
  33. package/dist/WhatsApp-BFsBgjJO.d.ts +0 -82
  34. package/dist/api/encryption/index.d.ts +0 -10
  35. package/dist/api/encryption/index.js +0 -2
  36. package/dist/api/encryption/index.js.map +0 -1
  37. package/dist/api/flow/index.d.ts +0 -11
  38. package/dist/api/flow/index.js +0 -2
  39. package/dist/api/flow/index.js.map +0 -1
  40. package/dist/api/index.d.ts +0 -18
  41. package/dist/api/index.js +0 -2
  42. package/dist/api/index.js.map +0 -1
  43. package/dist/api/media/index.d.ts +0 -10
  44. package/dist/api/media/index.js +0 -2
  45. package/dist/api/media/index.js.map +0 -1
  46. package/dist/api/messages/builders/index.d.ts +0 -536
  47. package/dist/api/messages/builders/index.js +0 -4
  48. package/dist/api/messages/builders/index.js.map +0 -1
  49. package/dist/api/messages/index.d.ts +0 -10
  50. package/dist/api/messages/index.js +0 -2
  51. package/dist/api/messages/index.js.map +0 -1
  52. package/dist/api/phone/index.d.ts +0 -10
  53. package/dist/api/phone/index.js +0 -2
  54. package/dist/api/phone/index.js.map +0 -1
  55. package/dist/api/profile/index.d.ts +0 -10
  56. package/dist/api/profile/index.js +0 -2
  57. package/dist/api/profile/index.js.map +0 -1
  58. package/dist/api/qrCode/index.d.ts +0 -10
  59. package/dist/api/qrCode/index.js +0 -2
  60. package/dist/api/qrCode/index.js.map +0 -1
  61. package/dist/api/registration/index.d.ts +0 -10
  62. package/dist/api/registration/index.js +0 -2
  63. package/dist/api/registration/index.js.map +0 -1
  64. package/dist/api/template/index.d.ts +0 -21
  65. package/dist/api/template/index.js +0 -2
  66. package/dist/api/template/index.js.map +0 -1
  67. package/dist/api/twoStepVerification/index.d.ts +0 -10
  68. package/dist/api/twoStepVerification/index.js +0 -2
  69. package/dist/api/twoStepVerification/index.js.map +0 -1
  70. package/dist/api/waba/index.d.ts +0 -10
  71. package/dist/api/waba/index.js +0 -2
  72. package/dist/api/waba/index.js.map +0 -1
  73. package/dist/base-BV6DyzGS.d.ts +0 -18
  74. package/dist/chunk-5577QQ7V.js +0 -2
  75. package/dist/chunk-5577QQ7V.js.map +0 -1
  76. package/dist/chunk-6DFC5L3X.js +0 -2
  77. package/dist/chunk-6DFC5L3X.js.map +0 -1
  78. package/dist/chunk-7QBIZCJ4.js +0 -2
  79. package/dist/chunk-7QBIZCJ4.js.map +0 -1
  80. package/dist/chunk-AMHQGG6Z.js +0 -2
  81. package/dist/chunk-AMHQGG6Z.js.map +0 -1
  82. package/dist/chunk-BAOZ4U74.js +0 -10
  83. package/dist/chunk-BAOZ4U74.js.map +0 -1
  84. package/dist/chunk-CRZ7EUYR.js +0 -2
  85. package/dist/chunk-CRZ7EUYR.js.map +0 -1
  86. package/dist/chunk-FKXSL2JK.js +0 -3
  87. package/dist/chunk-FKXSL2JK.js.map +0 -1
  88. package/dist/chunk-FSKBLPGE.js +0 -2
  89. package/dist/chunk-FSKBLPGE.js.map +0 -1
  90. package/dist/chunk-GM63NGNV.js +0 -2
  91. package/dist/chunk-GM63NGNV.js.map +0 -1
  92. package/dist/chunk-IYSR44P6.js +0 -2
  93. package/dist/chunk-IYSR44P6.js.map +0 -1
  94. package/dist/chunk-J2JPTKU6.js +0 -2
  95. package/dist/chunk-J2JPTKU6.js.map +0 -1
  96. package/dist/chunk-JC6YMVID.js +0 -2
  97. package/dist/chunk-JC6YMVID.js.map +0 -1
  98. package/dist/chunk-JPAV644F.js +0 -2
  99. package/dist/chunk-JPAV644F.js.map +0 -1
  100. package/dist/chunk-JXCLRKQ7.js +0 -2
  101. package/dist/chunk-JXCLRKQ7.js.map +0 -1
  102. package/dist/chunk-KMAH6636.js +0 -2
  103. package/dist/chunk-KMAH6636.js.map +0 -1
  104. package/dist/chunk-L4ESAO2S.js +0 -2
  105. package/dist/chunk-L4ESAO2S.js.map +0 -1
  106. package/dist/chunk-LV3TULSI.js +0 -2
  107. package/dist/chunk-LV3TULSI.js.map +0 -1
  108. package/dist/chunk-MJEG3K4V.js +0 -2
  109. package/dist/chunk-MJEG3K4V.js.map +0 -1
  110. package/dist/chunk-PHPQ5HP3.js +0 -2
  111. package/dist/chunk-PHPQ5HP3.js.map +0 -1
  112. package/dist/chunk-RIL6QABY.js +0 -2
  113. package/dist/chunk-RIL6QABY.js.map +0 -1
  114. package/dist/chunk-RWCVPWRC.js +0 -2
  115. package/dist/chunk-RWCVPWRC.js.map +0 -1
  116. package/dist/chunk-SNNRWNGZ.js +0 -2
  117. package/dist/chunk-SNNRWNGZ.js.map +0 -1
  118. package/dist/chunk-U5FBZ6UB.js +0 -3
  119. package/dist/chunk-U5FBZ6UB.js.map +0 -1
  120. package/dist/chunk-VHAODWCN.js +0 -2
  121. package/dist/chunk-VHAODWCN.js.map +0 -1
  122. package/dist/chunk-ZMNXRMWK.js +0 -2
  123. package/dist/chunk-ZMNXRMWK.js.map +0 -1
  124. package/dist/common-B8kp4RdL.d.ts +0 -403
  125. package/dist/common-CGbls9Y8.d.ts +0 -425
  126. package/dist/core/webhook/frameworks/express.d.ts +0 -53
  127. package/dist/core/webhook/frameworks/express.js +0 -2
  128. package/dist/core/webhook/frameworks/express.js.map +0 -1
  129. package/dist/core/webhook/frameworks/nextjs-app.d.ts +0 -48
  130. package/dist/core/webhook/frameworks/nextjs-app.js +0 -2
  131. package/dist/core/webhook/frameworks/nextjs-app.js.map +0 -1
  132. package/dist/core/webhook/frameworks/nextjs.d.ts +0 -49
  133. package/dist/core/webhook/frameworks/nextjs.js +0 -2
  134. package/dist/core/webhook/frameworks/nextjs.js.map +0 -1
  135. package/dist/core/webhook/index.d.ts +0 -29
  136. package/dist/core/webhook/index.js +0 -2
  137. package/dist/core/webhook/index.js.map +0 -1
  138. package/dist/core/whatsapp/index.d.ts +0 -42
  139. package/dist/core/whatsapp/index.js +0 -2
  140. package/dist/core/whatsapp/index.js.map +0 -1
  141. package/dist/enums-DIimUG6s.d.ts +0 -707
  142. package/dist/factory-kNha6WaY.d.ts +0 -200
  143. package/dist/handler-DbySwF0E.d.ts +0 -20
  144. package/dist/httpsClient-Cbd2Y6mg.d.ts +0 -19
  145. package/dist/isMetaError-CQLXyEL4.d.ts +0 -63
  146. package/dist/logger-BdE0Vyim.d.ts +0 -9
  147. package/dist/request-CUjrMn8R.d.ts +0 -50
  148. package/dist/types/config.d.ts +0 -78
  149. package/dist/types/config.js +0 -2
  150. package/dist/types/config.js.map +0 -1
  151. package/dist/types/enums.d.ts +0 -1
  152. package/dist/types/enums.js +0 -2
  153. package/dist/types/enums.js.map +0 -1
  154. package/dist/types/index.d.ts +0 -6
  155. package/dist/types/index.js +0 -2
  156. package/dist/types/index.js.map +0 -1
  157. package/dist/utils/index.d.ts +0 -40
  158. package/dist/utils/index.js +0 -2
  159. package/dist/utils/index.js.map +0 -1
@@ -1,425 +0,0 @@
1
- import { f as InteractiveTypesEnum, b as ComponentTypesEnum, L as LanguagesEnum, P as ParametersTypesEnum, d as CurrencyCodesEnum, h as SubTypeEnum, a as ButtonPositionEnum, M as MessageTypesEnum } from './enums-DIimUG6s.js';
2
- import { a as BaseClass } from './base-BV6DyzGS.js';
3
- import { a as GeneralRequestBody } from './request-CUjrMn8R.js';
4
-
5
- interface ReactionParams {
6
- messageId: string;
7
- emoji: string;
8
- to: string;
9
- }
10
-
11
- type DocumentMediaObject$2 = {
12
- id?: string;
13
- link?: string;
14
- caption?: string;
15
- filename?: string;
16
- };
17
- type ImageMediaObject$2 = {
18
- id?: string;
19
- link?: string;
20
- caption?: string;
21
- };
22
- type VideoMediaObject$2 = {
23
- id?: string;
24
- link?: string;
25
- caption?: string;
26
- };
27
- type ProductObject = {
28
- product_retailer_id: string;
29
- };
30
- type SimpleTextObject$1 = {
31
- text: string;
32
- };
33
- type RowObject = {
34
- id: string;
35
- title: string;
36
- description?: string;
37
- };
38
- type MultiProductSectionObject = {
39
- product_items: ProductObject[];
40
- rows?: never;
41
- title?: string;
42
- };
43
- type ListSectionObject = {
44
- product_items?: never;
45
- rows: RowObject[];
46
- title?: string;
47
- };
48
- type SectionObject = MultiProductSectionObject | ListSectionObject;
49
- type ButtonObject = {
50
- title: string;
51
- id: string;
52
- };
53
- type ReplyButtonObject = {
54
- type: 'reply';
55
- reply: ButtonObject;
56
- };
57
- type ActionObject = {
58
- buttons?: ReplyButtonObject[];
59
- catalog_id?: string;
60
- product_retailer_id?: string;
61
- sections?: SectionObject[];
62
- };
63
- type HeaderObject = {
64
- type: 'document' | 'image' | 'text' | 'video';
65
- document?: DocumentMediaObject$2;
66
- image?: ImageMediaObject$2;
67
- text?: string;
68
- video?: VideoMediaObject$2;
69
- };
70
- type ButtonInteractiveObject = {
71
- type: InteractiveTypesEnum.Button;
72
- body: SimpleTextObject$1;
73
- footer?: SimpleTextObject$1;
74
- header?: HeaderObject;
75
- action: ActionObject;
76
- };
77
- type ListInteractiveObject = {
78
- type: InteractiveTypesEnum.List;
79
- body: SimpleTextObject$1;
80
- footer?: SimpleTextObject$1;
81
- header?: HeaderObject;
82
- action: ActionObject;
83
- };
84
- type ProductInteractiveObject = {
85
- type: InteractiveTypesEnum.Product;
86
- body?: SimpleTextObject$1;
87
- footer?: SimpleTextObject$1;
88
- header?: HeaderObject;
89
- action: ActionObject;
90
- };
91
- type ProductListInteractiveObject = {
92
- type: InteractiveTypesEnum.ProductList;
93
- body: SimpleTextObject$1;
94
- footer?: SimpleTextObject$1;
95
- header: HeaderObject;
96
- action: ActionObject;
97
- };
98
- type CtaUrlParameters = {
99
- display_text: string;
100
- url: string;
101
- };
102
- type CtaUrlActionObject = {
103
- name: 'cta_url';
104
- parameters: CtaUrlParameters;
105
- };
106
- type CtaUrlInteractiveObject = {
107
- type: InteractiveTypesEnum.CtaUrl;
108
- body?: SimpleTextObject$1;
109
- footer?: SimpleTextObject$1;
110
- header?: HeaderObject;
111
- action: CtaUrlActionObject;
112
- };
113
- type LocationRequestActionObject = {
114
- name: 'send_location';
115
- };
116
- type LocationRequestInteractiveObject = {
117
- type: InteractiveTypesEnum.LocationRequest;
118
- body: SimpleTextObject$1;
119
- footer?: SimpleTextObject$1;
120
- header?: HeaderObject;
121
- action: LocationRequestActionObject;
122
- };
123
- type AddressValues = {
124
- name?: string;
125
- phone_number?: string;
126
- in_pin_code?: string;
127
- house_number?: string;
128
- floor_number?: string;
129
- tower_number?: string;
130
- building_name?: string;
131
- address?: string;
132
- landmark_area?: string;
133
- city?: string;
134
- state?: string;
135
- };
136
- type SavedAddress = {
137
- id: string;
138
- value: AddressValues;
139
- };
140
- type ValidationErrors = {
141
- [key in keyof AddressValues]?: string;
142
- };
143
- type AddressMessageParameters = {
144
- country: string;
145
- values?: AddressValues;
146
- saved_addresses?: SavedAddress[];
147
- validation_errors?: ValidationErrors;
148
- };
149
- type AddressMessageActionObject = {
150
- name: 'address_message';
151
- parameters: AddressMessageParameters;
152
- };
153
- type AddressMessageInteractiveObject = {
154
- type: InteractiveTypesEnum.AddressMessage;
155
- body: SimpleTextObject$1;
156
- footer?: SimpleTextObject$1;
157
- header?: HeaderObject;
158
- action: AddressMessageActionObject;
159
- };
160
- type FlowParameters = {
161
- flow_message_version: string;
162
- flow_id?: string;
163
- flow_name?: string;
164
- flow_cta: string;
165
- mode?: 'draft' | 'published';
166
- flow_token: string;
167
- flow_action: 'navigate' | 'data_exchange';
168
- flow_action_payload?: {
169
- screen?: string;
170
- data?: Record<string, string>;
171
- };
172
- };
173
- type FlowActionObject = {
174
- name: 'flow';
175
- parameters: FlowParameters;
176
- };
177
- type FlowInteractiveObject = {
178
- type: InteractiveTypesEnum.Flow;
179
- body: SimpleTextObject$1;
180
- footer?: SimpleTextObject$1;
181
- header?: HeaderObject;
182
- action: FlowActionObject;
183
- };
184
- type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CtaUrlInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
185
-
186
- type LocationObject = {
187
- longitude: number;
188
- latitude: number;
189
- name?: string;
190
- address?: string;
191
- };
192
-
193
- type AddressesObject = {
194
- street?: string;
195
- city?: string;
196
- state?: string;
197
- zip?: string;
198
- country?: string;
199
- country_code?: string;
200
- type?: 'HOME' | 'WORK' | string;
201
- };
202
- type EmailObject = {
203
- email?: string;
204
- type?: 'HOME' | 'WORK' | string;
205
- };
206
- type NameObject = {
207
- formatted_name: string;
208
- first_name?: string;
209
- last_name?: string;
210
- middle_name?: string;
211
- suffix?: string;
212
- prefix?: string;
213
- };
214
- type OrgObject = {
215
- company?: string;
216
- department?: string;
217
- title?: string;
218
- };
219
- type PhoneObject = {
220
- phone?: 'PHONE_NUMBER';
221
- type?: 'CELL' | 'MAIN' | 'IPHONE' | 'HOME' | 'WORK' | string;
222
- wa_id?: string;
223
- };
224
- type URLObject = {
225
- url?: string;
226
- type?: 'HOME' | 'WORK' | string;
227
- };
228
- type ContactObject = {
229
- addresses?: AddressesObject[];
230
- birthday?: `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
231
- emails?: EmailObject[];
232
- name: NameObject;
233
- org?: OrgObject;
234
- phones?: PhoneObject[];
235
- urls?: URLObject[];
236
- };
237
-
238
- type MetaMediaObject = {
239
- id: string;
240
- link?: never;
241
- };
242
- type HostedMediaObject = {
243
- id?: never;
244
- link: string;
245
- };
246
- type AudioMediaObject = MetaMediaObject | HostedMediaObject;
247
- type MetaDocumentMediaObject = MetaMediaObject & {
248
- caption?: string;
249
- filename?: string;
250
- };
251
- type HostedDocumentMediaObject = HostedMediaObject & {
252
- caption?: string;
253
- filename?: string;
254
- };
255
- type DocumentMediaObject$1 = MetaDocumentMediaObject | HostedDocumentMediaObject;
256
- type MetaImageMediaObject = MetaMediaObject & {
257
- caption?: string;
258
- };
259
- type HostedImageMediaObject = HostedMediaObject & {
260
- caption?: string;
261
- };
262
- type ImageMediaObject$1 = MetaImageMediaObject | HostedImageMediaObject;
263
- type MetaVideoMediaObject = MetaMediaObject & {
264
- caption?: string;
265
- };
266
- type HostedVideoMediaObject = HostedMediaObject & {
267
- caption?: string;
268
- };
269
- type VideoMediaObject$1 = MetaVideoMediaObject | HostedVideoMediaObject;
270
- type StickerMediaObject = MetaMediaObject | HostedMediaObject;
271
-
272
- type LanguageObject = {
273
- policy: 'deterministic';
274
- code: LanguagesEnum;
275
- };
276
- type ParametersObject<T extends ParametersTypesEnum> = {
277
- type: T;
278
- };
279
- type SimpleTextObject = {
280
- text: string;
281
- };
282
- type TextParametersObject = ParametersObject<ParametersTypesEnum.Text> & SimpleTextObject;
283
- type CouponCodeParametersObject = ParametersObject<ParametersTypesEnum.CouponCode> & {
284
- coupon_code: string;
285
- };
286
- type CurrencyObject = {
287
- fallback_value: string;
288
- code: CurrencyCodesEnum;
289
- amount_1000: number;
290
- };
291
- type CurrencyParametersObject = ParametersObject<ParametersTypesEnum.Currency> & {
292
- currency: CurrencyObject;
293
- };
294
- type DateTimeObject = {
295
- fallback_value: string;
296
- };
297
- type DateTimeParametersObject = ParametersObject<ParametersTypesEnum.Currency> & {
298
- date_time: DateTimeObject;
299
- };
300
- type DocumentMediaObject = {
301
- id?: string;
302
- link?: string;
303
- caption?: string;
304
- filename?: string;
305
- };
306
- type ImageMediaObject = {
307
- id?: string;
308
- link?: string;
309
- caption?: string;
310
- };
311
- type VideoMediaObject = {
312
- id?: string;
313
- link?: string;
314
- caption?: string;
315
- };
316
- type DocumentParametersObject = ParametersObject<ParametersTypesEnum.Document> & DocumentMediaObject;
317
- type ImageParametersObject = ParametersObject<ParametersTypesEnum.Image> & ImageMediaObject;
318
- type VideoParametersObject = ParametersObject<ParametersTypesEnum.Video> & VideoMediaObject;
319
- type ComponentObject<T extends ComponentTypesEnum> = {
320
- type: T;
321
- parameters: (CurrencyParametersObject | DateTimeParametersObject | DocumentParametersObject | ImageParametersObject | TextParametersObject | VideoParametersObject | CouponCodeParametersObject)[];
322
- };
323
- type ButtonComponentObject = ComponentObject<ComponentTypesEnum.Button> & {
324
- parameters?: (TextParametersObject | PayloadParametersObject)[];
325
- sub_type: SubTypeEnum;
326
- index: ButtonPositionEnum;
327
- };
328
- type PayloadParametersObject = ParametersObject<ParametersTypesEnum.Payload> & {
329
- payload: string;
330
- };
331
- type MessageTemplateObject<T extends ComponentTypesEnum> = {
332
- name: string;
333
- language: LanguageObject;
334
- components?: (ComponentObject<T> | ButtonComponentObject)[];
335
- };
336
-
337
- type TextObject = {
338
- body: string;
339
- preview_url?: boolean;
340
- };
341
- interface TextMessageParams extends MessageRequestParams<TextObject | string> {
342
- previewUrl?: boolean;
343
- }
344
-
345
- type GeneralMessageBody = GeneralRequestBody & {
346
- /**
347
- * The Meta messaging product name.
348
- * @default 'whatsapp'
349
- */
350
- messaging_product: 'whatsapp';
351
- };
352
- type ConTextObject = {
353
- message_id: string;
354
- };
355
- type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
356
- recipient_type?: string;
357
- to: string;
358
- context?: ConTextObject;
359
- type?: T;
360
- };
361
- interface MessageRequestParams<T> {
362
- body: T;
363
- to: string;
364
- replyMessageId?: string;
365
- }
366
- interface StatusParams {
367
- status: string;
368
- messageId: string;
369
- typingIndicator?: {
370
- type: string;
371
- };
372
- }
373
- type MessagesResponse = GeneralMessageBody & {
374
- contacts: [
375
- {
376
- input: string;
377
- wa_id: string;
378
- }
379
- ];
380
- messages: [
381
- {
382
- id: string;
383
- }
384
- ];
385
- };
386
- declare class MessagesClass extends BaseClass {
387
- text(params: TextMessageParams): Promise<MessagesResponse>;
388
- template(params: MessageRequestParams<MessageTemplateObject<ComponentTypesEnum>>): Promise<MessagesResponse>;
389
- audio(params: MessageRequestParams<AudioMediaObject>): Promise<MessagesResponse>;
390
- document(params: MessageRequestParams<DocumentMediaObject$1>): Promise<MessagesResponse>;
391
- image(params: MessageRequestParams<ImageMediaObject$1>): Promise<MessagesResponse>;
392
- video(params: MessageRequestParams<VideoMediaObject$1>): Promise<MessagesResponse>;
393
- sticker(params: MessageRequestParams<StickerMediaObject>): Promise<MessagesResponse>;
394
- contacts(params: MessageRequestParams<[ContactObject]>): Promise<MessagesResponse>;
395
- location(params: MessageRequestParams<LocationObject>): Promise<MessagesResponse>;
396
- interactive(params: MessageRequestParams<InteractiveObject>): Promise<MessagesResponse>;
397
- interactiveList(params: MessageRequestParams<InteractiveObject & {
398
- type: InteractiveTypesEnum.List;
399
- }>): Promise<MessagesResponse>;
400
- interactiveCtaUrl(params: MessageRequestParams<InteractiveObject & {
401
- type: InteractiveTypesEnum.CtaUrl;
402
- }>): Promise<MessagesResponse>;
403
- interactiveLocationRequest(params: MessageRequestParams<InteractiveObject & {
404
- type: InteractiveTypesEnum.LocationRequest;
405
- }>): Promise<MessagesResponse>;
406
- interactiveAddressMessage(params: MessageRequestParams<InteractiveObject & {
407
- type: InteractiveTypesEnum.AddressMessage;
408
- }>): Promise<MessagesResponse>;
409
- interactiveReplyButtons(params: MessageRequestParams<InteractiveObject & {
410
- type: InteractiveTypesEnum.Button;
411
- }>): Promise<MessagesResponse>;
412
- interactiveFlow(params: MessageRequestParams<InteractiveObject & {
413
- type: InteractiveTypesEnum.Flow;
414
- }>): Promise<MessagesResponse>;
415
- reaction(params: ReactionParams): Promise<MessagesResponse>;
416
- markAsRead(params: {
417
- messageId: string;
418
- }): Promise<MessagesResponse>;
419
- showTypingIndicator(params: {
420
- messageId: string;
421
- }): Promise<MessagesResponse>;
422
- status(params: StatusParams): Promise<MessagesResponse>;
423
- }
424
-
425
- export { type AudioMediaObject as A, type ContactObject as C, type DocumentMediaObject$1 as D, type GeneralMessageBody as G, type ImageMediaObject$1 as I, type LocationObject as L, type MessageRequestBody as M, type NameObject as N, type ReactionParams as R, type StatusParams as S, type TextMessageParams as T, type VideoMediaObject$1 as V, type MessageRequestParams as a, MessagesClass as b, type MessagesResponse as c, type TextObject as d, type StickerMediaObject as e, type InteractiveObject as f, type MessageTemplateObject as g, type AddressesObject as h };
@@ -1,53 +0,0 @@
1
- import { B as BaseWebhookConfig, a as BaseRequest, b as BaseResponse } from '../../../handler-DbySwF0E.js';
2
- import { c as WebhookProcessor } from '../../../WebhookProcessor-DEIZ2PRU.js';
3
- import '../../../types/config.js';
4
- import '../../../enums-DIimUG6s.js';
5
- import '../../../common-B8kp4RdL.js';
6
- import '../../../request-CUjrMn8R.js';
7
- import 'http';
8
- import '../../../WhatsApp-BFsBgjJO.js';
9
- import '../../../httpsClient-Cbd2Y6mg.js';
10
- import 'https';
11
- import '../../../EncryptionApi-CcCfeK2b.js';
12
- import '../../../base-BV6DyzGS.js';
13
- import '../../../FlowApi-DDHrFT_Q.js';
14
- import '../../../MediaApi-CY9RVo7u.js';
15
- import '../../../MessageApi-CX_jN8da.js';
16
- import '../../../common-CGbls9Y8.js';
17
- import '../../../PhoneNumberApi-B-hY7g1M.js';
18
- import '../../../BusinessProfileApi-C_sEOrWM.js';
19
- import '../../../QrCodeApi-DRICKN04.js';
20
- import '../../../RegistrationApi-CFPzU1Vw.js';
21
- import '../../../TemplateApi-fCIlzBtK.js';
22
- import '../../../TwoStepVerificationApi-C0jpAKfu.js';
23
- import '../../../WabaApi-x5PhsLT3.js';
24
-
25
- interface ExpressRequest extends BaseRequest {
26
- method: string;
27
- url: string;
28
- headers: Record<string, string | string[] | undefined>;
29
- body?: any;
30
- query: Record<string, any>;
31
- rawBody?: any;
32
- }
33
- interface ExpressResponse extends BaseResponse<ExpressResponse> {
34
- status(code: number): ExpressResponse;
35
- json(data: any): ExpressResponse;
36
- send(data?: any): ExpressResponse;
37
- setHeader(name: string, value: string): void;
38
- }
39
- interface NextFunction {
40
- (error?: any): void;
41
- }
42
- interface ExpressWebhookConfig extends BaseWebhookConfig {
43
- path?: string;
44
- }
45
- declare function webhookHandler(config: ExpressWebhookConfig): {
46
- GET: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
47
- POST: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
48
- webhook: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<any>;
49
- flow: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => Promise<ExpressResponse>;
50
- processor: WebhookProcessor;
51
- };
52
-
53
- export { type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, type NextFunction, webhookHandler };
@@ -1,2 +0,0 @@
1
- export{a as webhookHandler}from'../../../chunk-ZMNXRMWK.js';import'../../../chunk-5577QQ7V.js';import'../../../chunk-U5FBZ6UB.js';import'../../../chunk-6DFC5L3X.js';import'../../../chunk-BAOZ4U74.js';import'../../../chunk-FKXSL2JK.js';import'../../../chunk-AMHQGG6Z.js';import'../../../chunk-VHAODWCN.js';import'../../../chunk-JPAV644F.js';import'../../../chunk-PHPQ5HP3.js';import'../../../chunk-IYSR44P6.js';import'../../../chunk-SNNRWNGZ.js';import'../../../chunk-L4ESAO2S.js';import'../../../chunk-7QBIZCJ4.js';import'../../../chunk-JXCLRKQ7.js';import'../../../chunk-LV3TULSI.js';import'../../../chunk-CRZ7EUYR.js';import'../../../chunk-JC6YMVID.js';import'../../../chunk-J2JPTKU6.js';import'../../../chunk-FSKBLPGE.js';import'../../../chunk-MJEG3K4V.js';import'../../../chunk-RIL6QABY.js';import'../../../chunk-KMAH6636.js';//# sourceMappingURL=express.js.map
2
- //# sourceMappingURL=express.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"express.js"}
@@ -1,48 +0,0 @@
1
- import { WhatsAppConfig } from '../../../types/config.js';
2
- import { c as WebhookProcessor } from '../../../WebhookProcessor-DEIZ2PRU.js';
3
- import '../../../enums-DIimUG6s.js';
4
- import '../../../common-B8kp4RdL.js';
5
- import '../../../request-CUjrMn8R.js';
6
- import 'http';
7
- import '../../../WhatsApp-BFsBgjJO.js';
8
- import '../../../httpsClient-Cbd2Y6mg.js';
9
- import 'https';
10
- import '../../../EncryptionApi-CcCfeK2b.js';
11
- import '../../../base-BV6DyzGS.js';
12
- import '../../../FlowApi-DDHrFT_Q.js';
13
- import '../../../MediaApi-CY9RVo7u.js';
14
- import '../../../MessageApi-CX_jN8da.js';
15
- import '../../../common-CGbls9Y8.js';
16
- import '../../../PhoneNumberApi-B-hY7g1M.js';
17
- import '../../../BusinessProfileApi-C_sEOrWM.js';
18
- import '../../../QrCodeApi-DRICKN04.js';
19
- import '../../../RegistrationApi-CFPzU1Vw.js';
20
- import '../../../TemplateApi-fCIlzBtK.js';
21
- import '../../../TwoStepVerificationApi-C0jpAKfu.js';
22
- import '../../../WabaApi-x5PhsLT3.js';
23
-
24
- interface NextRequest extends Request {
25
- nextUrl: {
26
- searchParams: URLSearchParams;
27
- };
28
- }
29
- interface NextResponse {
30
- json(data: any): NextResponse;
31
- }
32
- interface NextJsAppWebhookConfig extends WhatsAppConfig {
33
- }
34
- declare function webhookHandler(config: NextJsAppWebhookConfig): {
35
- GET: (request: NextRequest) => Promise<Response>;
36
- POST: (request: NextRequest) => Promise<Response>;
37
- webhook: {
38
- GET: (request: NextRequest) => Promise<Response>;
39
- POST: (request: NextRequest) => Promise<Response>;
40
- };
41
- flow: {
42
- GET: (request: NextRequest) => Promise<Response>;
43
- POST: (request: NextRequest) => Promise<Response>;
44
- };
45
- processor: WebhookProcessor;
46
- };
47
-
48
- export { type NextJsAppWebhookConfig, type NextRequest, type NextResponse, webhookHandler };
@@ -1,2 +0,0 @@
1
- import {d}from'../../../chunk-U5FBZ6UB.js';import'../../../chunk-6DFC5L3X.js';import'../../../chunk-BAOZ4U74.js';import'../../../chunk-FKXSL2JK.js';import'../../../chunk-AMHQGG6Z.js';import'../../../chunk-VHAODWCN.js';import'../../../chunk-JPAV644F.js';import'../../../chunk-PHPQ5HP3.js';import'../../../chunk-IYSR44P6.js';import'../../../chunk-SNNRWNGZ.js';import'../../../chunk-L4ESAO2S.js';import'../../../chunk-7QBIZCJ4.js';import'../../../chunk-JXCLRKQ7.js';import'../../../chunk-LV3TULSI.js';import'../../../chunk-CRZ7EUYR.js';import'../../../chunk-JC6YMVID.js';import'../../../chunk-J2JPTKU6.js';import'../../../chunk-FSKBLPGE.js';import'../../../chunk-MJEG3K4V.js';import'../../../chunk-RIL6QABY.js';import'../../../chunk-KMAH6636.js';function p(u){let s=new d(u);return {GET:async r=>{try{let{searchParams:e}=new URL(r.url),o=e.get("hub.mode"),n=e.get("hub.verify_token"),a=e.get("hub.challenge"),t=await s.processVerification(o,n,a);return new Response(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error("Webhook verification error:",e),new Response("Internal Server Error",{status:500})}},POST:async r=>{try{let e=await s.processWebhook(r);return new Response(e.body,{status:e.status,headers:e.headers})}catch(e){return console.error("Webhook processing error:",e),new Response("Internal Server Error",{status:500})}},webhook:{GET:async r=>{try{let{searchParams:e}=new URL(r.url),o=e.get("hub.mode"),n=e.get("hub.verify_token"),a=e.get("hub.challenge"),t=await s.processVerification(o,n,a);return new Response(t.body,{status:t.status,headers:t.headers})}catch(e){return console.error("Webhook verification error:",e),new Response("Internal Server Error",{status:500})}},POST:async r=>{try{let e=await s.processWebhook(r);return new Response(e.body,{status:e.status,headers:e.headers})}catch(e){return console.error("Webhook processing error:",e),new Response("Internal Server Error",{status:500})}}},flow:{GET:async r=>{try{let e=await s.processFlow(r);return Response.json(e.body,{status:e.status,headers:e.headers})}catch(e){return console.error("Flow GET error:",e),new Response("Internal Server Error",{status:500})}},POST:async r=>{try{let e=await s.processFlow(r);return Response.json(e.body,{status:e.status,headers:e.headers})}catch(e){return console.error("Flow POST error:",e),new Response("Internal Server Error",{status:500})}}},processor:s}}export{p as webhookHandler};//# sourceMappingURL=nextjs-app.js.map
2
- //# sourceMappingURL=nextjs-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/webhook/frameworks/nextjs-app.ts"],"names":["webhookHandler","config","processor","WebhookProcessor","request","searchParams","mode","token","challenge","result","error"],"mappings":"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","file":"nextjs-app.js","sourcesContent":["import { WhatsAppConfig } from '../../../types/config';\nimport { WebhookProcessor } from '../WebhookProcessor';\n\n// Define Next.js types locally to avoid requiring Next.js as a dependency\nexport interface NextRequest extends Request {\n nextUrl: {\n searchParams: URLSearchParams;\n };\n}\n\nexport interface NextResponse {\n json(data: any): NextResponse;\n}\n\nexport interface NextJsAppWebhookConfig extends WhatsAppConfig {\n // App Router specific config (currently none, but interface reserved for future use)\n}\n\nexport function webhookHandler(config: NextJsAppWebhookConfig) {\n const processor = new WebhookProcessor(config);\n\n return {\n // Clean GET/POST handlers following whatsapp-api-js methodology\n GET: async (request: NextRequest) => {\n try {\n const { searchParams } = new URL(request.url);\n const mode = searchParams.get('hub.mode');\n const token = searchParams.get('hub.verify_token');\n const challenge = searchParams.get('hub.challenge');\n\n const result = await processor.processVerification(mode, token, challenge);\n\n // Return plain text response for webhook verification\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook verification error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processWebhook(request);\n\n // Return JSON response for webhook processing\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook processing error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n // Legacy webhook object for backward compatibility\n webhook: {\n GET: async (request: NextRequest) => {\n try {\n const { searchParams } = new URL(request.url);\n const mode = searchParams.get('hub.mode');\n const token = searchParams.get('hub.verify_token');\n const challenge = searchParams.get('hub.challenge');\n\n const result = await processor.processVerification(mode, token, challenge);\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook verification error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processWebhook(request);\n return new Response(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Webhook processing error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n },\n\n // Flow handler for App Router\n flow: {\n GET: async (request: NextRequest) => {\n try {\n const result = await processor.processFlow(request);\n\n return Response.json(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Flow GET error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n\n POST: async (request: NextRequest) => {\n try {\n const result = await processor.processFlow(request);\n\n return Response.json(result.body, {\n status: result.status,\n headers: result.headers,\n });\n } catch (error) {\n console.error('Flow POST error:', error);\n return new Response('Internal Server Error', { status: 500 });\n }\n },\n },\n\n // Expose processor for handler registration\n processor,\n };\n}\n"]}
@@ -1,49 +0,0 @@
1
- import { a as BaseRequest, b as BaseResponse, B as BaseWebhookConfig } from '../../../handler-DbySwF0E.js';
2
- import { c as WebhookProcessor } from '../../../WebhookProcessor-DEIZ2PRU.js';
3
- import '../../../types/config.js';
4
- import '../../../enums-DIimUG6s.js';
5
- import '../../../common-B8kp4RdL.js';
6
- import '../../../request-CUjrMn8R.js';
7
- import 'http';
8
- import '../../../WhatsApp-BFsBgjJO.js';
9
- import '../../../httpsClient-Cbd2Y6mg.js';
10
- import 'https';
11
- import '../../../EncryptionApi-CcCfeK2b.js';
12
- import '../../../base-BV6DyzGS.js';
13
- import '../../../FlowApi-DDHrFT_Q.js';
14
- import '../../../MediaApi-CY9RVo7u.js';
15
- import '../../../MessageApi-CX_jN8da.js';
16
- import '../../../common-CGbls9Y8.js';
17
- import '../../../PhoneNumberApi-B-hY7g1M.js';
18
- import '../../../BusinessProfileApi-C_sEOrWM.js';
19
- import '../../../QrCodeApi-DRICKN04.js';
20
- import '../../../RegistrationApi-CFPzU1Vw.js';
21
- import '../../../TemplateApi-fCIlzBtK.js';
22
- import '../../../TwoStepVerificationApi-C0jpAKfu.js';
23
- import '../../../WabaApi-x5PhsLT3.js';
24
-
25
- interface BaseApiRequest extends BaseRequest {
26
- method?: string;
27
- url?: string;
28
- headers: Record<string, string | string[] | undefined>;
29
- body?: any;
30
- query: Partial<Record<string, string | string[]>>;
31
- rawBody?: any;
32
- }
33
- interface BaseApiResponse extends BaseResponse {
34
- status(code: number): any;
35
- json(data: any): void | any;
36
- send(data?: any): void | any;
37
- setHeader(name: string, value: string): void;
38
- }
39
- interface NextJsWebhookConfig extends BaseWebhookConfig {
40
- }
41
- declare function webhookHandler<TRequest extends BaseApiRequest, TResponse extends BaseApiResponse>(config: NextJsWebhookConfig): {
42
- GET: (req: TRequest, res: TResponse) => Promise<any>;
43
- POST: (req: TRequest, res: TResponse) => Promise<any>;
44
- webhook: (req: TRequest, res: TResponse) => Promise<any>;
45
- flow: (req: TRequest, res: TResponse) => Promise<any>;
46
- processor: WebhookProcessor;
47
- };
48
-
49
- export { type BaseApiRequest, type BaseApiResponse, type NextJsWebhookConfig, webhookHandler };
@@ -1,2 +0,0 @@
1
- export{a as webhookHandler}from'../../../chunk-GM63NGNV.js';import'../../../chunk-5577QQ7V.js';import'../../../chunk-U5FBZ6UB.js';import'../../../chunk-6DFC5L3X.js';import'../../../chunk-BAOZ4U74.js';import'../../../chunk-FKXSL2JK.js';import'../../../chunk-AMHQGG6Z.js';import'../../../chunk-VHAODWCN.js';import'../../../chunk-JPAV644F.js';import'../../../chunk-PHPQ5HP3.js';import'../../../chunk-IYSR44P6.js';import'../../../chunk-SNNRWNGZ.js';import'../../../chunk-L4ESAO2S.js';import'../../../chunk-7QBIZCJ4.js';import'../../../chunk-JXCLRKQ7.js';import'../../../chunk-LV3TULSI.js';import'../../../chunk-CRZ7EUYR.js';import'../../../chunk-JC6YMVID.js';import'../../../chunk-J2JPTKU6.js';import'../../../chunk-FSKBLPGE.js';import'../../../chunk-MJEG3K4V.js';import'../../../chunk-RIL6QABY.js';import'../../../chunk-KMAH6636.js';//# sourceMappingURL=nextjs.js.map
2
- //# sourceMappingURL=nextjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"nextjs.js"}
@@ -1,29 +0,0 @@
1
- export { ExpressRequest, ExpressResponse, webhookHandler as ExpressWebhook, ExpressWebhookConfig, NextFunction } from './frameworks/express.js';
2
- export { webhookHandler as NextJsWebhook, NextJsWebhookConfig } from './frameworks/nextjs.js';
3
- export { F as FlowHandler, e as MessageHandler, M as MessageStatus, W as WebhookContact, a as WebhookEvent, b as WebhookMessage, c as WebhookProcessor, d as WebhookResponse, g as constructFullUrl, f as processFlowRequest, p as processWebhookMessages } from '../../WebhookProcessor-DEIZ2PRU.js';
4
- import '../../handler-DbySwF0E.js';
5
- import '../../types/config.js';
6
- import '../../enums-DIimUG6s.js';
7
- import '../../common-B8kp4RdL.js';
8
- import '../../request-CUjrMn8R.js';
9
- import 'http';
10
- import '../../WhatsApp-BFsBgjJO.js';
11
- import '../../httpsClient-Cbd2Y6mg.js';
12
- import 'https';
13
- import '../../EncryptionApi-CcCfeK2b.js';
14
- import '../../base-BV6DyzGS.js';
15
- import '../../FlowApi-DDHrFT_Q.js';
16
- import '../../MediaApi-CY9RVo7u.js';
17
- import '../../MessageApi-CX_jN8da.js';
18
- import '../../common-CGbls9Y8.js';
19
- import '../../PhoneNumberApi-B-hY7g1M.js';
20
- import '../../BusinessProfileApi-C_sEOrWM.js';
21
- import '../../QrCodeApi-DRICKN04.js';
22
- import '../../RegistrationApi-CFPzU1Vw.js';
23
- import '../../TemplateApi-fCIlzBtK.js';
24
- import '../../TwoStepVerificationApi-C0jpAKfu.js';
25
- import '../../WabaApi-x5PhsLT3.js';
26
-
27
- declare const generateXHub256Sig: (body: string, appSecret: string) => string;
28
-
29
- export { generateXHub256Sig };
@@ -1,2 +0,0 @@
1
- export{a as generateXHub256Sig}from'../../chunk-RWCVPWRC.js';export{a as ExpressWebhook}from'../../chunk-ZMNXRMWK.js';export{a as NextJsWebhook}from'../../chunk-GM63NGNV.js';import'../../chunk-5577QQ7V.js';export{d as WebhookProcessor,c as constructFullUrl,b as processFlowRequest,a as processWebhookMessages}from'../../chunk-U5FBZ6UB.js';import'../../chunk-6DFC5L3X.js';import'../../chunk-BAOZ4U74.js';import'../../chunk-FKXSL2JK.js';import'../../chunk-AMHQGG6Z.js';import'../../chunk-VHAODWCN.js';import'../../chunk-JPAV644F.js';import'../../chunk-PHPQ5HP3.js';import'../../chunk-IYSR44P6.js';import'../../chunk-SNNRWNGZ.js';import'../../chunk-L4ESAO2S.js';import'../../chunk-7QBIZCJ4.js';import'../../chunk-JXCLRKQ7.js';import'../../chunk-LV3TULSI.js';import'../../chunk-CRZ7EUYR.js';import'../../chunk-JC6YMVID.js';import'../../chunk-J2JPTKU6.js';import'../../chunk-FSKBLPGE.js';import'../../chunk-MJEG3K4V.js';import'../../chunk-RIL6QABY.js';import'../../chunk-KMAH6636.js';//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}