@zernio/node 0.2.674 → 0.2.676
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 +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +20 -2
package/dist/index.d.mts
CHANGED
|
@@ -5901,8 +5901,7 @@ type Post = {
|
|
|
5901
5901
|
_id?: string;
|
|
5902
5902
|
userId?: (string | User);
|
|
5903
5903
|
/**
|
|
5904
|
-
* YouTube
|
|
5905
|
-
*
|
|
5904
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
5906
5905
|
*/
|
|
5907
5906
|
title?: string;
|
|
5908
5907
|
content?: string;
|
|
@@ -5915,6 +5914,9 @@ type Post = {
|
|
|
5915
5914
|
* YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates removed.
|
|
5916
5915
|
*/
|
|
5917
5916
|
tags?: Array<(string)>;
|
|
5917
|
+
/**
|
|
5918
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
5919
|
+
*/
|
|
5918
5920
|
hashtags?: Array<(string)>;
|
|
5919
5921
|
/**
|
|
5920
5922
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -5987,6 +5989,10 @@ type PostAnalytics = {
|
|
|
5987
5989
|
type PostCreateResponse = {
|
|
5988
5990
|
message?: string;
|
|
5989
5991
|
post?: Post;
|
|
5992
|
+
/**
|
|
5993
|
+
* Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.
|
|
5994
|
+
*/
|
|
5995
|
+
warnings?: Array<(string)>;
|
|
5990
5996
|
};
|
|
5991
5997
|
type PostDeleteResponse = {
|
|
5992
5998
|
message?: string;
|
|
@@ -12191,6 +12197,9 @@ type ListPostsError = (ErrorResponse | {
|
|
|
12191
12197
|
});
|
|
12192
12198
|
type CreatePostData = {
|
|
12193
12199
|
body: {
|
|
12200
|
+
/**
|
|
12201
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
12202
|
+
*/
|
|
12194
12203
|
title?: string;
|
|
12195
12204
|
/**
|
|
12196
12205
|
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts.
|
|
@@ -12225,6 +12234,9 @@ type CreatePostData = {
|
|
|
12225
12234
|
* Tags/keywords. YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates auto-removed.
|
|
12226
12235
|
*/
|
|
12227
12236
|
tags?: Array<(string)>;
|
|
12237
|
+
/**
|
|
12238
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
12239
|
+
*/
|
|
12228
12240
|
hashtags?: Array<(string)>;
|
|
12229
12241
|
/**
|
|
12230
12242
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -12344,6 +12356,9 @@ type GetPostError = (ErrorResponse | {
|
|
|
12344
12356
|
});
|
|
12345
12357
|
type UpdatePostData = {
|
|
12346
12358
|
body: {
|
|
12359
|
+
/**
|
|
12360
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
12361
|
+
*/
|
|
12347
12362
|
title?: string;
|
|
12348
12363
|
content?: string;
|
|
12349
12364
|
mediaItems?: Array<MediaItem>;
|
|
@@ -12378,6 +12393,9 @@ type UpdatePostData = {
|
|
|
12378
12393
|
timezone?: string;
|
|
12379
12394
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
12380
12395
|
tags?: Array<(string)>;
|
|
12396
|
+
/**
|
|
12397
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
12398
|
+
*/
|
|
12381
12399
|
hashtags?: Array<(string)>;
|
|
12382
12400
|
mentions?: Array<(string)>;
|
|
12383
12401
|
crosspostingEnabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -5901,8 +5901,7 @@ type Post = {
|
|
|
5901
5901
|
_id?: string;
|
|
5902
5902
|
userId?: (string | User);
|
|
5903
5903
|
/**
|
|
5904
|
-
* YouTube
|
|
5905
|
-
*
|
|
5904
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
5906
5905
|
*/
|
|
5907
5906
|
title?: string;
|
|
5908
5907
|
content?: string;
|
|
@@ -5915,6 +5914,9 @@ type Post = {
|
|
|
5915
5914
|
* YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates removed.
|
|
5916
5915
|
*/
|
|
5917
5916
|
tags?: Array<(string)>;
|
|
5917
|
+
/**
|
|
5918
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
5919
|
+
*/
|
|
5918
5920
|
hashtags?: Array<(string)>;
|
|
5919
5921
|
/**
|
|
5920
5922
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -5987,6 +5989,10 @@ type PostAnalytics = {
|
|
|
5987
5989
|
type PostCreateResponse = {
|
|
5988
5990
|
message?: string;
|
|
5989
5991
|
post?: Post;
|
|
5992
|
+
/**
|
|
5993
|
+
* Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.
|
|
5994
|
+
*/
|
|
5995
|
+
warnings?: Array<(string)>;
|
|
5990
5996
|
};
|
|
5991
5997
|
type PostDeleteResponse = {
|
|
5992
5998
|
message?: string;
|
|
@@ -12191,6 +12197,9 @@ type ListPostsError = (ErrorResponse | {
|
|
|
12191
12197
|
});
|
|
12192
12198
|
type CreatePostData = {
|
|
12193
12199
|
body: {
|
|
12200
|
+
/**
|
|
12201
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
12202
|
+
*/
|
|
12194
12203
|
title?: string;
|
|
12195
12204
|
/**
|
|
12196
12205
|
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts.
|
|
@@ -12225,6 +12234,9 @@ type CreatePostData = {
|
|
|
12225
12234
|
* Tags/keywords. YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates auto-removed.
|
|
12226
12235
|
*/
|
|
12227
12236
|
tags?: Array<(string)>;
|
|
12237
|
+
/**
|
|
12238
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
12239
|
+
*/
|
|
12228
12240
|
hashtags?: Array<(string)>;
|
|
12229
12241
|
/**
|
|
12230
12242
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -12344,6 +12356,9 @@ type GetPostError = (ErrorResponse | {
|
|
|
12344
12356
|
});
|
|
12345
12357
|
type UpdatePostData = {
|
|
12346
12358
|
body: {
|
|
12359
|
+
/**
|
|
12360
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
12361
|
+
*/
|
|
12347
12362
|
title?: string;
|
|
12348
12363
|
content?: string;
|
|
12349
12364
|
mediaItems?: Array<MediaItem>;
|
|
@@ -12378,6 +12393,9 @@ type UpdatePostData = {
|
|
|
12378
12393
|
timezone?: string;
|
|
12379
12394
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
12380
12395
|
tags?: Array<(string)>;
|
|
12396
|
+
/**
|
|
12397
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
12398
|
+
*/
|
|
12381
12399
|
hashtags?: Array<(string)>;
|
|
12382
12400
|
mentions?: Array<(string)>;
|
|
12383
12401
|
crosspostingEnabled?: boolean;
|
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.676",
|
|
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.676",
|
|
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
|
@@ -4729,8 +4729,7 @@ export type Post = {
|
|
|
4729
4729
|
_id?: string;
|
|
4730
4730
|
userId?: (string | User);
|
|
4731
4731
|
/**
|
|
4732
|
-
* YouTube
|
|
4733
|
-
*
|
|
4732
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
4734
4733
|
*/
|
|
4735
4734
|
title?: string;
|
|
4736
4735
|
content?: string;
|
|
@@ -4743,6 +4742,9 @@ export type Post = {
|
|
|
4743
4742
|
* YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates removed.
|
|
4744
4743
|
*/
|
|
4745
4744
|
tags?: Array<(string)>;
|
|
4745
|
+
/**
|
|
4746
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
4747
|
+
*/
|
|
4746
4748
|
hashtags?: Array<(string)>;
|
|
4747
4749
|
/**
|
|
4748
4750
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -4819,6 +4821,10 @@ export type PostAnalytics = {
|
|
|
4819
4821
|
export type PostCreateResponse = {
|
|
4820
4822
|
message?: string;
|
|
4821
4823
|
post?: Post;
|
|
4824
|
+
/**
|
|
4825
|
+
* Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.
|
|
4826
|
+
*/
|
|
4827
|
+
warnings?: Array<(string)>;
|
|
4822
4828
|
};
|
|
4823
4829
|
|
|
4824
4830
|
export type PostDeleteResponse = {
|
|
@@ -11346,6 +11352,9 @@ export type ListPostsError = (ErrorResponse | {
|
|
|
11346
11352
|
|
|
11347
11353
|
export type CreatePostData = {
|
|
11348
11354
|
body: {
|
|
11355
|
+
/**
|
|
11356
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
11357
|
+
*/
|
|
11349
11358
|
title?: string;
|
|
11350
11359
|
/**
|
|
11351
11360
|
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts.
|
|
@@ -11380,6 +11389,9 @@ export type CreatePostData = {
|
|
|
11380
11389
|
* Tags/keywords. YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates auto-removed.
|
|
11381
11390
|
*/
|
|
11382
11391
|
tags?: Array<(string)>;
|
|
11392
|
+
/**
|
|
11393
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
11394
|
+
*/
|
|
11383
11395
|
hashtags?: Array<(string)>;
|
|
11384
11396
|
/**
|
|
11385
11397
|
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, use the /v1/accounts/{accountId}/linkedin-mentions endpoint to resolve profile URLs to URNs, then embed the returned mentionFormat directly in the post content field.
|
|
@@ -11508,6 +11520,9 @@ export type GetPostError = (ErrorResponse | {
|
|
|
11508
11520
|
|
|
11509
11521
|
export type UpdatePostData = {
|
|
11510
11522
|
body: {
|
|
11523
|
+
/**
|
|
11524
|
+
* Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
|
|
11525
|
+
*/
|
|
11511
11526
|
title?: string;
|
|
11512
11527
|
content?: string;
|
|
11513
11528
|
mediaItems?: Array<MediaItem>;
|
|
@@ -11542,6 +11557,9 @@ export type UpdatePostData = {
|
|
|
11542
11557
|
timezone?: string;
|
|
11543
11558
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
11544
11559
|
tags?: Array<(string)>;
|
|
11560
|
+
/**
|
|
11561
|
+
* Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
|
|
11562
|
+
*/
|
|
11545
11563
|
hashtags?: Array<(string)>;
|
|
11546
11564
|
mentions?: Array<(string)>;
|
|
11547
11565
|
crosspostingEnabled?: boolean;
|