@getlatedev/node 0.2.1139 → 0.2.1141

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
@@ -791,7 +791,7 @@ declare class Zernio {
791
791
  moveWhatsAppNumberToProfile: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<MoveWhatsAppNumberToProfileData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<MoveWhatsAppNumberToProfileResponse, unknown, ThrowOnError>;
792
792
  getWhatsAppNumberRemediation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppNumberRemediationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppNumberRemediationResponse, unknown, ThrowOnError>;
793
793
  remediateWhatsAppNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemediateWhatsAppNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemediateWhatsAppNumberResponse, unknown, ThrowOnError>;
794
- getWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberError, ThrowOnError>;
794
+ getWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
795
795
  releaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReleaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReleaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
796
796
  };
797
797
  /**
@@ -10813,6 +10813,14 @@ type PlatformTarget = {
10813
10813
  * Graduation strategy the trial reel was launched with. Present only when isTrialReel is true.
10814
10814
  */
10815
10815
  trialGraduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
10816
+ /**
10817
+ * Number of times the publishing pipeline claimed this target to publish it since it was created or last manually retried (a manual retry resets it, except on TikTok). Not the number of retries (see publishRetries).
10818
+ */
10819
+ publishAttempts?: number;
10820
+ /**
10821
+ * Instagram only. Automatic re-sends of media_publish on the same container that Zernio scheduled after Meta answered a transient error (30 min, 2 h and 6 h after each failure, at most 3). While the target is still processing, the latest one may not have been sent yet. Not reset by a manual retry. Independent of publishAttempts, which counts publish-leg claims. Absent when none was scheduled.
10822
+ */
10823
+ publishRetries?: number;
10816
10824
  /**
10817
10825
  * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
10818
10826
  */
@@ -36426,9 +36434,9 @@ type RequestPhoneNumberWhatsAppCodeResponse = ({
36426
36434
  */
36427
36435
  newPhoneNumber?: string;
36428
36436
  });
36429
- type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | {
36437
+ type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | unknown | {
36430
36438
  error?: string;
36431
- } | unknown);
36439
+ });
36432
36440
  type GetWhatsAppCallingData = {
36433
36441
  path: {
36434
36442
  /**
@@ -36613,7 +36621,7 @@ type GetWhatsAppPhoneNumberResponse = ({
36613
36621
  sipTrunkId?: (string) | null;
36614
36622
  };
36615
36623
  });
36616
- type GetWhatsAppPhoneNumberError = (ErrorResponse | {
36624
+ type GetWhatsAppPhoneNumberError = (ErrorResponse | unknown | {
36617
36625
  error?: string;
36618
36626
  });
36619
36627
  type ReleaseWhatsAppPhoneNumberData = {
package/dist/index.d.ts CHANGED
@@ -791,7 +791,7 @@ declare class Zernio {
791
791
  moveWhatsAppNumberToProfile: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<MoveWhatsAppNumberToProfileData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<MoveWhatsAppNumberToProfileResponse, unknown, ThrowOnError>;
792
792
  getWhatsAppNumberRemediation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppNumberRemediationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppNumberRemediationResponse, unknown, ThrowOnError>;
793
793
  remediateWhatsAppNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemediateWhatsAppNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemediateWhatsAppNumberResponse, unknown, ThrowOnError>;
794
- getWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberError, ThrowOnError>;
794
+ getWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
795
795
  releaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReleaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReleaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
796
796
  };
797
797
  /**
@@ -10813,6 +10813,14 @@ type PlatformTarget = {
10813
10813
  * Graduation strategy the trial reel was launched with. Present only when isTrialReel is true.
10814
10814
  */
10815
10815
  trialGraduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
10816
+ /**
10817
+ * Number of times the publishing pipeline claimed this target to publish it since it was created or last manually retried (a manual retry resets it, except on TikTok). Not the number of retries (see publishRetries).
10818
+ */
10819
+ publishAttempts?: number;
10820
+ /**
10821
+ * Instagram only. Automatic re-sends of media_publish on the same container that Zernio scheduled after Meta answered a transient error (30 min, 2 h and 6 h after each failure, at most 3). While the target is still processing, the latest one may not have been sent yet. Not reset by a manual retry. Independent of publishAttempts, which counts publish-leg claims. Absent when none was scheduled.
10822
+ */
10823
+ publishRetries?: number;
10816
10824
  /**
10817
10825
  * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
10818
10826
  */
@@ -36426,9 +36434,9 @@ type RequestPhoneNumberWhatsAppCodeResponse = ({
36426
36434
  */
36427
36435
  newPhoneNumber?: string;
36428
36436
  });
36429
- type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | {
36437
+ type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | unknown | {
36430
36438
  error?: string;
36431
- } | unknown);
36439
+ });
36432
36440
  type GetWhatsAppCallingData = {
36433
36441
  path: {
36434
36442
  /**
@@ -36613,7 +36621,7 @@ type GetWhatsAppPhoneNumberResponse = ({
36613
36621
  sipTrunkId?: (string) | null;
36614
36622
  };
36615
36623
  });
36616
- type GetWhatsAppPhoneNumberError = (ErrorResponse | {
36624
+ type GetWhatsAppPhoneNumberError = (ErrorResponse | unknown | {
36617
36625
  error?: string;
36618
36626
  });
36619
36627
  type ReleaseWhatsAppPhoneNumberData = {
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.1139",
39
+ version: "0.2.1141",
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.1139",
8
+ version: "0.2.1141",
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.1139",
3
+ "version": "0.2.1141",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9196,6 +9196,14 @@ export type PlatformTarget = {
9196
9196
  * Graduation strategy the trial reel was launched with. Present only when isTrialReel is true.
9197
9197
  */
9198
9198
  trialGraduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
9199
+ /**
9200
+ * Number of times the publishing pipeline claimed this target to publish it since it was created or last manually retried (a manual retry resets it, except on TikTok). Not the number of retries (see publishRetries).
9201
+ */
9202
+ publishAttempts?: number;
9203
+ /**
9204
+ * Instagram only. Automatic re-sends of media_publish on the same container that Zernio scheduled after Meta answered a transient error (30 min, 2 h and 6 h after each failure, at most 3). While the target is still processing, the latest one may not have been sent yet. Not reset by a manual retry. Independent of publishAttempts, which counts publish-leg claims. Absent when none was scheduled.
9205
+ */
9206
+ publishRetries?: number;
9199
9207
  /**
9200
9208
  * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
9201
9209
  */
@@ -36517,9 +36525,9 @@ export type RequestPhoneNumberWhatsAppCodeResponse = ({
36517
36525
  newPhoneNumber?: string;
36518
36526
  });
36519
36527
 
36520
- export type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | {
36528
+ export type RequestPhoneNumberWhatsAppCodeError = (ErrorResponse | unknown | {
36521
36529
  error?: string;
36522
- } | unknown);
36530
+ });
36523
36531
 
36524
36532
  export type GetWhatsAppCallingData = {
36525
36533
  path: {
@@ -36725,7 +36733,7 @@ export type GetWhatsAppPhoneNumberResponse = ({
36725
36733
  };
36726
36734
  });
36727
36735
 
36728
- export type GetWhatsAppPhoneNumberError = (ErrorResponse | {
36736
+ export type GetWhatsAppPhoneNumberError = (ErrorResponse | unknown | {
36729
36737
  error?: string;
36730
36738
  });
36731
36739