Skip to content

Commit

Permalink
Mini docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Secreto31126 committed Feb 27, 2025
1 parent 09e212c commit 5f708e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/messages/interactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,8 @@ export class ActionFlow implements InteractiveAction {
flow_name?: string | never;
/**
* The Flow can be in either draft or published mode
*
* Defaults to API decision if not provided ("published")
*/
mode?: "published" | "draft";
/**
Expand All @@ -872,6 +874,8 @@ export class ActionFlow implements InteractiveAction {
flow_message_version?: "3";
/**
* Flow token that is generated by the business to serve as an identifier
*
* Defaults to API decision if not provided
*/
flow_token?: string;
/**
Expand All @@ -880,6 +884,8 @@ export class ActionFlow implements InteractiveAction {
flow_cta: string;
/**
* The Flow type. If set to "navigate", flow_action_payload must be provided.
*
* Defaults to API decision if not provided ("navigate")
*/
flow_action?: "navigate" | "data_exchange";
/**
Expand Down Expand Up @@ -912,16 +918,10 @@ export class ActionFlow implements InteractiveAction {
) &
(
| {
/**
* Unique ID of the Flow provided by WhatsApp
*/
flow_id: string;
flow_name?: never;
}
| {
/**
* Flow name provided by the business as an alternative to flow_id
*/
flow_name: string;
flow_id?: never;
}
Expand Down

0 comments on commit 5f708e9

Please sign in to comment.