phonic 0.31.8 → 0.31.9

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 (85) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/agents/client/Client.d.ts +3 -0
  4. package/dist/cjs/api/resources/agents/client/Client.js +3 -0
  5. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +3 -0
  6. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -0
  7. package/dist/cjs/api/resources/agents/client/requests/UpsertAgentRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/conversations/client/requests/OutboundCallRequest.d.ts +5 -1
  10. package/dist/cjs/api/resources/conversations/types/ConversationsOutboundCallResponse.d.ts +2 -4
  11. package/dist/cjs/api/resources/conversations/types/ConversationsSipOutboundCallResponse.d.ts +2 -6
  12. package/dist/cjs/api/types/Agent.d.ts +2 -0
  13. package/dist/cjs/api/types/ConfigPayload.d.ts +2 -0
  14. package/dist/cjs/api/types/Conversation.d.ts +2 -0
  15. package/dist/cjs/api/types/CreateAgentRequest.d.ts +2 -0
  16. package/dist/cjs/api/types/OutboundCallConfig.d.ts +2 -0
  17. package/dist/cjs/api/types/OutboundCallInitiatedResponse.d.ts +6 -0
  18. package/dist/cjs/api/types/{InterruptedResponsePayload.js → OutboundCallInitiatedResponse.js} +1 -3
  19. package/dist/cjs/api/types/OutboundDryRunResponse.d.ts +6 -0
  20. package/dist/cjs/api/{resources/agents/client/requests/AgentsRemoveCustomPhoneNumberRequest.js → types/OutboundDryRunResponse.js} +1 -3
  21. package/dist/cjs/api/types/SipOutboundCallInitiatedResponse.d.ts +8 -0
  22. package/dist/cjs/api/types/{AudioFinishedPayload.js → SipOutboundCallInitiatedResponse.js} +1 -3
  23. package/dist/cjs/api/types/SipOutboundDryRunResponse.d.ts +8 -0
  24. package/dist/cjs/api/{resources/agents/types/AgentsRemoveCustomPhoneNumberResponse.js → types/SipOutboundDryRunResponse.js} +1 -3
  25. package/dist/cjs/api/types/index.d.ts +4 -0
  26. package/dist/cjs/api/types/index.js +4 -0
  27. package/dist/cjs/version.d.ts +1 -1
  28. package/dist/cjs/version.js +1 -1
  29. package/dist/esm/BaseClient.mjs +2 -2
  30. package/dist/esm/api/resources/agents/client/Client.d.mts +3 -0
  31. package/dist/esm/api/resources/agents/client/Client.mjs +3 -0
  32. package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +3 -0
  33. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +3 -0
  34. package/dist/esm/api/resources/agents/client/requests/UpsertAgentRequest.d.mts +1 -0
  35. package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.mts +2 -0
  36. package/dist/esm/api/resources/conversations/client/requests/OutboundCallRequest.d.mts +5 -1
  37. package/dist/esm/api/resources/conversations/types/ConversationsOutboundCallResponse.d.mts +2 -4
  38. package/dist/esm/api/resources/conversations/types/ConversationsSipOutboundCallResponse.d.mts +2 -6
  39. package/dist/esm/api/types/Agent.d.mts +2 -0
  40. package/dist/esm/api/types/ConfigPayload.d.mts +2 -0
  41. package/dist/esm/api/types/Conversation.d.mts +2 -0
  42. package/dist/esm/api/types/CreateAgentRequest.d.mts +2 -0
  43. package/dist/esm/api/types/OutboundCallConfig.d.mts +2 -0
  44. package/dist/esm/api/types/OutboundCallInitiatedResponse.d.mts +6 -0
  45. package/dist/esm/api/types/OutboundCallInitiatedResponse.mjs +2 -0
  46. package/dist/esm/api/types/OutboundDryRunResponse.d.mts +6 -0
  47. package/dist/esm/api/types/OutboundDryRunResponse.mjs +2 -0
  48. package/dist/esm/api/types/SipOutboundCallInitiatedResponse.d.mts +8 -0
  49. package/dist/esm/api/types/SipOutboundCallInitiatedResponse.mjs +2 -0
  50. package/dist/esm/api/types/SipOutboundDryRunResponse.d.mts +8 -0
  51. package/dist/esm/api/types/SipOutboundDryRunResponse.mjs +2 -0
  52. package/dist/esm/api/types/index.d.mts +4 -0
  53. package/dist/esm/api/types/index.mjs +4 -0
  54. package/dist/esm/version.d.mts +1 -1
  55. package/dist/esm/version.mjs +1 -1
  56. package/package.json +1 -1
  57. package/reference.md +6 -1
  58. package/dist/cjs/api/resources/agents/client/requests/AgentsRemoveCustomPhoneNumberRequest.d.ts +0 -16
  59. package/dist/cjs/api/resources/agents/types/AgentsRemoveCustomPhoneNumberResponse.d.ts +0 -6
  60. package/dist/cjs/api/types/AudioFinishedPayload.d.ts +0 -6
  61. package/dist/cjs/api/types/InterruptedResponsePayload.d.ts +0 -8
  62. package/dist/cjs/api/types/IsUserSpeakingPayload.d.ts +0 -8
  63. package/dist/cjs/api/types/IsUserSpeakingPayload.js +0 -5
  64. package/dist/cjs/api/types/SetTwilioCallSidPayload.d.ts +0 -8
  65. package/dist/cjs/api/types/SetTwilioCallSidPayload.js +0 -5
  66. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  67. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  68. package/dist/esm/api/resources/agents/client/requests/AgentsRemoveCustomPhoneNumberRequest.d.mts +0 -16
  69. package/dist/esm/api/resources/agents/client/requests/AgentsRemoveCustomPhoneNumberRequest.mjs +0 -4
  70. package/dist/esm/api/resources/agents/types/AgentsRemoveCustomPhoneNumberResponse.d.mts +0 -6
  71. package/dist/esm/api/resources/agents/types/AgentsRemoveCustomPhoneNumberResponse.mjs +0 -4
  72. package/dist/esm/api/types/AudioFinishedPayload.d.mts +0 -6
  73. package/dist/esm/api/types/AudioFinishedPayload.mjs +0 -4
  74. package/dist/esm/api/types/InterruptedResponsePayload.d.mts +0 -8
  75. package/dist/esm/api/types/InterruptedResponsePayload.mjs +0 -4
  76. package/dist/esm/api/types/IsUserSpeakingPayload.d.mts +0 -8
  77. package/dist/esm/api/types/IsUserSpeakingPayload.mjs +0 -4
  78. package/dist/esm/api/types/SetTwilioCallSidPayload.d.mts +0 -8
  79. package/dist/esm/api/types/SetTwilioCallSidPayload.mjs +0 -4
  80. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  81. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
  82. package/dist/index.d.mts +0 -686
  83. package/dist/index.d.ts +0 -686
  84. package/dist/index.js +0 -643
  85. package/dist/index.mjs +0 -606
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.31.8";
1
+ export const SDK_VERSION = "0.31.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.31.8",
3
+ "version": "0.31.9",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -117,6 +117,7 @@ await client.agents.create({
117
117
  additional_languages: ["es"],
118
118
  multilingual_mode: "request",
119
119
  boosted_keywords: ["Load ID", "dispatch"],
120
+ min_words_to_interrupt: 1,
120
121
  configuration_endpoint: {
121
122
  url: "https://api.example.com/config",
122
123
  headers: {
@@ -214,6 +215,7 @@ await client.agents.upsert({
214
215
  additional_languages: ["es"],
215
216
  multilingual_mode: "request",
216
217
  boosted_keywords: ["Load ID", "dispatch"],
218
+ min_words_to_interrupt: 1,
217
219
  configuration_endpoint: {
218
220
  url: "https://api.example.com/config",
219
221
  headers: {
@@ -457,6 +459,7 @@ await client.agents.update("nameOrId", {
457
459
  additional_languages: ["es"],
458
460
  multilingual_mode: "request",
459
461
  boosted_keywords: ["Load ID", "dispatch"],
462
+ min_words_to_interrupt: 1,
460
463
  configuration_endpoint: {
461
464
  url: "https://api.example.com/config",
462
465
  headers: {
@@ -2196,8 +2199,10 @@ await client.conversations.outboundCall({
2196
2199
  additional_languages: ["es"],
2197
2200
  multilingual_mode: "request",
2198
2201
  boosted_keywords: ["Load ID", "dispatch"],
2202
+ min_words_to_interrupt: 1,
2199
2203
  tools: ["keypad_input"]
2200
- }
2204
+ },
2205
+ dry_run: false
2201
2206
  });
2202
2207
 
2203
2208
  ```
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * project: "main",
8
- * phone_number: "+15551234567"
9
- * }
10
- */
11
- export interface AgentsRemoveCustomPhoneNumberRequest {
12
- /** The name of the project containing the agent. Only used when `nameOrId` is a name. */
13
- project?: string;
14
- /** The E.164 formatted phone number to remove (e.g., "+15551234567"). */
15
- phone_number: string;
16
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AgentsRemoveCustomPhoneNumberResponse {
5
- success: boolean;
6
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AudioFinishedPayload {
5
- type: "audio_finished";
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface InterruptedResponsePayload {
5
- type: "interrupted_response";
6
- /** Truncated AI response text at interruption point */
7
- text: string;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface IsUserSpeakingPayload {
5
- type: "is_user_speaking";
6
- /** Whether the user is currently speaking */
7
- is_user_speaking: boolean;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetTwilioCallSidPayload {
5
- type: "set_twilio_call_sid";
6
- /** Encrypted Twilio call data */
7
- encrypted_data: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export type ResponseWithBody = Response & {
2
- body: ReadableStream<Uint8Array>;
3
- };
4
- export declare function isResponseWithBody(response: Response): response is ResponseWithBody;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isResponseWithBody = isResponseWithBody;
4
- function isResponseWithBody(response) {
5
- return response.body != null;
6
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * project: "main",
8
- * phone_number: "+15551234567"
9
- * }
10
- */
11
- export interface AgentsRemoveCustomPhoneNumberRequest {
12
- /** The name of the project containing the agent. Only used when `nameOrId` is a name. */
13
- project?: string;
14
- /** The E.164 formatted phone number to remove (e.g., "+15551234567"). */
15
- phone_number: string;
16
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AgentsRemoveCustomPhoneNumberResponse {
5
- success: boolean;
6
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AudioFinishedPayload {
5
- type: "audio_finished";
6
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface InterruptedResponsePayload {
5
- type: "interrupted_response";
6
- /** Truncated AI response text at interruption point */
7
- text: string;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface IsUserSpeakingPayload {
5
- type: "is_user_speaking";
6
- /** Whether the user is currently speaking */
7
- is_user_speaking: boolean;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetTwilioCallSidPayload {
5
- type: "set_twilio_call_sid";
6
- /** Encrypted Twilio call data */
7
- encrypted_data: string;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,4 +0,0 @@
1
- export type ResponseWithBody = Response & {
2
- body: ReadableStream<Uint8Array>;
3
- };
4
- export declare function isResponseWithBody(response: Response): response is ResponseWithBody;
@@ -1,3 +0,0 @@
1
- export function isResponseWithBody(response) {
2
- return response.body != null;
3
- }