Module Values.LibraryTemplateButtonInputSource

Configuration options for customizing buttons in a template from Meta's library.

Sourcetype nonrec t = {
  1. type_ : ButtonType.t option;
    (*

    The type of button (for example, QUICK_REPLY, CALL, or URL).

    *)
  2. phoneNumber : PhoneNumber.t option;
    (*

    The phone number in E.164 format for CALL-type buttons.

    *)
  3. url : MetaUrlWithSuffixExample.t option;
    (*

    The URL with dynamic parameters for URL-type buttons.

    *)
  4. otpType : OtpType.t option;
    (*

    The type of one-time password for OTP buttons.

    *)
  5. zeroTapTermsAccepted : ZeroTapTermsAccepted.t option;
    (*

    When true, indicates acceptance of zero-tap terms for the button.

    *)
  6. supportedApps : SupportedApps.t option;
    (*

    List of supported applications for this button type.

    *)
}
Sourceval make : ?type_:??? -> ?phoneNumber:??? -> ?url:??? -> ?otpType:??? -> ?zeroTapTermsAccepted:??? -> ?supportedApps:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of ZeroTapTermsAccepted.t | `List of [> `Map of ([> `String of SupportedAppKeyString.t ] * [> `String of SupportedAppValueString.t ]) list ] list | `Map of ([> `String of MetaUrlWithSuffixExampleKeyString.t ] * [> `String of MetaUrlWithSuffixExampleValueString.t ]) list | `String of ButtonType.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t