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 +9 -3
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
-
|
|
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:
|
|
545
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
101
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
101
|
-
|
|
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
package/dist/index.mjs
CHANGED