meta-cloud-api 0.2.11 → 0.2.13

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 (297) hide show
  1. package/README.md +5 -2
  2. package/dist/api/index.d.mts +495 -27
  3. package/dist/api/index.mjs +1 -1
  4. package/dist/api/index.mjs.map +1 -1
  5. package/dist/chunk-KZQQJAPX.mjs +2 -0
  6. package/dist/chunk-KZQQJAPX.mjs.map +1 -0
  7. package/dist/chunk-N7A7DQDX.mjs +2 -0
  8. package/dist/chunk-N7A7DQDX.mjs.map +1 -0
  9. package/dist/chunk-QE4PKOSW.mjs +2 -0
  10. package/dist/chunk-QE4PKOSW.mjs.map +1 -0
  11. package/dist/chunk-R4CFE2XP.mjs +2 -0
  12. package/dist/chunk-R4CFE2XP.mjs.map +1 -0
  13. package/dist/chunk-XVYL7ZTG.mjs +2 -0
  14. package/dist/chunk-XVYL7ZTG.mjs.map +1 -0
  15. package/dist/index.d.mts +142 -43
  16. package/dist/index.mjs +2 -2
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/types/index.d.mts +512 -19
  19. package/dist/types/index.mjs +1 -1
  20. package/dist/types/index.mjs.map +1 -1
  21. package/dist/utils/index.d.mts +70 -21
  22. package/dist/utils/index.mjs +1 -1
  23. package/dist/utils/index.mjs.map +1 -1
  24. package/dist/waba-RRlZTQUG.d.mts +2229 -0
  25. package/dist/{types/whatsapp.d.ts → whatsapp-BNHXjrds.d.mts} +2 -17
  26. package/package.json +52 -18
  27. package/dist/api/base.d.mts +0 -15
  28. package/dist/api/base.d.ts +0 -15
  29. package/dist/api/base.js +0 -2
  30. package/dist/api/base.js.map +0 -1
  31. package/dist/api/base.mjs +0 -2
  32. package/dist/api/base.mjs.map +0 -1
  33. package/dist/api/businessProfile.d.mts +0 -145
  34. package/dist/api/businessProfile.d.ts +0 -145
  35. package/dist/api/businessProfile.js +0 -2
  36. package/dist/api/businessProfile.js.map +0 -1
  37. package/dist/api/businessProfile.mjs +0 -2
  38. package/dist/api/businessProfile.mjs.map +0 -1
  39. package/dist/api/encryption.d.mts +0 -15
  40. package/dist/api/encryption.d.ts +0 -15
  41. package/dist/api/encryption.js +0 -2
  42. package/dist/api/encryption.js.map +0 -1
  43. package/dist/api/encryption.mjs +0 -2
  44. package/dist/api/encryption.mjs.map +0 -1
  45. package/dist/api/flow.d.mts +0 -126
  46. package/dist/api/flow.d.ts +0 -126
  47. package/dist/api/flow.js +0 -2
  48. package/dist/api/flow.js.map +0 -1
  49. package/dist/api/flow.mjs +0 -2
  50. package/dist/api/flow.mjs.map +0 -1
  51. package/dist/api/index.d.ts +0 -28
  52. package/dist/api/index.js +0 -2
  53. package/dist/api/index.js.map +0 -1
  54. package/dist/api/media.d.mts +0 -17
  55. package/dist/api/media.d.ts +0 -17
  56. package/dist/api/media.js +0 -2
  57. package/dist/api/media.js.map +0 -1
  58. package/dist/api/media.mjs +0 -2
  59. package/dist/api/media.mjs.map +0 -1
  60. package/dist/api/messages.d.mts +0 -193
  61. package/dist/api/messages.d.ts +0 -193
  62. package/dist/api/messages.js +0 -2
  63. package/dist/api/messages.js.map +0 -1
  64. package/dist/api/messages.mjs +0 -2
  65. package/dist/api/messages.mjs.map +0 -1
  66. package/dist/api/phoneNumber.d.mts +0 -17
  67. package/dist/api/phoneNumber.d.ts +0 -17
  68. package/dist/api/phoneNumber.js +0 -2
  69. package/dist/api/phoneNumber.js.map +0 -1
  70. package/dist/api/phoneNumber.mjs +0 -2
  71. package/dist/api/phoneNumber.mjs.map +0 -1
  72. package/dist/api/qrCode.d.mts +0 -18
  73. package/dist/api/qrCode.d.ts +0 -18
  74. package/dist/api/qrCode.js +0 -2
  75. package/dist/api/qrCode.js.map +0 -1
  76. package/dist/api/qrCode.mjs +0 -2
  77. package/dist/api/qrCode.mjs.map +0 -1
  78. package/dist/api/registration.d.mts +0 -14
  79. package/dist/api/registration.d.ts +0 -14
  80. package/dist/api/registration.js +0 -2
  81. package/dist/api/registration.js.map +0 -1
  82. package/dist/api/registration.mjs +0 -2
  83. package/dist/api/registration.mjs.map +0 -1
  84. package/dist/api/template.d.mts +0 -18
  85. package/dist/api/template.d.ts +0 -18
  86. package/dist/api/template.js +0 -2
  87. package/dist/api/template.js.map +0 -1
  88. package/dist/api/template.mjs +0 -2
  89. package/dist/api/template.mjs.map +0 -1
  90. package/dist/api/twoStepVerification.d.mts +0 -13
  91. package/dist/api/twoStepVerification.d.ts +0 -13
  92. package/dist/api/twoStepVerification.js +0 -2
  93. package/dist/api/twoStepVerification.js.map +0 -1
  94. package/dist/api/twoStepVerification.mjs +0 -2
  95. package/dist/api/twoStepVerification.mjs.map +0 -1
  96. package/dist/api/waba.d.mts +0 -16
  97. package/dist/api/waba.d.ts +0 -16
  98. package/dist/api/waba.js +0 -2
  99. package/dist/api/waba.js.map +0 -1
  100. package/dist/api/waba.mjs +0 -2
  101. package/dist/api/waba.mjs.map +0 -1
  102. package/dist/enums-CI7vzKhn.d.mts +0 -687
  103. package/dist/enums-CI7vzKhn.d.ts +0 -687
  104. package/dist/httpsClient.d.mts +0 -22
  105. package/dist/httpsClient.d.ts +0 -22
  106. package/dist/httpsClient.js +0 -2
  107. package/dist/httpsClient.js.map +0 -1
  108. package/dist/httpsClient.mjs +0 -2
  109. package/dist/httpsClient.mjs.map +0 -1
  110. package/dist/index.d.ts +0 -46
  111. package/dist/index.js +0 -3
  112. package/dist/index.js.map +0 -1
  113. package/dist/request.d.mts +0 -25
  114. package/dist/request.d.ts +0 -25
  115. package/dist/request.js +0 -2
  116. package/dist/request.js.map +0 -1
  117. package/dist/request.mjs +0 -2
  118. package/dist/request.mjs.map +0 -1
  119. package/dist/types/base.d.mts +0 -8
  120. package/dist/types/base.d.ts +0 -8
  121. package/dist/types/base.js +0 -2
  122. package/dist/types/base.js.map +0 -1
  123. package/dist/types/base.mjs +0 -1
  124. package/dist/types/base.mjs.map +0 -1
  125. package/dist/types/businessProfile.d.mts +0 -153
  126. package/dist/types/businessProfile.d.ts +0 -153
  127. package/dist/types/businessProfile.js +0 -2
  128. package/dist/types/businessProfile.js.map +0 -1
  129. package/dist/types/businessProfile.mjs +0 -1
  130. package/dist/types/businessProfile.mjs.map +0 -1
  131. package/dist/types/config.d.mts +0 -62
  132. package/dist/types/config.d.ts +0 -62
  133. package/dist/types/config.js +0 -2
  134. package/dist/types/config.js.map +0 -1
  135. package/dist/types/config.mjs +0 -1
  136. package/dist/types/config.mjs.map +0 -1
  137. package/dist/types/encryption.d.mts +0 -13
  138. package/dist/types/encryption.d.ts +0 -13
  139. package/dist/types/encryption.js +0 -2
  140. package/dist/types/encryption.js.map +0 -1
  141. package/dist/types/encryption.mjs +0 -1
  142. package/dist/types/encryption.mjs.map +0 -1
  143. package/dist/types/enums.d.mts +0 -1
  144. package/dist/types/enums.d.ts +0 -1
  145. package/dist/types/enums.js +0 -2
  146. package/dist/types/enums.js.map +0 -1
  147. package/dist/types/enums.mjs +0 -2
  148. package/dist/types/enums.mjs.map +0 -1
  149. package/dist/types/flow.d.mts +0 -404
  150. package/dist/types/flow.d.ts +0 -404
  151. package/dist/types/flow.js +0 -2
  152. package/dist/types/flow.js.map +0 -1
  153. package/dist/types/flow.mjs +0 -2
  154. package/dist/types/flow.mjs.map +0 -1
  155. package/dist/types/httpsClient.d.mts +0 -19
  156. package/dist/types/httpsClient.d.ts +0 -19
  157. package/dist/types/httpsClient.js +0 -2
  158. package/dist/types/httpsClient.js.map +0 -1
  159. package/dist/types/httpsClient.mjs +0 -1
  160. package/dist/types/httpsClient.mjs.map +0 -1
  161. package/dist/types/index.d.ts +0 -20
  162. package/dist/types/index.js +0 -2
  163. package/dist/types/index.js.map +0 -1
  164. package/dist/types/logger.d.mts +0 -9
  165. package/dist/types/logger.d.ts +0 -9
  166. package/dist/types/logger.js +0 -2
  167. package/dist/types/logger.js.map +0 -1
  168. package/dist/types/logger.mjs +0 -1
  169. package/dist/types/logger.mjs.map +0 -1
  170. package/dist/types/media.d.mts +0 -31
  171. package/dist/types/media.d.ts +0 -31
  172. package/dist/types/media.js +0 -2
  173. package/dist/types/media.js.map +0 -1
  174. package/dist/types/media.mjs +0 -1
  175. package/dist/types/media.mjs.map +0 -1
  176. package/dist/types/messages.d.mts +0 -558
  177. package/dist/types/messages.d.ts +0 -558
  178. package/dist/types/messages.js +0 -2
  179. package/dist/types/messages.js.map +0 -1
  180. package/dist/types/messages.mjs +0 -1
  181. package/dist/types/messages.mjs.map +0 -1
  182. package/dist/types/phoneNumber.d.mts +0 -82
  183. package/dist/types/phoneNumber.d.ts +0 -82
  184. package/dist/types/phoneNumber.js +0 -2
  185. package/dist/types/phoneNumber.js.map +0 -1
  186. package/dist/types/phoneNumber.mjs +0 -1
  187. package/dist/types/phoneNumber.mjs.map +0 -1
  188. package/dist/types/qrCode.d.mts +0 -27
  189. package/dist/types/qrCode.d.ts +0 -27
  190. package/dist/types/qrCode.js +0 -2
  191. package/dist/types/qrCode.js.map +0 -1
  192. package/dist/types/qrCode.mjs +0 -1
  193. package/dist/types/qrCode.mjs.map +0 -1
  194. package/dist/types/registration.d.mts +0 -14
  195. package/dist/types/registration.d.ts +0 -14
  196. package/dist/types/registration.js +0 -2
  197. package/dist/types/registration.js.map +0 -1
  198. package/dist/types/registration.mjs +0 -1
  199. package/dist/types/registration.mjs.map +0 -1
  200. package/dist/types/request.d.mts +0 -50
  201. package/dist/types/request.d.ts +0 -50
  202. package/dist/types/request.js +0 -2
  203. package/dist/types/request.js.map +0 -1
  204. package/dist/types/request.mjs +0 -1
  205. package/dist/types/request.mjs.map +0 -1
  206. package/dist/types/template.d.mts +0 -106
  207. package/dist/types/template.d.ts +0 -106
  208. package/dist/types/template.js +0 -2
  209. package/dist/types/template.js.map +0 -1
  210. package/dist/types/template.mjs +0 -1
  211. package/dist/types/template.mjs.map +0 -1
  212. package/dist/types/twoStepVerification.d.mts +0 -11
  213. package/dist/types/twoStepVerification.d.ts +0 -11
  214. package/dist/types/twoStepVerification.js +0 -2
  215. package/dist/types/twoStepVerification.js.map +0 -1
  216. package/dist/types/twoStepVerification.mjs +0 -1
  217. package/dist/types/twoStepVerification.mjs.map +0 -1
  218. package/dist/types/waba.d.mts +0 -78
  219. package/dist/types/waba.d.ts +0 -78
  220. package/dist/types/waba.js +0 -2
  221. package/dist/types/waba.js.map +0 -1
  222. package/dist/types/waba.mjs +0 -2
  223. package/dist/types/waba.mjs.map +0 -1
  224. package/dist/types/webhook.d.mts +0 -486
  225. package/dist/types/webhook.d.ts +0 -486
  226. package/dist/types/webhook.js +0 -2
  227. package/dist/types/webhook.js.map +0 -1
  228. package/dist/types/webhook.mjs +0 -2
  229. package/dist/types/webhook.mjs.map +0 -1
  230. package/dist/types/whatsapp.d.mts +0 -61
  231. package/dist/types/whatsapp.js +0 -2
  232. package/dist/types/whatsapp.js.map +0 -1
  233. package/dist/types/whatsapp.mjs +0 -1
  234. package/dist/types/whatsapp.mjs.map +0 -1
  235. package/dist/utils/buildFieldsQueryString.d.mts +0 -3
  236. package/dist/utils/buildFieldsQueryString.d.ts +0 -3
  237. package/dist/utils/buildFieldsQueryString.js +0 -2
  238. package/dist/utils/buildFieldsQueryString.js.map +0 -1
  239. package/dist/utils/buildFieldsQueryString.mjs +0 -2
  240. package/dist/utils/buildFieldsQueryString.mjs.map +0 -1
  241. package/dist/utils/filters.d.mts +0 -144
  242. package/dist/utils/filters.d.ts +0 -144
  243. package/dist/utils/filters.js +0 -2
  244. package/dist/utils/filters.js.map +0 -1
  245. package/dist/utils/filters.mjs +0 -2
  246. package/dist/utils/filters.mjs.map +0 -1
  247. package/dist/utils/flowTypeGuards.d.mts +0 -46
  248. package/dist/utils/flowTypeGuards.d.ts +0 -46
  249. package/dist/utils/flowTypeGuards.js +0 -2
  250. package/dist/utils/flowTypeGuards.js.map +0 -1
  251. package/dist/utils/flowTypeGuards.mjs +0 -2
  252. package/dist/utils/flowTypeGuards.mjs.map +0 -1
  253. package/dist/utils/generateXHub256Sig.d.mts +0 -3
  254. package/dist/utils/generateXHub256Sig.d.ts +0 -3
  255. package/dist/utils/generateXHub256Sig.js +0 -2
  256. package/dist/utils/generateXHub256Sig.js.map +0 -1
  257. package/dist/utils/generateXHub256Sig.mjs +0 -2
  258. package/dist/utils/generateXHub256Sig.mjs.map +0 -1
  259. package/dist/utils/importConfig.d.mts +0 -21
  260. package/dist/utils/importConfig.d.ts +0 -21
  261. package/dist/utils/importConfig.js +0 -2
  262. package/dist/utils/importConfig.js.map +0 -1
  263. package/dist/utils/importConfig.mjs +0 -2
  264. package/dist/utils/importConfig.mjs.map +0 -1
  265. package/dist/utils/index.d.ts +0 -22
  266. package/dist/utils/index.js +0 -2
  267. package/dist/utils/index.js.map +0 -1
  268. package/dist/utils/isMetaError.d.mts +0 -21
  269. package/dist/utils/isMetaError.d.ts +0 -21
  270. package/dist/utils/isMetaError.js +0 -2
  271. package/dist/utils/isMetaError.js.map +0 -1
  272. package/dist/utils/isMetaError.mjs +0 -2
  273. package/dist/utils/isMetaError.mjs.map +0 -1
  274. package/dist/utils/logger.d.mts +0 -13
  275. package/dist/utils/logger.d.ts +0 -13
  276. package/dist/utils/logger.js +0 -2
  277. package/dist/utils/logger.js.map +0 -1
  278. package/dist/utils/logger.mjs +0 -2
  279. package/dist/utils/logger.mjs.map +0 -1
  280. package/dist/utils/objectToQueryString.d.mts +0 -3
  281. package/dist/utils/objectToQueryString.d.ts +0 -3
  282. package/dist/utils/objectToQueryString.js +0 -2
  283. package/dist/utils/objectToQueryString.js.map +0 -1
  284. package/dist/utils/objectToQueryString.mjs +0 -2
  285. package/dist/utils/objectToQueryString.mjs.map +0 -1
  286. package/dist/webhook.d.mts +0 -123
  287. package/dist/webhook.d.ts +0 -123
  288. package/dist/webhook.js +0 -3
  289. package/dist/webhook.js.map +0 -1
  290. package/dist/webhook.mjs +0 -3
  291. package/dist/webhook.mjs.map +0 -1
  292. package/dist/whatsapp.d.mts +0 -58
  293. package/dist/whatsapp.d.ts +0 -58
  294. package/dist/whatsapp.js +0 -2
  295. package/dist/whatsapp.js.map +0 -1
  296. package/dist/whatsapp.mjs +0 -2
  297. package/dist/whatsapp.mjs.map +0 -1
@@ -1,404 +0,0 @@
1
- import { IncomingMessage, IncomingHttpHeaders } from 'http';
2
- import { ResponseSuccess } from './request.js';
3
- import '../enums-CI7vzKhn.js';
4
-
5
- /**
6
- * Enum for Flow Status
7
- */
8
- declare enum FlowStatusEnum {
9
- Draft = "DRAFT",
10
- Published = "PUBLISHED",
11
- Throttled = "THROTTLED",
12
- Blocked = "BLOCKED",
13
- Deprecated = "DEPRECATED"
14
- }
15
- /**
16
- * Enum for Flow Categories
17
- */
18
- declare enum FlowCategoryEnum {
19
- SignUp = "SIGN_UP",
20
- SignIn = "SIGN_IN",
21
- AppointmentBooking = "APPOINTMENT_BOOKING",
22
- LeadGeneration = "LEAD_GENERATION",
23
- ContactUs = "CONTACT_US",
24
- CustomerSupport = "CUSTOMER_SUPPORT",
25
- Survey = "SURVEY",
26
- Other = "OTHER"
27
- }
28
- declare enum FlowActionEnum {
29
- INIT = "INIT",
30
- BACK = "BACK",
31
- DATA_EXCHANGE = "data_exchange"
32
- }
33
- /**
34
- * Enum for Flow Types in webhook handlers
35
- * Used to register handlers for specific flow events
36
- */
37
- declare enum FlowTypeEnum {
38
- /** Health check/ping requests */
39
- Ping = "ping",
40
- /** Data exchange requests */
41
- Change = "data_exchange",
42
- /** Error notification requests */
43
- Error = "error",
44
- /** Match all flow action types */
45
- All = "*"
46
- }
47
- /**
48
- * Flow Validation Error Pointer
49
- */
50
- interface FlowValidationErrorPointer {
51
- line_start: number;
52
- line_end: number;
53
- column_start: number;
54
- column_end: number;
55
- path: string;
56
- }
57
- /**
58
- * Flow Validation Error
59
- */
60
- interface FlowValidationError {
61
- error: string;
62
- error_type: string;
63
- message: string;
64
- line_start: number;
65
- line_end: number;
66
- column_start: number;
67
- column_end: number;
68
- pointers: FlowValidationErrorPointer[];
69
- }
70
- /**
71
- * Flow Item
72
- */
73
- interface Flow {
74
- id: string;
75
- name: string;
76
- status: FlowStatusEnum;
77
- categories: FlowCategoryEnum[];
78
- validation_errors: FlowValidationError[];
79
- }
80
- /**
81
- * Pagination Cursors
82
- */
83
- interface PaginationCursors {
84
- before: string;
85
- after: string;
86
- }
87
- /**
88
- * Pagination Object
89
- */
90
- interface Pagination {
91
- cursors: PaginationCursors;
92
- }
93
- /**
94
- * Flows List Response
95
- */
96
- interface FlowsListResponse {
97
- data: Flow[];
98
- paging: Pagination;
99
- }
100
- /**
101
- * Flow Asset
102
- */
103
- interface FlowAsset {
104
- name: string;
105
- asset_type: string;
106
- download_url: string;
107
- }
108
- /**
109
- * Flow Assets Response
110
- */
111
- interface FlowAssetsResponse {
112
- data: FlowAsset[];
113
- paging: Pagination;
114
- }
115
- /**
116
- * Flow Preview
117
- */
118
- interface FlowPreview {
119
- preview_url: string;
120
- expires_at: string;
121
- }
122
- /**
123
- * Flow Preview Response
124
- */
125
- interface FlowPreviewResponse {
126
- preview: FlowPreview;
127
- id: string;
128
- }
129
- /**
130
- * Flow Migration Result
131
- */
132
- interface FlowMigrationResult {
133
- source_name: string;
134
- source_id: string;
135
- migrated_id: string;
136
- }
137
- /**
138
- * Flow Migration Failure
139
- */
140
- interface FlowMigrationFailure {
141
- source_name: string;
142
- error_code: string;
143
- error_message: string;
144
- }
145
- /**
146
- * Create Flow Response
147
- */
148
- interface CreateFlowResponse {
149
- id: string;
150
- success: boolean;
151
- validation_errors?: FlowValidationError[];
152
- }
153
- /**
154
- * Update Flow Response
155
- */
156
- interface UpdateFlowResponse {
157
- success: boolean;
158
- validation_errors?: FlowValidationError[];
159
- }
160
- /**
161
- * Flow Migration Response
162
- */
163
- interface FlowMigrationResponse {
164
- migrated_flows: FlowMigrationResult[];
165
- failed_flows: FlowMigrationFailure[];
166
- }
167
- /**
168
- * Validate Flow JSON Response
169
- */
170
- interface ValidateFlowJsonResponse {
171
- valid: boolean;
172
- success: boolean;
173
- validation_errors?: FlowValidationError[];
174
- }
175
- /**
176
- * WhatsApp Flow Endpoint - Encrypted Request Payload
177
- * Represents the raw encrypted data received from WhatsApp
178
- */
179
- interface FlowEncryptedRequestPayload {
180
- encrypted_aes_key: string;
181
- encrypted_flow_data: string;
182
- initial_vector: string;
183
- }
184
- /**
185
- * WhatsApp Flow Endpoint - Decrypted Request Response
186
- * Represents the successfully decrypted data and encryption keys
187
- */
188
- interface FlowDecryptedRequestResponse {
189
- decryptedBody: any;
190
- aesKeyBuffer: Buffer;
191
- initialVectorBuffer: Buffer;
192
- }
193
- /**
194
- * WhatsApp Flow Endpoint - HTTP Request with Body
195
- * Represents an HTTP request with the encrypted payload
196
- */
197
- interface FlowHttpRequest extends IncomingMessage {
198
- body: FlowEncryptedRequestPayload;
199
- headers: IncomingHttpHeaders;
200
- }
201
- /**
202
- * WhatsApp Flow Endpoint - Health Check Request
203
- * Represents the structure of a health check request
204
- */
205
- interface FlowHealthCheckRequest {
206
- action: 'ping';
207
- version: '3.0';
208
- }
209
- /**
210
- * WhatsApp Flow Endpoint - Health Check Response
211
- * The expected response structure for health check requests
212
- */
213
- interface FlowHealthCheckResponse {
214
- data: {
215
- status: 'active';
216
- };
217
- }
218
- /**
219
- * WhatsApp Flow Endpoint - Data Exchange Request
220
- * Represents the structure of a data exchange request
221
- */
222
- interface FlowDataExchangeRequest {
223
- version: '3.0';
224
- action: FlowActionEnum;
225
- screen: string;
226
- flow_token: string;
227
- data?: Record<string, any> & {
228
- error_message?: string;
229
- };
230
- }
231
- /**
232
- * WhatsApp Flow Endpoint - Data Exchange Response
233
- * The expected response structure for data exchange requests
234
- */
235
- interface FlowDataExchangeResponse {
236
- screen?: string;
237
- data?: Record<string, any | {
238
- error_message?: string;
239
- }>;
240
- }
241
- /**
242
- * WhatsApp Flow Endpoint - Success Screen Response
243
- * The expected response structure for success screen requests
244
- */
245
- interface FlowSuccessScreenResponse {
246
- screen: 'SUCCESS';
247
- data: {
248
- extension_message_response?: {
249
- params?: {
250
- flow_token: string;
251
- [key: string]: string;
252
- };
253
- };
254
- };
255
- }
256
- /**
257
- * WhatsApp Flow Endpoint - Error Notification Request
258
- * Represents the structure of an error notification request
259
- */
260
- interface FlowErrorNotificationRequest {
261
- version: '3.0';
262
- action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;
263
- screen: string;
264
- flow_token: string;
265
- data: {
266
- error_key?: string;
267
- error_message?: string;
268
- };
269
- }
270
- /**
271
- * WhatsApp Flow Endpoint - Error Notification Response
272
- * The expected response structure for error notification requests
273
- */
274
- interface FlowErrorNotificationResponse {
275
- acknowledged: boolean;
276
- }
277
- /**
278
- * WhatsApp Flow Endpoint - Comprehensive Request Object
279
- * A combined type that includes all possible fields from different request types
280
- * with all fields being optional for flexibility
281
- */
282
- interface FlowEndpointRequest {
283
- version?: '3.0';
284
- action?: 'ping' | FlowActionEnum;
285
- screen?: string;
286
- flow_token?: string;
287
- data?: Record<string, any> & {
288
- error_key?: string;
289
- error_message?: string;
290
- };
291
- }
292
- /**
293
- * WhatsApp Flow Endpoint - Response
294
- * Union type for all possible response types from a Flow endpoint
295
- */
296
- type FlowEndpointResponse = FlowHealthCheckResponse | FlowDataExchangeResponse | FlowErrorNotificationResponse | FlowSuccessScreenResponse;
297
- interface FlowClass {
298
- /**
299
- * List Flows
300
- *
301
- * @param wabaId - The WABA ID
302
- * @returns Promise with the list of flows
303
- */
304
- listFlows(wabaId: string): Promise<FlowsListResponse>;
305
- /**
306
- * Create Flow
307
- *
308
- * @param wabaId - The WABA ID
309
- * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id
310
- * @returns Promise with the created flow ID
311
- */
312
- createFlow(wabaId: string, data: {
313
- name: string;
314
- categories?: FlowCategoryEnum[];
315
- endpoint_uri?: string;
316
- clone_flow_id?: string;
317
- flow_json?: string;
318
- publish?: boolean;
319
- }): Promise<CreateFlowResponse>;
320
- /**
321
- * Get Flow
322
- *
323
- * @param flowId - The flow ID
324
- * @param fields - Optional fields to return
325
- * @param dateFormat - Optional date format
326
- * @returns Promise with the flow details
327
- */
328
- getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;
329
- /**
330
- * Update Flow Metadata
331
- *
332
- * @param flowId - The flow ID
333
- * @param data - The flow metadata to update
334
- * @returns Promise with the success status
335
- */
336
- updateFlowMetadata(flowId: string, data: {
337
- name?: string;
338
- categories?: FlowCategoryEnum[];
339
- endpoint_uri?: string;
340
- application_id?: string;
341
- }): Promise<ResponseSuccess>;
342
- /**
343
- * Delete Flow
344
- *
345
- * @param flowId - The flow ID
346
- * @returns Promise with the success status
347
- */
348
- deleteFlow(flowId: string): Promise<ResponseSuccess>;
349
- /**
350
- * List Assets (Get Flow JSON URL)
351
- *
352
- * @param flowId - The flow ID
353
- * @returns Promise with the list of assets
354
- */
355
- listAssets(flowId: string): Promise<FlowAssetsResponse>;
356
- /**
357
- * Update Flow JSON
358
- *
359
- * @param flowId - The flow ID
360
- * @param data - The asset data including asset_type, file, and name
361
- * @returns Promise with the success status and validation errors
362
- */
363
- updateFlowJson(flowId: string, data: {
364
- asset_type: 'FLOW_JSON';
365
- file: Blob;
366
- name: string;
367
- }): Promise<UpdateFlowResponse>;
368
- /**
369
- * Validate Flow JSON by attempting an update without publishing.
370
- * This is a convenience method; the API doesn't have a dedicated validation endpoint.
371
- *
372
- * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).
373
- * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.
374
- * @returns Promise indicating if the JSON is valid and includes validation errors if any.
375
- */
376
- validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;
377
- /**
378
- * Publish Flow
379
- *
380
- * @param flowId - The flow ID
381
- * @returns Promise with the success status
382
- */
383
- publishFlow(flowId: string): Promise<ResponseSuccess>;
384
- /**
385
- * Deprecate Flow
386
- *
387
- * @param flowId - The flow ID
388
- * @returns Promise with the success status
389
- */
390
- deprecateFlow(flowId: string): Promise<ResponseSuccess>;
391
- /**
392
- * Migrate Flows
393
- *
394
- * @param wabaId - The destination WABA ID
395
- * @param data - The migration data including source_waba_id and optional source_flow_names
396
- * @returns Promise with migration results
397
- */
398
- migrateFlows(wabaId: string, data: {
399
- source_waba_id: string;
400
- source_flow_names?: string[];
401
- }): Promise<FlowMigrationResponse>;
402
- }
403
-
404
- export { type CreateFlowResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
@@ -1,2 +0,0 @@
1
- "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var _=(t,r)=>{for(var i in r)a(t,i,{get:r[i],enumerable:!0})},F=(t,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of w(r))!f.call(t,e)&&e!==i&&a(t,e,{get:()=>r[e],enumerable:!(s=d(r,e))||s.enumerable});return t};var u=t=>F(a({},"__esModule",{value:!0}),t);var R={};_(R,{FlowActionEnum:()=>g,FlowCategoryEnum:()=>c,FlowStatusEnum:()=>l,FlowTypeEnum:()=>p});module.exports=u(R);var l=(n=>(n.Draft="DRAFT",n.Published="PUBLISHED",n.Throttled="THROTTLED",n.Blocked="BLOCKED",n.Deprecated="DEPRECATED",n))(l||{}),c=(o=>(o.SignUp="SIGN_UP",o.SignIn="SIGN_IN",o.AppointmentBooking="APPOINTMENT_BOOKING",o.LeadGeneration="LEAD_GENERATION",o.ContactUs="CONTACT_US",o.CustomerSupport="CUSTOMER_SUPPORT",o.Survey="SURVEY",o.Other="OTHER",o))(c||{}),g=(s=>(s.INIT="INIT",s.BACK="BACK",s.DATA_EXCHANGE="data_exchange",s))(g||{}),p=(e=>(e.Ping="ping",e.Change="data_exchange",e.Error="error",e.All="*",e))(p||{});0&&(module.exports={FlowActionEnum,FlowCategoryEnum,FlowStatusEnum,FlowTypeEnum});
2
- //# sourceMappingURL=flow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Enum for Flow Types in webhook handlers\n * Used to register handlers for specific flow events\n */\nexport enum FlowTypeEnum {\n /** Health check/ping requests */\n Ping = 'ping',\n /** Data exchange requests */\n Change = 'data_exchange',\n /** Error notification requests */\n Error = 'error',\n /** Match all flow action types */\n All = '*',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any> & { error_message?: string };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\n/**\n * WhatsApp Flow Endpoint - Comprehensive Request Object\n * A combined type that includes all possible fields from different request types\n * with all fields being optional for flexibility\n */\nexport interface FlowEndpointRequest {\n // Common fields\n version?: '3.0';\n action?: 'ping' | FlowActionEnum;\n\n screen?: string;\n flow_token?: string;\n\n data?: Record<string, any> & {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,qBAAAC,EAAA,mBAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAN,GAMO,IAAKI,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAD,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAD,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA,IAUAG,OAERA,EAAA,KAAO,OAEPA,EAAA,OAAS,gBAETA,EAAA,MAAQ,QAERA,EAAA,IAAM,IAREA,OAAA","names":["flow_exports","__export","FlowActionEnum","FlowCategoryEnum","FlowStatusEnum","FlowTypeEnum","__toCommonJS"]}
@@ -1,2 +0,0 @@
1
- var s=(r=>(r.Draft="DRAFT",r.Published="PUBLISHED",r.Throttled="THROTTLED",r.Blocked="BLOCKED",r.Deprecated="DEPRECATED",r))(s||{}),n=(e=>(e.SignUp="SIGN_UP",e.SignIn="SIGN_IN",e.AppointmentBooking="APPOINTMENT_BOOKING",e.LeadGeneration="LEAD_GENERATION",e.ContactUs="CONTACT_US",e.CustomerSupport="CUSTOMER_SUPPORT",e.Survey="SURVEY",e.Other="OTHER",e))(n||{}),i=(t=>(t.INIT="INIT",t.BACK="BACK",t.DATA_EXCHANGE="data_exchange",t))(i||{}),a=(o=>(o.Ping="ping",o.Change="data_exchange",o.Error="error",o.All="*",o))(a||{});export{i as FlowActionEnum,n as FlowCategoryEnum,s as FlowStatusEnum,a as FlowTypeEnum};
2
- //# sourceMappingURL=flow.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Enum for Flow Types in webhook handlers\n * Used to register handlers for specific flow events\n */\nexport enum FlowTypeEnum {\n /** Health check/ping requests */\n Ping = 'ping',\n /** Data exchange requests */\n Change = 'data_exchange',\n /** Error notification requests */\n Error = 'error',\n /** Match all flow action types */\n All = '*',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any> & { error_message?: string };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\n/**\n * WhatsApp Flow Endpoint - Comprehensive Request Object\n * A combined type that includes all possible fields from different request types\n * with all fields being optional for flexibility\n */\nexport interface FlowEndpointRequest {\n // Common fields\n version?: '3.0';\n action?: 'ping' | FlowActionEnum;\n\n screen?: string;\n flow_token?: string;\n\n data?: Record<string, any> & {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"AAMO,IAAKA,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAC,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAC,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA,IAUAC,OAERA,EAAA,KAAO,OAEPA,EAAA,OAAS,gBAETA,EAAA,MAAQ,QAERA,EAAA,IAAM,IAREA,OAAA","names":["FlowStatusEnum","FlowCategoryEnum","FlowActionEnum","FlowTypeEnum"]}
@@ -1,19 +0,0 @@
1
- import { H as HttpMethodsEnum } from '../enums-CI7vzKhn.mjs';
2
-
3
- type ResponseHeaderValue = string | string[] | undefined;
4
- type ResponseHeaders = Record<string, ResponseHeaderValue>;
5
- type ResponseJSONBody = Record<string, unknown>;
6
- declare class HttpsClientResponseClass {
7
- constructor(resp: Response);
8
- statusCode: () => number;
9
- headers: () => ResponseHeaders;
10
- rawResponse: () => Response;
11
- json: () => Promise<ResponseJSONBody>;
12
- }
13
- declare class HttpsClientClass {
14
- constructor();
15
- clearSockets: () => boolean;
16
- sendRequest: (host: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null) => Promise<HttpsClientResponseClass>;
17
- }
18
-
19
- export { HttpsClientClass, HttpsClientResponseClass, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody };
@@ -1,19 +0,0 @@
1
- import { H as HttpMethodsEnum } from '../enums-CI7vzKhn.js';
2
-
3
- type ResponseHeaderValue = string | string[] | undefined;
4
- type ResponseHeaders = Record<string, ResponseHeaderValue>;
5
- type ResponseJSONBody = Record<string, unknown>;
6
- declare class HttpsClientResponseClass {
7
- constructor(resp: Response);
8
- statusCode: () => number;
9
- headers: () => ResponseHeaders;
10
- rawResponse: () => Response;
11
- json: () => Promise<ResponseJSONBody>;
12
- }
13
- declare class HttpsClientClass {
14
- constructor();
15
- clearSockets: () => boolean;
16
- sendRequest: (host: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null) => Promise<HttpsClientResponseClass>;
17
- }
18
-
19
- export { HttpsClientClass, HttpsClientResponseClass, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody };
@@ -1,2 +0,0 @@
1
- "use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var i=(s,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!a.call(s,t)&&t!==r&&n(s,t,{get:()=>e[t],enumerable:!(o=p(e,t))||o.enumerable});return s};var l=s=>i(n({},"__esModule",{value:!0}),s);var u={};module.exports=l(u);
2
- //# sourceMappingURL=httpsClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/types/httpsClient.ts"],"sourcesContent":["import { HttpMethodsEnum } from './enums';\n\nexport type ResponseHeaderValue = string | string[] | undefined;\n\nexport type ResponseHeaders = Record<string, ResponseHeaderValue>;\n\nexport type ResponseJSONBody = Record<string, unknown>;\n\nexport declare class HttpsClientResponseClass {\n constructor(resp: Response);\n statusCode: () => number;\n headers: () => ResponseHeaders;\n rawResponse: () => Response;\n json: () => Promise<ResponseJSONBody>;\n}\n\nexport declare class HttpsClientClass {\n constructor();\n clearSockets: () => boolean;\n sendRequest: (\n host: string,\n path: string,\n method: HttpMethodsEnum,\n headers: HeadersInit,\n timeout: number,\n body?: BodyInit | null,\n ) => Promise<HttpsClientResponseClass>;\n}\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["httpsClient_exports","__toCommonJS"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=httpsClient.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,20 +0,0 @@
1
- export { BaseClass } from './base.js';
2
- export { BusinessProfileClass, BusinessProfileData, BusinessProfileField, BusinessProfileFieldsParam, BusinessProfileResponse, UpdateBusinessProfileRequest, UploadBusinessProfileResponse, UploadHandle, UploadSession, UploadSessionResponse } from './businessProfile.js';
3
- export { WabaConfigType } from './config.js';
4
- export { EncryptionClass, EncryptionPublicKeyResponse } from './encryption.js';
5
- export { A as AudioMediaTypesEnum, k as BusinessVerticalEnum, a as ButtonPositionEnum, B as ButtonTypesEnum, C as CategoryEnum, b as ComponentTypesEnum, c as ConversationTypesEnum, i as CurrencyCodesEnum, j as DataLocalizationRegionEnum, D as DocumentMediaTypesEnum, H as HttpMethodsEnum, e as ImageMediaTypesEnum, I as InteractiveTypesEnum, L as LanguagesEnum, M as MessageTypesEnum, P as ParametersTypesEnum, R as ReferralSourceTypesEnum, h as RequestCodeMethodsEnum, S as StatusEnum, d as StickerMediaTypesEnum, g as SystemChangeTypesEnum, T as TemplateStatusEnum, V as VideoMediaTypesEnum, W as WabaConfigEnum, f as WebhookTypesEnum } from '../enums-CI7vzKhn.js';
6
- export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse } from './flow.js';
7
- export { HttpsClientClass, HttpsClientResponseClass, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody } from './httpsClient.js';
8
- export { LoggerInterface } from './logger.js';
9
- export { MediaClass, MediaResponse, MediasResponse, UploadMediaResponse } from './media.js';
10
- export { AudioMediaObject, AudioMessageRequestBody, ContactObject, ContactsMessageRequestBody, DocumentMediaObject, DocumentMessageRequestBody, GeneralMessageBody, ImageMediaObject, ImageMessageRequestBody, InteractiveMessageRequestBody, InteractiveObject, LocationMessageRequestBody, LocationObject, MessageRequestBody, MessageRequestParams, MessageTemplateObject, MessageTemplateRequestBody, MessagesClass, MessagesResponse, ReactionMessageRequestBody, ReactionParams, StatusObject, StatusParams, StatusRequestBody, StickerMediaObject, StickerMessageRequestBody, TextMessageParams, TextMessageRequestBody, TextObject, TypingIndicatorObject, VideoMediaObject, VideoMessageRequestBody } from './messages.js';
11
- export { AccountMode, CodeVerificationStatus, Cursors, HealthStatus, HealthStatusEntity, MessagingLimitTier, PhoneNumberClass, PhoneNumberResponse, PhoneNumbersResponse, PlatformType, QualityRating, QualityScore, RequestVerificationCodeRequest, Throughput, ThroughputLevel, TwoStepVerificationParams, VerifyCodeRequest } from './phoneNumber.js';
12
- export { CreateQrCodeRequest, QrCodeClass, QrCodeResponse, QrCodesResponse, UpdateQrCodeRequest } from './qrCode.js';
13
- export { RegistrationClass, RegistrationRequest } from './registration.js';
14
- export { GeneralHeaderInterface, GeneralRequestBody, Paging, RequesterClass, RequesterResponseInterface, ResponseData, ResponsePagination, ResponseSuccess } from './request.js';
15
- export { ComponentTypes, CopyCodeButton, FlowButton, MPMButton, OTPButton, PhoneNumberButton, QuickReplyButton, SPMButton, TemplateBody, TemplateButton, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateRequestBody, TemplateResponse, URLButton } from './template.js';
16
- export { TwoStepVerificationClass, TwoStepVerificationRequest } from './twoStepVerification.js';
17
- export { UpdateWabaSubscription, WABAClass, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaBusinessVerificationStatus, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaSubscription, WabaSubscriptions } from './waba.js';
18
- export { EventField, EventHandler, MessageHandler, MessageStatus, WebhookContact, WebhookEvent, WebhookMessage } from './webhook.js';
19
- export { WhatsAppClass, WhatsAppConfig } from './whatsapp.js';
20
- import 'http';
@@ -1,2 +0,0 @@
1
- "use strict";var x=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var tt=(N,S)=>{for(var _ in S)x(N,_,{get:S[_],enumerable:!0})},it=(N,S,_,p)=>{if(S&&typeof S=="object"||typeof S=="function")for(let a of C(S))!u.call(N,a)&&a!==_&&x(N,a,{get:()=>S[a],enumerable:!(p=n(S,a))||p.enumerable});return N};var pt=N=>it(x({},"__esModule",{value:!0}),N);var at={};tt(at,{AudioMediaTypesEnum:()=>Y,BusinessVerticalEnum:()=>J,ButtonPositionEnum:()=>T,ButtonTypesEnum:()=>w,CategoryEnum:()=>f,ComponentTypesEnum:()=>K,ConversationTypesEnum:()=>H,CurrencyCodesEnum:()=>k,DataLocalizationRegionEnum:()=>s,DocumentMediaTypesEnum:()=>L,EventField:()=>m,FlowActionEnum:()=>j,FlowCategoryEnum:()=>Q,FlowStatusEnum:()=>q,FlowTypeEnum:()=>$,HttpMethodsEnum:()=>O,ImageMediaTypesEnum:()=>h,InteractiveTypesEnum:()=>r,LanguagesEnum:()=>V,MessageStatus:()=>E,MessageTypesEnum:()=>F,ParametersTypesEnum:()=>G,ReferralSourceTypesEnum:()=>Z,RequestCodeMethodsEnum:()=>W,StatusEnum:()=>g,StickerMediaTypesEnum:()=>e,SystemChangeTypesEnum:()=>v,TemplateStatusEnum:()=>B,VideoMediaTypesEnum:()=>b,WabaAccountReviewStatus:()=>z,WabaAccountStatus:()=>c,WabaBusinessVerificationStatus:()=>y,WabaConfigEnum:()=>M,WabaHealthStatusCanSendMessage:()=>d,WebhookTypesEnum:()=>X});module.exports=pt(at);var f=(p=>(p.Authentication="AUTHENTICATION",p.Marketing="MARKETING",p.Utility="UTILITY",p))(f||{}),B=(p=>(p.Approved="APPROVED",p.Pending="PENDING",p.Rejected="REJECTED",p))(B||{}),O=(a=>(a.Get="GET",a.Post="POST",a.Put="PUT",a.Delete="DELETE",a))(O||{}),F=(A=>(A.Audio="audio",A.Contacts="contacts",A.Document="document",A.Image="image",A.Interactive="interactive",A.Location="location",A.Reaction="reaction",A.Sticker="sticker",A.Template="template",A.Text="text",A.Video="video",A.Button="button",A.Order="order",A.System="system",A.Unknown="unknown",A["*"]="*",A))(F||{}),G=(U=>(U.Currency="currency",U.DateTime="date_time",U.Document="document",U.Image="image",U.Text="text",U.Video="video",U.Payload="payload",U))(G||{}),r=(R=>(R.Button="button",R.List="list",R.Product="product",R.ProductList="product_list",R.CtaUrl="cta_url",R.LocationRequest="location_request_message",R.AddressMessage="address_message",R.Flow="flow",R))(r||{}),w=(_=>(_.QuickReply="quick_reply",_.URL="url",_))(w||{}),T=(p=>(p[p.First=0]="First",p[p.Second=1]="Second",p[p.Third=2]="Third",p))(T||{}),K=(a=>(a.Header="HEADER",a.Body="BODY",a.Button="BUTTON",a.Footer="FOOTER",a))(K||{}),M=(A=>(A.AppId="M4D_APP_ID",A.Port="WA_PORT",A.AppSecret="M4D_APP_SECRET",A.PhoneNumberId="WA_PHONE_NUMBER_ID",A.BusinessAcctId="WA_BUSINESS_ACCOUNT_ID",A.APIVersion="CLOUD_API_VERSION",A.AccessToken="CLOUD_API_ACCESS_TOKEN",A.WebhookEndpoint="WEBHOOK_ENDPOINT",A.WebhookVerificationToken="WEBHOOK_VERIFICATION_TOKEN",A.ListenerPort="LISTENER_PORT",A.MaxRetriesAfterWait="MAX_RETRIES_AFTER_WAIT",A.RequestTimeout="REQUEST_TIMEOUT",A.Debug="DEBUG",A.PrivatePem="FLOW_API_PRIVATE_PEM",A.Passphrase="FLOW_API_PASSPHRASE",A))(M||{}),H=(p=>(p.BusinessInitiated="business_initiated",p.CustomerInitiated="customer_initiated",p.ReferralConversion="referral_conversion",p))(H||{}),g=(p=>(p.Delivered="delivered",p.Read="read",p.Sent="sent",p))(g||{}),b=(_=>(_.Mp4="video/mp4",_.Threegp="video/3gp",_))(b||{}),e=(S=>(S.Webp="image/webp",S))(e||{}),h=(_=>(_.Jpeg="image/jpeg",_.Png="image/png",_))(h||{}),L=(R=>(R.Text="text/plain",R.Pdf="application/pdf",R.Ppt="application/vnd.ms-powerpoint",R.Word="application/msword",R.Excel="application/vnd.ms-excel",R.OpenDoc="application/vnd.openxmlformats-officedocument.wordprocessingml.document",R.OpenPres="application/vnd.openxmlformats-officedocument.presentationml.presentation",R.OpenSheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",R))(L||{}),Y=(o=>(o.Aac="audio/aac",o.Mp4="audio/mp4",o.Mpeg="audio/mpeg",o.Amr="audio/amr",o.Ogg="audio/ogg",o))(Y||{}),X=(D=>(D.Audio="audio",D.Button="button",D.Document="document",D.Text="text",D.Image="image",D.Interactive="interactive",D.Order="order",D.Sticker="sticker",D.System="system",D.Unknown="unknown",D.Video="video",D))(X||{}),v=(_=>(_.CustomerChangedNumber="customer_changed_number",_.CustomerIdentityChanged="customer_identity_changed",_))(v||{}),Z=(_=>(_.Ad="ad",_.Post="post",_))(Z||{}),W=(_=>(_.Sms="SMS",_.Voice="VOICE",_))(W||{}),V=(i=>(i.Afrikaans="af",i.Albanian="sq",i.Arabic="ar",i.Azerbaijani="az",i.Bengali="bn",i.Bulgarian="bg",i.Catalan="ca",i.Chinese_CHN="zh_CN",i.Chinese_HKG="zh_HK",i.Chinese_TAI="zh_TW",i.Croatian="hr",i.Czech="cs",i.Danish="da",i.Dutch="nl",i.English="en",i.English_UK="en_GB",i.English_US="en_US",i.Estonian="et",i.Filipino="fil",i.Finnish="fi",i.French="fr",i.Georgian="ka",i.German="de",i.Greek="el",i.Gujarati="gu",i.Hausa="ha",i.Hebrew="he",i.Hindi="hi",i.Hungarian="hu",i.Indonesian="id",i.Irish="ga",i.Italian="it",i.Japanese="ja",i.Kannada="kn",i.Kazakh="kk",i.Kinyarwanda="rw_RW",i.Korean="ko",i.Kyrgyz_Kyrgyzstan="ky_KG",i.Lao="lo",i.Latvian="lv",i.Lithuanian="lt",i.Macedonian="mk",i.Malay="ms",i.Malayalam="ml",i.Marathi="mr",i.Norwegian="nb",i.Persian="fa",i.Polish="pl",i.Portuguese_BR="pt_BR",i.Portuguese_POR="pt_PT",i.Punjabi="pa",i.Romanian="ro",i.Russian="ru",i.Serbian="sr",i.Slovak="sk",i.Slovenian="sl",i.Spanish="es",i.Spanish_ARG="es_AR",i.Spanish_SPA="es_ES",i.Spanish_MEX="es_MX",i.Swahili="sw",i.Swedish="sv",i.Tamil="ta",i.Telugu="te",i.Thai="th",i.Turkish="tr",i.Ukrainian="uk",i.Urdu="ur",i.Uzbek="uz",i.Vietnamese="vi",i.Zulu="zu",i))(V||{}),k=(t=>(t.AFN="AFN",t.EUR="EUR",t.ALL="ALL",t.DZD="DZD",t.USD="USD",t.AOA="AOA",t.XCD="XCD",t.ARS="ARS",t.AMD="AMD",t.AWG="AWG",t.AUD="AUD",t.AZN="AZN",t.BSD="BSD",t.BHD="BHD",t.BDT="BDT",t.BBD="BBD",t.BYN="BYN",t.BZD="BZD",t.XOF="XOF",t.BMD="BMD",t.INR="INR",t.BTN="BTN",t.BOB="BOB",t.BOV="BOV",t.BAM="BAM",t.BWP="BWP",t.NOK="NOK",t.BRL="BRL",t.BND="BND",t.BGN="BGN",t.BIF="BIF",t.CVE="CVE",t.KHR="KHR",t.XAF="XAF",t.CAD="CAD",t.KYD="KYD",t.CLP="CLP",t.CLF="CLF",t.CNY="CNY",t.COP="COP",t.COU="COU",t.KMF="KMF",t.CDF="CDF",t.NZD="NZD",t.CRC="CRC",t.HRK="HRK",t.CUP="CUP",t.CUC="CUC",t.ANG="ANG",t.CZK="CZK",t.DKK="DKK",t.DJF="DJF",t.DOP="DOP",t.EGP="EGP",t.SVC="SVC",t.ERN="ERN",t.SZL="SZL",t.ETB="ETB",t.FKP="FKP",t.FJD="FJD",t.XPF="XPF",t.GMD="GMD",t.GEL="GEL",t.GHS="GHS",t.GIP="GIP",t.GTQ="GTQ",t.GBP="GBP",t.GNF="GNF",t.GYD="GYD",t.HTG="HTG",t.HNL="HNL",t.HKD="HKD",t.HUF="HUF",t.ISK="ISK",t.IDR="IDR",t.XDR="XDR",t.IRR="IRR",t.IQD="IQD",t.ILS="ILS",t.JMD="JMD",t.JPY="JPY",t.JOD="JOD",t.KZT="KZT",t.KES="KES",t.KPW="KPW",t.KRW="KRW",t.KWD="KWD",t.KGS="KGS",t.LAK="LAK",t.LBP="LBP",t.LSL="LSL",t.ZAR="ZAR",t.LRD="LRD",t.LYD="LYD",t.CHF="CHF",t.MOP="MOP",t.MKD="MKD",t.MGA="MGA",t.MWK="MWK",t.MYR="MYR",t.MVR="MVR",t.MRU="MRU",t.MUR="MUR",t.XUA="XUA",t.MXN="MXN",t.MXV="MXV",t.MDL="MDL",t.MNT="MNT",t.MAD="MAD",t.MZN="MZN",t.MMK="MMK",t.NAD="NAD",t.NPR="NPR",t.NIO="NIO",t.NGN="NGN",t.OMR="OMR",t.PKR="PKR",t.PAB="PAB",t.PGK="PGK",t.PYG="PYG",t.PEN="PEN",t.PHP="PHP",t.PLN="PLN",t.QAR="QAR",t.RON="RON",t.RUB="RUB",t.RWF="RWF",t.SHP="SHP",t.WST="WST",t.STN="STN",t.SAR="SAR",t.RSD="RSD",t.SCR="SCR",t.SLL="SLL",t.SGD="SGD",t.XSU="XSU",t.SBD="SBD",t.SOS="SOS",t.SSP="SSP",t.LKR="LKR",t.SDG="SDG",t.SRD="SRD",t.SEK="SEK",t.CHE="CHE",t.CHW="CHW",t.SYP="SYP",t.TWD="TWD",t.TJS="TJS",t.TZS="TZS",t.THB="THB",t.TOP="TOP",t.TTD="TTD",t.TND="TND",t.TRY="TRY",t.TMT="TMT",t.UGX="UGX",t.UAH="UAH",t.AED="AED",t.USN="USN",t.UYU="UYU",t.UYI="UYI",t.UYW="UYW",t.UZS="UZS",t.VUV="VUV",t.VES="VES",t.VND="VND",t.YER="YER",t.ZMW="ZMW",t.ZWL="ZWL",t.XBA="XBA",t.XBB="XBB",t.XBC="XBC",t.XBD="XBD",t.XTS="XTS",t.XXX="XXX",t.XAU="XAU",t.XPD="XPD",t.XPT="XPT",t.XAG="XAG",t.AFA="AFA",t.FIM="FIM",t.ALK="ALK",t.ADP="ADP",t.ESP="ESP",t.FRF="FRF",t.AOK="AOK",t.AON="AON",t.AOR="AOR",t.ARA="ARA",t.ARP="ARP",t.ARY="ARY",t.RUR="RUR",t.ATS="ATS",t.AYM="AYM",t.AZM="AZM",t.BYB="BYB",t.BYR="BYR",t.BEC="BEC",t.BEF="BEF",t.BEL="BEL",t.BOP="BOP",t.BAD="BAD",t.BRB="BRB",t.BRC="BRC",t.BRE="BRE",t.BRN="BRN",t.BRR="BRR",t.BGJ="BGJ",t.BGK="BGK",t.BGL="BGL",t.BUK="BUK",t.HRD="HRD",t.CYP="CYP",t.CSJ="CSJ",t.CSK="CSK",t.ECS="ECS",t.ECV="ECV",t.GQE="GQE",t.EEK="EEK",t.XEU="XEU",t.GEK="GEK",t.DDM="DDM",t.DEM="DEM",t.GHC="GHC",t.GHP="GHP",t.GRD="GRD",t.GNE="GNE",t.GNS="GNS",t.GWE="GWE",t.GWP="GWP",t.ITL="ITL",t.ISJ="ISJ",t.IEP="IEP",t.ILP="ILP",t.ILR="ILR",t.LAJ="LAJ",t.LVL="LVL",t.LVR="LVR",t.LSM="LSM",t.ZAL="ZAL",t.LTL="LTL",t.LTT="LTT",t.LUC="LUC",t.LUF="LUF",t.LUL="LUL",t.MGF="MGF",t.MVQ="MVQ",t.MLF="MLF",t.MTL="MTL",t.MTP="MTP",t.MRO="MRO",t.MXP="MXP",t.MZE="MZE",t.MZM="MZM",t.NLG="NLG",t.NIC="NIC",t.PEH="PEH",t.PEI="PEI",t.PES="PES",t.PLZ="PLZ",t.PTE="PTE",t.ROK="ROK",t.ROL="ROL",t.STD="STD",t.CSD="CSD",t.SKK="SKK",t.SIT="SIT",t.RHD="RHD",t.ESA="ESA",t.ESB="ESB",t.SDD="SDD",t.SDP="SDP",t.SRG="SRG",t.CHC="CHC",t.TJR="TJR",t.TPE="TPE",t.TRL="TRL",t.TMM="TMM",t.UGS="UGS",t.UGW="UGW",t.UAK="UAK",t.SUR="SUR",t.USS="USS",t.UYN="UYN",t.UYP="UYP",t.VEB="VEB",t.VEF="VEF",t.VNC="VNC",t.YDD="YDD",t.YUD="YUD",t.YUM="YUM",t.YUN="YUN",t.ZRN="ZRN",t.ZRZ="ZRZ",t.ZMK="ZMK",t.ZWC="ZWC",t.ZWD="ZWD",t.ZWN="ZWN",t.ZWR="ZWR",t.XFO="XFO",t.XRE="XRE",t.XFU="XFU",t))(k||{}),s=(P=>(P.AU="AU",P.ID="ID",P.IN="IN",P.JP="JP",P.SG="SG",P.KR="KR",P.DE="DE",P.CH="CH",P.GB="GB",P.BR="BR",P.BH="BH",P.ZA="ZA",P.AE="AE",P.CA="CA",P))(s||{}),J=(l=>(l.ALCOHOL="ALCOHOL",l.APPAREL="APPAREL",l.AUTO="AUTO",l.BEAUTY="BEAUTY",l.EDU="EDU",l.ENTERTAIN="ENTERTAIN",l.EVENT_PLAN="EVENT_PLAN",l.FINANCE="FINANCE",l.GOVT="GOVT",l.GROCERY="GROCERY",l.HEALTH="HEALTH",l.HOTEL="HOTEL",l.NONPROFIT="NONPROFIT",l.ONLINE_GAMBLING="ONLINE_GAMBLING",l.OTC_DRUGS="OTC_DRUGS",l.OTHER="OTHER",l.PHYSICAL_GAMBLING="PHYSICAL_GAMBLING",l.PROF_SERVICES="PROF_SERVICES",l.RESTAURANT="RESTAURANT",l.RETAIL="RETAIL",l.TRAVEL="TRAVEL",l))(J||{});var q=(o=>(o.Draft="DRAFT",o.Published="PUBLISHED",o.Throttled="THROTTLED",o.Blocked="BLOCKED",o.Deprecated="DEPRECATED",o))(q||{}),Q=(R=>(R.SignUp="SIGN_UP",R.SignIn="SIGN_IN",R.AppointmentBooking="APPOINTMENT_BOOKING",R.LeadGeneration="LEAD_GENERATION",R.ContactUs="CONTACT_US",R.CustomerSupport="CUSTOMER_SUPPORT",R.Survey="SURVEY",R.Other="OTHER",R))(Q||{}),j=(p=>(p.INIT="INIT",p.BACK="BACK",p.DATA_EXCHANGE="data_exchange",p))(j||{}),$=(a=>(a.Ping="ping",a.Change="data_exchange",a.Error="error",a.All="*",a))($||{});var z=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))(z||{}),d=(p=>(p.Blocked="BLOCKED",p.Limited="LIMITED",p.Available="AVAILABLE",p))(d||{}),c=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))(c||{}),y=(a=>(a.Verified="verified",a.PendingSubmission="pending_submission",a.Unverified="unverified",a.Rejected="rejected",a))(y||{});var E=(p=>(p.DELIVERED="delivered",p.READ="read",p.SENT="sent",p))(E||{}),m=(I=>(I.MESSAGES="messages",I.STATUSES="statuses",I.MESSAGE_TEMPLATE_STATUS_UPDATE="message_template_status_update",I.PHONE_NUMBER_QUALITY_UPDATE="phone_number_quality_update",I.PHONE_NUMBER_NAME_UPDATE="phone_number_name_update",I.UNKNOWN="unknown",I))(m||{});0&&(module.exports={AudioMediaTypesEnum,BusinessVerticalEnum,ButtonPositionEnum,ButtonTypesEnum,CategoryEnum,ComponentTypesEnum,ConversationTypesEnum,CurrencyCodesEnum,DataLocalizationRegionEnum,DocumentMediaTypesEnum,EventField,FlowActionEnum,FlowCategoryEnum,FlowStatusEnum,FlowTypeEnum,HttpMethodsEnum,ImageMediaTypesEnum,InteractiveTypesEnum,LanguagesEnum,MessageStatus,MessageTypesEnum,ParametersTypesEnum,ReferralSourceTypesEnum,RequestCodeMethodsEnum,StatusEnum,StickerMediaTypesEnum,SystemChangeTypesEnum,TemplateStatusEnum,VideoMediaTypesEnum,WabaAccountReviewStatus,WabaAccountStatus,WabaBusinessVerificationStatus,WabaConfigEnum,WabaHealthStatusCanSendMessage,WebhookTypesEnum});
2
- //# sourceMappingURL=index.js.map