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.
- 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/features/encryption/index.js +1 -1
- package/dist/features/flow/index.js +1 -1
- package/dist/features/media/index.js +1 -1
- package/dist/features/messages/index.js +1 -1
- package/dist/features/phone/index.js +1 -1
- package/dist/features/profile/index.js +1 -1
- package/dist/features/qrCode/index.js +1 -1
- package/dist/features/registration/index.js +1 -1
- package/dist/features/template/index.js +1 -1
- package/dist/features/twoStepVerification/index.js +1 -1
- package/dist/features/waba/index.js +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/types/config.js +1 -1
- package/dist/shared/types/enums.js +1 -1
- package/package.json +2 -1
- package/dist/BusinessProfileApi-Dt8jkESv.d.ts +0 -352
- package/dist/EncryptionApi-CwGwcpiZ.d.ts +0 -21
- package/dist/FlowApi-bENOxS_4.d.ts +0 -471
- package/dist/MediaApi-DvAoklbt.d.ts +0 -89
- package/dist/MessageApi-vNrieuce.d.ts +0 -591
- package/dist/PhoneNumberApi-DiGL3drr.d.ts +0 -141
- package/dist/QrCodeApi-BYUCrcp3.d.ts +0 -97
- package/dist/RegistrationApi-CS9TCeHz.d.ts +0 -46
- package/dist/TemplateApi-DfzQkRxJ.d.ts +0 -117
- package/dist/TwoStepVerificationApi-B2pZzlUJ.d.ts +0 -32
- package/dist/WabaApi-GGQLjvio.d.ts +0 -174
- package/dist/base-DwevK2tJ.d.ts +0 -46
- 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
- package/dist/enums-iedeomKw.d.ts +0 -688
- package/dist/features/encryption/index.d.ts +0 -9
- package/dist/features/flow/index.d.ts +0 -9
- package/dist/features/media/index.d.ts +0 -9
- package/dist/features/messages/index.d.ts +0 -9
- package/dist/features/phone/index.d.ts +0 -9
- package/dist/features/profile/index.d.ts +0 -9
- package/dist/features/qrCode/index.d.ts +0 -9
- package/dist/features/registration/index.d.ts +0 -9
- package/dist/features/template/index.d.ts +0 -9
- package/dist/features/twoStepVerification/index.d.ts +0 -9
- package/dist/features/waba/index.d.ts +0 -9
- package/dist/index.d.ts +0 -21
- package/dist/shared/types/config.d.ts +0 -78
- package/dist/shared/types/enums.d.ts +0 -1
- package/dist/shared/utils/isMetaError.d.ts +0 -21
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { c as MediaApi } from '../../MediaApi-DvAoklbt.js';
|
|
2
|
-
export { M as MediaClass, a as MediaResponse, b as MediasResponse, U as UploadMediaResponse } from '../../MediaApi-DvAoklbt.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { MediaApi, MediaApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { M as MessagesApi } from '../../MessageApi-vNrieuce.js';
|
|
2
|
-
export { A as AudioMediaObject, C as ContactObject, D as DocumentMediaObject, I as ImageMediaObject, a as InteractiveObject, L as LocationObject, b as MessageRequestParams, d as MessageTemplateObject, c as MessagesResponse, R as ReactionParams, S as StatusParams, e as StickerMediaObject, T as TextMessageParams, f as TextObject, V as VideoMediaObject } from '../../MessageApi-vNrieuce.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { MessagesApi as MessageApi, MessagesApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { P as PhoneNumberApi } from '../../PhoneNumberApi-DiGL3drr.js';
|
|
2
|
-
export { A as AccountMode, C as CodeVerificationStatus, c as Cursors, H as HealthStatus, d as HealthStatusEntity, M as MessagingLimitTier, a as PhoneNumberClass, b 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-DiGL3drr.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { PhoneNumberApi, PhoneNumberApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { B as BusinessProfileApi } from '../../BusinessProfileApi-Dt8jkESv.js';
|
|
2
|
-
export { a as BusinessProfileClass, c as BusinessProfileData, d as BusinessProfileField, e 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-Dt8jkESv.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { BusinessProfileApi, BusinessProfileApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Q as QrCodeApi } from '../../QrCodeApi-BYUCrcp3.js';
|
|
2
|
-
export { C as CreateQrCodeRequest, a as QrCodeClass, b as QrCodeResponse, c as QrCodesResponse, U as UpdateQrCodeRequest } from '../../QrCodeApi-BYUCrcp3.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { QrCodeApi, QrCodeApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { R as RegistrationApi } from '../../RegistrationApi-CS9TCeHz.js';
|
|
2
|
-
export { a as RegistrationClass, b as RegistrationRequest } from '../../RegistrationApi-CS9TCeHz.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { RegistrationApi, RegistrationApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { T as TemplateApi } from '../../TemplateApi-DfzQkRxJ.js';
|
|
2
|
-
export { a as TemplateClass, c as TemplateDeleteParams, d as TemplateGetParams, e as TemplateRequestBody, b as TemplateResponse } from '../../TemplateApi-DfzQkRxJ.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { TemplateApi, TemplateApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { T as TwoStepVerificationApi } from '../../TwoStepVerificationApi-B2pZzlUJ.js';
|
|
2
|
-
export { a as TwoStepVerificationClass, b as TwoStepVerificationRequest } from '../../TwoStepVerificationApi-B2pZzlUJ.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { TwoStepVerificationApi, TwoStepVerificationApi as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { W as WabaApi } from '../../WabaApi-GGQLjvio.js';
|
|
2
|
-
export { U as UpdateWabaSubscription, b as WABAClass, a as WabaAccount, c as WabaSubscriptions } from '../../WabaApi-GGQLjvio.js';
|
|
3
|
-
import '../../base-DwevK2tJ.js';
|
|
4
|
-
import '../../shared/types/config.js';
|
|
5
|
-
import '../../enums-iedeomKw.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { WabaApi, WabaApi as default };
|
package/dist/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { AudioMessage, BaseMessage, ButtonMessage, ContactsMessage, DocumentMessage, FlowHandler, ImageMessage, InteractiveMessage, LocationMessage, MessageHandler, MessageStatus, OrderMessage, ReactionMessage, StickerMessage, SystemMessage, TextMessage, VideoMessage, WebhookContact, WebhookEvent, WebhookHandler, WebhookMessage, WebhookMessageValue, WebhookRequest, WebhookResponse, WhatsAppMessage, generateXHub256Sig, processFlowRequest, processWebhookMessages, verifyWebhook } from './core/webhook/index.js';
|
|
2
|
-
export { A as AudioMediaObject, C as ContactObject, D as DocumentMediaObject, I as ImageMediaObject, a as InteractiveObject, L as LocationObject, b as MessageRequestParams, d as MessageTemplateObject, M as MessagesApi, c as MessagesResponse, R as ReactionParams, S as StatusParams, e as StickerMediaObject, T as TextMessageParams, f as TextObject, V as VideoMediaObject } from './MessageApi-vNrieuce.js';
|
|
3
|
-
export { WabaConfigType, WhatsAppConfig } from './shared/types/config.js';
|
|
4
|
-
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-iedeomKw.js';
|
|
5
|
-
export { M as MediaClass, a as MediaResponse, b as MediasResponse, U as UploadMediaResponse } from './MediaApi-DvAoklbt.js';
|
|
6
|
-
export { B as BusinessProfileApi, a as BusinessProfileClass, b as BusinessProfileResponse } from './BusinessProfileApi-Dt8jkESv.js';
|
|
7
|
-
export { E as EncryptionApi } from './EncryptionApi-CwGwcpiZ.js';
|
|
8
|
-
export { a as Flow, F as FlowApi, b as FlowClass, c as FlowEndpointRequest, d as FlowEndpointResponse } from './FlowApi-bENOxS_4.js';
|
|
9
|
-
export { P as PhoneNumberApi, a as PhoneNumberClass, b as PhoneNumberResponse } from './PhoneNumberApi-DiGL3drr.js';
|
|
10
|
-
export { R as RegistrationApi, a as RegistrationClass } from './RegistrationApi-CS9TCeHz.js';
|
|
11
|
-
export { T as TemplateApi, a as TemplateClass, b as TemplateResponse } from './TemplateApi-DfzQkRxJ.js';
|
|
12
|
-
export { Q as QrCodeApi, a as QrCodeClass, b as QrCodeResponse } from './QrCodeApi-BYUCrcp3.js';
|
|
13
|
-
export { T as TwoStepVerificationApi } from './TwoStepVerificationApi-B2pZzlUJ.js';
|
|
14
|
-
export { b as WABAClass, a as WabaAccount, W as WabaApi } from './WabaApi-GGQLjvio.js';
|
|
15
|
-
import { WhatsApp } from './core/whatsapp/index.js';
|
|
16
|
-
import './base-DwevK2tJ.js';
|
|
17
|
-
import 'https';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export { WhatsApp as default };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { W as WabaConfigEnum } from '../../enums-iedeomKw.js';
|
|
2
|
-
|
|
3
|
-
type WhatsAppConfig = {
|
|
4
|
-
accessToken: string;
|
|
5
|
-
appId?: string;
|
|
6
|
-
appSecret?: string;
|
|
7
|
-
phoneNumberId?: number;
|
|
8
|
-
businessAcctId?: string;
|
|
9
|
-
apiVersion?: string;
|
|
10
|
-
webhookEndpoint?: string;
|
|
11
|
-
webhookVerificationToken?: string;
|
|
12
|
-
listenerPort?: number;
|
|
13
|
-
debug?: boolean;
|
|
14
|
-
maxRetriesAfterWait?: number;
|
|
15
|
-
requestTimeout?: number;
|
|
16
|
-
privatePem?: string;
|
|
17
|
-
passphrase?: string;
|
|
18
|
-
};
|
|
19
|
-
type WabaConfigType = {
|
|
20
|
-
/**
|
|
21
|
-
* The Meta for Developers business application Id for this registered application.
|
|
22
|
-
*/
|
|
23
|
-
[WabaConfigEnum.AppId]: string;
|
|
24
|
-
/**
|
|
25
|
-
* The Meta for Developers business application secret for this registered application.
|
|
26
|
-
*/
|
|
27
|
-
[WabaConfigEnum.AppSecret]: string;
|
|
28
|
-
/**
|
|
29
|
-
* The Meta for Developers phone number id used by the registered business.
|
|
30
|
-
*/
|
|
31
|
-
[WabaConfigEnum.PhoneNumberId]: number;
|
|
32
|
-
/**
|
|
33
|
-
* The Meta for Developers business id for the registered business.
|
|
34
|
-
*/
|
|
35
|
-
[WabaConfigEnum.BusinessAcctId]: string;
|
|
36
|
-
/**
|
|
37
|
-
* The version of the Cloud API being used. Starts with a "v" and follows the major number.
|
|
38
|
-
*/
|
|
39
|
-
[WabaConfigEnum.APIVersion]: string;
|
|
40
|
-
/**
|
|
41
|
-
* The access token to make calls on behalf of the signed in Meta for Developers account or business.
|
|
42
|
-
*/
|
|
43
|
-
[WabaConfigEnum.AccessToken]: string;
|
|
44
|
-
/**
|
|
45
|
-
* The endpoint path (e.g. if the value here is webhook, the webhook URL would look like http/https://{host}/webhook).
|
|
46
|
-
*/
|
|
47
|
-
[WabaConfigEnum.WebhookEndpoint]: string;
|
|
48
|
-
/**
|
|
49
|
-
* The verification token that needs to match what is sent by the Cloud API webhook in order to subscribe.
|
|
50
|
-
*/
|
|
51
|
-
[WabaConfigEnum.WebhookVerificationToken]: string;
|
|
52
|
-
/**
|
|
53
|
-
* The listener port for the webhook web server.
|
|
54
|
-
*/
|
|
55
|
-
[WabaConfigEnum.ListenerPort]: number;
|
|
56
|
-
/**
|
|
57
|
-
* To turn on global debugging of the logger to print verbose output across the APIs.
|
|
58
|
-
*/
|
|
59
|
-
[WabaConfigEnum.Debug]: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* The total number of times a request should be retried after the wait period if it fails.
|
|
62
|
-
*/
|
|
63
|
-
[WabaConfigEnum.MaxRetriesAfterWait]: number;
|
|
64
|
-
/**
|
|
65
|
-
* The timeout period for a request to quit and destroy the attempt in ms.
|
|
66
|
-
*/
|
|
67
|
-
[WabaConfigEnum.RequestTimeout]: number;
|
|
68
|
-
/**
|
|
69
|
-
* The private key for the Meta for Developers business.
|
|
70
|
-
*/
|
|
71
|
-
[WabaConfigEnum.PrivatePem]: string;
|
|
72
|
-
/**
|
|
73
|
-
* The passphrase for the Meta for Developers business.
|
|
74
|
-
*/
|
|
75
|
-
[WabaConfigEnum.Passphrase]: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export type { WabaConfigType, WhatsAppConfig };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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-iedeomKw.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface MetaError extends Error {
|
|
2
|
-
error: {
|
|
3
|
-
message: string;
|
|
4
|
-
type: string;
|
|
5
|
-
code: number;
|
|
6
|
-
error_data?: {
|
|
7
|
-
messaging_product: 'whatsapp';
|
|
8
|
-
details: string;
|
|
9
|
-
};
|
|
10
|
-
error_subcode?: number;
|
|
11
|
-
fbtrace_id: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Determines if the error is a Meta API error response
|
|
16
|
-
* @param error Any error object to check
|
|
17
|
-
* @returns Type guard indicating if error is a Meta API error
|
|
18
|
-
*/
|
|
19
|
-
declare function isMetaError(error: any): error is MetaError;
|
|
20
|
-
|
|
21
|
-
export { type MetaError, isMetaError };
|