phonic 0.25.1 → 0.25.2

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
@@ -285,10 +285,14 @@ const conversationResult = await phonic.conversations.getByExternalId({
285
285
  ```ts
286
286
  const outboundCallResult = await phonic.conversations.outboundCall("+19189396241", {
287
287
  // Optional fields
288
- welcome_message: "Hello, how can I help you?",
289
288
  project: "main",
290
- system_prompt: "You are a helpful assistant.",
291
289
  voice_id: "grant",
290
+ welcome_message: "Hi {{customer_name}}. How can I help you today?",
291
+ system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
292
+ template_variables: {
293
+ customer_name: "David",
294
+ subject: "Chess"
295
+ },
292
296
  enable_silent_audio_fallback: true,
293
297
  vad_prebuffer_duration_ms: 1800,
294
298
  vad_min_speech_duration_ms: 40,
package/dist/index.d.mts CHANGED
@@ -37,10 +37,11 @@ type ISODateTime$1 = `${string}Z`;
37
37
  type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
38
38
  interface PhonicSTSConfigBase {
39
39
  input_format: "pcm_44100" | "mulaw_8000";
40
- system_prompt?: string;
41
- welcome_message?: string;
42
- voice_id?: string;
43
40
  output_format?: "pcm_44100" | "mulaw_8000";
41
+ voice_id?: string;
42
+ welcome_message?: string;
43
+ system_prompt?: string;
44
+ template_variables?: Record<string, string>;
44
45
  enable_silent_audio_fallback?: boolean;
45
46
  experimental_params?: Record<string, unknown>;
46
47
  tools?: Array<PhonicSTSTool>;
package/dist/index.d.ts CHANGED
@@ -37,10 +37,11 @@ type ISODateTime$1 = `${string}Z`;
37
37
  type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
38
38
  interface PhonicSTSConfigBase {
39
39
  input_format: "pcm_44100" | "mulaw_8000";
40
- system_prompt?: string;
41
- welcome_message?: string;
42
- voice_id?: string;
43
40
  output_format?: "pcm_44100" | "mulaw_8000";
41
+ voice_id?: string;
42
+ welcome_message?: string;
43
+ system_prompt?: string;
44
+ template_variables?: Record<string, string>;
44
45
  enable_silent_audio_fallback?: boolean;
45
46
  experimental_params?: Record<string, unknown>;
46
47
  tools?: Array<PhonicSTSTool>;
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.25.1";
38
+ var version = "0.25.2";
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.25.1";
2
+ var version = "0.25.2";
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.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Phonic Node.js SDK",
5
5
  "scripts": {
6
6
  "build": "tsup",