@zernio/node 0.2.423 → 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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +4 -0
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;
|
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;
|
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
|
*
|
|
@@ -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;
|