ue-softphone-sdk 2.1.9 → 2.2.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 (390) hide show
  1. package/dist/{index.d.ts → types/index.d.ts} +3 -7
  2. package/dist/ue-softphone-sdk.js +1 -2
  3. package/package.json +6 -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 +23 -49
  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/lib/socket.io.esm.min.js +0 -7
  360. package/src/main.ts +0 -26
  361. package/src/new-index.ts +0 -2478
  362. package/src/platform/react/README.md +0 -1
  363. package/src/platform/web/index.ts +0 -4
  364. package/src/platform/web/modifiers/index.ts +0 -5
  365. package/src/platform/web/modifiers/modifiers.ts +0 -180
  366. package/src/platform/web/session-description-handler/api-extractor.json +0 -358
  367. package/src/platform/web/session-description-handler/index.ts +0 -14
  368. package/src/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
  369. package/src/platform/web/session-description-handler/media-stream-factory.ts +0 -10
  370. package/src/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
  371. package/src/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
  372. package/src/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
  373. package/src/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
  374. package/src/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
  375. package/src/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
  376. package/src/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
  377. package/src/platform/web/session-description-handler/session-description-handler.ts +0 -938
  378. package/src/platform/web/simple-user/api-extractor.json +0 -358
  379. package/src/platform/web/simple-user/index.ts +0 -7
  380. package/src/platform/web/simple-user/simple-user-delegate.ts +0 -82
  381. package/src/platform/web/simple-user/simple-user-options.ts +0 -102
  382. package/src/platform/web/simple-user/simple-user.ts +0 -1099
  383. package/src/platform/web/transport/api-extractor.json +0 -358
  384. package/src/platform/web/transport/index.ts +0 -6
  385. package/src/platform/web/transport/transport-options.ts +0 -34
  386. package/src/platform/web/transport/transport.ts +0 -742
  387. package/src/version.ts +0 -8
  388. package/src/webPhoneSdk.ts +0 -67
  389. package/src/webrtc.ts +0 -318
  390. /package/dist/{config.d.ts → types/config.d.ts} +0 -0
@@ -1,25 +0,0 @@
1
- /**
2
- * Options for {@link Invitation.reject}.
3
- * @public
4
- */
5
- export interface InvitationRejectOptions {
6
- /**
7
- * Body
8
- */
9
- body?: string | {
10
- body: string;
11
- contentType: string;
12
- };
13
- /**
14
- * Array of extra headers added to the response.
15
- */
16
- extraHeaders?: Array<string>;
17
- /**
18
- * Status code for response.
19
- */
20
- statusCode?: number;
21
- /**
22
- * Reason phrase for response.
23
- */
24
- reasonPhrase?: string;
25
- }
@@ -1,179 +0,0 @@
1
- import { IncomingInviteRequest, IncomingRequestMessage, Logger, NameAddrHeader } from "../core";
2
- import { InvitationAcceptOptions } from "./invitation-accept-options";
3
- import { InvitationProgressOptions } from "./invitation-progress-options";
4
- import { InvitationRejectOptions } from "./invitation-reject-options";
5
- import { Session } from "./session";
6
- import { UserAgent } from "./user-agent";
7
- /**
8
- * An invitation is an offer to establish a {@link Session} (incoming INVITE).
9
- * @public
10
- */
11
- export declare class Invitation extends Session {
12
- incomingInviteRequest: IncomingInviteRequest;
13
- /**
14
- * Logger.
15
- */
16
- protected logger: Logger;
17
- /** @internal */
18
- protected _id: string;
19
- /** True if dispose() has been called. */
20
- private disposed;
21
- /** INVITE will be rejected if not accepted within a certain period time. */
22
- private expiresTimer;
23
- /** True if this Session has been Terminated due to a CANCEL request. */
24
- private isCanceled;
25
- /** Are reliable provisional responses required or supported. */
26
- private rel100;
27
- /** The current RSeq header value. */
28
- private rseq;
29
- /** INVITE will be rejected if final response not sent in a certain period time. */
30
- private userNoAnswerTimer;
31
- /** True if waiting for a PRACK before sending a 200 Ok. */
32
- private waitingForPrack;
33
- /** A Promise providing a defer when waiting for a PRACK. */
34
- private waitingForPrackPromise;
35
- /** Function to resolve when PRACK arrives. */
36
- private waitingForPrackResolve;
37
- /** Function to reject when PRACK never arrives. */
38
- private waitingForPrackReject;
39
- /** @internal */
40
- constructor(userAgent: UserAgent, incomingInviteRequest: IncomingInviteRequest);
41
- /**
42
- * Destructor.
43
- */
44
- dispose(): Promise<void>;
45
- /**
46
- * If true, a first provisional response after the 100 Trying
47
- * will be sent automatically. This is false it the UAC required
48
- * reliable provisional responses (100rel in Require header) or
49
- * the user agent configuration has specified to not send an
50
- * initial response, otherwise it is true. The provisional is sent by
51
- * calling `progress()` without any options.
52
- */
53
- get autoSendAnInitialProvisionalResponse(): boolean;
54
- /**
55
- * Initial incoming INVITE request message body.
56
- */
57
- get body(): string | undefined;
58
- /**
59
- * The identity of the local user.
60
- */
61
- get localIdentity(): NameAddrHeader;
62
- /**
63
- * The identity of the remote user.
64
- */
65
- get remoteIdentity(): NameAddrHeader;
66
- /**
67
- * Initial incoming INVITE request message.
68
- */
69
- get request(): IncomingRequestMessage;
70
- /**
71
- * Accept the invitation.
72
- *
73
- * @remarks
74
- * Accept the incoming INVITE request to start a Session.
75
- * Replies to the INVITE request with a 200 Ok response.
76
- * Resolves once the response sent, otherwise rejects.
77
- *
78
- * This method may reject for a variety of reasons including
79
- * the receipt of a CANCEL request before `accept` is able
80
- * to construct a response.
81
- * @param options - Options bucket.
82
- */
83
- accept(options?: InvitationAcceptOptions): Promise<void>;
84
- /**
85
- * Indicate progress processing the invitation.
86
- *
87
- * @remarks
88
- * Report progress to the the caller.
89
- * Replies to the INVITE request with a 1xx provisional response.
90
- * Resolves once the response sent, otherwise rejects.
91
- * @param options - Options bucket.
92
- */
93
- progress(options?: InvitationProgressOptions): Promise<void>;
94
- /**
95
- * Reject the invitation.
96
- *
97
- * @remarks
98
- * Replies to the INVITE request with a 4xx, 5xx, or 6xx final response.
99
- * Resolves once the response sent, otherwise rejects.
100
- *
101
- * The expectation is that this method is used to reject an INVITE request.
102
- * That is indeed the case - a call to `progress` followed by `reject` is
103
- * a typical way to "decline" an incoming INVITE request. However it may
104
- * also be called after calling `accept` (but only before it completes)
105
- * which will reject the call and cause `accept` to reject.
106
- * @param options - Options bucket.
107
- */
108
- reject(options?: InvitationRejectOptions): Promise<void>;
109
- /**
110
- * Handle CANCEL request.
111
- *
112
- * @param message - CANCEL message.
113
- * @internal
114
- */
115
- _onCancel(message: IncomingRequestMessage): void;
116
- /**
117
- * Helper function to handle offer/answer in a PRACK.
118
- */
119
- private handlePrackOfferAnswer;
120
- /**
121
- * A handler for errors which occur while attempting to send 1xx and 2xx responses.
122
- * In all cases, an attempt is made to reject the request if it is still outstanding.
123
- * And while there are a variety of things which can go wrong and we log something here
124
- * for all errors, there are a handful of common exceptions we pay some extra attention to.
125
- * @param error - The error which occurred.
126
- */
127
- private handleResponseError;
128
- /**
129
- * Callback for when ACK for a 2xx response is never received.
130
- * @param session - Session the ACK never arrived for.
131
- */
132
- private onAckTimeout;
133
- /**
134
- * A version of `accept` which resolves a session when the 200 Ok response is sent.
135
- * @param options - Options bucket.
136
- */
137
- private sendAccept;
138
- /**
139
- * A version of `progress` which resolves when the provisional response is sent.
140
- * @param options - Options bucket.
141
- */
142
- private sendProgress;
143
- /**
144
- * A version of `progress` which resolves when the provisional response with sdp is sent.
145
- * @param options - Options bucket.
146
- */
147
- private sendProgressWithSDP;
148
- /**
149
- * A version of `progress` which resolves when the reliable provisional response is sent.
150
- * @param options - Options bucket.
151
- */
152
- private sendProgressReliable;
153
- /**
154
- * A version of `progress` which resolves when the reliable provisional response is acknowledged.
155
- * @param options - Options bucket.
156
- */
157
- private sendProgressReliableWaitForPrack;
158
- /**
159
- * A version of `progress` which resolves when a 100 Trying provisional response is sent.
160
- */
161
- private sendProgressTrying;
162
- /**
163
- * When attempting to accept the INVITE, an invitation waits
164
- * for any outstanding PRACK to arrive before sending the 200 Ok.
165
- * It will be waiting on this Promise to resolve which lets it know
166
- * the PRACK has arrived and it may proceed to send the 200 Ok.
167
- */
168
- private waitForArrivalOfPrack;
169
- /**
170
- * Here we are resolving the promise which in turn will cause
171
- * the accept to proceed (it may still fail for other reasons, but...).
172
- */
173
- private prackArrived;
174
- /**
175
- * Here we are rejecting the promise which in turn will cause
176
- * the accept to fail and the session to transition to "terminated".
177
- */
178
- private prackNeverArrived;
179
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Options for {@link Inviter.cancel}.
3
- * @public
4
- */
5
- export interface InviterCancelOptions {
6
- extraHeaders?: Array<string>;
7
- reasonPhrase?: string;
8
- statusCode?: number;
9
- }
@@ -1,28 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
- import { SessionDescriptionHandlerModifier, SessionDescriptionHandlerOptions } from "./session-description-handler";
3
- /**
4
- * Options for {@link Inviter.invite}.
5
- * @public
6
- */
7
- export interface InviterInviteOptions {
8
- /**
9
- * See `core` API.
10
- */
11
- requestDelegate?: OutgoingRequestDelegate;
12
- /**
13
- * See `core` API.
14
- */
15
- requestOptions?: RequestOptions;
16
- /**
17
- * Modifiers to pass to SessionDescriptionHandler during the initial INVITE transaction.
18
- */
19
- sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
20
- /**
21
- * Options to pass to SessionDescriptionHandler during the initial INVITE transaction.
22
- */
23
- sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
24
- /**
25
- * If true, send INVITE without SDP. Default is false.
26
- */
27
- withoutSdp?: boolean;
28
- }
@@ -1,43 +0,0 @@
1
- import { URI } from "../core";
2
- import { SessionDescriptionHandlerModifier } from "./session-description-handler";
3
- import { SessionDescriptionHandlerOptions } from "./session-description-handler";
4
- import { SessionOptions } from "./session-options";
5
- /**
6
- * Options for {@link Inviter} constructor.
7
- * @public
8
- */
9
- export interface InviterOptions extends SessionOptions {
10
- /** If true, an anonymous call. */
11
- anonymous?: boolean;
12
- /**
13
- * If true, the first answer to the local offer is immediately utilized for media.
14
- * Requires that the INVITE request MUST NOT fork.
15
- * Has no effect if `inviteWithoutSdp` is true.
16
- * Default is false.
17
- */
18
- earlyMedia?: boolean;
19
- /** Array of extra headers added to the INVITE. */
20
- extraHeaders?: Array<string>;
21
- /** If true, send INVITE without SDP. Default is false. */
22
- inviteWithoutSdp?: boolean;
23
- /** @deprecated TODO: provide alternative. */
24
- params?: {
25
- fromDisplayName?: string;
26
- fromTag?: string;
27
- fromUri?: string | URI;
28
- toDisplayName?: string;
29
- toUri?: string | URI;
30
- };
31
- /** @deprecated TODO: provide alternative. */
32
- renderbody?: string;
33
- /** @deprecated TODO: provide alternative. */
34
- rendertype?: string;
35
- /** Modifiers to pass to SessionDescriptionHandler during the initial INVITE transaction. */
36
- sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
37
- /** Options to pass to SessionDescriptionHandler during the initial INVITE transaction. */
38
- sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
39
- /** Modifiers to pass to SessionDescriptionHandler during re-INVITE transactions. */
40
- sessionDescriptionHandlerModifiersReInvite?: Array<SessionDescriptionHandlerModifier>;
41
- /** Options to pass to SessionDescriptionHandler during re-INVITE transactions. */
42
- sessionDescriptionHandlerOptionsReInvite?: SessionDescriptionHandlerOptions;
43
- }
@@ -1,236 +0,0 @@
1
- import { Logger, NameAddrHeader, OutgoingInviteRequest, OutgoingRequestMessage, URI } from "../core";
2
- import { InviterCancelOptions } from "./inviter-cancel-options";
3
- import { InviterInviteOptions } from "./inviter-invite-options";
4
- import { InviterOptions } from "./inviter-options";
5
- import { Session } from "./session";
6
- import { BodyAndContentType } from "./session-description-handler";
7
- import { UserAgent } from "./user-agent";
8
- /**
9
- * An inviter offers to establish a {@link Session} (outgoing INVITE).
10
- * @public
11
- */
12
- export declare class Inviter extends Session {
13
- /**
14
- * If this Inviter was created as a result of a REFER, the referred Session. Otherwise undefined.
15
- * @internal
16
- */
17
- _referred: Session | undefined;
18
- /**
19
- * Logger.
20
- */
21
- protected logger: Logger;
22
- /** @internal */
23
- protected _id: string;
24
- /** True if dispose() has been called. */
25
- private disposed;
26
- /** True if early media use is enabled. */
27
- private earlyMedia;
28
- /** The early media session. */
29
- private earlyMediaDialog;
30
- /** The early media session description handlers. */
31
- private earlyMediaSessionDescriptionHandlers;
32
- /** Our From tag. */
33
- private fromTag;
34
- /** True if cancel() was called. */
35
- private isCanceled;
36
- /** True if initial INVITE without SDP. */
37
- private inviteWithoutSdp;
38
- /** Initial INVITE request sent by core. Undefined until sent. */
39
- private outgoingInviteRequest;
40
- /** Initial INVITE message provided to core to send. */
41
- private outgoingRequestMessage;
42
- /**
43
- * Constructs a new instance of the `Inviter` class.
44
- * @param userAgent - User agent. See {@link UserAgent} for details.
45
- * @param targetURI - Request URI identifying the target of the message.
46
- * @param options - Options bucket. See {@link InviterOptions} for details.
47
- */
48
- constructor(userAgent: UserAgent, targetURI: URI, options?: InviterOptions);
49
- /**
50
- * Destructor.
51
- */
52
- dispose(): Promise<void>;
53
- /**
54
- * Initial outgoing INVITE request message body.
55
- */
56
- get body(): BodyAndContentType | undefined;
57
- /**
58
- * The identity of the local user.
59
- */
60
- get localIdentity(): NameAddrHeader;
61
- /**
62
- * The identity of the remote user.
63
- */
64
- get remoteIdentity(): NameAddrHeader;
65
- /**
66
- * Initial outgoing INVITE request message.
67
- */
68
- get request(): OutgoingRequestMessage;
69
- /**
70
- * Cancels the INVITE request.
71
- *
72
- * @remarks
73
- * Sends a CANCEL request.
74
- * Resolves once the response sent, otherwise rejects.
75
- *
76
- * After sending a CANCEL request the expectation is that a 487 final response
77
- * will be received for the INVITE. However a 200 final response to the INVITE
78
- * may nonetheless arrive (it's a race between the CANCEL reaching the UAS before
79
- * the UAS sends a 200) in which case an ACK & BYE will be sent. The net effect
80
- * is that this method will terminate the session regardless of the race.
81
- * @param options - Options bucket.
82
- */
83
- cancel(options?: InviterCancelOptions): Promise<void>;
84
- /**
85
- * Sends the INVITE request.
86
- *
87
- * @remarks
88
- * TLDR...
89
- * 1) Only one offer/answer exchange permitted during initial INVITE.
90
- * 2) No "early media" if the initial offer is in an INVITE (default behavior).
91
- * 3) If "early media" and the initial offer is in an INVITE, no INVITE forking.
92
- *
93
- * 1) Only one offer/answer exchange permitted during initial INVITE.
94
- *
95
- * Our implementation replaces the following bullet point...
96
- *
97
- * o After having sent or received an answer to the first offer, the
98
- * UAC MAY generate subsequent offers in requests based on rules
99
- * specified for that method, but only if it has received answers
100
- * to any previous offers, and has not sent any offers to which it
101
- * hasn't gotten an answer.
102
- * https://tools.ietf.org/html/rfc3261#section-13.2.1
103
- *
104
- * ...with...
105
- *
106
- * o After having sent or received an answer to the first offer, the
107
- * UAC MUST NOT generate subsequent offers in requests based on rules
108
- * specified for that method.
109
- *
110
- * ...which in combination with this bullet point...
111
- *
112
- * o Once the UAS has sent or received an answer to the initial
113
- * offer, it MUST NOT generate subsequent offers in any responses
114
- * to the initial INVITE. This means that a UAS based on this
115
- * specification alone can never generate subsequent offers until
116
- * completion of the initial transaction.
117
- * https://tools.ietf.org/html/rfc3261#section-13.2.1
118
- *
119
- * ...ensures that EXACTLY ONE offer/answer exchange will occur
120
- * during an initial out of dialog INVITE request made by our UAC.
121
- *
122
- *
123
- * 2) No "early media" if the initial offer is in an INVITE (default behavior).
124
- *
125
- * While our implementation adheres to the following bullet point...
126
- *
127
- * o If the initial offer is in an INVITE, the answer MUST be in a
128
- * reliable non-failure message from UAS back to UAC which is
129
- * correlated to that INVITE. For this specification, that is
130
- * only the final 2xx response to that INVITE. That same exact
131
- * answer MAY also be placed in any provisional responses sent
132
- * prior to the answer. The UAC MUST treat the first session
133
- * description it receives as the answer, and MUST ignore any
134
- * session descriptions in subsequent responses to the initial
135
- * INVITE.
136
- * https://tools.ietf.org/html/rfc3261#section-13.2.1
137
- *
138
- * We have made the following implementation decision with regard to early media...
139
- *
140
- * o If the initial offer is in the INVITE, the answer from the
141
- * UAS back to the UAC will establish a media session only
142
- * only after the final 2xx response to that INVITE is received.
143
- *
144
- * The reason for this decision is rooted in a restriction currently
145
- * inherent in WebRTC. Specifically, while a SIP INVITE request with an
146
- * initial offer may fork resulting in more than one provisional answer,
147
- * there is currently no easy/good way to to "fork" an offer generated
148
- * by a peer connection. In particular, a WebRTC offer currently may only
149
- * be matched with one answer and we have no good way to know which
150
- * "provisional answer" is going to be the "final answer". So we have
151
- * decided to punt and not create any "early media" sessions in this case.
152
- *
153
- * The upshot is that if you want "early media", you must not put the
154
- * initial offer in the INVITE. Instead, force the UAS to provide the
155
- * initial offer by sending an INVITE without an offer. In the WebRTC
156
- * case this allows us to create a unique peer connection with a unique
157
- * answer for every provisional offer with "early media" on all of them.
158
- *
159
- *
160
- * 3) If "early media" and the initial offer is in an INVITE, no INVITE forking.
161
- *
162
- * The default behavior may be altered and "early media" utilized if the
163
- * initial offer is in the an INVITE by setting the `earlyMedia` options.
164
- * However in that case the INVITE request MUST NOT fork. This allows for
165
- * "early media" in environments where the forking behavior of the SIP
166
- * servers being utilized is configured to disallow forking.
167
- */
168
- invite(options?: InviterInviteOptions): Promise<OutgoingInviteRequest>;
169
- /**
170
- * 13.2.1 Creating the Initial INVITE
171
- *
172
- * Since the initial INVITE represents a request outside of a dialog,
173
- * its construction follows the procedures of Section 8.1.1. Additional
174
- * processing is required for the specific case of INVITE.
175
- *
176
- * An Allow header field (Section 20.5) SHOULD be present in the INVITE.
177
- * It indicates what methods can be invoked within a dialog, on the UA
178
- * sending the INVITE, for the duration of the dialog. For example, a
179
- * UA capable of receiving INFO requests within a dialog [34] SHOULD
180
- * include an Allow header field listing the INFO method.
181
- *
182
- * A Supported header field (Section 20.37) SHOULD be present in the
183
- * INVITE. It enumerates all the extensions understood by the UAC.
184
- *
185
- * An Accept (Section 20.1) header field MAY be present in the INVITE.
186
- * It indicates which Content-Types are acceptable to the UA, in both
187
- * the response received by it, and in any subsequent requests sent to
188
- * it within dialogs established by the INVITE. The Accept header field
189
- * is especially useful for indicating support of various session
190
- * description formats.
191
- *
192
- * The UAC MAY add an Expires header field (Section 20.19) to limit the
193
- * validity of the invitation. If the time indicated in the Expires
194
- * header field is reached and no final answer for the INVITE has been
195
- * received, the UAC core SHOULD generate a CANCEL request for the
196
- * INVITE, as per Section 9.
197
- *
198
- * A UAC MAY also find it useful to add, among others, Subject (Section
199
- * 20.36), Organization (Section 20.25) and User-Agent (Section 20.41)
200
- * header fields. They all contain information related to the INVITE.
201
- *
202
- * The UAC MAY choose to add a message body to the INVITE. Section
203
- * 8.1.1.10 deals with how to construct the header fields -- Content-
204
- * Type among others -- needed to describe the message body.
205
- *
206
- * https://tools.ietf.org/html/rfc3261#section-13.2.1
207
- */
208
- private sendInvite;
209
- private disposeEarlyMedia;
210
- private notifyReferer;
211
- /**
212
- * Handle final response to initial INVITE.
213
- * @param inviteResponse - 2xx response.
214
- */
215
- private onAccept;
216
- /**
217
- * Handle provisional response to initial INVITE.
218
- * @param inviteResponse - 1xx response.
219
- */
220
- private onProgress;
221
- /**
222
- * Handle final response to initial INVITE.
223
- * @param inviteResponse - 3xx response.
224
- */
225
- private onRedirect;
226
- /**
227
- * Handle final response to initial INVITE.
228
- * @param inviteResponse - 4xx, 5xx, or 6xx response.
229
- */
230
- private onReject;
231
- /**
232
- * Handle final response to initial INVITE.
233
- * @param inviteResponse - 100 response.
234
- */
235
- private onTrying;
236
- }
@@ -1,16 +0,0 @@
1
- import { IncomingMessageRequest, IncomingRequestMessage, ResponseOptions } from "../core";
2
- /**
3
- * A received message (incoming MESSAGE).
4
- * @public
5
- */
6
- export declare class Message {
7
- private incomingMessageRequest;
8
- /** @internal */
9
- constructor(incomingMessageRequest: IncomingMessageRequest);
10
- /** Incoming MESSAGE request message. */
11
- get request(): IncomingRequestMessage;
12
- /** Accept the request. */
13
- accept(options?: ResponseOptions): Promise<void>;
14
- /** Reject the request. */
15
- reject(options?: ResponseOptions): Promise<void>;
16
- }
@@ -1,11 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
- /**
3
- * Options for {@link Messager.message}.
4
- * @public
5
- */
6
- export interface MessagerMessageOptions {
7
- /** See `core` API. */
8
- requestDelegate?: OutgoingRequestDelegate;
9
- /** See `core` API. */
10
- requestOptions?: RequestOptions;
11
- }
@@ -1,17 +0,0 @@
1
- import { URI } from "../core";
2
- /**
3
- * Options for {@link Messager} constructor.
4
- * @public
5
- */
6
- export interface MessagerOptions {
7
- /** Array of extra headers added to the MESSAGE. */
8
- extraHeaders?: Array<string>;
9
- /** @deprecated TODO: provide alternative. */
10
- params?: {
11
- fromDisplayName?: string;
12
- fromTag?: string;
13
- fromUri?: string | URI;
14
- toDisplayName?: string;
15
- toUri?: string | URI;
16
- };
17
- }
@@ -1,26 +0,0 @@
1
- import { URI } from "../core";
2
- import { MessagerMessageOptions } from "./messager-message-options";
3
- import { MessagerOptions } from "./messager-options";
4
- import { UserAgent } from "./user-agent";
5
- /**
6
- * A messager sends a {@link Message} (outgoing MESSAGE).
7
- * @public
8
- */
9
- export declare class Messager {
10
- private logger;
11
- private request;
12
- private userAgent;
13
- /**
14
- * Constructs a new instance of the `Messager` class.
15
- * @param userAgent - User agent. See {@link UserAgent} for details.
16
- * @param targetURI - Request URI identifying the target of the message.
17
- * @param content - Content for the body of the message.
18
- * @param contentType - Content type of the body of the message.
19
- * @param options - Options bucket. See {@link MessagerOptions} for details.
20
- */
21
- constructor(userAgent: UserAgent, targetURI: URI, content: string, contentType?: string, options?: MessagerOptions);
22
- /**
23
- * Send the message.
24
- */
25
- message(options?: MessagerMessageOptions): Promise<void>;
26
- }
@@ -1,16 +0,0 @@
1
- import { IncomingNotifyRequest, IncomingRequestMessage, ResponseOptions } from "../core";
2
- /**
3
- * A notification of an event (incoming NOTIFY).
4
- * @public
5
- */
6
- export declare class Notification {
7
- private incomingNotifyRequest;
8
- /** @internal */
9
- constructor(incomingNotifyRequest: IncomingNotifyRequest);
10
- /** Incoming NOTIFY request message. */
11
- get request(): IncomingRequestMessage;
12
- /** Accept the request. */
13
- accept(options?: ResponseOptions): Promise<void>;
14
- /** Reject the request. */
15
- reject(options?: ResponseOptions): Promise<void>;
16
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * TODO: This is currently just a placeholder.
3
- * Notifier is the peer of a Subscriber.
4
- * That is, a Notifier sends NOTIFY requests.
5
- * @internal
6
- */
7
- export declare class Notifier {
8
- }
@@ -1,33 +0,0 @@
1
- import { URI } from "../core";
2
- /**
3
- * Options for {@link Publisher} constructor.
4
- * @public
5
- */
6
- export interface PublisherOptions {
7
- /** @deprecated TODO: provide alternative. */
8
- body?: string;
9
- /** @deprecated TODO: provide alternative. */
10
- contentType?: string;
11
- /**
12
- * Expire value for the published event.
13
- * @defaultValue 3600
14
- */
15
- expires?: number;
16
- /**
17
- * Array of extra headers added to the PUBLISH request message.
18
- */
19
- extraHeaders?: Array<string>;
20
- /** @deprecated TODO: provide alternative. */
21
- params?: {
22
- fromDisplayName?: string;
23
- fromTag?: string;
24
- fromUri?: URI;
25
- toDisplayName?: string;
26
- toUri?: URI;
27
- };
28
- /**
29
- * If set true, UA will gracefully unpublish for the event on UA close.
30
- * @defaultValue true
31
- */
32
- unpublishOnClose?: boolean;
33
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Options for {@link Publisher.publish}.
3
- * @public
4
- */
5
- export interface PublisherPublishOptions {
6
- }