@getlatedev/node 0.2.1106 → 0.2.1107

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
@@ -937,7 +937,7 @@ declare class Zernio {
937
937
  listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, unknown, ThrowOnError>;
938
938
  createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
939
939
  getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
940
- updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
940
+ updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, unknown, ThrowOnError>;
941
941
  deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
942
942
  listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
943
943
  };
@@ -38590,6 +38590,9 @@ type ListCommentAutomationsResponse = ({
38590
38590
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38591
38591
  */
38592
38592
  typoTolerance?: boolean;
38593
+ /**
38594
+ * Instagram and Facebook only. On reply-only platforms (tiktok, threads, linkedin, youtube) every DM-leg field is omitted: dmMessage, dmMessageVariations, buttons, template, quickReplies, dmMedia, publicReplyPolicy, dedupeSameTextHours, actions, audience, followGate, dmDelaySeconds and alsoMatchInDms.
38595
+ */
38593
38596
  dmMessage?: string;
38594
38597
  /**
38595
38598
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38773,6 +38776,9 @@ type CreateCommentAutomationResponse = ({
38773
38776
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38774
38777
  */
38775
38778
  typoTolerance?: boolean;
38779
+ /**
38780
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
38781
+ */
38776
38782
  dmMessage?: string;
38777
38783
  /**
38778
38784
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38848,6 +38854,9 @@ type GetCommentAutomationResponse = ({
38848
38854
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38849
38855
  */
38850
38856
  typoTolerance?: boolean;
38857
+ /**
38858
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
38859
+ */
38851
38860
  dmMessage?: string;
38852
38861
  /**
38853
38862
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38921,6 +38930,18 @@ type UpdateCommentAutomationData = {
38921
38930
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38922
38931
  */
38923
38932
  typoTolerance?: boolean;
38933
+ /**
38934
+ * Re-binds the automation to another post: the platform media/post ID (or story media id when trigger=story_reply). postId, platformPostId and postTitle move as a unit: sending any of them replaces all three, and an omitted one is cleared. Send all three as null (or empty) to make it account-wide (any post / any story). Omit all three to keep the current binding. 409 when another active automation already owns the new post.
38935
+ */
38936
+ platformPostId?: (string) | null;
38937
+ /**
38938
+ * Zernio post ID (24 hexadecimal characters); platform IDs return 400. Use it INSTEAD of platformPostId to bind to a not-yet-published Zernio post: the automation stays pending and arms itself when that post publishes. Moves as a unit with platformPostId and postTitle (see platformPostId).
38939
+ */
38940
+ postId?: (string) | null;
38941
+ /**
38942
+ * Post content snippet for display. Moves as a unit with platformPostId and postId (see platformPostId).
38943
+ */
38944
+ postTitle?: (string) | null;
38924
38945
  dmMessage?: string;
38925
38946
  /**
38926
38947
  * Inline DM buttons (1-3). Pass [] to clear all buttons.
@@ -39000,6 +39021,9 @@ type UpdateCommentAutomationResponse = ({
39000
39021
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39001
39022
  */
39002
39023
  typoTolerance?: boolean;
39024
+ /**
39025
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
39026
+ */
39003
39027
  dmMessage?: string;
39004
39028
  /**
39005
39029
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39037,7 +39061,7 @@ type UpdateCommentAutomationResponse = ({
39037
39061
  });
39038
39062
  type UpdateCommentAutomationError = (ErrorResponse | {
39039
39063
  error?: string;
39040
- });
39064
+ } | unknown);
39041
39065
  type DeleteCommentAutomationData = {
39042
39066
  path: {
39043
39067
  automationId: string;
package/dist/index.d.ts CHANGED
@@ -937,7 +937,7 @@ declare class Zernio {
937
937
  listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, unknown, ThrowOnError>;
938
938
  createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
939
939
  getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
940
- updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
940
+ updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, unknown, ThrowOnError>;
941
941
  deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
942
942
  listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
943
943
  };
@@ -38590,6 +38590,9 @@ type ListCommentAutomationsResponse = ({
38590
38590
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38591
38591
  */
38592
38592
  typoTolerance?: boolean;
38593
+ /**
38594
+ * Instagram and Facebook only. On reply-only platforms (tiktok, threads, linkedin, youtube) every DM-leg field is omitted: dmMessage, dmMessageVariations, buttons, template, quickReplies, dmMedia, publicReplyPolicy, dedupeSameTextHours, actions, audience, followGate, dmDelaySeconds and alsoMatchInDms.
38595
+ */
38593
38596
  dmMessage?: string;
38594
38597
  /**
38595
38598
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38773,6 +38776,9 @@ type CreateCommentAutomationResponse = ({
38773
38776
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38774
38777
  */
38775
38778
  typoTolerance?: boolean;
38779
+ /**
38780
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
38781
+ */
38776
38782
  dmMessage?: string;
38777
38783
  /**
38778
38784
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38848,6 +38854,9 @@ type GetCommentAutomationResponse = ({
38848
38854
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38849
38855
  */
38850
38856
  typoTolerance?: boolean;
38857
+ /**
38858
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
38859
+ */
38851
38860
  dmMessage?: string;
38852
38861
  /**
38853
38862
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -38921,6 +38930,18 @@ type UpdateCommentAutomationData = {
38921
38930
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38922
38931
  */
38923
38932
  typoTolerance?: boolean;
38933
+ /**
38934
+ * Re-binds the automation to another post: the platform media/post ID (or story media id when trigger=story_reply). postId, platformPostId and postTitle move as a unit: sending any of them replaces all three, and an omitted one is cleared. Send all three as null (or empty) to make it account-wide (any post / any story). Omit all three to keep the current binding. 409 when another active automation already owns the new post.
38935
+ */
38936
+ platformPostId?: (string) | null;
38937
+ /**
38938
+ * Zernio post ID (24 hexadecimal characters); platform IDs return 400. Use it INSTEAD of platformPostId to bind to a not-yet-published Zernio post: the automation stays pending and arms itself when that post publishes. Moves as a unit with platformPostId and postTitle (see platformPostId).
38939
+ */
38940
+ postId?: (string) | null;
38941
+ /**
38942
+ * Post content snippet for display. Moves as a unit with platformPostId and postId (see platformPostId).
38943
+ */
38944
+ postTitle?: (string) | null;
38924
38945
  dmMessage?: string;
38925
38946
  /**
38926
38947
  * Inline DM buttons (1-3). Pass [] to clear all buttons.
@@ -39000,6 +39021,9 @@ type UpdateCommentAutomationResponse = ({
39000
39021
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39001
39022
  */
39002
39023
  typoTolerance?: boolean;
39024
+ /**
39025
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
39026
+ */
39003
39027
  dmMessage?: string;
39004
39028
  /**
39005
39029
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39037,7 +39061,7 @@ type UpdateCommentAutomationResponse = ({
39037
39061
  });
39038
39062
  type UpdateCommentAutomationError = (ErrorResponse | {
39039
39063
  error?: string;
39040
- });
39064
+ } | unknown);
39041
39065
  type DeleteCommentAutomationData = {
39042
39066
  path: {
39043
39067
  automationId: string;
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.1106",
39
+ version: "0.2.1107",
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.1106",
8
+ version: "0.2.1107",
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.1106",
3
+ "version": "0.2.1107",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9369,7 +9369,7 @@ export const getCommentAutomation = <ThrowOnError extends boolean = false>(optio
9369
9369
 
9370
9370
  /**
9371
9371
  * Update automation settings
9372
- * Update an automation's keywords, DM message, inline buttons, comment reply, or active status.
9372
+ * Update an automation's keywords, DM message, inline buttons, comment reply, post binding, or active status.
9373
9373
  * Pass `buttons: []` to clear all buttons. When `buttons` is non-empty, `dmMessage` (the new
9374
9374
  * one if you're changing it, otherwise the stored one) must be 640 characters or less.
9375
9375
  * On a TikTok, Threads, LinkedIn or YouTube automation (public reply only) the DM fields
@@ -38936,6 +38936,9 @@ export type ListCommentAutomationsResponse = ({
38936
38936
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
38937
38937
  */
38938
38938
  typoTolerance?: boolean;
38939
+ /**
38940
+ * Instagram and Facebook only. On reply-only platforms (tiktok, threads, linkedin, youtube) every DM-leg field is omitted: dmMessage, dmMessageVariations, buttons, template, quickReplies, dmMedia, publicReplyPolicy, dedupeSameTextHours, actions, audience, followGate, dmDelaySeconds and alsoMatchInDms.
38941
+ */
38939
38942
  dmMessage?: string;
38940
38943
  /**
38941
38944
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39122,6 +39125,9 @@ export type CreateCommentAutomationResponse = ({
39122
39125
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39123
39126
  */
39124
39127
  typoTolerance?: boolean;
39128
+ /**
39129
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
39130
+ */
39125
39131
  dmMessage?: string;
39126
39132
  /**
39127
39133
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39200,6 +39206,9 @@ export type GetCommentAutomationResponse = ({
39200
39206
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39201
39207
  */
39202
39208
  typoTolerance?: boolean;
39209
+ /**
39210
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
39211
+ */
39203
39212
  dmMessage?: string;
39204
39213
  /**
39205
39214
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39275,6 +39284,18 @@ export type UpdateCommentAutomationData = {
39275
39284
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39276
39285
  */
39277
39286
  typoTolerance?: boolean;
39287
+ /**
39288
+ * Re-binds the automation to another post: the platform media/post ID (or story media id when trigger=story_reply). postId, platformPostId and postTitle move as a unit: sending any of them replaces all three, and an omitted one is cleared. Send all three as null (or empty) to make it account-wide (any post / any story). Omit all three to keep the current binding. 409 when another active automation already owns the new post.
39289
+ */
39290
+ platformPostId?: (string) | null;
39291
+ /**
39292
+ * Zernio post ID (24 hexadecimal characters); platform IDs return 400. Use it INSTEAD of platformPostId to bind to a not-yet-published Zernio post: the automation stays pending and arms itself when that post publishes. Moves as a unit with platformPostId and postTitle (see platformPostId).
39293
+ */
39294
+ postId?: (string) | null;
39295
+ /**
39296
+ * Post content snippet for display. Moves as a unit with platformPostId and postId (see platformPostId).
39297
+ */
39298
+ postTitle?: (string) | null;
39278
39299
  dmMessage?: string;
39279
39300
  /**
39280
39301
  * Inline DM buttons (1-3). Pass [] to clear all buttons.
@@ -39355,6 +39376,9 @@ export type UpdateCommentAutomationResponse = ({
39355
39376
  * Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
39356
39377
  */
39357
39378
  typoTolerance?: boolean;
39379
+ /**
39380
+ * Omitted on reply-only platforms (tiktok, threads, linkedin, youtube), together with every other DM-leg field.
39381
+ */
39358
39382
  dmMessage?: string;
39359
39383
  /**
39360
39384
  * Inline DM buttons (up to 3). Omitted when none are set.
@@ -39393,7 +39417,7 @@ export type UpdateCommentAutomationResponse = ({
39393
39417
 
39394
39418
  export type UpdateCommentAutomationError = (ErrorResponse | {
39395
39419
  error?: string;
39396
- });
39420
+ } | unknown);
39397
39421
 
39398
39422
  export type DeleteCommentAutomationData = {
39399
39423
  path: {