Version:
SDK for interfacing with WhatsApp Business Platform in Typescript or Node.js using the Cloud API, hosted by Meta.
76 lines (63 loc) • 2.06 kB
text/typescript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
import { WAConfigEnum } from './enums';
export type WAConfigType = {
/**
* That base URL of the Cloud API, hosted by Meta.
* @default 'graph.facebook.com/'
*/
[]: string;
/**
* The Meta for Developers business application Id for this registered application.
*/
[]: string;
/**
* The Meta for Developers business application secret for this registered application.
*/
[]: string;
/**
* The Meta for Developers phone number id used by the registered business.
*/
[]: number;
/**
* The Meta for Developers business id for the registered business.
*/
[]: string;
/**
* The version of the Cloud API being used. Starts with a "v" and follows the major number.
*/
[]: string;
/**
* The access token to make calls on behalf of the signed in Meta for Developers account or business.
*/
[]: string;
/**
* The endpoint path (e.g. if the value here is webhook, the webhook URL would look like http/https://{host}/webhook).
*/
[]: string;
/**
* The verification token that needs to match what is sent by the Cloud API webhook in order to subscribe.
*/
[]: string;
/**
* The listener port for the webhook web server.
*/
[]: number;
/**
* To turn on global debugging of the logger to print verbose output across the APIs.
*/
[]: boolean;
/**
* The total number of times a request should be retried after the wait period if it fails.
*/
[]: number;
/**
* The timeout period for a request to quit and destroy the attempt in ms.
*/
[]: number;
};