phonic 0.29.2 → 0.29.3

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/index.d.mts CHANGED
@@ -47,41 +47,65 @@ type TaskResult = {
47
47
  type TaskResults = {
48
48
  results: Array<TaskResult>;
49
49
  };
50
+ type ToolCall = {
51
+ id: string;
52
+ tool: {
53
+ id: string;
54
+ name: string;
55
+ };
56
+ endpoint_url: string | null;
57
+ endpoint_headers: Record<string, string> | null;
58
+ endpoint_timeout_ms: number | null;
59
+ endpoint_called_at: string | null;
60
+ request_body: Record<string, unknown> | null;
61
+ response_body: Record<string, unknown> | null;
62
+ response_status_code: number | null;
63
+ timed_out: boolean | null;
64
+ error_message: string | null;
65
+ };
50
66
  type ConversationItem = {
51
- role: "user";
52
67
  item_idx: number;
53
- text: string;
68
+ role: "user";
69
+ live_transcript: string;
70
+ post_call_transcript: string | null;
54
71
  duration_ms: number;
55
72
  started_at: string;
56
73
  } | {
57
- role: "assistant";
58
74
  item_idx: number;
59
- text: string;
75
+ role: "assistant";
76
+ live_transcript: string;
60
77
  voice_id: string;
61
78
  system_prompt: string;
62
79
  audio_speed: number;
63
80
  duration_ms: number;
64
81
  started_at: string;
82
+ tool_calls: Array<ToolCall>;
65
83
  };
66
84
  type Conversation = {
67
85
  id: string;
68
- external_id: string | null;
69
- workspace: string;
70
86
  agent: {
71
87
  id: string;
72
88
  name: string;
89
+ is_deleted: boolean;
73
90
  } | null;
91
+ workspace: string;
92
+ project: {
93
+ id: string;
94
+ name: string;
95
+ };
96
+ external_id: string | null;
74
97
  model: string;
75
98
  welcome_message: string | null;
99
+ template_variables: Record<string, string>;
76
100
  input_format: "pcm_44100" | "mulaw_8000";
77
101
  output_format: "pcm_44100" | "mulaw_8000";
78
102
  live_transcript: string;
79
103
  post_call_transcript: string | null;
80
- audio_url: string | null;
81
104
  duration_ms: number;
82
- task_results: TaskResults;
105
+ audio_url: string | null;
83
106
  started_at: ISODateTime;
84
107
  ended_at: ISODateTime | null;
108
+ task_results: TaskResults;
85
109
  items: Array<ConversationItem>;
86
110
  };
87
111
  type ConversationEndedWebhookPayload = {
package/dist/index.d.ts CHANGED
@@ -47,41 +47,65 @@ type TaskResult = {
47
47
  type TaskResults = {
48
48
  results: Array<TaskResult>;
49
49
  };
50
+ type ToolCall = {
51
+ id: string;
52
+ tool: {
53
+ id: string;
54
+ name: string;
55
+ };
56
+ endpoint_url: string | null;
57
+ endpoint_headers: Record<string, string> | null;
58
+ endpoint_timeout_ms: number | null;
59
+ endpoint_called_at: string | null;
60
+ request_body: Record<string, unknown> | null;
61
+ response_body: Record<string, unknown> | null;
62
+ response_status_code: number | null;
63
+ timed_out: boolean | null;
64
+ error_message: string | null;
65
+ };
50
66
  type ConversationItem = {
51
- role: "user";
52
67
  item_idx: number;
53
- text: string;
68
+ role: "user";
69
+ live_transcript: string;
70
+ post_call_transcript: string | null;
54
71
  duration_ms: number;
55
72
  started_at: string;
56
73
  } | {
57
- role: "assistant";
58
74
  item_idx: number;
59
- text: string;
75
+ role: "assistant";
76
+ live_transcript: string;
60
77
  voice_id: string;
61
78
  system_prompt: string;
62
79
  audio_speed: number;
63
80
  duration_ms: number;
64
81
  started_at: string;
82
+ tool_calls: Array<ToolCall>;
65
83
  };
66
84
  type Conversation = {
67
85
  id: string;
68
- external_id: string | null;
69
- workspace: string;
70
86
  agent: {
71
87
  id: string;
72
88
  name: string;
89
+ is_deleted: boolean;
73
90
  } | null;
91
+ workspace: string;
92
+ project: {
93
+ id: string;
94
+ name: string;
95
+ };
96
+ external_id: string | null;
74
97
  model: string;
75
98
  welcome_message: string | null;
99
+ template_variables: Record<string, string>;
76
100
  input_format: "pcm_44100" | "mulaw_8000";
77
101
  output_format: "pcm_44100" | "mulaw_8000";
78
102
  live_transcript: string;
79
103
  post_call_transcript: string | null;
80
- audio_url: string | null;
81
104
  duration_ms: number;
82
- task_results: TaskResults;
105
+ audio_url: string | null;
83
106
  started_at: ISODateTime;
84
107
  ended_at: ISODateTime | null;
108
+ task_results: TaskResults;
85
109
  items: Array<ConversationItem>;
86
110
  };
87
111
  type ConversationEndedWebhookPayload = {
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.29.2";
38
+ var version = "0.29.3";
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.29.2";
2
+ var version = "0.29.3";
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.29.2",
3
+ "version": "0.29.3",
4
4
  "description": "Phonic Node.js SDK",
5
5
  "scripts": {
6
6
  "build": "tsup",