ue-softphone-sdk 2.2.4 → 2.2.6

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/{index.d.ts → types/index.d.ts} +3 -7
  2. package/dist/ue-softphone-sdk.js +7 -2
  3. package/package.json +5 -6
  4. package/{new-rollup.config.mjs → rollup-new.config.mjs} +1 -1
  5. package/rollup.config.js +14 -15
  6. package/src/index.ts +28 -53
  7. package/tsconfig.json +10 -26
  8. package/dist/api/bye.d.ts +0 -16
  9. package/dist/api/dtmf.d.ts +0 -15
  10. package/dist/api/emitter.d.ts +0 -88
  11. package/dist/api/exceptions/content-type-unsupported.d.ts +0 -8
  12. package/dist/api/exceptions/index.d.ts +0 -5
  13. package/dist/api/exceptions/request-pending.d.ts +0 -9
  14. package/dist/api/exceptions/session-description-handler.d.ts +0 -8
  15. package/dist/api/exceptions/session-terminated.d.ts +0 -8
  16. package/dist/api/exceptions/state-transition.d.ts +0 -8
  17. package/dist/api/index.d.ts +0 -58
  18. package/dist/api/info.d.ts +0 -16
  19. package/dist/api/invitation-accept-options.d.ts +0 -19
  20. package/dist/api/invitation-progress-options.d.ts +0 -38
  21. package/dist/api/invitation-reject-options.d.ts +0 -25
  22. package/dist/api/invitation.d.ts +0 -179
  23. package/dist/api/inviter-cancel-options.d.ts +0 -9
  24. package/dist/api/inviter-invite-options.d.ts +0 -28
  25. package/dist/api/inviter-options.d.ts +0 -43
  26. package/dist/api/inviter.d.ts +0 -236
  27. package/dist/api/message.d.ts +0 -16
  28. package/dist/api/messager-message-options.d.ts +0 -11
  29. package/dist/api/messager-options.d.ts +0 -17
  30. package/dist/api/messager.d.ts +0 -26
  31. package/dist/api/notification.d.ts +0 -16
  32. package/dist/api/notifier.d.ts +0 -8
  33. package/dist/api/publisher-options.d.ts +0 -33
  34. package/dist/api/publisher-publish-options.d.ts +0 -6
  35. package/dist/api/publisher-state.d.ts +0 -21
  36. package/dist/api/publisher-unpublish-options.d.ts +0 -6
  37. package/dist/api/publisher.d.ts +0 -65
  38. package/dist/api/referral.d.ts +0 -38
  39. package/dist/api/registerer-options.d.ts +0 -46
  40. package/dist/api/registerer-register-options.d.ts +0 -11
  41. package/dist/api/registerer-state.d.ts +0 -21
  42. package/dist/api/registerer-unregister-options.d.ts +0 -16
  43. package/dist/api/registerer.d.ts +0 -144
  44. package/dist/api/session-bye-options.d.ts +0 -11
  45. package/dist/api/session-delegate.d.ts +0 -73
  46. package/dist/api/session-description-handler-factory.d.ts +0 -15
  47. package/dist/api/session-description-handler.d.ts +0 -74
  48. package/dist/api/session-info-options.d.ts +0 -11
  49. package/dist/api/session-invite-options.d.ts +0 -28
  50. package/dist/api/session-message-options.d.ts +0 -11
  51. package/dist/api/session-options.d.ts +0 -8
  52. package/dist/api/session-refer-options.d.ts +0 -14
  53. package/dist/api/session-state.d.ts +0 -45
  54. package/dist/api/session.d.ts +0 -359
  55. package/dist/api/subscriber-options.d.ts +0 -11
  56. package/dist/api/subscriber-subscribe-options.d.ts +0 -6
  57. package/dist/api/subscriber.d.ts +0 -94
  58. package/dist/api/subscription-delegate.d.ts +0 -12
  59. package/dist/api/subscription-options.d.ts +0 -8
  60. package/dist/api/subscription-state.d.ts +0 -19
  61. package/dist/api/subscription-subscribe-options.d.ts +0 -6
  62. package/dist/api/subscription-unsubscribe-options.d.ts +0 -6
  63. package/dist/api/subscription.d.ts +0 -84
  64. package/dist/api/transport-state.d.ts +0 -37
  65. package/dist/api/transport.d.ts +0 -159
  66. package/dist/api/user-agent-delegate.d.ts +0 -84
  67. package/dist/api/user-agent-options.d.ts +0 -253
  68. package/dist/api/user-agent-state.d.ts +0 -14
  69. package/dist/api/user-agent.d.ts +0 -200
  70. package/dist/core/dialogs/dialog-state.d.ts +0 -34
  71. package/dist/core/dialogs/dialog.d.ts +0 -161
  72. package/dist/core/dialogs/index.d.ts +0 -4
  73. package/dist/core/dialogs/session-dialog.d.ts +0 -196
  74. package/dist/core/dialogs/subscription-dialog.d.ts +0 -120
  75. package/dist/core/exceptions/exception.d.ts +0 -8
  76. package/dist/core/exceptions/index.d.ts +0 -3
  77. package/dist/core/exceptions/transaction-state-error.d.ts +0 -8
  78. package/dist/core/exceptions/transport-error.d.ts +0 -8
  79. package/dist/core/index.d.ts +0 -15
  80. package/dist/core/log/index.d.ts +0 -3
  81. package/dist/core/log/levels.d.ts +0 -10
  82. package/dist/core/log/logger-factory.d.ts +0 -21
  83. package/dist/core/log/logger.d.ts +0 -19
  84. package/dist/core/messages/body.d.ts +0 -64
  85. package/dist/core/messages/digest-authentication.d.ts +0 -51
  86. package/dist/core/messages/incoming-message.d.ts +0 -79
  87. package/dist/core/messages/incoming-request-message.d.ts +0 -10
  88. package/dist/core/messages/incoming-request.d.ts +0 -67
  89. package/dist/core/messages/incoming-response-message.d.ts +0 -10
  90. package/dist/core/messages/incoming-response.d.ts +0 -12
  91. package/dist/core/messages/index.d.ts +0 -13
  92. package/dist/core/messages/md5.d.ts +0 -32
  93. package/dist/core/messages/methods/ack.d.ts +0 -18
  94. package/dist/core/messages/methods/bye.d.ts +0 -21
  95. package/dist/core/messages/methods/cancel.d.ts +0 -21
  96. package/dist/core/messages/methods/constants.d.ts +0 -20
  97. package/dist/core/messages/methods/index.d.ts +0 -13
  98. package/dist/core/messages/methods/info.d.ts +0 -21
  99. package/dist/core/messages/methods/invite.d.ts +0 -86
  100. package/dist/core/messages/methods/message.d.ts +0 -21
  101. package/dist/core/messages/methods/notify.d.ts +0 -21
  102. package/dist/core/messages/methods/prack.d.ts +0 -21
  103. package/dist/core/messages/methods/publish.d.ts +0 -21
  104. package/dist/core/messages/methods/refer.d.ts +0 -21
  105. package/dist/core/messages/methods/register.d.ts +0 -21
  106. package/dist/core/messages/methods/subscribe.d.ts +0 -54
  107. package/dist/core/messages/outgoing-request-message.d.ts +0 -94
  108. package/dist/core/messages/outgoing-request.d.ts +0 -67
  109. package/dist/core/messages/outgoing-response.d.ts +0 -42
  110. package/dist/core/messages/parser.d.ts +0 -14
  111. package/dist/core/messages/utils.d.ts +0 -24
  112. package/dist/core/session/index.d.ts +0 -2
  113. package/dist/core/session/session-delegate.d.ts +0 -70
  114. package/dist/core/session/session.d.ts +0 -134
  115. package/dist/core/subscription/index.d.ts +0 -2
  116. package/dist/core/subscription/subscription-delegate.d.ts +0 -27
  117. package/dist/core/subscription/subscription.d.ts +0 -55
  118. package/dist/core/timers.d.ts +0 -20
  119. package/dist/core/transactions/client-transaction.d.ts +0 -45
  120. package/dist/core/transactions/index.d.ts +0 -10
  121. package/dist/core/transactions/invite-client-transaction.d.ts +0 -116
  122. package/dist/core/transactions/invite-server-transaction.d.ts +0 -127
  123. package/dist/core/transactions/non-invite-client-transaction.d.ts +0 -69
  124. package/dist/core/transactions/non-invite-server-transaction.d.ts +0 -57
  125. package/dist/core/transactions/server-transaction.d.ts +0 -35
  126. package/dist/core/transactions/transaction-state.d.ts +0 -13
  127. package/dist/core/transactions/transaction-user.d.ts +0 -72
  128. package/dist/core/transactions/transaction.d.ts +0 -79
  129. package/dist/core/transport.d.ts +0 -31
  130. package/dist/core/user-agent-core/allowed-methods.d.ts +0 -4
  131. package/dist/core/user-agent-core/index.d.ts +0 -3
  132. package/dist/core/user-agent-core/user-agent-core-configuration.d.ts +0 -99
  133. package/dist/core/user-agent-core/user-agent-core-delegate.d.ts +0 -37
  134. package/dist/core/user-agent-core/user-agent-core.d.ts +0 -179
  135. package/dist/core/user-agents/bye-user-agent-client.d.ts +0 -10
  136. package/dist/core/user-agents/bye-user-agent-server.d.ts +0 -10
  137. package/dist/core/user-agents/cancel-user-agent-client.d.ts +0 -10
  138. package/dist/core/user-agents/index.d.ts +0 -26
  139. package/dist/core/user-agents/info-user-agent-client.d.ts +0 -10
  140. package/dist/core/user-agents/info-user-agent-server.d.ts +0 -10
  141. package/dist/core/user-agents/invite-user-agent-client.d.ts +0 -35
  142. package/dist/core/user-agents/invite-user-agent-server.d.ts +0 -77
  143. package/dist/core/user-agents/message-user-agent-client.d.ts +0 -10
  144. package/dist/core/user-agents/message-user-agent-server.d.ts +0 -10
  145. package/dist/core/user-agents/notify-user-agent-client.d.ts +0 -10
  146. package/dist/core/user-agents/notify-user-agent-server.d.ts +0 -16
  147. package/dist/core/user-agents/prack-user-agent-client.d.ts +0 -10
  148. package/dist/core/user-agents/prack-user-agent-server.d.ts +0 -16
  149. package/dist/core/user-agents/publish-user-agent-client.d.ts +0 -10
  150. package/dist/core/user-agents/re-invite-user-agent-client.d.ts +0 -18
  151. package/dist/core/user-agents/re-invite-user-agent-server.d.ts +0 -41
  152. package/dist/core/user-agents/re-subscribe-user-agent-client.d.ts +0 -17
  153. package/dist/core/user-agents/re-subscribe-user-agent-server.d.ts +0 -10
  154. package/dist/core/user-agents/refer-user-agent-client.d.ts +0 -10
  155. package/dist/core/user-agents/refer-user-agent-server.d.ts +0 -16
  156. package/dist/core/user-agents/register-user-agent-client.d.ts +0 -10
  157. package/dist/core/user-agents/register-user-agent-server.d.ts +0 -11
  158. package/dist/core/user-agents/subscribe-user-agent-client.d.ts +0 -65
  159. package/dist/core/user-agents/subscribe-user-agent-server.d.ts +0 -11
  160. package/dist/core/user-agents/user-agent-client.d.ts +0 -103
  161. package/dist/core/user-agents/user-agent-server.d.ts +0 -79
  162. package/dist/grammar/grammar.d.ts +0 -26
  163. package/dist/grammar/index.d.ts +0 -4
  164. package/dist/grammar/name-addr-header.d.ts +0 -24
  165. package/dist/grammar/parameters.d.ts +0 -16
  166. package/dist/grammar/pegjs/dist/grammar.d.ts +0 -50
  167. package/dist/grammar/uri.d.ts +0 -62
  168. package/dist/main.d.ts +0 -9
  169. package/dist/new-index.d.ts +0 -199
  170. package/dist/platform/web/index.d.ts +0 -4
  171. package/dist/platform/web/modifiers/index.d.ts +0 -5
  172. package/dist/platform/web/modifiers/modifiers.d.ts +0 -41
  173. package/dist/platform/web/session-description-handler/index.d.ts +0 -14
  174. package/dist/platform/web/session-description-handler/media-stream-factory-default.d.ts +0 -6
  175. package/dist/platform/web/session-description-handler/media-stream-factory.d.ts +0 -6
  176. package/dist/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +0 -5
  177. package/dist/platform/web/session-description-handler/peer-connection-delegate.d.ts +0 -63
  178. package/dist/platform/web/session-description-handler/session-description-handler-configuration.d.ts +0 -16
  179. package/dist/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +0 -11
  180. package/dist/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +0 -9
  181. package/dist/platform/web/session-description-handler/session-description-handler-factory.d.ts +0 -16
  182. package/dist/platform/web/session-description-handler/session-description-handler-options.d.ts +0 -47
  183. package/dist/platform/web/session-description-handler/session-description-handler.d.ts +0 -212
  184. package/dist/platform/web/simple-user/index.d.ts +0 -7
  185. package/dist/platform/web/simple-user/simple-user-delegate.d.ts +0 -72
  186. package/dist/platform/web/simple-user/simple-user-options.d.ts +0 -90
  187. package/dist/platform/web/simple-user/simple-user.d.ts +0 -226
  188. package/dist/platform/web/transport/index.d.ts +0 -6
  189. package/dist/platform/web/transport/transport-options.d.ts +0 -30
  190. package/dist/platform/web/transport/transport.d.ts +0 -125
  191. package/dist/ue-softphone-sdk.js.map +0 -1
  192. package/dist/version.d.ts +0 -1
  193. package/dist/webPhoneSdk.d.ts +0 -24
  194. package/dist/webrtc.d.ts +0 -17
  195. package/src/api/api-extractor.json +0 -358
  196. package/src/api/bye.ts +0 -27
  197. package/src/api/dtmf.ts +0 -27
  198. package/src/api/emitter.ts +0 -110
  199. package/src/api/exceptions/content-type-unsupported.ts +0 -11
  200. package/src/api/exceptions/index.ts +0 -5
  201. package/src/api/exceptions/request-pending.ts +0 -12
  202. package/src/api/exceptions/session-description-handler.ts +0 -11
  203. package/src/api/exceptions/session-terminated.ts +0 -11
  204. package/src/api/exceptions/state-transition.ts +0 -11
  205. package/src/api/index.ts +0 -58
  206. package/src/api/info.ts +0 -27
  207. package/src/api/invitation-accept-options.ts +0 -20
  208. package/src/api/invitation-progress-options.ts +0 -36
  209. package/src/api/invitation-reject-options.ts +0 -22
  210. package/src/api/invitation.ts +0 -816
  211. package/src/api/inviter-cancel-options.ts +0 -9
  212. package/src/api/inviter-invite-options.ts +0 -29
  213. package/src/api/inviter-options.ts +0 -44
  214. package/src/api/inviter.ts +0 -1126
  215. package/src/api/message.ts +0 -27
  216. package/src/api/messager-message-options.ts +0 -12
  217. package/src/api/messager-options.ts +0 -18
  218. package/src/api/messager.ts +0 -89
  219. package/src/api/notification.ts +0 -27
  220. package/src/api/notifier.ts +0 -7
  221. package/src/api/publisher-options.ts +0 -34
  222. package/src/api/publisher-publish-options.ts +0 -6
  223. package/src/api/publisher-state.ts +0 -21
  224. package/src/api/publisher-unpublish-options.ts +0 -6
  225. package/src/api/publisher.ts +0 -418
  226. package/src/api/referral.ts +0 -89
  227. package/src/api/registerer-options.ts +0 -55
  228. package/src/api/registerer-register-options.ts +0 -12
  229. package/src/api/registerer-state.ts +0 -21
  230. package/src/api/registerer-unregister-options.ts +0 -17
  231. package/src/api/registerer.ts +0 -814
  232. package/src/api/session-bye-options.ts +0 -12
  233. package/src/api/session-delegate.ts +0 -80
  234. package/src/api/session-description-handler-factory.ts +0 -16
  235. package/src/api/session-description-handler.ts +0 -89
  236. package/src/api/session-info-options.ts +0 -12
  237. package/src/api/session-invite-options.ts +0 -29
  238. package/src/api/session-message-options.ts +0 -12
  239. package/src/api/session-options.ts +0 -8
  240. package/src/api/session-refer-options.ts +0 -15
  241. package/src/api/session-state.ts +0 -45
  242. package/src/api/session.ts +0 -1448
  243. package/src/api/subscriber-options.ts +0 -12
  244. package/src/api/subscriber-subscribe-options.ts +0 -6
  245. package/src/api/subscriber.ts +0 -536
  246. package/src/api/subscription-delegate.ts +0 -13
  247. package/src/api/subscription-options.ts +0 -8
  248. package/src/api/subscription-state.ts +0 -19
  249. package/src/api/subscription-subscribe-options.ts +0 -6
  250. package/src/api/subscription-unsubscribe-options.ts +0 -6
  251. package/src/api/subscription.ts +0 -161
  252. package/src/api/transport-state.ts +0 -37
  253. package/src/api/transport.ts +0 -169
  254. package/src/api/user-agent-delegate.ts +0 -95
  255. package/src/api/user-agent-options.ts +0 -322
  256. package/src/api/user-agent-state.ts +0 -14
  257. package/src/api/user-agent.ts +0 -1014
  258. package/src/core/api-extractor.json +0 -358
  259. package/src/core/dialogs/dialog-state.ts +0 -35
  260. package/src/core/dialogs/dialog.ts +0 -605
  261. package/src/core/dialogs/index.ts +0 -4
  262. package/src/core/dialogs/session-dialog.ts +0 -996
  263. package/src/core/dialogs/subscription-dialog.ts +0 -557
  264. package/src/core/exceptions/exception.ts +0 -11
  265. package/src/core/exceptions/index.ts +0 -3
  266. package/src/core/exceptions/transaction-state-error.ts +0 -11
  267. package/src/core/exceptions/transport-error.ts +0 -11
  268. package/src/core/index.ts +0 -19
  269. package/src/core/log/index.ts +0 -3
  270. package/src/core/log/levels.ts +0 -10
  271. package/src/core/log/logger-factory.ts +0 -119
  272. package/src/core/log/logger.ts +0 -42
  273. package/src/core/messages/body.ts +0 -171
  274. package/src/core/messages/digest-authentication.ts +0 -190
  275. package/src/core/messages/incoming-message.ts +0 -152
  276. package/src/core/messages/incoming-request-message.ts +0 -14
  277. package/src/core/messages/incoming-request.ts +0 -75
  278. package/src/core/messages/incoming-response-message.ts +0 -14
  279. package/src/core/messages/incoming-response.ts +0 -13
  280. package/src/core/messages/index.ts +0 -18
  281. package/src/core/messages/md5.ts +0 -437
  282. package/src/core/messages/methods/ack.ts +0 -22
  283. package/src/core/messages/methods/bye.ts +0 -22
  284. package/src/core/messages/methods/cancel.ts +0 -22
  285. package/src/core/messages/methods/constants.ts +0 -21
  286. package/src/core/messages/methods/index.ts +0 -13
  287. package/src/core/messages/methods/info.ts +0 -22
  288. package/src/core/messages/methods/invite.ts +0 -104
  289. package/src/core/messages/methods/message.ts +0 -22
  290. package/src/core/messages/methods/notify.ts +0 -22
  291. package/src/core/messages/methods/prack.ts +0 -22
  292. package/src/core/messages/methods/publish.ts +0 -22
  293. package/src/core/messages/methods/refer.ts +0 -22
  294. package/src/core/messages/methods/register.ts +0 -22
  295. package/src/core/messages/methods/subscribe.ts +0 -59
  296. package/src/core/messages/outgoing-request-message.ts +0 -299
  297. package/src/core/messages/outgoing-request.ts +0 -77
  298. package/src/core/messages/outgoing-response.ts +0 -174
  299. package/src/core/messages/parser.ts +0 -265
  300. package/src/core/messages/utils.ts +0 -144
  301. package/src/core/session/index.ts +0 -2
  302. package/src/core/session/session-delegate.ts +0 -88
  303. package/src/core/session/session.ts +0 -158
  304. package/src/core/subscription/index.ts +0 -2
  305. package/src/core/subscription/subscription-delegate.ts +0 -30
  306. package/src/core/subscription/subscription.ts +0 -61
  307. package/src/core/timers.ts +0 -24
  308. package/src/core/transactions/client-transaction.ts +0 -78
  309. package/src/core/transactions/index.ts +0 -10
  310. package/src/core/transactions/invite-client-transaction.ts +0 -504
  311. package/src/core/transactions/invite-server-transaction.ts +0 -432
  312. package/src/core/transactions/non-invite-client-transaction.ts +0 -257
  313. package/src/core/transactions/non-invite-server-transaction.ts +0 -241
  314. package/src/core/transactions/server-transaction.ts +0 -47
  315. package/src/core/transactions/transaction-state.ts +0 -13
  316. package/src/core/transactions/transaction-user.ts +0 -82
  317. package/src/core/transactions/transaction.ts +0 -149
  318. package/src/core/transport.ts +0 -32
  319. package/src/core/user-agent-core/allowed-methods.ts +0 -19
  320. package/src/core/user-agent-core/index.ts +0 -3
  321. package/src/core/user-agent-core/user-agent-core-configuration.ts +0 -111
  322. package/src/core/user-agent-core/user-agent-core-delegate.ts +0 -50
  323. package/src/core/user-agent-core/user-agent-core.ts +0 -905
  324. package/src/core/user-agents/bye-user-agent-client.ts +0 -16
  325. package/src/core/user-agents/bye-user-agent-server.ts +0 -14
  326. package/src/core/user-agents/cancel-user-agent-client.ts +0 -14
  327. package/src/core/user-agents/index.ts +0 -26
  328. package/src/core/user-agents/info-user-agent-client.ts +0 -15
  329. package/src/core/user-agents/info-user-agent-server.ts +0 -14
  330. package/src/core/user-agents/invite-user-agent-client.ts +0 -405
  331. package/src/core/user-agents/invite-user-agent-server.ts +0 -269
  332. package/src/core/user-agents/message-user-agent-client.ts +0 -14
  333. package/src/core/user-agents/message-user-agent-server.ts +0 -14
  334. package/src/core/user-agents/notify-user-agent-client.ts +0 -15
  335. package/src/core/user-agents/notify-user-agent-server.ts +0 -30
  336. package/src/core/user-agents/prack-user-agent-client.ts +0 -16
  337. package/src/core/user-agents/prack-user-agent-server.ts +0 -37
  338. package/src/core/user-agents/publish-user-agent-client.ts +0 -14
  339. package/src/core/user-agents/re-invite-user-agent-client.ts +0 -127
  340. package/src/core/user-agents/re-invite-user-agent-server.ts +0 -109
  341. package/src/core/user-agents/re-subscribe-user-agent-client.ts +0 -78
  342. package/src/core/user-agents/re-subscribe-user-agent-server.ts +0 -14
  343. package/src/core/user-agents/refer-user-agent-client.ts +0 -15
  344. package/src/core/user-agents/refer-user-agent-server.ts +0 -30
  345. package/src/core/user-agents/register-user-agent-client.ts +0 -14
  346. package/src/core/user-agents/register-user-agent-server.ts +0 -14
  347. package/src/core/user-agents/subscribe-user-agent-client.ts +0 -341
  348. package/src/core/user-agents/subscribe-user-agent-server.ts +0 -14
  349. package/src/core/user-agents/user-agent-client.ts +0 -378
  350. package/src/core/user-agents/user-agent-server.ts +0 -276
  351. package/src/grammar/grammar.ts +0 -55
  352. package/src/grammar/index.ts +0 -4
  353. package/src/grammar/name-addr-header.ts +0 -58
  354. package/src/grammar/parameters.ts +0 -45
  355. package/src/grammar/pegjs/README.md +0 -9
  356. package/src/grammar/pegjs/dist/grammar.ts +0 -1557
  357. package/src/grammar/pegjs/src/grammar.pegjs +0 -1009
  358. package/src/grammar/uri.ts +0 -370
  359. package/src/main.ts +0 -26
  360. package/src/new-index.ts +0 -2478
  361. package/src/platform/react/README.md +0 -1
  362. package/src/platform/web/index.ts +0 -4
  363. package/src/platform/web/modifiers/index.ts +0 -5
  364. package/src/platform/web/modifiers/modifiers.ts +0 -180
  365. package/src/platform/web/session-description-handler/api-extractor.json +0 -358
  366. package/src/platform/web/session-description-handler/index.ts +0 -14
  367. package/src/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
  368. package/src/platform/web/session-description-handler/media-stream-factory.ts +0 -10
  369. package/src/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
  370. package/src/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
  371. package/src/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
  372. package/src/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
  373. package/src/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
  374. package/src/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
  375. package/src/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
  376. package/src/platform/web/session-description-handler/session-description-handler.ts +0 -938
  377. package/src/platform/web/simple-user/api-extractor.json +0 -358
  378. package/src/platform/web/simple-user/index.ts +0 -7
  379. package/src/platform/web/simple-user/simple-user-delegate.ts +0 -82
  380. package/src/platform/web/simple-user/simple-user-options.ts +0 -102
  381. package/src/platform/web/simple-user/simple-user.ts +0 -1099
  382. package/src/platform/web/transport/api-extractor.json +0 -358
  383. package/src/platform/web/transport/index.ts +0 -6
  384. package/src/platform/web/transport/transport-options.ts +0 -34
  385. package/src/platform/web/transport/transport.ts +0 -742
  386. package/src/version.ts +0 -8
  387. package/src/webPhoneSdk.ts +0 -67
  388. package/src/webrtc.ts +0 -318
  389. /package/dist/{config.d.ts → types/config.d.ts} +0 -0
@@ -1,37 +0,0 @@
1
- /**
2
- * {@link Transport} state.
3
- *
4
- * @remarks
5
- * The {@link Transport} behaves in a deterministic manner according to the following
6
- * Finite State Machine (FSM).
7
- * ```txt
8
- * ______________________________
9
- * | ____________ |
10
- * Transport v v | |
11
- * Constructed -> Disconnected -> Connecting -> Connected -> Disconnecting
12
- * ^ ^ |_____________________^ | |
13
- * | |_____________________________| |
14
- * |_____________________________________________|
15
- * ```
16
- * @public
17
- */
18
- export declare enum TransportState {
19
- /**
20
- * The `connect()` method was called.
21
- */
22
- Connecting = "Connecting",
23
- /**
24
- * The `connect()` method resolved.
25
- */
26
- Connected = "Connected",
27
- /**
28
- * The `disconnect()` method was called.
29
- */
30
- Disconnecting = "Disconnecting",
31
- /**
32
- * The `connect()` method was rejected, or
33
- * the `disconnect()` method completed, or
34
- * network connectivity was lost.
35
- */
36
- Disconnected = "Disconnected"
37
- }
@@ -1,159 +0,0 @@
1
- import { Transport as CoreTransport } from "../core";
2
- import { Emitter } from "./emitter";
3
- import { TransportState } from "./transport-state";
4
- /**
5
- * Transport layer interface expected by the `UserAgent`.
6
- *
7
- * @remarks
8
- * The transport behaves in a deterministic manner according to the
9
- * the state defined in {@link TransportState}.
10
- *
11
- * The "Connecting" state is ONLY entered in response to the user calling `connect()`.
12
- * The "Disconnecting" state is ONLY entered in response to the user calling `disconnect()`.
13
- * The `onConnect` callback is ALWAYS called upon transitioning to the "Connected" state.
14
- * The `onDisconnect` callback is ALWAYS called upon transitioning from the "Connected" state.
15
- *
16
- * Adherence to the state machine by the transport implementation is critical as the
17
- * UserAgent depends on this behavior. Furthermore it is critical that the transport
18
- * transition to the "Disconnected" state in all instances where network connectivity
19
- * is lost as the UserAgent, API, and application layer more generally depend on knowing
20
- * network was lost. For example, from a practical standpoint registrations and subscriptions are invalidated
21
- * when network is lost - particularly in the case of connection oriented transport
22
- * protocols such as a secure WebSocket transport.
23
- *
24
- * Proper handling the application level protocol recovery must be left to the application layer,
25
- * thus the transport MUST NOT attempt to "auto-recover" from or otherwise hide loss of network.
26
- * Note that callbacks and emitters such as `onConnect` and `onDisconnect` MUST NOT call methods
27
- * `connect()` and `direct()` synchronously (state change handlers must not loop back). They may
28
- * however do so asynchronously using a Promise resolution, `setTimeout`, or some other method.
29
- * For example...
30
- * ```ts
31
- * transport.onDisconnect = () => {
32
- * Promise.resolve().then(() => transport.connect());
33
- * }
34
- * ```
35
- * @public
36
- */
37
- export interface Transport extends CoreTransport {
38
- /**
39
- * Transport state.
40
- *
41
- * @remarks
42
- * The initial Transport state MUST be "disconnected" (after calling constructor).
43
- */
44
- readonly state: TransportState;
45
- /**
46
- * Transport state change emitter.
47
- */
48
- readonly stateChange: Emitter<TransportState>;
49
- /**
50
- * Callback on state transition to "Connected".
51
- *
52
- * @remarks
53
- * When the `UserAgent` is constructed, this property is set.
54
- * ```txt
55
- * - The `state` MUST be "Connected" when called.
56
- * ```
57
- */
58
- onConnect: (() => void) | undefined;
59
- /**
60
- * Callback on state transition from "Connected".
61
- *
62
- * @remarks
63
- * When the `UserAgent` is constructed, this property is set.
64
- * ```txt
65
- * - The `state` MUST NOT "Connected" when called.
66
- * - If prior `state` is "Connecting" or "Connected", `error` MUST be defined.
67
- * - If prior `state` is "Disconnecting", `error` MUST NOT be undefined.
68
- * ```
69
- * If the transition from "Connected" occurs because the transport
70
- * user requested it by calling `disconnect`, then `error` will be undefined.
71
- * Otherwise `error` will be defined to provide an indication that the
72
- * transport initiated the transition from "Connected" - for example,
73
- * perhaps network connectivity was lost.
74
- */
75
- onDisconnect: ((error?: Error) => void) | undefined;
76
- /**
77
- * Callback on receipt of a message.
78
- *
79
- * @remarks
80
- * When the `UserAgent` is constructed, this property is set.
81
- * The `state` MUST be "Connected" when this is called.
82
- */
83
- onMessage: ((message: string) => void) | undefined;
84
- /**
85
- * Connect to network.
86
- *
87
- * @remarks
88
- * ```txt
89
- * - If `state` is "Connecting", `state` MUST NOT transition before returning.
90
- * - If `state` is "Connected", `state` MUST NOT transition before returning.
91
- * - If `state` is "Disconnecting", `state` MUST transition to "Connecting" before returning.
92
- * - If `state` is "Disconnected" `state` MUST transition to "Connecting" before returning.
93
- * - The `state` MUST transition to "Connected" before resolving (assuming `state` is not already "Connected").
94
- * - The `state` MUST transition to "Disconnecting" or "Disconnected" before rejecting and MUST reject with an Error.
95
- * ```
96
- * Resolves when the transport connects. Rejects if transport fails to connect.
97
- * Rejects with {@link StateTransitionError} if a loop is detected.
98
- * In particular, callbacks and emitters MUST NOT call this method synchronously.
99
- */
100
- connect(): Promise<void>;
101
- /**
102
- * Disconnect from network.
103
- *
104
- * @remarks
105
- * ```txt
106
- * - If `state` is "Connecting", `state` MUST transition to "Disconnecting" before returning.
107
- * - If `state` is "Connected", `state` MUST transition to "Disconnecting" before returning.
108
- * - If `state` is "Disconnecting", `state` MUST NOT transition before returning.
109
- * - If `state` is "Disconnected", `state` MUST NOT transition before returning.
110
- * - The `state` MUST transition to "Disconnected" before resolving (assuming `state` is not already "Disconnected").
111
- * - The `state` MUST transition to "Connecting" or "Connected" before rejecting and MUST reject with an Error.
112
- * ```
113
- * Resolves when the transport disconnects. Rejects if transport fails to disconnect.
114
- * Rejects with {@link StateTransitionError} if a loop is detected.
115
- * In particular, callbacks and emitters MUST NOT call this method synchronously.
116
- */
117
- disconnect(): Promise<void>;
118
- /**
119
- * Dispose.
120
- *
121
- * @remarks
122
- * When the `UserAgent` is disposed or stopped, this method is called.
123
- * The `UserAgent` MUST NOT continue to utilize the instance after calling this method.
124
- */
125
- dispose(): Promise<void>;
126
- /**
127
- * Returns true if the `state` equals "Connected".
128
- *
129
- * @remarks
130
- * This is equivalent to `state === TransportState.Connected`.
131
- * It is convenient. A common paradigm is, for example...
132
- *
133
- * @example
134
- * ```ts
135
- * // Monitor transport connectivity
136
- * userAgent.transport.stateChange.addListener(() => {
137
- * if (userAgent.transport.isConnected()) {
138
- * // handle transport connect
139
- * } else {
140
- * // handle transport disconnect
141
- * }
142
- * });
143
- * ```
144
- */
145
- isConnected(): boolean;
146
- /**
147
- * Send a message.
148
- *
149
- * @remarks
150
- * ```txt
151
- * - If `state` is "Connecting", rejects with an Error.
152
- * - If `state` is "Connected", resolves when the message is sent otherwise rejects with an Error.
153
- * - If `state` is "Disconnecting", rejects with an Error.
154
- * - If `state` is "Disconnected", rejects with an Error.
155
- * ```
156
- * @param message - Message to send.
157
- */
158
- send(message: string): Promise<void>;
159
- }
@@ -1,84 +0,0 @@
1
- import { IncomingReferRequest, IncomingRegisterRequest, IncomingSubscribeRequest } from "../core";
2
- import { Invitation } from "./invitation";
3
- import { Message } from "./message";
4
- import { Notification } from "./notification";
5
- import { Referral } from "./referral";
6
- import { Subscription } from "./subscription";
7
- /**
8
- * Delegate for {@link UserAgent}.
9
- * @public
10
- */
11
- export interface UserAgentDelegate {
12
- /**
13
- * Called upon transport transitioning to connected state.
14
- */
15
- onConnect?(): void;
16
- /**
17
- * Called upon transport transitioning from connected state.
18
- * @param error - An error if disconnect triggered by transport. Otherwise undefined.
19
- */
20
- onDisconnect?(error?: Error): void;
21
- /**
22
- * Called upon receipt of an invitation.
23
- * @remarks
24
- * Handler for incoming out of dialog INVITE requests.
25
- * @param invitation - The invitation.
26
- */
27
- onInvite?(invitation: Invitation): void;
28
- /**
29
- * Called upon receipt of a message.
30
- * @remarks
31
- * Handler for incoming out of dialog MESSAGE requests.
32
- * @param message - The message.
33
- */
34
- onMessage?(message: Message): void;
35
- /**
36
- * Called upon receipt of a notification.
37
- * @remarks
38
- * Handler for incoming out of dialog NOTIFY requests.
39
- * @param notification - The notification.
40
- */
41
- onNotify?(notification: Notification): void;
42
- /**
43
- * @alpha
44
- * Called upon receipt of a referral.
45
- * @remarks
46
- * Handler for incoming out of dialog REFER requests.
47
- * @param referral - The referral.
48
- */
49
- onRefer?(referral: Referral): void;
50
- /**
51
- * @alpha
52
- * Called upon receipt of a registration.
53
- * @remarks
54
- * Handler for incoming out of dialog REGISTER requests.
55
- * @param registration - The registration.
56
- */
57
- onRegister?(registration: unknown): void;
58
- /**
59
- * @alpha
60
- * Called upon receipt of a subscription.
61
- * @remarks
62
- * Handler for incoming out of dialog SUBSCRIBE requests.
63
- * @param subscription - The subscription.
64
- */
65
- onSubscribe?(subscription: Subscription): void;
66
- /**
67
- * @internal
68
- * Called upon receipt of an out of dialog REFER. Used by test suite.
69
- * @param request - The request.
70
- */
71
- onReferRequest?(request: IncomingReferRequest): void;
72
- /**
73
- * @internal
74
- * Called upon receipt of a REGISTER request. Used by test suite.
75
- * @param request - The request.
76
- */
77
- onRegisterRequest?(request: IncomingRegisterRequest): void;
78
- /**
79
- * @internal
80
- * Called upon receipt of an out of dialog SUBSCRIBE request. Used by test suite.
81
- * @param request - The request.
82
- */
83
- onSubscribeRequest?(request: IncomingSubscribeRequest): void;
84
- }
@@ -1,253 +0,0 @@
1
- import { Logger, URI } from "../core";
2
- import { SessionDescriptionHandlerFactory } from "./session-description-handler-factory";
3
- import { Transport } from "./transport";
4
- import { UserAgentDelegate } from "./user-agent-delegate";
5
- /**
6
- * Log level.
7
- * @public
8
- */
9
- export type LogLevel = "debug" | "log" | "warn" | "error";
10
- /**
11
- * Log connector function.
12
- * @public
13
- */
14
- export type LogConnector = (level: LogLevel, category: string, label: string | undefined, content: string) => void;
15
- /**
16
- * SIP extension support level.
17
- * @public
18
- */
19
- export declare enum SIPExtension {
20
- Required = "Required",
21
- Supported = "Supported",
22
- Unsupported = "Unsupported"
23
- }
24
- /**
25
- * Options for {@link UserAgent} constructor.
26
- * @public
27
- */
28
- export interface UserAgentOptions {
29
- /**
30
- * If `true`, the user agent will accept out of dialog NOTIFY.
31
- * @remarks
32
- * RFC 6665 obsoletes the use of out of dialog NOTIFY from RFC 3265.
33
- * @defaultValue `false`
34
- */
35
- allowLegacyNotifications?: boolean;
36
- /**
37
- * Authorization ha1.
38
- * @defaultValue `""`
39
- */
40
- authorizationHa1?: string;
41
- /**
42
- * Authorization password.
43
- * @defaultValue `""`
44
- */
45
- authorizationPassword?: string;
46
- /**
47
- * Authorization username.
48
- * @defaultValue `""`
49
- */
50
- authorizationUsername?: string;
51
- /**
52
- * @deprecated
53
- * If `true`, the user agent calls the `start()` method in the constructor.
54
- * @defaultValue `false`
55
- * @remarks
56
- * The call to start() resolves when the user agent connects, so if this
57
- * option is set to `true` an alternative method of connection detection
58
- * must be used.
59
- */
60
- autoStart?: boolean;
61
- /**
62
- * If `true`, the user agent calls the `stop()` method on unload (if running in browser window).
63
- * @defaultValue `true`
64
- */
65
- autoStop?: boolean;
66
- /**
67
- * The user portion of user agent's contact URI.
68
- * @remarks
69
- * If not specifed a random string will be generated and utilized as the user portion of the contact URI.
70
- * @defaultValue `""`
71
- */
72
- contactName?: string;
73
- /**
74
- * The URI parameters of the user agent's contact URI.
75
- * @defaultValue `{ transport: "ws" }`
76
- */
77
- contactParams?: {
78
- [name: string]: string;
79
- };
80
- /**
81
- * Delegate for {@link UserAgent}.
82
- * @defaultValue `{}`
83
- */
84
- delegate?: UserAgentDelegate;
85
- /**
86
- * The display name associated with the user agent.
87
- * @remarks
88
- * Descriptive name to be shown to the called party when calling or sending IM messages
89
- * (the display name portion of the From header).
90
- * It must NOT be enclosed between double quotes even if the given name contains multi-byte symbols
91
- * (SIPjs will always enclose the `displayName` value between double quotes).
92
- * @defaultValue `""`
93
- */
94
- displayName?: string;
95
- /**
96
- * Force adding rport to Via header.
97
- * @defaultValue `false`
98
- */
99
- forceRport?: boolean;
100
- /**
101
- * Hack
102
- * @deprecated TBD
103
- */
104
- hackIpInContact?: boolean | string;
105
- /**
106
- * Hack
107
- * @deprecated TBD
108
- */
109
- hackAllowUnregisteredOptionTags?: boolean;
110
- /**
111
- * Hack
112
- * @deprecated TBD
113
- */
114
- hackViaTcp?: boolean;
115
- /**
116
- * Indicates whether log messages should be written to the browser console.
117
- * @defaultValue `true`
118
- */
119
- logBuiltinEnabled?: boolean;
120
- /**
121
- * If true, constructor logs the user agent configuration.
122
- * @defaultValue `true`
123
- */
124
- logConfiguration?: boolean;
125
- /**
126
- * A function which will be called every time a log is generated.
127
- * @defaultValue A noop
128
- */
129
- logConnector?: LogConnector;
130
- /**
131
- * Indicates the verbosity level of the log messages.
132
- * @defaultValue `"log"`
133
- */
134
- logLevel?: LogLevel;
135
- /**
136
- * Number of seconds after which an incoming call is rejected if not answered.
137
- * @defaultValue 60
138
- */
139
- noAnswerTimeout?: number;
140
- /**
141
- * Adds a Route header(s) to outgoing requests.
142
- * @defaultValue `[]`
143
- */
144
- preloadedRouteSet?: Array<string>;
145
- /**
146
- * @deprecated
147
- * Maximum number of times to attempt to reconnect when the transport connection drops.
148
- * @defaultValue 0
149
- */
150
- reconnectionAttempts?: number;
151
- /**
152
- * @deprecated
153
- * Seconds to wait between reconnection attempts when the transport connection drops.
154
- * @defaultValue 4
155
- */
156
- reconnectionDelay?: number;
157
- /**
158
- * If true, a first provisional response after the 100 Trying will be sent automatically if UAC does not
159
- * require reliable provisional responses.
160
- * @defaultValue `true`
161
- */
162
- sendInitialProvisionalResponse?: boolean;
163
- /**
164
- * A factory for generating `SessionDescriptionHandler` instances.
165
- * @remarks
166
- * The factory will be passed a `Session` object for the current session
167
- * and the `sessionDescriptionHandlerFactoryOptions` object.
168
- * @defaultValue `Web.SessionDescriptionHandler.defaultFactory`
169
- */
170
- sessionDescriptionHandlerFactory?: SessionDescriptionHandlerFactory;
171
- /**
172
- * Options to passed to `sessionDescriptionHandlerFactory`.
173
- * @remarks
174
- * See `Web.SessionDescriptionHandlerOptions` for details.
175
- * @defaultValue `{}`
176
- */
177
- sessionDescriptionHandlerFactoryOptions?: object;
178
- /**
179
- * Reliable provisional responses.
180
- * https://tools.ietf.org/html/rfc3262
181
- * @defaultValue `SIPExtension.Unsupported`
182
- */
183
- sipExtension100rel?: SIPExtension;
184
- /**
185
- * Replaces header.
186
- * https://tools.ietf.org/html/rfc3891
187
- * @defaultValue `SIPExtension.Unsupported`
188
- */
189
- sipExtensionReplaces?: SIPExtension;
190
- /**
191
- * Extra option tags to claim support for.
192
- * @remarks
193
- * Setting an extra option tag does not enable support for the associated extension
194
- * it simply adds the tag to the list of supported options.
195
- * See {@link UserAgentRegisteredOptionTags} for valid option tags.
196
- * @defaultValue `[]`
197
- */
198
- sipExtensionExtraSupported?: Array<string>;
199
- /**
200
- * An id uniquely identify this user agent instance.
201
- * @defaultValue
202
- * A random id generated by default.
203
- */
204
- sipjsId?: string;
205
- /**
206
- * A constructor function for the user agent's `Transport`.
207
- * @remarks
208
- * For more information about creating your own transport see `Transport`.
209
- * @defaultValue `WebSocketTransport`
210
- */
211
- transportConstructor?: new (logger: Logger, options: any) => Transport;
212
- /**
213
- * An options bucket object passed to `transportConstructor` when instantiated.
214
- * @remarks
215
- * See WebSocket Transport Configuration Parameters for the full list of options for the default transport.
216
- * @defaultValue `{}`
217
- */
218
- transportOptions?: unknown;
219
- /**
220
- * SIP Addresses-of-Record URI associated with the user agent.
221
- * @remarks
222
- * This is a SIP address given to you by your provider.
223
- * If the user agent registers, it is the address-of-record which the user agent registers a contact for.
224
- * An address-of-record represents an identity of the user, generally a long-term identity,
225
- * and it does not have a dependency on any device; users can move between devices or even
226
- * be associated with multiple devices at one time while retaining the same address-of-record.
227
- * A simple URI, generally of the form `sip:egdar@example.com`, is used for an address-of-record.
228
- * @defaultValue
229
- * By default, URI is set to `sip:anonymous.X@anonymous.invalid`, where X is a random token generated for each UA.
230
- */
231
- uri?: URI;
232
- /**
233
- * User agent string used in the UserAgent header.
234
- * @defaultValue
235
- * A reasonable value is utilized.
236
- */
237
- userAgentString?: string;
238
- /**
239
- * Hostname to use in Via header.
240
- * @defaultValue
241
- * A random hostname in the .invalid domain.
242
- */
243
- viaHost?: any;
244
- }
245
- /**
246
- * SIP Option Tags
247
- * @remarks
248
- * http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-4
249
- * @public
250
- */
251
- export declare const UserAgentRegisteredOptionTags: {
252
- [option: string]: boolean;
253
- };
@@ -1,14 +0,0 @@
1
- /**
2
- * {@link UserAgent} state.
3
- * @remarks
4
- * Valid state transitions:
5
- * ```
6
- * 1. "Started" --> "Stopped"
7
- * 2. "Stopped" --> "Started"
8
- * ```
9
- * @public
10
- */
11
- export declare enum UserAgentState {
12
- Started = "Started",
13
- Stopped = "Stopped"
14
- }