@getlatedev/node 0.2.1695 → 0.2.1697

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.
@@ -13511,6 +13511,10 @@ export type HubSpotSettings = {
13511
13511
  * Whether Zernio logs inbox messages on HubSpot contact timelines.
13512
13512
  */
13513
13513
  logMessages: boolean;
13514
+ /**
13515
+ * Whether Zernio keeps the delivery status (sent, delivered, read, played, failed) of logged outgoing messages up to date on their HubSpot timeline entries. Only applies while `logMessages` is on. Defaults to `true`.
13516
+ */
13517
+ logDeliveryStatus: boolean;
13514
13518
  /**
13515
13519
  * Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
13516
13520
  */
@@ -18297,6 +18301,73 @@ export type RfPrediction = {
18297
18301
  expiresAt?: (string) | null;
18298
18302
  };
18299
18303
 
18304
+ export type SalesforceSettings = {
18305
+ /**
18306
+ * Zernio account ID of the Salesforce connection.
18307
+ */
18308
+ _id: string;
18309
+ platform: 'salesforce';
18310
+ /**
18311
+ * 18-character Salesforce organization ID.
18312
+ */
18313
+ orgId: string;
18314
+ /**
18315
+ * The org's name, when the connected user can read it.
18316
+ */
18317
+ orgName: (string) | null;
18318
+ /**
18319
+ * Whether the org was connected through login.salesforce.com or test.salesforce.com.
18320
+ */
18321
+ environment: 'production' | 'sandbox';
18322
+ /**
18323
+ * The org's API host, for example `https://acme.my.salesforce.com`.
18324
+ */
18325
+ instanceUrl: string;
18326
+ /**
18327
+ * Email or username of the Salesforce user who connected the org.
18328
+ */
18329
+ installedBy: (string) | null;
18330
+ /**
18331
+ * Whether Zernio creates a Lead or Contact (per `createAs`) for an inbox contact that matches nobody by phone or email.
18332
+ */
18333
+ syncContacts: boolean;
18334
+ /**
18335
+ * Whether Zernio logs inbox messages. Each person, channel and UTC day gets one completed Task (subject `WhatsApp conversation · 2026-11-17`) whose Description holds the transcript; a day past 32,000 characters continues in a Task marked "(part 2)".
18336
+ */
18337
+ logMessages: boolean;
18338
+ /**
18339
+ * What a person new to Salesforce is created as.
18340
+ */
18341
+ createAs: 'lead' | 'contact';
18342
+ /**
18343
+ * Whether sent messages in the transcript are marked delivered, read or failed.
18344
+ */
18345
+ logDeliveryStatus: boolean;
18346
+ /**
18347
+ * Set while the org refuses Zernio's writes for a reason only its admin can fix (field-level security, a validation rule, a duplicate rule); cleared by the next accepted write. The account's health shows it too.
18348
+ */
18349
+ syncIssue: {
18350
+ /**
18351
+ * The Salesforce error code, such as `FIELD_CUSTOM_VALIDATION_EXCEPTION`.
18352
+ */
18353
+ code: string;
18354
+ message: string;
18355
+ at: string;
18356
+ } | null;
18357
+ };
18358
+
18359
+ export type platform16 = 'salesforce';
18360
+
18361
+ /**
18362
+ * Whether the org was connected through login.salesforce.com or test.salesforce.com.
18363
+ */
18364
+ export type environment = 'production' | 'sandbox';
18365
+
18366
+ /**
18367
+ * What a person new to Salesforce is created as.
18368
+ */
18369
+ export type createAs = 'lead' | 'contact';
18370
+
18300
18371
  /**
18301
18372
  * One check of a scheduled automation.
18302
18373
  */
@@ -18571,7 +18642,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
18571
18642
 
18572
18643
  export type SocialAccount = {
18573
18644
  _id: string;
18574
- platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'applovinads' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe';
18645
+ platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'applovinads' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe';
18575
18646
  profileId: (string | Profile);
18576
18647
  username?: string;
18577
18648
  displayName?: string;
@@ -18717,7 +18788,7 @@ export type SocialAccount = {
18717
18788
  };
18718
18789
  };
18719
18790
 
18720
- export type platform16 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'applovinads' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe';
18791
+ export type platform17 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'applovinads' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe';
18721
18792
 
18722
18793
  /**
18723
18794
  * TikTok accounts only. The account type TikTok reported when the account was connected.
@@ -18796,7 +18867,7 @@ export type StoredEvent = {
18796
18867
  } | null;
18797
18868
  };
18798
18869
 
18799
- export type platform17 = 'googleads' | 'metaads';
18870
+ export type platform18 = 'googleads' | 'metaads';
18800
18871
 
18801
18872
  /**
18802
18873
  * A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, the Zernio embedded script on a Wix site, or the Zernio custom code script on a Webflow site. Fields marked with a platform are present only for it.
@@ -18897,7 +18968,7 @@ export type StripeSettings = {
18897
18968
  forwardSales: boolean;
18898
18969
  };
18899
18970
 
18900
- export type platform18 = 'stripe';
18971
+ export type platform19 = 'stripe';
18901
18972
 
18902
18973
  export type SupportRun = {
18903
18974
  /**
@@ -19843,7 +19914,7 @@ export type TrackingTag = {
19843
19914
  autoTagging?: boolean;
19844
19915
  };
19845
19916
 
19846
- export type platform19 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads' | 'applovinads';
19917
+ export type platform20 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads' | 'applovinads';
19847
19918
 
19848
19919
  /**
19849
19920
  * Platform-native flavor of the tag (Meta: `pixel`).
@@ -23864,7 +23935,7 @@ export type WebhookPayloadComment = {
23864
23935
 
23865
23936
  export type event43 = 'comment.received';
23866
23937
 
23867
- export type platform20 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
23938
+ export type platform21 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
23868
23939
 
23869
23940
  export type WebhookPayloadCommerceOrder = {
23870
23941
  /**
@@ -24898,7 +24969,7 @@ export type WebhookPayloadMention = {
24898
24969
 
24899
24970
  export type event65 = 'mention.received';
24900
24971
 
24901
- export type platform21 = 'instagram' | 'facebook' | 'linkedin';
24972
+ export type platform22 = 'instagram' | 'facebook' | 'linkedin';
24902
24973
 
24903
24974
  /**
24904
24975
  * Null on LinkedIn.
@@ -25903,7 +25974,7 @@ export type event70 = 'message.sent';
25903
25974
  /**
25904
25975
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
25905
25976
  */
25906
- export type platform22 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage' | 'line' | 'wechat';
25977
+ export type platform23 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage' | 'line' | 'wechat';
25907
25978
 
25908
25979
  /**
25909
25980
  * WhatsApp send origin. Absent on non-WhatsApp platforms.
@@ -26823,7 +26894,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
26823
26894
 
26824
26895
  export type event86 = 'whatsapp.account.alert_received';
26825
26896
 
26826
- export type platform23 = 'whatsapp';
26897
+ export type platform24 = 'whatsapp';
26827
26898
 
26828
26899
  /**
26829
26900
  * Webhook payload for the `whatsapp.account.name_status_updated` event, fired when Meta finishes reviewing a WhatsApp display-name change on a connected number. Maps Meta's `phone_number_name_update` WABA webhook field onto our event envelope.
@@ -33828,7 +33899,7 @@ export type ListAccountsData = {
33828
33899
  */
33829
33900
  adAccountRows?: boolean;
33830
33901
  /**
33831
- * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit, Microsoft), communication = WhatsApp, Telegram, Discord, Slack, iMessage, LINE and WeChat, blogs = Shopify and WordPress, crm = HubSpot, analytics = Google Analytics, social = every other platform.
33902
+ * Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit, Microsoft), communication = WhatsApp, Telegram, Discord, Slack, iMessage, LINE and WeChat, blogs = Shopify and WordPress, crm = HubSpot and Salesforce, analytics = Google Analytics, social = every other platform.
33832
33903
  */
33833
33904
  category?: 'social' | 'ads' | 'communication' | 'blogs' | 'crm' | 'analytics';
33834
33905
  /**
@@ -36265,6 +36336,91 @@ export type GetHubSpotConnectUrlError = (ErrorResponse | {
36265
36336
  };
36266
36337
  } | unknown);
36267
36338
 
36339
+ export type GetSalesforceConnectUrlData = {
36340
+ query: {
36341
+ /**
36342
+ * Sign in at login.salesforce.com (`production`, also Developer Edition orgs) or test.salesforce.com (`sandbox`).
36343
+ */
36344
+ environment?: 'production' | 'sandbox';
36345
+ /**
36346
+ * Your Zernio profile ID (get from /v1/profiles).
36347
+ */
36348
+ profileId: string;
36349
+ /**
36350
+ * Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
36351
+ */
36352
+ redirect_url?: string;
36353
+ };
36354
+ };
36355
+
36356
+ export type GetSalesforceConnectUrlResponse = ({
36357
+ /**
36358
+ * Salesforce URL to open in the user agent.
36359
+ */
36360
+ authUrl: string;
36361
+ /**
36362
+ * Authenticated, expiring OAuth state handled by the callback.
36363
+ */
36364
+ state: string;
36365
+ });
36366
+
36367
+ export type GetSalesforceConnectUrlError = (ErrorResponse | {
36368
+ /**
36369
+ * Human-readable error message suitable for end-user display.
36370
+ */
36371
+ error: string;
36372
+ /**
36373
+ * Machine-readable error code. Stable across versions.
36374
+ */
36375
+ code: 'PAYMENT_REQUIRED';
36376
+ /**
36377
+ * Discriminator for which gate fired.
36378
+ */
36379
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
36380
+ /**
36381
+ * Link to the relevant documentation page.
36382
+ */
36383
+ documentation_url?: string;
36384
+ /**
36385
+ * Deep-link to send the end-user to. For
36386
+ * `free_tier_exceeded` and `twitter_passthrough` this opens
36387
+ * the add-payment-method drawer on the Zernio billing page.
36388
+ * For `enterprise_required` this is the Zernio enterprise
36389
+ * contact page.
36390
+ *
36391
+ */
36392
+ dashboard_url?: string;
36393
+ /**
36394
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
36395
+ */
36396
+ details?: {
36397
+ /**
36398
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
36399
+ */
36400
+ free_tier_account_limit?: number;
36401
+ /**
36402
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
36403
+ */
36404
+ current_account_count?: number;
36405
+ /**
36406
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
36407
+ */
36408
+ has_payment_method?: boolean;
36409
+ /**
36410
+ * One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
36411
+ */
36412
+ verification_amount_cents?: number;
36413
+ /**
36414
+ * The negotiated connected-account cap from the
36415
+ * team's enterprise contract. Self-service teams
36416
+ * have no cap and never receive this reason. Only
36417
+ * set when reason=enterprise_required.
36418
+ *
36419
+ */
36420
+ effective_account_limit?: number;
36421
+ };
36422
+ } | unknown);
36423
+
36268
36424
  export type GetStripeConnectUrlData = {
36269
36425
  query: {
36270
36426
  /**
@@ -42051,6 +42207,10 @@ export type UpdateHubSpotSettingsData = {
42051
42207
  * Log inbound and outbound inbox messages on the contact's HubSpot timeline.
42052
42208
  */
42053
42209
  logMessages?: boolean;
42210
+ /**
42211
+ * Add the delivery status of each outgoing WhatsApp, SMS or RCS message to its timeline entry and update it as the message is delivered, read or fails. A failure shows the reason and its code. Only applies while `logMessages` is on.
42212
+ */
42213
+ logDeliveryStatus?: boolean;
42054
42214
  /**
42055
42215
  * Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
42056
42216
  */
@@ -42072,6 +42232,49 @@ export type UpdateHubSpotSettingsResponse = ({
42072
42232
 
42073
42233
  export type UpdateHubSpotSettingsError = (ErrorResponse | unknown);
42074
42234
 
42235
+ export type GetSalesforceSettingsData = {
42236
+ path: {
42237
+ accountId: string;
42238
+ };
42239
+ };
42240
+
42241
+ export type GetSalesforceSettingsResponse = ({
42242
+ account?: SalesforceSettings;
42243
+ });
42244
+
42245
+ export type GetSalesforceSettingsError = (ErrorResponse | unknown);
42246
+
42247
+ export type UpdateSalesforceSettingsData = {
42248
+ body: {
42249
+ /**
42250
+ * Create a Lead or Contact for an inbox contact that matches nobody by phone (any phone field) or email. A match is linked as it is and never updated.
42251
+ */
42252
+ syncContacts?: boolean;
42253
+ /**
42254
+ * Log inbound and outbound inbox messages as one conversation Task per person, channel and day.
42255
+ */
42256
+ logMessages?: boolean;
42257
+ /**
42258
+ * What a person new to Salesforce is created as. Leads get Company `[not provided]`.
42259
+ */
42260
+ createAs?: 'lead' | 'contact';
42261
+ /**
42262
+ * Mark sent messages in the transcript as delivered, read or failed.
42263
+ */
42264
+ logDeliveryStatus?: boolean;
42265
+ };
42266
+ path: {
42267
+ accountId: string;
42268
+ };
42269
+ };
42270
+
42271
+ export type UpdateSalesforceSettingsResponse = ({
42272
+ message?: string;
42273
+ account?: SalesforceSettings;
42274
+ });
42275
+
42276
+ export type UpdateSalesforceSettingsError = (ErrorResponse | unknown);
42277
+
42075
42278
  export type GetStripeSettingsData = {
42076
42279
  path: {
42077
42280
  accountId: string;