@getlatedev/node 0.2.1428 → 0.2.1432

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.
@@ -4668,6 +4668,27 @@ export type CampaignSubmissionFlag = {
4668
4668
 
4669
4669
  export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
4670
4670
 
4671
+ /**
4672
+ * Facebook only. The media on a comment (sticker, GIF, photo, shared link or video). One attachment per
4673
+ * comment, a single object. URLs are expiring Meta CDN links (oe= expiry), so fetch promptly. Instagram
4674
+ * comments carry no media.
4675
+ *
4676
+ */
4677
+ export type CommentAttachment = {
4678
+ /**
4679
+ * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
4680
+ */
4681
+ type: string;
4682
+ /**
4683
+ * Rendered image/preview URL (from attachment.media.image.src).
4684
+ */
4685
+ imageUrl?: string;
4686
+ /**
4687
+ * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
4688
+ */
4689
+ url?: string;
4690
+ };
4691
+
4671
4692
  /**
4672
4693
  * Actions taken on the matched comment itself (comment trigger only; ignored on the
4673
4694
  * story-reply and DM doors). They never block or fail the DM: when one cannot run,
@@ -15817,15 +15838,23 @@ export type TreasuryTopup = {
15817
15838
  */
15818
15839
  feeCoveredByZernio?: boolean;
15819
15840
  /**
15820
- * Gross amount charged
15841
+ * The amount you asked for. A top-up charges the card fee on top of it and credits what Stripe delivers, at least this amount. Older top-ups charged this amount and credited it minus the fee.
15821
15842
  */
15822
15843
  amountCents?: number;
15823
15844
  /**
15824
- * Stripe processing fee you paid; null until Stripe reports it, 0 when Zernio covers it
15845
+ * Card fee. Once paid, the fee Stripe took (chargedCents minus netCents). Before, the fee charged on top, or null on an older top-up. 0 when Zernio covers it (`payout_batch`).
15846
+ */
15847
+ feeCents?: (number) | null;
15848
+ /**
15849
+ * What your card was charged: amountCents plus the card fee charged on top, or amountCents on an older top-up and on a `payout_batch` payment.
15850
+ */
15851
+ chargedCents?: number;
15852
+ /**
15853
+ * feeCents once the top-up is paid; null before. Kept for older clients: read feeCents.
15825
15854
  */
15826
15855
  stripeFeeCents?: (number) | null;
15827
15856
  /**
15828
- * Amount credited to your balance: gross minus the Stripe fee, or the whole charge when Zernio covers the fee; null until Stripe reports it
15857
+ * Amount credited to your balance, what Stripe delivered; null until paid. At least amountCents on a top-up that charged the fee on top, and amountCents on `payout_batch` payments.
15829
15858
  */
15830
15859
  netCents?: (number) | null;
15831
15860
  /**
@@ -18327,25 +18356,12 @@ export type WebhookPayloadComment = {
18327
18356
  isDarkPost?: boolean;
18328
18357
  };
18329
18358
  /**
18330
- * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that
18331
- * carry no text. URLs are ephemeral and may expire for Meta platforms (oe= expiry),
18332
- * so fetch promptly. Instagram comments do not support attachments.
18359
+ * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text:
18360
+ * the webhook only includes it when the comment has no text. The REST comments API returns it
18361
+ * whenever Facebook returns one, text or not.
18333
18362
  *
18334
18363
  */
18335
- attachment?: {
18336
- /**
18337
- * Attachment type: sticker, animated_image_share, or photo.
18338
- */
18339
- type: string;
18340
- /**
18341
- * Rendered image/preview URL (from attachment.media.image.src).
18342
- */
18343
- imageUrl?: string;
18344
- /**
18345
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
18346
- */
18347
- url?: string;
18348
- };
18364
+ attachment?: (CommentAttachment);
18349
18365
  };
18350
18366
  post: {
18351
18367
  /**
@@ -23217,6 +23233,27 @@ export type GetDailyMetricsResponse = ({
23217
23233
  clicks?: number;
23218
23234
  views?: number;
23219
23235
  }>;
23236
+ /**
23237
+ * Sums of the whole range for the applied filters.
23238
+ */
23239
+ totals?: {
23240
+ postCount?: number;
23241
+ impressions?: number;
23242
+ /**
23243
+ * Sum of per-post reach, not unique accounts.
23244
+ */
23245
+ reach?: number;
23246
+ likes?: number;
23247
+ comments?: number;
23248
+ shares?: number;
23249
+ saves?: number;
23250
+ clicks?: number;
23251
+ views?: number;
23252
+ /**
23253
+ * Likes, comments, shares and saves (interactions).
23254
+ */
23255
+ engagement?: number;
23256
+ };
23220
23257
  });
23221
23258
 
23222
23259
  export type GetDailyMetricsError = (ErrorResponse | {
@@ -23631,7 +23668,7 @@ export type GetBalanceError = ({
23631
23668
  export type CreateTopupData = {
23632
23669
  body: {
23633
23670
  /**
23634
- * Amount in cents, minimum $10
23671
+ * Amount to credit to your balance, in cents: $10 to $100,000. The card fee is charged on top.
23635
23672
  */
23636
23673
  amountCents: number;
23637
23674
  /**
@@ -23660,6 +23697,22 @@ export type CreateTopupData = {
23660
23697
 
23661
23698
  export type CreateTopupResponse = ({
23662
23699
  topupId: string;
23700
+ /**
23701
+ * Credited to your balance once paid: exactly this when feeIsExact, else at least this.
23702
+ */
23703
+ amountCents: number;
23704
+ /**
23705
+ * Card fee, charged on top of amountCents.
23706
+ */
23707
+ feeCents: number;
23708
+ /**
23709
+ * What the card is charged: amountCents plus feeCents.
23710
+ */
23711
+ chargedCents: number;
23712
+ /**
23713
+ * True when feeCents is exactly Stripe's fee for this card. False when it is the region's highest rate, so Stripe may take less and the difference is added to your balance.
23714
+ */
23715
+ feeIsExact: boolean;
23663
23716
  status: 'succeeded' | 'processing' | 'requires_action';
23664
23717
  /**
23665
23718
  * PaymentIntent client secret for Stripe.js handleNextAction; set only when status is requires_action
@@ -23746,6 +23799,34 @@ export type ListTopupsError = (ErrorResponse | {
23746
23799
  required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
23747
23800
  });
23748
23801
 
23802
+ export type GetTopupCardFeeData = {
23803
+ query?: {
23804
+ /**
23805
+ * A saved card of the billing owner's (`pm_...`). Defaults to the default payment method.
23806
+ */
23807
+ paymentMethodId?: string;
23808
+ };
23809
+ };
23810
+
23811
+ export type GetTopupCardFeeResponse = ({
23812
+ /**
23813
+ * Percentage of the charge, in basis points (315 is 3.15%).
23814
+ */
23815
+ feeBps: number;
23816
+ /**
23817
+ * Fixed part of the fee, in cents.
23818
+ */
23819
+ fixedCents: number;
23820
+ /**
23821
+ * True when this is exactly Stripe's rate for the card.
23822
+ */
23823
+ feeIsExact: boolean;
23824
+ });
23825
+
23826
+ export type GetTopupCardFeeError = (ErrorResponse | {
23827
+ error?: string;
23828
+ });
23829
+
23749
23830
  export type GetTopupReceiptData = {
23750
23831
  path: {
23751
23832
  topupId: string;
@@ -23755,6 +23836,18 @@ export type GetTopupReceiptData = {
23755
23836
  export type GetTopupReceiptResponse = ({
23756
23837
  url: string;
23757
23838
  format: 'pdf' | 'page';
23839
+ /**
23840
+ * As in the top-up list.
23841
+ */
23842
+ amountCents: number;
23843
+ /**
23844
+ * Card fee paid, as in the top-up list.
23845
+ */
23846
+ feeCents: (number) | null;
23847
+ /**
23848
+ * What the card was charged, the total on the receipt.
23849
+ */
23850
+ chargedCents: number;
23758
23851
  });
23759
23852
 
23760
23853
  export type GetTopupReceiptError = (ErrorResponse | {
@@ -38944,6 +39037,10 @@ export type GetInboxPostCommentsResponse = ({
38944
39037
  * Whether the current user has liked this comment
38945
39038
  */
38946
39039
  isLiked?: boolean;
39040
+ /**
39041
+ * Facebook only. The comment's sticker, GIF, photo, share or video, whenever Facebook returns one (replies included). Absent when the comment has no media and on every other platform.
39042
+ */
39043
+ attachment?: (CommentAttachment);
38947
39044
  /**
38948
39045
  * Bluesky like URI for unliking
38949
39046
  */
@@ -68364,6 +68461,41 @@ export type RemoveCampaignParticipantResponse = ({
68364
68461
 
68365
68462
  export type RemoveCampaignParticipantError = (ErrorResponse);
68366
68463
 
68464
+ export type MoveCampaignParticipantData = {
68465
+ body: {
68466
+ /**
68467
+ * Campaign to move the participant to. Same owner, not closed.
68468
+ */
68469
+ targetCampaignId: string;
68470
+ };
68471
+ path: {
68472
+ /**
68473
+ * Campaign the participant is in now.
68474
+ */
68475
+ campaignId: string;
68476
+ /**
68477
+ * Participant ID.
68478
+ */
68479
+ participantId: string;
68480
+ };
68481
+ };
68482
+
68483
+ export type MoveCampaignParticipantResponse = ({
68484
+ participant: CampaignParticipant;
68485
+ submissions: {
68486
+ /**
68487
+ * Posts that moved to the target.
68488
+ */
68489
+ moved: number;
68490
+ /**
68491
+ * Undecided posts rejected in this campaign because they did not fit the target.
68492
+ */
68493
+ rejected: number;
68494
+ };
68495
+ });
68496
+
68497
+ export type MoveCampaignParticipantError = (ErrorResponse);
68498
+
68367
68499
  export type ResendCampaignParticipantInviteData = {
68368
68500
  headers?: {
68369
68501
  /**