meta-cloud-api 0.2.3 → 0.2.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.
@@ -30,6 +30,20 @@ declare enum FlowActionEnum {
30
30
  BACK = "BACK",
31
31
  DATA_EXCHANGE = "data_exchange"
32
32
  }
33
+ /**
34
+ * Enum for Flow Types in webhook handlers
35
+ * Used to register handlers for specific flow events
36
+ */
37
+ declare enum FlowTypeEnum {
38
+ /** Health check/ping requests */
39
+ Ping = "ping",
40
+ /** Data exchange requests */
41
+ Change = "data_exchange",
42
+ /** Error notification requests */
43
+ Error = "error",
44
+ /** Match all flow action types */
45
+ All = "*"
46
+ }
33
47
  /**
34
48
  * Flow Validation Error Pointer
35
49
  */
@@ -258,7 +272,21 @@ interface FlowErrorNotificationRequest {
258
272
  interface FlowErrorNotificationResponse {
259
273
  acknowledged: boolean;
260
274
  }
261
- type FlowEndpointRequest = FlowHealthCheckRequest | FlowDataExchangeRequest | FlowErrorNotificationRequest;
275
+ /**
276
+ * WhatsApp Flow Endpoint - Comprehensive Request Object
277
+ * A combined type that includes all possible fields from different request types
278
+ * with all fields being optional for flexibility
279
+ */
280
+ interface FlowEndpointRequest {
281
+ version?: '3.0';
282
+ action?: 'ping' | FlowActionEnum;
283
+ screen?: string;
284
+ flow_token?: string;
285
+ data?: Record<string, any> | {
286
+ error_key?: string;
287
+ error_message?: string;
288
+ };
289
+ }
262
290
  /**
263
291
  * WhatsApp Flow Endpoint - Response
264
292
  * Union type for all possible response types from a Flow endpoint
@@ -371,4 +399,4 @@ interface FlowClass {
371
399
  }): Promise<FlowMigrationResponse>;
372
400
  }
373
401
 
374
- export { type CreateFlowResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
402
+ export { type CreateFlowResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
@@ -30,6 +30,20 @@ declare enum FlowActionEnum {
30
30
  BACK = "BACK",
31
31
  DATA_EXCHANGE = "data_exchange"
32
32
  }
33
+ /**
34
+ * Enum for Flow Types in webhook handlers
35
+ * Used to register handlers for specific flow events
36
+ */
37
+ declare enum FlowTypeEnum {
38
+ /** Health check/ping requests */
39
+ Ping = "ping",
40
+ /** Data exchange requests */
41
+ Change = "data_exchange",
42
+ /** Error notification requests */
43
+ Error = "error",
44
+ /** Match all flow action types */
45
+ All = "*"
46
+ }
33
47
  /**
34
48
  * Flow Validation Error Pointer
35
49
  */
@@ -258,7 +272,21 @@ interface FlowErrorNotificationRequest {
258
272
  interface FlowErrorNotificationResponse {
259
273
  acknowledged: boolean;
260
274
  }
261
- type FlowEndpointRequest = FlowHealthCheckRequest | FlowDataExchangeRequest | FlowErrorNotificationRequest;
275
+ /**
276
+ * WhatsApp Flow Endpoint - Comprehensive Request Object
277
+ * A combined type that includes all possible fields from different request types
278
+ * with all fields being optional for flexibility
279
+ */
280
+ interface FlowEndpointRequest {
281
+ version?: '3.0';
282
+ action?: 'ping' | FlowActionEnum;
283
+ screen?: string;
284
+ flow_token?: string;
285
+ data?: Record<string, any> | {
286
+ error_key?: string;
287
+ error_message?: string;
288
+ };
289
+ }
262
290
  /**
263
291
  * WhatsApp Flow Endpoint - Response
264
292
  * Union type for all possible response types from a Flow endpoint
@@ -371,4 +399,4 @@ interface FlowClass {
371
399
  }): Promise<FlowMigrationResponse>;
372
400
  }
373
401
 
374
- export { type CreateFlowResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
402
+ export { type CreateFlowResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type Pagination, type PaginationCursors, type UpdateFlowResponse, type ValidateFlowJsonResponse };
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var f=(o,e)=>{for(var i in e)a(o,i,{get:e[i],enumerable:!0})},F=(o,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!w.call(o,s)&&s!==i&&a(o,s,{get:()=>e[s],enumerable:!(t=g(e,s))||t.enumerable});return o};var _=o=>F(a({},"__esModule",{value:!0}),o);var u={};f(u,{FlowActionEnum:()=>p,FlowCategoryEnum:()=>c,FlowStatusEnum:()=>l});module.exports=_(u);var l=(n=>(n.Draft="DRAFT",n.Published="PUBLISHED",n.Throttled="THROTTLED",n.Blocked="BLOCKED",n.Deprecated="DEPRECATED",n))(l||{}),c=(r=>(r.SignUp="SIGN_UP",r.SignIn="SIGN_IN",r.AppointmentBooking="APPOINTMENT_BOOKING",r.LeadGeneration="LEAD_GENERATION",r.ContactUs="CONTACT_US",r.CustomerSupport="CUSTOMER_SUPPORT",r.Survey="SURVEY",r.Other="OTHER",r))(c||{}),p=(t=>(t.INIT="INIT",t.BACK="BACK",t.DATA_EXCHANGE="data_exchange",t))(p||{});0&&(module.exports={FlowActionEnum,FlowCategoryEnum,FlowStatusEnum});
1
+ "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var _=(t,r)=>{for(var i in r)a(t,i,{get:r[i],enumerable:!0})},F=(t,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of w(r))!f.call(t,e)&&e!==i&&a(t,e,{get:()=>r[e],enumerable:!(s=d(r,e))||s.enumerable});return t};var u=t=>F(a({},"__esModule",{value:!0}),t);var R={};_(R,{FlowActionEnum:()=>g,FlowCategoryEnum:()=>c,FlowStatusEnum:()=>l,FlowTypeEnum:()=>p});module.exports=u(R);var l=(n=>(n.Draft="DRAFT",n.Published="PUBLISHED",n.Throttled="THROTTLED",n.Blocked="BLOCKED",n.Deprecated="DEPRECATED",n))(l||{}),c=(o=>(o.SignUp="SIGN_UP",o.SignIn="SIGN_IN",o.AppointmentBooking="APPOINTMENT_BOOKING",o.LeadGeneration="LEAD_GENERATION",o.ContactUs="CONTACT_US",o.CustomerSupport="CUSTOMER_SUPPORT",o.Survey="SURVEY",o.Other="OTHER",o))(c||{}),g=(s=>(s.INIT="INIT",s.BACK="BACK",s.DATA_EXCHANGE="data_exchange",s))(g||{}),p=(e=>(e.Ping="ping",e.Change="data_exchange",e.Error="error",e.All="*",e))(p||{});0&&(module.exports={FlowActionEnum,FlowCategoryEnum,FlowStatusEnum,FlowTypeEnum});
2
2
  //# sourceMappingURL=flow.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\nexport type FlowEndpointRequest = FlowHealthCheckRequest | FlowDataExchangeRequest | FlowErrorNotificationRequest;\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,qBAAAC,EAAA,mBAAAC,IAAA,eAAAC,EAAAL,GAMO,IAAKI,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAD,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAD,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA","names":["flow_exports","__export","FlowActionEnum","FlowCategoryEnum","FlowStatusEnum","__toCommonJS"]}
1
+ {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Enum for Flow Types in webhook handlers\n * Used to register handlers for specific flow events\n */\nexport enum FlowTypeEnum {\n /** Health check/ping requests */\n Ping = 'ping',\n /** Data exchange requests */\n Change = 'data_exchange',\n /** Error notification requests */\n Error = 'error',\n /** Match all flow action types */\n All = '*',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\n/**\n * WhatsApp Flow Endpoint - Comprehensive Request Object\n * A combined type that includes all possible fields from different request types\n * with all fields being optional for flexibility\n */\nexport interface FlowEndpointRequest {\n // Common fields\n version?: '3.0';\n action?: 'ping' | FlowActionEnum;\n\n screen?: string;\n flow_token?: string;\n\n data?:\n | Record<string, any>\n | {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,qBAAAC,EAAA,mBAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAN,GAMO,IAAKI,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAD,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAD,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA,IAUAG,OAERA,EAAA,KAAO,OAEPA,EAAA,OAAS,gBAETA,EAAA,MAAQ,QAERA,EAAA,IAAM,IAREA,OAAA","names":["flow_exports","__export","FlowActionEnum","FlowCategoryEnum","FlowStatusEnum","FlowTypeEnum","__toCommonJS"]}
@@ -1,2 +1,2 @@
1
- var t=(r=>(r.Draft="DRAFT",r.Published="PUBLISHED",r.Throttled="THROTTLED",r.Blocked="BLOCKED",r.Deprecated="DEPRECATED",r))(t||{}),s=(e=>(e.SignUp="SIGN_UP",e.SignIn="SIGN_IN",e.AppointmentBooking="APPOINTMENT_BOOKING",e.LeadGeneration="LEAD_GENERATION",e.ContactUs="CONTACT_US",e.CustomerSupport="CUSTOMER_SUPPORT",e.Survey="SURVEY",e.Other="OTHER",e))(s||{}),n=(o=>(o.INIT="INIT",o.BACK="BACK",o.DATA_EXCHANGE="data_exchange",o))(n||{});export{n as FlowActionEnum,s as FlowCategoryEnum,t as FlowStatusEnum};
1
+ var s=(r=>(r.Draft="DRAFT",r.Published="PUBLISHED",r.Throttled="THROTTLED",r.Blocked="BLOCKED",r.Deprecated="DEPRECATED",r))(s||{}),n=(e=>(e.SignUp="SIGN_UP",e.SignIn="SIGN_IN",e.AppointmentBooking="APPOINTMENT_BOOKING",e.LeadGeneration="LEAD_GENERATION",e.ContactUs="CONTACT_US",e.CustomerSupport="CUSTOMER_SUPPORT",e.Survey="SURVEY",e.Other="OTHER",e))(n||{}),i=(t=>(t.INIT="INIT",t.BACK="BACK",t.DATA_EXCHANGE="data_exchange",t))(i||{}),a=(o=>(o.Ping="ping",o.Change="data_exchange",o.Error="error",o.All="*",o))(a||{});export{i as FlowActionEnum,n as FlowCategoryEnum,s as FlowStatusEnum,a as FlowTypeEnum};
2
2
  //# sourceMappingURL=flow.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\nexport type FlowEndpointRequest = FlowHealthCheckRequest | FlowDataExchangeRequest | FlowErrorNotificationRequest;\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"AAMO,IAAKA,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAC,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAC,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA","names":["FlowStatusEnum","FlowCategoryEnum","FlowActionEnum"]}
1
+ {"version":3,"sources":["../../src/types/flow.ts"],"sourcesContent":["import { IncomingHttpHeaders, IncomingMessage } from 'http';\nimport { ResponseSuccess } from './request';\n\n/**\n * Enum for Flow Status\n */\nexport enum FlowStatusEnum {\n Draft = 'DRAFT',\n Published = 'PUBLISHED',\n Throttled = 'THROTTLED',\n Blocked = 'BLOCKED',\n Deprecated = 'DEPRECATED',\n}\n\n/**\n * Enum for Flow Categories\n */\nexport enum FlowCategoryEnum {\n SignUp = 'SIGN_UP',\n SignIn = 'SIGN_IN',\n AppointmentBooking = 'APPOINTMENT_BOOKING',\n LeadGeneration = 'LEAD_GENERATION',\n ContactUs = 'CONTACT_US',\n CustomerSupport = 'CUSTOMER_SUPPORT',\n Survey = 'SURVEY',\n Other = 'OTHER',\n}\n\nexport enum FlowActionEnum {\n INIT = 'INIT',\n BACK = 'BACK',\n DATA_EXCHANGE = 'data_exchange',\n}\n\n/**\n * Enum for Flow Types in webhook handlers\n * Used to register handlers for specific flow events\n */\nexport enum FlowTypeEnum {\n /** Health check/ping requests */\n Ping = 'ping',\n /** Data exchange requests */\n Change = 'data_exchange',\n /** Error notification requests */\n Error = 'error',\n /** Match all flow action types */\n All = '*',\n}\n\n/**\n * Flow Validation Error Pointer\n */\nexport interface FlowValidationErrorPointer {\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n path: string;\n}\n\n/**\n * Flow Validation Error\n */\nexport interface FlowValidationError {\n error: string;\n error_type: string;\n message: string;\n line_start: number;\n line_end: number;\n column_start: number;\n column_end: number;\n pointers: FlowValidationErrorPointer[];\n}\n\n/**\n * Flow Item\n */\nexport interface Flow {\n id: string;\n name: string;\n status: FlowStatusEnum;\n categories: FlowCategoryEnum[];\n validation_errors: FlowValidationError[];\n}\n\n/**\n * Pagination Cursors\n */\nexport interface PaginationCursors {\n before: string;\n after: string;\n}\n\n/**\n * Pagination Object\n */\nexport interface Pagination {\n cursors: PaginationCursors;\n}\n\n/**\n * Flows List Response\n */\nexport interface FlowsListResponse {\n data: Flow[];\n paging: Pagination;\n}\n\n/**\n * Flow Asset\n */\nexport interface FlowAsset {\n name: string;\n asset_type: string;\n download_url: string;\n}\n\n/**\n * Flow Assets Response\n */\nexport interface FlowAssetsResponse {\n data: FlowAsset[];\n paging: Pagination;\n}\n\n/**\n * Flow Preview\n */\nexport interface FlowPreview {\n preview_url: string;\n expires_at: string;\n}\n\n/**\n * Flow Preview Response\n */\nexport interface FlowPreviewResponse {\n preview: FlowPreview;\n id: string;\n}\n\n/**\n * Flow Migration Result\n */\nexport interface FlowMigrationResult {\n source_name: string;\n source_id: string;\n migrated_id: string;\n}\n\n/**\n * Flow Migration Failure\n */\nexport interface FlowMigrationFailure {\n source_name: string;\n error_code: string;\n error_message: string;\n}\n\n/**\n * Create Flow Response\n */\nexport interface CreateFlowResponse {\n id: string;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Update Flow Response\n */\nexport interface UpdateFlowResponse {\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * Flow Migration Response\n */\nexport interface FlowMigrationResponse {\n migrated_flows: FlowMigrationResult[];\n failed_flows: FlowMigrationFailure[];\n}\n\n/**\n * Validate Flow JSON Response\n */\nexport interface ValidateFlowJsonResponse {\n valid: boolean;\n success: boolean;\n validation_errors?: FlowValidationError[];\n}\n\n/**\n * WhatsApp Flow Endpoint - Encrypted Request Payload\n * Represents the raw encrypted data received from WhatsApp\n */\nexport interface FlowEncryptedRequestPayload {\n encrypted_aes_key: string;\n encrypted_flow_data: string;\n initial_vector: string;\n}\n\n/**\n * WhatsApp Flow Endpoint - Decrypted Request Response\n * Represents the successfully decrypted data and encryption keys\n */\nexport interface FlowDecryptedRequestResponse {\n decryptedBody: any;\n aesKeyBuffer: Buffer;\n initialVectorBuffer: Buffer;\n}\n\n/**\n * WhatsApp Flow Endpoint - HTTP Request with Body\n * Represents an HTTP request with the encrypted payload\n */\nexport interface FlowHttpRequest extends IncomingMessage {\n body: FlowEncryptedRequestPayload;\n headers: IncomingHttpHeaders;\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Request\n * Represents the structure of a health check request\n */\nexport interface FlowHealthCheckRequest {\n action: 'ping';\n version: '3.0';\n}\n\n/**\n * WhatsApp Flow Endpoint - Health Check Response\n * The expected response structure for health check requests\n */\nexport interface FlowHealthCheckResponse {\n data: {\n status: 'active';\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Request\n * Represents the structure of a data exchange request\n */\nexport interface FlowDataExchangeRequest {\n version: '3.0';\n action: FlowActionEnum;\n screen: string;\n flow_token: string;\n data?: Record<string, any>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Data Exchange Response\n * The expected response structure for data exchange requests\n */\nexport interface FlowDataExchangeResponse {\n screen?: string;\n data?: Record<string, any | { error_message?: string }>;\n}\n\n/**\n * WhatsApp Flow Endpoint - Success Screen Response\n * The expected response structure for success screen requests\n */\nexport interface FlowSuccessScreenResponse {\n screen: 'SUCCESS';\n data: {\n extension_message_response?: {\n params?: {\n flow_token: string;\n [key: string]: string;\n };\n };\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Request\n * Represents the structure of an error notification request\n */\nexport interface FlowErrorNotificationRequest {\n version: '3.0';\n action: Exclude<FlowActionEnum, FlowActionEnum.BACK>;\n screen: string;\n flow_token: string;\n data: {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Error Notification Response\n * The expected response structure for error notification requests\n */\nexport interface FlowErrorNotificationResponse {\n acknowledged: boolean;\n}\n\n/**\n * WhatsApp Flow Endpoint - Comprehensive Request Object\n * A combined type that includes all possible fields from different request types\n * with all fields being optional for flexibility\n */\nexport interface FlowEndpointRequest {\n // Common fields\n version?: '3.0';\n action?: 'ping' | FlowActionEnum;\n\n screen?: string;\n flow_token?: string;\n\n data?:\n | Record<string, any>\n | {\n error_key?: string;\n error_message?: string;\n };\n}\n\n/**\n * WhatsApp Flow Endpoint - Response\n * Union type for all possible response types from a Flow endpoint\n */\nexport type FlowEndpointResponse =\n | FlowHealthCheckResponse\n | FlowDataExchangeResponse\n | FlowErrorNotificationResponse\n | FlowSuccessScreenResponse;\n\nexport interface FlowClass {\n /**\n * List Flows\n *\n * @param wabaId - The WABA ID\n * @returns Promise with the list of flows\n */\n listFlows(wabaId: string): Promise<FlowsListResponse>;\n\n /**\n * Create Flow\n *\n * @param wabaId - The WABA ID\n * @param data - The flow data including name, categories, endpoint_uri, and optional clone_flow_id\n * @returns Promise with the created flow ID\n */\n createFlow(\n wabaId: string,\n data: {\n name: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n clone_flow_id?: string;\n flow_json?: string;\n publish?: boolean;\n },\n ): Promise<CreateFlowResponse>;\n\n /**\n * Get Flow\n *\n * @param flowId - The flow ID\n * @param fields - Optional fields to return\n * @param dateFormat - Optional date format\n * @returns Promise with the flow details\n */\n getFlow(flowId: string, fields?: string, dateFormat?: string): Promise<Flow | FlowPreviewResponse>;\n\n /**\n * Update Flow Metadata\n *\n * @param flowId - The flow ID\n * @param data - The flow metadata to update\n * @returns Promise with the success status\n */\n updateFlowMetadata(\n flowId: string,\n data: {\n name?: string;\n categories?: FlowCategoryEnum[];\n endpoint_uri?: string;\n application_id?: string;\n },\n ): Promise<ResponseSuccess>;\n\n /**\n * Delete Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deleteFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * List Assets (Get Flow JSON URL)\n *\n * @param flowId - The flow ID\n * @returns Promise with the list of assets\n */\n listAssets(flowId: string): Promise<FlowAssetsResponse>;\n\n /**\n * Update Flow JSON\n *\n * @param flowId - The flow ID\n * @param data - The asset data including asset_type, file, and name\n * @returns Promise with the success status and validation errors\n */\n updateFlowJson(\n flowId: string,\n data: {\n asset_type: 'FLOW_JSON';\n file: Blob;\n name: string;\n },\n ): Promise<UpdateFlowResponse>;\n\n /**\n * Validate Flow JSON by attempting an update without publishing.\n * This is a convenience method; the API doesn't have a dedicated validation endpoint.\n *\n * @param flowId - The ID of the Flow (must exist, can be in DRAFT status).\n * @param flowJsonData - The Flow JSON content as a Buffer, JSON object, or Blob.\n * @returns Promise indicating if the JSON is valid and includes validation errors if any.\n */\n validateFlowJson(flowId: string, flowJsonData: Blob | Buffer | object): Promise<ValidateFlowJsonResponse>;\n\n /**\n * Publish Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n publishFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Deprecate Flow\n *\n * @param flowId - The flow ID\n * @returns Promise with the success status\n */\n deprecateFlow(flowId: string): Promise<ResponseSuccess>;\n\n /**\n * Migrate Flows\n *\n * @param wabaId - The destination WABA ID\n * @param data - The migration data including source_waba_id and optional source_flow_names\n * @returns Promise with migration results\n */\n migrateFlows(\n wabaId: string,\n data: {\n source_waba_id: string;\n source_flow_names?: string[];\n },\n ): Promise<FlowMigrationResponse>;\n}\n"],"mappings":"AAMO,IAAKA,OACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,QAAU,UACVA,EAAA,WAAa,aALLA,OAAA,IAWAC,OACRA,EAAA,OAAS,UACTA,EAAA,OAAS,UACTA,EAAA,mBAAqB,sBACrBA,EAAA,eAAiB,kBACjBA,EAAA,UAAY,aACZA,EAAA,gBAAkB,mBAClBA,EAAA,OAAS,SACTA,EAAA,MAAQ,QARAA,OAAA,IAWAC,OACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,cAAgB,gBAHRA,OAAA,IAUAC,OAERA,EAAA,KAAO,OAEPA,EAAA,OAAS,gBAETA,EAAA,MAAQ,QAERA,EAAA,IAAM,IAREA,OAAA","names":["FlowStatusEnum","FlowCategoryEnum","FlowActionEnum","FlowTypeEnum"]}
@@ -3,7 +3,7 @@ export { BusinessProfileClass, BusinessProfileData, BusinessProfileField, Busine
3
3
  export { WabaConfigType } from './config.mjs';
4
4
  export { EncryptionClass, EncryptionPublicKeyResponse } from './encryption.mjs';
5
5
  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-CI7vzKhn.mjs';
6
- export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse } from './flow.mjs';
6
+ export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse } from './flow.mjs';
7
7
  export { HttpsClientClass, HttpsClientResponseClass, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody } from './httpsClient.mjs';
8
8
  export { LoggerInterface } from './logger.mjs';
9
9
  export { MediaClass, MediaResponse, MediasResponse, UploadMediaResponse } from './media.mjs';
@@ -3,7 +3,7 @@ export { BusinessProfileClass, BusinessProfileData, BusinessProfileField, Busine
3
3
  export { WabaConfigType } from './config.js';
4
4
  export { EncryptionClass, EncryptionPublicKeyResponse } from './encryption.js';
5
5
  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-CI7vzKhn.js';
6
- export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse } from './flow.js';
6
+ export { CreateFlowResponse, Flow, FlowActionEnum, FlowAsset, FlowAssetsResponse, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, Pagination, PaginationCursors, UpdateFlowResponse, ValidateFlowJsonResponse } from './flow.js';
7
7
  export { HttpsClientClass, HttpsClientResponseClass, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody } from './httpsClient.js';
8
8
  export { LoggerInterface } from './logger.js';
9
9
  export { MediaClass, MediaResponse, MediasResponse, UploadMediaResponse } from './media.js';
@@ -1,2 +1,2 @@
1
- "use strict";var F=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var u=(N,S)=>{for(var l in S)F(N,l,{get:S[l],enumerable:!0})},tt=(N,S,l,p)=>{if(S&&typeof S=="object"||typeof S=="function")for(let a of n(S))!C.call(N,a)&&a!==l&&F(N,a,{get:()=>S[a],enumerable:!(p=m(S,a))||p.enumerable});return N};var it=N=>tt(F({},"__esModule",{value:!0}),N);var pt={};u(pt,{AudioMediaTypesEnum:()=>Y,BusinessVerticalEnum:()=>s,ButtonPositionEnum:()=>K,ButtonTypesEnum:()=>T,CategoryEnum:()=>x,ComponentTypesEnum:()=>r,ConversationTypesEnum:()=>H,CurrencyCodesEnum:()=>k,DataLocalizationRegionEnum:()=>J,DocumentMediaTypesEnum:()=>L,EventField:()=>E,FlowActionEnum:()=>j,FlowCategoryEnum:()=>Q,FlowStatusEnum:()=>q,HttpMethodsEnum:()=>B,ImageMediaTypesEnum:()=>e,InteractiveTypesEnum:()=>w,LanguagesEnum:()=>V,MessageStatus:()=>y,MessageTypesEnum:()=>O,ParametersTypesEnum:()=>G,ReferralSourceTypesEnum:()=>Z,RequestCodeMethodsEnum:()=>W,StatusEnum:()=>b,StickerMediaTypesEnum:()=>g,SystemChangeTypesEnum:()=>v,TemplateStatusEnum:()=>f,VideoMediaTypesEnum:()=>h,WabaAccountReviewStatus:()=>$,WabaAccountStatus:()=>d,WabaBusinessVerificationStatus:()=>c,WabaConfigEnum:()=>M,WabaHealthStatusCanSendMessage:()=>z,WebhookTypesEnum:()=>X});module.exports=it(pt);var x=(p=>(p.Authentication="AUTHENTICATION",p.Marketing="MARKETING",p.Utility="UTILITY",p))(x||{}),f=(p=>(p.Approved="APPROVED",p.Pending="PENDING",p.Rejected="REJECTED",p))(f||{}),B=(a=>(a.Get="GET",a.Post="POST",a.Put="PUT",a.Delete="DELETE",a))(B||{}),O=(R=>(R.Audio="audio",R.Contacts="contacts",R.Document="document",R.Image="image",R.Interactive="interactive",R.Location="location",R.Reaction="reaction",R.Sticker="sticker",R.Template="template",R.Text="text",R.Video="video",R.Button="button",R.Order="order",R.System="system",R.Unknown="unknown",R["*"]="*",R))(O||{}),G=(U=>(U.Currency="currency",U.DateTime="date_time",U.Document="document",U.Image="image",U.Text="text",U.Video="video",U.Payload="payload",U))(G||{}),w=(A=>(A.Button="button",A.List="list",A.Product="product",A.ProductList="product_list",A.CtaUrl="cta_url",A.LocationRequest="location_request_message",A.AddressMessage="address_message",A.Flow="flow",A))(w||{}),T=(l=>(l.QuickReply="quick_reply",l.URL="url",l))(T||{}),K=(p=>(p[p.First=0]="First",p[p.Second=1]="Second",p[p.Third=2]="Third",p))(K||{}),r=(a=>(a.Header="HEADER",a.Body="BODY",a.Button="BUTTON",a.Footer="FOOTER",a))(r||{}),M=(R=>(R.AppId="M4D_APP_ID",R.Port="WA_PORT",R.AppSecret="M4D_APP_SECRET",R.PhoneNumberId="WA_PHONE_NUMBER_ID",R.BusinessAcctId="WA_BUSINESS_ACCOUNT_ID",R.APIVersion="CLOUD_API_VERSION",R.AccessToken="CLOUD_API_ACCESS_TOKEN",R.WebhookEndpoint="WEBHOOK_ENDPOINT",R.WebhookVerificationToken="WEBHOOK_VERIFICATION_TOKEN",R.ListenerPort="LISTENER_PORT",R.MaxRetriesAfterWait="MAX_RETRIES_AFTER_WAIT",R.RequestTimeout="REQUEST_TIMEOUT",R.Debug="DEBUG",R.PrivatePem="FLOW_API_PRIVATE_PEM",R.Passphrase="FLOW_API_PASSPHRASE",R))(M||{}),H=(p=>(p.BusinessInitiated="business_initiated",p.CustomerInitiated="customer_initiated",p.ReferralConversion="referral_conversion",p))(H||{}),b=(p=>(p.Delivered="delivered",p.Read="read",p.Sent="sent",p))(b||{}),h=(l=>(l.Mp4="video/mp4",l.Threegp="video/3gp",l))(h||{}),g=(S=>(S.Webp="image/webp",S))(g||{}),e=(l=>(l.Jpeg="image/jpeg",l.Png="image/png",l))(e||{}),L=(A=>(A.Text="text/plain",A.Pdf="application/pdf",A.Ppt="application/vnd.ms-powerpoint",A.Word="application/msword",A.Excel="application/vnd.ms-excel",A.OpenDoc="application/vnd.openxmlformats-officedocument.wordprocessingml.document",A.OpenPres="application/vnd.openxmlformats-officedocument.presentationml.presentation",A.OpenSheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",A))(L||{}),Y=(o=>(o.Aac="audio/aac",o.Mp4="audio/mp4",o.Mpeg="audio/mpeg",o.Amr="audio/amr",o.Ogg="audio/ogg",o))(Y||{}),X=(D=>(D.Audio="audio",D.Button="button",D.Document="document",D.Text="text",D.Image="image",D.Interactive="interactive",D.Order="order",D.Sticker="sticker",D.System="system",D.Unknown="unknown",D.Video="video",D))(X||{}),v=(l=>(l.CustomerChangedNumber="customer_changed_number",l.CustomerIdentityChanged="customer_identity_changed",l))(v||{}),Z=(l=>(l.Ad="ad",l.Post="post",l))(Z||{}),W=(l=>(l.Sms="SMS",l.Voice="VOICE",l))(W||{}),V=(i=>(i.Afrikaans="af",i.Albanian="sq",i.Arabic="ar",i.Azerbaijani="az",i.Bengali="bn",i.Bulgarian="bg",i.Catalan="ca",i.Chinese_CHN="zh_CN",i.Chinese_HKG="zh_HK",i.Chinese_TAI="zh_TW",i.Croatian="hr",i.Czech="cs",i.Danish="da",i.Dutch="nl",i.English="en",i.English_UK="en_GB",i.English_US="en_US",i.Estonian="et",i.Filipino="fil",i.Finnish="fi",i.French="fr",i.Georgian="ka",i.German="de",i.Greek="el",i.Gujarati="gu",i.Hausa="ha",i.Hebrew="he",i.Hindi="hi",i.Hungarian="hu",i.Indonesian="id",i.Irish="ga",i.Italian="it",i.Japanese="ja",i.Kannada="kn",i.Kazakh="kk",i.Kinyarwanda="rw_RW",i.Korean="ko",i.Kyrgyz_Kyrgyzstan="ky_KG",i.Lao="lo",i.Latvian="lv",i.Lithuanian="lt",i.Macedonian="mk",i.Malay="ms",i.Malayalam="ml",i.Marathi="mr",i.Norwegian="nb",i.Persian="fa",i.Polish="pl",i.Portuguese_BR="pt_BR",i.Portuguese_POR="pt_PT",i.Punjabi="pa",i.Romanian="ro",i.Russian="ru",i.Serbian="sr",i.Slovak="sk",i.Slovenian="sl",i.Spanish="es",i.Spanish_ARG="es_AR",i.Spanish_SPA="es_ES",i.Spanish_MEX="es_MX",i.Swahili="sw",i.Swedish="sv",i.Tamil="ta",i.Telugu="te",i.Thai="th",i.Turkish="tr",i.Ukrainian="uk",i.Urdu="ur",i.Uzbek="uz",i.Vietnamese="vi",i.Zulu="zu",i))(V||{}),k=(t=>(t.AFN="AFN",t.EUR="EUR",t.ALL="ALL",t.DZD="DZD",t.USD="USD",t.AOA="AOA",t.XCD="XCD",t.ARS="ARS",t.AMD="AMD",t.AWG="AWG",t.AUD="AUD",t.AZN="AZN",t.BSD="BSD",t.BHD="BHD",t.BDT="BDT",t.BBD="BBD",t.BYN="BYN",t.BZD="BZD",t.XOF="XOF",t.BMD="BMD",t.INR="INR",t.BTN="BTN",t.BOB="BOB",t.BOV="BOV",t.BAM="BAM",t.BWP="BWP",t.NOK="NOK",t.BRL="BRL",t.BND="BND",t.BGN="BGN",t.BIF="BIF",t.CVE="CVE",t.KHR="KHR",t.XAF="XAF",t.CAD="CAD",t.KYD="KYD",t.CLP="CLP",t.CLF="CLF",t.CNY="CNY",t.COP="COP",t.COU="COU",t.KMF="KMF",t.CDF="CDF",t.NZD="NZD",t.CRC="CRC",t.HRK="HRK",t.CUP="CUP",t.CUC="CUC",t.ANG="ANG",t.CZK="CZK",t.DKK="DKK",t.DJF="DJF",t.DOP="DOP",t.EGP="EGP",t.SVC="SVC",t.ERN="ERN",t.SZL="SZL",t.ETB="ETB",t.FKP="FKP",t.FJD="FJD",t.XPF="XPF",t.GMD="GMD",t.GEL="GEL",t.GHS="GHS",t.GIP="GIP",t.GTQ="GTQ",t.GBP="GBP",t.GNF="GNF",t.GYD="GYD",t.HTG="HTG",t.HNL="HNL",t.HKD="HKD",t.HUF="HUF",t.ISK="ISK",t.IDR="IDR",t.XDR="XDR",t.IRR="IRR",t.IQD="IQD",t.ILS="ILS",t.JMD="JMD",t.JPY="JPY",t.JOD="JOD",t.KZT="KZT",t.KES="KES",t.KPW="KPW",t.KRW="KRW",t.KWD="KWD",t.KGS="KGS",t.LAK="LAK",t.LBP="LBP",t.LSL="LSL",t.ZAR="ZAR",t.LRD="LRD",t.LYD="LYD",t.CHF="CHF",t.MOP="MOP",t.MKD="MKD",t.MGA="MGA",t.MWK="MWK",t.MYR="MYR",t.MVR="MVR",t.MRU="MRU",t.MUR="MUR",t.XUA="XUA",t.MXN="MXN",t.MXV="MXV",t.MDL="MDL",t.MNT="MNT",t.MAD="MAD",t.MZN="MZN",t.MMK="MMK",t.NAD="NAD",t.NPR="NPR",t.NIO="NIO",t.NGN="NGN",t.OMR="OMR",t.PKR="PKR",t.PAB="PAB",t.PGK="PGK",t.PYG="PYG",t.PEN="PEN",t.PHP="PHP",t.PLN="PLN",t.QAR="QAR",t.RON="RON",t.RUB="RUB",t.RWF="RWF",t.SHP="SHP",t.WST="WST",t.STN="STN",t.SAR="SAR",t.RSD="RSD",t.SCR="SCR",t.SLL="SLL",t.SGD="SGD",t.XSU="XSU",t.SBD="SBD",t.SOS="SOS",t.SSP="SSP",t.LKR="LKR",t.SDG="SDG",t.SRD="SRD",t.SEK="SEK",t.CHE="CHE",t.CHW="CHW",t.SYP="SYP",t.TWD="TWD",t.TJS="TJS",t.TZS="TZS",t.THB="THB",t.TOP="TOP",t.TTD="TTD",t.TND="TND",t.TRY="TRY",t.TMT="TMT",t.UGX="UGX",t.UAH="UAH",t.AED="AED",t.USN="USN",t.UYU="UYU",t.UYI="UYI",t.UYW="UYW",t.UZS="UZS",t.VUV="VUV",t.VES="VES",t.VND="VND",t.YER="YER",t.ZMW="ZMW",t.ZWL="ZWL",t.XBA="XBA",t.XBB="XBB",t.XBC="XBC",t.XBD="XBD",t.XTS="XTS",t.XXX="XXX",t.XAU="XAU",t.XPD="XPD",t.XPT="XPT",t.XAG="XAG",t.AFA="AFA",t.FIM="FIM",t.ALK="ALK",t.ADP="ADP",t.ESP="ESP",t.FRF="FRF",t.AOK="AOK",t.AON="AON",t.AOR="AOR",t.ARA="ARA",t.ARP="ARP",t.ARY="ARY",t.RUR="RUR",t.ATS="ATS",t.AYM="AYM",t.AZM="AZM",t.BYB="BYB",t.BYR="BYR",t.BEC="BEC",t.BEF="BEF",t.BEL="BEL",t.BOP="BOP",t.BAD="BAD",t.BRB="BRB",t.BRC="BRC",t.BRE="BRE",t.BRN="BRN",t.BRR="BRR",t.BGJ="BGJ",t.BGK="BGK",t.BGL="BGL",t.BUK="BUK",t.HRD="HRD",t.CYP="CYP",t.CSJ="CSJ",t.CSK="CSK",t.ECS="ECS",t.ECV="ECV",t.GQE="GQE",t.EEK="EEK",t.XEU="XEU",t.GEK="GEK",t.DDM="DDM",t.DEM="DEM",t.GHC="GHC",t.GHP="GHP",t.GRD="GRD",t.GNE="GNE",t.GNS="GNS",t.GWE="GWE",t.GWP="GWP",t.ITL="ITL",t.ISJ="ISJ",t.IEP="IEP",t.ILP="ILP",t.ILR="ILR",t.LAJ="LAJ",t.LVL="LVL",t.LVR="LVR",t.LSM="LSM",t.ZAL="ZAL",t.LTL="LTL",t.LTT="LTT",t.LUC="LUC",t.LUF="LUF",t.LUL="LUL",t.MGF="MGF",t.MVQ="MVQ",t.MLF="MLF",t.MTL="MTL",t.MTP="MTP",t.MRO="MRO",t.MXP="MXP",t.MZE="MZE",t.MZM="MZM",t.NLG="NLG",t.NIC="NIC",t.PEH="PEH",t.PEI="PEI",t.PES="PES",t.PLZ="PLZ",t.PTE="PTE",t.ROK="ROK",t.ROL="ROL",t.STD="STD",t.CSD="CSD",t.SKK="SKK",t.SIT="SIT",t.RHD="RHD",t.ESA="ESA",t.ESB="ESB",t.SDD="SDD",t.SDP="SDP",t.SRG="SRG",t.CHC="CHC",t.TJR="TJR",t.TPE="TPE",t.TRL="TRL",t.TMM="TMM",t.UGS="UGS",t.UGW="UGW",t.UAK="UAK",t.SUR="SUR",t.USS="USS",t.UYN="UYN",t.UYP="UYP",t.VEB="VEB",t.VEF="VEF",t.VNC="VNC",t.YDD="YDD",t.YUD="YUD",t.YUM="YUM",t.YUN="YUN",t.ZRN="ZRN",t.ZRZ="ZRZ",t.ZMK="ZMK",t.ZWC="ZWC",t.ZWD="ZWD",t.ZWN="ZWN",t.ZWR="ZWR",t.XFO="XFO",t.XRE="XRE",t.XFU="XFU",t))(k||{}),J=(P=>(P.AU="AU",P.ID="ID",P.IN="IN",P.JP="JP",P.SG="SG",P.KR="KR",P.DE="DE",P.CH="CH",P.GB="GB",P.BR="BR",P.BH="BH",P.ZA="ZA",P.AE="AE",P.CA="CA",P))(J||{}),s=(_=>(_.ALCOHOL="ALCOHOL",_.APPAREL="APPAREL",_.AUTO="AUTO",_.BEAUTY="BEAUTY",_.EDU="EDU",_.ENTERTAIN="ENTERTAIN",_.EVENT_PLAN="EVENT_PLAN",_.FINANCE="FINANCE",_.GOVT="GOVT",_.GROCERY="GROCERY",_.HEALTH="HEALTH",_.HOTEL="HOTEL",_.NONPROFIT="NONPROFIT",_.ONLINE_GAMBLING="ONLINE_GAMBLING",_.OTC_DRUGS="OTC_DRUGS",_.OTHER="OTHER",_.PHYSICAL_GAMBLING="PHYSICAL_GAMBLING",_.PROF_SERVICES="PROF_SERVICES",_.RESTAURANT="RESTAURANT",_.RETAIL="RETAIL",_.TRAVEL="TRAVEL",_))(s||{});var q=(o=>(o.Draft="DRAFT",o.Published="PUBLISHED",o.Throttled="THROTTLED",o.Blocked="BLOCKED",o.Deprecated="DEPRECATED",o))(q||{}),Q=(A=>(A.SignUp="SIGN_UP",A.SignIn="SIGN_IN",A.AppointmentBooking="APPOINTMENT_BOOKING",A.LeadGeneration="LEAD_GENERATION",A.ContactUs="CONTACT_US",A.CustomerSupport="CUSTOMER_SUPPORT",A.Survey="SURVEY",A.Other="OTHER",A))(Q||{}),j=(p=>(p.INIT="INIT",p.BACK="BACK",p.DATA_EXCHANGE="data_exchange",p))(j||{});var $=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))($||{}),z=(p=>(p.Blocked="BLOCKED",p.Limited="LIMITED",p.Available="AVAILABLE",p))(z||{}),d=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))(d||{}),c=(a=>(a.Verified="verified",a.PendingSubmission="pending_submission",a.Unverified="unverified",a.Rejected="rejected",a))(c||{});var y=(p=>(p.DELIVERED="delivered",p.READ="read",p.SENT="sent",p))(y||{}),E=(I=>(I.MESSAGES="messages",I.STATUSES="statuses",I.MESSAGE_TEMPLATE_STATUS_UPDATE="message_template_status_update",I.PHONE_NUMBER_QUALITY_UPDATE="phone_number_quality_update",I.PHONE_NUMBER_NAME_UPDATE="phone_number_name_update",I.UNKNOWN="unknown",I))(E||{});0&&(module.exports={AudioMediaTypesEnum,BusinessVerticalEnum,ButtonPositionEnum,ButtonTypesEnum,CategoryEnum,ComponentTypesEnum,ConversationTypesEnum,CurrencyCodesEnum,DataLocalizationRegionEnum,DocumentMediaTypesEnum,EventField,FlowActionEnum,FlowCategoryEnum,FlowStatusEnum,HttpMethodsEnum,ImageMediaTypesEnum,InteractiveTypesEnum,LanguagesEnum,MessageStatus,MessageTypesEnum,ParametersTypesEnum,ReferralSourceTypesEnum,RequestCodeMethodsEnum,StatusEnum,StickerMediaTypesEnum,SystemChangeTypesEnum,TemplateStatusEnum,VideoMediaTypesEnum,WabaAccountReviewStatus,WabaAccountStatus,WabaBusinessVerificationStatus,WabaConfigEnum,WabaHealthStatusCanSendMessage,WebhookTypesEnum});
1
+ "use strict";var x=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var tt=(N,S)=>{for(var _ in S)x(N,_,{get:S[_],enumerable:!0})},it=(N,S,_,p)=>{if(S&&typeof S=="object"||typeof S=="function")for(let a of C(S))!u.call(N,a)&&a!==_&&x(N,a,{get:()=>S[a],enumerable:!(p=n(S,a))||p.enumerable});return N};var pt=N=>it(x({},"__esModule",{value:!0}),N);var at={};tt(at,{AudioMediaTypesEnum:()=>Y,BusinessVerticalEnum:()=>J,ButtonPositionEnum:()=>T,ButtonTypesEnum:()=>w,CategoryEnum:()=>f,ComponentTypesEnum:()=>K,ConversationTypesEnum:()=>H,CurrencyCodesEnum:()=>k,DataLocalizationRegionEnum:()=>s,DocumentMediaTypesEnum:()=>L,EventField:()=>m,FlowActionEnum:()=>j,FlowCategoryEnum:()=>Q,FlowStatusEnum:()=>q,FlowTypeEnum:()=>$,HttpMethodsEnum:()=>O,ImageMediaTypesEnum:()=>e,InteractiveTypesEnum:()=>r,LanguagesEnum:()=>V,MessageStatus:()=>E,MessageTypesEnum:()=>F,ParametersTypesEnum:()=>G,ReferralSourceTypesEnum:()=>Z,RequestCodeMethodsEnum:()=>W,StatusEnum:()=>g,StickerMediaTypesEnum:()=>h,SystemChangeTypesEnum:()=>v,TemplateStatusEnum:()=>B,VideoMediaTypesEnum:()=>b,WabaAccountReviewStatus:()=>z,WabaAccountStatus:()=>c,WabaBusinessVerificationStatus:()=>y,WabaConfigEnum:()=>M,WabaHealthStatusCanSendMessage:()=>d,WebhookTypesEnum:()=>X});module.exports=pt(at);var f=(p=>(p.Authentication="AUTHENTICATION",p.Marketing="MARKETING",p.Utility="UTILITY",p))(f||{}),B=(p=>(p.Approved="APPROVED",p.Pending="PENDING",p.Rejected="REJECTED",p))(B||{}),O=(a=>(a.Get="GET",a.Post="POST",a.Put="PUT",a.Delete="DELETE",a))(O||{}),F=(A=>(A.Audio="audio",A.Contacts="contacts",A.Document="document",A.Image="image",A.Interactive="interactive",A.Location="location",A.Reaction="reaction",A.Sticker="sticker",A.Template="template",A.Text="text",A.Video="video",A.Button="button",A.Order="order",A.System="system",A.Unknown="unknown",A["*"]="*",A))(F||{}),G=(U=>(U.Currency="currency",U.DateTime="date_time",U.Document="document",U.Image="image",U.Text="text",U.Video="video",U.Payload="payload",U))(G||{}),r=(R=>(R.Button="button",R.List="list",R.Product="product",R.ProductList="product_list",R.CtaUrl="cta_url",R.LocationRequest="location_request_message",R.AddressMessage="address_message",R.Flow="flow",R))(r||{}),w=(_=>(_.QuickReply="quick_reply",_.URL="url",_))(w||{}),T=(p=>(p[p.First=0]="First",p[p.Second=1]="Second",p[p.Third=2]="Third",p))(T||{}),K=(a=>(a.Header="HEADER",a.Body="BODY",a.Button="BUTTON",a.Footer="FOOTER",a))(K||{}),M=(A=>(A.AppId="M4D_APP_ID",A.Port="WA_PORT",A.AppSecret="M4D_APP_SECRET",A.PhoneNumberId="WA_PHONE_NUMBER_ID",A.BusinessAcctId="WA_BUSINESS_ACCOUNT_ID",A.APIVersion="CLOUD_API_VERSION",A.AccessToken="CLOUD_API_ACCESS_TOKEN",A.WebhookEndpoint="WEBHOOK_ENDPOINT",A.WebhookVerificationToken="WEBHOOK_VERIFICATION_TOKEN",A.ListenerPort="LISTENER_PORT",A.MaxRetriesAfterWait="MAX_RETRIES_AFTER_WAIT",A.RequestTimeout="REQUEST_TIMEOUT",A.Debug="DEBUG",A.PrivatePem="FLOW_API_PRIVATE_PEM",A.Passphrase="FLOW_API_PASSPHRASE",A))(M||{}),H=(p=>(p.BusinessInitiated="business_initiated",p.CustomerInitiated="customer_initiated",p.ReferralConversion="referral_conversion",p))(H||{}),g=(p=>(p.Delivered="delivered",p.Read="read",p.Sent="sent",p))(g||{}),b=(_=>(_.Mp4="video/mp4",_.Threegp="video/3gp",_))(b||{}),h=(S=>(S.Webp="image/webp",S))(h||{}),e=(_=>(_.Jpeg="image/jpeg",_.Png="image/png",_))(e||{}),L=(R=>(R.Text="text/plain",R.Pdf="application/pdf",R.Ppt="application/vnd.ms-powerpoint",R.Word="application/msword",R.Excel="application/vnd.ms-excel",R.OpenDoc="application/vnd.openxmlformats-officedocument.wordprocessingml.document",R.OpenPres="application/vnd.openxmlformats-officedocument.presentationml.presentation",R.OpenSheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",R))(L||{}),Y=(o=>(o.Aac="audio/aac",o.Mp4="audio/mp4",o.Mpeg="audio/mpeg",o.Amr="audio/amr",o.Ogg="audio/ogg",o))(Y||{}),X=(D=>(D.Audio="audio",D.Button="button",D.Document="document",D.Text="text",D.Image="image",D.Interactive="interactive",D.Order="order",D.Sticker="sticker",D.System="system",D.Unknown="unknown",D.Video="video",D))(X||{}),v=(_=>(_.CustomerChangedNumber="customer_changed_number",_.CustomerIdentityChanged="customer_identity_changed",_))(v||{}),Z=(_=>(_.Ad="ad",_.Post="post",_))(Z||{}),W=(_=>(_.Sms="SMS",_.Voice="VOICE",_))(W||{}),V=(i=>(i.Afrikaans="af",i.Albanian="sq",i.Arabic="ar",i.Azerbaijani="az",i.Bengali="bn",i.Bulgarian="bg",i.Catalan="ca",i.Chinese_CHN="zh_CN",i.Chinese_HKG="zh_HK",i.Chinese_TAI="zh_TW",i.Croatian="hr",i.Czech="cs",i.Danish="da",i.Dutch="nl",i.English="en",i.English_UK="en_GB",i.English_US="en_US",i.Estonian="et",i.Filipino="fil",i.Finnish="fi",i.French="fr",i.Georgian="ka",i.German="de",i.Greek="el",i.Gujarati="gu",i.Hausa="ha",i.Hebrew="he",i.Hindi="hi",i.Hungarian="hu",i.Indonesian="id",i.Irish="ga",i.Italian="it",i.Japanese="ja",i.Kannada="kn",i.Kazakh="kk",i.Kinyarwanda="rw_RW",i.Korean="ko",i.Kyrgyz_Kyrgyzstan="ky_KG",i.Lao="lo",i.Latvian="lv",i.Lithuanian="lt",i.Macedonian="mk",i.Malay="ms",i.Malayalam="ml",i.Marathi="mr",i.Norwegian="nb",i.Persian="fa",i.Polish="pl",i.Portuguese_BR="pt_BR",i.Portuguese_POR="pt_PT",i.Punjabi="pa",i.Romanian="ro",i.Russian="ru",i.Serbian="sr",i.Slovak="sk",i.Slovenian="sl",i.Spanish="es",i.Spanish_ARG="es_AR",i.Spanish_SPA="es_ES",i.Spanish_MEX="es_MX",i.Swahili="sw",i.Swedish="sv",i.Tamil="ta",i.Telugu="te",i.Thai="th",i.Turkish="tr",i.Ukrainian="uk",i.Urdu="ur",i.Uzbek="uz",i.Vietnamese="vi",i.Zulu="zu",i))(V||{}),k=(t=>(t.AFN="AFN",t.EUR="EUR",t.ALL="ALL",t.DZD="DZD",t.USD="USD",t.AOA="AOA",t.XCD="XCD",t.ARS="ARS",t.AMD="AMD",t.AWG="AWG",t.AUD="AUD",t.AZN="AZN",t.BSD="BSD",t.BHD="BHD",t.BDT="BDT",t.BBD="BBD",t.BYN="BYN",t.BZD="BZD",t.XOF="XOF",t.BMD="BMD",t.INR="INR",t.BTN="BTN",t.BOB="BOB",t.BOV="BOV",t.BAM="BAM",t.BWP="BWP",t.NOK="NOK",t.BRL="BRL",t.BND="BND",t.BGN="BGN",t.BIF="BIF",t.CVE="CVE",t.KHR="KHR",t.XAF="XAF",t.CAD="CAD",t.KYD="KYD",t.CLP="CLP",t.CLF="CLF",t.CNY="CNY",t.COP="COP",t.COU="COU",t.KMF="KMF",t.CDF="CDF",t.NZD="NZD",t.CRC="CRC",t.HRK="HRK",t.CUP="CUP",t.CUC="CUC",t.ANG="ANG",t.CZK="CZK",t.DKK="DKK",t.DJF="DJF",t.DOP="DOP",t.EGP="EGP",t.SVC="SVC",t.ERN="ERN",t.SZL="SZL",t.ETB="ETB",t.FKP="FKP",t.FJD="FJD",t.XPF="XPF",t.GMD="GMD",t.GEL="GEL",t.GHS="GHS",t.GIP="GIP",t.GTQ="GTQ",t.GBP="GBP",t.GNF="GNF",t.GYD="GYD",t.HTG="HTG",t.HNL="HNL",t.HKD="HKD",t.HUF="HUF",t.ISK="ISK",t.IDR="IDR",t.XDR="XDR",t.IRR="IRR",t.IQD="IQD",t.ILS="ILS",t.JMD="JMD",t.JPY="JPY",t.JOD="JOD",t.KZT="KZT",t.KES="KES",t.KPW="KPW",t.KRW="KRW",t.KWD="KWD",t.KGS="KGS",t.LAK="LAK",t.LBP="LBP",t.LSL="LSL",t.ZAR="ZAR",t.LRD="LRD",t.LYD="LYD",t.CHF="CHF",t.MOP="MOP",t.MKD="MKD",t.MGA="MGA",t.MWK="MWK",t.MYR="MYR",t.MVR="MVR",t.MRU="MRU",t.MUR="MUR",t.XUA="XUA",t.MXN="MXN",t.MXV="MXV",t.MDL="MDL",t.MNT="MNT",t.MAD="MAD",t.MZN="MZN",t.MMK="MMK",t.NAD="NAD",t.NPR="NPR",t.NIO="NIO",t.NGN="NGN",t.OMR="OMR",t.PKR="PKR",t.PAB="PAB",t.PGK="PGK",t.PYG="PYG",t.PEN="PEN",t.PHP="PHP",t.PLN="PLN",t.QAR="QAR",t.RON="RON",t.RUB="RUB",t.RWF="RWF",t.SHP="SHP",t.WST="WST",t.STN="STN",t.SAR="SAR",t.RSD="RSD",t.SCR="SCR",t.SLL="SLL",t.SGD="SGD",t.XSU="XSU",t.SBD="SBD",t.SOS="SOS",t.SSP="SSP",t.LKR="LKR",t.SDG="SDG",t.SRD="SRD",t.SEK="SEK",t.CHE="CHE",t.CHW="CHW",t.SYP="SYP",t.TWD="TWD",t.TJS="TJS",t.TZS="TZS",t.THB="THB",t.TOP="TOP",t.TTD="TTD",t.TND="TND",t.TRY="TRY",t.TMT="TMT",t.UGX="UGX",t.UAH="UAH",t.AED="AED",t.USN="USN",t.UYU="UYU",t.UYI="UYI",t.UYW="UYW",t.UZS="UZS",t.VUV="VUV",t.VES="VES",t.VND="VND",t.YER="YER",t.ZMW="ZMW",t.ZWL="ZWL",t.XBA="XBA",t.XBB="XBB",t.XBC="XBC",t.XBD="XBD",t.XTS="XTS",t.XXX="XXX",t.XAU="XAU",t.XPD="XPD",t.XPT="XPT",t.XAG="XAG",t.AFA="AFA",t.FIM="FIM",t.ALK="ALK",t.ADP="ADP",t.ESP="ESP",t.FRF="FRF",t.AOK="AOK",t.AON="AON",t.AOR="AOR",t.ARA="ARA",t.ARP="ARP",t.ARY="ARY",t.RUR="RUR",t.ATS="ATS",t.AYM="AYM",t.AZM="AZM",t.BYB="BYB",t.BYR="BYR",t.BEC="BEC",t.BEF="BEF",t.BEL="BEL",t.BOP="BOP",t.BAD="BAD",t.BRB="BRB",t.BRC="BRC",t.BRE="BRE",t.BRN="BRN",t.BRR="BRR",t.BGJ="BGJ",t.BGK="BGK",t.BGL="BGL",t.BUK="BUK",t.HRD="HRD",t.CYP="CYP",t.CSJ="CSJ",t.CSK="CSK",t.ECS="ECS",t.ECV="ECV",t.GQE="GQE",t.EEK="EEK",t.XEU="XEU",t.GEK="GEK",t.DDM="DDM",t.DEM="DEM",t.GHC="GHC",t.GHP="GHP",t.GRD="GRD",t.GNE="GNE",t.GNS="GNS",t.GWE="GWE",t.GWP="GWP",t.ITL="ITL",t.ISJ="ISJ",t.IEP="IEP",t.ILP="ILP",t.ILR="ILR",t.LAJ="LAJ",t.LVL="LVL",t.LVR="LVR",t.LSM="LSM",t.ZAL="ZAL",t.LTL="LTL",t.LTT="LTT",t.LUC="LUC",t.LUF="LUF",t.LUL="LUL",t.MGF="MGF",t.MVQ="MVQ",t.MLF="MLF",t.MTL="MTL",t.MTP="MTP",t.MRO="MRO",t.MXP="MXP",t.MZE="MZE",t.MZM="MZM",t.NLG="NLG",t.NIC="NIC",t.PEH="PEH",t.PEI="PEI",t.PES="PES",t.PLZ="PLZ",t.PTE="PTE",t.ROK="ROK",t.ROL="ROL",t.STD="STD",t.CSD="CSD",t.SKK="SKK",t.SIT="SIT",t.RHD="RHD",t.ESA="ESA",t.ESB="ESB",t.SDD="SDD",t.SDP="SDP",t.SRG="SRG",t.CHC="CHC",t.TJR="TJR",t.TPE="TPE",t.TRL="TRL",t.TMM="TMM",t.UGS="UGS",t.UGW="UGW",t.UAK="UAK",t.SUR="SUR",t.USS="USS",t.UYN="UYN",t.UYP="UYP",t.VEB="VEB",t.VEF="VEF",t.VNC="VNC",t.YDD="YDD",t.YUD="YUD",t.YUM="YUM",t.YUN="YUN",t.ZRN="ZRN",t.ZRZ="ZRZ",t.ZMK="ZMK",t.ZWC="ZWC",t.ZWD="ZWD",t.ZWN="ZWN",t.ZWR="ZWR",t.XFO="XFO",t.XRE="XRE",t.XFU="XFU",t))(k||{}),s=(P=>(P.AU="AU",P.ID="ID",P.IN="IN",P.JP="JP",P.SG="SG",P.KR="KR",P.DE="DE",P.CH="CH",P.GB="GB",P.BR="BR",P.BH="BH",P.ZA="ZA",P.AE="AE",P.CA="CA",P))(s||{}),J=(l=>(l.ALCOHOL="ALCOHOL",l.APPAREL="APPAREL",l.AUTO="AUTO",l.BEAUTY="BEAUTY",l.EDU="EDU",l.ENTERTAIN="ENTERTAIN",l.EVENT_PLAN="EVENT_PLAN",l.FINANCE="FINANCE",l.GOVT="GOVT",l.GROCERY="GROCERY",l.HEALTH="HEALTH",l.HOTEL="HOTEL",l.NONPROFIT="NONPROFIT",l.ONLINE_GAMBLING="ONLINE_GAMBLING",l.OTC_DRUGS="OTC_DRUGS",l.OTHER="OTHER",l.PHYSICAL_GAMBLING="PHYSICAL_GAMBLING",l.PROF_SERVICES="PROF_SERVICES",l.RESTAURANT="RESTAURANT",l.RETAIL="RETAIL",l.TRAVEL="TRAVEL",l))(J||{});var q=(o=>(o.Draft="DRAFT",o.Published="PUBLISHED",o.Throttled="THROTTLED",o.Blocked="BLOCKED",o.Deprecated="DEPRECATED",o))(q||{}),Q=(R=>(R.SignUp="SIGN_UP",R.SignIn="SIGN_IN",R.AppointmentBooking="APPOINTMENT_BOOKING",R.LeadGeneration="LEAD_GENERATION",R.ContactUs="CONTACT_US",R.CustomerSupport="CUSTOMER_SUPPORT",R.Survey="SURVEY",R.Other="OTHER",R))(Q||{}),j=(p=>(p.INIT="INIT",p.BACK="BACK",p.DATA_EXCHANGE="data_exchange",p))(j||{}),$=(a=>(a.Ping="ping",a.Change="data_exchange",a.Error="error",a.All="*",a))($||{});var z=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))(z||{}),d=(p=>(p.Blocked="BLOCKED",p.Limited="LIMITED",p.Available="AVAILABLE",p))(d||{}),c=(a=>(a.Approved="APPROVED",a.Active="ACTIVE",a.Inactive="INACTIVE",a.Disabled="DISABLED",a))(c||{}),y=(a=>(a.Verified="verified",a.PendingSubmission="pending_submission",a.Unverified="unverified",a.Rejected="rejected",a))(y||{});var E=(p=>(p.DELIVERED="delivered",p.READ="read",p.SENT="sent",p))(E||{}),m=(I=>(I.MESSAGES="messages",I.STATUSES="statuses",I.MESSAGE_TEMPLATE_STATUS_UPDATE="message_template_status_update",I.PHONE_NUMBER_QUALITY_UPDATE="phone_number_quality_update",I.PHONE_NUMBER_NAME_UPDATE="phone_number_name_update",I.UNKNOWN="unknown",I))(m||{});0&&(module.exports={AudioMediaTypesEnum,BusinessVerticalEnum,ButtonPositionEnum,ButtonTypesEnum,CategoryEnum,ComponentTypesEnum,ConversationTypesEnum,CurrencyCodesEnum,DataLocalizationRegionEnum,DocumentMediaTypesEnum,EventField,FlowActionEnum,FlowCategoryEnum,FlowStatusEnum,FlowTypeEnum,HttpMethodsEnum,ImageMediaTypesEnum,InteractiveTypesEnum,LanguagesEnum,MessageStatus,MessageTypesEnum,ParametersTypesEnum,ReferralSourceTypesEnum,RequestCodeMethodsEnum,StatusEnum,StickerMediaTypesEnum,SystemChangeTypesEnum,TemplateStatusEnum,VideoMediaTypesEnum,WabaAccountReviewStatus,WabaAccountStatus,WabaBusinessVerificationStatus,WabaConfigEnum,WabaHealthStatusCanSendMessage,WebhookTypesEnum});
2
2
  //# sourceMappingURL=index.js.map