@getlatedev/node 0.2.1656 → 0.2.1658
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 +2 -0
- package/dist/index.d.mts +78 -12
- package/dist/index.d.ts +78 -12
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +50 -10
- package/src/generated/types.gen.ts +78 -7
|
@@ -18357,6 +18357,17 @@ export type SlackPlatformData = {
|
|
|
18357
18357
|
iconUrl?: string;
|
|
18358
18358
|
};
|
|
18359
18359
|
|
|
18360
|
+
export type SmsOptOutRequest = {
|
|
18361
|
+
/**
|
|
18362
|
+
* ID of the SMS number account the opt-out applies to (from `GET /v1/accounts`).
|
|
18363
|
+
*/
|
|
18364
|
+
accountId: string;
|
|
18365
|
+
/**
|
|
18366
|
+
* Recipient phone number in E.164 format, e.g. +13105559999.
|
|
18367
|
+
*/
|
|
18368
|
+
phone: string;
|
|
18369
|
+
};
|
|
18370
|
+
|
|
18360
18371
|
/**
|
|
18361
18372
|
* An open change request written as points. Answer each point with POST /v1/sms/registrations/{id}/respond: `answer` says what each point needs (text, a link, a hosted document, or a link or a document).
|
|
18362
18373
|
*/
|
|
@@ -18560,6 +18571,10 @@ export type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
|
18560
18571
|
|
|
18561
18572
|
export type StoredEvent = {
|
|
18562
18573
|
eventId?: string;
|
|
18574
|
+
/**
|
|
18575
|
+
* The profile the event was stored under.
|
|
18576
|
+
*/
|
|
18577
|
+
profileId?: string;
|
|
18563
18578
|
/**
|
|
18564
18579
|
* Where the event came from: `api`, `relay`, `web`, `shopify`, `woocommerce`, `hubspot`, `meta_leads`, `google_leads`, `linkedin_leads` or `tiktok_leads`.
|
|
18565
18580
|
*/
|
|
@@ -50558,12 +50573,54 @@ export type ListSmsOptOutsResponse = ({
|
|
|
50558
50573
|
* Which of your numbers the recipient opted out from.
|
|
50559
50574
|
*/
|
|
50560
50575
|
from?: (string) | null;
|
|
50576
|
+
/**
|
|
50577
|
+
* `inbound_stop` when the recipient texted an opt-out keyword, `api` when recorded with `POST /v1/sms/opt-outs`. Null when unknown.
|
|
50578
|
+
*/
|
|
50579
|
+
source?: ('inbound_stop' | 'api') | null;
|
|
50561
50580
|
}>;
|
|
50562
50581
|
count?: number;
|
|
50563
50582
|
});
|
|
50564
50583
|
|
|
50565
50584
|
export type ListSmsOptOutsError = (ErrorResponse);
|
|
50566
50585
|
|
|
50586
|
+
export type CreateSmsOptOutData = {
|
|
50587
|
+
body: SmsOptOutRequest;
|
|
50588
|
+
};
|
|
50589
|
+
|
|
50590
|
+
export type CreateSmsOptOutResponse = ({
|
|
50591
|
+
accountId?: string;
|
|
50592
|
+
phoneNumber?: string;
|
|
50593
|
+
/**
|
|
50594
|
+
* Always true.
|
|
50595
|
+
*/
|
|
50596
|
+
optedOut?: boolean;
|
|
50597
|
+
/**
|
|
50598
|
+
* What set the current opt-out.
|
|
50599
|
+
*/
|
|
50600
|
+
source?: 'api' | 'inbound_stop';
|
|
50601
|
+
});
|
|
50602
|
+
|
|
50603
|
+
export type CreateSmsOptOutError = (ErrorResponse | {
|
|
50604
|
+
error?: string;
|
|
50605
|
+
});
|
|
50606
|
+
|
|
50607
|
+
export type DeleteSmsOptOutData = {
|
|
50608
|
+
body: SmsOptOutRequest;
|
|
50609
|
+
};
|
|
50610
|
+
|
|
50611
|
+
export type DeleteSmsOptOutResponse = ({
|
|
50612
|
+
accountId?: string;
|
|
50613
|
+
phoneNumber?: string;
|
|
50614
|
+
/**
|
|
50615
|
+
* Always false.
|
|
50616
|
+
*/
|
|
50617
|
+
optedOut?: boolean;
|
|
50618
|
+
});
|
|
50619
|
+
|
|
50620
|
+
export type DeleteSmsOptOutError = (ErrorResponse | {
|
|
50621
|
+
error?: string;
|
|
50622
|
+
});
|
|
50623
|
+
|
|
50567
50624
|
export type CreateSmsSenderIdData = {
|
|
50568
50625
|
body: {
|
|
50569
50626
|
/**
|
|
@@ -73028,7 +73085,7 @@ export type RemoveCustomConversionGoalResponse = ({
|
|
|
73028
73085
|
export type RemoveCustomConversionGoalError = (ErrorResponse | unknown);
|
|
73029
73086
|
|
|
73030
73087
|
export type ListEventsData = {
|
|
73031
|
-
query
|
|
73088
|
+
query?: {
|
|
73032
73089
|
/**
|
|
73033
73090
|
* `nextCursor` from the previous page.
|
|
73034
73091
|
*/
|
|
@@ -73050,7 +73107,10 @@ export type ListEventsData = {
|
|
|
73050
73107
|
* Only events sent to this ad platform, such as `metaads` or `googleads`.
|
|
73051
73108
|
*/
|
|
73052
73109
|
platform?: string;
|
|
73053
|
-
|
|
73110
|
+
/**
|
|
73111
|
+
* The profile to list. Omit to cover every profile you can access.
|
|
73112
|
+
*/
|
|
73113
|
+
profileId?: string;
|
|
73054
73114
|
/**
|
|
73055
73115
|
* Only events from this source, such as `stripe` for the payments of a connected Stripe account.
|
|
73056
73116
|
*/
|
|
@@ -73211,8 +73271,11 @@ export type SendEventsError = (ErrorResponse | {
|
|
|
73211
73271
|
} | unknown);
|
|
73212
73272
|
|
|
73213
73273
|
export type GetEventsOverviewData = {
|
|
73214
|
-
query
|
|
73215
|
-
|
|
73274
|
+
query?: {
|
|
73275
|
+
/**
|
|
73276
|
+
* The profile to read. Omit to cover every profile you can access, summed across them.
|
|
73277
|
+
*/
|
|
73278
|
+
profileId?: string;
|
|
73216
73279
|
};
|
|
73217
73280
|
};
|
|
73218
73281
|
|
|
@@ -73244,9 +73307,13 @@ export type GetEventsOverviewResponse = ({
|
|
|
73244
73307
|
matched?: number;
|
|
73245
73308
|
};
|
|
73246
73309
|
/**
|
|
73247
|
-
* One entry per forwarding rule of the
|
|
73310
|
+
* One entry per forwarding rule of the profiles covered.
|
|
73248
73311
|
*/
|
|
73249
73312
|
platforms?: Array<{
|
|
73313
|
+
/**
|
|
73314
|
+
* The profile the forwarding rule belongs to.
|
|
73315
|
+
*/
|
|
73316
|
+
profileId?: string;
|
|
73250
73317
|
accountId?: string;
|
|
73251
73318
|
/**
|
|
73252
73319
|
* Ad platform, such as `metaads` or `googleads`.
|
|
@@ -73306,7 +73373,7 @@ export type GetEventsOverviewResponse = ({
|
|
|
73306
73373
|
lastSeenAt?: (string) | null;
|
|
73307
73374
|
}>;
|
|
73308
73375
|
/**
|
|
73309
|
-
* `null` when
|
|
73376
|
+
* `null` when no profile covered has a tracking site. Hit counts are approximate distinct counts.
|
|
73310
73377
|
*/
|
|
73311
73378
|
website?: {
|
|
73312
73379
|
/**
|
|
@@ -73346,10 +73413,14 @@ export type GetEventsOverviewResponse = ({
|
|
|
73346
73413
|
serverPlatforms?: Array<(string)>;
|
|
73347
73414
|
} | null;
|
|
73348
73415
|
/**
|
|
73349
|
-
* Each tracking site of the
|
|
73416
|
+
* Each tracking site of the profiles covered, with its activity. Hit counts are approximate distinct counts without bots.
|
|
73350
73417
|
*/
|
|
73351
73418
|
sites?: Array<{
|
|
73352
73419
|
siteId?: string;
|
|
73420
|
+
/**
|
|
73421
|
+
* The profile the site belongs to.
|
|
73422
|
+
*/
|
|
73423
|
+
profileId?: string;
|
|
73353
73424
|
/**
|
|
73354
73425
|
* Hits today.
|
|
73355
73426
|
*/
|