@getlatedev/node 0.2.927 → 0.2.929
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/dist/index.d.mts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -2
- package/src/generated/types.gen.ts +32 -2
package/dist/index.d.mts
CHANGED
|
@@ -9935,11 +9935,14 @@ type UsageAttributionSlice = {
|
|
|
9935
9935
|
byProduct?: {
|
|
9936
9936
|
accounts?: number;
|
|
9937
9937
|
numbers?: number;
|
|
9938
|
+
imessage?: number;
|
|
9938
9939
|
calls?: number;
|
|
9939
9940
|
sms?: number;
|
|
9941
|
+
messages?: number;
|
|
9940
9942
|
verify?: number;
|
|
9941
9943
|
dlc?: number;
|
|
9942
9944
|
xApi?: number;
|
|
9945
|
+
ads?: number;
|
|
9943
9946
|
credits?: number;
|
|
9944
9947
|
other?: number;
|
|
9945
9948
|
};
|
|
@@ -9963,13 +9966,29 @@ type UsageMetering = {
|
|
|
9963
9966
|
date?: string;
|
|
9964
9967
|
accounts?: number;
|
|
9965
9968
|
numbers?: number;
|
|
9969
|
+
/**
|
|
9970
|
+
* iMessage sender fees.
|
|
9971
|
+
*/
|
|
9972
|
+
imessage?: number;
|
|
9966
9973
|
calls?: number;
|
|
9967
9974
|
sms?: number;
|
|
9975
|
+
/**
|
|
9976
|
+
* Managed outbound message fees.
|
|
9977
|
+
*/
|
|
9978
|
+
messages?: number;
|
|
9979
|
+
/**
|
|
9980
|
+
* Verify (per verification) fees.
|
|
9981
|
+
*/
|
|
9982
|
+
verify?: number;
|
|
9968
9983
|
/**
|
|
9969
9984
|
* 10DLC registration (brand + campaign) fees.
|
|
9970
9985
|
*/
|
|
9971
9986
|
dlc?: number;
|
|
9972
9987
|
xApi?: number;
|
|
9988
|
+
/**
|
|
9989
|
+
* Managed ads fees.
|
|
9990
|
+
*/
|
|
9991
|
+
ads?: number;
|
|
9973
9992
|
/**
|
|
9974
9993
|
* Applied credits/discounts (negative).
|
|
9975
9994
|
*/
|
|
@@ -9982,10 +10001,14 @@ type UsageMetering = {
|
|
|
9982
10001
|
totals?: {
|
|
9983
10002
|
accounts?: number;
|
|
9984
10003
|
numbers?: number;
|
|
10004
|
+
imessage?: number;
|
|
9985
10005
|
calls?: number;
|
|
9986
10006
|
sms?: number;
|
|
10007
|
+
messages?: number;
|
|
10008
|
+
verify?: number;
|
|
9987
10009
|
dlc?: number;
|
|
9988
10010
|
xApi?: number;
|
|
10011
|
+
ads?: number;
|
|
9989
10012
|
credits?: number;
|
|
9990
10013
|
other?: number;
|
|
9991
10014
|
total?: number;
|
|
@@ -9995,7 +10018,7 @@ type UsageMetering = {
|
|
|
9995
10018
|
*/
|
|
9996
10019
|
lineItems?: Array<{
|
|
9997
10020
|
name?: string;
|
|
9998
|
-
product?: 'accounts' | 'numbers' | 'calls' | 'sms' | 'dlc' | 'xApi' | 'credits' | 'other';
|
|
10021
|
+
product?: 'accounts' | 'numbers' | 'imessage' | 'calls' | 'sms' | 'messages' | 'verify' | 'dlc' | 'xApi' | 'ads' | 'credits' | 'other';
|
|
9999
10022
|
totalUsd?: number;
|
|
10000
10023
|
quantity?: number;
|
|
10001
10024
|
}>;
|
|
@@ -11360,6 +11383,10 @@ type WebhookPayloadLead = {
|
|
|
11360
11383
|
*/
|
|
11361
11384
|
accountId?: string;
|
|
11362
11385
|
platform: 'facebook';
|
|
11386
|
+
/**
|
|
11387
|
+
* Profile ID of the account that received the lead. Null when the lead has no profile on record.
|
|
11388
|
+
*/
|
|
11389
|
+
profileId: (string) | null;
|
|
11363
11390
|
};
|
|
11364
11391
|
/**
|
|
11365
11392
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -16340,7 +16367,7 @@ type GetAllAccountsHealthData = {
|
|
|
16340
16367
|
/**
|
|
16341
16368
|
* Filter by platform
|
|
16342
16369
|
*/
|
|
16343
|
-
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp';
|
|
16370
|
+
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads';
|
|
16344
16371
|
/**
|
|
16345
16372
|
* Filter by profile ID
|
|
16346
16373
|
*/
|
|
@@ -16385,6 +16412,9 @@ type GetAllAccountsHealthResponse = ({
|
|
|
16385
16412
|
canFetchAnalytics?: boolean;
|
|
16386
16413
|
tokenValid?: boolean;
|
|
16387
16414
|
tokenExpiresAt?: string;
|
|
16415
|
+
/**
|
|
16416
|
+
* True when the token is expired or revoked, permissions are missing, the account is inactive, or the platform rejected its stored credentials (the same flag the account listing reports as needsReconnection).
|
|
16417
|
+
*/
|
|
16388
16418
|
needsReconnect?: boolean;
|
|
16389
16419
|
issues?: Array<(string)>;
|
|
16390
16420
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -9935,11 +9935,14 @@ type UsageAttributionSlice = {
|
|
|
9935
9935
|
byProduct?: {
|
|
9936
9936
|
accounts?: number;
|
|
9937
9937
|
numbers?: number;
|
|
9938
|
+
imessage?: number;
|
|
9938
9939
|
calls?: number;
|
|
9939
9940
|
sms?: number;
|
|
9941
|
+
messages?: number;
|
|
9940
9942
|
verify?: number;
|
|
9941
9943
|
dlc?: number;
|
|
9942
9944
|
xApi?: number;
|
|
9945
|
+
ads?: number;
|
|
9943
9946
|
credits?: number;
|
|
9944
9947
|
other?: number;
|
|
9945
9948
|
};
|
|
@@ -9963,13 +9966,29 @@ type UsageMetering = {
|
|
|
9963
9966
|
date?: string;
|
|
9964
9967
|
accounts?: number;
|
|
9965
9968
|
numbers?: number;
|
|
9969
|
+
/**
|
|
9970
|
+
* iMessage sender fees.
|
|
9971
|
+
*/
|
|
9972
|
+
imessage?: number;
|
|
9966
9973
|
calls?: number;
|
|
9967
9974
|
sms?: number;
|
|
9975
|
+
/**
|
|
9976
|
+
* Managed outbound message fees.
|
|
9977
|
+
*/
|
|
9978
|
+
messages?: number;
|
|
9979
|
+
/**
|
|
9980
|
+
* Verify (per verification) fees.
|
|
9981
|
+
*/
|
|
9982
|
+
verify?: number;
|
|
9968
9983
|
/**
|
|
9969
9984
|
* 10DLC registration (brand + campaign) fees.
|
|
9970
9985
|
*/
|
|
9971
9986
|
dlc?: number;
|
|
9972
9987
|
xApi?: number;
|
|
9988
|
+
/**
|
|
9989
|
+
* Managed ads fees.
|
|
9990
|
+
*/
|
|
9991
|
+
ads?: number;
|
|
9973
9992
|
/**
|
|
9974
9993
|
* Applied credits/discounts (negative).
|
|
9975
9994
|
*/
|
|
@@ -9982,10 +10001,14 @@ type UsageMetering = {
|
|
|
9982
10001
|
totals?: {
|
|
9983
10002
|
accounts?: number;
|
|
9984
10003
|
numbers?: number;
|
|
10004
|
+
imessage?: number;
|
|
9985
10005
|
calls?: number;
|
|
9986
10006
|
sms?: number;
|
|
10007
|
+
messages?: number;
|
|
10008
|
+
verify?: number;
|
|
9987
10009
|
dlc?: number;
|
|
9988
10010
|
xApi?: number;
|
|
10011
|
+
ads?: number;
|
|
9989
10012
|
credits?: number;
|
|
9990
10013
|
other?: number;
|
|
9991
10014
|
total?: number;
|
|
@@ -9995,7 +10018,7 @@ type UsageMetering = {
|
|
|
9995
10018
|
*/
|
|
9996
10019
|
lineItems?: Array<{
|
|
9997
10020
|
name?: string;
|
|
9998
|
-
product?: 'accounts' | 'numbers' | 'calls' | 'sms' | 'dlc' | 'xApi' | 'credits' | 'other';
|
|
10021
|
+
product?: 'accounts' | 'numbers' | 'imessage' | 'calls' | 'sms' | 'messages' | 'verify' | 'dlc' | 'xApi' | 'ads' | 'credits' | 'other';
|
|
9999
10022
|
totalUsd?: number;
|
|
10000
10023
|
quantity?: number;
|
|
10001
10024
|
}>;
|
|
@@ -11360,6 +11383,10 @@ type WebhookPayloadLead = {
|
|
|
11360
11383
|
*/
|
|
11361
11384
|
accountId?: string;
|
|
11362
11385
|
platform: 'facebook';
|
|
11386
|
+
/**
|
|
11387
|
+
* Profile ID of the account that received the lead. Null when the lead has no profile on record.
|
|
11388
|
+
*/
|
|
11389
|
+
profileId: (string) | null;
|
|
11363
11390
|
};
|
|
11364
11391
|
/**
|
|
11365
11392
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -16340,7 +16367,7 @@ type GetAllAccountsHealthData = {
|
|
|
16340
16367
|
/**
|
|
16341
16368
|
* Filter by platform
|
|
16342
16369
|
*/
|
|
16343
|
-
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp';
|
|
16370
|
+
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads';
|
|
16344
16371
|
/**
|
|
16345
16372
|
* Filter by profile ID
|
|
16346
16373
|
*/
|
|
@@ -16385,6 +16412,9 @@ type GetAllAccountsHealthResponse = ({
|
|
|
16385
16412
|
canFetchAnalytics?: boolean;
|
|
16386
16413
|
tokenValid?: boolean;
|
|
16387
16414
|
tokenExpiresAt?: string;
|
|
16415
|
+
/**
|
|
16416
|
+
* True when the token is expired or revoked, permissions are missing, the account is inactive, or the platform rejected its stored credentials (the same flag the account listing reports as needsReconnection).
|
|
16417
|
+
*/
|
|
16388
16418
|
needsReconnect?: boolean;
|
|
16389
16419
|
issues?: Array<(string)>;
|
|
16390
16420
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.929",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.929",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -767,8 +767,9 @@ export const getXApiPricing = <ThrowOnError extends boolean = false>(options?: O
|
|
|
767
767
|
* working unchanged.
|
|
768
768
|
*
|
|
769
769
|
* **With `range`, `granularity`, `from`, or `to`:** usage METERING:
|
|
770
|
-
* billed spend (USD) by product family (`accounts`, `numbers`,
|
|
771
|
-
* `
|
|
770
|
+
* billed spend (USD) by product family (`accounts`, `numbers`,
|
|
771
|
+
* `imessage`, `calls`, `sms`, `messages`, `verify`, `dlc`, `xApi`, `ads`,
|
|
772
|
+
* `credits`, `other`) over the window, at
|
|
772
773
|
* `day` / `month` / `total` granularity, from the usage-based invoice
|
|
773
774
|
* breakdown (the CHARGE view, which always reconciles with what gets billed).
|
|
774
775
|
* Also served at `GET /v1/usage/daily`. Usage-based accounts only:
|
|
@@ -8583,11 +8583,14 @@ export type UsageAttributionSlice = {
|
|
|
8583
8583
|
byProduct?: {
|
|
8584
8584
|
accounts?: number;
|
|
8585
8585
|
numbers?: number;
|
|
8586
|
+
imessage?: number;
|
|
8586
8587
|
calls?: number;
|
|
8587
8588
|
sms?: number;
|
|
8589
|
+
messages?: number;
|
|
8588
8590
|
verify?: number;
|
|
8589
8591
|
dlc?: number;
|
|
8590
8592
|
xApi?: number;
|
|
8593
|
+
ads?: number;
|
|
8591
8594
|
credits?: number;
|
|
8592
8595
|
other?: number;
|
|
8593
8596
|
};
|
|
@@ -8612,13 +8615,29 @@ export type UsageMetering = {
|
|
|
8612
8615
|
date?: string;
|
|
8613
8616
|
accounts?: number;
|
|
8614
8617
|
numbers?: number;
|
|
8618
|
+
/**
|
|
8619
|
+
* iMessage sender fees.
|
|
8620
|
+
*/
|
|
8621
|
+
imessage?: number;
|
|
8615
8622
|
calls?: number;
|
|
8616
8623
|
sms?: number;
|
|
8624
|
+
/**
|
|
8625
|
+
* Managed outbound message fees.
|
|
8626
|
+
*/
|
|
8627
|
+
messages?: number;
|
|
8628
|
+
/**
|
|
8629
|
+
* Verify (per verification) fees.
|
|
8630
|
+
*/
|
|
8631
|
+
verify?: number;
|
|
8617
8632
|
/**
|
|
8618
8633
|
* 10DLC registration (brand + campaign) fees.
|
|
8619
8634
|
*/
|
|
8620
8635
|
dlc?: number;
|
|
8621
8636
|
xApi?: number;
|
|
8637
|
+
/**
|
|
8638
|
+
* Managed ads fees.
|
|
8639
|
+
*/
|
|
8640
|
+
ads?: number;
|
|
8622
8641
|
/**
|
|
8623
8642
|
* Applied credits/discounts (negative).
|
|
8624
8643
|
*/
|
|
@@ -8631,10 +8650,14 @@ export type UsageMetering = {
|
|
|
8631
8650
|
totals?: {
|
|
8632
8651
|
accounts?: number;
|
|
8633
8652
|
numbers?: number;
|
|
8653
|
+
imessage?: number;
|
|
8634
8654
|
calls?: number;
|
|
8635
8655
|
sms?: number;
|
|
8656
|
+
messages?: number;
|
|
8657
|
+
verify?: number;
|
|
8636
8658
|
dlc?: number;
|
|
8637
8659
|
xApi?: number;
|
|
8660
|
+
ads?: number;
|
|
8638
8661
|
credits?: number;
|
|
8639
8662
|
other?: number;
|
|
8640
8663
|
total?: number;
|
|
@@ -8644,7 +8667,7 @@ export type UsageMetering = {
|
|
|
8644
8667
|
*/
|
|
8645
8668
|
lineItems?: Array<{
|
|
8646
8669
|
name?: string;
|
|
8647
|
-
product?: 'accounts' | 'numbers' | 'calls' | 'sms' | 'dlc' | 'xApi' | 'credits' | 'other';
|
|
8670
|
+
product?: 'accounts' | 'numbers' | 'imessage' | 'calls' | 'sms' | 'messages' | 'verify' | 'dlc' | 'xApi' | 'ads' | 'credits' | 'other';
|
|
8648
8671
|
totalUsd?: number;
|
|
8649
8672
|
quantity?: number;
|
|
8650
8673
|
}>;
|
|
@@ -10065,6 +10088,10 @@ export type WebhookPayloadLead = {
|
|
|
10065
10088
|
*/
|
|
10066
10089
|
accountId?: string;
|
|
10067
10090
|
platform: 'facebook';
|
|
10091
|
+
/**
|
|
10092
|
+
* Profile ID of the account that received the lead. Null when the lead has no profile on record.
|
|
10093
|
+
*/
|
|
10094
|
+
profileId: (string) | null;
|
|
10068
10095
|
};
|
|
10069
10096
|
/**
|
|
10070
10097
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -15336,7 +15363,7 @@ export type GetAllAccountsHealthData = {
|
|
|
15336
15363
|
/**
|
|
15337
15364
|
* Filter by platform
|
|
15338
15365
|
*/
|
|
15339
|
-
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp';
|
|
15366
|
+
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads';
|
|
15340
15367
|
/**
|
|
15341
15368
|
* Filter by profile ID
|
|
15342
15369
|
*/
|
|
@@ -15382,6 +15409,9 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
15382
15409
|
canFetchAnalytics?: boolean;
|
|
15383
15410
|
tokenValid?: boolean;
|
|
15384
15411
|
tokenExpiresAt?: string;
|
|
15412
|
+
/**
|
|
15413
|
+
* True when the token is expired or revoked, permissions are missing, the account is inactive, or the platform rejected its stored credentials (the same flag the account listing reports as needsReconnection).
|
|
15414
|
+
*/
|
|
15385
15415
|
needsReconnect?: boolean;
|
|
15386
15416
|
issues?: Array<(string)>;
|
|
15387
15417
|
/**
|