@smartlyqofficial/node 0.1.15 → 0.1.16

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/index.d.cts CHANGED
@@ -12981,9 +12981,13 @@ type SendWhatsAppMessageData = {
12981
12981
  * Recipient phone in E.164 (e.g. +14155551234).
12982
12982
  */
12983
12983
  to: string;
12984
- type?: 'text' | 'media' | 'template';
12984
+ type?: 'text' | 'media' | 'template' | 'interactive_buttons' | 'interactive_list' | 'location' | 'contacts' | 'reaction';
12985
12985
  /**
12986
- * Body for type=text.
12986
+ * A prior WhatsApp message id (wamid) to thread this message as a reply under, or (for type=reaction) the message being reacted to. Renders as a quoted reply in the customer's app.
12987
+ */
12988
+ context_message_id?: string;
12989
+ /**
12990
+ * Body for type=text, or the prompt text for type=interactive_buttons/interactive_list.
12987
12991
  */
12988
12992
  text?: string;
12989
12993
  /**
@@ -13004,6 +13008,62 @@ type SendWhatsAppMessageData = {
13004
13008
  [key: string]: unknown;
13005
13009
  }>;
13006
13010
  };
13011
+ /**
13012
+ * For type=interactive_buttons. Up to 3 reply buttons; the customer's tap arrives as an inbound message you already receive on your webhook.
13013
+ */
13014
+ buttons?: Array<{
13015
+ /**
13016
+ * Opaque id returned in the customer's tap event.
13017
+ */
13018
+ id: string;
13019
+ /**
13020
+ * Button label, max 20 characters.
13021
+ */
13022
+ title: string;
13023
+ }>;
13024
+ /**
13025
+ * For type=interactive_list. Label on the button that opens the list, max 20 characters.
13026
+ */
13027
+ button_text?: string;
13028
+ /**
13029
+ * For type=interactive_list. Up to 10 rows total across all sections.
13030
+ */
13031
+ sections?: Array<{
13032
+ /**
13033
+ * Optional section heading, max 24 characters.
13034
+ */
13035
+ title?: string;
13036
+ rows?: Array<{
13037
+ id: string;
13038
+ /**
13039
+ * Max 24 characters.
13040
+ */
13041
+ title: string;
13042
+ /**
13043
+ * Max 72 characters.
13044
+ */
13045
+ description?: string;
13046
+ }>;
13047
+ }>;
13048
+ /**
13049
+ * For type=location.
13050
+ */
13051
+ location?: {
13052
+ latitude: number;
13053
+ longitude: number;
13054
+ name?: string;
13055
+ address?: string;
13056
+ };
13057
+ /**
13058
+ * For type=contacts. WhatsApp's raw contact-card array - see Meta's WhatsApp Cloud API `contacts` message reference for the full object shape (name, phones, emails, etc.).
13059
+ */
13060
+ contacts?: Array<{
13061
+ [key: string]: unknown;
13062
+ }>;
13063
+ /**
13064
+ * For type=reaction. The emoji to react with, or an empty string to remove a previously-sent reaction. Requires context_message_id.
13065
+ */
13066
+ emoji?: string;
13007
13067
  };
13008
13068
  path?: never;
13009
13069
  query?: never;
package/dist/index.d.ts CHANGED
@@ -12981,9 +12981,13 @@ type SendWhatsAppMessageData = {
12981
12981
  * Recipient phone in E.164 (e.g. +14155551234).
12982
12982
  */
12983
12983
  to: string;
12984
- type?: 'text' | 'media' | 'template';
12984
+ type?: 'text' | 'media' | 'template' | 'interactive_buttons' | 'interactive_list' | 'location' | 'contacts' | 'reaction';
12985
12985
  /**
12986
- * Body for type=text.
12986
+ * A prior WhatsApp message id (wamid) to thread this message as a reply under, or (for type=reaction) the message being reacted to. Renders as a quoted reply in the customer's app.
12987
+ */
12988
+ context_message_id?: string;
12989
+ /**
12990
+ * Body for type=text, or the prompt text for type=interactive_buttons/interactive_list.
12987
12991
  */
12988
12992
  text?: string;
12989
12993
  /**
@@ -13004,6 +13008,62 @@ type SendWhatsAppMessageData = {
13004
13008
  [key: string]: unknown;
13005
13009
  }>;
13006
13010
  };
13011
+ /**
13012
+ * For type=interactive_buttons. Up to 3 reply buttons; the customer's tap arrives as an inbound message you already receive on your webhook.
13013
+ */
13014
+ buttons?: Array<{
13015
+ /**
13016
+ * Opaque id returned in the customer's tap event.
13017
+ */
13018
+ id: string;
13019
+ /**
13020
+ * Button label, max 20 characters.
13021
+ */
13022
+ title: string;
13023
+ }>;
13024
+ /**
13025
+ * For type=interactive_list. Label on the button that opens the list, max 20 characters.
13026
+ */
13027
+ button_text?: string;
13028
+ /**
13029
+ * For type=interactive_list. Up to 10 rows total across all sections.
13030
+ */
13031
+ sections?: Array<{
13032
+ /**
13033
+ * Optional section heading, max 24 characters.
13034
+ */
13035
+ title?: string;
13036
+ rows?: Array<{
13037
+ id: string;
13038
+ /**
13039
+ * Max 24 characters.
13040
+ */
13041
+ title: string;
13042
+ /**
13043
+ * Max 72 characters.
13044
+ */
13045
+ description?: string;
13046
+ }>;
13047
+ }>;
13048
+ /**
13049
+ * For type=location.
13050
+ */
13051
+ location?: {
13052
+ latitude: number;
13053
+ longitude: number;
13054
+ name?: string;
13055
+ address?: string;
13056
+ };
13057
+ /**
13058
+ * For type=contacts. WhatsApp's raw contact-card array - see Meta's WhatsApp Cloud API `contacts` message reference for the full object shape (name, phones, emails, etc.).
13059
+ */
13060
+ contacts?: Array<{
13061
+ [key: string]: unknown;
13062
+ }>;
13063
+ /**
13064
+ * For type=reaction. The emoji to react with, or an empty string to remove a previously-sent reaction. Requires context_message_id.
13065
+ */
13066
+ emoji?: string;
13007
13067
  };
13008
13068
  path?: never;
13009
13069
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",