nixflex 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.1 (2026-08-24)
2
+
3
+ - Voicemail as a structured setting: `voicemail_leave_enabled` + `voicemail_message` on Agent (applies to dashboard-imported numbers) and on PhoneNumber / PhoneNumberUpdateParams (the only voicemail control for API-imported numbers - no inheritance across the two worlds)
4
+ - Enabling without a message is rejected with `voicemail_message_required`
5
+ - No breaking changes.
1
6
  ## 0.3.0 (2026-08-23)
2
7
 
3
8
  - Call type: `charged_minutes` (minutes actually billed - transfers stop the meter at handoff, so this can be less than the recording length)
package/dist/index.d.cts CHANGED
@@ -66,6 +66,12 @@ interface AgentCreateParams {
66
66
  amd_enabled?: boolean;
67
67
  /** Keypad digits instead of speech. Three-state: true/false explicit, null = not set (a number's own setting decides). */
68
68
  dtmf_enabled?: boolean | null;
69
+ /** Leave a message on detected voicemails. Applies to DASHBOARD-imported numbers on
70
+ * this agent; API-imported numbers use their own per-number setting instead. Enabling
71
+ * without voicemail_message is rejected with voicemail_message_required. */
72
+ voicemail_leave_enabled?: boolean;
73
+ /** Spoken word for word on voicemail when enabled - the agent never rewrites it. */
74
+ voicemail_message?: string | null;
69
75
  /** Where to POST post-call data. */
70
76
  webhook_url?: string | null;
71
77
  /** Agent can end the call cleanly. Default true. */
@@ -124,6 +130,8 @@ interface Agent {
124
130
  fallback_message: string;
125
131
  post_call_sms_enabled?: boolean;
126
132
  post_call_sms_template?: string | null;
133
+ voicemail_leave_enabled?: boolean;
134
+ voicemail_message?: string | null;
127
135
  data_extraction_fields?: unknown[];
128
136
  is_active: boolean;
129
137
  created_at: string;
@@ -385,6 +393,12 @@ interface PhoneNumber {
385
393
  custom_prompt?: string | null;
386
394
  voice_id?: string | null;
387
395
  sms_reply_enabled?: boolean;
396
+ /** This number's own voicemail setting - the ONLY one that applies to API-imported
397
+ * numbers (dashboard-imported numbers follow the agent). null = not set = silent
398
+ * hangup on voicemail. */
399
+ voicemail_leave_enabled?: boolean | null;
400
+ /** Spoken word for word on a detected voicemail when enabled. */
401
+ voicemail_message?: string | null;
388
402
  sms_prompt?: string | null;
389
403
  web_prompt?: string | null;
390
404
  speaking_rate?: number | null;
@@ -401,6 +415,12 @@ interface PhoneNumberUpdateParams {
401
415
  voice_id?: string | null;
402
416
  /** SMS agent auto-reply on/off. Default false. */
403
417
  sms_reply_enabled?: boolean;
418
+ /** This number's own voicemail toggle - the only voicemail control for API-imported
419
+ * numbers. Enabling without a message (here or already saved) is rejected with
420
+ * voicemail_message_required. null clears. */
421
+ voicemail_leave_enabled?: boolean | null;
422
+ /** Spoken word for word on voicemail. Max 2000. null clears. */
423
+ voicemail_message?: string | null;
404
424
  /** SMS agent instructions (independent channel). Max 20000. null clears. */
405
425
  sms_prompt?: string | null;
406
426
  /** Web agent instructions (independent channel). Max 20000. null clears. */
package/dist/index.d.ts CHANGED
@@ -66,6 +66,12 @@ interface AgentCreateParams {
66
66
  amd_enabled?: boolean;
67
67
  /** Keypad digits instead of speech. Three-state: true/false explicit, null = not set (a number's own setting decides). */
68
68
  dtmf_enabled?: boolean | null;
69
+ /** Leave a message on detected voicemails. Applies to DASHBOARD-imported numbers on
70
+ * this agent; API-imported numbers use their own per-number setting instead. Enabling
71
+ * without voicemail_message is rejected with voicemail_message_required. */
72
+ voicemail_leave_enabled?: boolean;
73
+ /** Spoken word for word on voicemail when enabled - the agent never rewrites it. */
74
+ voicemail_message?: string | null;
69
75
  /** Where to POST post-call data. */
70
76
  webhook_url?: string | null;
71
77
  /** Agent can end the call cleanly. Default true. */
@@ -124,6 +130,8 @@ interface Agent {
124
130
  fallback_message: string;
125
131
  post_call_sms_enabled?: boolean;
126
132
  post_call_sms_template?: string | null;
133
+ voicemail_leave_enabled?: boolean;
134
+ voicemail_message?: string | null;
127
135
  data_extraction_fields?: unknown[];
128
136
  is_active: boolean;
129
137
  created_at: string;
@@ -385,6 +393,12 @@ interface PhoneNumber {
385
393
  custom_prompt?: string | null;
386
394
  voice_id?: string | null;
387
395
  sms_reply_enabled?: boolean;
396
+ /** This number's own voicemail setting - the ONLY one that applies to API-imported
397
+ * numbers (dashboard-imported numbers follow the agent). null = not set = silent
398
+ * hangup on voicemail. */
399
+ voicemail_leave_enabled?: boolean | null;
400
+ /** Spoken word for word on a detected voicemail when enabled. */
401
+ voicemail_message?: string | null;
388
402
  sms_prompt?: string | null;
389
403
  web_prompt?: string | null;
390
404
  speaking_rate?: number | null;
@@ -401,6 +415,12 @@ interface PhoneNumberUpdateParams {
401
415
  voice_id?: string | null;
402
416
  /** SMS agent auto-reply on/off. Default false. */
403
417
  sms_reply_enabled?: boolean;
418
+ /** This number's own voicemail toggle - the only voicemail control for API-imported
419
+ * numbers. Enabling without a message (here or already saved) is rejected with
420
+ * voicemail_message_required. null clears. */
421
+ voicemail_leave_enabled?: boolean | null;
422
+ /** Spoken word for word on voicemail. Max 2000. null clears. */
423
+ voicemail_message?: string | null;
404
424
  /** SMS agent instructions (independent channel). Max 20000. null clears. */
405
425
  sms_prompt?: string | null;
406
426
  /** Web agent instructions (independent channel). Max 20000. null clears. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixflex",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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",