@open-wa/wa-automate-types-only 4.71.8 → 4.71.10

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.
@@ -700,9 +700,13 @@ export declare class Client {
700
700
  * @param description The long description of the link preview
701
701
  * @param text The text you want to inslude in the message section. THIS HAS TO INCLUDE THE URL otherwise the url will be prepended to the text automatically.
702
702
  * @param chatId The chat you want to send this message to.
703
- *
703
+ * @param quotedMsgId [INSIDERS] Send this link preview message in response to a given quoted message
704
+ * @param customSize [INSIDERS] Anchor the size of the thumbnail (e.g {height: 100, width: 100})
704
705
  */
705
- sendMessageWithThumb(thumb: string, url: string, title: string, description: string, text: Content, chatId: ChatId): Promise<MessageId | boolean>;
706
+ sendMessageWithThumb(thumb: string, url: string, title: string, description: string, text: Content, chatId: ChatId, quotedMsgId?: MessageId, customSize?: {
707
+ height: number;
708
+ width: number;
709
+ }): Promise<MessageId | boolean>;
706
710
  /**
707
711
  * Note: `address` and `url` are parameters available to insiders only.
708
712
  *
@@ -743,16 +747,26 @@ export declare class Client {
743
747
  * @param url string A youtube link.
744
748
  * @param text string Custom text as body of the message, this needs to include the link or it will be appended after the link.
745
749
  * @param thumbnail string Base64 of the jpeg/png which will be used to override the automatically generated thumbnail.
750
+ * @param quotedMsgId [INSIDERS] Send this link preview message in response to a given quoted message
751
+ * @param customSize [INSIDERS] Anchor the size of the thumbnail (e.g {height: 100, width: 100})
746
752
  */
747
- sendYoutubeLink(to: ChatId, url: string, text?: Content, thumbnail?: Base64): Promise<boolean | MessageId>;
753
+ sendYoutubeLink(to: ChatId, url: string, text?: Content, thumbnail?: Base64, quotedMsgId?: MessageId, customSize?: {
754
+ height: number;
755
+ width: number;
756
+ }): Promise<boolean | MessageId>;
748
757
  /**
749
758
  * Automatically sends a link with the auto generated link preview. You can also add a custom message.
750
759
  * @param chatId
751
760
  * @param url string A link.
752
761
  * @param text string Custom text as body of the message, this needs to include the link or it will be appended after the link.
753
762
  * @param thumbnail Base64 of the jpeg/png which will be used to override the automatically generated thumbnail.
763
+ * @param quotedMsgId [INSIDERS] Send this link preview message in response to a given quoted message
764
+ * @param customSize [INSIDERS] Anchor the size of the thumbnail (e.g {height: 100, width: 100})
754
765
  */
755
- sendLinkWithAutoPreview(to: ChatId, url: string, text?: Content, thumbnail?: Base64): Promise<boolean | MessageId>;
766
+ sendLinkWithAutoPreview(to: ChatId, url: string, text?: Content, thumbnail?: Base64, quotedMsgId?: MessageId, customSize?: {
767
+ height: number;
768
+ width: number;
769
+ }): Promise<boolean | MessageId>;
756
770
  /**
757
771
  *
758
772
  * Sends a reply to a given message. Please note, you need to have at least sent one normal message to a contact in order for this to work properly.
@@ -1899,6 +1913,23 @@ export declare class Client {
1899
1913
  * @returns `Promise<string | boolean>` returns status id if it worked, false if it didn't
1900
1914
  */
1901
1915
  postTextStatus(text: Content, textRgba: string, backgroundRgba: string, font: number): Promise<MessageId | string | boolean>;
1916
+ /**
1917
+ * {@license:restricted@}
1918
+ *
1919
+ * Sends a formatted text story with a thumbnail.
1920
+ * @param url The URL to share in the story
1921
+ * @param text The text to be displayed in the story
1922
+ * @param textRgba The colour of the text in the story in hex format, make sure to add the alpha value also. E.g "#FF00F4F2"
1923
+ * @param backgroundRgba The colour of the background in the story in hex format, make sure to add the alpha value also. E.g "#4FF31FF2"
1924
+ * @param font The font of the text to be used in the story. This has to be a number. Each number refers to a specific predetermined font. Here are the fonts you can choose from:
1925
+ * @param thumbnail base64 thumbnail override, if not provided the link server will try to figure it out.
1926
+ * 0: Sans Serif
1927
+ * 1: Serif
1928
+ * 2: [Norican Regular](https://fonts.google.com/specimen/Norican)
1929
+ * 3: [Bryndan Write](https://www.dafontfree.net/freefonts-bryndan-write-f160189.htm)
1930
+ * @returns `Promise<MessageId>` returns status id if it worked, false if it didn't
1931
+ */
1932
+ postThumbnailStatus(url: string, text: Content, textRgba: string, backgroundRgba: string, font: number, thumbnail?: Base64): Promise<MessageId>;
1902
1933
  /**
1903
1934
  * {@license:restricted@}
1904
1935
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.71.8",
3
+ "version": "4.71.10",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",