rcs-js 2.0.21 → 2.0.23-rc.1

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 (389) hide show
  1. package/dist/cjs/Client.d.ts +6 -0
  2. package/dist/cjs/Client.js +32 -22
  3. package/dist/cjs/api/errors/BadGatewayError.d.ts +6 -0
  4. package/dist/cjs/api/errors/BadGatewayError.js +50 -0
  5. package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
  6. package/dist/cjs/api/errors/ConflictError.js +50 -0
  7. package/dist/cjs/api/errors/GoneError.d.ts +6 -0
  8. package/dist/cjs/api/errors/GoneError.js +50 -0
  9. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
  10. package/dist/cjs/api/errors/ServiceUnavailableError.js +50 -0
  11. package/dist/cjs/api/errors/TooEarlyError.d.ts +6 -0
  12. package/dist/cjs/api/errors/TooEarlyError.js +50 -0
  13. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
  14. package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
  15. package/dist/cjs/api/errors/index.d.ts +6 -0
  16. package/dist/cjs/api/errors/index.js +6 -0
  17. package/dist/cjs/api/resources/calls/client/Client.d.ts +181 -0
  18. package/dist/cjs/api/resources/calls/client/Client.js +788 -0
  19. package/dist/cjs/api/resources/calls/client/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/calls/client/index.js +17 -0
  21. package/dist/cjs/api/resources/calls/client/requests/CallsDownloadRecordingRequest.d.ts +8 -0
  22. package/dist/cjs/api/resources/calls/client/requests/CallsDownloadRecordingRequest.js +3 -0
  23. package/dist/cjs/api/resources/calls/client/requests/CallsListEventsRequest.d.ts +10 -0
  24. package/dist/cjs/api/resources/calls/client/requests/CallsListEventsRequest.js +3 -0
  25. package/dist/cjs/api/resources/calls/client/requests/CallsListRequest.d.ts +17 -0
  26. package/dist/cjs/api/resources/calls/client/requests/CallsListRequest.js +3 -0
  27. package/dist/cjs/api/resources/calls/client/requests/CreateCallParams.d.ts +17 -0
  28. package/dist/cjs/api/resources/calls/client/requests/CreateCallParams.js +3 -0
  29. package/dist/cjs/api/resources/calls/client/requests/CreateStreamTokenParams.d.ts +12 -0
  30. package/dist/cjs/api/resources/calls/client/requests/CreateStreamTokenParams.js +3 -0
  31. package/dist/cjs/api/resources/calls/client/requests/UpdateCallParams.d.ts +12 -0
  32. package/dist/cjs/api/resources/calls/client/requests/UpdateCallParams.js +3 -0
  33. package/dist/cjs/api/resources/calls/client/requests/index.d.ts +6 -0
  34. package/dist/cjs/api/resources/calls/client/requests/index.js +2 -0
  35. package/dist/cjs/api/resources/calls/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/calls/index.js +17 -0
  37. package/dist/cjs/api/resources/forms/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/forms/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/index.d.ts +3 -0
  40. package/dist/cjs/api/resources/index.js +4 -1
  41. package/dist/cjs/api/resources/network/client/Client.d.ts +21 -0
  42. package/dist/cjs/api/resources/network/client/Client.js +30 -0
  43. package/dist/cjs/api/resources/network/client/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/network/client/index.js +2 -0
  45. package/dist/cjs/api/resources/network/index.d.ts +2 -0
  46. package/dist/cjs/api/resources/network/index.js +18 -0
  47. package/dist/cjs/api/resources/network/resources/index.d.ts +8 -0
  48. package/dist/cjs/api/resources/network/resources/index.js +47 -0
  49. package/dist/cjs/api/resources/network/resources/requests/client/Client.d.ts +61 -0
  50. package/dist/cjs/api/resources/network/resources/requests/client/Client.js +223 -0
  51. package/dist/cjs/api/resources/network/resources/requests/client/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/network/resources/requests/client/index.js +17 -0
  53. package/dist/cjs/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.d.ts +21 -0
  54. package/dist/cjs/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.js +3 -0
  55. package/dist/cjs/api/resources/network/resources/requests/client/requests/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/network/resources/requests/client/requests/index.js +2 -0
  57. package/dist/cjs/api/resources/network/resources/requests/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/network/resources/requests/index.js +17 -0
  59. package/dist/cjs/api/resources/network/resources/silentAuth/client/Client.d.ts +71 -0
  60. package/dist/cjs/api/resources/network/resources/silentAuth/client/Client.js +234 -0
  61. package/dist/cjs/api/resources/network/resources/silentAuth/client/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/network/resources/silentAuth/client/index.js +17 -0
  63. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.d.ts +10 -0
  64. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.js +3 -0
  65. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.d.ts +34 -0
  66. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.js +3 -0
  67. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/index.d.ts +2 -0
  68. package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/index.js +2 -0
  69. package/dist/cjs/api/resources/network/resources/silentAuth/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/network/resources/silentAuth/index.js +17 -0
  71. package/dist/cjs/api/resources/network/resources/simSwap/client/Client.d.ts +37 -0
  72. package/dist/cjs/api/resources/network/resources/simSwap/client/Client.js +143 -0
  73. package/dist/cjs/api/resources/network/resources/simSwap/client/index.d.ts +1 -0
  74. package/dist/cjs/api/resources/network/resources/simSwap/client/index.js +17 -0
  75. package/dist/cjs/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.d.ts +13 -0
  76. package/dist/cjs/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.js +3 -0
  77. package/dist/cjs/api/resources/network/resources/simSwap/client/requests/index.d.ts +1 -0
  78. package/dist/cjs/api/resources/network/resources/simSwap/client/requests/index.js +2 -0
  79. package/dist/cjs/api/resources/network/resources/simSwap/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/network/resources/simSwap/index.js +17 -0
  81. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/Client.d.ts +47 -0
  82. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/Client.js +153 -0
  83. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/index.js +17 -0
  85. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.d.ts +22 -0
  86. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.js +3 -0
  87. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/index.d.ts +1 -0
  88. package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/index.js +2 -0
  89. package/dist/cjs/api/resources/network/resources/subscriberMatch/index.d.ts +1 -0
  90. package/dist/cjs/api/resources/network/resources/subscriberMatch/index.js +17 -0
  91. package/dist/cjs/api/resources/voiceStreams/index.d.ts +1 -0
  92. package/dist/cjs/api/resources/voiceStreams/index.js +17 -0
  93. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientFrame.d.ts +10 -0
  94. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientFrame.js +3 -0
  95. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMedia.d.ts +10 -0
  96. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMedia.js +3 -0
  97. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMediaFrame.d.ts +11 -0
  98. package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMediaFrame.js +10 -0
  99. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAckFrame.d.ts +22 -0
  100. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAckFrame.js +14 -0
  101. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAction.d.ts +15 -0
  102. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAction.js +18 -0
  103. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandFrame.d.ts +15 -0
  104. package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandFrame.js +10 -0
  105. package/dist/cjs/api/resources/voiceStreams/types/VoiceConnectedFrame.d.ts +11 -0
  106. package/dist/cjs/api/resources/voiceStreams/types/VoiceConnectedFrame.js +10 -0
  107. package/dist/cjs/api/resources/voiceStreams/types/VoiceEventFrame.d.ts +15 -0
  108. package/dist/cjs/api/resources/voiceStreams/types/VoiceEventFrame.js +10 -0
  109. package/dist/cjs/api/resources/voiceStreams/types/VoiceMediaTrack.d.ts +5 -0
  110. package/dist/cjs/api/resources/voiceStreams/types/VoiceMediaTrack.js +8 -0
  111. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerFrame.d.ts +16 -0
  112. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerFrame.js +3 -0
  113. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMedia.d.ts +10 -0
  114. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMedia.js +3 -0
  115. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMediaFrame.d.ts +13 -0
  116. package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMediaFrame.js +10 -0
  117. package/dist/cjs/api/resources/voiceStreams/types/index.d.ts +12 -0
  118. package/dist/cjs/api/resources/voiceStreams/types/index.js +28 -0
  119. package/dist/cjs/api/types/AgentSummary.d.ts +2 -2
  120. package/dist/cjs/api/types/Call.d.ts +16 -0
  121. package/dist/cjs/api/types/Call.js +3 -0
  122. package/dist/cjs/api/types/CallDirection.d.ts +11 -0
  123. package/dist/cjs/api/types/CallDirection.js +14 -0
  124. package/dist/cjs/api/types/CallEvent.d.ts +15 -0
  125. package/dist/cjs/api/types/CallEvent.js +3 -0
  126. package/dist/cjs/api/types/CallEventSource.d.ts +8 -0
  127. package/dist/cjs/api/types/CallEventSource.js +11 -0
  128. package/dist/cjs/api/types/CallMetadata.d.ts +4 -0
  129. package/dist/cjs/api/types/CallMetadata.js +3 -0
  130. package/dist/cjs/api/types/CallState.d.ts +25 -0
  131. package/dist/cjs/api/types/CallState.js +28 -0
  132. package/dist/cjs/api/types/CallStatusEvent.d.ts +41 -0
  133. package/dist/cjs/api/types/CallStatusEvent.js +3 -0
  134. package/dist/cjs/api/types/CallStreamToken.d.ts +7 -0
  135. package/dist/cjs/api/types/CallStreamToken.js +3 -0
  136. package/dist/cjs/api/types/CreatedCall.d.ts +18 -0
  137. package/dist/cjs/api/types/CreatedCall.js +3 -0
  138. package/dist/cjs/api/types/E164PhoneNumber.d.ts +4 -0
  139. package/dist/cjs/api/types/E164PhoneNumber.js +3 -0
  140. package/dist/cjs/api/types/HostedSilentAuthResponse.d.ts +8 -0
  141. package/dist/cjs/api/types/HostedSilentAuthResponse.js +3 -0
  142. package/dist/cjs/api/types/JsonSilentAuthResponse.d.ts +8 -0
  143. package/dist/cjs/api/types/JsonSilentAuthResponse.js +3 -0
  144. package/dist/cjs/api/types/ListCallEventsResponse.d.ts +5 -0
  145. package/dist/cjs/api/types/ListCallEventsResponse.js +3 -0
  146. package/dist/cjs/api/types/ListCallsResponse.d.ts +5 -0
  147. package/dist/cjs/api/types/ListCallsResponse.js +3 -0
  148. package/dist/cjs/api/types/ListNetworkRequestsResponse.d.ts +8 -0
  149. package/dist/cjs/api/types/ListNetworkRequestsResponse.js +3 -0
  150. package/dist/cjs/api/types/NetworkInsightStatus.d.ts +8 -0
  151. package/dist/cjs/api/types/NetworkInsightStatus.js +11 -0
  152. package/dist/cjs/api/types/NetworkRequestId.d.ts +4 -0
  153. package/dist/cjs/api/types/NetworkRequestId.js +3 -0
  154. package/dist/cjs/api/types/NetworkRequestResult.d.ts +5 -0
  155. package/dist/cjs/api/types/NetworkRequestResult.js +3 -0
  156. package/dist/cjs/api/types/NetworkRequestStatus.d.ts +9 -0
  157. package/dist/cjs/api/types/NetworkRequestStatus.js +12 -0
  158. package/dist/cjs/api/types/NetworkRequestSummary.d.ts +19 -0
  159. package/dist/cjs/api/types/NetworkRequestSummary.js +3 -0
  160. package/dist/cjs/api/types/NetworkRequestType.d.ts +7 -0
  161. package/dist/cjs/api/types/NetworkRequestType.js +10 -0
  162. package/dist/cjs/api/types/RecordingDownload.d.ts +5 -0
  163. package/dist/cjs/api/types/RecordingDownload.js +3 -0
  164. package/dist/cjs/api/types/RecordingState.d.ts +15 -0
  165. package/dist/cjs/api/types/RecordingState.js +18 -0
  166. package/dist/cjs/api/types/SilentAuthCheckResponse.d.ts +14 -0
  167. package/dist/cjs/api/types/SilentAuthCheckResponse.js +12 -0
  168. package/dist/cjs/api/types/SilentAuthResponse.d.ts +10 -0
  169. package/dist/cjs/api/types/SilentAuthResponse.js +3 -0
  170. package/dist/cjs/api/types/SimSwapResponse.d.ts +9 -0
  171. package/dist/cjs/api/types/SimSwapResponse.js +3 -0
  172. package/dist/cjs/api/types/SubscriberMatchAttributes.d.ts +27 -0
  173. package/dist/cjs/api/types/SubscriberMatchAttributes.js +3 -0
  174. package/dist/cjs/api/types/SubscriberMatchResponse.d.ts +46 -0
  175. package/dist/cjs/api/types/SubscriberMatchResponse.js +3 -0
  176. package/dist/cjs/api/types/SubscriberMatchResult.d.ts +12 -0
  177. package/dist/cjs/api/types/SubscriberMatchResult.js +15 -0
  178. package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -0
  179. package/dist/cjs/api/types/WebhookEventEnum.js +1 -0
  180. package/dist/cjs/api/types/index.d.ts +29 -0
  181. package/dist/cjs/api/types/index.js +29 -0
  182. package/dist/cjs/index.d.ts +6 -1
  183. package/dist/cjs/index.js +12 -3
  184. package/dist/cjs/version.d.ts +1 -1
  185. package/dist/cjs/version.js +1 -1
  186. package/dist/cjs/wrapper/PinnacleClient.d.ts +4 -1
  187. package/dist/cjs/wrapper/PinnacleClient.js +17 -6
  188. package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
  189. package/dist/cjs/wrapper/voice/Client.d.ts +34 -0
  190. package/dist/cjs/wrapper/voice/Client.js +147 -0
  191. package/dist/cjs/wrapper/voice/VoiceSocket.d.ts +98 -0
  192. package/dist/cjs/wrapper/voice/VoiceSocket.js +371 -0
  193. package/dist/cjs/wrapper/voice/types.d.ts +199 -0
  194. package/dist/cjs/wrapper/voice/types.js +35 -0
  195. package/dist/esm/Client.d.mts +6 -0
  196. package/dist/esm/Client.mjs +12 -2
  197. package/dist/esm/api/errors/BadGatewayError.d.mts +6 -0
  198. package/dist/esm/api/errors/BadGatewayError.mjs +13 -0
  199. package/dist/esm/api/errors/ConflictError.d.mts +6 -0
  200. package/dist/esm/api/errors/ConflictError.mjs +13 -0
  201. package/dist/esm/api/errors/GoneError.d.mts +6 -0
  202. package/dist/esm/api/errors/GoneError.mjs +13 -0
  203. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
  204. package/dist/esm/api/errors/ServiceUnavailableError.mjs +13 -0
  205. package/dist/esm/api/errors/TooEarlyError.d.mts +6 -0
  206. package/dist/esm/api/errors/TooEarlyError.mjs +13 -0
  207. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
  208. package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
  209. package/dist/esm/api/errors/index.d.mts +6 -0
  210. package/dist/esm/api/errors/index.mjs +6 -0
  211. package/dist/esm/api/resources/calls/client/Client.d.mts +181 -0
  212. package/dist/esm/api/resources/calls/client/Client.mjs +751 -0
  213. package/dist/esm/api/resources/calls/client/index.d.mts +1 -0
  214. package/dist/esm/api/resources/calls/client/index.mjs +1 -0
  215. package/dist/esm/api/resources/calls/client/requests/CallsDownloadRecordingRequest.d.mts +8 -0
  216. package/dist/esm/api/resources/calls/client/requests/CallsDownloadRecordingRequest.mjs +2 -0
  217. package/dist/esm/api/resources/calls/client/requests/CallsListEventsRequest.d.mts +10 -0
  218. package/dist/esm/api/resources/calls/client/requests/CallsListEventsRequest.mjs +2 -0
  219. package/dist/esm/api/resources/calls/client/requests/CallsListRequest.d.mts +17 -0
  220. package/dist/esm/api/resources/calls/client/requests/CallsListRequest.mjs +2 -0
  221. package/dist/esm/api/resources/calls/client/requests/CreateCallParams.d.mts +17 -0
  222. package/dist/esm/api/resources/calls/client/requests/CreateCallParams.mjs +2 -0
  223. package/dist/esm/api/resources/calls/client/requests/CreateStreamTokenParams.d.mts +12 -0
  224. package/dist/esm/api/resources/calls/client/requests/CreateStreamTokenParams.mjs +2 -0
  225. package/dist/esm/api/resources/calls/client/requests/UpdateCallParams.d.mts +12 -0
  226. package/dist/esm/api/resources/calls/client/requests/UpdateCallParams.mjs +2 -0
  227. package/dist/esm/api/resources/calls/client/requests/index.d.mts +6 -0
  228. package/dist/esm/api/resources/calls/client/requests/index.mjs +1 -0
  229. package/dist/esm/api/resources/calls/index.d.mts +1 -0
  230. package/dist/esm/api/resources/calls/index.mjs +1 -0
  231. package/dist/esm/api/resources/forms/client/Client.d.mts +1 -1
  232. package/dist/esm/api/resources/forms/client/Client.mjs +1 -1
  233. package/dist/esm/api/resources/index.d.mts +3 -0
  234. package/dist/esm/api/resources/index.mjs +3 -0
  235. package/dist/esm/api/resources/network/client/Client.d.mts +21 -0
  236. package/dist/esm/api/resources/network/client/Client.mjs +26 -0
  237. package/dist/esm/api/resources/network/client/index.d.mts +1 -0
  238. package/dist/esm/api/resources/network/client/index.mjs +1 -0
  239. package/dist/esm/api/resources/network/index.d.mts +2 -0
  240. package/dist/esm/api/resources/network/index.mjs +2 -0
  241. package/dist/esm/api/resources/network/resources/index.d.mts +8 -0
  242. package/dist/esm/api/resources/network/resources/index.mjs +8 -0
  243. package/dist/esm/api/resources/network/resources/requests/client/Client.d.mts +61 -0
  244. package/dist/esm/api/resources/network/resources/requests/client/Client.mjs +186 -0
  245. package/dist/esm/api/resources/network/resources/requests/client/index.d.mts +1 -0
  246. package/dist/esm/api/resources/network/resources/requests/client/index.mjs +1 -0
  247. package/dist/esm/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.d.mts +21 -0
  248. package/dist/esm/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.mjs +2 -0
  249. package/dist/esm/api/resources/network/resources/requests/client/requests/index.d.mts +1 -0
  250. package/dist/esm/api/resources/network/resources/requests/client/requests/index.mjs +1 -0
  251. package/dist/esm/api/resources/network/resources/requests/index.d.mts +1 -0
  252. package/dist/esm/api/resources/network/resources/requests/index.mjs +1 -0
  253. package/dist/esm/api/resources/network/resources/silentAuth/client/Client.d.mts +71 -0
  254. package/dist/esm/api/resources/network/resources/silentAuth/client/Client.mjs +197 -0
  255. package/dist/esm/api/resources/network/resources/silentAuth/client/index.d.mts +1 -0
  256. package/dist/esm/api/resources/network/resources/silentAuth/client/index.mjs +1 -0
  257. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.d.mts +10 -0
  258. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.mjs +2 -0
  259. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.d.mts +34 -0
  260. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.mjs +2 -0
  261. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/index.d.mts +2 -0
  262. package/dist/esm/api/resources/network/resources/silentAuth/client/requests/index.mjs +1 -0
  263. package/dist/esm/api/resources/network/resources/silentAuth/index.d.mts +1 -0
  264. package/dist/esm/api/resources/network/resources/silentAuth/index.mjs +1 -0
  265. package/dist/esm/api/resources/network/resources/simSwap/client/Client.d.mts +37 -0
  266. package/dist/esm/api/resources/network/resources/simSwap/client/Client.mjs +106 -0
  267. package/dist/esm/api/resources/network/resources/simSwap/client/index.d.mts +1 -0
  268. package/dist/esm/api/resources/network/resources/simSwap/client/index.mjs +1 -0
  269. package/dist/esm/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.d.mts +13 -0
  270. package/dist/esm/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.mjs +2 -0
  271. package/dist/esm/api/resources/network/resources/simSwap/client/requests/index.d.mts +1 -0
  272. package/dist/esm/api/resources/network/resources/simSwap/client/requests/index.mjs +1 -0
  273. package/dist/esm/api/resources/network/resources/simSwap/index.d.mts +1 -0
  274. package/dist/esm/api/resources/network/resources/simSwap/index.mjs +1 -0
  275. package/dist/esm/api/resources/network/resources/subscriberMatch/client/Client.d.mts +47 -0
  276. package/dist/esm/api/resources/network/resources/subscriberMatch/client/Client.mjs +116 -0
  277. package/dist/esm/api/resources/network/resources/subscriberMatch/client/index.d.mts +1 -0
  278. package/dist/esm/api/resources/network/resources/subscriberMatch/client/index.mjs +1 -0
  279. package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.d.mts +22 -0
  280. package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.mjs +2 -0
  281. package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/index.d.mts +1 -0
  282. package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/index.mjs +1 -0
  283. package/dist/esm/api/resources/network/resources/subscriberMatch/index.d.mts +1 -0
  284. package/dist/esm/api/resources/network/resources/subscriberMatch/index.mjs +1 -0
  285. package/dist/esm/api/resources/voiceStreams/index.d.mts +1 -0
  286. package/dist/esm/api/resources/voiceStreams/index.mjs +1 -0
  287. package/dist/esm/api/resources/voiceStreams/types/VoiceClientFrame.d.mts +10 -0
  288. package/dist/esm/api/resources/voiceStreams/types/VoiceClientFrame.mjs +2 -0
  289. package/dist/esm/api/resources/voiceStreams/types/VoiceClientMedia.d.mts +10 -0
  290. package/dist/esm/api/resources/voiceStreams/types/VoiceClientMedia.mjs +2 -0
  291. package/dist/esm/api/resources/voiceStreams/types/VoiceClientMediaFrame.d.mts +11 -0
  292. package/dist/esm/api/resources/voiceStreams/types/VoiceClientMediaFrame.mjs +7 -0
  293. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAckFrame.d.mts +22 -0
  294. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAckFrame.mjs +11 -0
  295. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAction.d.mts +15 -0
  296. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAction.mjs +15 -0
  297. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandFrame.d.mts +15 -0
  298. package/dist/esm/api/resources/voiceStreams/types/VoiceCommandFrame.mjs +7 -0
  299. package/dist/esm/api/resources/voiceStreams/types/VoiceConnectedFrame.d.mts +11 -0
  300. package/dist/esm/api/resources/voiceStreams/types/VoiceConnectedFrame.mjs +7 -0
  301. package/dist/esm/api/resources/voiceStreams/types/VoiceEventFrame.d.mts +15 -0
  302. package/dist/esm/api/resources/voiceStreams/types/VoiceEventFrame.mjs +7 -0
  303. package/dist/esm/api/resources/voiceStreams/types/VoiceMediaTrack.d.mts +5 -0
  304. package/dist/esm/api/resources/voiceStreams/types/VoiceMediaTrack.mjs +5 -0
  305. package/dist/esm/api/resources/voiceStreams/types/VoiceServerFrame.d.mts +16 -0
  306. package/dist/esm/api/resources/voiceStreams/types/VoiceServerFrame.mjs +2 -0
  307. package/dist/esm/api/resources/voiceStreams/types/VoiceServerMedia.d.mts +10 -0
  308. package/dist/esm/api/resources/voiceStreams/types/VoiceServerMedia.mjs +2 -0
  309. package/dist/esm/api/resources/voiceStreams/types/VoiceServerMediaFrame.d.mts +13 -0
  310. package/dist/esm/api/resources/voiceStreams/types/VoiceServerMediaFrame.mjs +7 -0
  311. package/dist/esm/api/resources/voiceStreams/types/index.d.mts +12 -0
  312. package/dist/esm/api/resources/voiceStreams/types/index.mjs +12 -0
  313. package/dist/esm/api/types/AgentSummary.d.mts +2 -2
  314. package/dist/esm/api/types/Call.d.mts +16 -0
  315. package/dist/esm/api/types/Call.mjs +2 -0
  316. package/dist/esm/api/types/CallDirection.d.mts +11 -0
  317. package/dist/esm/api/types/CallDirection.mjs +11 -0
  318. package/dist/esm/api/types/CallEvent.d.mts +15 -0
  319. package/dist/esm/api/types/CallEvent.mjs +2 -0
  320. package/dist/esm/api/types/CallEventSource.d.mts +8 -0
  321. package/dist/esm/api/types/CallEventSource.mjs +8 -0
  322. package/dist/esm/api/types/CallMetadata.d.mts +4 -0
  323. package/dist/esm/api/types/CallMetadata.mjs +2 -0
  324. package/dist/esm/api/types/CallState.d.mts +25 -0
  325. package/dist/esm/api/types/CallState.mjs +25 -0
  326. package/dist/esm/api/types/CallStatusEvent.d.mts +41 -0
  327. package/dist/esm/api/types/CallStatusEvent.mjs +2 -0
  328. package/dist/esm/api/types/CallStreamToken.d.mts +7 -0
  329. package/dist/esm/api/types/CallStreamToken.mjs +2 -0
  330. package/dist/esm/api/types/CreatedCall.d.mts +18 -0
  331. package/dist/esm/api/types/CreatedCall.mjs +2 -0
  332. package/dist/esm/api/types/E164PhoneNumber.d.mts +4 -0
  333. package/dist/esm/api/types/E164PhoneNumber.mjs +2 -0
  334. package/dist/esm/api/types/HostedSilentAuthResponse.d.mts +8 -0
  335. package/dist/esm/api/types/HostedSilentAuthResponse.mjs +2 -0
  336. package/dist/esm/api/types/JsonSilentAuthResponse.d.mts +8 -0
  337. package/dist/esm/api/types/JsonSilentAuthResponse.mjs +2 -0
  338. package/dist/esm/api/types/ListCallEventsResponse.d.mts +5 -0
  339. package/dist/esm/api/types/ListCallEventsResponse.mjs +2 -0
  340. package/dist/esm/api/types/ListCallsResponse.d.mts +5 -0
  341. package/dist/esm/api/types/ListCallsResponse.mjs +2 -0
  342. package/dist/esm/api/types/ListNetworkRequestsResponse.d.mts +8 -0
  343. package/dist/esm/api/types/ListNetworkRequestsResponse.mjs +2 -0
  344. package/dist/esm/api/types/NetworkInsightStatus.d.mts +8 -0
  345. package/dist/esm/api/types/NetworkInsightStatus.mjs +8 -0
  346. package/dist/esm/api/types/NetworkRequestId.d.mts +4 -0
  347. package/dist/esm/api/types/NetworkRequestId.mjs +2 -0
  348. package/dist/esm/api/types/NetworkRequestResult.d.mts +5 -0
  349. package/dist/esm/api/types/NetworkRequestResult.mjs +2 -0
  350. package/dist/esm/api/types/NetworkRequestStatus.d.mts +9 -0
  351. package/dist/esm/api/types/NetworkRequestStatus.mjs +9 -0
  352. package/dist/esm/api/types/NetworkRequestSummary.d.mts +19 -0
  353. package/dist/esm/api/types/NetworkRequestSummary.mjs +2 -0
  354. package/dist/esm/api/types/NetworkRequestType.d.mts +7 -0
  355. package/dist/esm/api/types/NetworkRequestType.mjs +7 -0
  356. package/dist/esm/api/types/RecordingDownload.d.mts +5 -0
  357. package/dist/esm/api/types/RecordingDownload.mjs +2 -0
  358. package/dist/esm/api/types/RecordingState.d.mts +15 -0
  359. package/dist/esm/api/types/RecordingState.mjs +15 -0
  360. package/dist/esm/api/types/SilentAuthCheckResponse.d.mts +14 -0
  361. package/dist/esm/api/types/SilentAuthCheckResponse.mjs +9 -0
  362. package/dist/esm/api/types/SilentAuthResponse.d.mts +10 -0
  363. package/dist/esm/api/types/SilentAuthResponse.mjs +2 -0
  364. package/dist/esm/api/types/SimSwapResponse.d.mts +9 -0
  365. package/dist/esm/api/types/SimSwapResponse.mjs +2 -0
  366. package/dist/esm/api/types/SubscriberMatchAttributes.d.mts +27 -0
  367. package/dist/esm/api/types/SubscriberMatchAttributes.mjs +2 -0
  368. package/dist/esm/api/types/SubscriberMatchResponse.d.mts +46 -0
  369. package/dist/esm/api/types/SubscriberMatchResponse.mjs +2 -0
  370. package/dist/esm/api/types/SubscriberMatchResult.d.mts +12 -0
  371. package/dist/esm/api/types/SubscriberMatchResult.mjs +12 -0
  372. package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -0
  373. package/dist/esm/api/types/WebhookEventEnum.mjs +1 -0
  374. package/dist/esm/api/types/index.d.mts +29 -0
  375. package/dist/esm/api/types/index.mjs +29 -0
  376. package/dist/esm/index.d.mts +6 -1
  377. package/dist/esm/index.mjs +4 -1
  378. package/dist/esm/version.d.mts +1 -1
  379. package/dist/esm/version.mjs +1 -1
  380. package/dist/esm/wrapper/PinnacleClient.d.mts +4 -1
  381. package/dist/esm/wrapper/PinnacleClient.mjs +16 -5
  382. package/dist/esm/wrapper/messages/Client.d.mts +1 -1
  383. package/dist/esm/wrapper/voice/Client.d.mts +34 -0
  384. package/dist/esm/wrapper/voice/Client.mjs +143 -0
  385. package/dist/esm/wrapper/voice/VoiceSocket.d.mts +98 -0
  386. package/dist/esm/wrapper/voice/VoiceSocket.mjs +366 -0
  387. package/dist/esm/wrapper/voice/types.d.mts +199 -0
  388. package/dist/esm/wrapper/voice/types.mjs +32 -0
  389. package/package.json +9 -8
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceClientMedia {
3
+ track: Pinnacle.voiceStreams.VoiceMediaTrack;
4
+ /** Base64-encoded 8 kHz, 8-bit mu-law audio. */
5
+ payload: string;
6
+ chunk?: number;
7
+ timestamp?: string;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceClientMediaFrame {
3
+ event: VoiceClientMediaFrame.Event;
4
+ media: Pinnacle.voiceStreams.VoiceClientMedia;
5
+ }
6
+ export declare namespace VoiceClientMediaFrame {
7
+ const Event: {
8
+ readonly Media: "media";
9
+ };
10
+ type Event = (typeof Event)[keyof typeof Event];
11
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceClientMediaFrame = void 0;
5
+ var VoiceClientMediaFrame;
6
+ (function (VoiceClientMediaFrame) {
7
+ VoiceClientMediaFrame.Event = {
8
+ Media: "media",
9
+ };
10
+ })(VoiceClientMediaFrame || (exports.VoiceClientMediaFrame = VoiceClientMediaFrame = {}));
@@ -0,0 +1,22 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceCommandAckFrame {
3
+ event: VoiceCommandAckFrame.Event;
4
+ command_id: string;
5
+ action?: Pinnacle.voiceStreams.VoiceCommandAction;
6
+ status: VoiceCommandAckFrame.Status;
7
+ error?: string;
8
+ sequence_number?: number;
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
11
+ }
12
+ export declare namespace VoiceCommandAckFrame {
13
+ const Event: {
14
+ readonly Ack: "ack";
15
+ };
16
+ type Event = (typeof Event)[keyof typeof Event];
17
+ const Status: {
18
+ readonly Ok: "ok";
19
+ readonly Error: "error";
20
+ };
21
+ type Status = (typeof Status)[keyof typeof Status];
22
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceCommandAckFrame = void 0;
5
+ var VoiceCommandAckFrame;
6
+ (function (VoiceCommandAckFrame) {
7
+ VoiceCommandAckFrame.Event = {
8
+ Ack: "ack",
9
+ };
10
+ VoiceCommandAckFrame.Status = {
11
+ Ok: "ok",
12
+ Error: "error",
13
+ };
14
+ })(VoiceCommandAckFrame || (exports.VoiceCommandAckFrame = VoiceCommandAckFrame = {}));
@@ -0,0 +1,15 @@
1
+ export declare const VoiceCommandAction: {
2
+ readonly CallAnswer: "call.answer";
3
+ readonly CallEnd: "call.end";
4
+ readonly CallTransfer: "call.transfer";
5
+ readonly RecordingStart: "recording.start";
6
+ readonly RecordingStop: "recording.stop";
7
+ readonly AudioPlay: "audio.play";
8
+ readonly AudioStop: "audio.stop";
9
+ readonly AudioReduceNoise: "audio.reduce_noise";
10
+ readonly InputGet: "input.get";
11
+ readonly InputCancel: "input.cancel";
12
+ readonly DtmfSend: "dtmf.send";
13
+ readonly CallUpdateState: "call.update_state";
14
+ };
15
+ export type VoiceCommandAction = (typeof VoiceCommandAction)[keyof typeof VoiceCommandAction];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceCommandAction = void 0;
5
+ exports.VoiceCommandAction = {
6
+ CallAnswer: "call.answer",
7
+ CallEnd: "call.end",
8
+ CallTransfer: "call.transfer",
9
+ RecordingStart: "recording.start",
10
+ RecordingStop: "recording.stop",
11
+ AudioPlay: "audio.play",
12
+ AudioStop: "audio.stop",
13
+ AudioReduceNoise: "audio.reduce_noise",
14
+ InputGet: "input.get",
15
+ InputCancel: "input.cancel",
16
+ DtmfSend: "dtmf.send",
17
+ CallUpdateState: "call.update_state",
18
+ };
@@ -0,0 +1,15 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceCommandFrame {
3
+ event: VoiceCommandFrame.Event;
4
+ command_id: string;
5
+ action: Pinnacle.voiceStreams.VoiceCommandAction;
6
+ params?: Record<string, unknown>;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
10
+ export declare namespace VoiceCommandFrame {
11
+ const Event: {
12
+ readonly Command: "command";
13
+ };
14
+ type Event = (typeof Event)[keyof typeof Event];
15
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceCommandFrame = void 0;
5
+ var VoiceCommandFrame;
6
+ (function (VoiceCommandFrame) {
7
+ VoiceCommandFrame.Event = {
8
+ Command: "command",
9
+ };
10
+ })(VoiceCommandFrame || (exports.VoiceCommandFrame = VoiceCommandFrame = {}));
@@ -0,0 +1,11 @@
1
+ export interface VoiceConnectedFrame {
2
+ event: VoiceConnectedFrame.Event;
3
+ stream_sid: string;
4
+ sequence_number?: number;
5
+ }
6
+ export declare namespace VoiceConnectedFrame {
7
+ const Event: {
8
+ readonly Connected: "connected";
9
+ };
10
+ type Event = (typeof Event)[keyof typeof Event];
11
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceConnectedFrame = void 0;
5
+ var VoiceConnectedFrame;
6
+ (function (VoiceConnectedFrame) {
7
+ VoiceConnectedFrame.Event = {
8
+ Connected: "connected",
9
+ };
10
+ })(VoiceConnectedFrame || (exports.VoiceConnectedFrame = VoiceConnectedFrame = {}));
@@ -0,0 +1,15 @@
1
+ export interface VoiceEventFrame {
2
+ event: VoiceEventFrame.Event;
3
+ type: string;
4
+ payload: Record<string, unknown>;
5
+ stream_sid?: string;
6
+ sequence_number?: number;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
10
+ export declare namespace VoiceEventFrame {
11
+ const Event: {
12
+ readonly Event: "event";
13
+ };
14
+ type Event = (typeof Event)[keyof typeof Event];
15
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceEventFrame = void 0;
5
+ var VoiceEventFrame;
6
+ (function (VoiceEventFrame) {
7
+ VoiceEventFrame.Event = {
8
+ Event: "event",
9
+ };
10
+ })(VoiceEventFrame || (exports.VoiceEventFrame = VoiceEventFrame = {}));
@@ -0,0 +1,5 @@
1
+ export declare const VoiceMediaTrack: {
2
+ readonly Inbound: "inbound";
3
+ readonly Outbound: "outbound";
4
+ };
5
+ export type VoiceMediaTrack = (typeof VoiceMediaTrack)[keyof typeof VoiceMediaTrack];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceMediaTrack = void 0;
5
+ exports.VoiceMediaTrack = {
6
+ Inbound: "inbound",
7
+ Outbound: "outbound",
8
+ };
@@ -0,0 +1,16 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export type VoiceServerFrame = Pinnacle.voiceStreams.VoiceServerFrame.Connected | Pinnacle.voiceStreams.VoiceServerFrame.Event | Pinnacle.voiceStreams.VoiceServerFrame.Media | Pinnacle.voiceStreams.VoiceServerFrame.Ack;
3
+ export declare namespace VoiceServerFrame {
4
+ interface Connected extends Pinnacle.voiceStreams.VoiceConnectedFrame {
5
+ event: "connected";
6
+ }
7
+ interface Event extends Pinnacle.voiceStreams.VoiceEventFrame {
8
+ event: "event";
9
+ }
10
+ interface Media extends Pinnacle.voiceStreams.VoiceServerMediaFrame {
11
+ event: "media";
12
+ }
13
+ interface Ack extends Pinnacle.voiceStreams.VoiceCommandAckFrame {
14
+ event: "ack";
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceServerMedia {
3
+ track: Pinnacle.voiceStreams.VoiceMediaTrack;
4
+ /** Base64-encoded 8 kHz, 8-bit mu-law audio. */
5
+ payload: string;
6
+ chunk?: number;
7
+ timestamp?: string;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Pinnacle from "../../../index.js";
2
+ export interface VoiceServerMediaFrame {
3
+ event: VoiceServerMediaFrame.Event;
4
+ media: Pinnacle.voiceStreams.VoiceServerMedia;
5
+ stream_sid?: string;
6
+ sequence_number?: number;
7
+ }
8
+ export declare namespace VoiceServerMediaFrame {
9
+ const Event: {
10
+ readonly Media: "media";
11
+ };
12
+ type Event = (typeof Event)[keyof typeof Event];
13
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceServerMediaFrame = void 0;
5
+ var VoiceServerMediaFrame;
6
+ (function (VoiceServerMediaFrame) {
7
+ VoiceServerMediaFrame.Event = {
8
+ Media: "media",
9
+ };
10
+ })(VoiceServerMediaFrame || (exports.VoiceServerMediaFrame = VoiceServerMediaFrame = {}));
@@ -0,0 +1,12 @@
1
+ export * from "./VoiceClientFrame.js";
2
+ export * from "./VoiceClientMedia.js";
3
+ export * from "./VoiceClientMediaFrame.js";
4
+ export * from "./VoiceCommandAckFrame.js";
5
+ export * from "./VoiceCommandAction.js";
6
+ export * from "./VoiceCommandFrame.js";
7
+ export * from "./VoiceConnectedFrame.js";
8
+ export * from "./VoiceEventFrame.js";
9
+ export * from "./VoiceMediaTrack.js";
10
+ export * from "./VoiceServerFrame.js";
11
+ export * from "./VoiceServerMedia.js";
12
+ export * from "./VoiceServerMediaFrame.js";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./VoiceClientFrame.js"), exports);
18
+ __exportStar(require("./VoiceClientMedia.js"), exports);
19
+ __exportStar(require("./VoiceClientMediaFrame.js"), exports);
20
+ __exportStar(require("./VoiceCommandAckFrame.js"), exports);
21
+ __exportStar(require("./VoiceCommandAction.js"), exports);
22
+ __exportStar(require("./VoiceCommandFrame.js"), exports);
23
+ __exportStar(require("./VoiceConnectedFrame.js"), exports);
24
+ __exportStar(require("./VoiceEventFrame.js"), exports);
25
+ __exportStar(require("./VoiceMediaTrack.js"), exports);
26
+ __exportStar(require("./VoiceServerFrame.js"), exports);
27
+ __exportStar(require("./VoiceServerMedia.js"), exports);
28
+ __exportStar(require("./VoiceServerMediaFrame.js"), exports);
@@ -9,7 +9,7 @@ export interface AgentSummary {
9
9
  * Raw per-carrier launch + verification state for the agent. Each
10
10
  * value is tri-state — `null` means "no launch requested" or "not
11
11
  * sent yet"; `false` means "pending" / "sent"; `true` means
12
- * "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get)
12
+ * "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get-agent)
13
13
  * endpoint for the resolved enum representation.
14
14
  */
15
15
  carrierLaunches?: AgentSummary.CarrierLaunches | null;
@@ -31,7 +31,7 @@ export declare namespace AgentSummary {
31
31
  * Raw per-carrier launch + verification state for the agent. Each
32
32
  * value is tri-state — `null` means "no launch requested" or "not
33
33
  * sent yet"; `false` means "pending" / "sent"; `true` means
34
- * "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get)
34
+ * "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get-agent)
35
35
  * endpoint for the resolved enum representation.
36
36
  */
37
37
  interface CarrierLaunches {
@@ -0,0 +1,16 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ export interface Call {
3
+ id: string;
4
+ state: Pinnacle.CallState;
5
+ direction: Pinnacle.CallDirection;
6
+ to: string;
7
+ from: string;
8
+ created_at: string;
9
+ started_at: string | null;
10
+ answered_at: string | null;
11
+ ended_at: string | null;
12
+ metadata: Record<string, string>;
13
+ /** If no recording has been captured or enabled for the call, then `null`. */
14
+ recording_state: Pinnacle.RecordingState | null;
15
+ hangup_cause: string | null;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Direction of the call relative to your Pinnacle team.
3
+ *
4
+ * - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers.
5
+ * - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers.
6
+ */
7
+ export declare const CallDirection: {
8
+ readonly Inbound: "INBOUND";
9
+ readonly Outbound: "OUTBOUND";
10
+ };
11
+ export type CallDirection = (typeof CallDirection)[keyof typeof CallDirection];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CallDirection = void 0;
5
+ /**
6
+ * Direction of the call relative to your Pinnacle team.
7
+ *
8
+ * - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers.
9
+ * - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers.
10
+ */
11
+ exports.CallDirection = {
12
+ Inbound: "INBOUND",
13
+ Outbound: "OUTBOUND",
14
+ };
@@ -0,0 +1,15 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ export interface CallEvent {
3
+ id: string;
4
+ call_session_id: string;
5
+ event_type: string;
6
+ source: Pinnacle.CallEventSource;
7
+ direction: Pinnacle.CallDirection | null;
8
+ command_id: string | null;
9
+ /** Provider delivery latency in milliseconds when available. */
10
+ latency_ms: number | null;
11
+ occurred_at: string;
12
+ received_at: string;
13
+ /** Provider-sanitized event payload. Provider call-control IDs are not exposed. */
14
+ payload: Record<string, unknown>;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /** Source that created the call timeline event. */
2
+ export declare const CallEventSource: {
3
+ readonly Webhook: "WEBHOOK";
4
+ readonly Rest: "REST";
5
+ readonly Ws: "WS";
6
+ readonly System: "SYSTEM";
7
+ };
8
+ export type CallEventSource = (typeof CallEventSource)[keyof typeof CallEventSource];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CallEventSource = void 0;
5
+ /** Source that created the call timeline event. */
6
+ exports.CallEventSource = {
7
+ Webhook: "WEBHOOK",
8
+ Rest: "REST",
9
+ Ws: "WS",
10
+ System: "SYSTEM",
11
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * String metadata carried on future call events. Maximum serialized size is 2 KB.
3
+ */
4
+ export type CallMetadata = Record<string, string>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Current voice call lifecycle state. This field is named `state` on Call objects and `status` on `CALL.STATUS` webhook payloads.
3
+ *
4
+ * - `INITIATED`: Pinnacle accepted the call request and is setting up the call with the voice provider.
5
+ * - `RINGING`: The call is ringing and has not been answered yet.
6
+ * - `ANSWERED`: The call has been answered and is active.
7
+ * - `BRIDGED`: The call is connected to another call leg, such as after a transfer or bridge command.
8
+ * - `ENDED`: The call ended normally.
9
+ * - `FAILED`: The call could not be established or could not continue because of a provider or system failure.
10
+ * - `NO_ANSWER`: The call rang until timeout without being answered.
11
+ * - `BUSY`: The destination was busy.
12
+ * - `CANCELED`: The call was canceled before normal completion.
13
+ */
14
+ export declare const CallState: {
15
+ readonly Initiated: "INITIATED";
16
+ readonly Ringing: "RINGING";
17
+ readonly Answered: "ANSWERED";
18
+ readonly Bridged: "BRIDGED";
19
+ readonly Ended: "ENDED";
20
+ readonly Failed: "FAILED";
21
+ readonly NoAnswer: "NO_ANSWER";
22
+ readonly Busy: "BUSY";
23
+ readonly Canceled: "CANCELED";
24
+ };
25
+ export type CallState = (typeof CallState)[keyof typeof CallState];
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CallState = void 0;
5
+ /**
6
+ * Current voice call lifecycle state. This field is named `state` on Call objects and `status` on `CALL.STATUS` webhook payloads.
7
+ *
8
+ * - `INITIATED`: Pinnacle accepted the call request and is setting up the call with the voice provider.
9
+ * - `RINGING`: The call is ringing and has not been answered yet.
10
+ * - `ANSWERED`: The call has been answered and is active.
11
+ * - `BRIDGED`: The call is connected to another call leg, such as after a transfer or bridge command.
12
+ * - `ENDED`: The call ended normally.
13
+ * - `FAILED`: The call could not be established or could not continue because of a provider or system failure.
14
+ * - `NO_ANSWER`: The call rang until timeout without being answered.
15
+ * - `BUSY`: The destination was busy.
16
+ * - `CANCELED`: The call was canceled before normal completion.
17
+ */
18
+ exports.CallState = {
19
+ Initiated: "INITIATED",
20
+ Ringing: "RINGING",
21
+ Answered: "ANSWERED",
22
+ Bridged: "BRIDGED",
23
+ Ended: "ENDED",
24
+ Failed: "FAILED",
25
+ NoAnswer: "NO_ANSWER",
26
+ Busy: "BUSY",
27
+ Canceled: "CANCELED",
28
+ };
@@ -0,0 +1,41 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Voice call lifecycle update delivered to webhooks attached to a phone number.
4
+ */
5
+ export interface CallStatusEvent {
6
+ type: "CALL.STATUS";
7
+ /** Team-owned phone number that matched the webhook subscription. For inbound calls this is the `call.to` number; for outbound calls this is the `call.from` number. */
8
+ sender: string;
9
+ call: CallStatusEvent.Call;
10
+ }
11
+ export declare namespace CallStatusEvent {
12
+ interface Call {
13
+ /** Pinnacle call ID. */
14
+ id: string;
15
+ /** Caller phone number in E.164 format. */
16
+ from: string;
17
+ /** Callee phone number in E.164 format. */
18
+ to: string;
19
+ /**
20
+ * Direction of the call relative to your Pinnacle team.
21
+ *
22
+ * - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers.
23
+ * - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers.
24
+ */
25
+ direction: Pinnacle.CallDirection;
26
+ /**
27
+ * Current voice call lifecycle state. This uses the same values as the Call `state` field.
28
+ *
29
+ * - `INITIATED`: Pinnacle accepted the call request and is setting up the call with the voice provider.
30
+ * - `RINGING`: The call is ringing and has not been answered yet.
31
+ * - `ANSWERED`: The call has been answered and is active.
32
+ * - `BRIDGED`: The call is connected to another call leg, such as after a transfer or bridge command.
33
+ * - `ENDED`: The call ended normally.
34
+ * - `FAILED`: The call could not be established or could not continue because of a provider or system failure.
35
+ * - `NO_ANSWER`: The call rang until timeout without being answered.
36
+ * - `BUSY`: The destination was busy.
37
+ * - `CANCELED`: The call was canceled before normal completion.
38
+ */
39
+ status: Pinnacle.CallState;
40
+ }
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface CallStreamToken {
2
+ /** Short-lived stream token. */
3
+ token: string;
4
+ expires_at: string;
5
+ /** Pre-built WebSocket URL containing the token. */
6
+ stream_url: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ export interface CreatedCall {
3
+ id: string;
4
+ state: Pinnacle.CallState;
5
+ direction: Pinnacle.CallDirection;
6
+ to: string;
7
+ from: string;
8
+ created_at: string;
9
+ started_at: string | null;
10
+ answered_at: string | null;
11
+ ended_at: string | null;
12
+ metadata: Record<string, string>;
13
+ /** If no recording has been captured or enabled for the call, then `null`. */
14
+ recording_state: Pinnacle.RecordingState | null;
15
+ hangup_cause: string | null;
16
+ /** Echoes the requested create-time recording option. This field is only returned by `POST /calls`. */
17
+ record: boolean;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Phone number in E.164 format, including country code.
3
+ */
4
+ export type E164PhoneNumber = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ export interface HostedSilentAuthResponse {
3
+ requestId: Pinnacle.NetworkRequestId;
4
+ /** URL to open on the user's cellular device when Pinnacle should handle the browser/WebView flow. */
5
+ browserUrl: string;
6
+ /** Expiration timestamp for the initial Silent Auth device handoff. Silent Auth URLs expire 60 seconds after creation and should be opened immediately from the user's cellular device. */
7
+ expiresAt: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ export interface JsonSilentAuthResponse {
3
+ requestId: Pinnacle.NetworkRequestId;
4
+ /** URL to fetch from the user's cellular device with redirects enabled. The final response contains a verification code. */
5
+ jsonUrl: string;
6
+ /** Expiration timestamp for the initial Silent Auth device handoff. Silent Auth URLs expire 60 seconds after creation and should be fetched immediately from the user's cellular device. */
7
+ expiresAt: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });