ue-softphone-sdk 2.2.2 → 2.2.4
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/api/bye.d.ts +16 -0
- package/dist/api/dtmf.d.ts +15 -0
- package/dist/api/emitter.d.ts +88 -0
- package/dist/api/exceptions/content-type-unsupported.d.ts +8 -0
- package/dist/api/exceptions/index.d.ts +5 -0
- package/dist/api/exceptions/request-pending.d.ts +9 -0
- package/dist/api/exceptions/session-description-handler.d.ts +8 -0
- package/dist/api/exceptions/session-terminated.d.ts +8 -0
- package/dist/api/exceptions/state-transition.d.ts +8 -0
- package/dist/api/index.d.ts +58 -0
- package/dist/api/info.d.ts +16 -0
- package/dist/api/invitation-accept-options.d.ts +19 -0
- package/dist/api/invitation-progress-options.d.ts +38 -0
- package/dist/api/invitation-reject-options.d.ts +25 -0
- package/dist/api/invitation.d.ts +179 -0
- package/dist/api/inviter-cancel-options.d.ts +9 -0
- package/dist/api/inviter-invite-options.d.ts +28 -0
- package/dist/api/inviter-options.d.ts +43 -0
- package/dist/api/inviter.d.ts +236 -0
- package/dist/api/message.d.ts +16 -0
- package/dist/api/messager-message-options.d.ts +11 -0
- package/dist/api/messager-options.d.ts +17 -0
- package/dist/api/messager.d.ts +26 -0
- package/dist/api/notification.d.ts +16 -0
- package/dist/api/notifier.d.ts +8 -0
- package/dist/api/publisher-options.d.ts +33 -0
- package/dist/api/publisher-publish-options.d.ts +6 -0
- package/dist/api/publisher-state.d.ts +21 -0
- package/dist/api/publisher-unpublish-options.d.ts +6 -0
- package/dist/api/publisher.d.ts +65 -0
- package/dist/api/referral.d.ts +38 -0
- package/dist/api/registerer-options.d.ts +46 -0
- package/dist/api/registerer-register-options.d.ts +11 -0
- package/dist/api/registerer-state.d.ts +21 -0
- package/dist/api/registerer-unregister-options.d.ts +16 -0
- package/dist/api/registerer.d.ts +144 -0
- package/dist/api/session-bye-options.d.ts +11 -0
- package/dist/api/session-delegate.d.ts +73 -0
- package/dist/api/session-description-handler-factory.d.ts +15 -0
- package/dist/api/session-description-handler.d.ts +74 -0
- package/dist/api/session-info-options.d.ts +11 -0
- package/dist/api/session-invite-options.d.ts +28 -0
- package/dist/api/session-message-options.d.ts +11 -0
- package/dist/api/session-options.d.ts +8 -0
- package/dist/api/session-refer-options.d.ts +14 -0
- package/dist/api/session-state.d.ts +45 -0
- package/dist/api/session.d.ts +359 -0
- package/dist/api/subscriber-options.d.ts +11 -0
- package/dist/api/subscriber-subscribe-options.d.ts +6 -0
- package/dist/api/subscriber.d.ts +94 -0
- package/dist/api/subscription-delegate.d.ts +12 -0
- package/dist/api/subscription-options.d.ts +8 -0
- package/dist/api/subscription-state.d.ts +19 -0
- package/dist/api/subscription-subscribe-options.d.ts +6 -0
- package/dist/api/subscription-unsubscribe-options.d.ts +6 -0
- package/dist/api/subscription.d.ts +84 -0
- package/dist/api/transport-state.d.ts +37 -0
- package/dist/api/transport.d.ts +159 -0
- package/dist/api/user-agent-delegate.d.ts +84 -0
- package/dist/api/user-agent-options.d.ts +253 -0
- package/dist/api/user-agent-state.d.ts +14 -0
- package/dist/api/user-agent.d.ts +200 -0
- package/dist/core/dialogs/dialog-state.d.ts +34 -0
- package/dist/core/dialogs/dialog.d.ts +161 -0
- package/dist/core/dialogs/index.d.ts +4 -0
- package/dist/core/dialogs/session-dialog.d.ts +196 -0
- package/dist/core/dialogs/subscription-dialog.d.ts +120 -0
- package/dist/core/exceptions/exception.d.ts +8 -0
- package/dist/core/exceptions/index.d.ts +3 -0
- package/dist/core/exceptions/transaction-state-error.d.ts +8 -0
- package/dist/core/exceptions/transport-error.d.ts +8 -0
- package/dist/core/index.d.ts +15 -0
- package/dist/core/log/index.d.ts +3 -0
- package/dist/core/log/levels.d.ts +10 -0
- package/dist/core/log/logger-factory.d.ts +21 -0
- package/dist/core/log/logger.d.ts +19 -0
- package/dist/core/messages/body.d.ts +64 -0
- package/dist/core/messages/digest-authentication.d.ts +51 -0
- package/dist/core/messages/incoming-message.d.ts +79 -0
- package/dist/core/messages/incoming-request-message.d.ts +10 -0
- package/dist/core/messages/incoming-request.d.ts +67 -0
- package/dist/core/messages/incoming-response-message.d.ts +10 -0
- package/dist/core/messages/incoming-response.d.ts +12 -0
- package/dist/core/messages/index.d.ts +13 -0
- package/dist/core/messages/md5.d.ts +32 -0
- package/dist/core/messages/methods/ack.d.ts +18 -0
- package/dist/core/messages/methods/bye.d.ts +21 -0
- package/dist/core/messages/methods/cancel.d.ts +21 -0
- package/dist/core/messages/methods/constants.d.ts +20 -0
- package/dist/core/messages/methods/index.d.ts +13 -0
- package/dist/core/messages/methods/info.d.ts +21 -0
- package/dist/core/messages/methods/invite.d.ts +86 -0
- package/dist/core/messages/methods/message.d.ts +21 -0
- package/dist/core/messages/methods/notify.d.ts +21 -0
- package/dist/core/messages/methods/prack.d.ts +21 -0
- package/dist/core/messages/methods/publish.d.ts +21 -0
- package/dist/core/messages/methods/refer.d.ts +21 -0
- package/dist/core/messages/methods/register.d.ts +21 -0
- package/dist/core/messages/methods/subscribe.d.ts +54 -0
- package/dist/core/messages/outgoing-request-message.d.ts +94 -0
- package/dist/core/messages/outgoing-request.d.ts +67 -0
- package/dist/core/messages/outgoing-response.d.ts +42 -0
- package/dist/core/messages/parser.d.ts +14 -0
- package/dist/core/messages/utils.d.ts +24 -0
- package/dist/core/session/index.d.ts +2 -0
- package/dist/core/session/session-delegate.d.ts +70 -0
- package/dist/core/session/session.d.ts +134 -0
- package/dist/core/subscription/index.d.ts +2 -0
- package/dist/core/subscription/subscription-delegate.d.ts +27 -0
- package/dist/core/subscription/subscription.d.ts +55 -0
- package/dist/core/timers.d.ts +20 -0
- package/dist/core/transactions/client-transaction.d.ts +45 -0
- package/dist/core/transactions/index.d.ts +10 -0
- package/dist/core/transactions/invite-client-transaction.d.ts +116 -0
- package/dist/core/transactions/invite-server-transaction.d.ts +127 -0
- package/dist/core/transactions/non-invite-client-transaction.d.ts +69 -0
- package/dist/core/transactions/non-invite-server-transaction.d.ts +57 -0
- package/dist/core/transactions/server-transaction.d.ts +35 -0
- package/dist/core/transactions/transaction-state.d.ts +13 -0
- package/dist/core/transactions/transaction-user.d.ts +72 -0
- package/dist/core/transactions/transaction.d.ts +79 -0
- package/dist/core/transport.d.ts +31 -0
- package/dist/core/user-agent-core/allowed-methods.d.ts +4 -0
- package/dist/core/user-agent-core/index.d.ts +3 -0
- package/dist/core/user-agent-core/user-agent-core-configuration.d.ts +99 -0
- package/dist/core/user-agent-core/user-agent-core-delegate.d.ts +37 -0
- package/dist/core/user-agent-core/user-agent-core.d.ts +179 -0
- package/dist/core/user-agents/bye-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/bye-user-agent-server.d.ts +10 -0
- package/dist/core/user-agents/cancel-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/index.d.ts +26 -0
- package/dist/core/user-agents/info-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/info-user-agent-server.d.ts +10 -0
- package/dist/core/user-agents/invite-user-agent-client.d.ts +35 -0
- package/dist/core/user-agents/invite-user-agent-server.d.ts +77 -0
- package/dist/core/user-agents/message-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/message-user-agent-server.d.ts +10 -0
- package/dist/core/user-agents/notify-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/notify-user-agent-server.d.ts +16 -0
- package/dist/core/user-agents/prack-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/prack-user-agent-server.d.ts +16 -0
- package/dist/core/user-agents/publish-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/re-invite-user-agent-client.d.ts +18 -0
- package/dist/core/user-agents/re-invite-user-agent-server.d.ts +41 -0
- package/dist/core/user-agents/re-subscribe-user-agent-client.d.ts +17 -0
- package/dist/core/user-agents/re-subscribe-user-agent-server.d.ts +10 -0
- package/dist/core/user-agents/refer-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/refer-user-agent-server.d.ts +16 -0
- package/dist/core/user-agents/register-user-agent-client.d.ts +10 -0
- package/dist/core/user-agents/register-user-agent-server.d.ts +11 -0
- package/dist/core/user-agents/subscribe-user-agent-client.d.ts +65 -0
- package/dist/core/user-agents/subscribe-user-agent-server.d.ts +11 -0
- package/dist/core/user-agents/user-agent-client.d.ts +103 -0
- package/dist/core/user-agents/user-agent-server.d.ts +79 -0
- package/dist/grammar/grammar.d.ts +26 -0
- package/dist/grammar/index.d.ts +4 -0
- package/dist/grammar/name-addr-header.d.ts +24 -0
- package/dist/grammar/parameters.d.ts +16 -0
- package/dist/grammar/pegjs/dist/grammar.d.ts +50 -0
- package/dist/grammar/uri.d.ts +62 -0
- package/dist/{types/index.d.ts → index.d.ts} +7 -3
- package/dist/main.d.ts +9 -0
- package/dist/new-index.d.ts +199 -0
- package/dist/platform/web/index.d.ts +4 -0
- package/dist/platform/web/modifiers/index.d.ts +5 -0
- package/dist/platform/web/modifiers/modifiers.d.ts +41 -0
- package/dist/platform/web/session-description-handler/index.d.ts +14 -0
- package/dist/platform/web/session-description-handler/media-stream-factory-default.d.ts +6 -0
- package/dist/platform/web/session-description-handler/media-stream-factory.d.ts +6 -0
- package/dist/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +5 -0
- package/dist/platform/web/session-description-handler/peer-connection-delegate.d.ts +63 -0
- package/dist/platform/web/session-description-handler/session-description-handler-configuration.d.ts +16 -0
- package/dist/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +11 -0
- package/dist/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +9 -0
- package/dist/platform/web/session-description-handler/session-description-handler-factory.d.ts +16 -0
- package/dist/platform/web/session-description-handler/session-description-handler-options.d.ts +47 -0
- package/dist/platform/web/session-description-handler/session-description-handler.d.ts +212 -0
- package/dist/platform/web/simple-user/index.d.ts +7 -0
- package/dist/platform/web/simple-user/simple-user-delegate.d.ts +72 -0
- package/dist/platform/web/simple-user/simple-user-options.d.ts +90 -0
- package/dist/platform/web/simple-user/simple-user.d.ts +226 -0
- package/dist/platform/web/transport/index.d.ts +6 -0
- package/dist/platform/web/transport/transport-options.d.ts +30 -0
- package/dist/platform/web/transport/transport.d.ts +125 -0
- package/dist/ue-softphone-sdk.js +2 -1
- package/dist/ue-softphone-sdk.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/webPhoneSdk.d.ts +24 -0
- package/dist/webrtc.d.ts +17 -0
- package/{rollup-new.config.mjs → new-rollup.config.mjs} +1 -1
- package/package.json +6 -6
- package/rollup.config.js +15 -14
- package/src/api/api-extractor.json +358 -0
- package/src/api/bye.ts +27 -0
- package/src/api/dtmf.ts +27 -0
- package/src/api/emitter.ts +110 -0
- package/src/api/exceptions/content-type-unsupported.ts +11 -0
- package/src/api/exceptions/index.ts +5 -0
- package/src/api/exceptions/request-pending.ts +12 -0
- package/src/api/exceptions/session-description-handler.ts +11 -0
- package/src/api/exceptions/session-terminated.ts +11 -0
- package/src/api/exceptions/state-transition.ts +11 -0
- package/src/api/index.ts +58 -0
- package/src/api/info.ts +27 -0
- package/src/api/invitation-accept-options.ts +20 -0
- package/src/api/invitation-progress-options.ts +36 -0
- package/src/api/invitation-reject-options.ts +22 -0
- package/src/api/invitation.ts +816 -0
- package/src/api/inviter-cancel-options.ts +9 -0
- package/src/api/inviter-invite-options.ts +29 -0
- package/src/api/inviter-options.ts +44 -0
- package/src/api/inviter.ts +1126 -0
- package/src/api/message.ts +27 -0
- package/src/api/messager-message-options.ts +12 -0
- package/src/api/messager-options.ts +18 -0
- package/src/api/messager.ts +89 -0
- package/src/api/notification.ts +27 -0
- package/src/api/notifier.ts +7 -0
- package/src/api/publisher-options.ts +34 -0
- package/src/api/publisher-publish-options.ts +6 -0
- package/src/api/publisher-state.ts +21 -0
- package/src/api/publisher-unpublish-options.ts +6 -0
- package/src/api/publisher.ts +418 -0
- package/src/api/referral.ts +89 -0
- package/src/api/registerer-options.ts +55 -0
- package/src/api/registerer-register-options.ts +12 -0
- package/src/api/registerer-state.ts +21 -0
- package/src/api/registerer-unregister-options.ts +17 -0
- package/src/api/registerer.ts +814 -0
- package/src/api/session-bye-options.ts +12 -0
- package/src/api/session-delegate.ts +80 -0
- package/src/api/session-description-handler-factory.ts +16 -0
- package/src/api/session-description-handler.ts +89 -0
- package/src/api/session-info-options.ts +12 -0
- package/src/api/session-invite-options.ts +29 -0
- package/src/api/session-message-options.ts +12 -0
- package/src/api/session-options.ts +8 -0
- package/src/api/session-refer-options.ts +15 -0
- package/src/api/session-state.ts +45 -0
- package/src/api/session.ts +1448 -0
- package/src/api/subscriber-options.ts +12 -0
- package/src/api/subscriber-subscribe-options.ts +6 -0
- package/src/api/subscriber.ts +536 -0
- package/src/api/subscription-delegate.ts +13 -0
- package/src/api/subscription-options.ts +8 -0
- package/src/api/subscription-state.ts +19 -0
- package/src/api/subscription-subscribe-options.ts +6 -0
- package/src/api/subscription-unsubscribe-options.ts +6 -0
- package/src/api/subscription.ts +161 -0
- package/src/api/transport-state.ts +37 -0
- package/src/api/transport.ts +169 -0
- package/src/api/user-agent-delegate.ts +95 -0
- package/src/api/user-agent-options.ts +322 -0
- package/src/api/user-agent-state.ts +14 -0
- package/src/api/user-agent.ts +1014 -0
- package/src/core/api-extractor.json +358 -0
- package/src/core/dialogs/dialog-state.ts +35 -0
- package/src/core/dialogs/dialog.ts +605 -0
- package/src/core/dialogs/index.ts +4 -0
- package/src/core/dialogs/session-dialog.ts +996 -0
- package/src/core/dialogs/subscription-dialog.ts +557 -0
- package/src/core/exceptions/exception.ts +11 -0
- package/src/core/exceptions/index.ts +3 -0
- package/src/core/exceptions/transaction-state-error.ts +11 -0
- package/src/core/exceptions/transport-error.ts +11 -0
- package/src/core/index.ts +19 -0
- package/src/core/log/index.ts +3 -0
- package/src/core/log/levels.ts +10 -0
- package/src/core/log/logger-factory.ts +119 -0
- package/src/core/log/logger.ts +42 -0
- package/src/core/messages/body.ts +171 -0
- package/src/core/messages/digest-authentication.ts +190 -0
- package/src/core/messages/incoming-message.ts +152 -0
- package/src/core/messages/incoming-request-message.ts +14 -0
- package/src/core/messages/incoming-request.ts +75 -0
- package/src/core/messages/incoming-response-message.ts +14 -0
- package/src/core/messages/incoming-response.ts +13 -0
- package/src/core/messages/index.ts +18 -0
- package/src/core/messages/md5.ts +437 -0
- package/src/core/messages/methods/ack.ts +22 -0
- package/src/core/messages/methods/bye.ts +22 -0
- package/src/core/messages/methods/cancel.ts +22 -0
- package/src/core/messages/methods/constants.ts +21 -0
- package/src/core/messages/methods/index.ts +13 -0
- package/src/core/messages/methods/info.ts +22 -0
- package/src/core/messages/methods/invite.ts +104 -0
- package/src/core/messages/methods/message.ts +22 -0
- package/src/core/messages/methods/notify.ts +22 -0
- package/src/core/messages/methods/prack.ts +22 -0
- package/src/core/messages/methods/publish.ts +22 -0
- package/src/core/messages/methods/refer.ts +22 -0
- package/src/core/messages/methods/register.ts +22 -0
- package/src/core/messages/methods/subscribe.ts +59 -0
- package/src/core/messages/outgoing-request-message.ts +299 -0
- package/src/core/messages/outgoing-request.ts +77 -0
- package/src/core/messages/outgoing-response.ts +174 -0
- package/src/core/messages/parser.ts +265 -0
- package/src/core/messages/utils.ts +144 -0
- package/src/core/session/index.ts +2 -0
- package/src/core/session/session-delegate.ts +88 -0
- package/src/core/session/session.ts +158 -0
- package/src/core/subscription/index.ts +2 -0
- package/src/core/subscription/subscription-delegate.ts +30 -0
- package/src/core/subscription/subscription.ts +61 -0
- package/src/core/timers.ts +24 -0
- package/src/core/transactions/client-transaction.ts +78 -0
- package/src/core/transactions/index.ts +10 -0
- package/src/core/transactions/invite-client-transaction.ts +504 -0
- package/src/core/transactions/invite-server-transaction.ts +432 -0
- package/src/core/transactions/non-invite-client-transaction.ts +257 -0
- package/src/core/transactions/non-invite-server-transaction.ts +241 -0
- package/src/core/transactions/server-transaction.ts +47 -0
- package/src/core/transactions/transaction-state.ts +13 -0
- package/src/core/transactions/transaction-user.ts +82 -0
- package/src/core/transactions/transaction.ts +149 -0
- package/src/core/transport.ts +32 -0
- package/src/core/user-agent-core/allowed-methods.ts +19 -0
- package/src/core/user-agent-core/index.ts +3 -0
- package/src/core/user-agent-core/user-agent-core-configuration.ts +111 -0
- package/src/core/user-agent-core/user-agent-core-delegate.ts +50 -0
- package/src/core/user-agent-core/user-agent-core.ts +905 -0
- package/src/core/user-agents/bye-user-agent-client.ts +16 -0
- package/src/core/user-agents/bye-user-agent-server.ts +14 -0
- package/src/core/user-agents/cancel-user-agent-client.ts +14 -0
- package/src/core/user-agents/index.ts +26 -0
- package/src/core/user-agents/info-user-agent-client.ts +15 -0
- package/src/core/user-agents/info-user-agent-server.ts +14 -0
- package/src/core/user-agents/invite-user-agent-client.ts +405 -0
- package/src/core/user-agents/invite-user-agent-server.ts +269 -0
- package/src/core/user-agents/message-user-agent-client.ts +14 -0
- package/src/core/user-agents/message-user-agent-server.ts +14 -0
- package/src/core/user-agents/notify-user-agent-client.ts +15 -0
- package/src/core/user-agents/notify-user-agent-server.ts +30 -0
- package/src/core/user-agents/prack-user-agent-client.ts +16 -0
- package/src/core/user-agents/prack-user-agent-server.ts +37 -0
- package/src/core/user-agents/publish-user-agent-client.ts +14 -0
- package/src/core/user-agents/re-invite-user-agent-client.ts +127 -0
- package/src/core/user-agents/re-invite-user-agent-server.ts +109 -0
- package/src/core/user-agents/re-subscribe-user-agent-client.ts +78 -0
- package/src/core/user-agents/re-subscribe-user-agent-server.ts +14 -0
- package/src/core/user-agents/refer-user-agent-client.ts +15 -0
- package/src/core/user-agents/refer-user-agent-server.ts +30 -0
- package/src/core/user-agents/register-user-agent-client.ts +14 -0
- package/src/core/user-agents/register-user-agent-server.ts +14 -0
- package/src/core/user-agents/subscribe-user-agent-client.ts +341 -0
- package/src/core/user-agents/subscribe-user-agent-server.ts +14 -0
- package/src/core/user-agents/user-agent-client.ts +378 -0
- package/src/core/user-agents/user-agent-server.ts +276 -0
- package/src/grammar/grammar.ts +55 -0
- package/src/grammar/index.ts +4 -0
- package/src/grammar/name-addr-header.ts +58 -0
- package/src/grammar/parameters.ts +45 -0
- package/src/grammar/pegjs/README.md +9 -0
- package/src/grammar/pegjs/dist/grammar.ts +1557 -0
- package/src/grammar/pegjs/src/grammar.pegjs +1009 -0
- package/src/grammar/uri.ts +370 -0
- package/src/index.ts +59 -28
- package/src/lib/socket.io.esm.min.js +7 -0
- package/src/main.ts +26 -0
- package/src/new-index.ts +2478 -0
- package/src/platform/react/README.md +1 -0
- package/src/platform/web/index.ts +4 -0
- package/src/platform/web/modifiers/index.ts +5 -0
- package/src/platform/web/modifiers/modifiers.ts +180 -0
- package/src/platform/web/session-description-handler/api-extractor.json +358 -0
- package/src/platform/web/session-description-handler/index.ts +14 -0
- package/src/platform/web/session-description-handler/media-stream-factory-default.ts +22 -0
- package/src/platform/web/session-description-handler/media-stream-factory.ts +10 -0
- package/src/platform/web/session-description-handler/peer-connection-configuration-default.ts +17 -0
- package/src/platform/web/session-description-handler/peer-connection-delegate.ts +72 -0
- package/src/platform/web/session-description-handler/session-description-handler-configuration.ts +17 -0
- package/src/platform/web/session-description-handler/session-description-handler-factory-default.ts +45 -0
- package/src/platform/web/session-description-handler/session-description-handler-factory-options.ts +10 -0
- package/src/platform/web/session-description-handler/session-description-handler-factory.ts +17 -0
- package/src/platform/web/session-description-handler/session-description-handler-options.ts +56 -0
- package/src/platform/web/session-description-handler/session-description-handler.ts +938 -0
- package/src/platform/web/simple-user/api-extractor.json +358 -0
- package/src/platform/web/simple-user/index.ts +7 -0
- package/src/platform/web/simple-user/simple-user-delegate.ts +82 -0
- package/src/platform/web/simple-user/simple-user-options.ts +102 -0
- package/src/platform/web/simple-user/simple-user.ts +1099 -0
- package/src/platform/web/transport/api-extractor.json +358 -0
- package/src/platform/web/transport/index.ts +6 -0
- package/src/platform/web/transport/transport-options.ts +34 -0
- package/src/platform/web/transport/transport.ts +742 -0
- package/src/version.ts +8 -0
- package/src/webPhoneSdk.ts +67 -0
- package/src/webrtc.ts +318 -0
- package/tsconfig.json +26 -10
- /package/dist/{types/config.d.ts → config.d.ts} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Parameters } from "./parameters";
|
|
2
|
+
import { URI } from "./uri";
|
|
3
|
+
/**
|
|
4
|
+
* Name Address SIP header.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class NameAddrHeader extends Parameters {
|
|
8
|
+
uri: URI;
|
|
9
|
+
private _displayName;
|
|
10
|
+
/**
|
|
11
|
+
* Constructor
|
|
12
|
+
* @param uri -
|
|
13
|
+
* @param displayName -
|
|
14
|
+
* @param parameters -
|
|
15
|
+
*/
|
|
16
|
+
constructor(uri: URI, displayName: string, parameters: {
|
|
17
|
+
[name: string]: string;
|
|
18
|
+
});
|
|
19
|
+
get friendlyName(): string;
|
|
20
|
+
get displayName(): string;
|
|
21
|
+
set displayName(value: string);
|
|
22
|
+
clone(): NameAddrHeader;
|
|
23
|
+
toString(): string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export declare class Parameters {
|
|
5
|
+
parameters: {
|
|
6
|
+
[name: string]: string | null;
|
|
7
|
+
};
|
|
8
|
+
constructor(parameters: {
|
|
9
|
+
[name: string]: string | number | null | undefined;
|
|
10
|
+
});
|
|
11
|
+
setParam(key: string, value: string | number | null | undefined): void;
|
|
12
|
+
getParam(key: string): string | null | undefined;
|
|
13
|
+
hasParam(key: string): boolean;
|
|
14
|
+
deleteParam(key: string): string | null | undefined;
|
|
15
|
+
clearParams(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface IFilePosition {
|
|
2
|
+
offset: number;
|
|
3
|
+
line: number;
|
|
4
|
+
column: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IFileRange {
|
|
7
|
+
start: IFilePosition;
|
|
8
|
+
end: IFilePosition;
|
|
9
|
+
}
|
|
10
|
+
export interface ILiteralExpectation {
|
|
11
|
+
type: "literal";
|
|
12
|
+
text: string;
|
|
13
|
+
ignoreCase: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IClassParts extends Array<string | IClassParts> {
|
|
16
|
+
}
|
|
17
|
+
export interface IClassExpectation {
|
|
18
|
+
type: "class";
|
|
19
|
+
parts: IClassParts;
|
|
20
|
+
inverted: boolean;
|
|
21
|
+
ignoreCase: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IAnyExpectation {
|
|
24
|
+
type: "any";
|
|
25
|
+
}
|
|
26
|
+
export interface IEndExpectation {
|
|
27
|
+
type: "end";
|
|
28
|
+
}
|
|
29
|
+
export interface IOtherExpectation {
|
|
30
|
+
type: "other";
|
|
31
|
+
description: string;
|
|
32
|
+
}
|
|
33
|
+
export type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;
|
|
34
|
+
export declare class SyntaxError extends Error {
|
|
35
|
+
static buildMessage(expected: Expectation[], found: string | null): string;
|
|
36
|
+
message: string;
|
|
37
|
+
expected: Expectation[];
|
|
38
|
+
found: string | null;
|
|
39
|
+
location: IFileRange;
|
|
40
|
+
name: string;
|
|
41
|
+
constructor(message: string, expected: Expectation[], found: string | null, location: IFileRange);
|
|
42
|
+
}
|
|
43
|
+
export interface IParseOptions {
|
|
44
|
+
filename?: string;
|
|
45
|
+
startRule?: string;
|
|
46
|
+
tracer?: any;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}
|
|
49
|
+
export type ParseFunction = (input: string, options?: IParseOptions) => any;
|
|
50
|
+
export declare const parse: ParseFunction;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Parameters } from "./parameters";
|
|
2
|
+
/**
|
|
3
|
+
* URI.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class URI extends Parameters {
|
|
7
|
+
headers: {
|
|
8
|
+
[name: string]: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
private normal;
|
|
11
|
+
private raw;
|
|
12
|
+
/**
|
|
13
|
+
* Constructor
|
|
14
|
+
* @param scheme -
|
|
15
|
+
* @param user -
|
|
16
|
+
* @param host -
|
|
17
|
+
* @param port -
|
|
18
|
+
* @param parameters -
|
|
19
|
+
* @param headers -
|
|
20
|
+
*/
|
|
21
|
+
constructor(scheme: string, user: string, host: string, port?: number, parameters?: {
|
|
22
|
+
[name: string]: string | number | null;
|
|
23
|
+
}, headers?: {
|
|
24
|
+
[name: string]: Array<string>;
|
|
25
|
+
});
|
|
26
|
+
get scheme(): string;
|
|
27
|
+
set scheme(value: string);
|
|
28
|
+
get user(): string | undefined;
|
|
29
|
+
set user(value: string | undefined);
|
|
30
|
+
get host(): string;
|
|
31
|
+
set host(value: string);
|
|
32
|
+
get aor(): string;
|
|
33
|
+
get port(): number | undefined;
|
|
34
|
+
set port(value: number | undefined);
|
|
35
|
+
setHeader(name: string, value: Array<string> | string): void;
|
|
36
|
+
getHeader(name: string): Array<string> | undefined;
|
|
37
|
+
hasHeader(name: string): boolean;
|
|
38
|
+
deleteHeader(header: string): Array<string> | undefined;
|
|
39
|
+
clearHeaders(): void;
|
|
40
|
+
clone(): URI;
|
|
41
|
+
toRaw(): string;
|
|
42
|
+
toString(): string;
|
|
43
|
+
private get _normal();
|
|
44
|
+
private get _raw();
|
|
45
|
+
private _toString;
|
|
46
|
+
private escapeUser;
|
|
47
|
+
private headerize;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if URIs are equivalent per RFC 3261 Section 19.1.4.
|
|
51
|
+
* @param a URI to compare
|
|
52
|
+
* @param b URI to compare
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* 19.1.4 URI Comparison
|
|
56
|
+
* Some operations in this specification require determining whether two
|
|
57
|
+
* SIP or SIPS URIs are equivalent.
|
|
58
|
+
*
|
|
59
|
+
* https://tools.ietf.org/html/rfc3261#section-19.1.4
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
export declare function equivalentURI(a: URI, b: URI): boolean;
|
|
@@ -54,7 +54,7 @@ interface MuteOrUnMuteParams {
|
|
|
54
54
|
fail?: Function;
|
|
55
55
|
}
|
|
56
56
|
interface TransferParams {
|
|
57
|
-
|
|
57
|
+
mode: String;
|
|
58
58
|
number: String;
|
|
59
59
|
agentNumber?: String;
|
|
60
60
|
success?: Function;
|
|
@@ -92,6 +92,7 @@ interface consultParams {
|
|
|
92
92
|
fail?: Function;
|
|
93
93
|
}
|
|
94
94
|
interface cancleConsultParams {
|
|
95
|
+
agentNumber: String;
|
|
95
96
|
success?: Function;
|
|
96
97
|
fail?: Function;
|
|
97
98
|
}
|
|
@@ -100,14 +101,17 @@ interface stopConsultParams {
|
|
|
100
101
|
fail?: Function;
|
|
101
102
|
}
|
|
102
103
|
interface resumeConsultParams {
|
|
104
|
+
agentNumber: String;
|
|
103
105
|
success?: Function;
|
|
104
106
|
fail?: Function;
|
|
105
107
|
}
|
|
106
108
|
interface consultTransferParams {
|
|
109
|
+
agentNumber: String;
|
|
107
110
|
success?: Function;
|
|
108
111
|
fail?: Function;
|
|
109
112
|
}
|
|
110
113
|
interface threeWayCallParams {
|
|
114
|
+
agentNumber: String;
|
|
111
115
|
success?: Function;
|
|
112
116
|
fail?: Function;
|
|
113
117
|
}
|
|
@@ -164,7 +168,7 @@ export default class ueSoftphone {
|
|
|
164
168
|
accept(): void;
|
|
165
169
|
connect(): void;
|
|
166
170
|
disconnect(): void;
|
|
167
|
-
isConnected():
|
|
171
|
+
isConnected(): boolean;
|
|
168
172
|
sendDTMF(tone: string): void;
|
|
169
173
|
};
|
|
170
174
|
get call(): {
|
|
@@ -188,7 +192,7 @@ export default class ueSoftphone {
|
|
|
188
192
|
accept(): void;
|
|
189
193
|
connect(): void;
|
|
190
194
|
disconnect(): void;
|
|
191
|
-
isConnected():
|
|
195
|
+
isConnected(): boolean;
|
|
192
196
|
sendDTMF(tone: string): void;
|
|
193
197
|
};
|
|
194
198
|
}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
type DebugType = "trace" | "debug" | "log" | "warn" | "error" | "all";
|
|
2
|
+
type ExtenType = "PSTN" | "SIP" | "WEBRTC";
|
|
3
|
+
interface AudioInfo {
|
|
4
|
+
notOpenAudioMsg: string;
|
|
5
|
+
notOpenAudioCode: number;
|
|
6
|
+
notOpenAudioMsgEn: string;
|
|
7
|
+
forbiddenAudioMsg: string;
|
|
8
|
+
forbiddenAudioCode: number;
|
|
9
|
+
forbiddenAudioMsgEn: string;
|
|
10
|
+
}
|
|
11
|
+
interface InitOptions {
|
|
12
|
+
accountId?: string;
|
|
13
|
+
agentNumber?: string;
|
|
14
|
+
password?: string;
|
|
15
|
+
loginType?: ExtenType;
|
|
16
|
+
debug?: DebugType | DebugType[] | boolean;
|
|
17
|
+
success?: Function;
|
|
18
|
+
error?: Function;
|
|
19
|
+
server?: string;
|
|
20
|
+
audioInfo?: AudioInfo;
|
|
21
|
+
}
|
|
22
|
+
interface OnCallEventParams {
|
|
23
|
+
success?: Function;
|
|
24
|
+
message?: Function;
|
|
25
|
+
error?: Function;
|
|
26
|
+
}
|
|
27
|
+
interface DialoutParams {
|
|
28
|
+
agentNumber?: String;
|
|
29
|
+
accountId: String;
|
|
30
|
+
agentId: String;
|
|
31
|
+
loginType?: String;
|
|
32
|
+
customerNumber: String;
|
|
33
|
+
agentTimeout?: String;
|
|
34
|
+
customerTimeout?: String;
|
|
35
|
+
agentDisNumber?: String;
|
|
36
|
+
customerDisNumber?: String;
|
|
37
|
+
extras?: any;
|
|
38
|
+
success?: Function;
|
|
39
|
+
fail?: Function;
|
|
40
|
+
}
|
|
41
|
+
interface HangupParams {
|
|
42
|
+
success?: Function;
|
|
43
|
+
fail?: Function;
|
|
44
|
+
}
|
|
45
|
+
interface HoldOrUnHoldParams {
|
|
46
|
+
type: String;
|
|
47
|
+
success?: Function;
|
|
48
|
+
fail?: Function;
|
|
49
|
+
}
|
|
50
|
+
interface MuteOrUnMuteParams {
|
|
51
|
+
type: String;
|
|
52
|
+
direction: String;
|
|
53
|
+
success?: Function;
|
|
54
|
+
fail?: Function;
|
|
55
|
+
}
|
|
56
|
+
interface TransferParams {
|
|
57
|
+
mode: String;
|
|
58
|
+
number: String;
|
|
59
|
+
agentNumber?: String;
|
|
60
|
+
success?: Function;
|
|
61
|
+
fail?: Function;
|
|
62
|
+
}
|
|
63
|
+
interface UpdateLoginTypeParams {
|
|
64
|
+
loginType: ExtenType;
|
|
65
|
+
loginNumber?: String;
|
|
66
|
+
success?: Function;
|
|
67
|
+
fail?: Function;
|
|
68
|
+
}
|
|
69
|
+
interface GetAgentPhoneBarParams {
|
|
70
|
+
success?: Function;
|
|
71
|
+
fail?: Function;
|
|
72
|
+
}
|
|
73
|
+
interface GetQueueOnlineAgentsParams {
|
|
74
|
+
success?: Function;
|
|
75
|
+
fail?: Function;
|
|
76
|
+
}
|
|
77
|
+
interface AgentOfflineParams {
|
|
78
|
+
success?: Function;
|
|
79
|
+
fail?: Function;
|
|
80
|
+
toAnswerOffline?: String;
|
|
81
|
+
}
|
|
82
|
+
interface UpdateAgentStatusParams {
|
|
83
|
+
stateNumber: String;
|
|
84
|
+
success?: Function;
|
|
85
|
+
fail?: Function;
|
|
86
|
+
}
|
|
87
|
+
interface consultParams {
|
|
88
|
+
mode: String;
|
|
89
|
+
number: String;
|
|
90
|
+
agentNumber: String;
|
|
91
|
+
success?: Function;
|
|
92
|
+
fail?: Function;
|
|
93
|
+
}
|
|
94
|
+
interface cancleConsultParams {
|
|
95
|
+
agentNumber: String;
|
|
96
|
+
success?: Function;
|
|
97
|
+
fail?: Function;
|
|
98
|
+
}
|
|
99
|
+
interface stopConsultParams {
|
|
100
|
+
success?: Function;
|
|
101
|
+
fail?: Function;
|
|
102
|
+
}
|
|
103
|
+
interface resumeConsultParams {
|
|
104
|
+
agentNumber: String;
|
|
105
|
+
success?: Function;
|
|
106
|
+
fail?: Function;
|
|
107
|
+
}
|
|
108
|
+
interface consultTransferParams {
|
|
109
|
+
agentNumber: String;
|
|
110
|
+
success?: Function;
|
|
111
|
+
fail?: Function;
|
|
112
|
+
}
|
|
113
|
+
interface threeWayCallParams {
|
|
114
|
+
agentNumber: String;
|
|
115
|
+
success?: Function;
|
|
116
|
+
fail?: Function;
|
|
117
|
+
}
|
|
118
|
+
interface satisfactionParams {
|
|
119
|
+
type: String;
|
|
120
|
+
success?: Function;
|
|
121
|
+
fail?: Function;
|
|
122
|
+
}
|
|
123
|
+
interface meetingParams {
|
|
124
|
+
number: String;
|
|
125
|
+
success?: Function;
|
|
126
|
+
fail?: Function;
|
|
127
|
+
}
|
|
128
|
+
export default class ueSoftphone {
|
|
129
|
+
static ueTimer: any;
|
|
130
|
+
static loginToken: String | undefined;
|
|
131
|
+
static agentInfo: any;
|
|
132
|
+
static initOptions: InitOptions;
|
|
133
|
+
static webPhone: any;
|
|
134
|
+
static callApiUrl: String;
|
|
135
|
+
static agentextras: any;
|
|
136
|
+
static Socketinstance: any;
|
|
137
|
+
static noop(): void;
|
|
138
|
+
static debug: (msg: any) => void;
|
|
139
|
+
static log: (msg: any) => void;
|
|
140
|
+
static warn: (msg: any) => void;
|
|
141
|
+
static error: (msg: any) => void;
|
|
142
|
+
static trace: (msg: any) => void;
|
|
143
|
+
static newWebSocket: (server: string, proto: any) => any;
|
|
144
|
+
static request: (server: string, proto: any) => any;
|
|
145
|
+
private attachEventCallbacks;
|
|
146
|
+
constructor(options?: InitOptions);
|
|
147
|
+
private init;
|
|
148
|
+
private login;
|
|
149
|
+
static createEventHandle(callbacks?: any): void;
|
|
150
|
+
private getWebrtcInfo;
|
|
151
|
+
private initAttachEvent;
|
|
152
|
+
static useDefaultDependencies(deps: any): {
|
|
153
|
+
newWebSocket(server: string, proto: any): any;
|
|
154
|
+
request(url: string, options: any): any;
|
|
155
|
+
};
|
|
156
|
+
private static initWebrtcEvent;
|
|
157
|
+
private openMediaAudio;
|
|
158
|
+
listenCallEvent: (callbacks: OnCallEventParams) => void;
|
|
159
|
+
get agent(): {
|
|
160
|
+
switchLoginType(params: UpdateLoginTypeParams): Promise<void>;
|
|
161
|
+
findPhoneBarList(params: GetAgentPhoneBarParams): void;
|
|
162
|
+
switchPhoneBar(params: UpdateAgentStatusParams): void;
|
|
163
|
+
logout(params: AgentOfflineParams): void;
|
|
164
|
+
findIdleAgentsForQueue(params: GetQueueOnlineAgentsParams): void;
|
|
165
|
+
getAvailableSipNumberList(params: any): void;
|
|
166
|
+
};
|
|
167
|
+
get webrtc(): {
|
|
168
|
+
accept(): void;
|
|
169
|
+
connect(): void;
|
|
170
|
+
disconnect(): void;
|
|
171
|
+
isConnected(): boolean;
|
|
172
|
+
sendDTMF(tone: string): void;
|
|
173
|
+
};
|
|
174
|
+
get call(): {
|
|
175
|
+
callout(params: DialoutParams): Promise<void>;
|
|
176
|
+
hangup(params: HangupParams): void;
|
|
177
|
+
holdOrUnHold(params: HoldOrUnHoldParams): void;
|
|
178
|
+
muteOrUnMute(params: MuteOrUnMuteParams): void;
|
|
179
|
+
transfer(params: TransferParams): void;
|
|
180
|
+
consult(params: consultParams): void;
|
|
181
|
+
cancelconsult(params: cancleConsultParams): void;
|
|
182
|
+
endConsult(params: stopConsultParams): void;
|
|
183
|
+
callbackConsult(params: resumeConsultParams): void;
|
|
184
|
+
consultTransfer(params: consultTransferParams): void;
|
|
185
|
+
threeWayCall(params: threeWayCallParams): void;
|
|
186
|
+
evaluate(params: satisfactionParams): void;
|
|
187
|
+
meeting(params: meetingParams): void;
|
|
188
|
+
};
|
|
189
|
+
private _callApi;
|
|
190
|
+
private _agentApi;
|
|
191
|
+
_webPhoneApi: () => {
|
|
192
|
+
accept(): void;
|
|
193
|
+
connect(): void;
|
|
194
|
+
disconnect(): void;
|
|
195
|
+
isConnected(): boolean;
|
|
196
|
+
sendDTMF(tone: string): void;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SessionDescriptionHandlerModifier } from "../../../api";
|
|
2
|
+
/**
|
|
3
|
+
* Modifier.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare function stripTcpCandidates(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
7
|
+
/**
|
|
8
|
+
* Modifier.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function stripTelephoneEvent(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
12
|
+
/**
|
|
13
|
+
* Modifier.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare function cleanJitsiSdpImageattr(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
17
|
+
/**
|
|
18
|
+
* Modifier.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare function stripG722(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
22
|
+
/**
|
|
23
|
+
* Modifier.
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare function stripRtpPayload(payload: string): SessionDescriptionHandlerModifier;
|
|
27
|
+
/**
|
|
28
|
+
* Modifier.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare function stripVideo(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
32
|
+
/**
|
|
33
|
+
* Modifier.
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export declare function addMidLines(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
37
|
+
/**
|
|
38
|
+
* The modifier that should be used when the session would like to place the call on hold.
|
|
39
|
+
* @param description - The description that will be modified.
|
|
40
|
+
*/
|
|
41
|
+
export declare function holdModifier(description: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A SessionDescriptionHandler for web browsers.
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
*/
|
|
5
|
+
export * from "./media-stream-factory-default";
|
|
6
|
+
export * from "./media-stream-factory";
|
|
7
|
+
export * from "./peer-connection-configuration-default";
|
|
8
|
+
export * from "./peer-connection-delegate";
|
|
9
|
+
export * from "./session-description-handler-configuration";
|
|
10
|
+
export * from "./session-description-handler-factory-default";
|
|
11
|
+
export * from "./session-description-handler-factory-options";
|
|
12
|
+
export * from "./session-description-handler-factory";
|
|
13
|
+
export * from "./session-description-handler-options";
|
|
14
|
+
export * from "./session-description-handler";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SessionDescriptionHandler } from "./session-description-handler";
|
|
2
|
+
/**
|
|
3
|
+
* Interface of factory function which produces a MediaStream.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type MediaStreamFactory = (constraints: MediaStreamConstraints, sessionDescriptionHandler: SessionDescriptionHandler) => Promise<MediaStream>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delegate to handle PeerConnection state changes.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface PeerConnectionDelegate {
|
|
6
|
+
/**
|
|
7
|
+
* This happens whenever the aggregate state of the connection changes.
|
|
8
|
+
* The aggregate state is a combination of the states of all of the
|
|
9
|
+
* individual network transports being used by the connection.
|
|
10
|
+
* @param event - Event.
|
|
11
|
+
*/
|
|
12
|
+
onconnectionstatechange?(event: Event): void;
|
|
13
|
+
/**
|
|
14
|
+
* Triggered when an RTCDataChannel is added to the connection by the
|
|
15
|
+
* remote peer calling createDataChannel().
|
|
16
|
+
* @param event - RTCDataChannelEvent.
|
|
17
|
+
*/
|
|
18
|
+
ondatachannel?(event: RTCDataChannelEvent): void;
|
|
19
|
+
/**
|
|
20
|
+
* Triggered when a new ICE candidate has been found.
|
|
21
|
+
* @param event - RTCPeerConnectionIceEvent.
|
|
22
|
+
*/
|
|
23
|
+
onicecandidate?(event: RTCPeerConnectionIceEvent): void;
|
|
24
|
+
/**
|
|
25
|
+
* Triggered when an error occurred during ICE candidate gathering.
|
|
26
|
+
* @param event - RTCPeerConnectionIceErrorEvent.
|
|
27
|
+
*/
|
|
28
|
+
onicecandidateerror?(event: RTCPeerConnectionIceErrorEvent): void;
|
|
29
|
+
/**
|
|
30
|
+
* This happens whenever the local ICE agent needs to deliver a message to
|
|
31
|
+
* the other peer through the signaling server. This lets the ICE agent
|
|
32
|
+
* perform negotiation with the remote peer without the browser itself
|
|
33
|
+
* needing to know any specifics about the technology being used for
|
|
34
|
+
* signalingTriggered when the IceConnectionState changes.
|
|
35
|
+
* @param event - Event.
|
|
36
|
+
*/
|
|
37
|
+
oniceconnectionstatechange?(event: Event): void;
|
|
38
|
+
/**
|
|
39
|
+
* Triggered when the ICE gathering state changes.
|
|
40
|
+
* @param event - Event.
|
|
41
|
+
*/
|
|
42
|
+
onicegatheringstatechange?(event: Event): void;
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when renegotiation is necessary.
|
|
45
|
+
* @param event - Event.
|
|
46
|
+
*/
|
|
47
|
+
onnegotiationneeded?(event: Event): void;
|
|
48
|
+
/**
|
|
49
|
+
* Triggered when the SignalingState changes.
|
|
50
|
+
* @param event - Event.
|
|
51
|
+
*/
|
|
52
|
+
onsignalingstatechange?(event: Event): void;
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when when a statistics object being monitored is deleted.
|
|
55
|
+
* @param event - Event.
|
|
56
|
+
*/
|
|
57
|
+
onstatsended?(event: Event): void;
|
|
58
|
+
/**
|
|
59
|
+
* Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription.
|
|
60
|
+
* @param event - Event.
|
|
61
|
+
*/
|
|
62
|
+
ontrack?(event: Event): void;
|
|
63
|
+
}
|
package/dist/platform/web/session-description-handler/session-description-handler-configuration.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for SessionDescriptionHandler.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface SessionDescriptionHandlerConfiguration {
|
|
6
|
+
/**
|
|
7
|
+
* The maximum duration to wait in ms for ICE gathering to complete.
|
|
8
|
+
* If undefined, implementation dependent.
|
|
9
|
+
* If zero, no timeout.
|
|
10
|
+
*/
|
|
11
|
+
iceGatheringTimeout?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Peer connection options.
|
|
14
|
+
*/
|
|
15
|
+
peerConnectionConfiguration?: RTCConfiguration;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SessionDescriptionHandler } from "./session-description-handler";
|
|
2
|
+
import { SessionDescriptionHandlerFactory } from "./session-description-handler-factory";
|
|
3
|
+
/**
|
|
4
|
+
* Function which returns a SessionDescriptionHandlerFactory.
|
|
5
|
+
* @remarks
|
|
6
|
+
* See {@link defaultPeerConnectionConfiguration} for the default peer connection configuration.
|
|
7
|
+
* The ICE gathering timeout defaults to 5000ms.
|
|
8
|
+
* @param mediaStreamFactory - MediaStream factory.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function defaultSessionDescriptionHandlerFactory(mediaStreamFactory?: (constraints: MediaStreamConstraints, sessionDescriptionHandler: SessionDescriptionHandler) => Promise<MediaStream>): SessionDescriptionHandlerFactory;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SessionDescriptionHandlerConfiguration } from "./session-description-handler-configuration";
|
|
2
|
+
/**
|
|
3
|
+
* Options for SessionDescriptionHandlerFactory.
|
|
4
|
+
* @remarks
|
|
5
|
+
* The "options" are provided as part of the UserAgent configuration and passed through
|
|
6
|
+
* on every call to SessionDescriptionHandlerFactory's constructor.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export type SessionDescriptionHandlerFactoryOptions = SessionDescriptionHandlerConfiguration;
|
package/dist/platform/web/session-description-handler/session-description-handler-factory.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Session, SessionDescriptionHandlerFactory as SessionDescriptionHandlerFactoryDefinition } from "../../../api";
|
|
2
|
+
import { SessionDescriptionHandler } from "./session-description-handler";
|
|
3
|
+
import { SessionDescriptionHandlerFactoryOptions } from "./session-description-handler-factory-options";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for {@link SessionDescriptionHandler}.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface SessionDescriptionHandlerFactory extends SessionDescriptionHandlerFactoryDefinition {
|
|
9
|
+
/**
|
|
10
|
+
* SessionDescriptionHandler factory function.
|
|
11
|
+
* @remarks
|
|
12
|
+
* The `options` are provided as part of the UserAgent configuration
|
|
13
|
+
* and passed through on every call to SessionDescriptionHandlerFactory's constructor.
|
|
14
|
+
*/
|
|
15
|
+
(session: Session, options?: SessionDescriptionHandlerFactoryOptions): SessionDescriptionHandler;
|
|
16
|
+
}
|
package/dist/platform/web/session-description-handler/session-description-handler-options.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SessionDescriptionHandlerOptions as SessionDescriptionHandlerOptionsDefinition } from "../../../api";
|
|
2
|
+
/**
|
|
3
|
+
* Options for {@link SessionDescriptionHandler}.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface SessionDescriptionHandlerOptions extends SessionDescriptionHandlerOptionsDefinition {
|
|
7
|
+
/**
|
|
8
|
+
* Answer options to use when creating an answer.
|
|
9
|
+
*/
|
|
10
|
+
answerOptions?: RTCAnswerOptions;
|
|
11
|
+
/**
|
|
12
|
+
* Constraints to use when creating local media stream.
|
|
13
|
+
* @remarks
|
|
14
|
+
* If undefined, defaults to audio true and video false.
|
|
15
|
+
* If audio and video are false, media stream will have no tracks.
|
|
16
|
+
*/
|
|
17
|
+
constraints?: MediaStreamConstraints;
|
|
18
|
+
/**
|
|
19
|
+
* If true, create a data channel when making initial offer.
|
|
20
|
+
*/
|
|
21
|
+
dataChannel?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* A human-readable name to use when creating the data channel.
|
|
24
|
+
*/
|
|
25
|
+
dataChannelLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Configuration options for creating the data channel.
|
|
28
|
+
*/
|
|
29
|
+
dataChannelOptions?: RTCDataChannelInit;
|
|
30
|
+
/**
|
|
31
|
+
* If true, offer and answer directions will be set to place peer on hold.
|
|
32
|
+
*/
|
|
33
|
+
hold?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The maximum duration to wait in ms for ICE gathering to complete.
|
|
36
|
+
* No timeout if undefined or zero.
|
|
37
|
+
*/
|
|
38
|
+
iceGatheringTimeout?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Offer options to use when creating an offer.
|
|
41
|
+
*/
|
|
42
|
+
offerOptions?: RTCOfferOptions;
|
|
43
|
+
/**
|
|
44
|
+
* Called upon creating a data channel.
|
|
45
|
+
*/
|
|
46
|
+
onDataChannel?: (dataChannel: RTCDataChannel) => void;
|
|
47
|
+
}
|