nixflex 0.2.2 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.0 (2026-08-23)
2
+
3
+ - Call type: `charged_minutes` (minutes actually billed - transfers stop the meter at handoff, so this can be less than the recording length)
4
+ - Call type: `ended_reason` documented with the full value list, including the new `callee_hangup` (outbound) and carrier words (`busy`, `failed`, `no-answer`, `canceled`)
5
+ - No breaking changes. `list` pagination (`limit`/`offset`) shipped previously in 0.2.x.
1
6
  # Changelog
2
7
 
3
8
  All notable changes to the `nixflex` package. This project follows
package/dist/index.d.cts CHANGED
@@ -183,7 +183,14 @@ interface Call {
183
183
  answered_at: number | null;
184
184
  /** TIME CONNECTED in ms (answer to hangup) - the number you are billed on. Ring time excluded, so on outbound this is NOT end_timestamp - start_timestamp. */
185
185
  duration_ms: number;
186
+ /** Why the call ended: completed, transferred, voicemail_detected, silence_timeout,
187
+ * ivr_timeout, max_duration_reached, caller_hangup (inbound), callee_hangup (outbound),
188
+ * busy / failed / no-answer / canceled (carrier words for calls that never connected),
189
+ * concurrency_limit, and rare infrastructure endings. */
186
190
  ended_reason: string;
191
+ /** Minutes actually charged for this call. Transfers stop the meter at handoff, so
192
+ * this can be less than duration_ms suggests - the recording runs to the end either way. */
193
+ charged_minutes?: number;
187
194
  /** A single string, one turn per line - not an array of turn objects. */
188
195
  transcript: string;
189
196
  call_summary: string;
package/dist/index.d.ts CHANGED
@@ -183,7 +183,14 @@ interface Call {
183
183
  answered_at: number | null;
184
184
  /** TIME CONNECTED in ms (answer to hangup) - the number you are billed on. Ring time excluded, so on outbound this is NOT end_timestamp - start_timestamp. */
185
185
  duration_ms: number;
186
+ /** Why the call ended: completed, transferred, voicemail_detected, silence_timeout,
187
+ * ivr_timeout, max_duration_reached, caller_hangup (inbound), callee_hangup (outbound),
188
+ * busy / failed / no-answer / canceled (carrier words for calls that never connected),
189
+ * concurrency_limit, and rare infrastructure endings. */
186
190
  ended_reason: string;
191
+ /** Minutes actually charged for this call. Transfers stop the meter at handoff, so
192
+ * this can be less than duration_ms suggests - the recording runs to the end either way. */
193
+ charged_minutes?: number;
187
194
  /** A single string, one turn per line - not an array of turn objects. */
188
195
  transcript: string;
189
196
  call_summary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixflex",
3
- "version": "0.2.2",
3
+ "version": "0.3.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",