@getlatedev/node 0.2.1126 → 0.2.1128

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.
@@ -4342,7 +4342,7 @@ export type CtwaAdRequestBody = {
4342
4342
  */
4343
4343
  pageId?: string;
4344
4344
  /**
4345
- * WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
4345
+ * WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Meta can accept the number yet create the ad set without it; the response then carries a `warnings` entry. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
4346
4346
  */
4347
4347
  whatsappPhoneNumber?: string;
4348
4348
  /**
@@ -5016,6 +5016,10 @@ export type CtwaMultiResponse = {
5016
5016
  platformCampaignId: string;
5017
5017
  platformAdSetId: string;
5018
5018
  message: string;
5019
+ /**
5020
+ * Present when Meta created the ad set differently from the request. Today: Meta kept the ad set without the requested `whatsappPhoneNumber` in its promoted_object (the ads still carry it on their WhatsApp button).
5021
+ */
5022
+ warnings?: Array<(string)>;
5019
5023
  };
5020
5024
 
5021
5025
  export type adType2 = 'multi';
@@ -5035,6 +5039,10 @@ export type CtwaSingleResponse = {
5035
5039
  [key: string]: unknown;
5036
5040
  };
5037
5041
  message: string;
5042
+ /**
5043
+ * Present when Meta created the ad set differently from the request. Today: Meta kept the ad set without the requested `whatsappPhoneNumber` in its promoted_object (the ads still carry it on their WhatsApp button).
5044
+ */
5045
+ warnings?: Array<(string)>;
5038
5046
  };
5039
5047
 
5040
5048
  export type adType3 = 'single';
@@ -10134,6 +10142,59 @@ export type RecyclingState = {
10134
10142
  lastRecycledAt?: string;
10135
10143
  };
10136
10144
 
10145
+ /**
10146
+ * One comment of a Reddit thread as returned by GET /v1/reddit/comments/{postId}; the list is flat and in thread order
10147
+ */
10148
+ export type RedditComment = {
10149
+ /**
10150
+ * Reddit comment ID (without type prefix)
10151
+ */
10152
+ id?: string;
10153
+ /**
10154
+ * Reddit fullname (e.g. t1_abc123)
10155
+ */
10156
+ fullname?: string;
10157
+ /**
10158
+ * Fullname of what the comment answers: the post (t3_…) or a parent comment (t1_…)
10159
+ */
10160
+ parentId?: string;
10161
+ /**
10162
+ * The username, or [deleted]
10163
+ */
10164
+ author?: string;
10165
+ /**
10166
+ * Comment text as written (Markdown, not HTML-escaped), or [deleted] / [removed]
10167
+ */
10168
+ body?: string;
10169
+ /**
10170
+ * Full permalink to the comment
10171
+ */
10172
+ permalink?: string;
10173
+ /**
10174
+ * Unix timestamp of the comment
10175
+ */
10176
+ createdUtc?: number;
10177
+ score?: number;
10178
+ /**
10179
+ * Direct replies included in this response; replies Reddit left out are listed in more
10180
+ */
10181
+ numReplies?: number;
10182
+ /**
10183
+ * 0 for a top-level comment of this response, 1 for a reply to it, and so on
10184
+ */
10185
+ depth?: number;
10186
+ /**
10187
+ * Whether the author is the post's author
10188
+ */
10189
+ isSubmitter?: boolean;
10190
+ edited?: boolean;
10191
+ stickied?: boolean;
10192
+ /**
10193
+ * "moderator" or "admin" when the comment is distinguished, else null
10194
+ */
10195
+ distinguished?: (string) | null;
10196
+ };
10197
+
10137
10198
  /**
10138
10199
  * Posts are either link (with URL/media), native video (via nativeVideo), or self (text-only). Use forceSelf to override. Subreddit defaults to the account's configured one. Some subreddits require a flair.
10139
10200
  */
@@ -18060,6 +18121,44 @@ export type GetRedditFeedResponse = ({
18060
18121
 
18061
18122
  export type GetRedditFeedError = (ErrorResponse);
18062
18123
 
18124
+ export type GetRedditPostCommentsData = {
18125
+ path: {
18126
+ /**
18127
+ * Reddit post id, with or without the `t3_` prefix (as `id` or `fullname` on RedditPost).
18128
+ */
18129
+ postId: string;
18130
+ };
18131
+ query: {
18132
+ /**
18133
+ * An active Reddit account the request is made as.
18134
+ */
18135
+ accountId: string;
18136
+ /**
18137
+ * Return only this comment and its replies, with or without the `t1_` prefix; pass an id from `more` to expand it.
18138
+ */
18139
+ commentId?: string;
18140
+ /**
18141
+ * Maximum number of top-level comments.
18142
+ */
18143
+ limit?: number;
18144
+ sort?: 'new' | 'top' | 'best' | 'controversial' | 'old' | 'qa';
18145
+ };
18146
+ };
18147
+
18148
+ export type GetRedditPostCommentsResponse = ({
18149
+ /**
18150
+ * The post header; null when Reddit omits it (deleted post).
18151
+ */
18152
+ post?: (RedditPost | null);
18153
+ items?: Array<RedditComment>;
18154
+ /**
18155
+ * Ids of comments Reddit left out of this page, at any depth.
18156
+ */
18157
+ more?: Array<(string)>;
18158
+ });
18159
+
18160
+ export type GetRedditPostCommentsError = (ErrorResponse);
18161
+
18063
18162
  export type GetBillingResponse = (BillingSnapshot);
18064
18163
 
18065
18164
  export type GetBillingError = (ErrorResponse | {