@getlatedev/node 0.2.1272 → 0.2.1274
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +8 -0
- package/src/generated/types.gen.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -23081,6 +23081,9 @@ type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
23081
23081
|
type HandleOAuthCallbackData = {
|
|
23082
23082
|
body: {
|
|
23083
23083
|
code: string;
|
|
23084
|
+
/**
|
|
23085
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
23086
|
+
*/
|
|
23084
23087
|
state: string;
|
|
23085
23088
|
profileId: string;
|
|
23086
23089
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -23081,6 +23081,9 @@ type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
23081
23081
|
type HandleOAuthCallbackData = {
|
|
23082
23082
|
body: {
|
|
23083
23083
|
code: string;
|
|
23084
|
+
/**
|
|
23085
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
23086
|
+
*/
|
|
23084
23087
|
state: string;
|
|
23085
23088
|
profileId: string;
|
|
23086
23089
|
};
|
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.1274",
|
|
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.1274",
|
|
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
|
@@ -11457,6 +11457,14 @@ export const getAdReview = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
11457
11457
|
* (creator content, authorized TikTok posts, Creative Library content) and lists each image of a
|
|
11458
11458
|
* carousel under its own material id, so those entries come back with the review verdict and
|
|
11459
11459
|
* null descriptive fields. TikTok returns no review timestamp; `readAt` is when Zernio read it.
|
|
11460
|
+
*
|
|
11461
|
+
* TikTok's review endpoint has a strict quota of its own. One TikTok call reads the review of
|
|
11462
|
+
* every live Smart+ ad of the ad group (up to 100), and each review is cached for 10 minutes per
|
|
11463
|
+
* connection, advertiser and Smart+ ad, so sibling ads are answered from the cache and `readAt`
|
|
11464
|
+
* can be up to 10 minutes old. Read reviews when you need them instead of sweeping every ad on a
|
|
11465
|
+
* loop. When TikTok answers over quota, Zernio returns 429 with `Retry-After: 60` and answers
|
|
11466
|
+
* 429 for that advertiser and connection without calling TikTok until the minute is over; cached
|
|
11467
|
+
* reviews are still served.
|
|
11460
11468
|
*/
|
|
11461
11469
|
export const getTikTokSmartPlusAdReview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokSmartPlusAdReviewData, ThrowOnError>) => {
|
|
11462
11470
|
return (options?.client ?? client).get<GetTikTokSmartPlusAdReviewResponse, GetTikTokSmartPlusAdReviewError, ThrowOnError>({
|
|
@@ -22030,6 +22030,9 @@ export type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
22030
22030
|
export type HandleOAuthCallbackData = {
|
|
22031
22031
|
body: {
|
|
22032
22032
|
code: string;
|
|
22033
|
+
/**
|
|
22034
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
22035
|
+
*/
|
|
22033
22036
|
state: string;
|
|
22034
22037
|
profileId: string;
|
|
22035
22038
|
};
|