@getlatedev/node 0.2.1696 → 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.
- package/README.md +3 -0
- package/dist/index.d.mts +196 -11
- package/dist/index.d.ts +196 -11
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +51 -1
- package/src/generated/types.gen.ts +205 -10
|
@@ -18301,6 +18301,73 @@ export type RfPrediction = {
|
|
|
18301
18301
|
expiresAt?: (string) | null;
|
|
18302
18302
|
};
|
|
18303
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
|
+
|
|
18304
18371
|
/**
|
|
18305
18372
|
* One check of a scheduled automation.
|
|
18306
18373
|
*/
|
|
@@ -18575,7 +18642,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
|
18575
18642
|
|
|
18576
18643
|
export type SocialAccount = {
|
|
18577
18644
|
_id: string;
|
|
18578
|
-
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';
|
|
18579
18646
|
profileId: (string | Profile);
|
|
18580
18647
|
username?: string;
|
|
18581
18648
|
displayName?: string;
|
|
@@ -18721,7 +18788,7 @@ export type SocialAccount = {
|
|
|
18721
18788
|
};
|
|
18722
18789
|
};
|
|
18723
18790
|
|
|
18724
|
-
export type
|
|
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';
|
|
18725
18792
|
|
|
18726
18793
|
/**
|
|
18727
18794
|
* TikTok accounts only. The account type TikTok reported when the account was connected.
|
|
@@ -18800,7 +18867,7 @@ export type StoredEvent = {
|
|
|
18800
18867
|
} | null;
|
|
18801
18868
|
};
|
|
18802
18869
|
|
|
18803
|
-
export type
|
|
18870
|
+
export type platform18 = 'googleads' | 'metaads';
|
|
18804
18871
|
|
|
18805
18872
|
/**
|
|
18806
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.
|
|
@@ -18901,7 +18968,7 @@ export type StripeSettings = {
|
|
|
18901
18968
|
forwardSales: boolean;
|
|
18902
18969
|
};
|
|
18903
18970
|
|
|
18904
|
-
export type
|
|
18971
|
+
export type platform19 = 'stripe';
|
|
18905
18972
|
|
|
18906
18973
|
export type SupportRun = {
|
|
18907
18974
|
/**
|
|
@@ -19847,7 +19914,7 @@ export type TrackingTag = {
|
|
|
19847
19914
|
autoTagging?: boolean;
|
|
19848
19915
|
};
|
|
19849
19916
|
|
|
19850
|
-
export type
|
|
19917
|
+
export type platform20 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads' | 'applovinads';
|
|
19851
19918
|
|
|
19852
19919
|
/**
|
|
19853
19920
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
@@ -23868,7 +23935,7 @@ export type WebhookPayloadComment = {
|
|
|
23868
23935
|
|
|
23869
23936
|
export type event43 = 'comment.received';
|
|
23870
23937
|
|
|
23871
|
-
export type
|
|
23938
|
+
export type platform21 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
|
|
23872
23939
|
|
|
23873
23940
|
export type WebhookPayloadCommerceOrder = {
|
|
23874
23941
|
/**
|
|
@@ -24902,7 +24969,7 @@ export type WebhookPayloadMention = {
|
|
|
24902
24969
|
|
|
24903
24970
|
export type event65 = 'mention.received';
|
|
24904
24971
|
|
|
24905
|
-
export type
|
|
24972
|
+
export type platform22 = 'instagram' | 'facebook' | 'linkedin';
|
|
24906
24973
|
|
|
24907
24974
|
/**
|
|
24908
24975
|
* Null on LinkedIn.
|
|
@@ -25907,7 +25974,7 @@ export type event70 = 'message.sent';
|
|
|
25907
25974
|
/**
|
|
25908
25975
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
25909
25976
|
*/
|
|
25910
|
-
export type
|
|
25977
|
+
export type platform23 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage' | 'line' | 'wechat';
|
|
25911
25978
|
|
|
25912
25979
|
/**
|
|
25913
25980
|
* WhatsApp send origin. Absent on non-WhatsApp platforms.
|
|
@@ -26827,7 +26894,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
26827
26894
|
|
|
26828
26895
|
export type event86 = 'whatsapp.account.alert_received';
|
|
26829
26896
|
|
|
26830
|
-
export type
|
|
26897
|
+
export type platform24 = 'whatsapp';
|
|
26831
26898
|
|
|
26832
26899
|
/**
|
|
26833
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.
|
|
@@ -33832,7 +33899,7 @@ export type ListAccountsData = {
|
|
|
33832
33899
|
*/
|
|
33833
33900
|
adAccountRows?: boolean;
|
|
33834
33901
|
/**
|
|
33835
|
-
* 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.
|
|
33836
33903
|
*/
|
|
33837
33904
|
category?: 'social' | 'ads' | 'communication' | 'blogs' | 'crm' | 'analytics';
|
|
33838
33905
|
/**
|
|
@@ -36269,6 +36336,91 @@ export type GetHubSpotConnectUrlError = (ErrorResponse | {
|
|
|
36269
36336
|
};
|
|
36270
36337
|
} | unknown);
|
|
36271
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
|
+
|
|
36272
36424
|
export type GetStripeConnectUrlData = {
|
|
36273
36425
|
query: {
|
|
36274
36426
|
/**
|
|
@@ -42080,6 +42232,49 @@ export type UpdateHubSpotSettingsResponse = ({
|
|
|
42080
42232
|
|
|
42081
42233
|
export type UpdateHubSpotSettingsError = (ErrorResponse | unknown);
|
|
42082
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
|
+
|
|
42083
42278
|
export type GetStripeSettingsData = {
|
|
42084
42279
|
path: {
|
|
42085
42280
|
accountId: string;
|