telnyx 6.70.0 → 6.72.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 (170) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +13 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +13 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +1 -1
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +1 -1
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +2 -2
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +2 -2
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/calls/actions.d.mts +260 -247
  20. package/resources/calls/actions.d.mts.map +1 -1
  21. package/resources/calls/actions.d.ts +260 -247
  22. package/resources/calls/actions.d.ts.map +1 -1
  23. package/resources/calls/actions.js.map +1 -1
  24. package/resources/calls/actions.mjs.map +1 -1
  25. package/resources/calls/calls.d.mts +210 -3
  26. package/resources/calls/calls.d.mts.map +1 -1
  27. package/resources/calls/calls.d.ts +210 -3
  28. package/resources/calls/calls.d.ts.map +1 -1
  29. package/resources/calls/calls.js.map +1 -1
  30. package/resources/calls/calls.mjs.map +1 -1
  31. package/resources/calls/index.d.mts +2 -2
  32. package/resources/calls/index.d.mts.map +1 -1
  33. package/resources/calls/index.d.ts +2 -2
  34. package/resources/calls/index.d.ts.map +1 -1
  35. package/resources/calls/index.js.map +1 -1
  36. package/resources/calls/index.mjs.map +1 -1
  37. package/resources/conferences/actions.d.mts +1 -9
  38. package/resources/conferences/actions.d.mts.map +1 -1
  39. package/resources/conferences/actions.d.ts +1 -9
  40. package/resources/conferences/actions.d.ts.map +1 -1
  41. package/resources/index.d.mts +4 -3
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +4 -3
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js +4 -2
  46. package/resources/index.js.map +1 -1
  47. package/resources/index.mjs +1 -0
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/shared.d.mts +6 -0
  50. package/resources/shared.d.mts.map +1 -1
  51. package/resources/shared.d.ts +6 -0
  52. package/resources/shared.d.ts.map +1 -1
  53. package/resources/speech-to-text/index.d.mts +3 -3
  54. package/resources/speech-to-text/index.d.mts.map +1 -1
  55. package/resources/speech-to-text/index.d.ts +3 -3
  56. package/resources/speech-to-text/index.d.ts.map +1 -1
  57. package/resources/speech-to-text/index.js +1 -5
  58. package/resources/speech-to-text/index.js.map +1 -1
  59. package/resources/speech-to-text/index.mjs +0 -2
  60. package/resources/speech-to-text/index.mjs.map +1 -1
  61. package/resources/speech-to-text/internal-base.d.mts +42 -11
  62. package/resources/speech-to-text/internal-base.d.mts.map +1 -1
  63. package/resources/speech-to-text/internal-base.d.ts +42 -11
  64. package/resources/speech-to-text/internal-base.d.ts.map +1 -1
  65. package/resources/speech-to-text/internal-base.js +5 -9
  66. package/resources/speech-to-text/internal-base.js.map +1 -1
  67. package/resources/speech-to-text/internal-base.mjs +5 -9
  68. package/resources/speech-to-text/internal-base.mjs.map +1 -1
  69. package/resources/speech-to-text/speech-to-text.d.mts +79 -100
  70. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  71. package/resources/speech-to-text/speech-to-text.d.ts +79 -100
  72. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  73. package/resources/speech-to-text/speech-to-text.js +16 -19
  74. package/resources/speech-to-text/speech-to-text.js.map +1 -1
  75. package/resources/speech-to-text/speech-to-text.mjs +16 -19
  76. package/resources/speech-to-text/speech-to-text.mjs.map +1 -1
  77. package/resources/speech-to-text/ws-base.d.mts +106 -0
  78. package/resources/speech-to-text/ws-base.d.mts.map +1 -0
  79. package/resources/speech-to-text/ws-base.d.ts +106 -0
  80. package/resources/speech-to-text/ws-base.d.ts.map +1 -0
  81. package/resources/speech-to-text/ws-base.js +476 -0
  82. package/resources/speech-to-text/ws-base.js.map +1 -0
  83. package/resources/speech-to-text/ws-base.mjs +472 -0
  84. package/resources/speech-to-text/ws-base.mjs.map +1 -0
  85. package/resources/speech-to-text/ws.d.mts +9 -28
  86. package/resources/speech-to-text/ws.d.mts.map +1 -1
  87. package/resources/speech-to-text/ws.d.ts +9 -28
  88. package/resources/speech-to-text/ws.d.ts.map +1 -1
  89. package/resources/speech-to-text/ws.js +17 -97
  90. package/resources/speech-to-text/ws.js.map +1 -1
  91. package/resources/speech-to-text/ws.mjs +17 -97
  92. package/resources/speech-to-text/ws.mjs.map +1 -1
  93. package/resources/speech-to-text.d.mts +2 -0
  94. package/resources/speech-to-text.d.mts.map +1 -0
  95. package/resources/speech-to-text.d.ts +2 -0
  96. package/resources/speech-to-text.d.ts.map +1 -0
  97. package/resources/speech-to-text.js +6 -0
  98. package/resources/speech-to-text.js.map +1 -0
  99. package/resources/speech-to-text.mjs +3 -0
  100. package/resources/speech-to-text.mjs.map +1 -0
  101. package/resources/texml/accounts/calls/calls.d.mts +31 -465
  102. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  103. package/resources/texml/accounts/calls/calls.d.ts +31 -465
  104. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  105. package/resources/texml/accounts/calls/calls.js +7 -1
  106. package/resources/texml/accounts/calls/calls.js.map +1 -1
  107. package/resources/texml/accounts/calls/calls.mjs +7 -1
  108. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  109. package/resources/text-to-speech/index.d.mts +1 -1
  110. package/resources/text-to-speech/index.d.mts.map +1 -1
  111. package/resources/text-to-speech/index.d.ts +1 -1
  112. package/resources/text-to-speech/index.d.ts.map +1 -1
  113. package/resources/text-to-speech/index.js.map +1 -1
  114. package/resources/text-to-speech/index.mjs.map +1 -1
  115. package/resources/text-to-speech/text-to-speech.d.mts +79 -13
  116. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  117. package/resources/text-to-speech/text-to-speech.d.ts +79 -13
  118. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  119. package/resources/text-to-speech/text-to-speech.js +33 -1
  120. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  121. package/resources/text-to-speech/text-to-speech.mjs +33 -1
  122. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  123. package/resources/voice-sdk-call-reports.d.mts +30 -105
  124. package/resources/voice-sdk-call-reports.d.mts.map +1 -1
  125. package/resources/voice-sdk-call-reports.d.ts +30 -105
  126. package/resources/voice-sdk-call-reports.d.ts.map +1 -1
  127. package/resources/voice-sdk-call-reports.js.map +1 -1
  128. package/resources/voice-sdk-call-reports.mjs.map +1 -1
  129. package/resources/whatsapp/index.d.mts +1 -1
  130. package/resources/whatsapp/index.d.mts.map +1 -1
  131. package/resources/whatsapp/index.d.ts +1 -1
  132. package/resources/whatsapp/index.d.ts.map +1 -1
  133. package/resources/whatsapp/index.js.map +1 -1
  134. package/resources/whatsapp/index.mjs.map +1 -1
  135. package/resources/whatsapp/user-data.d.mts +16 -33
  136. package/resources/whatsapp/user-data.d.mts.map +1 -1
  137. package/resources/whatsapp/user-data.d.ts +16 -33
  138. package/resources/whatsapp/user-data.d.ts.map +1 -1
  139. package/resources/whatsapp/whatsapp.d.mts +2 -2
  140. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  141. package/resources/whatsapp/whatsapp.d.ts +2 -2
  142. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  143. package/resources/whatsapp/whatsapp.js.map +1 -1
  144. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  145. package/src/client.ts +33 -4
  146. package/src/resources/ai/ai.ts +3 -3
  147. package/src/resources/calls/actions.ts +331 -320
  148. package/src/resources/calls/calls.ts +272 -0
  149. package/src/resources/calls/index.ts +4 -0
  150. package/src/resources/conferences/actions.ts +1 -10
  151. package/src/resources/index.ts +13 -2
  152. package/src/resources/shared.ts +7 -0
  153. package/src/resources/speech-to-text/index.ts +6 -9
  154. package/src/resources/speech-to-text/internal-base.ts +49 -22
  155. package/src/resources/speech-to-text/speech-to-text.ts +102 -128
  156. package/src/resources/speech-to-text/ws-base.ts +619 -0
  157. package/src/resources/speech-to-text/ws.ts +26 -111
  158. package/src/resources/speech-to-text.ts +3 -0
  159. package/src/resources/texml/accounts/calls/calls.ts +36 -564
  160. package/src/resources/text-to-speech/index.ts +3 -2
  161. package/src/resources/text-to-speech/text-to-speech.ts +100 -16
  162. package/src/resources/voice-sdk-call-reports.ts +33 -116
  163. package/src/resources/whatsapp/index.ts +1 -0
  164. package/src/resources/whatsapp/user-data.ts +17 -38
  165. package/src/resources/whatsapp/whatsapp.ts +2 -0
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
2
2
  import * as TemplatesAPI from "./templates.mjs";
3
3
  import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates } from "./templates.mjs";
4
4
  import * as UserDataAPI from "./user-data.mjs";
5
- import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse } from "./user-data.mjs";
5
+ import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse, WhatsappUserData } from "./user-data.mjs";
6
6
  import * as BusinessAccountsAPI from "./business-accounts/business-accounts.mjs";
7
7
  import { BusinessAccountListParams, BusinessAccountListResponse, BusinessAccountListResponsesDefaultFlatPagination, BusinessAccountRetrieveResponse, BusinessAccounts } from "./business-accounts/business-accounts.mjs";
8
8
  import * as PhoneNumbersAPI from "./phone-numbers/phone-numbers.mjs";
@@ -17,6 +17,6 @@ export declare namespace Whatsapp {
17
17
  export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
18
18
  export { Templates as Templates, type TemplateCreateResponse as TemplateCreateResponse, type TemplateCreateParams as TemplateCreateParams, type TemplateListParams as TemplateListParams, };
19
19
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, };
20
- export { UserData as UserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
20
+ export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
21
21
  }
22
22
  //# sourceMappingURL=whatsapp.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,SAAS,EAAE,wBAAoB;AAC1G,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACvB,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,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,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.js";
2
2
  import * as TemplatesAPI from "./templates.js";
3
3
  import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates } from "./templates.js";
4
4
  import * as UserDataAPI from "./user-data.js";
5
- import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse } from "./user-data.js";
5
+ import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse, WhatsappUserData } from "./user-data.js";
6
6
  import * as BusinessAccountsAPI from "./business-accounts/business-accounts.js";
7
7
  import { BusinessAccountListParams, BusinessAccountListResponse, BusinessAccountListResponsesDefaultFlatPagination, BusinessAccountRetrieveResponse, BusinessAccounts } from "./business-accounts/business-accounts.js";
8
8
  import * as PhoneNumbersAPI from "./phone-numbers/phone-numbers.js";
@@ -17,6 +17,6 @@ export declare namespace Whatsapp {
17
17
  export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
18
18
  export { Templates as Templates, type TemplateCreateResponse as TemplateCreateResponse, type TemplateCreateParams as TemplateCreateParams, type TemplateListParams as TemplateListParams, };
19
19
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, };
20
- export { UserData as UserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
20
+ export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
21
21
  }
22
22
  //# sourceMappingURL=whatsapp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,SAAS,EAAE,uBAAoB;AAC1G,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACvB,uBAAoB;AACrB,OAAO,KAAK,mBAAmB,iDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,iDAA8C;AAC/C,OAAO,KAAK,eAAe,yCAAsC;AACjE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,mCAAmC,EACnC,uBAAuB,EACvB,YAAY,EACb,yCAAsC;AAEvC,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,YAAY,EAA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sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAA0G;AAC1G,oEAA2C;AAC3C,8CAKqB;AACrB,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAOuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAPD,4BAOC;AAED,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,4BAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,oBAAQ,CAAC"}
1
+ {"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAA0G;AAC1G,oEAA2C;AAC3C,8CAMqB;AACrB,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAOuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAm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/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
package/src/client.ts CHANGED
@@ -962,6 +962,7 @@ import {
962
962
  VoiceSDKCallReportListParams,
963
963
  VoiceSDKCallReportListResponse,
964
964
  VoiceSDKCallReportListResponsesDefaultFlatPagination,
965
+ VoiceSDKCallReportLogEntry,
965
966
  VoiceSDKCallReportRetrieveResponse,
966
967
  VoiceSDKCallReports,
967
968
  } from './resources/voice-sdk-call-reports';
@@ -1176,6 +1177,8 @@ import {
1176
1177
  CallDialResponse,
1177
1178
  CallRetrieveStatusResponse,
1178
1179
  Calls,
1180
+ ConversationRelayInterruptionSettings,
1181
+ ConversationRelayLanguage,
1179
1182
  CustomSipHeader,
1180
1183
  DialogflowConfig,
1181
1184
  SipHeader,
@@ -1528,6 +1531,13 @@ import {
1528
1531
  SimCardUpdateResponse,
1529
1532
  SimCards,
1530
1533
  } from './resources/sim-cards/sim-cards';
1534
+ import {
1535
+ SpeechToText,
1536
+ SpeechToTextListProvidersParams,
1537
+ SpeechToTextListProvidersResponse,
1538
+ TranscribeClientEvent,
1539
+ TranscribeServerEvent,
1540
+ } from './resources/speech-to-text/speech-to-text';
1531
1541
  import { Storage, StorageListMigrationSourceCoverageResponse } from './resources/storage/storage';
1532
1542
  import { TermsOfService } from './resources/terms-of-service/terms-of-service';
1533
1543
  import {
@@ -1541,8 +1551,9 @@ import {
1541
1551
  StreamClientEvent,
1542
1552
  StreamServerEvent,
1543
1553
  TextToSpeech,
1544
- TextToSpeechGenerateParams,
1545
- TextToSpeechGenerateResponse,
1554
+ TextToSpeechCreateSpeechParams,
1555
+ TextToSpeechCreateSpeechResponse,
1556
+ TextToSpeechGenerateSpeechParams,
1546
1557
  TextToSpeechListVoicesParams,
1547
1558
  TextToSpeechListVoicesResponse,
1548
1559
  } from './resources/text-to-speech/text-to-speech';
@@ -2783,6 +2794,10 @@ export class Telnyx {
2783
2794
  */
2784
2795
  regulatoryRequirements: API.RegulatoryRequirements = new API.RegulatoryRequirements(this);
2785
2796
  reports: API.Reports = new API.Reports(this);
2797
+ /**
2798
+ * Discover available speech-to-text providers, models, and supported languages.
2799
+ */
2800
+ speechToText: API.SpeechToText = new API.SpeechToText(this);
2786
2801
  /**
2787
2802
  * Requirement Groups
2788
2803
  */
@@ -3090,6 +3105,7 @@ Telnyx.Recordings = Recordings;
3090
3105
  Telnyx.Regions = Regions;
3091
3106
  Telnyx.RegulatoryRequirements = RegulatoryRequirements;
3092
3107
  Telnyx.Reports = Reports;
3108
+ Telnyx.SpeechToText = SpeechToText;
3093
3109
  Telnyx.RequirementGroups = RequirementGroups;
3094
3110
  Telnyx.RequirementTypes = RequirementTypes;
3095
3111
  Telnyx.Requirements = Requirements;
@@ -3499,6 +3515,8 @@ export declare namespace Telnyx {
3499
3515
  export {
3500
3516
  Calls as Calls,
3501
3517
  type CallAssistantRequest as CallAssistantRequest,
3518
+ type ConversationRelayInterruptionSettings as ConversationRelayInterruptionSettings,
3519
+ type ConversationRelayLanguage as ConversationRelayLanguage,
3502
3520
  type CustomSipHeader as CustomSipHeader,
3503
3521
  type DialogflowConfig as DialogflowConfig,
3504
3522
  type SipHeader as SipHeader,
@@ -4382,6 +4400,14 @@ export declare namespace Telnyx {
4382
4400
  type ReportListWdrsParams as ReportListWdrsParams,
4383
4401
  };
4384
4402
 
4403
+ export {
4404
+ SpeechToText as SpeechToText,
4405
+ type SpeechToTextListProvidersResponse as SpeechToTextListProvidersResponse,
4406
+ type TranscribeClientEvent as TranscribeClientEvent,
4407
+ type TranscribeServerEvent as TranscribeServerEvent,
4408
+ type SpeechToTextListProvidersParams as SpeechToTextListProvidersParams,
4409
+ };
4410
+
4385
4411
  export {
4386
4412
  RequirementGroups as RequirementGroups,
4387
4413
  type RequirementGroup as RequirementGroup,
@@ -4600,11 +4626,12 @@ export declare namespace Telnyx {
4600
4626
 
4601
4627
  export {
4602
4628
  TextToSpeech as TextToSpeech,
4603
- type TextToSpeechGenerateResponse as TextToSpeechGenerateResponse,
4629
+ type TextToSpeechCreateSpeechResponse as TextToSpeechCreateSpeechResponse,
4604
4630
  type TextToSpeechListVoicesResponse as TextToSpeechListVoicesResponse,
4605
4631
  type StreamClientEvent as StreamClientEvent,
4606
4632
  type StreamServerEvent as StreamServerEvent,
4607
- type TextToSpeechGenerateParams as TextToSpeechGenerateParams,
4633
+ type TextToSpeechCreateSpeechParams as TextToSpeechCreateSpeechParams,
4634
+ type TextToSpeechGenerateSpeechParams as TextToSpeechGenerateSpeechParams,
4608
4635
  type TextToSpeechListVoicesParams as TextToSpeechListVoicesParams,
4609
4636
  };
4610
4637
 
@@ -4929,6 +4956,7 @@ export declare namespace Telnyx {
4929
4956
 
4930
4957
  export {
4931
4958
  VoiceSDKCallReports as VoiceSDKCallReports,
4959
+ type VoiceSDKCallReportLogEntry as VoiceSDKCallReportLogEntry,
4932
4960
  type VoiceSDKCallReportRetrieveResponse as VoiceSDKCallReportRetrieveResponse,
4933
4961
  type VoiceSDKCallReportListResponse as VoiceSDKCallReportListResponse,
4934
4962
  type VoiceSDKCallReportListResponsesDefaultFlatPagination as VoiceSDKCallReportListResponsesDefaultFlatPagination,
@@ -4953,6 +4981,7 @@ export declare namespace Telnyx {
4953
4981
  export type Feature = API.Feature;
4954
4982
  export type HostedNumber = API.HostedNumber;
4955
4983
  export type InboundMessagePayload = API.InboundMessagePayload;
4984
+ export type InworldVoiceSettings = API.InworldVoiceSettings;
4956
4985
  export type MessagingFeatureSet = API.MessagingFeatureSet;
4957
4986
  export type MessagingHostedNumberOrder = API.MessagingHostedNumberOrder;
4958
4987
  export type MessagingPaginationMeta = API.MessagingPaginationMeta;
@@ -180,8 +180,8 @@ export class AI extends APIResource {
180
180
  params: AICreateResponseParams,
181
181
  options?: RequestOptions,
182
182
  ): APIPromise<AICreateResponseResponse> {
183
- const { body } = params;
184
- return this._client.post('/ai/responses', { body: body, ...options });
183
+ const { input } = params;
184
+ return this._client.post('/ai/responses', { body: input, ...options });
185
185
  }
186
186
 
187
187
  /**
@@ -374,7 +374,7 @@ export namespace AISummarizeResponse {
374
374
  }
375
375
 
376
376
  export interface AICreateResponseParams {
377
- body: { [key: string]: unknown };
377
+ input: { [key: string]: unknown };
378
378
  }
379
379
 
380
380
  export interface AISummarizeParams {