nixflex 0.8.0 → 0.9.0

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/cli/index.js CHANGED
@@ -627,7 +627,7 @@ var Nixflex = class {
627
627
  var src_default = Nixflex;
628
628
 
629
629
  // src/cli/index.ts
630
- var VERSION = true ? "0.8.0" : "0.0.0";
630
+ var VERSION = true ? "0.9.0" : "0.0.0";
631
631
  var CONFIG_DIR = join(homedir(), ".nixflex");
632
632
  var CONFIG_FILE = join(CONFIG_DIR, "config.json");
633
633
  function readConfig() {
package/dist/index.d.cts CHANGED
@@ -62,6 +62,8 @@ interface AgentCreateParams {
62
62
  silence_hangup_seconds?: number;
63
63
  /** Save call audio. Recordings delete after 90 days. Default true. */
64
64
  record_call?: boolean;
65
+ /** Who records when record_call is on. 'provider' = your carrier records (whole call, including after a transfer to a person; carrier recording charges apply). 'nixflex' = the voice engine records the conversation itself at no extra cost; a transfer to a person is not included. Default 'provider'. */
66
+ recording_source?: 'provider' | 'nixflex';
65
67
  /** Carrier answering-machine detection: fast hangup ~4s in, NO voicemail message, extra carrier cost. OFF lets the agent detect voicemail itself and leave a message. Default false. */
66
68
  amd_enabled?: boolean;
67
69
  /** Keypad digits instead of speech. Three-state: true/false explicit, null = not set (a number's own setting decides). */
@@ -115,6 +117,7 @@ interface Agent {
115
117
  max_call_duration_seconds: number;
116
118
  silence_hangup_seconds: number;
117
119
  record_call: boolean;
120
+ recording_source: 'provider' | 'nixflex';
118
121
  func_end_call?: boolean;
119
122
  transfer_whisper?: string | null;
120
123
  func_send_sms?: boolean;
@@ -407,6 +410,7 @@ interface PhoneNumber {
407
410
  speaking_rate?: number | null;
408
411
  dtmf_enabled?: boolean | null;
409
412
  record_call?: boolean | null;
413
+ recording_source?: 'provider' | 'nixflex' | null;
410
414
  created_at?: string;
411
415
  }
412
416
  /** Every field optional - send only what changes; omitted fields are untouched.
@@ -434,6 +438,8 @@ interface PhoneNumberUpdateParams {
434
438
  dtmf_enabled?: boolean | null;
435
439
  /** Recording: null = inherit; false stops recording this number while the agent keeps recording. */
436
440
  record_call?: boolean | null;
441
+ /** Who records on this number: 'provider' (carrier) or 'nixflex' (voice engine). null = inherit the agent. Ignored while record_call is off. */
442
+ recording_source?: 'provider' | 'nixflex' | null;
437
443
  }
438
444
  interface PhoneNumberListResponse {
439
445
  phone_numbers: PhoneNumber[];
package/dist/index.d.ts CHANGED
@@ -62,6 +62,8 @@ interface AgentCreateParams {
62
62
  silence_hangup_seconds?: number;
63
63
  /** Save call audio. Recordings delete after 90 days. Default true. */
64
64
  record_call?: boolean;
65
+ /** Who records when record_call is on. 'provider' = your carrier records (whole call, including after a transfer to a person; carrier recording charges apply). 'nixflex' = the voice engine records the conversation itself at no extra cost; a transfer to a person is not included. Default 'provider'. */
66
+ recording_source?: 'provider' | 'nixflex';
65
67
  /** Carrier answering-machine detection: fast hangup ~4s in, NO voicemail message, extra carrier cost. OFF lets the agent detect voicemail itself and leave a message. Default false. */
66
68
  amd_enabled?: boolean;
67
69
  /** Keypad digits instead of speech. Three-state: true/false explicit, null = not set (a number's own setting decides). */
@@ -115,6 +117,7 @@ interface Agent {
115
117
  max_call_duration_seconds: number;
116
118
  silence_hangup_seconds: number;
117
119
  record_call: boolean;
120
+ recording_source: 'provider' | 'nixflex';
118
121
  func_end_call?: boolean;
119
122
  transfer_whisper?: string | null;
120
123
  func_send_sms?: boolean;
@@ -407,6 +410,7 @@ interface PhoneNumber {
407
410
  speaking_rate?: number | null;
408
411
  dtmf_enabled?: boolean | null;
409
412
  record_call?: boolean | null;
413
+ recording_source?: 'provider' | 'nixflex' | null;
410
414
  created_at?: string;
411
415
  }
412
416
  /** Every field optional - send only what changes; omitted fields are untouched.
@@ -434,6 +438,8 @@ interface PhoneNumberUpdateParams {
434
438
  dtmf_enabled?: boolean | null;
435
439
  /** Recording: null = inherit; false stops recording this number while the agent keeps recording. */
436
440
  record_call?: boolean | null;
441
+ /** Who records on this number: 'provider' (carrier) or 'nixflex' (voice engine). null = inherit the agent. Ignored while record_call is off. */
442
+ recording_source?: 'provider' | 'nixflex' | null;
437
443
  }
438
444
  interface PhoneNumberListResponse {
439
445
  phone_numbers: PhoneNumber[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixflex",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Official Node.js SDK for the Nixflex voice AI platform - AI phone agents, outbound campaigns, and SMS.",
5
5
  "keywords": [
6
6
  "nixflex",