@zernio/node 0.2.422 → 0.2.424
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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -1
- package/src/generated/types.gen.ts +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -8174,6 +8174,10 @@ type ValidatePostData = {
|
|
|
8174
8174
|
*/
|
|
8175
8175
|
platforms: Array<{
|
|
8176
8176
|
platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
|
|
8177
|
+
/**
|
|
8178
|
+
* Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
|
|
8179
|
+
*/
|
|
8180
|
+
accountId?: string;
|
|
8177
8181
|
customContent?: string;
|
|
8178
8182
|
platformSpecificData?: {
|
|
8179
8183
|
[key: string]: unknown;
|
|
@@ -25781,7 +25785,7 @@ type ListAdAccountsResponse = ({
|
|
|
25781
25785
|
});
|
|
25782
25786
|
type ListAdAccountsError = ({
|
|
25783
25787
|
error?: string;
|
|
25784
|
-
} | unknown);
|
|
25788
|
+
} | unknown | ErrorResponse);
|
|
25785
25789
|
type UpdateAdAccountData = {
|
|
25786
25790
|
body: {
|
|
25787
25791
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8174,6 +8174,10 @@ type ValidatePostData = {
|
|
|
8174
8174
|
*/
|
|
8175
8175
|
platforms: Array<{
|
|
8176
8176
|
platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
|
|
8177
|
+
/**
|
|
8178
|
+
* Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
|
|
8179
|
+
*/
|
|
8180
|
+
accountId?: string;
|
|
8177
8181
|
customContent?: string;
|
|
8178
8182
|
platformSpecificData?: {
|
|
8179
8183
|
[key: string]: unknown;
|
|
@@ -25781,7 +25785,7 @@ type ListAdAccountsResponse = ({
|
|
|
25781
25785
|
});
|
|
25782
25786
|
type ListAdAccountsError = ({
|
|
25783
25787
|
error?: string;
|
|
25784
|
-
} | unknown);
|
|
25788
|
+
} | unknown | ErrorResponse);
|
|
25785
25789
|
type UpdateAdAccountData = {
|
|
25786
25790
|
body: {
|
|
25787
25791
|
/**
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.424",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.424",
|
|
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
|
@@ -25,7 +25,7 @@ export const validatePostLength = <ThrowOnError extends boolean = false>(options
|
|
|
25
25
|
* Validate post content
|
|
26
26
|
* Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations.
|
|
27
27
|
*
|
|
28
|
-
* Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
28
|
+
* Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error.
|
|
29
29
|
*
|
|
30
30
|
* Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
31
31
|
*
|
|
@@ -7199,6 +7199,9 @@ export const getAdAccountFinance = <ThrowOnError extends boolean = false>(option
|
|
|
7199
7199
|
* without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the
|
|
7200
7200
|
* SocialAccount; lazy-refreshed on first call after expiry.
|
|
7201
7201
|
*
|
|
7202
|
+
* For Google Ads: responds `429` when Google's API quota is temporarily exhausted
|
|
7203
|
+
* (instead of an empty list). Retry after a delay.
|
|
7204
|
+
*
|
|
7202
7205
|
*/
|
|
7203
7206
|
export const listAdAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdAccountsData, ThrowOnError>) => {
|
|
7204
7207
|
return (options?.client ?? client).get<ListAdAccountsResponse, ListAdAccountsError, ThrowOnError>({
|
|
@@ -7293,6 +7293,10 @@ export type ValidatePostData = {
|
|
|
7293
7293
|
*/
|
|
7294
7294
|
platforms: Array<{
|
|
7295
7295
|
platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
|
|
7296
|
+
/**
|
|
7297
|
+
* Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
|
|
7298
|
+
*/
|
|
7299
|
+
accountId?: string;
|
|
7296
7300
|
customContent?: string;
|
|
7297
7301
|
platformSpecificData?: {
|
|
7298
7302
|
[key: string]: unknown;
|
|
@@ -26276,7 +26280,7 @@ export type ListAdAccountsResponse = ({
|
|
|
26276
26280
|
|
|
26277
26281
|
export type ListAdAccountsError = ({
|
|
26278
26282
|
error?: string;
|
|
26279
|
-
} | unknown);
|
|
26283
|
+
} | unknown | ErrorResponse);
|
|
26280
26284
|
|
|
26281
26285
|
export type UpdateAdAccountData = {
|
|
26282
26286
|
body: {
|