@zernio/node 0.2.311 → 0.2.313

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
@@ -2787,6 +2787,10 @@ type InboxWebhookAccount = {
2787
2787
  * Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
2788
2788
  */
2789
2789
  accountId?: string;
2790
+ /**
2791
+ * Zernio profile (workspace) ID this account belongs to. Use it to route or filter inbox webhooks by workspace. This is the profile ID only, not its name (resolve the name via the API with this ID). Optional; omitted on the shared WhatsApp sandbox account and when the account has no resolvable profile.
2792
+ */
2793
+ profileId?: string;
2790
2794
  platform: string;
2791
2795
  username: string;
2792
2796
  displayName?: string;
@@ -15583,10 +15587,6 @@ type CreateVoiceCallData = {
15583
15587
  * 'auto' derives from the callee's country; 'en'/'es' force it.
15584
15588
  */
15585
15589
  transcriptionLanguage?: 'auto' | 'en' | 'es';
15586
- /**
15587
- * A retry with the same key returns the original call instead of dialing again.
15588
- */
15589
- idempotencyKey?: string;
15590
15590
  /**
15591
15591
  * Answering-machine detection; defers the bridge until human vs machine is known.
15592
15592
  */
@@ -17982,6 +17982,9 @@ type DisableVoiceOnNumberData = {
17982
17982
  };
17983
17983
  };
17984
17984
  type DisableVoiceOnNumberResponse = ({
17985
+ /**
17986
+ * Always false after a successful disable.
17987
+ */
17985
17988
  enabled?: boolean;
17986
17989
  phoneNumber?: string;
17987
17990
  });
@@ -18048,6 +18051,9 @@ type DisableSmsOnNumberData = {
18048
18051
  };
18049
18052
  };
18050
18053
  type DisableSmsOnNumberResponse = ({
18054
+ /**
18055
+ * Always false after a successful disable.
18056
+ */
18051
18057
  enabled?: boolean;
18052
18058
  phoneNumber?: string;
18053
18059
  /**
package/dist/index.d.ts CHANGED
@@ -2787,6 +2787,10 @@ type InboxWebhookAccount = {
2787
2787
  * Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
2788
2788
  */
2789
2789
  accountId?: string;
2790
+ /**
2791
+ * Zernio profile (workspace) ID this account belongs to. Use it to route or filter inbox webhooks by workspace. This is the profile ID only, not its name (resolve the name via the API with this ID). Optional; omitted on the shared WhatsApp sandbox account and when the account has no resolvable profile.
2792
+ */
2793
+ profileId?: string;
2790
2794
  platform: string;
2791
2795
  username: string;
2792
2796
  displayName?: string;
@@ -15583,10 +15587,6 @@ type CreateVoiceCallData = {
15583
15587
  * 'auto' derives from the callee's country; 'en'/'es' force it.
15584
15588
  */
15585
15589
  transcriptionLanguage?: 'auto' | 'en' | 'es';
15586
- /**
15587
- * A retry with the same key returns the original call instead of dialing again.
15588
- */
15589
- idempotencyKey?: string;
15590
15590
  /**
15591
15591
  * Answering-machine detection; defers the bridge until human vs machine is known.
15592
15592
  */
@@ -17982,6 +17982,9 @@ type DisableVoiceOnNumberData = {
17982
17982
  };
17983
17983
  };
17984
17984
  type DisableVoiceOnNumberResponse = ({
17985
+ /**
17986
+ * Always false after a successful disable.
17987
+ */
17985
17988
  enabled?: boolean;
17986
17989
  phoneNumber?: string;
17987
17990
  });
@@ -18048,6 +18051,9 @@ type DisableSmsOnNumberData = {
18048
18051
  };
18049
18052
  };
18050
18053
  type DisableSmsOnNumberResponse = ({
18054
+ /**
18055
+ * Always false after a successful disable.
18056
+ */
18051
18057
  enabled?: boolean;
18052
18058
  phoneNumber?: string;
18053
18059
  /**
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.311",
39
+ version: "0.2.313",
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.311",
8
+ version: "0.2.313",
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.311",
3
+ "version": "0.2.313",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3357,8 +3357,7 @@ export const getCallRecording = <ThrowOnError extends boolean = false>(options:
3357
3357
  *
3358
3358
  * **Idempotency:** send an `Idempotency-Key` header to make retries safe;
3359
3359
  * same key + same body replays the original response instead of dialing
3360
- * (and billing) a second call. The body `idempotencyKey` field predates
3361
- * the header and keeps working; prefer the header.
3360
+ * (and billing) a second call.
3362
3361
  *
3363
3362
  */
3364
3363
  export const createVoiceCall = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateVoiceCallData, ThrowOnError>) => {
@@ -2010,6 +2010,10 @@ export type InboxWebhookAccount = {
2010
2010
  * Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
2011
2011
  */
2012
2012
  accountId?: string;
2013
+ /**
2014
+ * Zernio profile (workspace) ID this account belongs to. Use it to route or filter inbox webhooks by workspace. This is the profile ID only, not its name (resolve the name via the API with this ID). Optional; omitted on the shared WhatsApp sandbox account and when the account has no resolvable profile.
2015
+ */
2016
+ profileId?: string;
2013
2017
  platform: string;
2014
2018
  username: string;
2015
2019
  displayName?: string;
@@ -15655,10 +15659,6 @@ export type CreateVoiceCallData = {
15655
15659
  * 'auto' derives from the callee's country; 'en'/'es' force it.
15656
15660
  */
15657
15661
  transcriptionLanguage?: 'auto' | 'en' | 'es';
15658
- /**
15659
- * A retry with the same key returns the original call instead of dialing again.
15660
- */
15661
- idempotencyKey?: string;
15662
15662
  /**
15663
15663
  * Answering-machine detection; defers the bridge until human vs machine is known.
15664
15664
  */
@@ -18254,6 +18254,9 @@ export type DisableVoiceOnNumberData = {
18254
18254
  };
18255
18255
 
18256
18256
  export type DisableVoiceOnNumberResponse = ({
18257
+ /**
18258
+ * Always false after a successful disable.
18259
+ */
18257
18260
  enabled?: boolean;
18258
18261
  phoneNumber?: string;
18259
18262
  });
@@ -18326,6 +18329,9 @@ export type DisableSmsOnNumberData = {
18326
18329
  };
18327
18330
 
18328
18331
  export type DisableSmsOnNumberResponse = ({
18332
+ /**
18333
+ * Always false after a successful disable.
18334
+ */
18329
18335
  enabled?: boolean;
18330
18336
  phoneNumber?: string;
18331
18337
  /**