retell-sdk 4.19.0 → 4.21.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.
@@ -80,6 +80,12 @@ export interface PhoneNumberResponse {
80
80
  */
81
81
  inbound_agent_id?: string | null;
82
82
 
83
+ /**
84
+ * If set, will send a webhook for inbound calls, where you can to override agent
85
+ * id, set dynamic variables and other fields specific to that call.
86
+ */
87
+ inbound_webhook_url?: string | null;
88
+
83
89
  /**
84
90
  * Nickname of the number. This is for your reference only.
85
91
  */
@@ -96,6 +102,11 @@ export interface PhoneNumberResponse {
96
102
  * Pretty printed phone number, provided for your reference.
97
103
  */
98
104
  phone_number_pretty?: string;
105
+
106
+ /**
107
+ * Type of the phone number.
108
+ */
109
+ phone_number_type?: 'retell-twilio' | 'retell-telnyx' | 'custom';
99
110
  }
100
111
 
101
112
  export type PhoneNumberListResponse = Array<PhoneNumberResponse>;
@@ -114,11 +125,22 @@ export interface PhoneNumberCreateParams {
114
125
  */
115
126
  inbound_agent_id?: string | null;
116
127
 
128
+ /**
129
+ * If set, will send a webhook for inbound calls, where you can to override agent
130
+ * id, set dynamic variables and other fields specific to that call.
131
+ */
132
+ inbound_webhook_url?: string | null;
133
+
117
134
  /**
118
135
  * Nickname of the number. This is for your reference only.
119
136
  */
120
137
  nickname?: string;
121
138
 
139
+ /**
140
+ * The provider to purchase the phone number from. Default to twilio.
141
+ */
142
+ number_provider?: 'twilio' | 'telnyx';
143
+
122
144
  /**
123
145
  * Unique id of agent to bind to the number. The number will automatically use the
124
146
  * agent when conducting outbound calls. If null, this number would not be able to
@@ -135,6 +157,12 @@ export interface PhoneNumberUpdateParams {
135
157
  */
136
158
  inbound_agent_id?: string | null;
137
159
 
160
+ /**
161
+ * If set, will send a webhook for inbound calls, where you can to override agent
162
+ * id, set dynamic variables and other fields specific to that call.
163
+ */
164
+ inbound_webhook_url?: string | null;
165
+
138
166
  /**
139
167
  * Nickname of the number. This is for your reference only.
140
168
  */
@@ -170,6 +198,12 @@ export interface PhoneNumberImportParams {
170
198
  */
171
199
  inbound_agent_id?: string | null;
172
200
 
201
+ /**
202
+ * If set, will send a webhook for inbound calls, where you can to override agent
203
+ * id, set dynamic variables and other fields specific to that call.
204
+ */
205
+ inbound_webhook_url?: string | null;
206
+
173
207
  /**
174
208
  * Nickname of the number. This is for your reference only.
175
209
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.19.0'; // x-release-please-version
1
+ export const VERSION = '4.21.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.19.0";
1
+ export declare const VERSION = "4.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.19.0'; // x-release-please-version
4
+ exports.VERSION = '4.21.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.19.0'; // x-release-please-version
1
+ export const VERSION = '4.21.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map