phonic 0.24.1 → 0.25.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/README.md CHANGED
@@ -502,7 +502,7 @@ Sent when the user stops speaking.
502
502
  ```ts
503
503
  {
504
504
  type: "interrupted_response",
505
- interruptedResponse: string, // partial assistant response that cuts off approximately where the user interrupted
505
+ text: string, // partial assistant response that cuts off approximately where the user interrupted
506
506
  }
507
507
  ```
508
508
 
@@ -541,8 +541,14 @@ Sent when the assistant decides to end the conversation.
541
541
  endpoint_url: string | null;
542
542
  endpoint_timeout_ms: number | null;
543
543
  endpoint_called_at: string | null;
544
- request_body: object | null;
545
- response_body: object | null;
544
+ request_body: {
545
+ call_info: {
546
+ from_phone_number: string;
547
+ to_phone_number: string;
548
+ } | null;
549
+ [key: string]: unknown;
550
+ } | null;
551
+ response_body: Record<string, unknown> | null;
546
552
  response_status_code: number | null;
547
553
  timed_out: boolean | null;
548
554
  error_message: string | null;
package/dist/index.d.mts CHANGED
@@ -72,14 +72,14 @@ type PhonicSTSWebSocketResponseMessage = {
72
72
  type: "audio_finished";
73
73
  } | {
74
74
  type: "is_user_speaking";
75
- isUserSpeaking: boolean;
75
+ is_user_speaking: boolean;
76
76
  } | {
77
77
  type: "user_started_speaking";
78
78
  } | {
79
79
  type: "user_finished_speaking";
80
80
  } | {
81
81
  type: "interrupted_response";
82
- interruptedResponse: string;
82
+ text: string;
83
83
  } | {
84
84
  type: "assistant_chose_not_to_respond";
85
85
  } | {
@@ -97,8 +97,14 @@ type PhonicSTSWebSocketResponseMessage = {
97
97
  endpoint_url: string | null;
98
98
  endpoint_timeout_ms: number | null;
99
99
  endpoint_called_at: string | null;
100
- request_body: object | null;
101
- response_body: object | null;
100
+ request_body: {
101
+ call_info: {
102
+ from_phone_number: string;
103
+ to_phone_number: string;
104
+ } | null;
105
+ [key: string]: unknown;
106
+ } | null;
107
+ response_body: Record<string, unknown> | null;
102
108
  response_status_code: number | null;
103
109
  timed_out: boolean | null;
104
110
  error_message: string | null;
package/dist/index.d.ts CHANGED
@@ -72,14 +72,14 @@ type PhonicSTSWebSocketResponseMessage = {
72
72
  type: "audio_finished";
73
73
  } | {
74
74
  type: "is_user_speaking";
75
- isUserSpeaking: boolean;
75
+ is_user_speaking: boolean;
76
76
  } | {
77
77
  type: "user_started_speaking";
78
78
  } | {
79
79
  type: "user_finished_speaking";
80
80
  } | {
81
81
  type: "interrupted_response";
82
- interruptedResponse: string;
82
+ text: string;
83
83
  } | {
84
84
  type: "assistant_chose_not_to_respond";
85
85
  } | {
@@ -97,8 +97,14 @@ type PhonicSTSWebSocketResponseMessage = {
97
97
  endpoint_url: string | null;
98
98
  endpoint_timeout_ms: number | null;
99
99
  endpoint_called_at: string | null;
100
- request_body: object | null;
101
- response_body: object | null;
100
+ request_body: {
101
+ call_info: {
102
+ from_phone_number: string;
103
+ to_phone_number: string;
104
+ } | null;
105
+ [key: string]: unknown;
106
+ } | null;
107
+ response_body: Record<string, unknown> | null;
102
108
  response_status_code: number | null;
103
109
  timed_out: boolean | null;
104
110
  error_message: string | null;
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // package.json
38
- var version = "0.24.1";
38
+ var version = "0.25.0";
39
39
 
40
40
  // src/agents/index.ts
41
41
  var Agents = class {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.24.1";
2
+ var version = "0.25.0";
3
3
 
4
4
  // src/agents/index.ts
5
5
  var Agents = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "Phonic Node.js SDK",
5
5
  "scripts": {
6
6
  "build": "tsup",