meta-cloud-api 0.2.30 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BusinessProfileApi-Dt8jkESv.d.ts → BusinessProfileApi-DDkv2WQK.d.ts} +2 -2
- package/dist/{EncryptionApi-CwGwcpiZ.d.ts → EncryptionApi-CwxQlC-2.d.ts} +1 -1
- package/dist/{FlowApi-bENOxS_4.d.ts → FlowApi-C5-2BGAw.d.ts} +38 -2
- package/dist/{MediaApi-DvAoklbt.d.ts → MediaApi-VqxndaBJ.d.ts} +2 -2
- package/dist/{MessageApi-vNrieuce.d.ts → MessageApi-CHc6bn3g.d.ts} +2 -2
- package/dist/{PhoneNumberApi-DiGL3drr.d.ts → PhoneNumberApi-C-bs6YAe.d.ts} +1 -1
- package/dist/{QrCodeApi-BYUCrcp3.d.ts → QrCodeApi-BjlyPUXV.d.ts} +1 -1
- package/dist/{RegistrationApi-CS9TCeHz.d.ts → RegistrationApi-D7Bg8BUz.d.ts} +2 -2
- package/dist/{TemplateApi-DfzQkRxJ.d.ts → TemplateApi-dmZbvMkO.d.ts} +2 -2
- package/dist/{TwoStepVerificationApi-B2pZzlUJ.d.ts → TwoStepVerificationApi-DaYWPjY_.d.ts} +1 -1
- package/dist/{WabaApi-GGQLjvio.d.ts → WabaApi-CMoTCWiH.d.ts} +1 -1
- package/dist/{base-DwevK2tJ.d.ts → base-BG2gtoDs.d.ts} +2 -2
- package/dist/chunk-AQTZR5SI.js +2 -0
- package/dist/chunk-AQTZR5SI.js.map +1 -0
- package/dist/chunk-EYGUX4EA.js +2 -0
- package/dist/chunk-EYGUX4EA.js.map +1 -0
- package/dist/{chunk-GT3XQN7Y.js → chunk-FFOE5YKT.js} +2 -2
- package/dist/chunk-FFOE5YKT.js.map +1 -0
- package/dist/{chunk-R36L2XYO.js → chunk-XIIJD6SG.js} +2 -2
- package/dist/chunk-XIIJD6SG.js.map +1 -0
- package/dist/{enums-iedeomKw.d.ts → enums-Z1f7QuVx.d.ts} +1 -2
- package/dist/features/encryption/index.d.ts +4 -4
- package/dist/features/encryption/index.js +1 -1
- package/dist/features/flow/index.d.ts +4 -4
- package/dist/features/flow/index.js +1 -1
- package/dist/features/media/index.d.ts +4 -4
- package/dist/features/media/index.js +1 -1
- package/dist/features/messages/index.d.ts +4 -4
- package/dist/features/messages/index.js +1 -1
- package/dist/features/phone/index.d.ts +4 -4
- package/dist/features/phone/index.js +1 -1
- package/dist/features/profile/index.d.ts +4 -4
- package/dist/features/profile/index.js +1 -1
- package/dist/features/qrCode/index.d.ts +4 -4
- package/dist/features/qrCode/index.js +1 -1
- package/dist/features/registration/index.d.ts +4 -4
- package/dist/features/registration/index.js +1 -1
- package/dist/features/template/index.d.ts +4 -4
- package/dist/features/template/index.js +1 -1
- package/dist/features/twoStepVerification/index.d.ts +4 -4
- package/dist/features/twoStepVerification/index.js +1 -1
- package/dist/features/waba/index.d.ts +4 -4
- package/dist/features/waba/index.js +1 -1
- package/dist/index.d.ts +719 -21
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/types/config.d.ts +1 -1
- package/dist/shared/types/config.js +1 -1
- package/dist/shared/types/enums.d.ts +1 -1
- package/dist/shared/types/enums.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-A264MT4Q.js +0 -2
- package/dist/chunk-A264MT4Q.js.map +0 -1
- package/dist/chunk-GT3XQN7Y.js.map +0 -1
- package/dist/chunk-H55VIWDI.js +0 -2
- package/dist/chunk-H55VIWDI.js.map +0 -1
- package/dist/chunk-HEVRZRB4.js +0 -3
- package/dist/chunk-HEVRZRB4.js.map +0 -1
- package/dist/chunk-I222VSWK.js +0 -2
- package/dist/chunk-I222VSWK.js.map +0 -1
- package/dist/chunk-R36L2XYO.js.map +0 -1
- package/dist/chunk-SMHCU5MN.js +0 -2
- package/dist/chunk-SMHCU5MN.js.map +0 -1
- package/dist/chunk-TEJIY4ZS.js +0 -3
- package/dist/chunk-TEJIY4ZS.js.map +0 -1
- package/dist/chunk-W2U7MN7M.js +0 -2
- package/dist/chunk-W2U7MN7M.js.map +0 -1
- package/dist/core/webhook/index.d.ts +0 -820
- package/dist/core/webhook/index.js +0 -2
- package/dist/core/webhook/index.js.map +0 -1
- package/dist/core/whatsapp/index.d.ts +0 -100
- package/dist/core/whatsapp/index.js +0 -2
- package/dist/core/whatsapp/index.js.map +0 -1
|
@@ -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"}
|