@webex/storage-adapter-spec 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/README.md +1 -0
- package/dist/index.js +3 -8
- 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 +15 -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 +2 -2
- package/src/index.js +95 -82
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.default = runAbstractStorageAdapterSpec;
|
|
12
|
-
|
|
13
9
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
14
|
-
|
|
15
10
|
var _testHelperChai = require("@webex/test-helper-chai");
|
|
16
|
-
|
|
17
11
|
/*!
|
|
18
12
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
19
13
|
*/
|
|
20
|
-
function noop() {// intentionally empty
|
|
21
|
-
}
|
|
22
14
|
|
|
15
|
+
function noop() {
|
|
16
|
+
// intentionally empty
|
|
17
|
+
}
|
|
23
18
|
function runAbstractStorageAdapterSpec(adapter) {
|
|
24
19
|
var key = 'key';
|
|
25
20
|
var namespace = 'namespace';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["noop","runAbstractStorageAdapterSpec","adapter","key","namespace","obj","a","primitive","options","logger","error","warning","log","info","debug","trace","describe","it","assert","isRejected","bind","bound","before","then","b","put","get","result","deepEqual","forEach","falsey","all","primitive2","del","undefined","clear"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {assert} from '@webex/test-helper-chai';\n\nfunction noop() {\n // intentionally empty\n}\n\nexport default function runAbstractStorageAdapterSpec(adapter) {\n const key = 'key';\n const namespace = 'namespace';\n const obj = {a: 1};\n const primitive = 1;\n const options = {\n logger: {\n error: noop,\n warning: noop,\n log: noop,\n info: noop,\n debug: noop,\n trace: noop\n }\n };\n\n describe('#bind()', () => {\n // namespace and options.logger are required more to make sure we always\n // call bind correctly rather than to make sure the adapter uses them.\n it('requires a namespace', () => assert.isRejected(adapter.bind(), /`namespace` is required/));\n\n it('requires a logger option', () => assert.isRejected(adapter.bind(namespace), /`options.logger` is required/));\n\n it('returns a db interface', () => adapter.bind(namespace, options));\n\n describe('bound', () => {\n let bound;\n\n before(() => adapter.bind(namespace, options)\n .then((b) => {\n bound = b;\n }));\n\n describe('#put()', () => {\n it('puts a primitive into the store', () => bound.put(key, primitive)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, primitive))));\n\n [0, false, null].forEach((falsey) => {\n it(`puts falsey primitive \\`${falsey}\\` into the store`, () => bound.put(key, falsey)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, falsey))));\n });\n\n it('puts an object into the store', () => bound.put(key, obj)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, obj))));\n\n it('puts an array into the store', () => bound.put(key, [1, 2])\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, [1, 2]))));\n\n it('puts an array back into the store', () => bound.put(key, [1, 2])\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, [1, 2])))\n .then(() => bound.put(key, [1, 2, 3]))\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, [1, 2, 3]))));\n\n it('handles concurrency', () => Promise.all([\n bound.put(key, 1),\n bound.put(key, 2),\n bound.put(key, 3)\n ])\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, 3))));\n\n it('puts same key in different namespaces', () => bound.put(key, primitive)\n .then(() => adapter.bind('namespace2', options)\n .then((b) => {\n const primitive2 = 2;\n\n b.put(key, primitive2)\n .then(() => Promise.all([\n bound.get(key)\n .then((result) => assert.deepEqual(result, primitive)),\n b.get(key)\n .then((result) => assert.deepEqual(result, primitive2))\n ]));\n })));\n });\n\n describe('#get()', () => {\n it('gets a primitive from the store', () => bound.put(key, primitive)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, primitive))));\n\n it('gets an object from the store', () => bound.put(key, obj)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, obj))));\n\n it('rejects if the key cannot be found', () => assert.isRejected(bound.get('notakey')));\n });\n\n describe('#del()', () => {\n it('removes a primitive from the store', () => bound.put(key, primitive)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, primitive)))\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('removes an object from the store', () => bound.put(key, obj)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, obj)))\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('removes an item from the store when putting `undefined`', () => bound.put(key, undefined)\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n });\n\n describe('#clear()', () => {\n it('clears a primitive from the store', () => bound.put(key, primitive)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, primitive)))\n .then(() => bound.clear())\n .then(() => assert.isRejected(bound.get(key))));\n\n it('clears an object from the store', () => bound.put(key, obj)\n .then(() => bound.get(key)\n .then((result) => assert.deepEqual(result, obj)))\n .then(() => bound.clear(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('clears an item from the store when putting `undefined`', () => bound.put(key, undefined)\n .then(() => bound.clear(key))\n .then(() => ass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AML,sBAAA,CAAOC,UAAP,CAAkBE,KAAK,CAACK,GAAN,CAAUvB,GAAV,CAAlB,CAAN;UAAA,CAJsC,CAAN;QAAA,CAAtC,CAAF;QAMAc,EAAE,CAAC,iCAAD,EAAoC;UAAA,OAAMI,KAAK,CAACI,GAAN,CAAUtB,GAAV,EAAeE,GAAf,EACzCkB,IADyC,CACpC;YAAA,OAAMF,KAAK,CAACK,GAAN,CAAUvB,GAAV,EACToB,IADS,CACJ,UAACI,MAAD;cAAA,OAAYT,sBAAA,CAAOU,SAAP,CAAiBD,MAAjB,EAAyBtB,GAAzB,CAAZ;YAAA,CADI,CAAN;UAAA,CADoC,EAGzCkB,IAHyC,CAGpC;YAAA,OAAMF,KAAK,CAACc,KAAN,CAAYhC,GAAZ,CAAN;UAAA,CAHoC,EAIzCoB,IAJyC,CAIpC;YAAA,OAAML,sBAAA,CAAOC,UAAP,CAAkBE,KAAK,CAACK,GAAN,CAAUvB,GAAV,CAAlB,CAAN;UAAA,CAJoC,CAAN;QAAA,CAApC,CAAF;QAMAc,EAAE,CAAC,wDAAD,EAA2D;UAAA,OAAMI,KAAK,CAACI,GAAN,CAAUtB,GAAV,EAAe+B,SAAf,EAChEX,IADgE,CAC3D;YAAA,OAAMF,KAAK,CAACc,KAAN,CAAYhC,GAAZ,CAAN;UAAA,CAD2D,EAEhEoB,IAFgE,CAE3D;YAAA,OAAML,sBAAA,CAAOC,UAAP,CAAkBE,KAAK,CAACK,GAAN,CAAUvB,GAAV,CAAlB,CAAN;UAAA,CAF2D,CAAN;QAAA,CAA3D,CAAF;MAGD,CAhBO,CAAR;IAiBD,CAxGO,CAAR;EAyGD,CAlHO,CAAR;AAmHD"}
|
|
1
|
+
{"version":3,"names":["noop","runAbstractStorageAdapterSpec","adapter","key","namespace","obj","a","primitive","options","logger","error","warning","log","info","debug","trace","describe","it","assert","isRejected","bind","bound","before","then","b","put","get","result","deepEqual","forEach","falsey","all","primitive2","del","undefined","clear"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {assert} from '@webex/test-helper-chai';\n\nfunction noop() {\n // intentionally empty\n}\n\nexport default function runAbstractStorageAdapterSpec(adapter) {\n const key = 'key';\n const namespace = 'namespace';\n const obj = {a: 1};\n const primitive = 1;\n const options = {\n logger: {\n error: noop,\n warning: noop,\n log: noop,\n info: noop,\n debug: noop,\n trace: noop,\n },\n };\n\n describe('#bind()', () => {\n // namespace and options.logger are required more to make sure we always\n // call bind correctly rather than to make sure the adapter uses them.\n it('requires a namespace', () => assert.isRejected(adapter.bind(), /`namespace` is required/));\n\n it('requires a logger option', () =>\n assert.isRejected(adapter.bind(namespace), /`options.logger` is required/));\n\n it('returns a db interface', () => adapter.bind(namespace, options));\n\n describe('bound', () => {\n let bound;\n\n before(() =>\n adapter.bind(namespace, options).then((b) => {\n bound = b;\n })\n );\n\n describe('#put()', () => {\n it('puts a primitive into the store', () =>\n bound\n .put(key, primitive)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, primitive))));\n\n [0, false, null].forEach((falsey) => {\n it(`puts falsey primitive \\`${falsey}\\` into the store`, () =>\n bound\n .put(key, falsey)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, falsey))));\n });\n\n it('puts an object into the store', () =>\n bound\n .put(key, obj)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, obj))));\n\n it('puts an array into the store', () =>\n bound\n .put(key, [1, 2])\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, [1, 2]))));\n\n it('puts an array back into the store', () =>\n bound\n .put(key, [1, 2])\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, [1, 2])))\n .then(() => bound.put(key, [1, 2, 3]))\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, [1, 2, 3]))));\n\n it('handles concurrency', () =>\n Promise.all([bound.put(key, 1), bound.put(key, 2), bound.put(key, 3)]).then(() =>\n bound.get(key).then((result) => assert.deepEqual(result, 3))\n ));\n\n it('puts same key in different namespaces', () =>\n bound.put(key, primitive).then(() =>\n adapter.bind('namespace2', options).then((b) => {\n const primitive2 = 2;\n\n b.put(key, primitive2).then(() =>\n Promise.all([\n bound.get(key).then((result) => assert.deepEqual(result, primitive)),\n b.get(key).then((result) => assert.deepEqual(result, primitive2)),\n ])\n );\n })\n ));\n });\n\n describe('#get()', () => {\n it('gets a primitive from the store', () =>\n bound\n .put(key, primitive)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, primitive))));\n\n it('gets an object from the store', () =>\n bound\n .put(key, obj)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, obj))));\n\n it('rejects if the key cannot be found', () => assert.isRejected(bound.get('notakey')));\n });\n\n describe('#del()', () => {\n it('removes a primitive from the store', () =>\n bound\n .put(key, primitive)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, primitive)))\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('removes an object from the store', () =>\n bound\n .put(key, obj)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, obj)))\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('removes an item from the store when putting `undefined`', () =>\n bound\n .put(key, undefined)\n .then(() => bound.del(key))\n .then(() => assert.isRejected(bound.get(key))));\n });\n\n describe('#clear()', () => {\n it('clears a primitive from the store', () =>\n bound\n .put(key, primitive)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, primitive)))\n .then(() => bound.clear())\n .then(() => assert.isRejected(bound.get(key))));\n\n it('clears an object from the store', () =>\n bound\n .put(key, obj)\n .then(() => bound.get(key).then((result) => assert.deepEqual(result, obj)))\n .then(() => bound.clear(key))\n .then(() => assert.isRejected(bound.get(key))));\n\n it('clears an item from the store when putting `undefined`', () =>\n bound\n .put(key, undefined)\n .then(() => bound.clear(key))\n .then(() => assert.isRejected(bound.get(key))));\n });\n });\n });\n}\n"],"mappings":";;;;;;;;;AAIA;AAJA;AACA;AACA;;AAIA,SAASA,IAAI,GA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AAMF,KAAK,CAACc,KAAK,CAAChC,GAAG,CAAC;UAAA,EAAC,CAC5BoB,IAAI,CAAC;YAAA,OAAML,sBAAM,CAACC,UAAU,CAACE,KAAK,CAACK,GAAG,CAACvB,GAAG,CAAC,CAAC;UAAA,EAAC;QAAA,EAAC;QAEnDc,EAAE,CAAC,wDAAwD,EAAE;UAAA,OAC3DI,KAAK,CACFI,GAAG,CAACtB,GAAG,EAAE+B,SAAS,CAAC,CACnBX,IAAI,CAAC;YAAA,OAAMF,KAAK,CAACc,KAAK,CAAChC,GAAG,CAAC;UAAA,EAAC,CAC5BoB,IAAI,CAAC;YAAA,OAAML,sBAAM,CAACC,UAAU,CAACE,KAAK,CAACK,GAAG,CAACvB,GAAG,CAAC,CAAC;UAAA,EAAC;QAAA,EAAC;MACrD,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ"}
|
|
@@ -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>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { make as default };
|
|
2
|
+
/**
|
|
3
|
+
* Factory which produces a multi-keyed container based on the provided set of
|
|
4
|
+
* constructors
|
|
5
|
+
* @param {mixed} containers
|
|
6
|
+
* @returns {Container}
|
|
7
|
+
*/
|
|
8
|
+
declare function make(...containers: mixed): {
|
|
9
|
+
/**
|
|
10
|
+
* getter for .size
|
|
11
|
+
* @returns {number}
|
|
12
|
+
*/
|
|
13
|
+
readonly size: number;
|
|
14
|
+
/**
|
|
15
|
+
* Identical to Container#set() but leads slightly more intuitive code when
|
|
16
|
+
* the container is based on a Set rather than a Map.
|
|
17
|
+
* @returns {Container}
|
|
18
|
+
*/
|
|
19
|
+
add(...args: any[]): any;
|
|
20
|
+
/**
|
|
21
|
+
* Removes all items from the container
|
|
22
|
+
* @returns {undefined}
|
|
23
|
+
*/
|
|
24
|
+
clear(): undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Removes the specified item to the container
|
|
27
|
+
* @param {mixed} key
|
|
28
|
+
* @param {Array<mixed>} keys
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
delete(key: mixed, ...keys: Array<mixed>): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the specified item from the container
|
|
34
|
+
* @param {mixed} key
|
|
35
|
+
* @param {Array<mixed>} keys
|
|
36
|
+
* @returns {mixed}
|
|
37
|
+
*/
|
|
38
|
+
get(key: mixed, ...keys: Array<mixed>): mixed;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates whether the container holds the specified item
|
|
41
|
+
* @param {mixed} key
|
|
42
|
+
* @param {Array<mixed>} keys
|
|
43
|
+
* @returns {Boolean}
|
|
44
|
+
*/
|
|
45
|
+
has(...args: any[]): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Stores the specified item in the container
|
|
48
|
+
* @param {mixed} key
|
|
49
|
+
* @param {Array<mixed>} args
|
|
50
|
+
* @param {mixed} value
|
|
51
|
+
* @returns {Container}
|
|
52
|
+
*/
|
|
53
|
+
set(...args: Array<mixed>): any;
|
|
54
|
+
/**
|
|
55
|
+
* @private
|
|
56
|
+
* @returns {string}
|
|
57
|
+
*/
|
|
58
|
+
inspect(): string;
|
|
59
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constructs a Hydra ID for a given UUID and type.
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @param {string} type one of PEOPLE, TEAM, ROOM
|
|
6
|
+
* @param {any} id identifying the "TYPE" object
|
|
7
|
+
* @param {string} cluster containing the "TYPE" object
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
export function constructHydraId(type?: string, id?: any, cluster?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {Object} DeconstructedHydraId
|
|
13
|
+
* @property {UUID} id identifying the object
|
|
14
|
+
* @property {String} type of the object
|
|
15
|
+
* @property {String} cluster containing the object
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Deconstructs a Hydra ID.
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @param {String} id Hydra style id
|
|
22
|
+
* @returns {DeconstructedHydraId} deconstructed id
|
|
23
|
+
*/
|
|
24
|
+
export function deconstructHydraId(id: string): DeconstructedHydraId;
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a Hydra ID for a message based on internal UUID
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @param {any} uuid
|
|
30
|
+
* @param {string} cluster containing the message
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
export function buildHydraMessageId(uuid: any, cluster: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a Hydra ID for a person based on internal UUID
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @param {any} uuid
|
|
39
|
+
* @param {string} cluster containing the person
|
|
40
|
+
* @returns {string}
|
|
41
|
+
*/
|
|
42
|
+
export function buildHydraPersonId(uuid: any, cluster: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a Hydra ID for a room based on internal UUID
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
* @param {any} uuid
|
|
48
|
+
* @param {string} cluster containing the room
|
|
49
|
+
* @returns {string}
|
|
50
|
+
*/
|
|
51
|
+
export function buildHydraRoomId(uuid: any, cluster: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a Hydra ID for an organization based on internal UUID
|
|
54
|
+
*
|
|
55
|
+
* @export
|
|
56
|
+
* @param {any} uuid
|
|
57
|
+
* @param {string} cluster containing the organization
|
|
58
|
+
* @returns {string}
|
|
59
|
+
*/
|
|
60
|
+
export function buildHydraOrgId(uuid: any, cluster: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a Hydra ID for an membership based on an
|
|
63
|
+
* internal UUID for the person, and the space
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @param {any} personUUID
|
|
67
|
+
* @param {any} spaceUUID
|
|
68
|
+
* @param {string} cluster containing the membership
|
|
69
|
+
* @returns {string}
|
|
70
|
+
*/
|
|
71
|
+
export function buildHydraMembershipId(personUUID: any, spaceUUID: any, cluster: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a hydra cluster string based on a conversation url
|
|
74
|
+
* @private
|
|
75
|
+
* @memberof Messages
|
|
76
|
+
* @param {Object} webex sdk instance
|
|
77
|
+
* @param {String} conversationUrl url of space where activity took place
|
|
78
|
+
* @returns {String} string suitable for UUID -> public ID encoding
|
|
79
|
+
*/
|
|
80
|
+
export function getHydraClusterString(webex: any, conversationUrl: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Returns a Hydra roomType based on conversation tags
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @param {arra} tags
|
|
86
|
+
* @param {any} spaceUUID
|
|
87
|
+
* @returns {string}
|
|
88
|
+
*/
|
|
89
|
+
export function getHydraRoomType(tags: arra): string;
|
|
90
|
+
/**
|
|
91
|
+
* Returns file URLs for the activity, adhering to Hydra details,
|
|
92
|
+
* e.g., https://api.ciscospark.com/v1/contents/Y2lzY29zcGF...
|
|
93
|
+
* @see https://developer.webex.com/docs/api/v1/messages/get-message-details
|
|
94
|
+
* @param {Object} activity from mercury
|
|
95
|
+
* @param {string} cluster containing the files
|
|
96
|
+
* @returns {Array} file URLs
|
|
97
|
+
*/
|
|
98
|
+
export function getHydraFiles(activity: any, cluster: string): any[];
|
|
99
|
+
export type DeconstructedHydraId = {
|
|
100
|
+
/**
|
|
101
|
+
* identifying the object
|
|
102
|
+
*/
|
|
103
|
+
id: UUID;
|
|
104
|
+
/**
|
|
105
|
+
* of the object
|
|
106
|
+
*/
|
|
107
|
+
type: string;
|
|
108
|
+
/**
|
|
109
|
+
* containing the object
|
|
110
|
+
*/
|
|
111
|
+
cluster: string;
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|