meta-cloud-api 0.2.30 → 0.2.31

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 (74) hide show
  1. package/dist/chunk-AQTZR5SI.js +2 -0
  2. package/dist/chunk-AQTZR5SI.js.map +1 -0
  3. package/dist/chunk-EYGUX4EA.js +2 -0
  4. package/dist/chunk-EYGUX4EA.js.map +1 -0
  5. package/dist/{chunk-GT3XQN7Y.js → chunk-FFOE5YKT.js} +2 -2
  6. package/dist/chunk-FFOE5YKT.js.map +1 -0
  7. package/dist/{chunk-R36L2XYO.js → chunk-XIIJD6SG.js} +2 -2
  8. package/dist/chunk-XIIJD6SG.js.map +1 -0
  9. package/dist/features/encryption/index.js +1 -1
  10. package/dist/features/flow/index.js +1 -1
  11. package/dist/features/media/index.js +1 -1
  12. package/dist/features/messages/index.js +1 -1
  13. package/dist/features/phone/index.js +1 -1
  14. package/dist/features/profile/index.js +1 -1
  15. package/dist/features/qrCode/index.js +1 -1
  16. package/dist/features/registration/index.js +1 -1
  17. package/dist/features/template/index.js +1 -1
  18. package/dist/features/twoStepVerification/index.js +1 -1
  19. package/dist/features/waba/index.js +1 -1
  20. package/dist/index.js +2 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/shared/types/config.js +1 -1
  23. package/dist/shared/types/enums.js +1 -1
  24. package/package.json +2 -1
  25. package/dist/BusinessProfileApi-Dt8jkESv.d.ts +0 -352
  26. package/dist/EncryptionApi-CwGwcpiZ.d.ts +0 -21
  27. package/dist/FlowApi-bENOxS_4.d.ts +0 -471
  28. package/dist/MediaApi-DvAoklbt.d.ts +0 -89
  29. package/dist/MessageApi-vNrieuce.d.ts +0 -591
  30. package/dist/PhoneNumberApi-DiGL3drr.d.ts +0 -141
  31. package/dist/QrCodeApi-BYUCrcp3.d.ts +0 -97
  32. package/dist/RegistrationApi-CS9TCeHz.d.ts +0 -46
  33. package/dist/TemplateApi-DfzQkRxJ.d.ts +0 -117
  34. package/dist/TwoStepVerificationApi-B2pZzlUJ.d.ts +0 -32
  35. package/dist/WabaApi-GGQLjvio.d.ts +0 -174
  36. package/dist/base-DwevK2tJ.d.ts +0 -46
  37. package/dist/chunk-A264MT4Q.js +0 -2
  38. package/dist/chunk-A264MT4Q.js.map +0 -1
  39. package/dist/chunk-GT3XQN7Y.js.map +0 -1
  40. package/dist/chunk-H55VIWDI.js +0 -2
  41. package/dist/chunk-H55VIWDI.js.map +0 -1
  42. package/dist/chunk-HEVRZRB4.js +0 -3
  43. package/dist/chunk-HEVRZRB4.js.map +0 -1
  44. package/dist/chunk-I222VSWK.js +0 -2
  45. package/dist/chunk-I222VSWK.js.map +0 -1
  46. package/dist/chunk-R36L2XYO.js.map +0 -1
  47. package/dist/chunk-SMHCU5MN.js +0 -2
  48. package/dist/chunk-SMHCU5MN.js.map +0 -1
  49. package/dist/chunk-TEJIY4ZS.js +0 -3
  50. package/dist/chunk-TEJIY4ZS.js.map +0 -1
  51. package/dist/chunk-W2U7MN7M.js +0 -2
  52. package/dist/chunk-W2U7MN7M.js.map +0 -1
  53. package/dist/core/webhook/index.d.ts +0 -820
  54. package/dist/core/webhook/index.js +0 -2
  55. package/dist/core/webhook/index.js.map +0 -1
  56. package/dist/core/whatsapp/index.d.ts +0 -100
  57. package/dist/core/whatsapp/index.js +0 -2
  58. package/dist/core/whatsapp/index.js.map +0 -1
  59. package/dist/enums-iedeomKw.d.ts +0 -688
  60. package/dist/features/encryption/index.d.ts +0 -9
  61. package/dist/features/flow/index.d.ts +0 -9
  62. package/dist/features/media/index.d.ts +0 -9
  63. package/dist/features/messages/index.d.ts +0 -9
  64. package/dist/features/phone/index.d.ts +0 -9
  65. package/dist/features/profile/index.d.ts +0 -9
  66. package/dist/features/qrCode/index.d.ts +0 -9
  67. package/dist/features/registration/index.d.ts +0 -9
  68. package/dist/features/template/index.d.ts +0 -9
  69. package/dist/features/twoStepVerification/index.d.ts +0 -9
  70. package/dist/features/waba/index.d.ts +0 -9
  71. package/dist/index.d.ts +0 -21
  72. package/dist/shared/types/config.d.ts +0 -78
  73. package/dist/shared/types/enums.d.ts +0 -1
  74. package/dist/shared/utils/isMetaError.d.ts +0 -21
@@ -1,2 +0,0 @@
1
- export{a as MessageStatus,e as WebhookHandler,f as generateXHub256Sig,d as processFlowRequest,c as processWebhookMessages,b as verifyWebhook}from'../../chunk-TEJIY4ZS.js';import'../../chunk-HEVRZRB4.js';import'../../chunk-3MO3BTBC.js';import'../../chunk-R36L2XYO.js';import'../../chunk-GT3XQN7Y.js';import'../../chunk-O2OTHNWM.js';import'../../chunk-7NQLQPLH.js';import'../../chunk-UQPD6GIF.js';import'../../chunk-5JGM556C.js';import'../../chunk-2NJVBJUN.js';import'../../chunk-XPPDOFBN.js';import'../../chunk-KFPOVYEJ.js';import'../../chunk-7GL74SXM.js';import'../../chunk-A264MT4Q.js';import'../../chunk-GIQLIMOD.js';import'../../chunk-BZ5QDXNR.js';import'../../chunk-VW3LGHTJ.js';import'../../chunk-SMHCU5MN.js';import'../../chunk-4C666HHU.js';//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,100 +0,0 @@
1
- import { M as MessagesApi } from '../../MessageApi-vNrieuce.js';
2
- import { WhatsAppConfig, WabaConfigType } from '../../shared/types/config.js';
3
- import { c as MediaApi } from '../../MediaApi-DvAoklbt.js';
4
- import { B as BusinessProfileApi } from '../../BusinessProfileApi-Dt8jkESv.js';
5
- import { E as EncryptionApi } from '../../EncryptionApi-CwGwcpiZ.js';
6
- import { F as FlowApi } from '../../FlowApi-bENOxS_4.js';
7
- import { P as PhoneNumberApi } from '../../PhoneNumberApi-DiGL3drr.js';
8
- import { R as RegistrationApi } from '../../RegistrationApi-CS9TCeHz.js';
9
- import { T as TemplateApi } from '../../TemplateApi-DfzQkRxJ.js';
10
- import { Q as QrCodeApi } from '../../QrCodeApi-BYUCrcp3.js';
11
- import { T as TwoStepVerificationApi } from '../../TwoStepVerificationApi-B2pZzlUJ.js';
12
- import { W as WabaApi } from '../../WabaApi-GGQLjvio.js';
13
- import { H as HttpMethodsEnum, l as SDKEnums } from '../../enums-iedeomKw.js';
14
- import { a as RequesterClass } from '../../base-DwevK2tJ.js';
15
- import { Agent } from 'https';
16
-
17
- type ResponseHeaderValue = string | string[] | undefined;
18
- type ResponseHeaders = Record<string, ResponseHeaderValue>;
19
- type ResponseJSONBody = Record<string, unknown>;
20
- declare class HttpsClientResponseClass {
21
- constructor(resp: Response);
22
- statusCode: () => number;
23
- headers: () => ResponseHeaders;
24
- rawResponse: () => Response;
25
- json: () => Promise<ResponseJSONBody>;
26
- }
27
- declare class HttpsClientClass {
28
- constructor();
29
- clearSockets: () => boolean;
30
- sendRequest: (host: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null) => Promise<HttpsClientResponseClass>;
31
- }
32
-
33
- declare class WhatsAppClass {
34
- constructor(config?: WhatsAppConfig);
35
- readonly messages: MessagesApi;
36
- readonly templates: TemplateApi;
37
- readonly phoneNumber: PhoneNumberApi;
38
- readonly qrCode: QrCodeApi;
39
- readonly encryption: EncryptionApi;
40
- readonly twoStepVerification: TwoStepVerificationApi;
41
- readonly registration: RegistrationApi;
42
- readonly media: MediaApi;
43
- readonly waba: WabaApi;
44
- readonly flow: FlowApi;
45
- readonly businessProfile: BusinessProfileApi;
46
- updateTimeout(ms: number): boolean;
47
- updatePhoneNumberId(phoneNumberId: number): boolean;
48
- updateAccessToken(accessToken: string): boolean;
49
- updateWabaId(wabaId: string): boolean;
50
- }
51
-
52
- declare class HttpsClient implements HttpsClientClass {
53
- agent: Agent;
54
- constructor();
55
- clearSockets(): boolean;
56
- sendRequest(hostname: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null): Promise<HttpsClientResponseClass>;
57
- }
58
-
59
- declare class Requester implements RequesterClass {
60
- client: Readonly<HttpsClient>;
61
- accessToken: Readonly<string>;
62
- phoneNumberId: Readonly<number>;
63
- businessAcctId: Readonly<string>;
64
- apiVersion: Readonly<string>;
65
- userAgent: Readonly<string>;
66
- host: Readonly<string>;
67
- protocol: Readonly<string>;
68
- constructor(apiVersion: string, phoneNumberId: number, accessToken: string, businessAcctId: string, userAgent: string);
69
- buildHeader(contentType: string, additionalHeaders?: Record<string, string>): HeadersInit;
70
- buildCAPIPath(endpoint: string): string;
71
- sendRequest(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, contentType?: string, additionalHeaders?: Record<string, string>): Promise<HttpsClientResponseClass>;
72
- getJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, additionalHeaders?: Record<string, string>): Promise<T>;
73
- sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: FormData, additionalHeaders?: Record<string, string>): Promise<T>;
74
- sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: Record<string, string>, additionalHeaders?: Record<string, string>): Promise<T>;
75
- }
76
-
77
- declare class WhatsApp implements WhatsAppClass {
78
- config: WabaConfigType;
79
- requester: Readonly<Requester>;
80
- readonly messages: MessagesApi;
81
- readonly templates: TemplateApi;
82
- readonly phoneNumber: PhoneNumberApi;
83
- readonly qrCode: QrCodeApi;
84
- readonly encryption: EncryptionApi;
85
- readonly twoStepVerification: TwoStepVerificationApi;
86
- readonly registration: RegistrationApi;
87
- readonly media: MediaApi;
88
- readonly waba: WabaApi;
89
- readonly flow: FlowApi;
90
- readonly businessProfile: BusinessProfileApi;
91
- static readonly Enums: typeof SDKEnums;
92
- constructor(config?: WhatsAppConfig);
93
- private userAgent;
94
- updateTimeout(ms: number): boolean;
95
- updatePhoneNumberId(phoneNumberId: number): boolean;
96
- updateAccessToken(accessToken: string): boolean;
97
- updateWabaId(wabaId: string): boolean;
98
- }
99
-
100
- export { WhatsApp, WhatsAppClass };
@@ -1,2 +0,0 @@
1
- export{b as WhatsApp}from'../../chunk-HEVRZRB4.js';import'../../chunk-3MO3BTBC.js';import'../../chunk-R36L2XYO.js';import'../../chunk-GT3XQN7Y.js';import'../../chunk-O2OTHNWM.js';import'../../chunk-7NQLQPLH.js';import'../../chunk-UQPD6GIF.js';import'../../chunk-5JGM556C.js';import'../../chunk-2NJVBJUN.js';import'../../chunk-XPPDOFBN.js';import'../../chunk-KFPOVYEJ.js';import'../../chunk-7GL74SXM.js';import'../../chunk-A264MT4Q.js';import'../../chunk-GIQLIMOD.js';import'../../chunk-BZ5QDXNR.js';import'../../chunk-VW3LGHTJ.js';import'../../chunk-SMHCU5MN.js';import'../../chunk-4C666HHU.js';//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}