retell-sdk 4.7.0 → 4.9.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +21 -8
  3. package/_shims/node-types.d.ts +1 -1
  4. package/core.d.ts +9 -6
  5. package/core.d.ts.map +1 -1
  6. package/core.js +25 -9
  7. package/core.js.map +1 -1
  8. package/core.mjs +22 -7
  9. package/core.mjs.map +1 -1
  10. package/error.d.ts.map +1 -1
  11. package/index.d.mts +19 -34
  12. package/index.d.ts +19 -34
  13. package/index.d.ts.map +1 -1
  14. package/index.js +30 -10
  15. package/index.js.map +1 -1
  16. package/index.mjs +17 -10
  17. package/index.mjs.map +1 -1
  18. package/package.json +3 -3
  19. package/resources/agent.d.ts +87 -19
  20. package/resources/agent.d.ts.map +1 -1
  21. package/resources/agent.js +0 -2
  22. package/resources/agent.js.map +1 -1
  23. package/resources/agent.mjs +0 -2
  24. package/resources/agent.mjs.map +1 -1
  25. package/resources/call.d.ts +2 -10
  26. package/resources/call.d.ts.map +1 -1
  27. package/resources/call.js +1 -3
  28. package/resources/call.js.map +1 -1
  29. package/resources/call.mjs +1 -3
  30. package/resources/call.mjs.map +1 -1
  31. package/resources/concurrency.d.ts +1 -2
  32. package/resources/concurrency.d.ts.map +1 -1
  33. package/resources/concurrency.js +0 -2
  34. package/resources/concurrency.js.map +1 -1
  35. package/resources/concurrency.mjs +0 -2
  36. package/resources/concurrency.mjs.map +1 -1
  37. package/resources/index.d.ts +7 -6
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +3 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +3 -2
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/knowledge-base.d.ts +144 -0
  44. package/resources/knowledge-base.d.ts.map +1 -0
  45. package/resources/knowledge-base.js +60 -0
  46. package/resources/knowledge-base.js.map +1 -0
  47. package/resources/knowledge-base.mjs +33 -0
  48. package/resources/knowledge-base.mjs.map +1 -0
  49. package/resources/llm.d.ts +244 -28
  50. package/resources/llm.d.ts.map +1 -1
  51. package/resources/llm.js +0 -2
  52. package/resources/llm.js.map +1 -1
  53. package/resources/llm.mjs +0 -2
  54. package/resources/llm.mjs.map +1 -1
  55. package/resources/phone-number.d.ts +1 -6
  56. package/resources/phone-number.d.ts.map +1 -1
  57. package/resources/phone-number.js +0 -2
  58. package/resources/phone-number.js.map +1 -1
  59. package/resources/phone-number.mjs +0 -2
  60. package/resources/phone-number.mjs.map +1 -1
  61. package/resources/voice.d.ts +1 -3
  62. package/resources/voice.d.ts.map +1 -1
  63. package/resources/voice.js +0 -2
  64. package/resources/voice.js.map +1 -1
  65. package/resources/voice.mjs +0 -2
  66. package/resources/voice.mjs.map +1 -1
  67. package/shims/node.d.ts +1 -0
  68. package/shims/node.d.ts.map +1 -1
  69. package/src/_shims/node-types.d.ts +1 -1
  70. package/src/core.ts +39 -13
  71. package/src/error.ts +1 -1
  72. package/src/index.ts +98 -42
  73. package/src/resources/agent.ts +109 -21
  74. package/src/resources/call.ts +12 -11
  75. package/src/resources/concurrency.ts +2 -3
  76. package/src/resources/index.ts +35 -17
  77. package/src/resources/knowledge-base.ts +200 -0
  78. package/src/resources/llm.ts +313 -30
  79. package/src/resources/phone-number.ts +8 -7
  80. package/src/resources/voice.ts +2 -4
  81. package/src/version.ts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../resource';
4
4
  import * as Core from '../core';
5
- import * as LlmAPI from './llm';
6
5
 
7
6
  export class Llm extends APIResource {
8
7
  /**
@@ -56,12 +55,6 @@ export interface LlmResponse {
56
55
  */
57
56
  llm_id: string;
58
57
 
59
- /**
60
- * The LLM Websocket URL constructed from unique id of Retell LLM. Used in agent
61
- * API to create / update agent.
62
- */
63
- llm_websocket_url: string;
64
-
65
58
  /**
66
59
  * First utterance said by the agent in the call. If not set, LLM will dynamically
67
60
  * generate a message. If set to "", agent will wait for user to speak first.
@@ -103,9 +96,15 @@ export interface LlmResponse {
103
96
  inbound_dynamic_variables_webhook_url?: string | null;
104
97
 
105
98
  /**
106
- * Select the underlying LLM. If not set, would default to gpt-4o.
99
+ * A list of knowledge base ids to use for this resource. Set to null to remove all
100
+ * knowledge bases.
107
101
  */
108
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
102
+ knowledge_base_ids?: Array<string> | null;
103
+
104
+ /**
105
+ * Select the underlying text LLM. If not set, would default to gpt-4o.
106
+ */
107
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
109
108
 
110
109
  /**
111
110
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -115,6 +114,12 @@ export interface LlmResponse {
115
114
  */
116
115
  model_temperature?: number;
117
116
 
117
+ /**
118
+ * Select the underlying speech to speech model. Can only set this or model, not
119
+ * both.
120
+ */
121
+ s2s_model?: 'gpt-4o-realtime' | null;
122
+
118
123
  /**
119
124
  * Name of the starting state. Required if states is not empty.
120
125
  */
@@ -128,6 +133,14 @@ export interface LlmResponse {
128
133
  * tools (essentially one state).
129
134
  */
130
135
  states?: Array<LlmResponse.State> | null;
136
+
137
+ /**
138
+ * Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
139
+ * structured output to make sure tool call arguments follow the json schema. The
140
+ * time to save a new tool or change to a tool will be longer as additional
141
+ * processing is needed. Default to false.
142
+ */
143
+ tool_call_strict_mode?: boolean;
131
144
  }
132
145
 
133
146
  export namespace LlmResponse {
@@ -157,8 +170,8 @@ export namespace LlmResponse {
157
170
  name: string;
158
171
 
159
172
  /**
160
- * The number to transfer to in E.164 format (a + and country code, then the phone
161
- * number with no space or other special characters). For example, +16175551212.
173
+ * The number to transfer to in E.164 format or a dynamic variable like
174
+ * {{transfer_number}}.
162
175
  */
163
176
  number: string;
164
177
 
@@ -169,6 +182,44 @@ export namespace LlmResponse {
169
182
  * to call the tool.
170
183
  */
171
184
  description?: string;
185
+
186
+ /**
187
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
188
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
189
+ * only applicable for cold transfer, so if warm transfer option is specified, this
190
+ * field will be ignored. Default to false (default to show AI agent as caller).
191
+ */
192
+ show_transferee_as_caller?: boolean | null;
193
+
194
+ /**
195
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
196
+ * either a static message or a dynamic one based on prompt. Set to null to disable
197
+ * warm handoff.
198
+ */
199
+ warm_transfer_option?:
200
+ | TransferCallTool.WarmTransferPrompt
201
+ | TransferCallTool.WarmTransferStaticMessage
202
+ | null;
203
+ }
204
+
205
+ export namespace TransferCallTool {
206
+ export interface WarmTransferPrompt {
207
+ /**
208
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
209
+ */
210
+ prompt?: string;
211
+
212
+ type?: 'prompt';
213
+ }
214
+
215
+ export interface WarmTransferStaticMessage {
216
+ /**
217
+ * The static message to be used for warm handoff. Can contain dynamic variables.
218
+ */
219
+ message?: string;
220
+
221
+ type?: 'static_message';
222
+ }
172
223
  }
173
224
 
174
225
  export interface CheckAvailabilityCalTool {
@@ -475,8 +526,8 @@ export namespace LlmResponse {
475
526
  name: string;
476
527
 
477
528
  /**
478
- * The number to transfer to in E.164 format (a + and country code, then the phone
479
- * number with no space or other special characters). For example, +16175551212.
529
+ * The number to transfer to in E.164 format or a dynamic variable like
530
+ * {{transfer_number}}.
480
531
  */
481
532
  number: string;
482
533
 
@@ -487,6 +538,44 @@ export namespace LlmResponse {
487
538
  * to call the tool.
488
539
  */
489
540
  description?: string;
541
+
542
+ /**
543
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
544
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
545
+ * only applicable for cold transfer, so if warm transfer option is specified, this
546
+ * field will be ignored. Default to false (default to show AI agent as caller).
547
+ */
548
+ show_transferee_as_caller?: boolean | null;
549
+
550
+ /**
551
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
552
+ * either a static message or a dynamic one based on prompt. Set to null to disable
553
+ * warm handoff.
554
+ */
555
+ warm_transfer_option?:
556
+ | TransferCallTool.WarmTransferPrompt
557
+ | TransferCallTool.WarmTransferStaticMessage
558
+ | null;
559
+ }
560
+
561
+ export namespace TransferCallTool {
562
+ export interface WarmTransferPrompt {
563
+ /**
564
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
565
+ */
566
+ prompt?: string;
567
+
568
+ type?: 'prompt';
569
+ }
570
+
571
+ export interface WarmTransferStaticMessage {
572
+ /**
573
+ * The static message to be used for warm handoff. Can contain dynamic variables.
574
+ */
575
+ message?: string;
576
+
577
+ type?: 'static_message';
578
+ }
490
579
  }
491
580
 
492
581
  export interface CheckAvailabilityCalTool {
@@ -718,9 +807,15 @@ export interface LlmCreateParams {
718
807
  inbound_dynamic_variables_webhook_url?: string | null;
719
808
 
720
809
  /**
721
- * Select the underlying LLM. If not set, would default to gpt-4o.
810
+ * A list of knowledge base ids to use for this resource. Set to null to remove all
811
+ * knowledge bases.
722
812
  */
723
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
813
+ knowledge_base_ids?: Array<string> | null;
814
+
815
+ /**
816
+ * Select the underlying text LLM. If not set, would default to gpt-4o.
817
+ */
818
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
724
819
 
725
820
  /**
726
821
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -730,6 +825,12 @@ export interface LlmCreateParams {
730
825
  */
731
826
  model_temperature?: number;
732
827
 
828
+ /**
829
+ * Select the underlying speech to speech model. Can only set this or model, not
830
+ * both.
831
+ */
832
+ s2s_model?: 'gpt-4o-realtime' | null;
833
+
733
834
  /**
734
835
  * Name of the starting state. Required if states is not empty.
735
836
  */
@@ -743,6 +844,14 @@ export interface LlmCreateParams {
743
844
  * tools (essentially one state).
744
845
  */
745
846
  states?: Array<LlmCreateParams.State> | null;
847
+
848
+ /**
849
+ * Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
850
+ * structured output to make sure tool call arguments follow the json schema. The
851
+ * time to save a new tool or change to a tool will be longer as additional
852
+ * processing is needed. Default to false.
853
+ */
854
+ tool_call_strict_mode?: boolean;
746
855
  }
747
856
 
748
857
  export namespace LlmCreateParams {
@@ -772,8 +881,8 @@ export namespace LlmCreateParams {
772
881
  name: string;
773
882
 
774
883
  /**
775
- * The number to transfer to in E.164 format (a + and country code, then the phone
776
- * number with no space or other special characters). For example, +16175551212.
884
+ * The number to transfer to in E.164 format or a dynamic variable like
885
+ * {{transfer_number}}.
777
886
  */
778
887
  number: string;
779
888
 
@@ -784,6 +893,44 @@ export namespace LlmCreateParams {
784
893
  * to call the tool.
785
894
  */
786
895
  description?: string;
896
+
897
+ /**
898
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
899
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
900
+ * only applicable for cold transfer, so if warm transfer option is specified, this
901
+ * field will be ignored. Default to false (default to show AI agent as caller).
902
+ */
903
+ show_transferee_as_caller?: boolean | null;
904
+
905
+ /**
906
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
907
+ * either a static message or a dynamic one based on prompt. Set to null to disable
908
+ * warm handoff.
909
+ */
910
+ warm_transfer_option?:
911
+ | TransferCallTool.WarmTransferPrompt
912
+ | TransferCallTool.WarmTransferStaticMessage
913
+ | null;
914
+ }
915
+
916
+ export namespace TransferCallTool {
917
+ export interface WarmTransferPrompt {
918
+ /**
919
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
920
+ */
921
+ prompt?: string;
922
+
923
+ type?: 'prompt';
924
+ }
925
+
926
+ export interface WarmTransferStaticMessage {
927
+ /**
928
+ * The static message to be used for warm handoff. Can contain dynamic variables.
929
+ */
930
+ message?: string;
931
+
932
+ type?: 'static_message';
933
+ }
787
934
  }
788
935
 
789
936
  export interface CheckAvailabilityCalTool {
@@ -1090,8 +1237,8 @@ export namespace LlmCreateParams {
1090
1237
  name: string;
1091
1238
 
1092
1239
  /**
1093
- * The number to transfer to in E.164 format (a + and country code, then the phone
1094
- * number with no space or other special characters). For example, +16175551212.
1240
+ * The number to transfer to in E.164 format or a dynamic variable like
1241
+ * {{transfer_number}}.
1095
1242
  */
1096
1243
  number: string;
1097
1244
 
@@ -1102,6 +1249,44 @@ export namespace LlmCreateParams {
1102
1249
  * to call the tool.
1103
1250
  */
1104
1251
  description?: string;
1252
+
1253
+ /**
1254
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
1255
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
1256
+ * only applicable for cold transfer, so if warm transfer option is specified, this
1257
+ * field will be ignored. Default to false (default to show AI agent as caller).
1258
+ */
1259
+ show_transferee_as_caller?: boolean | null;
1260
+
1261
+ /**
1262
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
1263
+ * either a static message or a dynamic one based on prompt. Set to null to disable
1264
+ * warm handoff.
1265
+ */
1266
+ warm_transfer_option?:
1267
+ | TransferCallTool.WarmTransferPrompt
1268
+ | TransferCallTool.WarmTransferStaticMessage
1269
+ | null;
1270
+ }
1271
+
1272
+ export namespace TransferCallTool {
1273
+ export interface WarmTransferPrompt {
1274
+ /**
1275
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
1276
+ */
1277
+ prompt?: string;
1278
+
1279
+ type?: 'prompt';
1280
+ }
1281
+
1282
+ export interface WarmTransferStaticMessage {
1283
+ /**
1284
+ * The static message to be used for warm handoff. Can contain dynamic variables.
1285
+ */
1286
+ message?: string;
1287
+
1288
+ type?: 'static_message';
1289
+ }
1105
1290
  }
1106
1291
 
1107
1292
  export interface CheckAvailabilityCalTool {
@@ -1331,9 +1516,15 @@ export interface LlmUpdateParams {
1331
1516
  inbound_dynamic_variables_webhook_url?: string | null;
1332
1517
 
1333
1518
  /**
1334
- * Select the underlying LLM. If not set, would default to gpt-4o.
1519
+ * A list of knowledge base ids to use for this resource. Set to null to remove all
1520
+ * knowledge bases.
1521
+ */
1522
+ knowledge_base_ids?: Array<string> | null;
1523
+
1524
+ /**
1525
+ * Select the underlying text LLM. If not set, would default to gpt-4o.
1335
1526
  */
1336
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
1527
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
1337
1528
 
1338
1529
  /**
1339
1530
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -1343,6 +1534,12 @@ export interface LlmUpdateParams {
1343
1534
  */
1344
1535
  model_temperature?: number;
1345
1536
 
1537
+ /**
1538
+ * Select the underlying speech to speech model. Can only set this or model, not
1539
+ * both.
1540
+ */
1541
+ s2s_model?: 'gpt-4o-realtime' | null;
1542
+
1346
1543
  /**
1347
1544
  * Name of the starting state. Required if states is not empty.
1348
1545
  */
@@ -1356,6 +1553,14 @@ export interface LlmUpdateParams {
1356
1553
  * tools (essentially one state).
1357
1554
  */
1358
1555
  states?: Array<LlmUpdateParams.State> | null;
1556
+
1557
+ /**
1558
+ * Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
1559
+ * structured output to make sure tool call arguments follow the json schema. The
1560
+ * time to save a new tool or change to a tool will be longer as additional
1561
+ * processing is needed. Default to false.
1562
+ */
1563
+ tool_call_strict_mode?: boolean;
1359
1564
  }
1360
1565
 
1361
1566
  export namespace LlmUpdateParams {
@@ -1385,8 +1590,8 @@ export namespace LlmUpdateParams {
1385
1590
  name: string;
1386
1591
 
1387
1592
  /**
1388
- * The number to transfer to in E.164 format (a + and country code, then the phone
1389
- * number with no space or other special characters). For example, +16175551212.
1593
+ * The number to transfer to in E.164 format or a dynamic variable like
1594
+ * {{transfer_number}}.
1390
1595
  */
1391
1596
  number: string;
1392
1597
 
@@ -1397,6 +1602,44 @@ export namespace LlmUpdateParams {
1397
1602
  * to call the tool.
1398
1603
  */
1399
1604
  description?: string;
1605
+
1606
+ /**
1607
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
1608
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
1609
+ * only applicable for cold transfer, so if warm transfer option is specified, this
1610
+ * field will be ignored. Default to false (default to show AI agent as caller).
1611
+ */
1612
+ show_transferee_as_caller?: boolean | null;
1613
+
1614
+ /**
1615
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
1616
+ * either a static message or a dynamic one based on prompt. Set to null to disable
1617
+ * warm handoff.
1618
+ */
1619
+ warm_transfer_option?:
1620
+ | TransferCallTool.WarmTransferPrompt
1621
+ | TransferCallTool.WarmTransferStaticMessage
1622
+ | null;
1623
+ }
1624
+
1625
+ export namespace TransferCallTool {
1626
+ export interface WarmTransferPrompt {
1627
+ /**
1628
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
1629
+ */
1630
+ prompt?: string;
1631
+
1632
+ type?: 'prompt';
1633
+ }
1634
+
1635
+ export interface WarmTransferStaticMessage {
1636
+ /**
1637
+ * The static message to be used for warm handoff. Can contain dynamic variables.
1638
+ */
1639
+ message?: string;
1640
+
1641
+ type?: 'static_message';
1642
+ }
1400
1643
  }
1401
1644
 
1402
1645
  export interface CheckAvailabilityCalTool {
@@ -1703,8 +1946,8 @@ export namespace LlmUpdateParams {
1703
1946
  name: string;
1704
1947
 
1705
1948
  /**
1706
- * The number to transfer to in E.164 format (a + and country code, then the phone
1707
- * number with no space or other special characters). For example, +16175551212.
1949
+ * The number to transfer to in E.164 format or a dynamic variable like
1950
+ * {{transfer_number}}.
1708
1951
  */
1709
1952
  number: string;
1710
1953
 
@@ -1715,6 +1958,44 @@ export namespace LlmUpdateParams {
1715
1958
  * to call the tool.
1716
1959
  */
1717
1960
  description?: string;
1961
+
1962
+ /**
1963
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
1964
+ * transferring, requires the telephony side to support SIP REFER to PSTN. This is
1965
+ * only applicable for cold transfer, so if warm transfer option is specified, this
1966
+ * field will be ignored. Default to false (default to show AI agent as caller).
1967
+ */
1968
+ show_transferee_as_caller?: boolean | null;
1969
+
1970
+ /**
1971
+ * If set, when transfer is successful, will perform a warm handoff. Can leave
1972
+ * either a static message or a dynamic one based on prompt. Set to null to disable
1973
+ * warm handoff.
1974
+ */
1975
+ warm_transfer_option?:
1976
+ | TransferCallTool.WarmTransferPrompt
1977
+ | TransferCallTool.WarmTransferStaticMessage
1978
+ | null;
1979
+ }
1980
+
1981
+ export namespace TransferCallTool {
1982
+ export interface WarmTransferPrompt {
1983
+ /**
1984
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
1985
+ */
1986
+ prompt?: string;
1987
+
1988
+ type?: 'prompt';
1989
+ }
1990
+
1991
+ export interface WarmTransferStaticMessage {
1992
+ /**
1993
+ * The static message to be used for warm handoff. Can contain dynamic variables.
1994
+ */
1995
+ message?: string;
1996
+
1997
+ type?: 'static_message';
1998
+ }
1718
1999
  }
1719
2000
 
1720
2001
  export interface CheckAvailabilityCalTool {
@@ -1902,9 +2183,11 @@ export namespace LlmUpdateParams {
1902
2183
  }
1903
2184
  }
1904
2185
 
1905
- export namespace Llm {
1906
- export import LlmResponse = LlmAPI.LlmResponse;
1907
- export import LlmListResponse = LlmAPI.LlmListResponse;
1908
- export import LlmCreateParams = LlmAPI.LlmCreateParams;
1909
- export import LlmUpdateParams = LlmAPI.LlmUpdateParams;
2186
+ export declare namespace Llm {
2187
+ export {
2188
+ type LlmResponse as LlmResponse,
2189
+ type LlmListResponse as LlmListResponse,
2190
+ type LlmCreateParams as LlmCreateParams,
2191
+ type LlmUpdateParams as LlmUpdateParams,
2192
+ };
1910
2193
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../resource';
4
4
  import * as Core from '../core';
5
- import * as PhoneNumberAPI from './phone-number';
6
5
 
7
6
  export class PhoneNumber extends APIResource {
8
7
  /**
@@ -194,10 +193,12 @@ export interface PhoneNumberImportParams {
194
193
  sip_trunk_auth_username?: string;
195
194
  }
196
195
 
197
- export namespace PhoneNumber {
198
- export import PhoneNumberResponse = PhoneNumberAPI.PhoneNumberResponse;
199
- export import PhoneNumberListResponse = PhoneNumberAPI.PhoneNumberListResponse;
200
- export import PhoneNumberCreateParams = PhoneNumberAPI.PhoneNumberCreateParams;
201
- export import PhoneNumberUpdateParams = PhoneNumberAPI.PhoneNumberUpdateParams;
202
- export import PhoneNumberImportParams = PhoneNumberAPI.PhoneNumberImportParams;
196
+ export declare namespace PhoneNumber {
197
+ export {
198
+ type PhoneNumberResponse as PhoneNumberResponse,
199
+ type PhoneNumberListResponse as PhoneNumberListResponse,
200
+ type PhoneNumberCreateParams as PhoneNumberCreateParams,
201
+ type PhoneNumberUpdateParams as PhoneNumberUpdateParams,
202
+ type PhoneNumberImportParams as PhoneNumberImportParams,
203
+ };
203
204
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../resource';
4
4
  import * as Core from '../core';
5
- import * as VoiceAPI from './voice';
6
5
 
7
6
  export class Voice extends APIResource {
8
7
  /**
@@ -59,7 +58,6 @@ export interface VoiceResponse {
59
58
 
60
59
  export type VoiceListResponse = Array<VoiceResponse>;
61
60
 
62
- export namespace Voice {
63
- export import VoiceResponse = VoiceAPI.VoiceResponse;
64
- export import VoiceListResponse = VoiceAPI.VoiceListResponse;
61
+ export declare namespace Voice {
62
+ export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse };
65
63
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.7.0'; // x-release-please-version
1
+ export const VERSION = '4.9.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.7.0";
1
+ export declare const VERSION = "4.9.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.7.0'; // x-release-please-version
4
+ exports.VERSION = '4.9.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.7.0'; // x-release-please-version
1
+ export const VERSION = '4.9.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map