@getlatedev/node 0.2.607 → 0.2.609

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
@@ -12016,11 +12016,16 @@ type EditPostData = {
12016
12016
  /**
12017
12017
  * The platform to edit the post on.
12018
12018
  */
12019
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
12019
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
12020
12020
  /**
12021
12021
  * The new post text content
12022
12022
  */
12023
12023
  content: string;
12024
+ /**
12025
+ * 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.
12026
+ *
12027
+ */
12028
+ accountId?: string;
12024
12029
  };
12025
12030
  path: {
12026
12031
  postId: string;
@@ -12029,7 +12034,7 @@ type EditPostData = {
12029
12034
  type EditPostResponse = ({
12030
12035
  success?: boolean;
12031
12036
  /**
12032
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
12037
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
12033
12038
  *
12034
12039
  */
12035
12040
  id?: string;
@@ -17969,8 +17974,14 @@ type CreateInboxConversationError = ({
17969
17974
  } | {
17970
17975
  error?: string;
17971
17976
  } | unknown | {
17977
+ error?: string;
17978
+ code?: 'account_not_found' | 'PARTICIPANT_NOT_FOUND';
17979
+ } | {
17972
17980
  error?: string;
17973
17981
  code?: 'DM_NOT_ALLOWED';
17982
+ } | {
17983
+ error?: string;
17984
+ code?: 'rate_limited';
17974
17985
  });
17975
17986
  type SearchInboxConversationsData = {
17976
17987
  query: {
package/dist/index.d.ts CHANGED
@@ -12016,11 +12016,16 @@ type EditPostData = {
12016
12016
  /**
12017
12017
  * The platform to edit the post on.
12018
12018
  */
12019
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
12019
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
12020
12020
  /**
12021
12021
  * The new post text content
12022
12022
  */
12023
12023
  content: string;
12024
+ /**
12025
+ * 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.
12026
+ *
12027
+ */
12028
+ accountId?: string;
12024
12029
  };
12025
12030
  path: {
12026
12031
  postId: string;
@@ -12029,7 +12034,7 @@ type EditPostData = {
12029
12034
  type EditPostResponse = ({
12030
12035
  success?: boolean;
12031
12036
  /**
12032
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
12037
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
12033
12038
  *
12034
12039
  */
12035
12040
  id?: string;
@@ -17969,8 +17974,14 @@ type CreateInboxConversationError = ({
17969
17974
  } | {
17970
17975
  error?: string;
17971
17976
  } | unknown | {
17977
+ error?: string;
17978
+ code?: 'account_not_found' | 'PARTICIPANT_NOT_FOUND';
17979
+ } | {
17972
17980
  error?: string;
17973
17981
  code?: 'DM_NOT_ALLOWED';
17982
+ } | {
17983
+ error?: string;
17984
+ code?: 'rate_limited';
17974
17985
  });
17975
17986
  type SearchInboxConversationsData = {
17976
17987
  query: {
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.607",
39
+ version: "0.2.609",
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.607",
8
+ version: "0.2.609",
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": "@getlatedev/node",
3
- "version": "0.2.607",
3
+ "version": "0.2.609",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -930,7 +930,10 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
930
930
  /**
931
931
  * Edit published post
932
932
  * Edit the text of an already-published post. Supported on X (Twitter), Discord,
933
- * Facebook, and Reddit. Each platform enforces its own rules:
933
+ * Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
934
+ * and Slack. When a post was published to several accounts on the same platform,
935
+ * pass `accountId` to pick which account's copy to edit (the first entry is edited
936
+ * otherwise). Each platform enforces its own rules:
934
937
  *
935
938
  * **X (Twitter)**
936
939
  * - Connected X account must have an active X Premium subscription
@@ -955,6 +958,49 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
955
958
  * - Body only. Reddit exposes no API to edit a post title, ever
956
959
  * - The post ID is unchanged
957
960
  *
961
+ * **LinkedIn**
962
+ * - Text only, no time limit. Media, polls, articles, and reshare targets cannot be
963
+ * changed
964
+ * - Works for member and organization posts published through this API. The post
965
+ * keeps its ID and LinkedIn shows an "edited" marker
966
+ * - Text is limited to 3,000 characters; mentions and hashtags are preserved
967
+ *
968
+ * **Telegram**
969
+ * - No time limit; messages published through Zernio are editable indefinitely
970
+ * - Text posts: edits the message text (up to 4096 characters)
971
+ * - Media posts: edits the caption only (up to 1024 characters). The media itself
972
+ * cannot be swapped
973
+ * - For albums, the caption shown on the album (its first message) is edited
974
+ * - The message ID is unchanged
975
+ *
976
+ * **Pinterest**
977
+ * - Description only, maximum 800 characters. Media, link, and board cannot be
978
+ * changed, and a pin title derived from the old content's first line at publish
979
+ * stays as-is
980
+ * - Pinterest's pin-update endpoint is currently in closed beta; until the app is
981
+ * allowlisted by Pinterest, edits are rejected with a "beta feature not yet
982
+ * enabled" error
983
+ * - The pin ID is unchanged
984
+ *
985
+ * **Google Business Profile**
986
+ * - Post body (summary) text only. Call-to-action, event/offer fields, and media are
987
+ * untouched
988
+ * - No time limit and no edit limit. The post ID is unchanged
989
+ * - The post must still exist on Google: a post deleted from the Business Profile
990
+ * dashboard, or an event/offer post past its end date, returns a 404
991
+ *
992
+ * **YouTube**
993
+ * - `content` replaces the video description only. The title is unchanged, even if
994
+ * it was originally derived from the content's first line at publish time
995
+ * - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata`
996
+ * - No time window and no edit cap. The video ID is unchanged
997
+ *
998
+ * **Slack**
999
+ * - Text only, up to 4,000 characters. Media cannot be swapped, and media posts
1000
+ * whose share message reference never resolved cannot be edited
1001
+ * - No time limit unless workspace admins restrict message editing
1002
+ * - The message ID is unchanged
1003
+ *
958
1004
  * Media edits are not supported on any platform. The post record in Zernio is updated
959
1005
  * with the new content and an edit-history entry.
960
1006
  *
@@ -11220,11 +11220,16 @@ export type EditPostData = {
11220
11220
  /**
11221
11221
  * The platform to edit the post on.
11222
11222
  */
11223
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
11223
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
11224
11224
  /**
11225
11225
  * The new post text content
11226
11226
  */
11227
11227
  content: string;
11228
+ /**
11229
+ * 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.
11230
+ *
11231
+ */
11232
+ accountId?: string;
11228
11233
  };
11229
11234
  path: {
11230
11235
  postId: string;
@@ -11234,7 +11239,7 @@ export type EditPostData = {
11234
11239
  export type EditPostResponse = ({
11235
11240
  success?: boolean;
11236
11241
  /**
11237
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
11242
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
11238
11243
  *
11239
11244
  */
11240
11245
  id?: string;
@@ -17614,8 +17619,14 @@ export type CreateInboxConversationError = ({
17614
17619
  } | {
17615
17620
  error?: string;
17616
17621
  } | unknown | {
17622
+ error?: string;
17623
+ code?: 'account_not_found' | 'PARTICIPANT_NOT_FOUND';
17624
+ } | {
17617
17625
  error?: string;
17618
17626
  code?: 'DM_NOT_ALLOWED';
17627
+ } | {
17628
+ error?: string;
17629
+ code?: 'rate_limited';
17619
17630
  });
17620
17631
 
17621
17632
  export type SearchInboxConversationsData = {