phonic 0.32.26 → 0.32.28

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.
Files changed (39) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +2 -0
  3. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +9 -0
  4. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.js +6 -0
  5. package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.d.ts +1 -0
  6. package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.js +1 -0
  7. package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +3 -3
  8. package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +2 -2
  9. package/dist/cjs/api/types/Agent.d.ts +9 -0
  10. package/dist/cjs/api/types/Agent.js +6 -0
  11. package/dist/cjs/api/types/ConfigOptions.d.ts +9 -0
  12. package/dist/cjs/api/types/ConfigOptions.js +6 -0
  13. package/dist/cjs/api/types/CreateAgentRequest.d.ts +9 -0
  14. package/dist/cjs/api/types/CreateAgentRequest.js +6 -0
  15. package/dist/cjs/api/types/OutboundCallConfig.d.ts +9 -0
  16. package/dist/cjs/api/types/OutboundCallConfig.js +6 -0
  17. package/dist/cjs/api/types/Tool.d.ts +2 -2
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.mjs +2 -2
  21. package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +2 -0
  22. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +9 -0
  23. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +6 -0
  24. package/dist/esm/api/resources/responses/client/requests/GenerateResponsesRequest.d.mts +1 -0
  25. package/dist/esm/api/resources/responses/client/requests/GenerateResponsesRequest.mjs +1 -0
  26. package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +3 -3
  27. package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +2 -2
  28. package/dist/esm/api/types/Agent.d.mts +9 -0
  29. package/dist/esm/api/types/Agent.mjs +6 -0
  30. package/dist/esm/api/types/ConfigOptions.d.mts +9 -0
  31. package/dist/esm/api/types/ConfigOptions.mjs +6 -0
  32. package/dist/esm/api/types/CreateAgentRequest.d.mts +9 -0
  33. package/dist/esm/api/types/CreateAgentRequest.mjs +6 -0
  34. package/dist/esm/api/types/OutboundCallConfig.d.mts +9 -0
  35. package/dist/esm/api/types/OutboundCallConfig.mjs +6 -0
  36. package/dist/esm/api/types/Tool.d.mts +2 -2
  37. package/dist/esm/version.d.mts +1 -1
  38. package/dist/esm/version.mjs +1 -1
  39. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "phonic",
46
- "X-Fern-SDK-Version": "0.32.26",
47
- "User-Agent": "phonic/0.32.26",
46
+ "X-Fern-SDK-Version": "0.32.28",
47
+ "User-Agent": "phonic/0.32.28",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -117,6 +117,8 @@ export interface AgentsCreateRequest {
117
117
  push_to_talk?: boolean;
118
118
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
119
119
  intelligence_level?: Phonic.CreateAgentRequest.IntelligenceLevel;
120
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
121
+ phonic_model?: Phonic.CreateAgentRequest.PhonicModel;
120
122
  /** These words, or short phrases, will be more accurately recognized by the agent. */
121
123
  boosted_keywords?: string[];
122
124
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -123,6 +123,8 @@ export interface UpdateAgentRequest {
123
123
  push_to_talk?: boolean;
124
124
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
125
125
  intelligence_level?: UpdateAgentRequest.IntelligenceLevel;
126
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
127
+ phonic_model?: UpdateAgentRequest.PhonicModel;
126
128
  /** These words, or short phrases, will be more accurately recognized by the agent. */
127
129
  boosted_keywords?: string[];
128
130
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -202,6 +204,13 @@ export declare namespace UpdateAgentRequest {
202
204
  readonly High: "high";
203
205
  };
204
206
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
207
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
208
+ const PhonicModel: {
209
+ readonly PhonicV05: "phonic_v0_5";
210
+ readonly PhonicV1: "phonic_v1";
211
+ readonly PhonicV11: "phonic_v1_1";
212
+ };
213
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
205
214
  type PronunciationDictionary = PronunciationDictionary.Item[];
206
215
  namespace PronunciationDictionary {
207
216
  interface Item {
@@ -33,4 +33,10 @@ var UpdateAgentRequest;
33
33
  Standard: "standard",
34
34
  High: "high",
35
35
  };
36
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
37
+ UpdateAgentRequest.PhonicModel = {
38
+ PhonicV05: "phonic_v0_5",
39
+ PhonicV1: "phonic_v1",
40
+ PhonicV11: "phonic_v1_1",
41
+ };
36
42
  })(UpdateAgentRequest || (exports.UpdateAgentRequest = UpdateAgentRequest = {}));
@@ -73,6 +73,7 @@ export declare namespace GenerateResponsesRequest {
73
73
  const PhonicModel: {
74
74
  readonly PhonicV05: "phonic_v0_5";
75
75
  readonly PhonicV1: "phonic_v1";
76
+ readonly PhonicV11: "phonic_v1_1";
76
77
  };
77
78
  type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
78
79
  }
@@ -8,5 +8,6 @@ var GenerateResponsesRequest;
8
8
  GenerateResponsesRequest.PhonicModel = {
9
9
  PhonicV05: "phonic_v0_5",
10
10
  PhonicV1: "phonic_v1",
11
+ PhonicV11: "phonic_v1_1",
11
12
  };
12
13
  })(GenerateResponsesRequest || (exports.GenerateResponsesRequest = GenerateResponsesRequest = {}));
@@ -205,15 +205,15 @@ export interface CreateToolRequest {
205
205
  phone_number?: string | null;
206
206
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. Ignored when dynamic_dtmf is true. */
207
207
  dtmf?: string | null;
208
- /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since a SIP REFER transfer has no bridged call to speak it on. Only available for built_in_transfer_to_phone_number tools. */
208
+ /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since Phonic drops out of the call and has no line to speak it on. Only available for built_in_transfer_to_phone_number tools. */
209
209
  post_transfer_message?: string | null;
210
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
210
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
211
211
  dynamic_dtmf?: boolean;
212
212
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
213
213
  use_agent_phone_number?: boolean;
214
214
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
215
215
  detect_voicemail?: boolean;
216
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires use_agent_phone_number and detect_voicemail to be false, dtmf and post_transfer_message to be null and dynamic_dtmf to be false. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
216
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
217
217
  keep_listening?: boolean;
218
218
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. All agents must exist in the same project as the tool. */
219
219
  agents_to_transfer_to?: string[];
@@ -47,13 +47,13 @@ export interface UpdateToolRequest {
47
47
  dtmf?: string | null;
48
48
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Can be set to null to remove the announcement. Must be null when the resulting keep_listening is false. Only applicable to built_in_transfer_to_phone_number tools. */
49
49
  post_transfer_message?: string | null;
50
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
50
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
51
51
  dynamic_dtmf?: boolean;
52
52
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
53
53
  use_agent_phone_number?: boolean;
54
54
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
55
55
  detect_voicemail?: boolean;
56
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires the resulting use_agent_phone_number and detect_voicemail to be false, dtmf and post_transfer_message to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
56
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires the resulting use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only applicable to built_in_transfer_to_phone_number tools. */
57
57
  keep_listening?: boolean;
58
58
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
59
59
  agents_to_transfer_to?: string[];
@@ -64,6 +64,8 @@ export interface Agent {
64
64
  push_to_talk: boolean;
65
65
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
66
66
  intelligence_level: Agent.IntelligenceLevel;
67
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
68
+ phonic_model?: Agent.PhonicModel | undefined;
67
69
  /** These words, or short phrases, will be more accurately recognized by the agent. */
68
70
  boosted_keywords: string[];
69
71
  /** Names of observability integrations enabled for the agent. Each must be one of the supported providers. */
@@ -151,6 +153,13 @@ export declare namespace Agent {
151
153
  readonly High: "high";
152
154
  };
153
155
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
156
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
157
+ const PhonicModel: {
158
+ readonly PhonicV05: "phonic_v0_5";
159
+ readonly PhonicV1: "phonic_v1";
160
+ readonly PhonicV11: "phonic_v1_1";
161
+ };
162
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
154
163
  type PronunciationDictionary = PronunciationDictionary.Item[];
155
164
  namespace PronunciationDictionary {
156
165
  interface Item {
@@ -29,4 +29,10 @@ var Agent;
29
29
  Standard: "standard",
30
30
  High: "high",
31
31
  };
32
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
33
+ Agent.PhonicModel = {
34
+ PhonicV05: "phonic_v0_5",
35
+ PhonicV1: "phonic_v1",
36
+ PhonicV11: "phonic_v1_1",
37
+ };
32
38
  })(Agent || (exports.Agent = Agent = {}));
@@ -61,6 +61,8 @@ export interface ConfigOptions {
61
61
  stream_ahead_of_real_time?: boolean | undefined;
62
62
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
63
63
  intelligence_level?: ConfigOptions.IntelligenceLevel | undefined;
64
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
65
+ phonic_model?: ConfigOptions.PhonicModel | undefined;
64
66
  /** Keywords to boost in speech recognition */
65
67
  boosted_keywords?: string[] | undefined;
66
68
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -136,6 +138,13 @@ export declare namespace ConfigOptions {
136
138
  readonly High: "high";
137
139
  };
138
140
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
141
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
142
+ const PhonicModel: {
143
+ readonly PhonicV05: "phonic_v0_5";
144
+ readonly PhonicV1: "phonic_v1";
145
+ readonly PhonicV11: "phonic_v1_1";
146
+ };
147
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
139
148
  type PronunciationDictionary = PronunciationDictionary.Item[];
140
149
  namespace PronunciationDictionary {
141
150
  interface Item {
@@ -37,4 +37,10 @@ var ConfigOptions;
37
37
  Standard: "standard",
38
38
  High: "high",
39
39
  };
40
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
41
+ ConfigOptions.PhonicModel = {
42
+ PhonicV05: "phonic_v0_5",
43
+ PhonicV1: "phonic_v1",
44
+ PhonicV11: "phonic_v1_1",
45
+ };
40
46
  })(ConfigOptions || (exports.ConfigOptions = ConfigOptions = {}));
@@ -70,6 +70,8 @@ export interface CreateAgentRequest {
70
70
  push_to_talk?: boolean | undefined;
71
71
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
72
72
  intelligence_level?: CreateAgentRequest.IntelligenceLevel | undefined;
73
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
74
+ phonic_model?: CreateAgentRequest.PhonicModel | undefined;
73
75
  /** These words, or short phrases, will be more accurately recognized by the agent. */
74
76
  boosted_keywords?: string[] | undefined;
75
77
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -149,6 +151,13 @@ export declare namespace CreateAgentRequest {
149
151
  readonly High: "high";
150
152
  };
151
153
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
154
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
155
+ const PhonicModel: {
156
+ readonly PhonicV05: "phonic_v0_5";
157
+ readonly PhonicV1: "phonic_v1";
158
+ readonly PhonicV11: "phonic_v1_1";
159
+ };
160
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
152
161
  type PronunciationDictionary = PronunciationDictionary.Item[];
153
162
  namespace PronunciationDictionary {
154
163
  interface Item {
@@ -33,4 +33,10 @@ var CreateAgentRequest;
33
33
  Standard: "standard",
34
34
  High: "high",
35
35
  };
36
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
37
+ CreateAgentRequest.PhonicModel = {
38
+ PhonicV05: "phonic_v0_5",
39
+ PhonicV1: "phonic_v1",
40
+ PhonicV11: "phonic_v1_1",
41
+ };
36
42
  })(CreateAgentRequest || (exports.CreateAgentRequest = CreateAgentRequest = {}));
@@ -39,6 +39,8 @@ export interface OutboundCallConfig {
39
39
  push_to_talk?: boolean | undefined;
40
40
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
41
41
  intelligence_level?: OutboundCallConfig.IntelligenceLevel | undefined;
42
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
43
+ phonic_model?: OutboundCallConfig.PhonicModel | undefined;
42
44
  /** These words, or short phrases, will be more accurately recognized by the agent. */
43
45
  boosted_keywords?: string[] | undefined;
44
46
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -90,6 +92,13 @@ export declare namespace OutboundCallConfig {
90
92
  readonly High: "high";
91
93
  };
92
94
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
95
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
96
+ const PhonicModel: {
97
+ readonly PhonicV05: "phonic_v0_5";
98
+ readonly PhonicV1: "phonic_v1";
99
+ readonly PhonicV11: "phonic_v1_1";
100
+ };
101
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
93
102
  type PronunciationDictionary = PronunciationDictionary.Item[];
94
103
  namespace PronunciationDictionary {
95
104
  interface Item {
@@ -15,6 +15,12 @@ var OutboundCallConfig;
15
15
  Standard: "standard",
16
16
  High: "high",
17
17
  };
18
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
19
+ OutboundCallConfig.PhonicModel = {
20
+ PhonicV05: "phonic_v0_5",
21
+ PhonicV1: "phonic_v1",
22
+ PhonicV11: "phonic_v1_1",
23
+ };
18
24
  /** The background noise type. Can be "office", "call-center", "coffee-shop", or null. */
19
25
  OutboundCallConfig.BackgroundNoise = {
20
26
  Office: "office",
@@ -38,13 +38,13 @@ export interface Tool {
38
38
  dtmf?: (string | null) | undefined;
39
39
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Always null when keep_listening is false. Only returned for built_in_transfer_to_phone_number tools. */
40
40
  post_transfer_message?: (string | null) | undefined;
41
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
41
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
42
42
  dynamic_dtmf?: boolean | undefined;
43
43
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
44
44
  use_agent_phone_number?: boolean | undefined;
45
45
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
46
46
  detect_voicemail?: boolean | undefined;
47
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, so use_agent_phone_number, detect_voicemail and dynamic_dtmf are false and dtmf and post_transfer_message are null. Only returned for built_in_transfer_to_phone_number tools. */
47
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, so use_agent_phone_number and detect_voicemail are false and post_transfer_message is null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only returned for built_in_transfer_to_phone_number tools. */
48
48
  keep_listening?: boolean | undefined;
49
49
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
50
50
  agents_to_transfer_to?: string[] | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.26";
1
+ export declare const SDK_VERSION = "0.32.28";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.32.26";
4
+ exports.SDK_VERSION = "0.32.28";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "phonic",
9
- "X-Fern-SDK-Version": "0.32.26",
10
- "User-Agent": "phonic/0.32.26",
9
+ "X-Fern-SDK-Version": "0.32.28",
10
+ "User-Agent": "phonic/0.32.28",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -117,6 +117,8 @@ export interface AgentsCreateRequest {
117
117
  push_to_talk?: boolean;
118
118
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
119
119
  intelligence_level?: Phonic.CreateAgentRequest.IntelligenceLevel;
120
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
121
+ phonic_model?: Phonic.CreateAgentRequest.PhonicModel;
120
122
  /** These words, or short phrases, will be more accurately recognized by the agent. */
121
123
  boosted_keywords?: string[];
122
124
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -123,6 +123,8 @@ export interface UpdateAgentRequest {
123
123
  push_to_talk?: boolean;
124
124
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
125
125
  intelligence_level?: UpdateAgentRequest.IntelligenceLevel;
126
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
127
+ phonic_model?: UpdateAgentRequest.PhonicModel;
126
128
  /** These words, or short phrases, will be more accurately recognized by the agent. */
127
129
  boosted_keywords?: string[];
128
130
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -202,6 +204,13 @@ export declare namespace UpdateAgentRequest {
202
204
  readonly High: "high";
203
205
  };
204
206
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
207
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
208
+ const PhonicModel: {
209
+ readonly PhonicV05: "phonic_v0_5";
210
+ readonly PhonicV1: "phonic_v1";
211
+ readonly PhonicV11: "phonic_v1_1";
212
+ };
213
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
205
214
  type PronunciationDictionary = PronunciationDictionary.Item[];
206
215
  namespace PronunciationDictionary {
207
216
  interface Item {
@@ -30,4 +30,10 @@ export var UpdateAgentRequest;
30
30
  Standard: "standard",
31
31
  High: "high",
32
32
  };
33
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
34
+ UpdateAgentRequest.PhonicModel = {
35
+ PhonicV05: "phonic_v0_5",
36
+ PhonicV1: "phonic_v1",
37
+ PhonicV11: "phonic_v1_1",
38
+ };
33
39
  })(UpdateAgentRequest || (UpdateAgentRequest = {}));
@@ -73,6 +73,7 @@ export declare namespace GenerateResponsesRequest {
73
73
  const PhonicModel: {
74
74
  readonly PhonicV05: "phonic_v0_5";
75
75
  readonly PhonicV1: "phonic_v1";
76
+ readonly PhonicV11: "phonic_v1_1";
76
77
  };
77
78
  type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
78
79
  }
@@ -5,5 +5,6 @@ export var GenerateResponsesRequest;
5
5
  GenerateResponsesRequest.PhonicModel = {
6
6
  PhonicV05: "phonic_v0_5",
7
7
  PhonicV1: "phonic_v1",
8
+ PhonicV11: "phonic_v1_1",
8
9
  };
9
10
  })(GenerateResponsesRequest || (GenerateResponsesRequest = {}));
@@ -205,15 +205,15 @@ export interface CreateToolRequest {
205
205
  phone_number?: string | null;
206
206
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. Ignored when dynamic_dtmf is true. */
207
207
  dtmf?: string | null;
208
- /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since a SIP REFER transfer has no bridged call to speak it on. Only available for built_in_transfer_to_phone_number tools. */
208
+ /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since Phonic drops out of the call and has no line to speak it on. Only available for built_in_transfer_to_phone_number tools. */
209
209
  post_transfer_message?: string | null;
210
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
210
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
211
211
  dynamic_dtmf?: boolean;
212
212
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
213
213
  use_agent_phone_number?: boolean;
214
214
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
215
215
  detect_voicemail?: boolean;
216
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires use_agent_phone_number and detect_voicemail to be false, dtmf and post_transfer_message to be null and dynamic_dtmf to be false. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
216
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
217
217
  keep_listening?: boolean;
218
218
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. All agents must exist in the same project as the tool. */
219
219
  agents_to_transfer_to?: string[];
@@ -47,13 +47,13 @@ export interface UpdateToolRequest {
47
47
  dtmf?: string | null;
48
48
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Can be set to null to remove the announcement. Must be null when the resulting keep_listening is false. Only applicable to built_in_transfer_to_phone_number tools. */
49
49
  post_transfer_message?: string | null;
50
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
50
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
51
51
  dynamic_dtmf?: boolean;
52
52
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
53
53
  use_agent_phone_number?: boolean;
54
54
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
55
55
  detect_voicemail?: boolean;
56
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires the resulting use_agent_phone_number and detect_voicemail to be false, dtmf and post_transfer_message to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
56
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires the resulting use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only applicable to built_in_transfer_to_phone_number tools. */
57
57
  keep_listening?: boolean;
58
58
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
59
59
  agents_to_transfer_to?: string[];
@@ -64,6 +64,8 @@ export interface Agent {
64
64
  push_to_talk: boolean;
65
65
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
66
66
  intelligence_level: Agent.IntelligenceLevel;
67
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
68
+ phonic_model?: Agent.PhonicModel | undefined;
67
69
  /** These words, or short phrases, will be more accurately recognized by the agent. */
68
70
  boosted_keywords: string[];
69
71
  /** Names of observability integrations enabled for the agent. Each must be one of the supported providers. */
@@ -151,6 +153,13 @@ export declare namespace Agent {
151
153
  readonly High: "high";
152
154
  };
153
155
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
156
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
157
+ const PhonicModel: {
158
+ readonly PhonicV05: "phonic_v0_5";
159
+ readonly PhonicV1: "phonic_v1";
160
+ readonly PhonicV11: "phonic_v1_1";
161
+ };
162
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
154
163
  type PronunciationDictionary = PronunciationDictionary.Item[];
155
164
  namespace PronunciationDictionary {
156
165
  interface Item {
@@ -26,4 +26,10 @@ export var Agent;
26
26
  Standard: "standard",
27
27
  High: "high",
28
28
  };
29
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
30
+ Agent.PhonicModel = {
31
+ PhonicV05: "phonic_v0_5",
32
+ PhonicV1: "phonic_v1",
33
+ PhonicV11: "phonic_v1_1",
34
+ };
29
35
  })(Agent || (Agent = {}));
@@ -61,6 +61,8 @@ export interface ConfigOptions {
61
61
  stream_ahead_of_real_time?: boolean | undefined;
62
62
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
63
63
  intelligence_level?: ConfigOptions.IntelligenceLevel | undefined;
64
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
65
+ phonic_model?: ConfigOptions.PhonicModel | undefined;
64
66
  /** Keywords to boost in speech recognition */
65
67
  boosted_keywords?: string[] | undefined;
66
68
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -136,6 +138,13 @@ export declare namespace ConfigOptions {
136
138
  readonly High: "high";
137
139
  };
138
140
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
141
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
142
+ const PhonicModel: {
143
+ readonly PhonicV05: "phonic_v0_5";
144
+ readonly PhonicV1: "phonic_v1";
145
+ readonly PhonicV11: "phonic_v1_1";
146
+ };
147
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
139
148
  type PronunciationDictionary = PronunciationDictionary.Item[];
140
149
  namespace PronunciationDictionary {
141
150
  interface Item {
@@ -34,4 +34,10 @@ export var ConfigOptions;
34
34
  Standard: "standard",
35
35
  High: "high",
36
36
  };
37
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
38
+ ConfigOptions.PhonicModel = {
39
+ PhonicV05: "phonic_v0_5",
40
+ PhonicV1: "phonic_v1",
41
+ PhonicV11: "phonic_v1_1",
42
+ };
37
43
  })(ConfigOptions || (ConfigOptions = {}));
@@ -70,6 +70,8 @@ export interface CreateAgentRequest {
70
70
  push_to_talk?: boolean | undefined;
71
71
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
72
72
  intelligence_level?: CreateAgentRequest.IntelligenceLevel | undefined;
73
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
74
+ phonic_model?: CreateAgentRequest.PhonicModel | undefined;
73
75
  /** These words, or short phrases, will be more accurately recognized by the agent. */
74
76
  boosted_keywords?: string[] | undefined;
75
77
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -149,6 +151,13 @@ export declare namespace CreateAgentRequest {
149
151
  readonly High: "high";
150
152
  };
151
153
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
154
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
155
+ const PhonicModel: {
156
+ readonly PhonicV05: "phonic_v0_5";
157
+ readonly PhonicV1: "phonic_v1";
158
+ readonly PhonicV11: "phonic_v1_1";
159
+ };
160
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
152
161
  type PronunciationDictionary = PronunciationDictionary.Item[];
153
162
  namespace PronunciationDictionary {
154
163
  interface Item {
@@ -30,4 +30,10 @@ export var CreateAgentRequest;
30
30
  Standard: "standard",
31
31
  High: "high",
32
32
  };
33
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
34
+ CreateAgentRequest.PhonicModel = {
35
+ PhonicV05: "phonic_v0_5",
36
+ PhonicV1: "phonic_v1",
37
+ PhonicV11: "phonic_v1_1",
38
+ };
33
39
  })(CreateAgentRequest || (CreateAgentRequest = {}));
@@ -39,6 +39,8 @@ export interface OutboundCallConfig {
39
39
  push_to_talk?: boolean | undefined;
40
40
  /** The intelligence level of the agent. `high` uses a more capable model for more complex reasoning, while `standard` is optimized for lower latency. */
41
41
  intelligence_level?: OutboundCallConfig.IntelligenceLevel | undefined;
42
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
43
+ phonic_model?: OutboundCallConfig.PhonicModel | undefined;
42
44
  /** These words, or short phrases, will be more accurately recognized by the agent. */
43
45
  boosted_keywords?: string[] | undefined;
44
46
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
@@ -90,6 +92,13 @@ export declare namespace OutboundCallConfig {
90
92
  readonly High: "high";
91
93
  };
92
94
  type IntelligenceLevel = (typeof IntelligenceLevel)[keyof typeof IntelligenceLevel];
95
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
96
+ const PhonicModel: {
97
+ readonly PhonicV05: "phonic_v0_5";
98
+ readonly PhonicV1: "phonic_v1";
99
+ readonly PhonicV11: "phonic_v1_1";
100
+ };
101
+ type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
93
102
  type PronunciationDictionary = PronunciationDictionary.Item[];
94
103
  namespace PronunciationDictionary {
95
104
  interface Item {
@@ -12,6 +12,12 @@ export var OutboundCallConfig;
12
12
  Standard: "standard",
13
13
  High: "high",
14
14
  };
15
+ /** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
16
+ OutboundCallConfig.PhonicModel = {
17
+ PhonicV05: "phonic_v0_5",
18
+ PhonicV1: "phonic_v1",
19
+ PhonicV11: "phonic_v1_1",
20
+ };
15
21
  /** The background noise type. Can be "office", "call-center", "coffee-shop", or null. */
16
22
  OutboundCallConfig.BackgroundNoise = {
17
23
  Office: "office",
@@ -38,13 +38,13 @@ export interface Tool {
38
38
  dtmf?: (string | null) | undefined;
39
39
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Always null when keep_listening is false. Only returned for built_in_transfer_to_phone_number tools. */
40
40
  post_transfer_message?: (string | null) | undefined;
41
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
41
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
42
42
  dynamic_dtmf?: boolean | undefined;
43
43
  /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
44
44
  use_agent_phone_number?: boolean | undefined;
45
45
  /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
46
46
  detect_voicemail?: boolean | undefined;
47
- /** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, so use_agent_phone_number, detect_voicemail and dynamic_dtmf are false and dtmf and post_transfer_message are null. Only returned for built_in_transfer_to_phone_number tools. */
47
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, so use_agent_phone_number and detect_voicemail are false and post_transfer_message is null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only returned for built_in_transfer_to_phone_number tools. */
48
48
  keep_listening?: boolean | undefined;
49
49
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
50
50
  agents_to_transfer_to?: string[] | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.26";
1
+ export declare const SDK_VERSION = "0.32.28";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.26";
1
+ export const SDK_VERSION = "0.32.28";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.26",
3
+ "version": "0.32.28",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",