ue-softphone-sdk 2.2.5 → 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.
- package/dist/{index.d.ts → types/index.d.ts} +3 -7
- package/dist/ue-softphone-sdk.js +7 -2
- package/package.json +5 -6
- package/{new-rollup.config.mjs → rollup-new.config.mjs} +1 -1
- package/rollup.config.js +14 -15
- package/src/index.ts +28 -53
- package/tsconfig.json +10 -26
- package/dist/api/bye.d.ts +0 -16
- package/dist/api/dtmf.d.ts +0 -15
- package/dist/api/emitter.d.ts +0 -88
- package/dist/api/exceptions/content-type-unsupported.d.ts +0 -8
- package/dist/api/exceptions/index.d.ts +0 -5
- package/dist/api/exceptions/request-pending.d.ts +0 -9
- package/dist/api/exceptions/session-description-handler.d.ts +0 -8
- package/dist/api/exceptions/session-terminated.d.ts +0 -8
- package/dist/api/exceptions/state-transition.d.ts +0 -8
- package/dist/api/index.d.ts +0 -58
- package/dist/api/info.d.ts +0 -16
- package/dist/api/invitation-accept-options.d.ts +0 -19
- package/dist/api/invitation-progress-options.d.ts +0 -38
- package/dist/api/invitation-reject-options.d.ts +0 -25
- package/dist/api/invitation.d.ts +0 -179
- package/dist/api/inviter-cancel-options.d.ts +0 -9
- package/dist/api/inviter-invite-options.d.ts +0 -28
- package/dist/api/inviter-options.d.ts +0 -43
- package/dist/api/inviter.d.ts +0 -236
- package/dist/api/message.d.ts +0 -16
- package/dist/api/messager-message-options.d.ts +0 -11
- package/dist/api/messager-options.d.ts +0 -17
- package/dist/api/messager.d.ts +0 -26
- package/dist/api/notification.d.ts +0 -16
- package/dist/api/notifier.d.ts +0 -8
- package/dist/api/publisher-options.d.ts +0 -33
- package/dist/api/publisher-publish-options.d.ts +0 -6
- package/dist/api/publisher-state.d.ts +0 -21
- package/dist/api/publisher-unpublish-options.d.ts +0 -6
- package/dist/api/publisher.d.ts +0 -65
- package/dist/api/referral.d.ts +0 -38
- package/dist/api/registerer-options.d.ts +0 -46
- package/dist/api/registerer-register-options.d.ts +0 -11
- package/dist/api/registerer-state.d.ts +0 -21
- package/dist/api/registerer-unregister-options.d.ts +0 -16
- package/dist/api/registerer.d.ts +0 -144
- package/dist/api/session-bye-options.d.ts +0 -11
- package/dist/api/session-delegate.d.ts +0 -73
- package/dist/api/session-description-handler-factory.d.ts +0 -15
- package/dist/api/session-description-handler.d.ts +0 -74
- package/dist/api/session-info-options.d.ts +0 -11
- package/dist/api/session-invite-options.d.ts +0 -28
- package/dist/api/session-message-options.d.ts +0 -11
- package/dist/api/session-options.d.ts +0 -8
- package/dist/api/session-refer-options.d.ts +0 -14
- package/dist/api/session-state.d.ts +0 -45
- package/dist/api/session.d.ts +0 -359
- package/dist/api/subscriber-options.d.ts +0 -11
- package/dist/api/subscriber-subscribe-options.d.ts +0 -6
- package/dist/api/subscriber.d.ts +0 -94
- package/dist/api/subscription-delegate.d.ts +0 -12
- package/dist/api/subscription-options.d.ts +0 -8
- package/dist/api/subscription-state.d.ts +0 -19
- package/dist/api/subscription-subscribe-options.d.ts +0 -6
- package/dist/api/subscription-unsubscribe-options.d.ts +0 -6
- package/dist/api/subscription.d.ts +0 -84
- package/dist/api/transport-state.d.ts +0 -37
- package/dist/api/transport.d.ts +0 -159
- package/dist/api/user-agent-delegate.d.ts +0 -84
- package/dist/api/user-agent-options.d.ts +0 -253
- package/dist/api/user-agent-state.d.ts +0 -14
- package/dist/api/user-agent.d.ts +0 -200
- package/dist/core/dialogs/dialog-state.d.ts +0 -34
- package/dist/core/dialogs/dialog.d.ts +0 -161
- package/dist/core/dialogs/index.d.ts +0 -4
- package/dist/core/dialogs/session-dialog.d.ts +0 -196
- package/dist/core/dialogs/subscription-dialog.d.ts +0 -120
- package/dist/core/exceptions/exception.d.ts +0 -8
- package/dist/core/exceptions/index.d.ts +0 -3
- package/dist/core/exceptions/transaction-state-error.d.ts +0 -8
- package/dist/core/exceptions/transport-error.d.ts +0 -8
- package/dist/core/index.d.ts +0 -15
- package/dist/core/log/index.d.ts +0 -3
- package/dist/core/log/levels.d.ts +0 -10
- package/dist/core/log/logger-factory.d.ts +0 -21
- package/dist/core/log/logger.d.ts +0 -19
- package/dist/core/messages/body.d.ts +0 -64
- package/dist/core/messages/digest-authentication.d.ts +0 -51
- package/dist/core/messages/incoming-message.d.ts +0 -79
- package/dist/core/messages/incoming-request-message.d.ts +0 -10
- package/dist/core/messages/incoming-request.d.ts +0 -67
- package/dist/core/messages/incoming-response-message.d.ts +0 -10
- package/dist/core/messages/incoming-response.d.ts +0 -12
- package/dist/core/messages/index.d.ts +0 -13
- package/dist/core/messages/md5.d.ts +0 -32
- package/dist/core/messages/methods/ack.d.ts +0 -18
- package/dist/core/messages/methods/bye.d.ts +0 -21
- package/dist/core/messages/methods/cancel.d.ts +0 -21
- package/dist/core/messages/methods/constants.d.ts +0 -20
- package/dist/core/messages/methods/index.d.ts +0 -13
- package/dist/core/messages/methods/info.d.ts +0 -21
- package/dist/core/messages/methods/invite.d.ts +0 -86
- package/dist/core/messages/methods/message.d.ts +0 -21
- package/dist/core/messages/methods/notify.d.ts +0 -21
- package/dist/core/messages/methods/prack.d.ts +0 -21
- package/dist/core/messages/methods/publish.d.ts +0 -21
- package/dist/core/messages/methods/refer.d.ts +0 -21
- package/dist/core/messages/methods/register.d.ts +0 -21
- package/dist/core/messages/methods/subscribe.d.ts +0 -54
- package/dist/core/messages/outgoing-request-message.d.ts +0 -94
- package/dist/core/messages/outgoing-request.d.ts +0 -67
- package/dist/core/messages/outgoing-response.d.ts +0 -42
- package/dist/core/messages/parser.d.ts +0 -14
- package/dist/core/messages/utils.d.ts +0 -24
- package/dist/core/session/index.d.ts +0 -2
- package/dist/core/session/session-delegate.d.ts +0 -70
- package/dist/core/session/session.d.ts +0 -134
- package/dist/core/subscription/index.d.ts +0 -2
- package/dist/core/subscription/subscription-delegate.d.ts +0 -27
- package/dist/core/subscription/subscription.d.ts +0 -55
- package/dist/core/timers.d.ts +0 -20
- package/dist/core/transactions/client-transaction.d.ts +0 -45
- package/dist/core/transactions/index.d.ts +0 -10
- package/dist/core/transactions/invite-client-transaction.d.ts +0 -116
- package/dist/core/transactions/invite-server-transaction.d.ts +0 -127
- package/dist/core/transactions/non-invite-client-transaction.d.ts +0 -69
- package/dist/core/transactions/non-invite-server-transaction.d.ts +0 -57
- package/dist/core/transactions/server-transaction.d.ts +0 -35
- package/dist/core/transactions/transaction-state.d.ts +0 -13
- package/dist/core/transactions/transaction-user.d.ts +0 -72
- package/dist/core/transactions/transaction.d.ts +0 -79
- package/dist/core/transport.d.ts +0 -31
- package/dist/core/user-agent-core/allowed-methods.d.ts +0 -4
- package/dist/core/user-agent-core/index.d.ts +0 -3
- package/dist/core/user-agent-core/user-agent-core-configuration.d.ts +0 -99
- package/dist/core/user-agent-core/user-agent-core-delegate.d.ts +0 -37
- package/dist/core/user-agent-core/user-agent-core.d.ts +0 -179
- package/dist/core/user-agents/bye-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/bye-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/cancel-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/index.d.ts +0 -26
- package/dist/core/user-agents/info-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/info-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/invite-user-agent-client.d.ts +0 -35
- package/dist/core/user-agents/invite-user-agent-server.d.ts +0 -77
- package/dist/core/user-agents/message-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/message-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/notify-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/notify-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/prack-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/prack-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/publish-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/re-invite-user-agent-client.d.ts +0 -18
- package/dist/core/user-agents/re-invite-user-agent-server.d.ts +0 -41
- package/dist/core/user-agents/re-subscribe-user-agent-client.d.ts +0 -17
- package/dist/core/user-agents/re-subscribe-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/refer-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/refer-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/register-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/register-user-agent-server.d.ts +0 -11
- package/dist/core/user-agents/subscribe-user-agent-client.d.ts +0 -65
- package/dist/core/user-agents/subscribe-user-agent-server.d.ts +0 -11
- package/dist/core/user-agents/user-agent-client.d.ts +0 -103
- package/dist/core/user-agents/user-agent-server.d.ts +0 -79
- package/dist/grammar/grammar.d.ts +0 -26
- package/dist/grammar/index.d.ts +0 -4
- package/dist/grammar/name-addr-header.d.ts +0 -24
- package/dist/grammar/parameters.d.ts +0 -16
- package/dist/grammar/pegjs/dist/grammar.d.ts +0 -50
- package/dist/grammar/uri.d.ts +0 -62
- package/dist/main.d.ts +0 -9
- package/dist/new-index.d.ts +0 -199
- package/dist/platform/web/index.d.ts +0 -4
- package/dist/platform/web/modifiers/index.d.ts +0 -5
- package/dist/platform/web/modifiers/modifiers.d.ts +0 -41
- package/dist/platform/web/session-description-handler/index.d.ts +0 -14
- package/dist/platform/web/session-description-handler/media-stream-factory-default.d.ts +0 -6
- package/dist/platform/web/session-description-handler/media-stream-factory.d.ts +0 -6
- package/dist/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +0 -5
- package/dist/platform/web/session-description-handler/peer-connection-delegate.d.ts +0 -63
- package/dist/platform/web/session-description-handler/session-description-handler-configuration.d.ts +0 -16
- package/dist/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +0 -11
- package/dist/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +0 -9
- package/dist/platform/web/session-description-handler/session-description-handler-factory.d.ts +0 -16
- package/dist/platform/web/session-description-handler/session-description-handler-options.d.ts +0 -47
- package/dist/platform/web/session-description-handler/session-description-handler.d.ts +0 -212
- package/dist/platform/web/simple-user/index.d.ts +0 -7
- package/dist/platform/web/simple-user/simple-user-delegate.d.ts +0 -72
- package/dist/platform/web/simple-user/simple-user-options.d.ts +0 -90
- package/dist/platform/web/simple-user/simple-user.d.ts +0 -226
- package/dist/platform/web/transport/index.d.ts +0 -6
- package/dist/platform/web/transport/transport-options.d.ts +0 -30
- package/dist/platform/web/transport/transport.d.ts +0 -125
- package/dist/ue-softphone-sdk.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/webPhoneSdk.d.ts +0 -24
- package/dist/webrtc.d.ts +0 -17
- package/src/api/api-extractor.json +0 -358
- package/src/api/bye.ts +0 -27
- package/src/api/dtmf.ts +0 -27
- package/src/api/emitter.ts +0 -110
- package/src/api/exceptions/content-type-unsupported.ts +0 -11
- package/src/api/exceptions/index.ts +0 -5
- package/src/api/exceptions/request-pending.ts +0 -12
- package/src/api/exceptions/session-description-handler.ts +0 -11
- package/src/api/exceptions/session-terminated.ts +0 -11
- package/src/api/exceptions/state-transition.ts +0 -11
- package/src/api/index.ts +0 -58
- package/src/api/info.ts +0 -27
- package/src/api/invitation-accept-options.ts +0 -20
- package/src/api/invitation-progress-options.ts +0 -36
- package/src/api/invitation-reject-options.ts +0 -22
- package/src/api/invitation.ts +0 -816
- package/src/api/inviter-cancel-options.ts +0 -9
- package/src/api/inviter-invite-options.ts +0 -29
- package/src/api/inviter-options.ts +0 -44
- package/src/api/inviter.ts +0 -1126
- package/src/api/message.ts +0 -27
- package/src/api/messager-message-options.ts +0 -12
- package/src/api/messager-options.ts +0 -18
- package/src/api/messager.ts +0 -89
- package/src/api/notification.ts +0 -27
- package/src/api/notifier.ts +0 -7
- package/src/api/publisher-options.ts +0 -34
- package/src/api/publisher-publish-options.ts +0 -6
- package/src/api/publisher-state.ts +0 -21
- package/src/api/publisher-unpublish-options.ts +0 -6
- package/src/api/publisher.ts +0 -418
- package/src/api/referral.ts +0 -89
- package/src/api/registerer-options.ts +0 -55
- package/src/api/registerer-register-options.ts +0 -12
- package/src/api/registerer-state.ts +0 -21
- package/src/api/registerer-unregister-options.ts +0 -17
- package/src/api/registerer.ts +0 -814
- package/src/api/session-bye-options.ts +0 -12
- package/src/api/session-delegate.ts +0 -80
- package/src/api/session-description-handler-factory.ts +0 -16
- package/src/api/session-description-handler.ts +0 -89
- package/src/api/session-info-options.ts +0 -12
- package/src/api/session-invite-options.ts +0 -29
- package/src/api/session-message-options.ts +0 -12
- package/src/api/session-options.ts +0 -8
- package/src/api/session-refer-options.ts +0 -15
- package/src/api/session-state.ts +0 -45
- package/src/api/session.ts +0 -1448
- package/src/api/subscriber-options.ts +0 -12
- package/src/api/subscriber-subscribe-options.ts +0 -6
- package/src/api/subscriber.ts +0 -536
- package/src/api/subscription-delegate.ts +0 -13
- package/src/api/subscription-options.ts +0 -8
- package/src/api/subscription-state.ts +0 -19
- package/src/api/subscription-subscribe-options.ts +0 -6
- package/src/api/subscription-unsubscribe-options.ts +0 -6
- package/src/api/subscription.ts +0 -161
- package/src/api/transport-state.ts +0 -37
- package/src/api/transport.ts +0 -169
- package/src/api/user-agent-delegate.ts +0 -95
- package/src/api/user-agent-options.ts +0 -322
- package/src/api/user-agent-state.ts +0 -14
- package/src/api/user-agent.ts +0 -1014
- package/src/core/api-extractor.json +0 -358
- package/src/core/dialogs/dialog-state.ts +0 -35
- package/src/core/dialogs/dialog.ts +0 -605
- package/src/core/dialogs/index.ts +0 -4
- package/src/core/dialogs/session-dialog.ts +0 -996
- package/src/core/dialogs/subscription-dialog.ts +0 -557
- package/src/core/exceptions/exception.ts +0 -11
- package/src/core/exceptions/index.ts +0 -3
- package/src/core/exceptions/transaction-state-error.ts +0 -11
- package/src/core/exceptions/transport-error.ts +0 -11
- package/src/core/index.ts +0 -19
- package/src/core/log/index.ts +0 -3
- package/src/core/log/levels.ts +0 -10
- package/src/core/log/logger-factory.ts +0 -119
- package/src/core/log/logger.ts +0 -42
- package/src/core/messages/body.ts +0 -171
- package/src/core/messages/digest-authentication.ts +0 -190
- package/src/core/messages/incoming-message.ts +0 -152
- package/src/core/messages/incoming-request-message.ts +0 -14
- package/src/core/messages/incoming-request.ts +0 -75
- package/src/core/messages/incoming-response-message.ts +0 -14
- package/src/core/messages/incoming-response.ts +0 -13
- package/src/core/messages/index.ts +0 -18
- package/src/core/messages/md5.ts +0 -437
- package/src/core/messages/methods/ack.ts +0 -22
- package/src/core/messages/methods/bye.ts +0 -22
- package/src/core/messages/methods/cancel.ts +0 -22
- package/src/core/messages/methods/constants.ts +0 -21
- package/src/core/messages/methods/index.ts +0 -13
- package/src/core/messages/methods/info.ts +0 -22
- package/src/core/messages/methods/invite.ts +0 -104
- package/src/core/messages/methods/message.ts +0 -22
- package/src/core/messages/methods/notify.ts +0 -22
- package/src/core/messages/methods/prack.ts +0 -22
- package/src/core/messages/methods/publish.ts +0 -22
- package/src/core/messages/methods/refer.ts +0 -22
- package/src/core/messages/methods/register.ts +0 -22
- package/src/core/messages/methods/subscribe.ts +0 -59
- package/src/core/messages/outgoing-request-message.ts +0 -299
- package/src/core/messages/outgoing-request.ts +0 -77
- package/src/core/messages/outgoing-response.ts +0 -174
- package/src/core/messages/parser.ts +0 -265
- package/src/core/messages/utils.ts +0 -144
- package/src/core/session/index.ts +0 -2
- package/src/core/session/session-delegate.ts +0 -88
- package/src/core/session/session.ts +0 -158
- package/src/core/subscription/index.ts +0 -2
- package/src/core/subscription/subscription-delegate.ts +0 -30
- package/src/core/subscription/subscription.ts +0 -61
- package/src/core/timers.ts +0 -24
- package/src/core/transactions/client-transaction.ts +0 -78
- package/src/core/transactions/index.ts +0 -10
- package/src/core/transactions/invite-client-transaction.ts +0 -504
- package/src/core/transactions/invite-server-transaction.ts +0 -432
- package/src/core/transactions/non-invite-client-transaction.ts +0 -257
- package/src/core/transactions/non-invite-server-transaction.ts +0 -241
- package/src/core/transactions/server-transaction.ts +0 -47
- package/src/core/transactions/transaction-state.ts +0 -13
- package/src/core/transactions/transaction-user.ts +0 -82
- package/src/core/transactions/transaction.ts +0 -149
- package/src/core/transport.ts +0 -32
- package/src/core/user-agent-core/allowed-methods.ts +0 -19
- package/src/core/user-agent-core/index.ts +0 -3
- package/src/core/user-agent-core/user-agent-core-configuration.ts +0 -111
- package/src/core/user-agent-core/user-agent-core-delegate.ts +0 -50
- package/src/core/user-agent-core/user-agent-core.ts +0 -905
- package/src/core/user-agents/bye-user-agent-client.ts +0 -16
- package/src/core/user-agents/bye-user-agent-server.ts +0 -14
- package/src/core/user-agents/cancel-user-agent-client.ts +0 -14
- package/src/core/user-agents/index.ts +0 -26
- package/src/core/user-agents/info-user-agent-client.ts +0 -15
- package/src/core/user-agents/info-user-agent-server.ts +0 -14
- package/src/core/user-agents/invite-user-agent-client.ts +0 -405
- package/src/core/user-agents/invite-user-agent-server.ts +0 -269
- package/src/core/user-agents/message-user-agent-client.ts +0 -14
- package/src/core/user-agents/message-user-agent-server.ts +0 -14
- package/src/core/user-agents/notify-user-agent-client.ts +0 -15
- package/src/core/user-agents/notify-user-agent-server.ts +0 -30
- package/src/core/user-agents/prack-user-agent-client.ts +0 -16
- package/src/core/user-agents/prack-user-agent-server.ts +0 -37
- package/src/core/user-agents/publish-user-agent-client.ts +0 -14
- package/src/core/user-agents/re-invite-user-agent-client.ts +0 -127
- package/src/core/user-agents/re-invite-user-agent-server.ts +0 -109
- package/src/core/user-agents/re-subscribe-user-agent-client.ts +0 -78
- package/src/core/user-agents/re-subscribe-user-agent-server.ts +0 -14
- package/src/core/user-agents/refer-user-agent-client.ts +0 -15
- package/src/core/user-agents/refer-user-agent-server.ts +0 -30
- package/src/core/user-agents/register-user-agent-client.ts +0 -14
- package/src/core/user-agents/register-user-agent-server.ts +0 -14
- package/src/core/user-agents/subscribe-user-agent-client.ts +0 -341
- package/src/core/user-agents/subscribe-user-agent-server.ts +0 -14
- package/src/core/user-agents/user-agent-client.ts +0 -378
- package/src/core/user-agents/user-agent-server.ts +0 -276
- package/src/grammar/grammar.ts +0 -55
- package/src/grammar/index.ts +0 -4
- package/src/grammar/name-addr-header.ts +0 -58
- package/src/grammar/parameters.ts +0 -45
- package/src/grammar/pegjs/README.md +0 -9
- package/src/grammar/pegjs/dist/grammar.ts +0 -1557
- package/src/grammar/pegjs/src/grammar.pegjs +0 -1009
- package/src/grammar/uri.ts +0 -370
- package/src/main.ts +0 -26
- package/src/new-index.ts +0 -2486
- package/src/platform/react/README.md +0 -1
- package/src/platform/web/index.ts +0 -4
- package/src/platform/web/modifiers/index.ts +0 -5
- package/src/platform/web/modifiers/modifiers.ts +0 -180
- package/src/platform/web/session-description-handler/api-extractor.json +0 -358
- package/src/platform/web/session-description-handler/index.ts +0 -14
- package/src/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
- package/src/platform/web/session-description-handler/media-stream-factory.ts +0 -10
- package/src/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
- package/src/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
- package/src/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
- package/src/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
- package/src/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
- package/src/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
- package/src/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
- package/src/platform/web/session-description-handler/session-description-handler.ts +0 -938
- package/src/platform/web/simple-user/api-extractor.json +0 -358
- package/src/platform/web/simple-user/index.ts +0 -7
- package/src/platform/web/simple-user/simple-user-delegate.ts +0 -82
- package/src/platform/web/simple-user/simple-user-options.ts +0 -102
- package/src/platform/web/simple-user/simple-user.ts +0 -1099
- package/src/platform/web/transport/api-extractor.json +0 -358
- package/src/platform/web/transport/index.ts +0 -6
- package/src/platform/web/transport/transport-options.ts +0 -34
- package/src/platform/web/transport/transport.ts +0 -742
- package/src/version.ts +0 -8
- package/src/webPhoneSdk.ts +0 -67
- package/src/webrtc.ts +0 -318
- /package/dist/{config.d.ts → types/config.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ue-softphone-sdk",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "ue-softphone-sdk",
|
|
5
5
|
"main": "dist/ue-softphone-sdk.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
8
|
-
"build:js": "rollup -c new
|
|
9
|
+
"build:js": "rollup -c rollup-new.config.mjs",
|
|
9
10
|
"dev": "rollup -c -w --bundleConfigAsCjs"
|
|
10
11
|
},
|
|
11
12
|
"keywords": [],
|
|
12
13
|
"author": "useasy",
|
|
13
14
|
"license": "MIT",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"socket.io-client": "^4.6.1",
|
|
16
16
|
"js-base64": "^3.7.2",
|
|
17
17
|
"js-md5": "^0.7.3",
|
|
18
|
-
"jsencrypt": "^3.2.1"
|
|
18
|
+
"jsencrypt": "^3.2.1",
|
|
19
|
+
"ue-webrtc": "^1.0.2"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@babel/core": "^7.22.5",
|
|
@@ -23,8 +24,6 @@
|
|
|
23
24
|
"@rollup/plugin-babel": "^6.0.3",
|
|
24
25
|
"@types/node": "^20.3.3",
|
|
25
26
|
"rollup": "^3.26.0",
|
|
26
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
27
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
28
27
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
29
28
|
"@rollup/plugin-json": "^6.0.0",
|
|
30
29
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
package/rollup.config.js
CHANGED
|
@@ -3,32 +3,31 @@
|
|
|
3
3
|
* @Date: 2023-07-02 11:46:31
|
|
4
4
|
* @LastEditors: cuixuecheng
|
|
5
5
|
* @LastEditTime: 2023-07-02 12:24:46
|
|
6
|
-
* @Description:
|
|
6
|
+
* @Description:
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import babel from "@rollup/plugin-babel";
|
|
9
|
+
import terser from "@rollup/plugin-terser";
|
|
10
|
+
import typescript from "@rollup/plugin-typescript";
|
|
11
11
|
|
|
12
|
-
const extensions = [
|
|
12
|
+
const extensions = [".js", ".ts"];
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
input:
|
|
15
|
+
input: "src/index.ts",
|
|
16
16
|
output: {
|
|
17
|
-
file:
|
|
18
|
-
format:
|
|
19
|
-
name:
|
|
20
|
-
sourcemap: true
|
|
17
|
+
file: "dist/ue-softphone-sdk.js",
|
|
18
|
+
format: "es",
|
|
19
|
+
name: "ueSoftphone"
|
|
21
20
|
},
|
|
22
21
|
watch: {
|
|
23
|
-
include:
|
|
22
|
+
include: "src/**"
|
|
24
23
|
},
|
|
25
24
|
plugins: [
|
|
26
25
|
typescript(),
|
|
27
26
|
babel({
|
|
28
27
|
extensions,
|
|
29
|
-
babelHelpers:
|
|
30
|
-
exclude:
|
|
28
|
+
babelHelpers: "bundled",
|
|
29
|
+
exclude: "node_modules/**"
|
|
31
30
|
}),
|
|
32
|
-
terser()
|
|
33
|
-
]
|
|
31
|
+
terser()
|
|
32
|
+
]
|
|
34
33
|
};
|
package/src/index.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/**package.json 版本号 */
|
|
11
11
|
// @ts-ignore: Unreachable code error
|
|
12
12
|
// import { Parameters } from './grammar/parameters.js'
|
|
13
|
-
import io from "socket.io
|
|
14
|
-
import WebPhoneSdk from "./webPhoneSdk";
|
|
13
|
+
import io from "./lib/socket.io.esm.min.js";
|
|
15
14
|
import { AUDIO_FORBIDDEN, DENIED, NOT_OPEN_AUDIO } from "./config";
|
|
15
|
+
import { UeWebrtc } from "ue-webrtc";
|
|
16
16
|
|
|
17
17
|
import { Base64 } from "js-base64";
|
|
18
18
|
import md5 from "js-md5";
|
|
@@ -104,7 +104,7 @@ interface MuteOrUnMuteParams {
|
|
|
104
104
|
fail?: Function;
|
|
105
105
|
}
|
|
106
106
|
interface TransferParams {
|
|
107
|
-
|
|
107
|
+
type: String;
|
|
108
108
|
number: String;
|
|
109
109
|
agentNumber?: String;
|
|
110
110
|
success?: Function;
|
|
@@ -158,7 +158,6 @@ interface consultParams {
|
|
|
158
158
|
fail?: Function;
|
|
159
159
|
}
|
|
160
160
|
interface cancleConsultParams {
|
|
161
|
-
agentNumber: String;
|
|
162
161
|
success?: Function;
|
|
163
162
|
fail?: Function;
|
|
164
163
|
}
|
|
@@ -167,18 +166,15 @@ interface stopConsultParams {
|
|
|
167
166
|
fail?: Function;
|
|
168
167
|
}
|
|
169
168
|
interface resumeConsultParams {
|
|
170
|
-
agentNumber: String;
|
|
171
169
|
success?: Function;
|
|
172
170
|
fail?: Function;
|
|
173
171
|
}
|
|
174
172
|
interface consultTransferParams {
|
|
175
|
-
agentNumber: String;
|
|
176
173
|
success?: Function;
|
|
177
174
|
fail?: Function;
|
|
178
175
|
}
|
|
179
176
|
|
|
180
177
|
interface threeWayCallParams {
|
|
181
|
-
agentNumber: String;
|
|
182
178
|
success?: Function;
|
|
183
179
|
fail?: Function;
|
|
184
180
|
}
|
|
@@ -499,6 +495,7 @@ export default class ueSoftphone {
|
|
|
499
495
|
callbacks.error = typeof callbacks.error == "function" ? callbacks.error : ueSoftphone.noop;
|
|
500
496
|
callbacks.message =
|
|
501
497
|
typeof callbacks.message == "function" ? callbacks.message : ueSoftphone.noop;
|
|
498
|
+
callbacks.event = typeof callbacks.event == "function" ? callbacks.event : ueSoftphone.noop;
|
|
502
499
|
callbacks.server =
|
|
503
500
|
callbacks.serve === null || callbacks.serve === undefined
|
|
504
501
|
? "ws://152.136.72.209:3201/phoneBarGateway"
|
|
@@ -511,6 +508,7 @@ export default class ueSoftphone {
|
|
|
511
508
|
this.Socketinstance = ueSoftphone.newWebSocket(callbacks.server, callbacks.SocketOptions);
|
|
512
509
|
this.Socketinstance.on("connect", () => {
|
|
513
510
|
callbacks.success("connect event serve success!");
|
|
511
|
+
callbacks.suc();
|
|
514
512
|
// (ueSoftphone.initOptions.success as Function)({
|
|
515
513
|
// agentNumber: ueSoftphone.agentInfo.agentNumber,
|
|
516
514
|
// agentName: ueSoftphone.agentInfo.agentName,
|
|
@@ -548,11 +546,10 @@ export default class ueSoftphone {
|
|
|
548
546
|
if (event.subType === "KICK_OFF") {
|
|
549
547
|
this.Socketinstance.disconnect();
|
|
550
548
|
try {
|
|
551
|
-
|
|
549
|
+
ueSoftphone.webPhone.disconnect();
|
|
552
550
|
} catch (error) {}
|
|
553
|
-
callbacks.
|
|
554
|
-
|
|
555
|
-
error: "您的账号在其他网页登录"
|
|
551
|
+
callbacks.event({
|
|
552
|
+
message: "坐席账户在其他地方登录"
|
|
556
553
|
});
|
|
557
554
|
}
|
|
558
555
|
});
|
|
@@ -605,7 +602,7 @@ export default class ueSoftphone {
|
|
|
605
602
|
loginType: string,
|
|
606
603
|
options: any,
|
|
607
604
|
userOptions: any,
|
|
608
|
-
|
|
605
|
+
suc: any
|
|
609
606
|
) => {
|
|
610
607
|
if (this.attachEventCallbacks) {
|
|
611
608
|
// 每次创建链接的时候,要获取最新的ws token
|
|
@@ -641,7 +638,7 @@ export default class ueSoftphone {
|
|
|
641
638
|
transports: ["websocket"],
|
|
642
639
|
timeout: 5000
|
|
643
640
|
};
|
|
644
|
-
this.attachEventCallbacks.
|
|
641
|
+
this.attachEventCallbacks.suc = suc;
|
|
645
642
|
ueSoftphone.createEventHandle(this.attachEventCallbacks);
|
|
646
643
|
}
|
|
647
644
|
},
|
|
@@ -746,15 +743,18 @@ export default class ueSoftphone {
|
|
|
746
743
|
}
|
|
747
744
|
|
|
748
745
|
// webrtc事件回调
|
|
749
|
-
private static initWebrtcEvent = (extras: any) => {
|
|
750
|
-
ueSoftphone.webPhone = new
|
|
746
|
+
private static initWebrtcEvent = async (extras: any) => {
|
|
747
|
+
ueSoftphone.webPhone = new UeWebrtc({
|
|
751
748
|
server: extras.wssUrl,
|
|
752
749
|
sip: extras.sip,
|
|
753
750
|
secret: extras.password
|
|
754
751
|
});
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
752
|
+
|
|
753
|
+
// Connect to server
|
|
754
|
+
await this.webPhone.connect();
|
|
755
|
+
|
|
756
|
+
// Register to receive inbound calls
|
|
757
|
+
this.webPhone.register();
|
|
758
758
|
};
|
|
759
759
|
// 若是webrtc的模式,会检测权限,弹窗让客户授权
|
|
760
760
|
private openMediaAudio = (failMsg: string, hasAlert: boolean) => {
|
|
@@ -1118,10 +1118,10 @@ export default class ueSoftphone {
|
|
|
1118
1118
|
});
|
|
1119
1119
|
return;
|
|
1120
1120
|
}
|
|
1121
|
-
if (params.
|
|
1121
|
+
if (params.type === null || params.type === undefined) {
|
|
1122
1122
|
params.fail({
|
|
1123
1123
|
success: false,
|
|
1124
|
-
message: "Parameter
|
|
1124
|
+
message: "Parameter type is required!"
|
|
1125
1125
|
});
|
|
1126
1126
|
return;
|
|
1127
1127
|
} else if (params.number === null || params.number === undefined) {
|
|
@@ -1247,13 +1247,6 @@ export default class ueSoftphone {
|
|
|
1247
1247
|
});
|
|
1248
1248
|
return;
|
|
1249
1249
|
}
|
|
1250
|
-
if (params.agentNumber === null || params.agentNumber === undefined) {
|
|
1251
|
-
params.fail({
|
|
1252
|
-
success: false,
|
|
1253
|
-
message: "Parameter agentNumber is required!"
|
|
1254
|
-
});
|
|
1255
|
-
return;
|
|
1256
|
-
}
|
|
1257
1250
|
|
|
1258
1251
|
const server = ueSoftphone.initOptions.server || ueSoftphone.callApiUrl;
|
|
1259
1252
|
|
|
@@ -1352,13 +1345,6 @@ export default class ueSoftphone {
|
|
|
1352
1345
|
});
|
|
1353
1346
|
return;
|
|
1354
1347
|
}
|
|
1355
|
-
if (params.agentNumber === null || params.agentNumber === undefined) {
|
|
1356
|
-
params.fail({
|
|
1357
|
-
success: false,
|
|
1358
|
-
message: "Parameter agentNumber is required!"
|
|
1359
|
-
});
|
|
1360
|
-
return;
|
|
1361
|
-
}
|
|
1362
1348
|
|
|
1363
1349
|
const server = ueSoftphone.initOptions.server || ueSoftphone.callApiUrl;
|
|
1364
1350
|
|
|
@@ -1408,13 +1394,6 @@ export default class ueSoftphone {
|
|
|
1408
1394
|
});
|
|
1409
1395
|
return;
|
|
1410
1396
|
}
|
|
1411
|
-
if (params.agentNumber === null || params.agentNumber === undefined) {
|
|
1412
|
-
params.fail({
|
|
1413
|
-
success: false,
|
|
1414
|
-
message: "Parameter agentNumber is required!"
|
|
1415
|
-
});
|
|
1416
|
-
return;
|
|
1417
|
-
}
|
|
1418
1397
|
|
|
1419
1398
|
const server = ueSoftphone.initOptions.server || ueSoftphone.callApiUrl;
|
|
1420
1399
|
|
|
@@ -1464,13 +1443,6 @@ export default class ueSoftphone {
|
|
|
1464
1443
|
});
|
|
1465
1444
|
return;
|
|
1466
1445
|
}
|
|
1467
|
-
if (params.agentNumber === null || params.agentNumber === undefined) {
|
|
1468
|
-
params.fail({
|
|
1469
|
-
success: false,
|
|
1470
|
-
message: "Parameter agentNumber is required!"
|
|
1471
|
-
});
|
|
1472
|
-
return;
|
|
1473
|
-
}
|
|
1474
1446
|
|
|
1475
1447
|
const server = ueSoftphone.initOptions.server || ueSoftphone.callApiUrl;
|
|
1476
1448
|
|
|
@@ -1831,7 +1803,7 @@ export default class ueSoftphone {
|
|
|
1831
1803
|
if (params) {
|
|
1832
1804
|
ueSoftphone.Socketinstance.disconnect();
|
|
1833
1805
|
if (ueSoftphone.agentInfo.loginType === "WEBRTC") {
|
|
1834
|
-
|
|
1806
|
+
ueSoftphone.webPhone.disconnect();
|
|
1835
1807
|
}
|
|
1836
1808
|
(params.success as Function)({
|
|
1837
1809
|
success: true
|
|
@@ -2027,7 +1999,7 @@ export default class ueSoftphone {
|
|
|
2027
1999
|
return {
|
|
2028
2000
|
// 接听
|
|
2029
2001
|
accept() {
|
|
2030
|
-
|
|
2002
|
+
ueSoftphone.webPhone.accept();
|
|
2031
2003
|
},
|
|
2032
2004
|
// 注册设备,链接webrtc
|
|
2033
2005
|
connect() {
|
|
@@ -2038,16 +2010,16 @@ export default class ueSoftphone {
|
|
|
2038
2010
|
// 注销设备,跟webrtc断开链接
|
|
2039
2011
|
disconnect() {
|
|
2040
2012
|
if (ueSoftphone.webPhone && this.isConnected()) {
|
|
2041
|
-
|
|
2013
|
+
ueSoftphone.webPhone.disconnect();
|
|
2042
2014
|
}
|
|
2043
2015
|
},
|
|
2044
2016
|
// 检测设备是否有链接上
|
|
2045
2017
|
isConnected() {
|
|
2046
|
-
return
|
|
2018
|
+
return ueSoftphone.webPhone.isConnected();
|
|
2047
2019
|
},
|
|
2048
2020
|
// 发送DTMF 可与demo中的软电话拨号盘结合使用
|
|
2049
2021
|
sendDTMF(tone: string) {
|
|
2050
|
-
|
|
2022
|
+
ueSoftphone.webPhone.sendDTMF(tone);
|
|
2051
2023
|
}
|
|
2052
2024
|
};
|
|
2053
2025
|
};
|
|
@@ -2056,6 +2028,9 @@ export default class ueSoftphone {
|
|
|
2056
2028
|
class ueWebsocket {
|
|
2057
2029
|
private ws: any;
|
|
2058
2030
|
constructor(server: string, proto: any) {
|
|
2031
|
+
delete proto.path;
|
|
2032
|
+
delete proto.hostname;
|
|
2033
|
+
delete proto.port;
|
|
2059
2034
|
//@ts-ignore
|
|
2060
2035
|
this.ws = io.connect(`wss://${server}`, proto);
|
|
2061
2036
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compileOnSave": false,
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"outDir": "./dist/"
|
|
5
|
-
"sourceMap": false
|
|
4
|
+
"outDir": "./dist/", // 打包到的目录
|
|
5
|
+
"sourceMap": false, // 是否生成sourceMap(用于浏览器调试)
|
|
6
6
|
"noImplicitAny": false,
|
|
7
7
|
"noUnusedLocals": false,
|
|
8
8
|
"noUnusedParameters": false,
|
|
9
|
-
"declaration": true
|
|
10
|
-
"declarationDir": "
|
|
11
|
-
"declarationMap": false
|
|
9
|
+
"declaration": true, // 是否生成声明文件
|
|
10
|
+
"declarationDir": "dist/types", // 声明文件打包的位置
|
|
11
|
+
"declarationMap": false, // 是否生成声明文件map文件(便于调试)
|
|
12
12
|
"moduleResolution": "node",
|
|
13
13
|
"module": "esnext",
|
|
14
|
-
"target": "es5"
|
|
14
|
+
"target": "es5", // 转化成的目标语言
|
|
15
15
|
"baseUrl": "./",
|
|
16
|
-
"
|
|
17
|
-
"node"
|
|
18
|
-
],
|
|
19
|
-
"typeRoots": [
|
|
20
|
-
"./node_modules/@types"
|
|
21
|
-
],
|
|
22
|
-
"lib": [
|
|
23
|
-
"dom",
|
|
24
|
-
"es2015"
|
|
25
|
-
],
|
|
26
|
-
"jsx": "react",
|
|
16
|
+
"lib": ["dom", "ES2020"],
|
|
27
17
|
"allowJs": false
|
|
28
18
|
},
|
|
29
|
-
"include": [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
],// 要打包的文件
|
|
33
|
-
"exclude": [
|
|
34
|
-
"node_modules",
|
|
35
|
-
"*.test.ts"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
19
|
+
"include": ["src/**/*.ts", "typings.d.ts"], // 要打包的文件
|
|
20
|
+
"exclude": ["node_modules", "*.test.ts"]
|
|
21
|
+
}
|
package/dist/api/bye.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IncomingByeRequest, IncomingRequestMessage, ResponseOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* A request to end a {@link Session} (incoming BYE).
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class Bye {
|
|
7
|
-
private incomingByeRequest;
|
|
8
|
-
/** @internal */
|
|
9
|
-
constructor(incomingByeRequest: IncomingByeRequest);
|
|
10
|
-
/** Incoming BYE 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
|
-
}
|
package/dist/api/dtmf.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IncomingInfoRequest } from "../core";
|
|
2
|
-
import { Info } from "./info";
|
|
3
|
-
/**
|
|
4
|
-
* A DTMF signal (incoming INFO).
|
|
5
|
-
* @deprecated Use `Info`.
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare class DTMF extends Info {
|
|
9
|
-
private _tone;
|
|
10
|
-
private _duration;
|
|
11
|
-
/** @internal */
|
|
12
|
-
constructor(incomingInfoRequest: IncomingInfoRequest, tone: string, duration: number);
|
|
13
|
-
get tone(): string;
|
|
14
|
-
get duration(): number;
|
|
15
|
-
}
|
package/dist/api/emitter.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic observable.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export interface Emitter<T> {
|
|
6
|
-
/**
|
|
7
|
-
* Sets up a function that will be called whenever the target changes.
|
|
8
|
-
* @param listener - Callback function.
|
|
9
|
-
* @param options - An options object that specifies characteristics about the listener.
|
|
10
|
-
* If once true, indicates that the listener should be invoked at most once after being added.
|
|
11
|
-
* If once true, the listener would be automatically removed when invoked.
|
|
12
|
-
*/
|
|
13
|
-
addListener(listener: (data: T) => void, options?: {
|
|
14
|
-
once?: boolean;
|
|
15
|
-
}): void;
|
|
16
|
-
/**
|
|
17
|
-
* Removes from the listener previously registered with addListener.
|
|
18
|
-
* @param listener - Callback function.
|
|
19
|
-
*/
|
|
20
|
-
removeListener(listener: (data: T) => void): void;
|
|
21
|
-
/**
|
|
22
|
-
* Registers a listener.
|
|
23
|
-
* @param listener - Callback function.
|
|
24
|
-
* @deprecated Use addListener.
|
|
25
|
-
*/
|
|
26
|
-
on(listener: (data: T) => void): void;
|
|
27
|
-
/**
|
|
28
|
-
* Unregisters a listener.
|
|
29
|
-
* @param listener - Callback function.
|
|
30
|
-
* @deprecated Use removeListener.
|
|
31
|
-
*/
|
|
32
|
-
off(listener: (data: T) => void): void;
|
|
33
|
-
/**
|
|
34
|
-
* Registers a listener then unregisters the listener after one event emission.
|
|
35
|
-
* @param listener - Callback function.
|
|
36
|
-
* @deprecated Use addListener.
|
|
37
|
-
*/
|
|
38
|
-
once(listener: (data: T) => void): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* An {@link Emitter} implementation.
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare class EmitterImpl<T> implements Emitter<T> {
|
|
45
|
-
private listeners;
|
|
46
|
-
/**
|
|
47
|
-
* Sets up a function that will be called whenever the target changes.
|
|
48
|
-
* @param listener - Callback function.
|
|
49
|
-
* @param options - An options object that specifies characteristics about the listener.
|
|
50
|
-
* If once true, indicates that the listener should be invoked at most once after being added.
|
|
51
|
-
* If once true, the listener would be automatically removed when invoked.
|
|
52
|
-
*/
|
|
53
|
-
addListener(listener: (data: T) => void, options?: {
|
|
54
|
-
once?: boolean;
|
|
55
|
-
}): void;
|
|
56
|
-
/**
|
|
57
|
-
* Emit change.
|
|
58
|
-
* @param data - Data to emit.
|
|
59
|
-
*/
|
|
60
|
-
emit(data: T): void;
|
|
61
|
-
/**
|
|
62
|
-
* Removes all listeners previously registered with addListener.
|
|
63
|
-
*/
|
|
64
|
-
removeAllListeners(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Removes a listener previously registered with addListener.
|
|
67
|
-
* @param listener - Callback function.
|
|
68
|
-
*/
|
|
69
|
-
removeListener(listener: (data: T) => void): void;
|
|
70
|
-
/**
|
|
71
|
-
* Registers a listener.
|
|
72
|
-
* @param listener - Callback function.
|
|
73
|
-
* @deprecated Use addListener.
|
|
74
|
-
*/
|
|
75
|
-
on(listener: (data: T) => void): void;
|
|
76
|
-
/**
|
|
77
|
-
* Unregisters a listener.
|
|
78
|
-
* @param listener - Callback function.
|
|
79
|
-
* @deprecated Use removeListener.
|
|
80
|
-
*/
|
|
81
|
-
off(listener: (data: T) => void): void;
|
|
82
|
-
/**
|
|
83
|
-
* Registers a listener then unregisters the listener after one event emission.
|
|
84
|
-
* @param listener - Callback function.
|
|
85
|
-
* @deprecated Use addListener.
|
|
86
|
-
*/
|
|
87
|
-
once(listener: (data: T) => void): void;
|
|
88
|
-
}
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A simple yet powerful API which takes care of SIP signaling and WebRTC media sessions for you.
|
|
3
|
-
* @packageDocumentation
|
|
4
|
-
*/
|
|
5
|
-
export * from "./exceptions";
|
|
6
|
-
export * from "./bye";
|
|
7
|
-
export * from "./emitter";
|
|
8
|
-
export * from "./info";
|
|
9
|
-
export * from "./invitation-accept-options";
|
|
10
|
-
export * from "./invitation-progress-options";
|
|
11
|
-
export * from "./invitation-reject-options";
|
|
12
|
-
export * from "./invitation";
|
|
13
|
-
export * from "./inviter-cancel-options";
|
|
14
|
-
export * from "./inviter-invite-options";
|
|
15
|
-
export * from "./inviter-options";
|
|
16
|
-
export * from "./inviter";
|
|
17
|
-
export * from "./message";
|
|
18
|
-
export * from "./messager-message-options";
|
|
19
|
-
export * from "./messager-options";
|
|
20
|
-
export * from "./messager";
|
|
21
|
-
export * from "./notification";
|
|
22
|
-
export * from "./publisher-options";
|
|
23
|
-
export * from "./publisher-publish-options";
|
|
24
|
-
export * from "./publisher-state";
|
|
25
|
-
export * from "./publisher-unpublish-options";
|
|
26
|
-
export * from "./publisher";
|
|
27
|
-
export * from "./referral";
|
|
28
|
-
export * from "./registerer-options";
|
|
29
|
-
export * from "./registerer-register-options";
|
|
30
|
-
export * from "./registerer-state";
|
|
31
|
-
export * from "./registerer-unregister-options";
|
|
32
|
-
export * from "./registerer";
|
|
33
|
-
export * from "./session-bye-options";
|
|
34
|
-
export * from "./session-delegate";
|
|
35
|
-
export * from "./session-description-handler-factory";
|
|
36
|
-
export * from "./session-description-handler";
|
|
37
|
-
export * from "./session-info-options";
|
|
38
|
-
export * from "./session-invite-options";
|
|
39
|
-
export * from "./session-message-options";
|
|
40
|
-
export * from "./session-options";
|
|
41
|
-
export * from "./session-refer-options";
|
|
42
|
-
export * from "./session-state";
|
|
43
|
-
export * from "./session";
|
|
44
|
-
export * from "./subscriber-options";
|
|
45
|
-
export * from "./subscriber-subscribe-options";
|
|
46
|
-
export * from "./subscriber";
|
|
47
|
-
export * from "./subscription-delegate";
|
|
48
|
-
export * from "./subscription-options";
|
|
49
|
-
export * from "./subscription-state";
|
|
50
|
-
export * from "./subscription-subscribe-options";
|
|
51
|
-
export * from "./subscription-unsubscribe-options";
|
|
52
|
-
export * from "./subscription";
|
|
53
|
-
export * from "./transport";
|
|
54
|
-
export * from "./transport-state";
|
|
55
|
-
export * from "./user-agent-delegate";
|
|
56
|
-
export * from "./user-agent-options";
|
|
57
|
-
export * from "./user-agent-state";
|
|
58
|
-
export * from "./user-agent";
|
package/dist/api/info.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IncomingInfoRequest, IncomingRequestMessage, ResponseOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* An exchange of information (incoming INFO).
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class Info {
|
|
7
|
-
private incomingInfoRequest;
|
|
8
|
-
/** @internal */
|
|
9
|
-
constructor(incomingInfoRequest: IncomingInfoRequest);
|
|
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,19 +0,0 @@
|
|
|
1
|
-
import { SessionDescriptionHandlerModifier, SessionDescriptionHandlerOptions } from "./session-description-handler";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Invitation.accept}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface InvitationAcceptOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Array of extra headers added to the response.
|
|
9
|
-
*/
|
|
10
|
-
extraHeaders?: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* Modifiers to pass to SessionDescriptionHandler during the initial INVITE transaction.
|
|
13
|
-
*/
|
|
14
|
-
sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
|
|
15
|
-
/**
|
|
16
|
-
* Options to pass to SessionDescriptionHandler during the initial INVITE transaction.
|
|
17
|
-
*/
|
|
18
|
-
sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
|
|
19
|
-
}
|