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.
- package/dist/base.d.ts +19 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/chunk-PECeCxCb.js +15 -0
- package/dist/config.d.ts +80 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/enums.d.ts +668 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/enums.js +681 -0
- package/dist/enums.js.map +1 -0
- package/dist/httpsClient.d.ts +21 -0
- package/dist/httpsClient.d.ts.map +1 -0
- package/dist/index.d.ts +4386 -27
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3436 -1
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +11 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/request.d.ts +52 -0
- package/dist/request.d.ts.map +1 -0
- package/package.json +11 -118
- package/dist/BusinessProfileApi-C_sEOrWM.d.ts +0 -353
- package/dist/EncryptionApi-CcCfeK2b.d.ts +0 -22
- package/dist/FlowApi-DDHrFT_Q.d.ts +0 -136
- package/dist/MediaApi-CY9RVo7u.d.ts +0 -90
- package/dist/MessageApi-CX_jN8da.d.ts +0 -171
- package/dist/PhoneNumberApi-B-hY7g1M.d.ts +0 -142
- package/dist/QrCodeApi-DRICKN04.d.ts +0 -98
- package/dist/RegistrationApi-CFPzU1Vw.d.ts +0 -47
- package/dist/TemplateApi-fCIlzBtK.d.ts +0 -161
- package/dist/TwoStepVerificationApi-C0jpAKfu.d.ts +0 -33
- package/dist/WabaApi-x5PhsLT3.d.ts +0 -175
- package/dist/WebhookProcessor-DEIZ2PRU.d.ts +0 -707
- package/dist/WhatsApp-BFsBgjJO.d.ts +0 -82
- package/dist/api/encryption/index.d.ts +0 -10
- package/dist/api/encryption/index.js +0 -2
- package/dist/api/encryption/index.js.map +0 -1
- package/dist/api/flow/index.d.ts +0 -11
- package/dist/api/flow/index.js +0 -2
- package/dist/api/flow/index.js.map +0 -1
- package/dist/api/index.d.ts +0 -18
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +0 -1
- package/dist/api/media/index.d.ts +0 -10
- package/dist/api/media/index.js +0 -2
- package/dist/api/media/index.js.map +0 -1
- package/dist/api/messages/builders/index.d.ts +0 -536
- package/dist/api/messages/builders/index.js +0 -4
- package/dist/api/messages/builders/index.js.map +0 -1
- package/dist/api/messages/index.d.ts +0 -10
- package/dist/api/messages/index.js +0 -2
- package/dist/api/messages/index.js.map +0 -1
- package/dist/api/phone/index.d.ts +0 -10
- package/dist/api/phone/index.js +0 -2
- package/dist/api/phone/index.js.map +0 -1
- package/dist/api/profile/index.d.ts +0 -10
- package/dist/api/profile/index.js +0 -2
- package/dist/api/profile/index.js.map +0 -1
- package/dist/api/qrCode/index.d.ts +0 -10
- package/dist/api/qrCode/index.js +0 -2
- package/dist/api/qrCode/index.js.map +0 -1
- package/dist/api/registration/index.d.ts +0 -10
- package/dist/api/registration/index.js +0 -2
- package/dist/api/registration/index.js.map +0 -1
- package/dist/api/template/index.d.ts +0 -21
- package/dist/api/template/index.js +0 -2
- package/dist/api/template/index.js.map +0 -1
- package/dist/api/twoStepVerification/index.d.ts +0 -10
- package/dist/api/twoStepVerification/index.js +0 -2
- package/dist/api/twoStepVerification/index.js.map +0 -1
- package/dist/api/waba/index.d.ts +0 -10
- package/dist/api/waba/index.js +0 -2
- package/dist/api/waba/index.js.map +0 -1
- package/dist/base-BV6DyzGS.d.ts +0 -18
- package/dist/chunk-5577QQ7V.js +0 -2
- package/dist/chunk-5577QQ7V.js.map +0 -1
- package/dist/chunk-6DFC5L3X.js +0 -2
- package/dist/chunk-6DFC5L3X.js.map +0 -1
- package/dist/chunk-7QBIZCJ4.js +0 -2
- package/dist/chunk-7QBIZCJ4.js.map +0 -1
- package/dist/chunk-AMHQGG6Z.js +0 -2
- package/dist/chunk-AMHQGG6Z.js.map +0 -1
- package/dist/chunk-BAOZ4U74.js +0 -10
- package/dist/chunk-BAOZ4U74.js.map +0 -1
- package/dist/chunk-CRZ7EUYR.js +0 -2
- package/dist/chunk-CRZ7EUYR.js.map +0 -1
- package/dist/chunk-FKXSL2JK.js +0 -3
- package/dist/chunk-FKXSL2JK.js.map +0 -1
- package/dist/chunk-FSKBLPGE.js +0 -2
- package/dist/chunk-FSKBLPGE.js.map +0 -1
- package/dist/chunk-GM63NGNV.js +0 -2
- package/dist/chunk-GM63NGNV.js.map +0 -1
- package/dist/chunk-IYSR44P6.js +0 -2
- package/dist/chunk-IYSR44P6.js.map +0 -1
- package/dist/chunk-J2JPTKU6.js +0 -2
- package/dist/chunk-J2JPTKU6.js.map +0 -1
- package/dist/chunk-JC6YMVID.js +0 -2
- package/dist/chunk-JC6YMVID.js.map +0 -1
- package/dist/chunk-JPAV644F.js +0 -2
- package/dist/chunk-JPAV644F.js.map +0 -1
- package/dist/chunk-JXCLRKQ7.js +0 -2
- package/dist/chunk-JXCLRKQ7.js.map +0 -1
- package/dist/chunk-KMAH6636.js +0 -2
- package/dist/chunk-KMAH6636.js.map +0 -1
- package/dist/chunk-L4ESAO2S.js +0 -2
- package/dist/chunk-L4ESAO2S.js.map +0 -1
- package/dist/chunk-LV3TULSI.js +0 -2
- package/dist/chunk-LV3TULSI.js.map +0 -1
- package/dist/chunk-MJEG3K4V.js +0 -2
- package/dist/chunk-MJEG3K4V.js.map +0 -1
- package/dist/chunk-PHPQ5HP3.js +0 -2
- package/dist/chunk-PHPQ5HP3.js.map +0 -1
- package/dist/chunk-RIL6QABY.js +0 -2
- package/dist/chunk-RIL6QABY.js.map +0 -1
- package/dist/chunk-RWCVPWRC.js +0 -2
- package/dist/chunk-RWCVPWRC.js.map +0 -1
- package/dist/chunk-SNNRWNGZ.js +0 -2
- package/dist/chunk-SNNRWNGZ.js.map +0 -1
- package/dist/chunk-U5FBZ6UB.js +0 -3
- package/dist/chunk-U5FBZ6UB.js.map +0 -1
- package/dist/chunk-VHAODWCN.js +0 -2
- package/dist/chunk-VHAODWCN.js.map +0 -1
- package/dist/chunk-ZMNXRMWK.js +0 -2
- package/dist/chunk-ZMNXRMWK.js.map +0 -1
- package/dist/common-B8kp4RdL.d.ts +0 -403
- package/dist/common-CGbls9Y8.d.ts +0 -425
- package/dist/core/webhook/frameworks/express.d.ts +0 -53
- package/dist/core/webhook/frameworks/express.js +0 -2
- package/dist/core/webhook/frameworks/express.js.map +0 -1
- package/dist/core/webhook/frameworks/nextjs-app.d.ts +0 -48
- package/dist/core/webhook/frameworks/nextjs-app.js +0 -2
- package/dist/core/webhook/frameworks/nextjs-app.js.map +0 -1
- package/dist/core/webhook/frameworks/nextjs.d.ts +0 -49
- package/dist/core/webhook/frameworks/nextjs.js +0 -2
- package/dist/core/webhook/frameworks/nextjs.js.map +0 -1
- package/dist/core/webhook/index.d.ts +0 -29
- 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 -42
- package/dist/core/whatsapp/index.js +0 -2
- package/dist/core/whatsapp/index.js.map +0 -1
- package/dist/enums-DIimUG6s.d.ts +0 -707
- package/dist/factory-kNha6WaY.d.ts +0 -200
- package/dist/handler-DbySwF0E.d.ts +0 -20
- package/dist/httpsClient-Cbd2Y6mg.d.ts +0 -19
- package/dist/isMetaError-CQLXyEL4.d.ts +0 -63
- package/dist/logger-BdE0Vyim.d.ts +0 -9
- package/dist/request-CUjrMn8R.d.ts +0 -50
- package/dist/types/config.d.ts +0 -78
- package/dist/types/config.js +0 -2
- package/dist/types/config.js.map +0 -1
- package/dist/types/enums.d.ts +0 -1
- package/dist/types/enums.js +0 -2
- package/dist/types/enums.js.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/utils/index.d.ts +0 -40
- package/dist/utils/index.js +0 -2
- package/dist/utils/index.js.map +0 -1
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { WabaConfigType, WhatsAppConfig } from './types/config.js';
|
|
2
|
-
import { H as HttpMethodsEnum, l as SDKEnums } from './enums-DIimUG6s.js';
|
|
3
|
-
import { e as RequesterClass } from './request-CUjrMn8R.js';
|
|
4
|
-
import { H as HttpsClientClass, a as HttpsClientResponseClass } from './httpsClient-Cbd2Y6mg.js';
|
|
5
|
-
import { Agent } from 'https';
|
|
6
|
-
import { E as EncryptionApi } from './EncryptionApi-CcCfeK2b.js';
|
|
7
|
-
import { F as FlowApi } from './FlowApi-DDHrFT_Q.js';
|
|
8
|
-
import { M as MediaApi } from './MediaApi-CY9RVo7u.js';
|
|
9
|
-
import { M as MessagesApi } from './MessageApi-CX_jN8da.js';
|
|
10
|
-
import { P as PhoneNumberApi } from './PhoneNumberApi-B-hY7g1M.js';
|
|
11
|
-
import { B as BusinessProfileApi } from './BusinessProfileApi-C_sEOrWM.js';
|
|
12
|
-
import { Q as QrCodeApi } from './QrCodeApi-DRICKN04.js';
|
|
13
|
-
import { R as RegistrationApi } from './RegistrationApi-CFPzU1Vw.js';
|
|
14
|
-
import { T as TemplateApi } from './TemplateApi-fCIlzBtK.js';
|
|
15
|
-
import { T as TwoStepVerificationApi } from './TwoStepVerificationApi-C0jpAKfu.js';
|
|
16
|
-
import { W as WabaApi } from './WabaApi-x5PhsLT3.js';
|
|
17
|
-
|
|
18
|
-
declare class HttpsClient implements HttpsClientClass {
|
|
19
|
-
agent: Agent;
|
|
20
|
-
constructor();
|
|
21
|
-
clearSockets(): boolean;
|
|
22
|
-
sendRequest(hostname: string, path: string, method: HttpMethodsEnum, headers: HeadersInit, timeout: number, body?: BodyInit | null): Promise<HttpsClientResponseClass>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare class Requester implements RequesterClass {
|
|
26
|
-
client: Readonly<HttpsClient>;
|
|
27
|
-
accessToken: Readonly<string>;
|
|
28
|
-
phoneNumberId: Readonly<number>;
|
|
29
|
-
businessAcctId: Readonly<string>;
|
|
30
|
-
apiVersion: Readonly<string>;
|
|
31
|
-
userAgent: Readonly<string>;
|
|
32
|
-
host: Readonly<string>;
|
|
33
|
-
protocol: Readonly<string>;
|
|
34
|
-
constructor(apiVersion: string, phoneNumberId: number, accessToken: string, businessAcctId: string, userAgent: string);
|
|
35
|
-
buildHeader(contentType: string, additionalHeaders?: Record<string, string>): HeadersInit;
|
|
36
|
-
buildCAPIPath(endpoint: string): string;
|
|
37
|
-
sendRequest(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, contentType?: string, additionalHeaders?: Record<string, string>): Promise<HttpsClientResponseClass>;
|
|
38
|
-
getJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
39
|
-
sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: FormData, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
40
|
-
sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: Record<string, string>, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* WhatsApp SDK Main Class following official patterns
|
|
45
|
-
* Provides unified access to WhatsApp Cloud API and Flows API
|
|
46
|
-
*/
|
|
47
|
-
declare class WhatsApp {
|
|
48
|
-
config: WabaConfigType;
|
|
49
|
-
requester: Readonly<Requester>;
|
|
50
|
-
messages: MessagesApi;
|
|
51
|
-
media: MediaApi;
|
|
52
|
-
phoneNumbers: PhoneNumberApi;
|
|
53
|
-
twoStepVerification: TwoStepVerificationApi;
|
|
54
|
-
flows: FlowApi;
|
|
55
|
-
businessProfile: BusinessProfileApi;
|
|
56
|
-
templates: TemplateApi;
|
|
57
|
-
encryption: EncryptionApi;
|
|
58
|
-
qrCode: QrCodeApi;
|
|
59
|
-
registration: RegistrationApi;
|
|
60
|
-
waba: WabaApi;
|
|
61
|
-
constructor(config?: WhatsAppConfig);
|
|
62
|
-
/**
|
|
63
|
-
* Runtime configuration updates following official patterns
|
|
64
|
-
*/
|
|
65
|
-
updateTimeout(timeout: number): void;
|
|
66
|
-
updateSenderNumberId(phoneNumberId: number): void;
|
|
67
|
-
updateAccessToken(accessToken: string): void;
|
|
68
|
-
/**
|
|
69
|
-
* Get SDK version
|
|
70
|
-
*/
|
|
71
|
-
version(): string;
|
|
72
|
-
/**
|
|
73
|
-
* Static enums access
|
|
74
|
-
*/
|
|
75
|
-
static get Enums(): typeof SDKEnums;
|
|
76
|
-
/**
|
|
77
|
-
* Get User-Agent string
|
|
78
|
-
*/
|
|
79
|
-
getUserAgent(): string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export { WhatsApp as W };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { E as EncryptionApi } from '../../EncryptionApi-CcCfeK2b.js';
|
|
2
|
-
export { b as EncryptionClass, a as EncryptionPublicKeyResponse } from '../../EncryptionApi-CcCfeK2b.js';
|
|
3
|
-
import '../../base-BV6DyzGS.js';
|
|
4
|
-
import '../../types/config.js';
|
|
5
|
-
import '../../enums-DIimUG6s.js';
|
|
6
|
-
import '../../request-CUjrMn8R.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { EncryptionApi, EncryptionApi as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/api/flow/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { F as FlowApi } from '../../FlowApi-DDHrFT_Q.js';
|
|
2
|
-
export { D as CreateFlowResponse, d as Flow, a as FlowActionEnum, f as FlowAssetsResponse, b as FlowCategoryEnum, g as FlowClass, l as FlowEndpointRequest, m as FlowEndpointResponse, u as FlowMigrationResponse, w as FlowPreviewResponse, c as FlowStatusEnum, z as FlowType, F as FlowTypeEnum, A as FlowValidationError, x as FlowsListResponse, U as UpdateFlowResponse, V as ValidateFlowJsonResponse } from '../../common-B8kp4RdL.js';
|
|
3
|
-
import '../../base-BV6DyzGS.js';
|
|
4
|
-
import '../../types/config.js';
|
|
5
|
-
import '../../enums-DIimUG6s.js';
|
|
6
|
-
import '../../request-CUjrMn8R.js';
|
|
7
|
-
import 'http';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { FlowApi, FlowApi as default };
|
package/dist/api/flow/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { E as EncryptionApi, b as EncryptionClass, a as EncryptionPublicKeyResponse } from '../EncryptionApi-CcCfeK2b.js';
|
|
2
|
-
export { F as FlowApi } from '../FlowApi-DDHrFT_Q.js';
|
|
3
|
-
export { D as CreateFlowResponse, d as Flow, a as FlowActionEnum, f as FlowAssetsResponse, b as FlowCategoryEnum, g as FlowClass, l as FlowEndpointRequest, m as FlowEndpointResponse, u as FlowMigrationResponse, w as FlowPreviewResponse, c as FlowStatusEnum, z as FlowType, F as FlowTypeEnum, A as FlowValidationError, x as FlowsListResponse, U as UpdateFlowResponse, V as ValidateFlowJsonResponse } from '../common-B8kp4RdL.js';
|
|
4
|
-
export { M as MediaApi, a as MediaClass, b as MediaResponse, c as MediasResponse, U as UploadMediaResponse } from '../MediaApi-CY9RVo7u.js';
|
|
5
|
-
export { M as MessagesApi } from '../MessageApi-CX_jN8da.js';
|
|
6
|
-
export { A as AudioMediaObject, C as ContactObject, D as DocumentMediaObject, I as ImageMediaObject, f as InteractiveObject, L as LocationObject, a as MessageRequestParams, g as MessageTemplateObject, c as MessagesResponse, R as ReactionParams, S as StatusParams, e as StickerMediaObject, T as TextMessageParams, d as TextObject, V as VideoMediaObject } from '../common-CGbls9Y8.js';
|
|
7
|
-
export { A as AccountMode, C as CodeVerificationStatus, a as Cursors, H as HealthStatus, b as HealthStatusEntity, M as MessagingLimitTier, P as PhoneNumberApi, c as PhoneNumberClass, d as PhoneNumberResponse, e as PhoneNumbersResponse, f as PlatformType, Q as QualityRating, g as QualityScore, R as RequestVerificationCodeRequest, T as Throughput, h as ThroughputLevel, i as TwoStepVerificationParams, V as VerifyCodeRequest } from '../PhoneNumberApi-B-hY7g1M.js';
|
|
8
|
-
export { B as BusinessProfileApi, e as BusinessProfileClass, a as BusinessProfileData, c as BusinessProfileField, d as BusinessProfileFieldsParam, b as BusinessProfileResponse, C as CreateUploadSessionParams, G as GetUploadHandleParams, U as UpdateBusinessProfileRequest, f as UploadBusinessProfileResponse, g as UploadHandle, h as UploadMediaParams, i as UploadSession, j as UploadSessionResponse } from '../BusinessProfileApi-C_sEOrWM.js';
|
|
9
|
-
export { C as CreateQrCodeRequest, Q as QrCodeApi, a as QrCodeClass, b as QrCodeResponse, c as QrCodesResponse, U as UpdateQrCodeRequest } from '../QrCodeApi-DRICKN04.js';
|
|
10
|
-
export { R as RegistrationApi, a as RegistrationClass, b as RegistrationRequest } from '../RegistrationApi-CFPzU1Vw.js';
|
|
11
|
-
export { T as TemplateApi, i as TemplateClass, j as TemplateDeleteParams, m as TemplateGetParams, q as TemplateRequestBody, r as TemplateResponse } from '../TemplateApi-fCIlzBtK.js';
|
|
12
|
-
export { T as TwoStepVerificationApi, a as TwoStepVerificationClass, b as TwoStepVerificationRequest } from '../TwoStepVerificationApi-C0jpAKfu.js';
|
|
13
|
-
export { U as UpdateWabaSubscription, b as WABAClass, a as WabaAccount, W as WabaApi, i as WabaSubscriptions } from '../WabaApi-x5PhsLT3.js';
|
|
14
|
-
import '../base-BV6DyzGS.js';
|
|
15
|
-
import '../types/config.js';
|
|
16
|
-
import '../enums-DIimUG6s.js';
|
|
17
|
-
import '../request-CUjrMn8R.js';
|
|
18
|
-
import 'http';
|
package/dist/api/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import'../chunk-AMHQGG6Z.js';export{a as TemplateApi}from'../chunk-VHAODWCN.js';export{b as QrCodeApi}from'../chunk-JPAV644F.js';export{b as RegistrationApi}from'../chunk-PHPQ5HP3.js';export{b as EncryptionApi}from'../chunk-IYSR44P6.js';export{b as TwoStepVerificationApi}from'../chunk-SNNRWNGZ.js';export{b as WabaApi}from'../chunk-L4ESAO2S.js';export{b as MessagesApi}from'../chunk-7QBIZCJ4.js';export{b as MediaApi}from'../chunk-JXCLRKQ7.js';export{b as BusinessProfileApi}from'../chunk-LV3TULSI.js';import'../chunk-CRZ7EUYR.js';export{b as FlowApi}from'../chunk-JC6YMVID.js';import'../chunk-J2JPTKU6.js';export{b as PhoneNumberApi}from'../chunk-FSKBLPGE.js';import'../chunk-MJEG3K4V.js';import'../chunk-RIL6QABY.js';import'../chunk-KMAH6636.js';//# sourceMappingURL=index.js.map
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/api/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { M as MediaApi } from '../../MediaApi-CY9RVo7u.js';
|
|
2
|
-
export { a as MediaClass, b as MediaResponse, c as MediasResponse, U as UploadMediaResponse } from '../../MediaApi-CY9RVo7u.js';
|
|
3
|
-
import '../../base-BV6DyzGS.js';
|
|
4
|
-
import '../../types/config.js';
|
|
5
|
-
import '../../enums-DIimUG6s.js';
|
|
6
|
-
import '../../request-CUjrMn8R.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { MediaApi, MediaApi as default };
|
package/dist/api/media/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|