@webex/test-helper-mock-webex 3.0.0-beta.9 → 3.0.0-bnr.2
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.js +19 -31
- package/dist/index.js.map +1 -1
- package/dist/types/@webex/common/src/base64.d.ts +38 -0
- package/dist/types/@webex/common/src/browser-detection.d.ts +8 -0
- package/dist/types/@webex/common/src/capped-debounce.d.ts +12 -0
- package/dist/types/@webex/common/src/check-required.d.ts +11 -0
- package/dist/types/@webex/common/src/constants.d.ts +76 -0
- package/dist/types/@webex/common/src/defer.d.ts +23 -0
- package/dist/types/@webex/common/src/deprecated.d.ts +7 -0
- package/dist/types/@webex/common/src/event-envelope.d.ts +13 -0
- package/dist/types/@webex/common/src/events.d.ts +15 -0
- package/dist/types/@webex/common/src/exception.d.ts +23 -0
- package/dist/types/@webex/common/src/in-browser/browser.d.ts +2 -0
- package/dist/types/@webex/common/src/in-browser/index.d.ts +1 -0
- package/dist/types/@webex/common/src/in-browser/node.d.ts +2 -0
- package/dist/types/@webex/common/src/index.d.ts +21 -0
- package/dist/types/@webex/common/src/isBuffer.d.ts +2 -0
- package/dist/types/@webex/common/src/make-state-datatype.d.ts +11 -0
- package/dist/types/@webex/common/src/one-flight.d.ts +9 -0
- package/dist/types/@webex/common/src/patterns.d.ts +8 -0
- package/dist/types/@webex/common/src/resolve-with.d.ts +22 -0
- package/dist/types/@webex/common/src/retry.d.ts +13 -0
- package/dist/types/@webex/common/src/tap.d.ts +17 -0
- package/dist/types/@webex/common/src/template-container.d.ts +59 -0
- package/dist/types/@webex/common/src/uuid-utils.d.ts +112 -0
- package/dist/types/@webex/common/src/while-in-flight.d.ts +7 -0
- package/dist/types/@webex/common/test/unit/spec/capped-debounce.d.ts +1 -0
- package/dist/types/@webex/common/test/unit/spec/common.d.ts +1 -0
- package/dist/types/@webex/common/test/unit/spec/exception.d.ts +1 -0
- package/dist/types/@webex/common/test/unit/spec/one-flight.d.ts +1 -0
- package/dist/types/@webex/common/test/unit/spec/template-container.d.ts +1 -0
- package/dist/types/@webex/common/test/unit/spec/while-in-flight.d.ts +1 -0
- package/dist/types/@webex/common-evented/src/index.d.ts +9 -0
- package/dist/types/@webex/common-evented/test/unit/spec/evented.d.ts +1 -0
- package/dist/types/@webex/common-timers/src/index.d.ts +19 -0
- package/dist/types/@webex/helper-html/browsers.d.ts +2 -0
- package/dist/types/@webex/helper-html/src/html-base.d.ts +12 -0
- package/dist/types/@webex/helper-html/src/html.d.ts +5 -0
- package/dist/types/@webex/helper-html/src/html.shim.d.ts +33 -0
- package/dist/types/@webex/helper-html/src/index.d.ts +1 -0
- package/dist/types/@webex/helper-html/test/unit/spec/html.d.ts +1 -0
- package/dist/types/@webex/helper-image/src/detect-filetype.d.ts +7 -0
- package/dist/types/@webex/helper-image/src/index.d.ts +26 -0
- package/dist/types/@webex/helper-image/src/process-image.browser.d.ts +19 -0
- package/dist/types/@webex/helper-image/src/process-image.d.ts +17 -0
- package/dist/types/@webex/helper-image/test/unit/spec/index.d.ts +1 -0
- package/dist/types/@webex/http-core/src/http-error-subtypes.d.ts +8 -0
- package/dist/types/@webex/http-core/src/http-error.d.ts +41 -0
- package/dist/types/@webex/http-core/src/index.d.ts +7 -0
- package/dist/types/@webex/http-core/src/interceptors/http-status.d.ts +17 -0
- package/dist/types/@webex/http-core/src/lib/detect.d.ts +6 -0
- package/dist/types/@webex/http-core/src/lib/interceptor.d.ts +51 -0
- package/dist/types/@webex/http-core/src/lib/xhr.d.ts +6 -0
- package/dist/types/@webex/http-core/src/progress-event.d.ts +18 -0
- package/dist/types/@webex/http-core/src/request/index.d.ts +5 -0
- package/dist/types/@webex/http-core/src/request/request.d.ts +6 -0
- package/dist/types/@webex/http-core/src/request/request.shim.d.ts +6 -0
- package/dist/types/@webex/http-core/test/integration/spec/http-error.d.ts +1 -0
- package/dist/types/@webex/http-core/test/integration/spec/interceptor.d.ts +1 -0
- package/dist/types/@webex/http-core/test/integration/spec/progress-event.d.ts +1 -0
- package/dist/types/@webex/http-core/test/integration/spec/request.d.ts +1 -0
- package/dist/types/@webex/http-core/test/unit/spec/interceptors/http-status.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-batcher.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-avatar/src/avatar-url-store.d.ts +50 -0
- package/dist/types/@webex/internal-plugin-avatar/src/avatar.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-avatar/src/config.d.ts +13 -0
- package/dist/types/@webex/internal-plugin-avatar/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-avatar/test/integration/spec/avatar.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-batcher.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar-url-store.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-avatar/test/unit/spec/avatar.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/src/board.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-board/src/config.d.ts +11 -0
- package/dist/types/@webex/internal-plugin-board/src/index.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-board/src/realtime-channel-collection.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-board/src/realtime-channel.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-board/src/realtime.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/board.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/realtime.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/test/integration/spec/sharing-mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/board.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/encryption.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-board/test/unit/spec/realtime.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-calendar/src/calendar.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-calendar/src/collection.d.ts +58 -0
- package/dist/types/@webex/internal-plugin-calendar/src/config.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-calendar/src/constants.d.ts +6 -0
- package/dist/types/@webex/internal-plugin-calendar/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-calendar/src/util.d.ts +15 -0
- package/dist/types/@webex/internal-plugin-calendar/test/integration/spec/calendar.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/calendar.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-calendar/test/unit/spec/utils.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/src/activities.d.ts +32 -0
- package/dist/types/@webex/internal-plugin-conversation/src/activity-thread-ordering.d.ts +18 -0
- package/dist/types/@webex/internal-plugin-conversation/src/config.d.ts +19 -0
- package/dist/types/@webex/internal-plugin-conversation/src/constants.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-conversation/src/conversation.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-conversation/src/convo-error.d.ts +10 -0
- package/dist/types/@webex/internal-plugin-conversation/src/decryption-transforms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/src/encryption-transforms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/src/index.d.ts +3 -0
- package/dist/types/@webex/internal-plugin-conversation/src/share-activity.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-conversation/src/to-array.d.ts +9 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/create.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/encryption.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/get.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/share.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/integration/spec/verbs.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/conversation.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/decrypt-transforms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/encryption-transforms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-conversation/test/unit/spec/share-activity.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/src/config.d.ts +10 -0
- package/dist/types/@webex/internal-plugin-device/src/constants.d.ts +12 -0
- package/dist/types/@webex/internal-plugin-device/src/device.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-device/src/features/feature-collection.d.ts +9 -0
- package/dist/types/@webex/internal-plugin-device/src/features/feature-model.d.ts +29 -0
- package/dist/types/@webex/internal-plugin-device/src/features/features-model.d.ts +9 -0
- package/dist/types/@webex/internal-plugin-device/src/features/index.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-device/src/index.d.ts +8 -0
- package/dist/types/@webex/internal-plugin-device/src/interceptors/device-url.d.ts +15 -0
- package/dist/types/@webex/internal-plugin-device/src/metrics.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-device/test/integration/spec/device.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/integration/spec/webex.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/device.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-collection.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/feature-model.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/features/features-model.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-device/test/unit/spec/interceptors/device-url.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-dss/src/constants.d.ts +14 -0
- package/dist/types/@webex/internal-plugin-dss/src/dss.d.ts +3 -0
- package/dist/types/@webex/internal-plugin-dss/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-dss/src/types.d.ts +28 -0
- package/dist/types/@webex/internal-plugin-dss/test/unit/spec/dss.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/config.d.ts +11 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery-error.d.ts +11 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/ediscovery.d.ts +6 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/index.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/report-request.d.ts +29 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/retry.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-ediscovery/src/transforms.d.ts +35 -0
- package/dist/types/@webex/internal-plugin-ediscovery/test/integration/spec/ediscovery.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/content.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/report.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-ediscovery/test/unit/spec/transforms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-encryption/src/config.d.ts +16 -0
- package/dist/types/@webex/internal-plugin-encryption/src/encryption.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.browser.d.ts +10 -0
- package/dist/types/@webex/internal-plugin-encryption/src/ensure-buffer.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-encryption/src/index.d.ts +3 -0
- package/dist/types/@webex/internal-plugin-encryption/src/kms-batcher.d.ts +6 -0
- package/dist/types/@webex/internal-plugin-encryption/src/kms-certificate-validation.d.ts +24 -0
- package/dist/types/@webex/internal-plugin-encryption/src/kms-dry-error-interceptor.d.ts +25 -0
- package/dist/types/@webex/internal-plugin-encryption/src/kms-errors.d.ts +33 -0
- package/dist/types/@webex/internal-plugin-encryption/src/kms.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/encryption.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/kms.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-encryption/test/integration/spec/payload-transfom.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/encryption.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-encryption/test/unit/spec/kms-certificate-validation.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-feature/src/config.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-feature/src/feature.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-feature/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-feature/test/integration/spec/feature.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-feature/test/unit/spec/feature.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-flag/src/config.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-flag/src/flag.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-flag/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-flag/test/integration/spec/flag.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-flag/test/unit/spec/flag.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-llm/src/constants.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-llm/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-llm/src/llm.d.ts +88 -0
- package/dist/types/@webex/internal-plugin-llm/src/llm.types.d.ts +8 -0
- package/dist/types/@webex/internal-plugin-llm/test/unit/spec/llm.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-locus/src/event-keys.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-locus/src/index.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-locus/src/locus.d.ts +12 -0
- package/dist/types/@webex/internal-plugin-locus/test/unit/spec/locus.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-lyra/src/config.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-lyra/src/device.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-lyra/src/index.d.ts +3 -0
- package/dist/types/@webex/internal-plugin-lyra/src/lyra.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-lyra/src/space.d.ts +7 -0
- package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/device.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-lyra/test/integration/spec/space.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/device.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/lyra.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-lyra/test/unit/spec/space.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/src/config.d.ts +10 -0
- package/dist/types/@webex/internal-plugin-mercury/src/errors.d.ts +31 -0
- package/dist/types/@webex/internal-plugin-mercury/src/index.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-mercury/src/mercury.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-mercury/src/socket/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket-base.d.ts +120 -0
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-mercury/src/socket/socket.shim.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/sharable-mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/test/integration/spec/webex.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/lib/promise-tick.d.ts +9 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/_setup.d.ts +0 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury-events.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-mercury/test/unit/spec/socket.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-metrics/src/batcher.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-metrics/src/call-diagnostic-events-batcher.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-metrics/src/client-metrics-batcher.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-metrics/src/config.d.ts +18 -0
- package/dist/types/@webex/internal-plugin-metrics/src/index.d.ts +3 -0
- package/dist/types/@webex/internal-plugin-metrics/src/metrics.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/batcher.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/call-diagnostic-events-batcher.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/client-metrics-batcher.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-metrics/test/unit/spec/metrics.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-presence/src/config.d.ts +8 -0
- package/dist/types/@webex/internal-plugin-presence/src/constants.d.ts +14 -0
- package/dist/types/@webex/internal-plugin-presence/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-presence/src/presence-batcher.d.ts +6 -0
- package/dist/types/@webex/internal-plugin-presence/src/presence-worker.d.ts +68 -0
- package/dist/types/@webex/internal-plugin-presence/src/presence.d.ts +6 -0
- package/dist/types/@webex/internal-plugin-presence/test/integration/spec/presence.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence-worker.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-presence/test/unit/spec/presence.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-search/src/config.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-search/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-search/src/search.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-search/test/integration/spec/search.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-support/src/config.d.ts +16 -0
- package/dist/types/@webex/internal-plugin-support/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-support/src/support.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-support/test/integration/spec/support.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-support/test/unit/spec/support.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/src/config.d.ts +4 -0
- package/dist/types/@webex/internal-plugin-team/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/src/team.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/actions.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/create.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/get.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/test/integration/spec/mercury.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-team/test/unit/spec/team.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-user/src/config.d.ts +17 -0
- package/dist/types/@webex/internal-plugin-user/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-user/src/user-uuid-batcher.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-user/src/user-uuid-store.d.ts +34 -0
- package/dist/types/@webex/internal-plugin-user/src/user.d.ts +5 -0
- package/dist/types/@webex/internal-plugin-user/test/integration/spec/user.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-user/test/unit/spec/user-uuid-batcher.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-user/test/unit/spec/user.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-voicea/src/constants.d.ts +28 -0
- package/dist/types/@webex/internal-plugin-voicea/src/index.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-voicea/src/utils.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-voicea/src/voicea.d.ts +78 -0
- package/dist/types/@webex/internal-plugin-voicea/src/voicea.types.d.ts +72 -0
- package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/utils.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-voicea/test/unit/spec/voicea.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-wdm/src/index.d.ts +2 -0
- package/dist/types/@webex/internal-plugin-wdm/test/integration/spec/webex.d.ts +1 -0
- package/dist/types/@webex/internal-plugin-wdm/test/unit/spec/device.d.ts +1 -0
- package/dist/types/@webex/jsdoctrinetest/src/assertions/literal.d.ts +12 -0
- package/dist/types/@webex/jsdoctrinetest/src/extract.d.ts +20 -0
- package/dist/types/@webex/jsdoctrinetest/src/index.d.ts +1 -0
- package/dist/types/@webex/jsdoctrinetest/src/mocha-template.d.ts +11 -0
- package/dist/types/@webex/jsdoctrinetest/src/parse.d.ts +7 -0
- package/dist/types/@webex/jsdoctrinetest/src/transform.d.ts +14 -0
- package/dist/types/@webex/jsdoctrinetest/test/unit/spec/default.d.ts +1 -0
- package/dist/types/@webex/plugin-attachment-actions/src/attachmentActions.d.ts +51 -0
- package/dist/types/@webex/plugin-attachment-actions/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-attachment-actions/test/integration/spec/attachmentActions.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization/src/index.browser.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization/src/index.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser/src/authorization.d.ts +8 -0
- package/dist/types/@webex/plugin-authorization-browser/src/config.d.ts +6 -0
- package/dist/types/@webex/plugin-authorization-browser/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-authorization-browser/test/automation/fixtures/app.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/authorization-code-grant.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser/test/automation/spec/implicit-grant.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser/test/integration/spec/authorization.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser/test/unit/spec/authorization.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/authorization.d.ts +12 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/config.d.ts +7 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/fixtures/app.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/automation/spec/authorization-code-grant.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-node/src/authorization.d.ts +7 -0
- package/dist/types/@webex/plugin-authorization-node/src/config.d.ts +4 -0
- package/dist/types/@webex/plugin-authorization-node/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-authorization-node/test/integration/spec/authorization.d.ts +1 -0
- package/dist/types/@webex/plugin-authorization-node/test/unit/spec/authorization.d.ts +1 -0
- package/dist/types/@webex/plugin-device-manager/sample/app.d.ts +141 -0
- package/dist/types/@webex/plugin-device-manager/src/collection.d.ts +8 -0
- package/dist/types/@webex/plugin-device-manager/src/config.d.ts +2 -0
- package/dist/types/@webex/plugin-device-manager/src/constants.d.ts +3 -0
- package/dist/types/@webex/plugin-device-manager/src/device-manager.d.ts +2 -0
- package/dist/types/@webex/plugin-device-manager/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-device-manager/test/unit/spec/index.d.ts +1 -0
- package/dist/types/@webex/plugin-device-manager/webex.d.ts +1 -0
- package/dist/types/@webex/plugin-logger/src/config.d.ts +19 -0
- package/dist/types/@webex/plugin-logger/src/index.d.ts +1 -0
- package/dist/types/@webex/plugin-logger/src/logger.d.ts +7 -0
- package/dist/types/@webex/plugin-logger/test/unit/spec/logger.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/browsers.d.ts +75 -0
- package/dist/types/@webex/plugin-meetings/src/breakouts/breakout.d.ts +8 -0
- package/dist/types/@webex/plugin-meetings/src/breakouts/collection.d.ts +5 -0
- package/dist/types/@webex/plugin-meetings/src/breakouts/index.d.ts +5 -0
- package/dist/types/@webex/plugin-meetings/src/breakouts/request.d.ts +22 -0
- package/dist/types/@webex/plugin-meetings/src/breakouts/utils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/src/common/browser-detection.d.ts +9 -0
- package/dist/types/@webex/plugin-meetings/src/common/collection.d.ts +48 -0
- package/dist/types/@webex/plugin-meetings/src/common/config.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/captcha-error.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/intent-to-join.d.ts +16 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/join-meeting.d.ts +17 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/media.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/parameter.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/password-error.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/permission.d.ts +14 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/reconnection.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/stats.d.ts +15 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/webex-errors.d.ts +69 -0
- package/dist/types/@webex/plugin-meetings/src/common/errors/webex-meetings-error.d.ts +20 -0
- package/dist/types/@webex/plugin-meetings/src/common/events/events-scope.d.ts +17 -0
- package/dist/types/@webex/plugin-meetings/src/common/events/events.d.ts +12 -0
- package/dist/types/@webex/plugin-meetings/src/common/events/trigger-proxy.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/common/events/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/common/logs/logger-config.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/common/logs/logger-proxy.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/common/logs/request.d.ts +34 -0
- package/dist/types/@webex/plugin-meetings/src/common/queue.d.ts +32 -0
- package/dist/types/@webex/plugin-meetings/src/config.d.ts +77 -0
- package/dist/types/@webex/plugin-meetings/src/constants.d.ts +899 -0
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/constants.d.ts +4 -0
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/enums.d.ts +5 -0
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/index.d.ts +120 -0
- package/dist/types/@webex/plugin-meetings/src/controls-options-manager/util.d.ts +7 -0
- package/dist/types/@webex/plugin-meetings/src/index.d.ts +7 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/controlsUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/embeddedAppsUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/fullState.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/hostUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/index.d.ts +269 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/infoUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/mediaSharesUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/parser.d.ts +212 -0
- package/dist/types/@webex/plugin-meetings/src/locus-info/selfUtils.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/media/index.d.ts +32 -0
- package/dist/types/@webex/plugin-meetings/src/media/properties.d.ts +107 -0
- package/dist/types/@webex/plugin-meetings/src/media/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/mediaQualityMetrics/config.d.ts +365 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/effectsState.d.ts +42 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/in-meeting-actions.d.ts +83 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/index.d.ts +1724 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/muteState.d.ts +108 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/request.d.ts +261 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/request.type.d.ts +11 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/state.d.ts +9 -0
- package/dist/types/@webex/plugin-meetings/src/meeting/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/collection.d.ts +20 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/index.d.ts +57 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/meeting-info-v2.d.ts +93 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/request.d.ts +22 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/meeting-info/utilv2.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/meetings/collection.d.ts +23 -0
- package/dist/types/@webex/plugin-meetings/src/meetings/index.d.ts +297 -0
- package/dist/types/@webex/plugin-meetings/src/meetings/request.d.ts +27 -0
- package/dist/types/@webex/plugin-meetings/src/meetings/util.d.ts +18 -0
- package/dist/types/@webex/plugin-meetings/src/member/index.d.ts +146 -0
- package/dist/types/@webex/plugin-meetings/src/member/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/members/collection.d.ts +24 -0
- package/dist/types/@webex/plugin-meetings/src/members/index.d.ts +320 -0
- package/dist/types/@webex/plugin-meetings/src/members/request.d.ts +50 -0
- package/dist/types/@webex/plugin-meetings/src/members/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/metrics/config.d.ts +178 -0
- package/dist/types/@webex/plugin-meetings/src/metrics/constants.d.ts +57 -0
- package/dist/types/@webex/plugin-meetings/src/metrics/index.d.ts +160 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/mediaRequestManager.d.ts +51 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlot.d.ts +66 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/receiveSlotManager.d.ts +46 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMedia.d.ts +93 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaGroup.d.ts +56 -0
- package/dist/types/@webex/plugin-meetings/src/multistream/remoteMediaManager.d.ts +241 -0
- package/dist/types/@webex/plugin-meetings/src/networkQualityMonitor/index.d.ts +70 -0
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/index.d.ts +47 -0
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/request.d.ts +14 -0
- package/dist/types/@webex/plugin-meetings/src/personal-meeting-room/util.d.ts +2 -0
- package/dist/types/@webex/plugin-meetings/src/reachability/index.d.ts +140 -0
- package/dist/types/@webex/plugin-meetings/src/reachability/request.d.ts +35 -0
- package/dist/types/@webex/plugin-meetings/src/reactions/constants.d.ts +3 -0
- package/dist/types/@webex/plugin-meetings/src/reactions/reactions.d.ts +4 -0
- package/dist/types/@webex/plugin-meetings/src/reactions/reactions.type.d.ts +52 -0
- package/dist/types/@webex/plugin-meetings/src/reconnection-manager/index.d.ts +117 -0
- package/dist/types/@webex/plugin-meetings/src/recording-controller/enums.d.ts +7 -0
- package/dist/types/@webex/plugin-meetings/src/recording-controller/index.d.ts +193 -0
- package/dist/types/@webex/plugin-meetings/src/recording-controller/util.d.ts +13 -0
- package/dist/types/@webex/plugin-meetings/src/roap/index.d.ts +77 -0
- package/dist/types/@webex/plugin-meetings/src/roap/request.d.ts +35 -0
- package/dist/types/@webex/plugin-meetings/src/roap/turnDiscovery.d.ts +74 -0
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/global.d.ts +36 -0
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/index.d.ts +195 -0
- package/dist/types/@webex/plugin-meetings/src/statsAnalyzer/mqaUtil.d.ts +24 -0
- package/dist/types/@webex/plugin-meetings/src/transcription/index.d.ts +64 -0
- package/dist/types/@webex/plugin-meetings/test/integration/spec/converged-space-meetings.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/integration/spec/journey.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/integration/spec/space-meeting.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/integration/spec/transcription.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/breakout.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/collection.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/request.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/breakouts/utils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/common/browser-detection.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/common/queue.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/controls-options-manager/util.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/fixture/locus.d.ts +332 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/controlsUtils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/embeddedAppsUtils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/infoUtils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/parser.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfConstant.d.ts +274 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/locus-info/selfUtils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/media/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/media/properties.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/effectsState.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/in-meeting-actions.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/muteState.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/request.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting/utils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/meetinginfov2.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/request.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/util.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meeting-info/utilv2.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/collection.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/meetings/utils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/member/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/member/util.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/request.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/members/utils.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/metrics/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/mediaRequestManager.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlot.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/receiveSlotManager.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMedia.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaGroup.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/multistream/remoteMediaManager.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/networkQualityMonitor/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/personal-meeting-room/personal-meeting-room.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/reachability/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/reconnection-manager/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/recording-controller/util.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/request.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/roap/turnDiscovery.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/unit/spec/stats-analyzer/index.d.ts +1 -0
- package/dist/types/@webex/plugin-meetings/test/utils/cmr.d.ts +6 -0
- package/dist/types/@webex/plugin-meetings/test/utils/constants.d.ts +5 -0
- package/dist/types/@webex/plugin-meetings/test/utils/testUtils.d.ts +27 -0
- package/dist/types/@webex/plugin-meetings/test/utils/webex-config.d.ts +63 -0
- package/dist/types/@webex/plugin-meetings/test/utils/webex-test-users.d.ts +2 -0
- package/dist/types/@webex/plugin-memberships/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-memberships/src/memberships.d.ts +50 -0
- package/dist/types/@webex/plugin-memberships/test/integration/spec/memberships.d.ts +1 -0
- package/dist/types/@webex/plugin-messages/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-messages/src/messages.d.ts +58 -0
- package/dist/types/@webex/plugin-messages/test/integration/spec/messages.d.ts +1 -0
- package/dist/types/@webex/plugin-people/src/config.d.ts +9 -0
- package/dist/types/@webex/plugin-people/src/index.d.ts +1 -0
- package/dist/types/@webex/plugin-people/src/people-batcher.d.ts +6 -0
- package/dist/types/@webex/plugin-people/src/people.d.ts +30 -0
- package/dist/types/@webex/plugin-people/test/integration/spec/people.d.ts +1 -0
- package/dist/types/@webex/plugin-people/test/unit/spec/people-batcher.d.ts +1 -0
- package/dist/types/@webex/plugin-people/test/unit/spec/people.d.ts +1 -0
- package/dist/types/@webex/plugin-rooms/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-rooms/src/rooms.d.ts +41 -0
- package/dist/types/@webex/plugin-rooms/test/integration/spec/rooms.d.ts +1 -0
- package/dist/types/@webex/plugin-team-memberships/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-team-memberships/src/team-memberships.d.ts +49 -0
- package/dist/types/@webex/plugin-team-memberships/test/integration/spec/team-memberships.d.ts +1 -0
- package/dist/types/@webex/plugin-teams/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-teams/src/teams.d.ts +27 -0
- package/dist/types/@webex/plugin-teams/test/integration/spec/teams.d.ts +1 -0
- package/dist/types/@webex/plugin-webhooks/src/index.d.ts +2 -0
- package/dist/types/@webex/plugin-webhooks/src/webhooks.d.ts +48 -0
- package/dist/types/@webex/plugin-webhooks/test/integration/spec/webhooks.d.ts +1 -0
- package/dist/types/@webex/recipe-private-web-client/src/config.d.ts +10 -0
- package/dist/types/@webex/recipe-private-web-client/src/index.d.ts +8 -0
- package/dist/types/@webex/storage-adapter-local-forage/src/index.d.ts +35 -0
- package/dist/types/@webex/storage-adapter-local-forage/test/unit/spec/storage-adapter-local-forage.d.ts +1 -0
- package/dist/types/@webex/storage-adapter-local-storage/src/index.d.ts +66 -0
- package/dist/types/@webex/storage-adapter-local-storage/test/unit/spec/storage-adapter-local-storage.d.ts +1 -0
- package/dist/types/@webex/storage-adapter-session-storage/src/index.d.ts +66 -0
- package/dist/types/@webex/storage-adapter-session-storage/test/unit/spec/storage-adapter-session-storage.d.ts +1 -0
- package/dist/types/@webex/storage-adapter-spec/src/index.d.ts +1 -0
- package/dist/types/@webex/test-helper-appid/src/create-user.browser.d.ts +2 -0
- package/dist/types/@webex/test-helper-appid/src/create-user.d.ts +7 -0
- package/dist/types/@webex/test-helper-appid/src/index.d.ts +7 -0
- package/dist/types/@webex/test-helper-appid/src/router.d.ts +2 -0
- package/dist/types/@webex/test-helper-automation/src/index.d.ts +2 -0
- package/dist/types/@webex/test-helper-automation/src/wd/accept-grant.d.ts +1 -0
- package/dist/types/@webex/test-helper-automation/src/wd/login.d.ts +1 -0
- package/dist/types/@webex/test-helper-automation/src/wd/print-logs.d.ts +1 -0
- package/dist/types/@webex/test-helper-automation/src/wd/submit-password.d.ts +1 -0
- package/dist/types/@webex/test-helper-chai/src/assertions/index.d.ts +2 -0
- package/dist/types/@webex/test-helper-chai/src/assertions/primitives.d.ts +2 -0
- package/dist/types/@webex/test-helper-chai/src/assertions/schemas.d.ts +2 -0
- package/dist/types/@webex/test-helper-chai/src/assertions/should-to-assert.d.ts +2 -0
- package/dist/types/@webex/test-helper-chai/src/index.d.ts +2 -0
- package/dist/types/@webex/test-helper-file/src/file.d.ts +5 -0
- package/dist/types/@webex/test-helper-file/src/file.shim.d.ts +18 -0
- package/dist/types/@webex/test-helper-file/src/index.d.ts +2 -0
- package/dist/types/@webex/test-helper-make-local-url/src/index.d.ts +4 -0
- package/dist/types/@webex/test-helper-mocha/src/index.d.ts +29 -0
- package/dist/types/@webex/test-helper-mock-web-socket/src/index.d.ts +26 -0
- package/dist/types/@webex/test-helper-mock-webex/src/index.d.ts +7 -0
- package/dist/types/@webex/test-helper-refresh-callback/src/index.d.ts +10 -0
- package/dist/types/@webex/test-helper-retry/src/index.d.ts +15 -0
- package/dist/types/@webex/test-helper-server/src/cookies.d.ts +2 -0
- package/dist/types/@webex/test-helper-server/src/files.d.ts +2 -0
- package/dist/types/@webex/test-helper-server/src/form.d.ts +2 -0
- package/dist/types/@webex/test-helper-server/src/index.d.ts +1 -0
- package/dist/types/@webex/test-helper-server/src/json.d.ts +2 -0
- package/dist/types/@webex/test-helper-server/src/reflect.d.ts +10 -0
- package/dist/types/@webex/test-helper-test-users/src/index.d.ts +8 -0
- package/dist/types/@webex/test-users/src/index.d.ts +115 -0
- package/dist/types/@webex/test-users/src/whistler.d.ts +44 -0
- package/dist/types/@webex/test-users/test/integration/spec/index.d.ts +1 -0
- package/dist/types/@webex/test-users/test/integration/spec/whistler.d.ts +1 -0
- package/dist/types/@webex/webex-core/src/config.d.ts +39 -0
- package/dist/types/@webex/webex-core/src/credentials-config.d.ts +2 -0
- package/dist/types/@webex/webex-core/src/index.d.ts +24 -0
- package/dist/types/@webex/webex-core/src/interceptors/auth.d.ts +43 -0
- package/dist/types/@webex/webex-core/src/interceptors/default-options.d.ts +31 -0
- package/dist/types/@webex/webex-core/src/interceptors/embargo.d.ts +16 -0
- package/dist/types/@webex/webex-core/src/interceptors/network-timing.d.ts +30 -0
- package/dist/types/@webex/webex-core/src/interceptors/payload-transformer.d.ts +30 -0
- package/dist/types/@webex/webex-core/src/interceptors/rate-limit.d.ts +61 -0
- package/dist/types/@webex/webex-core/src/interceptors/redirect.d.ts +22 -0
- package/dist/types/@webex/webex-core/src/interceptors/request-event.d.ts +36 -0
- package/dist/types/@webex/webex-core/src/interceptors/request-logger.d.ts +22 -0
- package/dist/types/@webex/webex-core/src/interceptors/request-timing.d.ts +36 -0
- package/dist/types/@webex/webex-core/src/interceptors/response-logger.d.ts +30 -0
- package/dist/types/@webex/webex-core/src/interceptors/user-agent.d.ts +38 -0
- package/dist/types/@webex/webex-core/src/interceptors/webex-tracking-id.d.ts +26 -0
- package/dist/types/@webex/webex-core/src/interceptors/webex-user-agent.d.ts +22 -0
- package/dist/types/@webex/webex-core/src/lib/batcher.d.ts +6 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/credentials.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/grant-errors.d.ts +57 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/index.d.ts +4 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/scope.d.ts +16 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/token-collection.d.ts +2 -0
- package/dist/types/@webex/webex-core/src/lib/credentials/token.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/page.d.ts +76 -0
- package/dist/types/@webex/webex-core/src/lib/services/constants.d.ts +6 -0
- package/dist/types/@webex/webex-core/src/lib/services/index.d.ts +10 -0
- package/dist/types/@webex/webex-core/src/lib/services/interceptors/server-error.d.ts +16 -0
- package/dist/types/@webex/webex-core/src/lib/services/interceptors/service.d.ts +37 -0
- package/dist/types/@webex/webex-core/src/lib/services/metrics.d.ts +4 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-catalog.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-fed-ramp.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-host.d.ts +217 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-registry.d.ts +271 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-state.d.ts +46 -0
- package/dist/types/@webex/webex-core/src/lib/services/service-url.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/services/services.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/stateless-webex-plugin.d.ts +48 -0
- package/dist/types/@webex/webex-core/src/lib/storage/decorators.d.ts +15 -0
- package/dist/types/@webex/webex-core/src/lib/storage/errors.d.ts +10 -0
- package/dist/types/@webex/webex-core/src/lib/storage/index.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/lib/storage/make-webex-plugin-store.d.ts +8 -0
- package/dist/types/@webex/webex-core/src/lib/storage/make-webex-store.d.ts +48 -0
- package/dist/types/@webex/webex-core/src/lib/storage/memory-store-adapter.d.ts +18 -0
- package/dist/types/@webex/webex-core/src/lib/webex-core-plugin-mixin.d.ts +8 -0
- package/dist/types/@webex/webex-core/src/lib/webex-http-error.d.ts +12 -0
- package/dist/types/@webex/webex-core/src/lib/webex-internal-core-plugin-mixin.d.ts +8 -0
- package/dist/types/@webex/webex-core/src/lib/webex-plugin.d.ts +5 -0
- package/dist/types/@webex/webex-core/src/plugins/logger.d.ts +2 -0
- package/dist/types/@webex/webex-core/src/webex-core.d.ts +31 -0
- package/dist/types/@webex/webex-core/src/webex-internal-core.d.ts +7 -0
- package/dist/types/@webex/webex-core/test/integration/spec/credentials/credentials.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/integration/spec/credentials/token.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/integration/spec/services/service-catalog.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/integration/spec/services/services.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/integration/spec/webex-core.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/_setup.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/credentials/credentials.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/credentials/token.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/auth.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/default-options.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/embargo.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/network-timing.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/payload-transformer.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/rate-limit.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/redirect.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/request-timing.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/user-agent.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-tracking-id.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/interceptors/webex-user-agent.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/lib/batcher.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/lib/page.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/lib/webex-plugin.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/server-error.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/interceptors/service.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-catalog.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-host.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-registry.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-state.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/service-url.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/services/services.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/storage/persist.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/storage/storage-adapter.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/storage/wait-for-value.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/webex-core.d.ts +1 -0
- package/dist/types/@webex/webex-core/test/unit/spec/webex-internal-core.d.ts +1 -0
- package/dist/types/@webex/webrtc/src/analyzer.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/constants.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/extractor.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/generator.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/history.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/ice.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/index.d.ts +31 -0
- package/dist/types/@webex/webrtc/src/logger.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/parser.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/stats.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/transformer.d.ts +0 -0
- package/dist/types/@webex/webrtc/src/validator.d.ts +0 -0
- package/dist/types/@webex/xunit-with-logs/src/index.d.ts +43 -0
- package/dist/types/webex/browser.d.ts +5 -0
- package/dist/types/webex/env.d.ts +2 -0
- package/dist/types/webex/src/_setup.d.ts +1 -0
- package/dist/types/webex/src/config-storage.d.ts +5 -0
- package/dist/types/webex/src/config-storage.shim.d.ts +5 -0
- package/dist/types/webex/src/config.d.ts +17 -0
- package/dist/types/webex/src/index.d.ts +11 -0
- package/dist/types/webex/src/webex.d.ts +9 -0
- package/dist/types/webex/test/integration/spec/commonjs.d.ts +1 -0
- package/dist/types/webex/test/integration/spec/env.d.ts +1 -0
- package/dist/types/webex/test/integration/spec/init.d.ts +1 -0
- package/dist/types/webex/test/integration/spec/request.d.ts +1 -0
- package/dist/types/webex/test/unit/spec/webex.d.ts +1 -0
- package/dist/types/webex/umd/webex.min.d.ts +2 -0
- package/package.json +1 -1
- package/src/index.js +135 -119
package/dist/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _Object$keys2 = require("@babel/runtime-corejs2/core-js/object/keys");
|
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
|
|
5
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
|
|
6
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
|
|
7
|
+
var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
|
|
8
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
3
9
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
|
-
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
5
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
6
|
-
|
|
7
12
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
8
|
-
|
|
9
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign"));
|
|
10
|
-
|
|
11
13
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
12
|
-
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys2(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
16
|
/*!
|
|
14
17
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
15
18
|
*/
|
|
@@ -19,28 +22,22 @@ if (typeof _promise.default === 'undefined') {
|
|
|
19
22
|
// eslint-disable-next-line global-require
|
|
20
23
|
require('es6-promise').polyfill();
|
|
21
24
|
}
|
|
22
|
-
|
|
23
25
|
var _ = require('lodash');
|
|
24
|
-
|
|
25
26
|
var sinon = require('sinon');
|
|
26
|
-
|
|
27
27
|
var State = require('ampersand-state');
|
|
28
|
-
|
|
29
28
|
var nonInternalPlugins = ['authorization', 'credentials', 'memberships', 'messages', 'logger', 'people', 'phone', 'meetings', 'rooms', 'teams', 'teamMemberships', 'webhooks'];
|
|
29
|
+
|
|
30
30
|
/**
|
|
31
31
|
* Mock Webex constructor
|
|
32
32
|
* @param {Object} options
|
|
33
33
|
* @returns {MockWebex}
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
35
|
function makeWebex(options) {
|
|
37
36
|
var requestPromise = _promise.default.resolve({
|
|
38
37
|
statusCode: 200,
|
|
39
38
|
body: {}
|
|
40
39
|
});
|
|
41
|
-
|
|
42
40
|
var uploadPromise = _promise.default.resolve({});
|
|
43
|
-
|
|
44
41
|
options = options || {};
|
|
45
42
|
options.children = options.children || {};
|
|
46
43
|
var internalOptions = {};
|
|
@@ -54,23 +51,22 @@ function makeWebex(options) {
|
|
|
54
51
|
}
|
|
55
52
|
});
|
|
56
53
|
internalOptions.children = internalChildren;
|
|
57
|
-
options.children = externalChildren;
|
|
58
|
-
// Because it turns out we're relying on ordering
|
|
54
|
+
options.children = externalChildren;
|
|
59
55
|
|
|
60
|
-
|
|
56
|
+
// This weird assignment is to make sure "internal" is the first property.
|
|
57
|
+
// Because it turns out we're relying on ordering
|
|
58
|
+
options.children = _objectSpread({
|
|
61
59
|
internal: State.extend(internalOptions)
|
|
62
60
|
}, options.children);
|
|
63
|
-
|
|
64
61
|
requestPromise.on = uploadPromise.on = function on() {
|
|
65
62
|
return requestPromise;
|
|
66
63
|
};
|
|
64
|
+
|
|
67
65
|
/**
|
|
68
66
|
* produces a mock storage object
|
|
69
67
|
* @param {Object} data
|
|
70
68
|
* @returns {Storage}
|
|
71
69
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
70
|
function makeMockStorage(data) {
|
|
75
71
|
data = data || {};
|
|
76
72
|
return {
|
|
@@ -85,38 +81,34 @@ function makeWebex(options) {
|
|
|
85
81
|
},
|
|
86
82
|
del: function del(namespace, key) {
|
|
87
83
|
this.data = this.data || data;
|
|
88
|
-
this.data[namespace] = this.data[namespace] || {};
|
|
89
|
-
|
|
84
|
+
this.data[namespace] = this.data[namespace] || {};
|
|
85
|
+
// eslint-disable-next-line prefer-reflect
|
|
90
86
|
delete this.data[namespace][key];
|
|
91
87
|
},
|
|
92
88
|
get: function get(namespace, key) {
|
|
93
89
|
this.data = this.data || data;
|
|
94
90
|
this.data[namespace] = this.data[namespace] || {};
|
|
95
91
|
var ret = this.data[namespace][key];
|
|
96
|
-
|
|
97
92
|
if (ret) {
|
|
98
93
|
return _promise.default.resolve(ret);
|
|
99
94
|
}
|
|
100
|
-
|
|
101
95
|
return _promise.default.reject(new Error('MockNotFoundError'));
|
|
102
96
|
},
|
|
103
97
|
put: function put(namespace, key, value) {
|
|
104
98
|
this.data = this.data || data;
|
|
105
|
-
|
|
106
99
|
try {
|
|
107
100
|
// this is the simplest way to to turn ampstate objects into bare
|
|
108
101
|
// objects without actually checking if they're ampstate objects
|
|
109
102
|
value = JSON.parse((0, _stringify.default)(value));
|
|
110
|
-
} catch (err) {
|
|
103
|
+
} catch (err) {
|
|
104
|
+
// ignore
|
|
111
105
|
}
|
|
112
|
-
|
|
113
106
|
this.data[namespace] = this.data[namespace] || {};
|
|
114
107
|
this.data[namespace][key] = value;
|
|
115
108
|
return _promise.default.resolve();
|
|
116
109
|
}
|
|
117
110
|
};
|
|
118
111
|
}
|
|
119
|
-
|
|
120
112
|
var request = sinon.stub().returns(requestPromise);
|
|
121
113
|
var upload = sinon.stub().returns(uploadPromise);
|
|
122
114
|
var MockWebex = State.extend(_.defaults(options, {
|
|
@@ -210,7 +202,6 @@ function makeWebex(options) {
|
|
|
210
202
|
}));
|
|
211
203
|
var webex = new MockWebex(options && options.attrs);
|
|
212
204
|
sinon.spy(webex, 'refresh');
|
|
213
|
-
|
|
214
205
|
_.defaults(webex, {
|
|
215
206
|
credentials: {
|
|
216
207
|
authorization: 'Basic NOTATOKEN',
|
|
@@ -234,7 +225,6 @@ function makeWebex(options) {
|
|
|
234
225
|
debug: sinon.spy()
|
|
235
226
|
}
|
|
236
227
|
});
|
|
237
|
-
|
|
238
228
|
_.defaults(webex.internal, {
|
|
239
229
|
avatar: {},
|
|
240
230
|
conversation: {},
|
|
@@ -269,9 +259,7 @@ function makeWebex(options) {
|
|
|
269
259
|
llm: {},
|
|
270
260
|
voicea: {}
|
|
271
261
|
});
|
|
272
|
-
|
|
273
262
|
return webex;
|
|
274
263
|
}
|
|
275
|
-
|
|
276
264
|
module.exports = makeWebex;
|
|
277
265
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","polyfill","_","sinon","State","nonInternalPlugins","makeWebex","options","requestPromise","resolve","statusCode","body","uploadPromise","children","internalOptions","internalChildren","externalChildren","forEach","key","indexOf","internal","extend","on","makeMockStorage","data","spy","once","listenTo","listenToAndRun","clear","namespace","del","get","ret","reject","Error","put","value","JSON","parse","err","request","stub","returns","upload","MockWebex","defaults","extraProperies","refresh","setConfig","config","credentials","idbroker","url","process","env","IDBROKER_BASE_URL","identity","IDENTITY_BASE_URL","defaultUrl","activationUrl","authorizeUrl","setPasswordUrl","logoutUrl","client_id","client_secret","redirect_uri","scope","service","conversation","allowedTags","avatar","device","encryption","logger","mercury","metrics","support","user","llm","voicea","meetings","mediaSettings","sendAudio","sendVideo","receiveAudio","receiveVideo","pstn","sendShare","receiveShare","reconnection","enabled","detection","retry","times","backOff","start","rate","stats","interval","historyMax","clientType","clientName","mqaMetricsInterval","autoSendMQA","initialize","attrs","boundedStorage","initialBoundedStorage","unboundedStorage","initialUnboundedStorage","webex","authorization","getUserToken","toString","getClientToken","sessionId","MOCK_LOGGER","console","error","warn","log","info","debug","webSocketUrl","getWebSocketUrl","features","developer","entitlement","registered","register","feature","setFeature","getFeature","sendUnstructured","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n\n/* istanbul ignore next */\nif (typeof Promise === 'undefined') {\n // eslint-disable-next-line global-require\n require('es6-promise').polyfill();\n}\n\nconst _ = require('lodash');\nconst sinon = require('sinon');\nconst State = require('ampersand-state');\n\nconst nonInternalPlugins = [\n 'authorization',\n 'credentials',\n 'memberships',\n 'messages',\n 'logger',\n 'people',\n 'phone',\n 'meetings',\n 'rooms',\n 'teams',\n 'teamMemberships',\n 'webhooks'\n];\n\n/**\n * Mock Webex constructor\n * @param {Object} options\n * @returns {MockWebex}\n */\nfunction makeWebex(options) {\n const requestPromise = Promise.resolve({statusCode: 200, body: {}});\n const uploadPromise = Promise.resolve({});\n\n options = options || {};\n options.children = options.children || {};\n\n const internalOptions = {};\n\n const internalChildren = {};\n const externalChildren = {};\n\n Object.keys(options.children).forEach((key) => {\n if (nonInternalPlugins.indexOf(key) === -1) {\n internalChildren[key] = options.children[key];\n }\n else {\n externalChildren[key] = options.children[key];\n }\n });\n\n internalOptions.children = internalChildren;\n options.children = externalChildren;\n\n // This weird assignment is to make sure \"internal\" is the first property.\n // Because it turns out we're relying on ordering\n options.children = Object.assign({\n internal: State.extend(internalOptions)\n }, options.children);\n\n requestPromise.on = uploadPromise.on = function on() {\n return requestPromise;\n };\n\n /**\n * produces a mock storage object\n * @param {Object} data\n * @returns {Storage}\n */\n function makeMockStorage(data) {\n data = data || {};\n\n return {\n data,\n on: sinon.spy(),\n once: sinon.spy(),\n listenTo: sinon.spy(),\n listenToAndRun: sinon.spy(),\n clear: function clear(namespace) {\n this.data = this.data || data;\n this.data[namespace] = {};\n },\n del: function del(namespace, key) {\n this.data = this.data || data;\n this.data[namespace] = this.data[namespace] || {};\n // eslint-disable-next-line prefer-reflect\n delete this.data[namespace][key];\n },\n get: function get(namespace, key) {\n this.data = this.data || data;\n this.data[namespace] = this.data[namespace] || {};\n const ret = this.data[namespace][key];\n\n if (ret) {\n return Promise.resolve(ret);\n }\n\n return Promise.reject(new Error('MockNotFoundError'));\n },\n put: function put(namespace, key, value) {\n this.data = this.data || data;\n try {\n // this is the simplest way to to turn ampstate objects into bare\n // objects without actually checking if they're ampstate objects\n value = JSON.parse(JSON.stringify(value));\n }\n catch (err) {\n // ignore\n }\n this.data[namespace] = this.data[namespace] || {};\n this.data[namespace][key] = value;\n\n return Promise.resolve();\n }\n };\n }\n\n const request = sinon.stub().returns(requestPromise);\n const upload = sinon.stub().returns(uploadPromise);\n const MockWebex = State.extend(_.defaults(options, {\n extraProperies: 'allow',\n request,\n upload,\n refresh: function refresh() {\n return Promise.resolve();\n },\n setConfig: function setConfig(config) {\n this.config.credentials.idbroker.url = config.credentials.idbroker.url || process.env.IDBROKER_BASE_URL;\n this.config.credentials.identity.url = config.credentials.identity.url || process.env.IDENTITY_BASE_URL;\n\n return Promise.resolve();\n },\n config: {\n credentials: {\n idbroker: {\n url: process.env.IDBROKER_BASE_URL,\n defaultUrl: process.env.IDBROKER_BASE_URL\n },\n identity: {\n url: process.env.IDENTITY_BASE_URL,\n defaultUrl: process.env.IDENTITY_BASE_URL\n },\n activationUrl: `${process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'}/idb/token/v1/actions/UserActivation/invoke`,\n authorizeUrl: `${process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'}/idb/oauth2/v1/authorize`,\n setPasswordUrl: `${process.env.IDBROKER_BASE_URL || 'https://identity.webex.com'}/identity/scim/v1/Users`,\n logoutUrl: `${process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'}/idb/oauth2/v1/logout`,\n // eslint-disable-next-line camelcase\n client_id: 'fake',\n // eslint-disable-next-line camelcase\n client_secret: 'fake',\n // eslint-disable-next-line camelcase\n redirect_uri: 'http://example.com',\n // eslint-disable-next-line camelcase\n scope: 'scope:one',\n service: 'webex'\n },\n conversation: {\n allowedTags: {\n 'webex-mention': ['data-object-type', 'data-object-id', 'data-object-url']\n }\n },\n avatar: {},\n device: {},\n encryption: {},\n logger: {},\n mercury: {},\n metrics: {},\n support: {},\n user: {},\n llm: {},\n voicea: {},\n meetings: {\n mediaSettings: {\n sendAudio: true,\n sendVideo: true,\n receiveAudio: true,\n receiveVideo: true,\n pstn: false,\n sendShare: false,\n receiveShare: false\n },\n reconnection: {\n enabled: true,\n detection: true,\n retry: {\n times: 2,\n backOff: {\n start: 1000,\n rate: 2\n }\n }\n },\n stats: {\n interval: 1000,\n historyMax: 120\n },\n metrics: {\n clientType: 'TEAMS_CLIENT',\n clientName: 'WEBEX_JS_SDK',\n mqaMetricsInterval: 60000,\n autoSendMQA: true\n }\n }\n },\n initialize: function initialize(attrs) {\n this.boundedStorage = makeMockStorage(attrs && attrs.initialBoundedStorage);\n this.unboundedStorage = makeMockStorage(attrs && attrs.initialUnboundedStorage);\n }\n }));\n\n const webex = new MockWebex(options && options.attrs);\n\n sinon.spy(webex, 'refresh');\n _.defaults(webex, {\n credentials: {\n authorization: 'Basic NOTATOKEN',\n getUserToken: sinon.stub().returns(Promise.resolve({\n toString: function toString() {\n return 'Basic NOTATOKEN';\n }\n })),\n getClientToken: sinon.stub().returns(Promise.resolve({\n toString: function toString() {\n return 'Basic NOTATOKEN';\n }\n }))\n },\n sessionId: 'mock-webex_88888888-4444-4444-4444-aaaaaaaaaaaa',\n logger: process.env.MOCK_LOGGER ? console : {\n error: sinon.spy(),\n warn: sinon.spy(),\n log: sinon.spy(),\n info: sinon.spy(),\n debug: sinon.spy()\n }\n });\n\n _.defaults(webex.internal, {\n avatar: {},\n conversation: {},\n device: {\n webSocketUrl: 'ws://example.com',\n getWebSocketUrl: sinon.stub().returns(Promise.resolve('ws://example-2.com')),\n features: {\n developer: {\n get: sinon.stub()\n },\n entitlement: {\n get: sinon.stub()\n },\n user: {\n get: sinon.stub()\n }\n },\n registered: true,\n register: sinon.stub().returns(Promise.resolve())\n },\n feature: {\n setFeature: sinon.stub().returns(Promise.resolve(false)),\n getFeature: sinon.stub().returns(Promise.resolve(false))\n },\n encryption: {},\n metrics: {\n sendUnstructured: sinon.spy()\n },\n support: {},\n user: {},\n mercury: {},\n llm: {},\n voicea: {},\n });\n\n return webex;\n}\n\nmodule.exports = makeWebex;\n"],"mappings":";;;;;;;;;;;;AAAA;AACA;AACA;;AAGA;AACA,IAAI,4BAAmB,WAAvB,EAAoC;EAClC;EACAA,OAAO,CAAC,aAAD,CAAP,CAAuBC,QAAvB;AACD;;AAED,IAAMC,CAAC,GAAGF,OAAO,CAAC,QAAD,CAAjB;;AACA,IAAMG,KAAK,GAAGH,OAAO,CAAC,OAAD,CAArB;;AACA,IAAMI,KAAK,GAAGJ,OAAO,CAAC,iBAAD,CAArB;;AAEA,IAAMK,kBAAkB,GAAG,CACzB,eADyB,EAE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F,UAAU,EAAE,IAdN;MAeNC,QAAQ,EAAE/H,KAAK,CAACuC,IAAN,GAAaC,OAAb,CAAqB,iBAAQlC,OAAR,EAArB;IAfJ,CAHiB;IAoBzB0H,OAAO,EAAE;MACPC,UAAU,EAAEjI,KAAK,CAACuC,IAAN,GAAaC,OAAb,CAAqB,iBAAQlC,OAAR,CAAgB,KAAhB,CAArB,CADL;MAEP4H,UAAU,EAAElI,KAAK,CAACuC,IAAN,GAAaC,OAAb,CAAqB,iBAAQlC,OAAR,CAAgB,KAAhB,CAArB;IAFL,CApBgB;IAwBzBgE,UAAU,EAAE,EAxBa;IAyBzBG,OAAO,EAAE;MACP0D,gBAAgB,EAAEnI,KAAK,CAACsB,GAAN;IADX,CAzBgB;IA4BzBoD,OAAO,EAAE,EA5BgB;IA6BzBC,IAAI,EAAE,EA7BmB;IA8BzBH,OAAO,EAAE,EA9BgB;IA+BzBI,GAAG,EAAE,EA/BoB;IAgCzBC,MAAM,EAAE;EAhCiB,CAA3B;;EAmCA,OAAO+B,KAAP;AACD;;AAEDwB,MAAM,CAACC,OAAP,GAAiBlI,SAAjB"}
|
|
1
|
+
{"version":3,"names":["require","polyfill","_","sinon","State","nonInternalPlugins","makeWebex","options","requestPromise","resolve","statusCode","body","uploadPromise","children","internalOptions","internalChildren","externalChildren","forEach","key","indexOf","internal","extend","on","makeMockStorage","data","spy","once","listenTo","listenToAndRun","clear","namespace","del","get","ret","reject","Error","put","value","JSON","parse","err","request","stub","returns","upload","MockWebex","defaults","extraProperies","refresh","setConfig","config","credentials","idbroker","url","process","env","IDBROKER_BASE_URL","identity","IDENTITY_BASE_URL","defaultUrl","activationUrl","authorizeUrl","setPasswordUrl","logoutUrl","client_id","client_secret","redirect_uri","scope","service","conversation","allowedTags","avatar","device","encryption","logger","mercury","metrics","support","user","llm","voicea","meetings","mediaSettings","sendAudio","sendVideo","receiveAudio","receiveVideo","pstn","sendShare","receiveShare","reconnection","enabled","detection","retry","times","backOff","start","rate","stats","interval","historyMax","clientType","clientName","mqaMetricsInterval","autoSendMQA","initialize","attrs","boundedStorage","initialBoundedStorage","unboundedStorage","initialUnboundedStorage","webex","authorization","getUserToken","toString","getClientToken","sessionId","MOCK_LOGGER","console","error","warn","log","info","debug","webSocketUrl","getWebSocketUrl","features","developer","entitlement","registered","register","feature","setFeature","getFeature","sendUnstructured","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* istanbul ignore next */\nif (typeof Promise === 'undefined') {\n // eslint-disable-next-line global-require\n require('es6-promise').polyfill();\n}\n\nconst _ = require('lodash');\nconst sinon = require('sinon');\nconst State = require('ampersand-state');\n\nconst nonInternalPlugins = [\n 'authorization',\n 'credentials',\n 'memberships',\n 'messages',\n 'logger',\n 'people',\n 'phone',\n 'meetings',\n 'rooms',\n 'teams',\n 'teamMemberships',\n 'webhooks',\n];\n\n/**\n * Mock Webex constructor\n * @param {Object} options\n * @returns {MockWebex}\n */\nfunction makeWebex(options) {\n const requestPromise = Promise.resolve({statusCode: 200, body: {}});\n const uploadPromise = Promise.resolve({});\n\n options = options || {};\n options.children = options.children || {};\n\n const internalOptions = {};\n\n const internalChildren = {};\n const externalChildren = {};\n\n Object.keys(options.children).forEach((key) => {\n if (nonInternalPlugins.indexOf(key) === -1) {\n internalChildren[key] = options.children[key];\n } else {\n externalChildren[key] = options.children[key];\n }\n });\n\n internalOptions.children = internalChildren;\n options.children = externalChildren;\n\n // This weird assignment is to make sure \"internal\" is the first property.\n // Because it turns out we're relying on ordering\n options.children = {\n internal: State.extend(internalOptions),\n ...options.children,\n };\n\n requestPromise.on = uploadPromise.on = function on() {\n return requestPromise;\n };\n\n /**\n * produces a mock storage object\n * @param {Object} data\n * @returns {Storage}\n */\n function makeMockStorage(data) {\n data = data || {};\n\n return {\n data,\n on: sinon.spy(),\n once: sinon.spy(),\n listenTo: sinon.spy(),\n listenToAndRun: sinon.spy(),\n clear: function clear(namespace) {\n this.data = this.data || data;\n this.data[namespace] = {};\n },\n del: function del(namespace, key) {\n this.data = this.data || data;\n this.data[namespace] = this.data[namespace] || {};\n // eslint-disable-next-line prefer-reflect\n delete this.data[namespace][key];\n },\n get: function get(namespace, key) {\n this.data = this.data || data;\n this.data[namespace] = this.data[namespace] || {};\n const ret = this.data[namespace][key];\n\n if (ret) {\n return Promise.resolve(ret);\n }\n\n return Promise.reject(new Error('MockNotFoundError'));\n },\n put: function put(namespace, key, value) {\n this.data = this.data || data;\n try {\n // this is the simplest way to to turn ampstate objects into bare\n // objects without actually checking if they're ampstate objects\n value = JSON.parse(JSON.stringify(value));\n } catch (err) {\n // ignore\n }\n this.data[namespace] = this.data[namespace] || {};\n this.data[namespace][key] = value;\n\n return Promise.resolve();\n },\n };\n }\n\n const request = sinon.stub().returns(requestPromise);\n const upload = sinon.stub().returns(uploadPromise);\n const MockWebex = State.extend(\n _.defaults(options, {\n extraProperies: 'allow',\n request,\n upload,\n refresh: function refresh() {\n return Promise.resolve();\n },\n setConfig: function setConfig(config) {\n this.config.credentials.idbroker.url =\n config.credentials.idbroker.url || process.env.IDBROKER_BASE_URL;\n this.config.credentials.identity.url =\n config.credentials.identity.url || process.env.IDENTITY_BASE_URL;\n\n return Promise.resolve();\n },\n config: {\n credentials: {\n idbroker: {\n url: process.env.IDBROKER_BASE_URL,\n defaultUrl: process.env.IDBROKER_BASE_URL,\n },\n identity: {\n url: process.env.IDENTITY_BASE_URL,\n defaultUrl: process.env.IDENTITY_BASE_URL,\n },\n activationUrl: `${\n process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'\n }/idb/token/v1/actions/UserActivation/invoke`,\n authorizeUrl: `${\n process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'\n }/idb/oauth2/v1/authorize`,\n setPasswordUrl: `${\n process.env.IDBROKER_BASE_URL || 'https://identity.webex.com'\n }/identity/scim/v1/Users`,\n logoutUrl: `${\n process.env.IDBROKER_BASE_URL || 'https://idbroker.webex.com'\n }/idb/oauth2/v1/logout`,\n // eslint-disable-next-line camelcase\n client_id: 'fake',\n // eslint-disable-next-line camelcase\n client_secret: 'fake',\n // eslint-disable-next-line camelcase\n redirect_uri: 'http://example.com',\n // eslint-disable-next-line camelcase\n scope: 'scope:one',\n service: 'webex',\n },\n conversation: {\n allowedTags: {\n 'webex-mention': ['data-object-type', 'data-object-id', 'data-object-url'],\n },\n },\n avatar: {},\n device: {},\n encryption: {},\n logger: {},\n mercury: {},\n metrics: {},\n support: {},\n user: {},\n llm: {},\n voicea: {},\n meetings: {\n mediaSettings: {\n sendAudio: true,\n sendVideo: true,\n receiveAudio: true,\n receiveVideo: true,\n pstn: false,\n sendShare: false,\n receiveShare: false,\n },\n reconnection: {\n enabled: true,\n detection: true,\n retry: {\n times: 2,\n backOff: {\n start: 1000,\n rate: 2,\n },\n },\n },\n stats: {\n interval: 1000,\n historyMax: 120,\n },\n metrics: {\n clientType: 'TEAMS_CLIENT',\n clientName: 'WEBEX_JS_SDK',\n mqaMetricsInterval: 60000,\n autoSendMQA: true,\n },\n },\n },\n initialize: function initialize(attrs) {\n this.boundedStorage = makeMockStorage(attrs && attrs.initialBoundedStorage);\n this.unboundedStorage = makeMockStorage(attrs && attrs.initialUnboundedStorage);\n },\n })\n );\n\n const webex = new MockWebex(options && options.attrs);\n\n sinon.spy(webex, 'refresh');\n _.defaults(webex, {\n credentials: {\n authorization: 'Basic NOTATOKEN',\n getUserToken: sinon.stub().returns(\n Promise.resolve({\n toString: function toString() {\n return 'Basic NOTATOKEN';\n },\n })\n ),\n getClientToken: sinon.stub().returns(\n Promise.resolve({\n toString: function toString() {\n return 'Basic NOTATOKEN';\n },\n })\n ),\n },\n sessionId: 'mock-webex_88888888-4444-4444-4444-aaaaaaaaaaaa',\n logger: process.env.MOCK_LOGGER\n ? console\n : {\n error: sinon.spy(),\n warn: sinon.spy(),\n log: sinon.spy(),\n info: sinon.spy(),\n debug: sinon.spy(),\n },\n });\n\n _.defaults(webex.internal, {\n avatar: {},\n conversation: {},\n device: {\n webSocketUrl: 'ws://example.com',\n getWebSocketUrl: sinon.stub().returns(Promise.resolve('ws://example-2.com')),\n features: {\n developer: {\n get: sinon.stub(),\n },\n entitlement: {\n get: sinon.stub(),\n },\n user: {\n get: sinon.stub(),\n },\n },\n registered: true,\n register: sinon.stub().returns(Promise.resolve()),\n },\n feature: {\n setFeature: sinon.stub().returns(Promise.resolve(false)),\n getFeature: sinon.stub().returns(Promise.resolve(false)),\n },\n encryption: {},\n metrics: {\n sendUnstructured: sinon.spy(),\n },\n support: {},\n user: {},\n mercury: {},\n llm: {},\n voicea: {},\n });\n\n return webex;\n}\n\nmodule.exports = makeWebex;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA,IAAI,uBAAc,KAAK,WAAW,EAAE;EAClC;EACAA,OAAO,CAAC,aAAa,CAAC,CAACC,QAAQ,EAAE;AACnC;AAEA,IAAMC,CAAC,GAAGF,OAAO,CAAC,QAAQ,CAAC;AAC3B,IAAMG,KAAK,GAAGH,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMI,KAAK,GAAGJ,OAAO,CAAC,iBAAiB,CAAC;AAExC,IAAMK,kBAAkB,GAAG,CACzB,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,UAAU,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,UAAU,CACX;;AAED;AACA;AACA;AACA;AACA;AACA,SAASC,SAAS,CAACC,OAAO,EAAE;EAC1B,IAAMC,cAAc,GAAG,iBAAQC,OAAO,CAAC;IAACC,UAAU,EAAE,GAAG;IAAEC,IAAI,EAAE,CAAC;EAAC,CAAC,CAAC;EACnE,IAAMC,aAAa,GAAG,iBAAQH,OAAO,CAAC,CAAC,CAAC,CAAC;EAEzCF,OAAO,GAAGA,OAAO,IAAI,CAAC,CAAC;EACvBA,OAAO,CAACM,QAAQ,GAAGN,OAAO,CAACM,QAAQ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gBAAgB,EAAEnI,KAAK,CAACsB,GAAG;IAC7B,CAAC;IACDoD,OAAO,EAAE,CAAC,CAAC;IACXC,IAAI,EAAE,CAAC,CAAC;IACRH,OAAO,EAAE,CAAC,CAAC;IACXI,GAAG,EAAE,CAAC,CAAC;IACPC,MAAM,EAAE,CAAC;EACX,CAAC,CAAC;EAEF,OAAO+B,KAAK;AACd;AAEAwB,MAAM,CAACC,OAAO,GAAGlI,SAAS"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a string from a base64url-encoded string
|
|
3
|
+
* @param {string} str
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
export function fromBase64url(str: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Converts a string to a base64url-encoded string. It also accepts a buffer
|
|
9
|
+
* @param {string|buffer} str
|
|
10
|
+
* @returns {string}
|
|
11
|
+
*/
|
|
12
|
+
export function toBase64Url(str: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Converts a string to a base64url-encoded string. It also accepts a buffer
|
|
15
|
+
* @param {string|buffer} str
|
|
16
|
+
* @returns {string}
|
|
17
|
+
*/
|
|
18
|
+
export function encode(str: string | buffer): string;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a string from a base64url-encoded string
|
|
21
|
+
* @param {string} str
|
|
22
|
+
* @returns {string}
|
|
23
|
+
*/
|
|
24
|
+
export function decode(str: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates if the provided string is, in fact, a base64 string
|
|
27
|
+
* @param {String} str
|
|
28
|
+
* @returns {Boolean}
|
|
29
|
+
*/
|
|
30
|
+
export function validate(str: string): boolean;
|
|
31
|
+
declare namespace _default {
|
|
32
|
+
export { fromBase64url };
|
|
33
|
+
export { toBase64Url };
|
|
34
|
+
export { encode };
|
|
35
|
+
export { decode };
|
|
36
|
+
export { validate };
|
|
37
|
+
}
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Behaves like debounce, but additionally executes after a number of calls are
|
|
6
|
+
* attempted, rather than just time
|
|
7
|
+
* @param {Function} fn
|
|
8
|
+
* @param {Number} wait
|
|
9
|
+
* @param {Object} options
|
|
10
|
+
* @returns {Function}
|
|
11
|
+
*/
|
|
12
|
+
export default function debounce(fn: Function, wait: number, options: any): Function;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Check object for the specified keys
|
|
6
|
+
* @param {Array<string>} keys
|
|
7
|
+
* @param {Object} object
|
|
8
|
+
* @returns {undefined}
|
|
9
|
+
* @throws Error
|
|
10
|
+
*/
|
|
11
|
+
export default function checkRequired(keys: Array<string>, object: any): undefined;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export namespace SDK_EVENT {
|
|
2
|
+
namespace INTERNAL {
|
|
3
|
+
const WEBEX_ACTIVITY: string;
|
|
4
|
+
namespace ACTIVITY_FIELD {
|
|
5
|
+
const ACTOR: string;
|
|
6
|
+
const OBJECT: string;
|
|
7
|
+
const TARGET: string;
|
|
8
|
+
}
|
|
9
|
+
namespace ACTIVITY_VERB {
|
|
10
|
+
const ACKNOWLEDGE: string;
|
|
11
|
+
const CARD_ACTION: string;
|
|
12
|
+
const CREATE: string;
|
|
13
|
+
const POST: string;
|
|
14
|
+
const SHARE: string;
|
|
15
|
+
const DELETE: string;
|
|
16
|
+
const ADD: string;
|
|
17
|
+
const LEAVE: string;
|
|
18
|
+
const ADD_MODERATOR: string;
|
|
19
|
+
const REMOVE_MODERATOR: string;
|
|
20
|
+
const LOCK: string;
|
|
21
|
+
const UNLOCK: string;
|
|
22
|
+
const HIDE: string;
|
|
23
|
+
const UPDATE: string;
|
|
24
|
+
}
|
|
25
|
+
namespace ACTIVITY_TAG {
|
|
26
|
+
const HIDDEN: string;
|
|
27
|
+
const ONE_ON_ONE: string;
|
|
28
|
+
const LOCKED: string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
namespace EXTERNAL {
|
|
32
|
+
namespace EVENT_TYPE {
|
|
33
|
+
const CREATED: string;
|
|
34
|
+
const DELETED: string;
|
|
35
|
+
const UPDATED: string;
|
|
36
|
+
const SEEN: string;
|
|
37
|
+
}
|
|
38
|
+
namespace OWNER {
|
|
39
|
+
const CREATOR: string;
|
|
40
|
+
const ORG: string;
|
|
41
|
+
}
|
|
42
|
+
namespace STATUS {
|
|
43
|
+
const ACTIVE: string;
|
|
44
|
+
const DISABLED: string;
|
|
45
|
+
}
|
|
46
|
+
namespace SPACE_TYPE {
|
|
47
|
+
const DIRECT: string;
|
|
48
|
+
const GROUP: string;
|
|
49
|
+
}
|
|
50
|
+
namespace RESOURCE {
|
|
51
|
+
const ATTACHMENT_ACTIONS: string;
|
|
52
|
+
const MEMBERSHIPS: string;
|
|
53
|
+
const MESSAGES: string;
|
|
54
|
+
const ROOMS: string;
|
|
55
|
+
}
|
|
56
|
+
namespace ATTACHMENTS {
|
|
57
|
+
const CARD_CONTENT_TYPE: string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export namespace hydraTypes {
|
|
62
|
+
const ATTACHMENT_ACTION: string;
|
|
63
|
+
const CONTENT: string;
|
|
64
|
+
const MEMBERSHIP: string;
|
|
65
|
+
const MESSAGE: string;
|
|
66
|
+
const ORGANIZATION: string;
|
|
67
|
+
const PEOPLE: string;
|
|
68
|
+
const ROOM: string;
|
|
69
|
+
const TEAM: string;
|
|
70
|
+
}
|
|
71
|
+
export namespace deviceType {
|
|
72
|
+
const PROVISIONAL: string;
|
|
73
|
+
const WEB: string;
|
|
74
|
+
}
|
|
75
|
+
export const INTERNAL_US_CLUSTER_NAME: "urn:TEAM:us-east-2_a";
|
|
76
|
+
export const INTERNAL_US_INTEGRATION_CLUSTER_NAME: "urn:TEAM:us-east-1_int13";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new `Defer`red object,
|
|
6
|
+
* @returns {Defer}
|
|
7
|
+
*/
|
|
8
|
+
export default function Defer(): Defer;
|
|
9
|
+
export default class Defer {
|
|
10
|
+
promise: Promise<any>;
|
|
11
|
+
/**
|
|
12
|
+
* @instance
|
|
13
|
+
* @memberof Defer
|
|
14
|
+
* @type {function}
|
|
15
|
+
*/
|
|
16
|
+
resolve: Function;
|
|
17
|
+
/**
|
|
18
|
+
* @instance
|
|
19
|
+
* @memberof Defer
|
|
20
|
+
* @type {function}
|
|
21
|
+
*/
|
|
22
|
+
reject: Function;
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a 'webhook' envelope to wrap Webex events in
|
|
3
|
+
* @param {object} webex - sdk object
|
|
4
|
+
* @param {string} resource - resource to create an envelope for
|
|
5
|
+
* @returns {object} - Returns a promise of an event envelope object
|
|
6
|
+
*/
|
|
7
|
+
export function createEventEnvelope(webex: object, resource: string): object;
|
|
8
|
+
/**
|
|
9
|
+
* Stores SDK users info in the sdk object if it doesn't already exist
|
|
10
|
+
* @param {object} webex - sdk object
|
|
11
|
+
* @returns {Promise} - Returns a promise that user info will be available
|
|
12
|
+
*/
|
|
13
|
+
export function ensureMyIdIsAvailable(webex: object): Promise<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proxies the event binding methods of emitter onto proxy
|
|
3
|
+
* @param {EventEmitter|EventEmitterProxy} emitter
|
|
4
|
+
* @param {mixed} proxy (probably a promise)
|
|
5
|
+
* @returns {EventEmitter} Returns the source emitter to ease use in promise chains
|
|
6
|
+
*/
|
|
7
|
+
export function proxyEvents(emitter: EventEmitter | EventEmitterProxy, proxy: mixed): EventEmitter;
|
|
8
|
+
/**
|
|
9
|
+
* Given a list of events, fires them on drain when they're emitted from source
|
|
10
|
+
* @param {Array|string} events
|
|
11
|
+
* @param {EventEmitter} source
|
|
12
|
+
* @param {EventEmitter} drain
|
|
13
|
+
* @returns {undefined}
|
|
14
|
+
*/
|
|
15
|
+
export function transferEvents(events: any[] | string, source: EventEmitter, drain: EventEmitter): undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base Exception class
|
|
6
|
+
*/
|
|
7
|
+
export default class Exception extends Error {
|
|
8
|
+
static defaultMessage: string;
|
|
9
|
+
/**
|
|
10
|
+
* Generates the value assigned to `this.message`. You'll probably want to
|
|
11
|
+
* override this in your custom Exception
|
|
12
|
+
* @param {mixed} args
|
|
13
|
+
* @returns {string}
|
|
14
|
+
*/
|
|
15
|
+
static parse(...args: mixed): string;
|
|
16
|
+
/**
|
|
17
|
+
* constructor
|
|
18
|
+
* @param {mixed} args
|
|
19
|
+
* @returns {Exception}
|
|
20
|
+
*/
|
|
21
|
+
constructor(...args: mixed);
|
|
22
|
+
message: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./node";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as base64 } from "./base64";
|
|
2
|
+
export { default as isBuffer } from "./isBuffer";
|
|
3
|
+
export { default as cappedDebounce } from "./capped-debounce";
|
|
4
|
+
export { default as checkRequired } from "./check-required";
|
|
5
|
+
export { default as Defer } from "./defer";
|
|
6
|
+
export { default as makeStateDataType } from "./make-state-datatype";
|
|
7
|
+
export { default as make } from "./template-container";
|
|
8
|
+
export { default as oneFlight } from "./one-flight";
|
|
9
|
+
export { default as patterns } from "./patterns";
|
|
10
|
+
export { default as resolveWith } from "./resolve-with";
|
|
11
|
+
export { default as retry } from "./retry";
|
|
12
|
+
export { default as tap } from "./tap";
|
|
13
|
+
export { default as whileInFlight } from "./while-in-flight";
|
|
14
|
+
export { default as Exception } from "./exception";
|
|
15
|
+
export { default as deprecated } from "./deprecated";
|
|
16
|
+
export { default as inBrowser } from "./in-browser";
|
|
17
|
+
export { default as BrowserDetection } from "./browser-detection";
|
|
18
|
+
export { proxyEvents, transferEvents } from "./events";
|
|
19
|
+
export { createEventEnvelope, ensureMyIdIsAvailable } from "./event-envelope";
|
|
20
|
+
export { deviceType, hydraTypes, SDK_EVENT, INTERNAL_US_CLUSTER_NAME, INTERNAL_US_INTEGRATION_CLUSTER_NAME } from "./constants";
|
|
21
|
+
export { buildHydraMembershipId, buildHydraMessageId, buildHydraOrgId, buildHydraPersonId, buildHydraRoomId, getHydraRoomType, getHydraClusterString, getHydraFiles, constructHydraId, deconstructHydraId } from "./uuid-utils";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Creates an ampersand state object that wires its event handlers like a an
|
|
6
|
+
* ampersand child
|
|
7
|
+
* @param {Function} Constructor
|
|
8
|
+
* @param {string} name
|
|
9
|
+
* @returns {Object}
|
|
10
|
+
*/
|
|
11
|
+
export default function makeStateDataType(Constructor: Function, name: string): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @memberof Util
|
|
3
|
+
* @param {Object} options
|
|
4
|
+
* @param {Function} options.keyFactory
|
|
5
|
+
* @param {boolean} options.cacheFailures
|
|
6
|
+
* @param {boolean} options.cacheSuccesses
|
|
7
|
+
* @returns {Function}
|
|
8
|
+
*/
|
|
9
|
+
export default function oneFlight(...params: any[]): Function;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sugar method for returning the desired object at the end of a promise chain
|
|
6
|
+
* @param {any} object the item with which to resolve the promise chain
|
|
7
|
+
* @returns {function}
|
|
8
|
+
* @example
|
|
9
|
+
* var item = {
|
|
10
|
+
* prop: 2
|
|
11
|
+
* };
|
|
12
|
+
* Promise
|
|
13
|
+
* .resolve(item.prop)
|
|
14
|
+
* .then(resolveWith(item))
|
|
15
|
+
* .then(function(res) {
|
|
16
|
+
* require('assert').deepEqual(res, {prop:2});
|
|
17
|
+
* return 'success'
|
|
18
|
+
* })
|
|
19
|
+
* // => success
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export default function resolveWith(object: any): Function;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes a promise-returning method retryable according to the specified backoff
|
|
3
|
+
* pattern
|
|
4
|
+
* @param {Object} options
|
|
5
|
+
* @param {boolean} options.backoff
|
|
6
|
+
* @param {number} options.delay
|
|
7
|
+
* @param {number} options.initialDelay
|
|
8
|
+
* @param {number} options.maxAttempts
|
|
9
|
+
* @param {number} options.maxDelay
|
|
10
|
+
*
|
|
11
|
+
* @returns {Function}
|
|
12
|
+
*/
|
|
13
|
+
export default function retry(...params: any[]): Function;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Injects code into a promise chain without modifying the promise chain's result
|
|
6
|
+
* @param {Function} fn
|
|
7
|
+
* @returns {Promise}
|
|
8
|
+
* @example
|
|
9
|
+
* function f() {
|
|
10
|
+
* return Promise.resolve(5);
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
* f()
|
|
14
|
+
* .then(tap(() => 12))
|
|
15
|
+
* // => 5
|
|
16
|
+
*/
|
|
17
|
+
export default function tap(fn: Function): Promise<any>;
|