telnyx 6.41.1 → 6.43.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 (256) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -0
  9. package/client.mjs.map +1 -1
  10. package/core/EventEmitter.d.mts +11 -0
  11. package/core/EventEmitter.d.mts.map +1 -1
  12. package/core/EventEmitter.d.ts +11 -0
  13. package/core/EventEmitter.d.ts.map +1 -1
  14. package/core/EventEmitter.js +15 -1
  15. package/core/EventEmitter.js.map +1 -1
  16. package/core/EventEmitter.mjs +13 -0
  17. package/core/EventEmitter.mjs.map +1 -1
  18. package/internal/types.d.mts +6 -6
  19. package/internal/types.d.mts.map +1 -1
  20. package/internal/types.d.ts +6 -6
  21. package/internal/types.d.ts.map +1 -1
  22. package/internal/utils/env.js +2 -2
  23. package/internal/utils/env.js.map +1 -1
  24. package/internal/utils/env.mjs +2 -2
  25. package/internal/utils/env.mjs.map +1 -1
  26. package/internal/ws-adapter-browser.d.mts +34 -0
  27. package/internal/ws-adapter-browser.d.mts.map +1 -0
  28. package/internal/ws-adapter-browser.d.ts +34 -0
  29. package/internal/ws-adapter-browser.d.ts.map +1 -0
  30. package/internal/ws-adapter-browser.js +88 -0
  31. package/internal/ws-adapter-browser.js.map +1 -0
  32. package/internal/ws-adapter-browser.mjs +84 -0
  33. package/internal/ws-adapter-browser.mjs.map +1 -0
  34. package/internal/ws-adapter-node.d.mts +27 -0
  35. package/internal/ws-adapter-node.d.mts.map +1 -0
  36. package/internal/ws-adapter-node.d.ts +27 -0
  37. package/internal/ws-adapter-node.d.ts.map +1 -0
  38. package/internal/ws-adapter-node.js +90 -0
  39. package/internal/ws-adapter-node.js.map +1 -0
  40. package/internal/ws-adapter-node.mjs +86 -0
  41. package/internal/ws-adapter-node.mjs.map +1 -0
  42. package/internal/ws-adapter.d.mts +24 -0
  43. package/internal/ws-adapter.d.mts.map +1 -0
  44. package/internal/ws-adapter.d.ts +24 -0
  45. package/internal/ws-adapter.d.ts.map +1 -0
  46. package/internal/ws-adapter.js +11 -0
  47. package/internal/ws-adapter.js.map +1 -0
  48. package/internal/ws-adapter.mjs +8 -0
  49. package/internal/ws-adapter.mjs.map +1 -0
  50. package/internal/ws.d.mts +80 -0
  51. package/internal/ws.d.mts.map +1 -0
  52. package/internal/ws.d.ts +80 -0
  53. package/internal/ws.d.ts.map +1 -0
  54. package/internal/ws.js +153 -0
  55. package/internal/ws.js.map +1 -0
  56. package/internal/ws.mjs +147 -0
  57. package/internal/ws.mjs.map +1 -0
  58. package/lib/text-to-speech-ws-base.d.mts +106 -0
  59. package/lib/text-to-speech-ws-base.d.mts.map +1 -0
  60. package/lib/text-to-speech-ws-base.d.ts +106 -0
  61. package/lib/text-to-speech-ws-base.d.ts.map +1 -0
  62. package/lib/text-to-speech-ws-base.js +475 -0
  63. package/lib/text-to-speech-ws-base.js.map +1 -0
  64. package/lib/text-to-speech-ws-base.mjs +471 -0
  65. package/lib/text-to-speech-ws-base.mjs.map +1 -0
  66. package/lib/text-to-speech-ws-internal.d.mts +71 -0
  67. package/lib/text-to-speech-ws-internal.d.mts.map +1 -0
  68. package/lib/text-to-speech-ws-internal.d.ts +71 -0
  69. package/lib/text-to-speech-ws-internal.d.ts.map +1 -0
  70. package/lib/text-to-speech-ws-internal.js +47 -0
  71. package/lib/text-to-speech-ws-internal.js.map +1 -0
  72. package/lib/text-to-speech-ws-internal.mjs +41 -0
  73. package/lib/text-to-speech-ws-internal.mjs.map +1 -0
  74. package/lib/text-to-speech-ws.d.mts +13 -0
  75. package/lib/text-to-speech-ws.d.mts.map +1 -0
  76. package/lib/text-to-speech-ws.d.ts +13 -0
  77. package/lib/text-to-speech-ws.d.ts.map +1 -0
  78. package/lib/text-to-speech-ws.js +30 -0
  79. package/lib/text-to-speech-ws.js.map +1 -0
  80. package/lib/text-to-speech-ws.mjs +25 -0
  81. package/lib/text-to-speech-ws.mjs.map +1 -0
  82. package/lib/webhooks.d.mts +6 -0
  83. package/lib/webhooks.d.mts.map +1 -1
  84. package/lib/webhooks.d.ts +6 -0
  85. package/lib/webhooks.d.ts.map +1 -1
  86. package/lib/webhooks.js +16 -0
  87. package/lib/webhooks.js.map +1 -1
  88. package/lib/webhooks.mjs +14 -0
  89. package/lib/webhooks.mjs.map +1 -1
  90. package/package.json +1 -1
  91. package/resources/ai/assistants/assistants.d.mts +938 -65
  92. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  93. package/resources/ai/assistants/assistants.d.ts +938 -65
  94. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  95. package/resources/ai/assistants/assistants.js +0 -1
  96. package/resources/ai/assistants/assistants.js.map +1 -1
  97. package/resources/ai/assistants/assistants.mjs +0 -1
  98. package/resources/ai/assistants/assistants.mjs.map +1 -1
  99. package/resources/ai/assistants/versions.d.mts +563 -25
  100. package/resources/ai/assistants/versions.d.mts.map +1 -1
  101. package/resources/ai/assistants/versions.d.ts +563 -25
  102. package/resources/ai/assistants/versions.d.ts.map +1 -1
  103. package/resources/ai/conversations/conversations.d.mts +2 -2
  104. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  105. package/resources/ai/conversations/conversations.d.ts +2 -2
  106. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  107. package/resources/ai/conversations/conversations.js.map +1 -1
  108. package/resources/ai/conversations/conversations.mjs +1 -1
  109. package/resources/ai/conversations/conversations.mjs.map +1 -1
  110. package/resources/ai/conversations/index.d.mts +1 -1
  111. package/resources/ai/conversations/index.d.mts.map +1 -1
  112. package/resources/ai/conversations/index.d.ts +1 -1
  113. package/resources/ai/conversations/index.d.ts.map +1 -1
  114. package/resources/ai/conversations/index.js.map +1 -1
  115. package/resources/ai/conversations/index.mjs +1 -1
  116. package/resources/ai/conversations/index.mjs.map +1 -1
  117. package/resources/ai/conversations/messages.d.mts +46 -48
  118. package/resources/ai/conversations/messages.d.mts.map +1 -1
  119. package/resources/ai/conversations/messages.d.ts +46 -48
  120. package/resources/ai/conversations/messages.d.ts.map +1 -1
  121. package/resources/ai/conversations/messages.js +9 -6
  122. package/resources/ai/conversations/messages.js.map +1 -1
  123. package/resources/ai/conversations/messages.mjs +9 -6
  124. package/resources/ai/conversations/messages.mjs.map +1 -1
  125. package/resources/calls/actions.d.mts +114 -6
  126. package/resources/calls/actions.d.mts.map +1 -1
  127. package/resources/calls/actions.d.ts +114 -6
  128. package/resources/calls/actions.d.ts.map +1 -1
  129. package/resources/calls/actions.js +4 -0
  130. package/resources/calls/actions.js.map +1 -1
  131. package/resources/calls/actions.mjs +4 -0
  132. package/resources/calls/actions.mjs.map +1 -1
  133. package/resources/calls/calls.d.mts +168 -8
  134. package/resources/calls/calls.d.mts.map +1 -1
  135. package/resources/calls/calls.d.ts +168 -8
  136. package/resources/calls/calls.d.ts.map +1 -1
  137. package/resources/calls/calls.js +4 -0
  138. package/resources/calls/calls.js.map +1 -1
  139. package/resources/calls/calls.mjs +4 -0
  140. package/resources/calls/calls.mjs.map +1 -1
  141. package/resources/index.d.mts +2 -3
  142. package/resources/index.d.mts.map +1 -1
  143. package/resources/index.d.ts +2 -3
  144. package/resources/index.d.ts.map +1 -1
  145. package/resources/index.js +2 -7
  146. package/resources/index.js.map +1 -1
  147. package/resources/index.mjs +1 -2
  148. package/resources/index.mjs.map +1 -1
  149. package/resources/messages/messages.d.mts +4 -0
  150. package/resources/messages/messages.d.mts.map +1 -1
  151. package/resources/messages/messages.d.ts +4 -0
  152. package/resources/messages/messages.d.ts.map +1 -1
  153. package/resources/messages/messages.js.map +1 -1
  154. package/resources/messages/messages.mjs.map +1 -1
  155. package/resources/session-analysis/session-analysis.d.mts +3 -13
  156. package/resources/session-analysis/session-analysis.d.mts.map +1 -1
  157. package/resources/session-analysis/session-analysis.d.ts +3 -13
  158. package/resources/session-analysis/session-analysis.d.ts.map +1 -1
  159. package/resources/session-analysis/session-analysis.js.map +1 -1
  160. package/resources/session-analysis/session-analysis.mjs.map +1 -1
  161. package/resources/texml/accounts/calls/calls.d.mts +45 -0
  162. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  163. package/resources/texml/accounts/calls/calls.d.ts +45 -0
  164. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  165. package/resources/texml/accounts/calls/calls.js.map +1 -1
  166. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  167. package/resources/text-to-speech/index.d.mts +2 -1
  168. package/resources/text-to-speech/index.d.mts.map +1 -1
  169. package/resources/text-to-speech/index.d.ts +2 -1
  170. package/resources/text-to-speech/index.d.ts.map +1 -1
  171. package/resources/text-to-speech/index.js.map +1 -1
  172. package/resources/text-to-speech/index.mjs.map +1 -1
  173. package/resources/text-to-speech/internal-base.d.mts +1 -48
  174. package/resources/text-to-speech/internal-base.d.mts.map +1 -1
  175. package/resources/text-to-speech/internal-base.d.ts +1 -48
  176. package/resources/text-to-speech/internal-base.d.ts.map +1 -1
  177. package/resources/text-to-speech/internal-base.js +5 -48
  178. package/resources/text-to-speech/internal-base.js.map +1 -1
  179. package/resources/text-to-speech/internal-base.mjs +1 -44
  180. package/resources/text-to-speech/internal-base.mjs.map +1 -1
  181. package/resources/text-to-speech/text-to-speech.d.mts +28 -3
  182. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  183. package/resources/text-to-speech/text-to-speech.d.ts +28 -3
  184. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  185. package/resources/text-to-speech/text-to-speech.js +1 -1
  186. package/resources/text-to-speech/text-to-speech.mjs +1 -1
  187. package/resources/text-to-speech/ws-base.d.mts +2 -0
  188. package/resources/text-to-speech/ws-base.d.mts.map +1 -0
  189. package/resources/text-to-speech/ws-base.d.ts +2 -0
  190. package/resources/text-to-speech/ws-base.d.ts.map +1 -0
  191. package/resources/text-to-speech/ws-base.js +7 -0
  192. package/resources/text-to-speech/ws-base.js.map +1 -0
  193. package/resources/text-to-speech/ws-base.mjs +3 -0
  194. package/resources/text-to-speech/ws-base.mjs.map +1 -0
  195. package/resources/text-to-speech/ws.d.mts +2 -41
  196. package/resources/text-to-speech/ws.d.mts.map +1 -1
  197. package/resources/text-to-speech/ws.d.ts +2 -41
  198. package/resources/text-to-speech/ws.d.ts.map +1 -1
  199. package/resources/text-to-speech/ws.js +2 -182
  200. package/resources/text-to-speech/ws.js.map +1 -1
  201. package/resources/text-to-speech/ws.mjs +1 -180
  202. package/resources/text-to-speech/ws.mjs.map +1 -1
  203. package/resources/verify-profiles.d.mts +97 -121
  204. package/resources/verify-profiles.d.mts.map +1 -1
  205. package/resources/verify-profiles.d.ts +97 -121
  206. package/resources/verify-profiles.d.ts.map +1 -1
  207. package/resources/webhooks.d.mts +642 -7
  208. package/resources/webhooks.d.mts.map +1 -1
  209. package/resources/webhooks.d.ts +642 -7
  210. package/resources/webhooks.d.ts.map +1 -1
  211. package/resources/webhooks.js +4 -10
  212. package/resources/webhooks.js.map +1 -1
  213. package/resources/webhooks.mjs +5 -11
  214. package/resources/webhooks.mjs.map +1 -1
  215. package/resources/whatsapp/phone-numbers/profile/profile.d.mts +5 -0
  216. package/resources/whatsapp/phone-numbers/profile/profile.d.mts.map +1 -1
  217. package/resources/whatsapp/phone-numbers/profile/profile.d.ts +5 -0
  218. package/resources/whatsapp/phone-numbers/profile/profile.d.ts.map +1 -1
  219. package/resources/whatsapp/phone-numbers/profile/profile.js.map +1 -1
  220. package/resources/whatsapp/phone-numbers/profile/profile.mjs.map +1 -1
  221. package/src/client.ts +22 -0
  222. package/src/core/EventEmitter.ts +16 -0
  223. package/src/internal/types.ts +6 -8
  224. package/src/internal/utils/env.ts +2 -2
  225. package/src/internal/ws-adapter-browser.ts +123 -0
  226. package/src/internal/ws-adapter-node.ts +105 -0
  227. package/src/internal/ws-adapter.ts +30 -0
  228. package/src/internal/ws.ts +193 -0
  229. package/src/lib/text-to-speech-ws-base.ts +618 -0
  230. package/src/lib/text-to-speech-ws-internal.ts +111 -0
  231. package/src/lib/text-to-speech-ws.ts +40 -0
  232. package/src/lib/webhooks.ts +27 -0
  233. package/src/resources/ai/assistants/assistants.ts +1065 -65
  234. package/src/resources/ai/assistants/versions.ts +639 -25
  235. package/src/resources/ai/conversations/conversations.ts +12 -2
  236. package/src/resources/ai/conversations/index.ts +6 -1
  237. package/src/resources/ai/conversations/messages.ts +67 -54
  238. package/src/resources/calls/actions.ts +184 -4
  239. package/src/resources/calls/calls.ts +191 -4
  240. package/src/resources/index.ts +6 -12
  241. package/src/resources/messages/messages.ts +5 -0
  242. package/src/resources/session-analysis/session-analysis.ts +3 -16
  243. package/src/resources/texml/accounts/calls/calls.ts +54 -0
  244. package/src/resources/text-to-speech/index.ts +2 -1
  245. package/src/resources/text-to-speech/internal-base.ts +6 -95
  246. package/src/resources/text-to-speech/text-to-speech.ts +33 -3
  247. package/src/resources/text-to-speech/ws-base.ts +7 -0
  248. package/src/resources/text-to-speech/ws.ts +2 -201
  249. package/src/resources/verify-profiles.ts +109 -142
  250. package/src/resources/webhooks.ts +886 -45
  251. package/src/resources/whatsapp/phone-numbers/profile/profile.ts +7 -0
  252. package/src/version.ts +1 -1
  253. package/version.d.mts +1 -1
  254. package/version.d.ts +1 -1
  255. package/version.js +1 -1
  256. package/version.mjs +1 -1
@@ -1,13 +1,12 @@
1
1
  import { APIResource } from "../core/resource.js";
2
+ import { type WebhookUnwrapOptions } from "../lib/webhooks.js";
2
3
  import * as NumberOrdersAPI from "./number-orders.js";
3
4
  import * as Shared from "./shared.js";
4
5
  import * as CallsAPI from "./calls/calls.js";
5
6
  import * as MessagesAPI from "./messages/messages.js";
6
7
  export declare class Webhooks extends APIResource {
7
- unwrap<T = UnwrapWebhookEvent>(body: string, options?: {
8
- headers?: Record<string, string>;
9
- key?: string | Uint8Array;
10
- }): Promise<T>;
8
+ unsafeUnwrap<T = UnsafeUnwrapWebhookEvent>(body: string): T;
9
+ unwrap<T = UnwrapWebhookEvent>(body: string, options?: WebhookUnwrapOptions): Promise<T>;
11
10
  }
12
11
  export interface CallAIGatherEnded {
13
12
  /**
@@ -3764,6 +3763,129 @@ export declare namespace CallCostWebhookEvent {
3764
3763
  }
3765
3764
  }
3766
3765
  }
3766
+ export interface CallDeepfakeDetectionErrorWebhookEvent {
3767
+ data?: CallDeepfakeDetectionErrorWebhookEvent.Data;
3768
+ }
3769
+ export declare namespace CallDeepfakeDetectionErrorWebhookEvent {
3770
+ interface Data {
3771
+ /**
3772
+ * Identifies the type of resource.
3773
+ */
3774
+ id?: string;
3775
+ /**
3776
+ * The type of event being delivered.
3777
+ */
3778
+ event_type?: 'call.deepfake_detection.error';
3779
+ /**
3780
+ * ISO 8601 datetime of when the event occurred.
3781
+ */
3782
+ occurred_at?: string;
3783
+ payload?: Data.Payload;
3784
+ /**
3785
+ * Identifies the type of the resource.
3786
+ */
3787
+ record_type?: 'event';
3788
+ }
3789
+ namespace Data {
3790
+ interface Payload {
3791
+ /**
3792
+ * Call ID used to issue commands via Call Control API.
3793
+ */
3794
+ call_control_id?: string;
3795
+ /**
3796
+ * ID that is unique to the call and can be used to correlate webhook events.
3797
+ */
3798
+ call_leg_id?: string;
3799
+ /**
3800
+ * ID that is unique to the call session and can be used to correlate webhook
3801
+ * events. Call session is a group of related call legs that logically belong to
3802
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
3803
+ */
3804
+ call_session_id?: string;
3805
+ /**
3806
+ * State received from a command.
3807
+ */
3808
+ client_state?: string | null;
3809
+ /**
3810
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
3811
+ */
3812
+ connection_id?: string;
3813
+ /**
3814
+ * The error that occurred. 'detection_timeout' = no DFD response received,
3815
+ * 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
3816
+ * = service connectivity issues.
3817
+ */
3818
+ error_message?: 'detection_timeout' | 'rtp_timeout' | 'dfd_connection_error' | 'dfd_stream_error';
3819
+ }
3820
+ }
3821
+ }
3822
+ export interface CallDeepfakeDetectionResultWebhookEvent {
3823
+ data?: CallDeepfakeDetectionResultWebhookEvent.Data;
3824
+ }
3825
+ export declare namespace CallDeepfakeDetectionResultWebhookEvent {
3826
+ interface Data {
3827
+ /**
3828
+ * Identifies the type of resource.
3829
+ */
3830
+ id?: string;
3831
+ /**
3832
+ * The type of event being delivered.
3833
+ */
3834
+ event_type?: 'call.deepfake_detection.result';
3835
+ /**
3836
+ * ISO 8601 datetime of when the event occurred.
3837
+ */
3838
+ occurred_at?: string;
3839
+ payload?: Data.Payload;
3840
+ /**
3841
+ * Identifies the type of the resource.
3842
+ */
3843
+ record_type?: 'event';
3844
+ }
3845
+ namespace Data {
3846
+ interface Payload {
3847
+ /**
3848
+ * Call ID used to issue commands via Call Control API.
3849
+ */
3850
+ call_control_id?: string;
3851
+ /**
3852
+ * ID that is unique to the call and can be used to correlate webhook events.
3853
+ */
3854
+ call_leg_id?: string;
3855
+ /**
3856
+ * ID that is unique to the call session and can be used to correlate webhook
3857
+ * events. Call session is a group of related call legs that logically belong to
3858
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
3859
+ */
3860
+ call_session_id?: string;
3861
+ /**
3862
+ * State received from a command.
3863
+ */
3864
+ client_state?: string | null;
3865
+ /**
3866
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
3867
+ */
3868
+ connection_id?: string;
3869
+ /**
3870
+ * Percentage (0-100) indicating how consistently the model classified the audio
3871
+ * across frames. High consistency (>90%) means confident classification
3872
+ * throughout; low consistency suggests mixed signals. Null for silence_timeout.
3873
+ */
3874
+ consistency?: number | null;
3875
+ /**
3876
+ * Detection outcome. 'real' = human voice, 'fake' = AI-generated voice,
3877
+ * 'silence_timeout' = no analyzable speech detected before timeout.
3878
+ */
3879
+ result?: 'real' | 'fake' | 'silence_timeout';
3880
+ /**
3881
+ * Probability that the audio is AI-generated, from 0.0 (likely real) to 1.0
3882
+ * (likely deepfake). Based on the model's aggregated confidence across analyzed
3883
+ * audio frames. Null for silence_timeout.
3884
+ */
3885
+ score?: number | null;
3886
+ }
3887
+ }
3888
+ }
3767
3889
  export interface CallDtmfReceivedWebhookEvent {
3768
3890
  data?: CallDtmfReceived;
3769
3891
  }
@@ -3782,6 +3904,64 @@ export interface CallGatherEndedWebhookEvent {
3782
3904
  export interface CallHangupWebhookEvent {
3783
3905
  data?: CallHangup;
3784
3906
  }
3907
+ export interface CallHoldWebhookEvent {
3908
+ data?: CallHoldWebhookEvent.Data;
3909
+ }
3910
+ export declare namespace CallHoldWebhookEvent {
3911
+ interface Data {
3912
+ /**
3913
+ * Identifies the type of resource.
3914
+ */
3915
+ id?: string;
3916
+ /**
3917
+ * The type of event being delivered.
3918
+ */
3919
+ event_type?: 'call.hold';
3920
+ /**
3921
+ * ISO 8601 datetime of when the event occurred.
3922
+ */
3923
+ occurred_at?: string;
3924
+ payload?: Data.Payload;
3925
+ /**
3926
+ * Identifies the type of the resource.
3927
+ */
3928
+ record_type?: 'event';
3929
+ }
3930
+ namespace Data {
3931
+ interface Payload {
3932
+ /**
3933
+ * Call ID used to issue commands via Call Control API.
3934
+ */
3935
+ call_control_id?: string;
3936
+ /**
3937
+ * ID that is unique to the call and can be used to correlate webhook events.
3938
+ */
3939
+ call_leg_id?: string;
3940
+ /**
3941
+ * ID that is unique to the call session and can be used to correlate webhook
3942
+ * events. Call session is a group of related call legs that logically belong to
3943
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
3944
+ */
3945
+ call_session_id?: string;
3946
+ /**
3947
+ * State received from a command.
3948
+ */
3949
+ client_state?: string;
3950
+ /**
3951
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
3952
+ */
3953
+ connection_id?: string;
3954
+ /**
3955
+ * Number or SIP URI placing the call.
3956
+ */
3957
+ from?: string;
3958
+ /**
3959
+ * Destination number or SIP URI of the call.
3960
+ */
3961
+ to?: string;
3962
+ }
3963
+ }
3964
+ }
3785
3965
  export interface CallInitiatedWebhookEvent {
3786
3966
  data?: CallInitiated;
3787
3967
  }
@@ -3848,6 +4028,64 @@ export interface CallStreamingStartedWebhookEvent {
3848
4028
  export interface CallStreamingStoppedWebhookEvent {
3849
4029
  data?: CallStreamingStopped;
3850
4030
  }
4031
+ export interface CallUnholdWebhookEvent {
4032
+ data?: CallUnholdWebhookEvent.Data;
4033
+ }
4034
+ export declare namespace CallUnholdWebhookEvent {
4035
+ interface Data {
4036
+ /**
4037
+ * Identifies the type of resource.
4038
+ */
4039
+ id?: string;
4040
+ /**
4041
+ * The type of event being delivered.
4042
+ */
4043
+ event_type?: 'call.unhold';
4044
+ /**
4045
+ * ISO 8601 datetime of when the event occurred.
4046
+ */
4047
+ occurred_at?: string;
4048
+ payload?: Data.Payload;
4049
+ /**
4050
+ * Identifies the type of the resource.
4051
+ */
4052
+ record_type?: 'event';
4053
+ }
4054
+ namespace Data {
4055
+ interface Payload {
4056
+ /**
4057
+ * Call ID used to issue commands via Call Control API.
4058
+ */
4059
+ call_control_id?: string;
4060
+ /**
4061
+ * ID that is unique to the call and can be used to correlate webhook events.
4062
+ */
4063
+ call_leg_id?: string;
4064
+ /**
4065
+ * ID that is unique to the call session and can be used to correlate webhook
4066
+ * events. Call session is a group of related call legs that logically belong to
4067
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
4068
+ */
4069
+ call_session_id?: string;
4070
+ /**
4071
+ * State received from a command.
4072
+ */
4073
+ client_state?: string;
4074
+ /**
4075
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
4076
+ */
4077
+ connection_id?: string;
4078
+ /**
4079
+ * Number or SIP URI placing the call.
4080
+ */
4081
+ from?: string;
4082
+ /**
4083
+ * Destination number or SIP URI of the call.
4084
+ */
4085
+ to?: string;
4086
+ }
4087
+ }
4088
+ }
3851
4089
  export interface ConferenceCreatedWebhookEvent {
3852
4090
  data?: ConferenceCreated;
3853
4091
  }
@@ -3903,6 +4141,85 @@ export declare namespace DeliveryUpdateWebhookEvent {
3903
4141
  delivered_to?: string;
3904
4142
  }
3905
4143
  }
4144
+ export interface HostedNumberOrderEventWebhookEvent {
4145
+ data?: HostedNumberOrderEventWebhookEvent.Data;
4146
+ }
4147
+ export declare namespace HostedNumberOrderEventWebhookEvent {
4148
+ interface Data {
4149
+ /**
4150
+ * Unique identifier for the event.
4151
+ */
4152
+ id?: string;
4153
+ /**
4154
+ * The type of event being delivered. Internal transfer events are only emitted for
4155
+ * orders where the numbers are already active on another Telnyx account.
4156
+ */
4157
+ event_type?: 'messaging_hosted_numbers_orders.created' | 'messaging_hosted_numbers_orders.updated' | 'messaging_hosted_numbers_orders.deleted' | 'messaging_hosted_numbers_orders.internal_transfer_detected' | 'messaging_hosted_numbers_orders.internal_transfer_approval_requested' | 'messaging_hosted_numbers_orders.internal_transfer_approved' | 'messaging_hosted_numbers_orders.internal_transfer_rejected' | 'messaging_hosted_numbers_orders.internal_transfer_auto_approved';
4158
+ /**
4159
+ * ISO 8601 formatted date indicating when the event was generated.
4160
+ */
4161
+ occurred_at?: string;
4162
+ /**
4163
+ * Payload delivered with every messaging*hosted_numbers_orders.\* event.
4164
+ * `approval_deadline` and `decision` are meaningful only for
4165
+ * `internal_transfer*\*` events.
4166
+ */
4167
+ payload?: Data.Payload;
4168
+ /**
4169
+ * Identifies the type of the resource.
4170
+ */
4171
+ record_type?: 'event';
4172
+ }
4173
+ namespace Data {
4174
+ /**
4175
+ * Payload delivered with every messaging*hosted_numbers_orders.\* event.
4176
+ * `approval_deadline` and `decision` are meaningful only for
4177
+ * `internal_transfer*\*` events.
4178
+ */
4179
+ interface Payload {
4180
+ /**
4181
+ * Unix timestamp (seconds) by which the losing organization must respond before
4182
+ * auto-approval. Populated on internal-transfer events once an approval window has
4183
+ * been issued.
4184
+ */
4185
+ approval_deadline?: number | null;
4186
+ /**
4187
+ * Approval decision for the internal transfer. Defaults to `pending` for
4188
+ * non-internal-transfer events.
4189
+ */
4190
+ decision?: 'pending' | 'approved' | 'rejected';
4191
+ numbers?: Array<Payload.Number>;
4192
+ /**
4193
+ * The ID of the hosted number order.
4194
+ */
4195
+ order_id?: string;
4196
+ /**
4197
+ * Current status of the order.
4198
+ */
4199
+ order_status?: 'pending' | 'provisioning' | 'successful' | 'failed' | 'deleted' | 'carrier_rejected' | 'compliance_review_failed' | 'incomplete_documentation' | 'incorrect_billing_information' | 'ineligible_carrier' | 'loa_file_invalid' | 'loa_file_successful';
4200
+ /**
4201
+ * The messaging profile associated with the order.
4202
+ */
4203
+ profile_id?: string;
4204
+ /**
4205
+ * The organization that owns the order.
4206
+ */
4207
+ user_id?: string;
4208
+ }
4209
+ namespace Payload {
4210
+ interface Number {
4211
+ /**
4212
+ * Current status of this phone number within the order.
4213
+ */
4214
+ status?: 'deleted' | 'failed' | 'failed_activation' | 'failed_carrier_rejected' | 'failed_ineligible_carrier' | 'failed_number_already_hosted' | 'failed_number_not_found' | 'failed_ownership_verification' | 'failed_timeout' | 'ownership_successful' | 'pending' | 'provisioning' | 'successful';
4215
+ /**
4216
+ * Phone number in +E.164 format.
4217
+ */
4218
+ value?: string;
4219
+ }
4220
+ }
4221
+ }
4222
+ }
3906
4223
  export interface InboundMessageWebhookEvent {
3907
4224
  data?: InboundMessage;
3908
4225
  }
@@ -4033,6 +4350,129 @@ export declare namespace CallCostWebhookEvent {
4033
4350
  }
4034
4351
  }
4035
4352
  }
4353
+ export interface CallDeepfakeDetectionErrorWebhookEvent {
4354
+ data?: CallDeepfakeDetectionErrorWebhookEvent.Data;
4355
+ }
4356
+ export declare namespace CallDeepfakeDetectionErrorWebhookEvent {
4357
+ interface Data {
4358
+ /**
4359
+ * Identifies the type of resource.
4360
+ */
4361
+ id?: string;
4362
+ /**
4363
+ * The type of event being delivered.
4364
+ */
4365
+ event_type?: 'call.deepfake_detection.error';
4366
+ /**
4367
+ * ISO 8601 datetime of when the event occurred.
4368
+ */
4369
+ occurred_at?: string;
4370
+ payload?: Data.Payload;
4371
+ /**
4372
+ * Identifies the type of the resource.
4373
+ */
4374
+ record_type?: 'event';
4375
+ }
4376
+ namespace Data {
4377
+ interface Payload {
4378
+ /**
4379
+ * Call ID used to issue commands via Call Control API.
4380
+ */
4381
+ call_control_id?: string;
4382
+ /**
4383
+ * ID that is unique to the call and can be used to correlate webhook events.
4384
+ */
4385
+ call_leg_id?: string;
4386
+ /**
4387
+ * ID that is unique to the call session and can be used to correlate webhook
4388
+ * events. Call session is a group of related call legs that logically belong to
4389
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
4390
+ */
4391
+ call_session_id?: string;
4392
+ /**
4393
+ * State received from a command.
4394
+ */
4395
+ client_state?: string | null;
4396
+ /**
4397
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
4398
+ */
4399
+ connection_id?: string;
4400
+ /**
4401
+ * The error that occurred. 'detection_timeout' = no DFD response received,
4402
+ * 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
4403
+ * = service connectivity issues.
4404
+ */
4405
+ error_message?: 'detection_timeout' | 'rtp_timeout' | 'dfd_connection_error' | 'dfd_stream_error';
4406
+ }
4407
+ }
4408
+ }
4409
+ export interface CallDeepfakeDetectionResultWebhookEvent {
4410
+ data?: CallDeepfakeDetectionResultWebhookEvent.Data;
4411
+ }
4412
+ export declare namespace CallDeepfakeDetectionResultWebhookEvent {
4413
+ interface Data {
4414
+ /**
4415
+ * Identifies the type of resource.
4416
+ */
4417
+ id?: string;
4418
+ /**
4419
+ * The type of event being delivered.
4420
+ */
4421
+ event_type?: 'call.deepfake_detection.result';
4422
+ /**
4423
+ * ISO 8601 datetime of when the event occurred.
4424
+ */
4425
+ occurred_at?: string;
4426
+ payload?: Data.Payload;
4427
+ /**
4428
+ * Identifies the type of the resource.
4429
+ */
4430
+ record_type?: 'event';
4431
+ }
4432
+ namespace Data {
4433
+ interface Payload {
4434
+ /**
4435
+ * Call ID used to issue commands via Call Control API.
4436
+ */
4437
+ call_control_id?: string;
4438
+ /**
4439
+ * ID that is unique to the call and can be used to correlate webhook events.
4440
+ */
4441
+ call_leg_id?: string;
4442
+ /**
4443
+ * ID that is unique to the call session and can be used to correlate webhook
4444
+ * events. Call session is a group of related call legs that logically belong to
4445
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
4446
+ */
4447
+ call_session_id?: string;
4448
+ /**
4449
+ * State received from a command.
4450
+ */
4451
+ client_state?: string | null;
4452
+ /**
4453
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
4454
+ */
4455
+ connection_id?: string;
4456
+ /**
4457
+ * Percentage (0-100) indicating how consistently the model classified the audio
4458
+ * across frames. High consistency (>90%) means confident classification
4459
+ * throughout; low consistency suggests mixed signals. Null for silence_timeout.
4460
+ */
4461
+ consistency?: number | null;
4462
+ /**
4463
+ * Detection outcome. 'real' = human voice, 'fake' = AI-generated voice,
4464
+ * 'silence_timeout' = no analyzable speech detected before timeout.
4465
+ */
4466
+ result?: 'real' | 'fake' | 'silence_timeout';
4467
+ /**
4468
+ * Probability that the audio is AI-generated, from 0.0 (likely real) to 1.0
4469
+ * (likely deepfake). Based on the model's aggregated confidence across analyzed
4470
+ * audio frames. Null for silence_timeout.
4471
+ */
4472
+ score?: number | null;
4473
+ }
4474
+ }
4475
+ }
4036
4476
  export interface CallDtmfReceivedWebhookEvent {
4037
4477
  data?: CallDtmfReceived;
4038
4478
  }
@@ -4051,6 +4491,64 @@ export interface CallGatherEndedWebhookEvent {
4051
4491
  export interface CallHangupWebhookEvent {
4052
4492
  data?: CallHangup;
4053
4493
  }
4494
+ export interface CallHoldWebhookEvent {
4495
+ data?: CallHoldWebhookEvent.Data;
4496
+ }
4497
+ export declare namespace CallHoldWebhookEvent {
4498
+ interface Data {
4499
+ /**
4500
+ * Identifies the type of resource.
4501
+ */
4502
+ id?: string;
4503
+ /**
4504
+ * The type of event being delivered.
4505
+ */
4506
+ event_type?: 'call.hold';
4507
+ /**
4508
+ * ISO 8601 datetime of when the event occurred.
4509
+ */
4510
+ occurred_at?: string;
4511
+ payload?: Data.Payload;
4512
+ /**
4513
+ * Identifies the type of the resource.
4514
+ */
4515
+ record_type?: 'event';
4516
+ }
4517
+ namespace Data {
4518
+ interface Payload {
4519
+ /**
4520
+ * Call ID used to issue commands via Call Control API.
4521
+ */
4522
+ call_control_id?: string;
4523
+ /**
4524
+ * ID that is unique to the call and can be used to correlate webhook events.
4525
+ */
4526
+ call_leg_id?: string;
4527
+ /**
4528
+ * ID that is unique to the call session and can be used to correlate webhook
4529
+ * events. Call session is a group of related call legs that logically belong to
4530
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
4531
+ */
4532
+ call_session_id?: string;
4533
+ /**
4534
+ * State received from a command.
4535
+ */
4536
+ client_state?: string;
4537
+ /**
4538
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
4539
+ */
4540
+ connection_id?: string;
4541
+ /**
4542
+ * Number or SIP URI placing the call.
4543
+ */
4544
+ from?: string;
4545
+ /**
4546
+ * Destination number or SIP URI of the call.
4547
+ */
4548
+ to?: string;
4549
+ }
4550
+ }
4551
+ }
4054
4552
  export interface CallInitiatedWebhookEvent {
4055
4553
  data?: CallInitiated;
4056
4554
  }
@@ -4117,6 +4615,64 @@ export interface CallStreamingStartedWebhookEvent {
4117
4615
  export interface CallStreamingStoppedWebhookEvent {
4118
4616
  data?: CallStreamingStopped;
4119
4617
  }
4618
+ export interface CallUnholdWebhookEvent {
4619
+ data?: CallUnholdWebhookEvent.Data;
4620
+ }
4621
+ export declare namespace CallUnholdWebhookEvent {
4622
+ interface Data {
4623
+ /**
4624
+ * Identifies the type of resource.
4625
+ */
4626
+ id?: string;
4627
+ /**
4628
+ * The type of event being delivered.
4629
+ */
4630
+ event_type?: 'call.unhold';
4631
+ /**
4632
+ * ISO 8601 datetime of when the event occurred.
4633
+ */
4634
+ occurred_at?: string;
4635
+ payload?: Data.Payload;
4636
+ /**
4637
+ * Identifies the type of the resource.
4638
+ */
4639
+ record_type?: 'event';
4640
+ }
4641
+ namespace Data {
4642
+ interface Payload {
4643
+ /**
4644
+ * Call ID used to issue commands via Call Control API.
4645
+ */
4646
+ call_control_id?: string;
4647
+ /**
4648
+ * ID that is unique to the call and can be used to correlate webhook events.
4649
+ */
4650
+ call_leg_id?: string;
4651
+ /**
4652
+ * ID that is unique to the call session and can be used to correlate webhook
4653
+ * events. Call session is a group of related call legs that logically belong to
4654
+ * the same phone call, e.g. an inbound and outbound leg of a transferred call.
4655
+ */
4656
+ call_session_id?: string;
4657
+ /**
4658
+ * State received from a command.
4659
+ */
4660
+ client_state?: string;
4661
+ /**
4662
+ * Call Control App ID (formerly Telnyx connection ID) used in the call.
4663
+ */
4664
+ connection_id?: string;
4665
+ /**
4666
+ * Number or SIP URI placing the call.
4667
+ */
4668
+ from?: string;
4669
+ /**
4670
+ * Destination number or SIP URI of the call.
4671
+ */
4672
+ to?: string;
4673
+ }
4674
+ }
4675
+ }
4120
4676
  export interface ConferenceCreatedWebhookEvent {
4121
4677
  data?: ConferenceCreated;
4122
4678
  }
@@ -4172,6 +4728,85 @@ export declare namespace DeliveryUpdateWebhookEvent {
4172
4728
  delivered_to?: string;
4173
4729
  }
4174
4730
  }
4731
+ export interface HostedNumberOrderEventWebhookEvent {
4732
+ data?: HostedNumberOrderEventWebhookEvent.Data;
4733
+ }
4734
+ export declare namespace HostedNumberOrderEventWebhookEvent {
4735
+ interface Data {
4736
+ /**
4737
+ * Unique identifier for the event.
4738
+ */
4739
+ id?: string;
4740
+ /**
4741
+ * The type of event being delivered. Internal transfer events are only emitted for
4742
+ * orders where the numbers are already active on another Telnyx account.
4743
+ */
4744
+ event_type?: 'messaging_hosted_numbers_orders.created' | 'messaging_hosted_numbers_orders.updated' | 'messaging_hosted_numbers_orders.deleted' | 'messaging_hosted_numbers_orders.internal_transfer_detected' | 'messaging_hosted_numbers_orders.internal_transfer_approval_requested' | 'messaging_hosted_numbers_orders.internal_transfer_approved' | 'messaging_hosted_numbers_orders.internal_transfer_rejected' | 'messaging_hosted_numbers_orders.internal_transfer_auto_approved';
4745
+ /**
4746
+ * ISO 8601 formatted date indicating when the event was generated.
4747
+ */
4748
+ occurred_at?: string;
4749
+ /**
4750
+ * Payload delivered with every messaging*hosted_numbers_orders.\* event.
4751
+ * `approval_deadline` and `decision` are meaningful only for
4752
+ * `internal_transfer*\*` events.
4753
+ */
4754
+ payload?: Data.Payload;
4755
+ /**
4756
+ * Identifies the type of the resource.
4757
+ */
4758
+ record_type?: 'event';
4759
+ }
4760
+ namespace Data {
4761
+ /**
4762
+ * Payload delivered with every messaging*hosted_numbers_orders.\* event.
4763
+ * `approval_deadline` and `decision` are meaningful only for
4764
+ * `internal_transfer*\*` events.
4765
+ */
4766
+ interface Payload {
4767
+ /**
4768
+ * Unix timestamp (seconds) by which the losing organization must respond before
4769
+ * auto-approval. Populated on internal-transfer events once an approval window has
4770
+ * been issued.
4771
+ */
4772
+ approval_deadline?: number | null;
4773
+ /**
4774
+ * Approval decision for the internal transfer. Defaults to `pending` for
4775
+ * non-internal-transfer events.
4776
+ */
4777
+ decision?: 'pending' | 'approved' | 'rejected';
4778
+ numbers?: Array<Payload.Number>;
4779
+ /**
4780
+ * The ID of the hosted number order.
4781
+ */
4782
+ order_id?: string;
4783
+ /**
4784
+ * Current status of the order.
4785
+ */
4786
+ order_status?: 'pending' | 'provisioning' | 'successful' | 'failed' | 'deleted' | 'carrier_rejected' | 'compliance_review_failed' | 'incomplete_documentation' | 'incorrect_billing_information' | 'ineligible_carrier' | 'loa_file_invalid' | 'loa_file_successful';
4787
+ /**
4788
+ * The messaging profile associated with the order.
4789
+ */
4790
+ profile_id?: string;
4791
+ /**
4792
+ * The organization that owns the order.
4793
+ */
4794
+ user_id?: string;
4795
+ }
4796
+ namespace Payload {
4797
+ interface Number {
4798
+ /**
4799
+ * Current status of this phone number within the order.
4800
+ */
4801
+ status?: 'deleted' | 'failed' | 'failed_activation' | 'failed_carrier_rejected' | 'failed_ineligible_carrier' | 'failed_number_already_hosted' | 'failed_number_not_found' | 'failed_ownership_verification' | 'failed_timeout' | 'ownership_successful' | 'pending' | 'provisioning' | 'successful';
4802
+ /**
4803
+ * Phone number in +E.164 format.
4804
+ */
4805
+ value?: string;
4806
+ }
4807
+ }
4808
+ }
4809
+ }
4175
4810
  export interface InboundMessageWebhookEvent {
4176
4811
  data?: InboundMessage;
4177
4812
  }
@@ -4181,9 +4816,9 @@ export interface ReplacedLinkClickWebhookEvent {
4181
4816
  export interface TranscriptionWebhookEvent {
4182
4817
  data?: Transcription;
4183
4818
  }
4184
- export type UnsafeUnwrapWebhookEvent = CallAIGatherEndedWebhookEvent | CallAIGatherMessageHistoryUpdatedWebhookEvent | CallAIGatherPartialResultsWebhookEvent | CallAnsweredWebhookEvent | CallBridgedWebhookEvent | CallConversationEndedWebhookEvent | CallConversationInsightsGeneratedWebhookEvent | CallCostWebhookEvent | CallDtmfReceivedWebhookEvent | CallEnqueuedWebhookEvent | CallForkStartedWebhookEvent | CallForkStoppedWebhookEvent | CallGatherEndedWebhookEvent | CallHangupWebhookEvent | CallInitiatedWebhookEvent | CallLeftQueueWebhookEvent | CallMachineDetectionEndedWebhookEvent | CallMachineGreetingEndedWebhookEvent | CallMachinePremiumDetectionEndedWebhookEvent | CallMachinePremiumGreetingEndedWebhookEvent | CallPlaybackEndedWebhookEvent | CallPlaybackStartedWebhookEvent | CallRecordingErrorWebhookEvent | CallRecordingSavedWebhookEvent | CallRecordingTranscriptionSavedWebhookEvent | CallReferCompletedWebhookEvent | CallReferFailedWebhookEvent | CallReferStartedWebhookEvent | CallSiprecFailedWebhookEvent | CallSiprecStartedWebhookEvent | CallSiprecStoppedWebhookEvent | CallSpeakEndedWebhookEvent | CallSpeakStartedWebhookEvent | CallStreamingFailedWebhookEvent | CallStreamingStartedWebhookEvent | CallStreamingStoppedWebhookEvent | CampaignStatusUpdate | ConferenceCreatedWebhookEvent | ConferenceEndedWebhookEvent | ConferenceFloorChanged | ConferenceParticipantJoinedWebhookEvent | ConferenceParticipantLeftWebhookEvent | ConferenceParticipantPlaybackEndedWebhookEvent | ConferenceParticipantPlaybackStartedWebhookEvent | ConferenceParticipantSpeakEndedWebhookEvent | ConferenceParticipantSpeakStartedWebhookEvent | ConferencePlaybackEndedWebhookEvent | ConferencePlaybackStartedWebhookEvent | ConferenceRecordingSavedWebhookEvent | ConferenceSpeakEndedWebhookEvent | ConferenceSpeakStartedWebhookEvent | DeliveryUpdateWebhookEvent | FaxDelivered | FaxFailed | FaxMediaProcessed | FaxQueued | FaxSendingStarted | InboundMessageWebhookEvent | NumberOrderStatusUpdate | ReplacedLinkClickWebhookEvent | TranscriptionWebhookEvent;
4185
- export type UnwrapWebhookEvent = CallAIGatherEndedWebhookEvent | CallAIGatherMessageHistoryUpdatedWebhookEvent | CallAIGatherPartialResultsWebhookEvent | CallAnsweredWebhookEvent | CallBridgedWebhookEvent | CallConversationEndedWebhookEvent | CallConversationInsightsGeneratedWebhookEvent | CallCostWebhookEvent | CallDtmfReceivedWebhookEvent | CallEnqueuedWebhookEvent | CallForkStartedWebhookEvent | CallForkStoppedWebhookEvent | CallGatherEndedWebhookEvent | CallHangupWebhookEvent | CallInitiatedWebhookEvent | CallLeftQueueWebhookEvent | CallMachineDetectionEndedWebhookEvent | CallMachineGreetingEndedWebhookEvent | CallMachinePremiumDetectionEndedWebhookEvent | CallMachinePremiumGreetingEndedWebhookEvent | CallPlaybackEndedWebhookEvent | CallPlaybackStartedWebhookEvent | CallRecordingErrorWebhookEvent | CallRecordingSavedWebhookEvent | CallRecordingTranscriptionSavedWebhookEvent | CallReferCompletedWebhookEvent | CallReferFailedWebhookEvent | CallReferStartedWebhookEvent | CallSiprecFailedWebhookEvent | CallSiprecStartedWebhookEvent | CallSiprecStoppedWebhookEvent | CallSpeakEndedWebhookEvent | CallSpeakStartedWebhookEvent | CallStreamingFailedWebhookEvent | CallStreamingStartedWebhookEvent | CallStreamingStoppedWebhookEvent | CampaignStatusUpdate | ConferenceCreatedWebhookEvent | ConferenceEndedWebhookEvent | ConferenceFloorChanged | ConferenceParticipantJoinedWebhookEvent | ConferenceParticipantLeftWebhookEvent | ConferenceParticipantPlaybackEndedWebhookEvent | ConferenceParticipantPlaybackStartedWebhookEvent | ConferenceParticipantSpeakEndedWebhookEvent | ConferenceParticipantSpeakStartedWebhookEvent | ConferencePlaybackEndedWebhookEvent | ConferencePlaybackStartedWebhookEvent | ConferenceRecordingSavedWebhookEvent | ConferenceSpeakEndedWebhookEvent | ConferenceSpeakStartedWebhookEvent | DeliveryUpdateWebhookEvent | FaxDelivered | FaxFailed | FaxMediaProcessed | FaxQueued | FaxSendingStarted | InboundMessageWebhookEvent | NumberOrderStatusUpdate | ReplacedLinkClickWebhookEvent | TranscriptionWebhookEvent;
4819
+ export type UnsafeUnwrapWebhookEvent = CallAIGatherEndedWebhookEvent | CallAIGatherMessageHistoryUpdatedWebhookEvent | CallAIGatherPartialResultsWebhookEvent | CallAnsweredWebhookEvent | CallBridgedWebhookEvent | CallConversationEndedWebhookEvent | CallConversationInsightsGeneratedWebhookEvent | CallCostWebhookEvent | CallDeepfakeDetectionErrorWebhookEvent | CallDeepfakeDetectionResultWebhookEvent | CallDtmfReceivedWebhookEvent | CallEnqueuedWebhookEvent | CallForkStartedWebhookEvent | CallForkStoppedWebhookEvent | CallGatherEndedWebhookEvent | CallHangupWebhookEvent | CallHoldWebhookEvent | CallInitiatedWebhookEvent | CallLeftQueueWebhookEvent | CallMachineDetectionEndedWebhookEvent | CallMachineGreetingEndedWebhookEvent | CallMachinePremiumDetectionEndedWebhookEvent | CallMachinePremiumGreetingEndedWebhookEvent | CallPlaybackEndedWebhookEvent | CallPlaybackStartedWebhookEvent | CallRecordingErrorWebhookEvent | CallRecordingSavedWebhookEvent | CallRecordingTranscriptionSavedWebhookEvent | CallReferCompletedWebhookEvent | CallReferFailedWebhookEvent | CallReferStartedWebhookEvent | CallSiprecFailedWebhookEvent | CallSiprecStartedWebhookEvent | CallSiprecStoppedWebhookEvent | CallSpeakEndedWebhookEvent | CallSpeakStartedWebhookEvent | CallStreamingFailedWebhookEvent | CallStreamingStartedWebhookEvent | CallStreamingStoppedWebhookEvent | CallUnholdWebhookEvent | CampaignStatusUpdate | ConferenceCreatedWebhookEvent | ConferenceEndedWebhookEvent | ConferenceFloorChanged | ConferenceParticipantJoinedWebhookEvent | ConferenceParticipantLeftWebhookEvent | ConferenceParticipantPlaybackEndedWebhookEvent | ConferenceParticipantPlaybackStartedWebhookEvent | ConferenceParticipantSpeakEndedWebhookEvent | ConferenceParticipantSpeakStartedWebhookEvent | ConferencePlaybackEndedWebhookEvent | ConferencePlaybackStartedWebhookEvent | ConferenceRecordingSavedWebhookEvent | ConferenceSpeakEndedWebhookEvent | ConferenceSpeakStartedWebhookEvent | DeliveryUpdateWebhookEvent | FaxDelivered | FaxFailed | FaxMediaProcessed | FaxQueued | FaxSendingStarted | HostedNumberOrderEventWebhookEvent | InboundMessageWebhookEvent | NumberOrderStatusUpdate | ReplacedLinkClickWebhookEvent | TranscriptionWebhookEvent;
4820
+ export type UnwrapWebhookEvent = CallAIGatherEndedWebhookEvent | CallAIGatherMessageHistoryUpdatedWebhookEvent | CallAIGatherPartialResultsWebhookEvent | CallAnsweredWebhookEvent | CallBridgedWebhookEvent | CallConversationEndedWebhookEvent | CallConversationInsightsGeneratedWebhookEvent | CallCostWebhookEvent | CallDeepfakeDetectionErrorWebhookEvent | CallDeepfakeDetectionResultWebhookEvent | CallDtmfReceivedWebhookEvent | CallEnqueuedWebhookEvent | CallForkStartedWebhookEvent | CallForkStoppedWebhookEvent | CallGatherEndedWebhookEvent | CallHangupWebhookEvent | CallHoldWebhookEvent | CallInitiatedWebhookEvent | CallLeftQueueWebhookEvent | CallMachineDetectionEndedWebhookEvent | CallMachineGreetingEndedWebhookEvent | CallMachinePremiumDetectionEndedWebhookEvent | CallMachinePremiumGreetingEndedWebhookEvent | CallPlaybackEndedWebhookEvent | CallPlaybackStartedWebhookEvent | CallRecordingErrorWebhookEvent | CallRecordingSavedWebhookEvent | CallRecordingTranscriptionSavedWebhookEvent | CallReferCompletedWebhookEvent | CallReferFailedWebhookEvent | CallReferStartedWebhookEvent | CallSiprecFailedWebhookEvent | CallSiprecStartedWebhookEvent | CallSiprecStoppedWebhookEvent | CallSpeakEndedWebhookEvent | CallSpeakStartedWebhookEvent | CallStreamingFailedWebhookEvent | CallStreamingStartedWebhookEvent | CallStreamingStoppedWebhookEvent | CallUnholdWebhookEvent | CampaignStatusUpdate | ConferenceCreatedWebhookEvent | ConferenceEndedWebhookEvent | ConferenceFloorChanged | ConferenceParticipantJoinedWebhookEvent | ConferenceParticipantLeftWebhookEvent | ConferenceParticipantPlaybackEndedWebhookEvent | ConferenceParticipantPlaybackStartedWebhookEvent | ConferenceParticipantSpeakEndedWebhookEvent | ConferenceParticipantSpeakStartedWebhookEvent | ConferencePlaybackEndedWebhookEvent | ConferencePlaybackStartedWebhookEvent | ConferenceRecordingSavedWebhookEvent | ConferenceSpeakEndedWebhookEvent | ConferenceSpeakStartedWebhookEvent | DeliveryUpdateWebhookEvent | FaxDelivered | FaxFailed | FaxMediaProcessed | FaxQueued | FaxSendingStarted | HostedNumberOrderEventWebhookEvent | InboundMessageWebhookEvent | NumberOrderStatusUpdate | ReplacedLinkClickWebhookEvent | TranscriptionWebhookEvent;
4186
4821
  export declare namespace Webhooks {
4187
- export { type CallAIGatherEnded as CallAIGatherEnded, type CallAIGatherMessageHistoryUpdated as CallAIGatherMessageHistoryUpdated, type CallAIGatherPartialResults as CallAIGatherPartialResults, type CallAnswered as CallAnswered, type CallBridged as CallBridged, type CallConversationEnded as CallConversationEnded, type CallConversationInsightsGenerated as CallConversationInsightsGenerated, type CallDtmfReceived as CallDtmfReceived, type CallEnqueued as CallEnqueued, type CallForkStarted as CallForkStarted, type CallForkStopped as CallForkStopped, type CallGatherEnded as CallGatherEnded, type CallHangup as CallHangup, type CallInitiated as CallInitiated, type CallLeftQueue as CallLeftQueue, type CallMachineDetectionEnded as CallMachineDetectionEnded, type CallMachineGreetingEnded as CallMachineGreetingEnded, type CallMachinePremiumDetectionEnded as CallMachinePremiumDetectionEnded, type CallMachinePremiumGreetingEnded as CallMachinePremiumGreetingEnded, type CallPlaybackEnded as CallPlaybackEnded, type CallPlaybackStarted as CallPlaybackStarted, type CallRecordingError as CallRecordingError, type CallRecordingSaved as CallRecordingSaved, type CallRecordingTranscriptionSaved as CallRecordingTranscriptionSaved, type CallReferCompleted as CallReferCompleted, type CallReferFailed as CallReferFailed, type CallReferStarted as CallReferStarted, type CallSiprecFailed as CallSiprecFailed, type CallSiprecStarted as CallSiprecStarted, type CallSiprecStopped as CallSiprecStopped, type CallSpeakEnded as CallSpeakEnded, type CallSpeakStarted as CallSpeakStarted, type CallStreamingFailed as CallStreamingFailed, type CallStreamingStarted as CallStreamingStarted, type CallStreamingStopped as CallStreamingStopped, type CampaignStatusUpdate as CampaignStatusUpdate, type ConferenceCreated as ConferenceCreated, type ConferenceEnded as ConferenceEnded, type ConferenceFloorChanged as ConferenceFloorChanged, type ConferenceParticipantJoined as ConferenceParticipantJoined, type ConferenceParticipantLeft as ConferenceParticipantLeft, type ConferenceParticipantPlaybackEnded as ConferenceParticipantPlaybackEnded, type ConferenceParticipantPlaybackStarted as ConferenceParticipantPlaybackStarted, type ConferenceParticipantSpeakEnded as ConferenceParticipantSpeakEnded, type ConferenceParticipantSpeakStarted as ConferenceParticipantSpeakStarted, type ConferencePlaybackEnded as ConferencePlaybackEnded, type ConferencePlaybackStarted as ConferencePlaybackStarted, type ConferenceRecordingSaved as ConferenceRecordingSaved, type ConferenceSpeakEnded as ConferenceSpeakEnded, type ConferenceSpeakStarted as ConferenceSpeakStarted, type FaxDelivered as FaxDelivered, type FaxFailed as FaxFailed, type FaxMediaProcessed as FaxMediaProcessed, type FaxQueued as FaxQueued, type FaxSendingStarted as FaxSendingStarted, type InboundMessage as InboundMessage, type NumberOrderStatusUpdate as NumberOrderStatusUpdate, type OutboundMessage as OutboundMessage, type ReplacedLinkClick as ReplacedLinkClick, type Transcription as Transcription, type CallAIGatherEndedWebhookEvent as CallAIGatherEndedWebhookEvent, type CallAIGatherMessageHistoryUpdatedWebhookEvent as CallAIGatherMessageHistoryUpdatedWebhookEvent, type CallAIGatherPartialResultsWebhookEvent as CallAIGatherPartialResultsWebhookEvent, type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent, type CallBridgedWebhookEvent as CallBridgedWebhookEvent, type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent, type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent, type CallCostWebhookEvent as CallCostWebhookEvent, type CallDtmfReceivedWebhookEvent as CallDtmfReceivedWebhookEvent, type CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent, type CallForkStartedWebhookEvent as CallForkStartedWebhookEvent, type CallForkStoppedWebhookEvent as CallForkStoppedWebhookEvent, type CallGatherEndedWebhookEvent as CallGatherEndedWebhookEvent, type CallHangupWebhookEvent as CallHangupWebhookEvent, type CallInitiatedWebhookEvent as CallInitiatedWebhookEvent, type CallLeftQueueWebhookEvent as CallLeftQueueWebhookEvent, type CallMachineDetectionEndedWebhookEvent as CallMachineDetectionEndedWebhookEvent, type CallMachineGreetingEndedWebhookEvent as CallMachineGreetingEndedWebhookEvent, type CallMachinePremiumDetectionEndedWebhookEvent as CallMachinePremiumDetectionEndedWebhookEvent, type CallMachinePremiumGreetingEndedWebhookEvent as CallMachinePremiumGreetingEndedWebhookEvent, type CallPlaybackEndedWebhookEvent as CallPlaybackEndedWebhookEvent, type CallPlaybackStartedWebhookEvent as CallPlaybackStartedWebhookEvent, type CallRecordingErrorWebhookEvent as CallRecordingErrorWebhookEvent, type CallRecordingSavedWebhookEvent as CallRecordingSavedWebhookEvent, type CallRecordingTranscriptionSavedWebhookEvent as CallRecordingTranscriptionSavedWebhookEvent, type CallReferCompletedWebhookEvent as CallReferCompletedWebhookEvent, type CallReferFailedWebhookEvent as CallReferFailedWebhookEvent, type CallReferStartedWebhookEvent as CallReferStartedWebhookEvent, type CallSiprecFailedWebhookEvent as CallSiprecFailedWebhookEvent, type CallSiprecStartedWebhookEvent as CallSiprecStartedWebhookEvent, type CallSiprecStoppedWebhookEvent as CallSiprecStoppedWebhookEvent, type CallSpeakEndedWebhookEvent as CallSpeakEndedWebhookEvent, type CallSpeakStartedWebhookEvent as CallSpeakStartedWebhookEvent, type CallStreamingFailedWebhookEvent as CallStreamingFailedWebhookEvent, type CallStreamingStartedWebhookEvent as CallStreamingStartedWebhookEvent, type CallStreamingStoppedWebhookEvent as CallStreamingStoppedWebhookEvent, type ConferenceCreatedWebhookEvent as ConferenceCreatedWebhookEvent, type ConferenceEndedWebhookEvent as ConferenceEndedWebhookEvent, type ConferenceParticipantJoinedWebhookEvent as ConferenceParticipantJoinedWebhookEvent, type ConferenceParticipantLeftWebhookEvent as ConferenceParticipantLeftWebhookEvent, type ConferenceParticipantPlaybackEndedWebhookEvent as ConferenceParticipantPlaybackEndedWebhookEvent, type ConferenceParticipantPlaybackStartedWebhookEvent as ConferenceParticipantPlaybackStartedWebhookEvent, type ConferenceParticipantSpeakEndedWebhookEvent as ConferenceParticipantSpeakEndedWebhookEvent, type ConferenceParticipantSpeakStartedWebhookEvent as ConferenceParticipantSpeakStartedWebhookEvent, type ConferencePlaybackEndedWebhookEvent as ConferencePlaybackEndedWebhookEvent, type ConferencePlaybackStartedWebhookEvent as ConferencePlaybackStartedWebhookEvent, type ConferenceRecordingSavedWebhookEvent as ConferenceRecordingSavedWebhookEvent, type ConferenceSpeakEndedWebhookEvent as ConferenceSpeakEndedWebhookEvent, type ConferenceSpeakStartedWebhookEvent as ConferenceSpeakStartedWebhookEvent, type DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent, type InboundMessageWebhookEvent as InboundMessageWebhookEvent, type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent, type TranscriptionWebhookEvent as TranscriptionWebhookEvent, type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
4822
+ export { type CallAIGatherEnded as CallAIGatherEnded, type CallAIGatherMessageHistoryUpdated as CallAIGatherMessageHistoryUpdated, type CallAIGatherPartialResults as CallAIGatherPartialResults, type CallAnswered as CallAnswered, type CallBridged as CallBridged, type CallConversationEnded as CallConversationEnded, type CallConversationInsightsGenerated as CallConversationInsightsGenerated, type CallDtmfReceived as CallDtmfReceived, type CallEnqueued as CallEnqueued, type CallForkStarted as CallForkStarted, type CallForkStopped as CallForkStopped, type CallGatherEnded as CallGatherEnded, type CallHangup as CallHangup, type CallInitiated as CallInitiated, type CallLeftQueue as CallLeftQueue, type CallMachineDetectionEnded as CallMachineDetectionEnded, type CallMachineGreetingEnded as CallMachineGreetingEnded, type CallMachinePremiumDetectionEnded as CallMachinePremiumDetectionEnded, type CallMachinePremiumGreetingEnded as CallMachinePremiumGreetingEnded, type CallPlaybackEnded as CallPlaybackEnded, type CallPlaybackStarted as CallPlaybackStarted, type CallRecordingError as CallRecordingError, type CallRecordingSaved as CallRecordingSaved, type CallRecordingTranscriptionSaved as CallRecordingTranscriptionSaved, type CallReferCompleted as CallReferCompleted, type CallReferFailed as CallReferFailed, type CallReferStarted as CallReferStarted, type CallSiprecFailed as CallSiprecFailed, type CallSiprecStarted as CallSiprecStarted, type CallSiprecStopped as CallSiprecStopped, type CallSpeakEnded as CallSpeakEnded, type CallSpeakStarted as CallSpeakStarted, type CallStreamingFailed as CallStreamingFailed, type CallStreamingStarted as CallStreamingStarted, type CallStreamingStopped as CallStreamingStopped, type CampaignStatusUpdate as CampaignStatusUpdate, type ConferenceCreated as ConferenceCreated, type ConferenceEnded as ConferenceEnded, type ConferenceFloorChanged as ConferenceFloorChanged, type ConferenceParticipantJoined as ConferenceParticipantJoined, type ConferenceParticipantLeft as ConferenceParticipantLeft, type ConferenceParticipantPlaybackEnded as ConferenceParticipantPlaybackEnded, type ConferenceParticipantPlaybackStarted as ConferenceParticipantPlaybackStarted, type ConferenceParticipantSpeakEnded as ConferenceParticipantSpeakEnded, type ConferenceParticipantSpeakStarted as ConferenceParticipantSpeakStarted, type ConferencePlaybackEnded as ConferencePlaybackEnded, type ConferencePlaybackStarted as ConferencePlaybackStarted, type ConferenceRecordingSaved as ConferenceRecordingSaved, type ConferenceSpeakEnded as ConferenceSpeakEnded, type ConferenceSpeakStarted as ConferenceSpeakStarted, type FaxDelivered as FaxDelivered, type FaxFailed as FaxFailed, type FaxMediaProcessed as FaxMediaProcessed, type FaxQueued as FaxQueued, type FaxSendingStarted as FaxSendingStarted, type InboundMessage as InboundMessage, type NumberOrderStatusUpdate as NumberOrderStatusUpdate, type OutboundMessage as OutboundMessage, type ReplacedLinkClick as ReplacedLinkClick, type Transcription as Transcription, type CallAIGatherEndedWebhookEvent as CallAIGatherEndedWebhookEvent, type CallAIGatherMessageHistoryUpdatedWebhookEvent as CallAIGatherMessageHistoryUpdatedWebhookEvent, type CallAIGatherPartialResultsWebhookEvent as CallAIGatherPartialResultsWebhookEvent, type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent, type CallBridgedWebhookEvent as CallBridgedWebhookEvent, type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent, type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent, type CallCostWebhookEvent as CallCostWebhookEvent, type CallDeepfakeDetectionErrorWebhookEvent as CallDeepfakeDetectionErrorWebhookEvent, type CallDeepfakeDetectionResultWebhookEvent as CallDeepfakeDetectionResultWebhookEvent, type CallDtmfReceivedWebhookEvent as CallDtmfReceivedWebhookEvent, type CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent, type CallForkStartedWebhookEvent as CallForkStartedWebhookEvent, type CallForkStoppedWebhookEvent as CallForkStoppedWebhookEvent, type CallGatherEndedWebhookEvent as CallGatherEndedWebhookEvent, type CallHangupWebhookEvent as CallHangupWebhookEvent, type CallHoldWebhookEvent as CallHoldWebhookEvent, type CallInitiatedWebhookEvent as CallInitiatedWebhookEvent, type CallLeftQueueWebhookEvent as CallLeftQueueWebhookEvent, type CallMachineDetectionEndedWebhookEvent as CallMachineDetectionEndedWebhookEvent, type CallMachineGreetingEndedWebhookEvent as CallMachineGreetingEndedWebhookEvent, type CallMachinePremiumDetectionEndedWebhookEvent as CallMachinePremiumDetectionEndedWebhookEvent, type CallMachinePremiumGreetingEndedWebhookEvent as CallMachinePremiumGreetingEndedWebhookEvent, type CallPlaybackEndedWebhookEvent as CallPlaybackEndedWebhookEvent, type CallPlaybackStartedWebhookEvent as CallPlaybackStartedWebhookEvent, type CallRecordingErrorWebhookEvent as CallRecordingErrorWebhookEvent, type CallRecordingSavedWebhookEvent as CallRecordingSavedWebhookEvent, type CallRecordingTranscriptionSavedWebhookEvent as CallRecordingTranscriptionSavedWebhookEvent, type CallReferCompletedWebhookEvent as CallReferCompletedWebhookEvent, type CallReferFailedWebhookEvent as CallReferFailedWebhookEvent, type CallReferStartedWebhookEvent as CallReferStartedWebhookEvent, type CallSiprecFailedWebhookEvent as CallSiprecFailedWebhookEvent, type CallSiprecStartedWebhookEvent as CallSiprecStartedWebhookEvent, type CallSiprecStoppedWebhookEvent as CallSiprecStoppedWebhookEvent, type CallSpeakEndedWebhookEvent as CallSpeakEndedWebhookEvent, type CallSpeakStartedWebhookEvent as CallSpeakStartedWebhookEvent, type CallStreamingFailedWebhookEvent as CallStreamingFailedWebhookEvent, type CallStreamingStartedWebhookEvent as CallStreamingStartedWebhookEvent, type CallStreamingStoppedWebhookEvent as CallStreamingStoppedWebhookEvent, type CallUnholdWebhookEvent as CallUnholdWebhookEvent, type ConferenceCreatedWebhookEvent as ConferenceCreatedWebhookEvent, type ConferenceEndedWebhookEvent as ConferenceEndedWebhookEvent, type ConferenceParticipantJoinedWebhookEvent as ConferenceParticipantJoinedWebhookEvent, type ConferenceParticipantLeftWebhookEvent as ConferenceParticipantLeftWebhookEvent, type ConferenceParticipantPlaybackEndedWebhookEvent as ConferenceParticipantPlaybackEndedWebhookEvent, type ConferenceParticipantPlaybackStartedWebhookEvent as ConferenceParticipantPlaybackStartedWebhookEvent, type ConferenceParticipantSpeakEndedWebhookEvent as ConferenceParticipantSpeakEndedWebhookEvent, type ConferenceParticipantSpeakStartedWebhookEvent as ConferenceParticipantSpeakStartedWebhookEvent, type ConferencePlaybackEndedWebhookEvent as ConferencePlaybackEndedWebhookEvent, type ConferencePlaybackStartedWebhookEvent as ConferencePlaybackStartedWebhookEvent, type ConferenceRecordingSavedWebhookEvent as ConferenceRecordingSavedWebhookEvent, type ConferenceSpeakEndedWebhookEvent as ConferenceSpeakEndedWebhookEvent, type ConferenceSpeakStartedWebhookEvent as ConferenceSpeakStartedWebhookEvent, type DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent, type HostedNumberOrderEventWebhookEvent as HostedNumberOrderEventWebhookEvent, type InboundMessageWebhookEvent as InboundMessageWebhookEvent, type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent, type TranscriptionWebhookEvent as TranscriptionWebhookEvent, type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
4188
4823
  }
4189
4824
  //# sourceMappingURL=webhooks.d.ts.map