@zernio/node 0.2.1020 → 0.2.1021

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 CHANGED
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
18397
18397
  * The platform to delete the post from
18398
18398
  */
18399
18399
  platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
18400
+ /**
18401
+ * Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
18402
+ */
18403
+ accountId?: string;
18400
18404
  };
18401
18405
  path: {
18402
18406
  postId: string;
@@ -18420,7 +18424,7 @@ type EditPostData = {
18420
18424
  */
18421
18425
  content: string;
18422
18426
  /**
18423
- * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
18427
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
18424
18428
  *
18425
18429
  */
18426
18430
  accountId?: string;
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
18444
18448
  });
18445
18449
  type EditPostError = (unknown | {
18446
18450
  error?: string;
18447
- });
18451
+ } | ErrorResponse);
18448
18452
  type UpdatePostMetadataData = {
18449
18453
  body: {
18450
18454
  /**
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
18456
18460
  */
18457
18461
  videoId?: string;
18458
18462
  /**
18459
- * Zernio account ID (required for direct mode, ignored for post-based mode)
18463
+ * Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
18460
18464
  */
18461
18465
  accountId?: string;
18462
18466
  /**
package/dist/index.d.ts CHANGED
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
18397
18397
  * The platform to delete the post from
18398
18398
  */
18399
18399
  platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
18400
+ /**
18401
+ * Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
18402
+ */
18403
+ accountId?: string;
18400
18404
  };
18401
18405
  path: {
18402
18406
  postId: string;
@@ -18420,7 +18424,7 @@ type EditPostData = {
18420
18424
  */
18421
18425
  content: string;
18422
18426
  /**
18423
- * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
18427
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
18424
18428
  *
18425
18429
  */
18426
18430
  accountId?: string;
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
18444
18448
  });
18445
18449
  type EditPostError = (unknown | {
18446
18450
  error?: string;
18447
- });
18451
+ } | ErrorResponse);
18448
18452
  type UpdatePostMetadataData = {
18449
18453
  body: {
18450
18454
  /**
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
18456
18460
  */
18457
18461
  videoId?: string;
18458
18462
  /**
18459
- * Zernio account ID (required for direct mode, ignored for post-based mode)
18463
+ * Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
18460
18464
  */
18461
18465
  accountId?: string;
18462
18466
  /**
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.1020",
39
+ version: "0.2.1021",
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.1020",
8
+ version: "0.2.1021",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1020",
3
+ "version": "0.2.1021",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1078,8 +1078,8 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
1078
1078
  * Edit the text of an already-published post. Supported on X, Discord,
1079
1079
  * Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
1080
1080
  * and Slack. When a post was published to several accounts on the same platform,
1081
- * pass `accountId` to pick which account's copy to edit (the first entry is edited
1082
- * otherwise). Each platform enforces its own rules:
1081
+ * pass `accountId` to pick which account's copy to edit (without it the request
1082
+ * returns 409). Each platform enforces its own rules:
1083
1083
  *
1084
1084
  * **X**
1085
1085
  * - Connected X account must have an active X Premium subscription
@@ -17217,6 +17217,10 @@ export type UnpublishPostData = {
17217
17217
  * The platform to delete the post from
17218
17218
  */
17219
17219
  platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
17220
+ /**
17221
+ * Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
17222
+ */
17223
+ accountId?: string;
17220
17224
  };
17221
17225
  path: {
17222
17226
  postId: string;
@@ -17243,7 +17247,7 @@ export type EditPostData = {
17243
17247
  */
17244
17248
  content: string;
17245
17249
  /**
17246
- * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
17250
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
17247
17251
  *
17248
17252
  */
17249
17253
  accountId?: string;
@@ -17269,7 +17273,7 @@ export type EditPostResponse = ({
17269
17273
 
17270
17274
  export type EditPostError = (unknown | {
17271
17275
  error?: string;
17272
- });
17276
+ } | ErrorResponse);
17273
17277
 
17274
17278
  export type UpdatePostMetadataData = {
17275
17279
  body: {
@@ -17282,7 +17286,7 @@ export type UpdatePostMetadataData = {
17282
17286
  */
17283
17287
  videoId?: string;
17284
17288
  /**
17285
- * Zernio account ID (required for direct mode, ignored for post-based mode)
17289
+ * Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
17286
17290
  */
17287
17291
  accountId?: string;
17288
17292
  /**