@getlatedev/node 0.2.1242 → 0.2.1244

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.
@@ -4644,9 +4644,39 @@ export type ConversionEvent = {
4644
4644
  */
4645
4645
  sourceUrl?: string;
4646
4646
  /**
4647
- * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
4647
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting. `business_messaging` (Meta) marks an event from a WhatsApp, Messenger or Instagram Direct conversation and needs `messaging`.
4648
4648
  */
4649
- actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
4649
+ actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated' | 'business_messaging';
4650
+ /**
4651
+ * Meta only, read when `actionSource` is `business_messaging` (Conversions API
4652
+ * for Business Messaging). `channel` is sent as the event's `messaging_channel`
4653
+ * (`instagram_direct` goes out as `instagram`). Each id lands in Meta's
4654
+ * `user_data` unhashed, and an id that does not belong to `channel` is ignored.
4655
+ *
4656
+ */
4657
+ messaging?: {
4658
+ channel: 'whatsapp' | 'messenger' | 'instagram_direct';
4659
+ /**
4660
+ * WhatsApp only. WhatsApp Business Account id, sent as `whatsapp_business_account_id`.
4661
+ */
4662
+ wabaId?: string;
4663
+ /**
4664
+ * WhatsApp only. Click-to-WhatsApp click id from the first inbound message referral, sent as `ctwa_clid`.
4665
+ */
4666
+ ctwaClid?: string;
4667
+ /**
4668
+ * Messenger and Instagram Direct. Facebook Page id, sent as `page_id`.
4669
+ */
4670
+ pageId?: string;
4671
+ /**
4672
+ * Messenger only. The page-scoped user id (PSID) your Messenger webhook gives for the person, sent as `page_scoped_user_id` next to `page_id`.
4673
+ */
4674
+ pageScopedUserId?: string;
4675
+ /**
4676
+ * Instagram Direct only. The Instagram-scoped user id (IGSID) your Instagram messaging webhook gives for the person, sent as `ig_sid`.
4677
+ */
4678
+ instagramScopedUserId?: string;
4679
+ };
4650
4680
  /**
4651
4681
  * Escape hatch for platform-specific fields we haven't normalized.
4652
4682
  * On Meta, keys are shallow-merged into `custom_data` only: fields
@@ -4662,9 +4692,11 @@ export type ConversionEvent = {
4662
4692
  };
4663
4693
 
4664
4694
  /**
4665
- * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
4695
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting. `business_messaging` (Meta) marks an event from a WhatsApp, Messenger or Instagram Direct conversation and needs `messaging`.
4666
4696
  */
4667
- export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
4697
+ export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated' | 'business_messaging';
4698
+
4699
+ export type channel3 = 'whatsapp' | 'messenger' | 'instagram_direct';
4668
4700
 
4669
4701
  export type CreatedGoogleAdAccount = {
4670
4702
  platform: 'google';
@@ -7175,7 +7207,7 @@ export type level = 'LEVEL1' | 'LEVEL2' | 'LEVEL3' | 'LEVEL4' | 'LEVEL5';
7175
7207
 
7176
7208
  export type condition = 'NEW' | 'REFURBISHED' | 'USED';
7177
7209
 
7178
- export type channel3 = 'ONLINE' | 'LOCAL';
7210
+ export type channel4 = 'ONLINE' | 'LOCAL';
7179
7211
 
7180
7212
  export type index = 'INDEX0' | 'INDEX1' | 'INDEX2' | 'INDEX3' | 'INDEX4';
7181
7213
 
@@ -8180,6 +8212,21 @@ export type metric = 'follower_demographics' | 'engaged_audience_demographics';
8180
8212
  */
8181
8213
  export type timeframe = 'this_week' | 'this_month';
8182
8214
 
8215
+ export type InstagramMediaCollaborator = {
8216
+ /**
8217
+ * App-scoped ID of the collaborator's Instagram account.
8218
+ */
8219
+ id: string;
8220
+ /**
8221
+ * Instagram handle of the collaborator.
8222
+ */
8223
+ username: (string) | null;
8224
+ /**
8225
+ * accepted or pending. Any other value Meta adds later is passed through in lowercase.
8226
+ */
8227
+ inviteStatus: (string) | null;
8228
+ };
8229
+
8183
8230
  /**
8184
8231
  * Feed aspect ratio 0.5625-1.91, carousels up to 20 items, stories require media (no captions). User tag coordinates 0.0-1.0 from top-left. Images over 8 MB and videos over platform limits are auto-compressed.
8185
8232
  */
@@ -12766,7 +12813,7 @@ export type Verification = {
12766
12813
 
12767
12814
  export type status31 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
12768
12815
 
12769
- export type channel4 = 'sms' | 'whatsapp';
12816
+ export type channel5 = 'sms' | 'whatsapp';
12770
12817
 
12771
12818
  /**
12772
12819
  * WhatsApp only, returned by GET /v1/verify/verifications/{verificationId} (null on create and check responses): what Meta reported for the latest send, null until it reports. A code that never reached the recipient (for example a number not on WhatsApp) reads failed, with the Meta error in deliveryErrorCode. failed does not settle the verification: Meta can report failed and later deliver the same message. Reported for at least an hour after the send, well past any code's expiry.
@@ -26104,6 +26151,25 @@ export type GetInstagramBusinessDiscoveryResponse = (InstagramBusinessDiscovery)
26104
26151
 
26105
26152
  export type GetInstagramBusinessDiscoveryError = (ErrorResponse);
26106
26153
 
26154
+ export type ListInstagramMediaCollaboratorsData = {
26155
+ path: {
26156
+ /**
26157
+ * The ID of a connected Instagram account (Facebook Login).
26158
+ */
26159
+ accountId: string;
26160
+ /**
26161
+ * Instagram media ID of a post published by this account (digits only, e.g. the platformPostId of a published post).
26162
+ */
26163
+ mediaId: string;
26164
+ };
26165
+ };
26166
+
26167
+ export type ListInstagramMediaCollaboratorsResponse = ({
26168
+ data: Array<InstagramMediaCollaborator>;
26169
+ });
26170
+
26171
+ export type ListInstagramMediaCollaboratorsError = (ErrorResponse);
26172
+
26107
26173
  export type GetInstagramStoryInsightsData = {
26108
26174
  path: {
26109
26175
  /**