@crowbartools/firebot-types 5.67.0-alpha2 → 5.67.0-alpha21
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/LICENSE +674 -674
- package/README.md +26 -14
- package/backend/app-management/app-close-listener-manager.d.ts +11 -0
- package/backend/app-management/data-tasks.d.ts +1 -0
- package/backend/app-management/electron/app-helpers.d.ts +1 -0
- package/backend/app-management/electron/electron-events.d.ts +7 -0
- package/backend/app-management/electron/events/ipc-events.d.ts +1 -0
- package/backend/app-management/electron/events/open-file.d.ts +2 -0
- package/backend/app-management/electron/events/open-url.d.ts +2 -0
- package/backend/app-management/electron/events/second-instance.d.ts +2 -0
- package/backend/app-management/electron/events/when-ready.d.ts +1 -0
- package/backend/app-management/electron/events/will-quit.d.ts +2 -0
- package/backend/app-management/electron/events/windows-all-closed.d.ts +1 -0
- package/backend/app-management/electron/screen-helpers.d.ts +3 -0
- package/backend/app-management/electron/tray-creation.d.ts +2 -0
- package/backend/app-management/electron/windows/effect-queue-monitor-window.d.ts +3 -0
- package/backend/app-management/file-open-helpers.d.ts +3 -0
- package/backend/app-management/profile-tasks.d.ts +2 -0
- package/backend/app-management/squirrel-events.d.ts +1 -0
- package/backend/auth/auth-manager.d.ts +24 -0
- package/backend/auth/firebot-device-auth-provider.d.ts +18 -0
- package/backend/backup-manager.d.ts +32 -0
- package/backend/channel-rewards/channel-reward-manager.d.ts +30 -0
- package/backend/chat/active-user-handler.d.ts +55 -0
- package/backend/chat/chat-helpers.d.ts +21 -0
- package/backend/chat/commands/builtin/command-list.d.ts +9 -0
- package/backend/chat/commands/builtin/command-management.d.ts +5 -0
- package/backend/chat/commands/builtin/custom-role-management.d.ts +5 -0
- package/backend/chat/commands/builtin/follow-age.d.ts +7 -0
- package/backend/chat/commands/builtin/marker.d.ts +9 -0
- package/backend/chat/commands/builtin/quotes.d.ts +10 -0
- package/backend/chat/commands/builtin/spam-raid-protection.d.ts +16 -0
- package/backend/chat/commands/builtin/steam/steam-access.d.ts +16 -0
- package/backend/chat/commands/builtin/steam/steam.d.ts +8 -0
- package/backend/chat/commands/builtin/uptime.d.ts +7 -0
- package/backend/chat/commands/chat-command-handler.d.ts +17 -0
- package/backend/chat/commands/command-cooldown-manager.d.ts +32 -0
- package/backend/chat/commands/command-manager.d.ts +156 -0
- package/backend/chat/commands/command-runner.d.ts +14 -0
- package/backend/chat/commands/system-command-loader.d.ts +4 -0
- package/backend/chat/frontend-chat-helpers.d.ts +14 -0
- package/backend/chat/moderation/chat-moderation-manager.d.ts +44 -0
- package/backend/chat/moderation/raid-message-checker.d.ts +20 -0
- package/backend/chat/moderation/url-permit-command.d.ts +11 -0
- package/backend/chat/third-party/7tv.d.ts +29 -0
- package/backend/chat/third-party/bttv.d.ts +19 -0
- package/backend/chat/third-party/ffz.d.ts +19 -0
- package/backend/chat/third-party/third-party-emote-provider.d.ts +15 -0
- package/backend/chat/twitch-chat.d.ts +34 -0
- package/backend/cloud-sync/index.d.ts +9 -0
- package/backend/cloud-sync/sync-handlers/command-list.d.ts +3 -0
- package/backend/cloud-sync/sync-handlers/quotes-list.d.ts +3 -0
- package/backend/common/account-access.d.ts +47 -0
- package/backend/common/argv-parser.d.ts +3 -0
- package/backend/common/custom-variable-manager.d.ts +46 -0
- package/backend/common/data-access.d.ts +23 -0
- package/backend/common/debug-info.d.ts +1 -0
- package/backend/common/effect-abort-helpers.d.ts +10 -0
- package/backend/common/effect-run-mode-handler.d.ts +2 -0
- package/backend/common/frontend-communicator.d.ts +15 -0
- package/backend/common/handlers/dice-processor.d.ts +10 -0
- package/backend/common/handlers/js-sandbox/sandbox-eval.d.ts +2 -0
- package/backend/common/handlers/reddit-processor.d.ts +2 -0
- package/backend/common/handlers/sound-handler.d.ts +14 -0
- package/backend/common/handlers/twitch-clip-url-resolver.d.ts +5 -0
- package/backend/common/icon-manager.d.ts +8 -0
- package/backend/common/profile-manager.d.ts +22 -0
- package/backend/common/screenshot-helpers.d.ts +24 -0
- package/backend/common/settings-manager.d.ts +144 -0
- package/backend/control-deck/builtin-control-types/button.d.ts +6 -0
- package/backend/control-deck/builtin-control-types/folder.d.ts +6 -0
- package/backend/control-deck/builtin-control-types/switch.d.ts +11 -0
- package/backend/control-deck/control-deck-manager.d.ts +19 -0
- package/backend/control-deck/control-deck-state-manager.d.ts +18 -0
- package/backend/control-deck/control-type-manager.d.ts +13 -0
- package/backend/counters/counter-manager.d.ts +29 -0
- package/backend/crowbar-relay/crowbar-relay-websocket.d.ts +16 -0
- package/backend/currency/currency-access.d.ts +25 -0
- package/backend/currency/currency-command-manager.d.ts +29 -0
- package/backend/currency/currency-manager.d.ts +33 -0
- package/backend/database/json-db-manager.d.ts +44 -0
- package/backend/effects/builtin/active-user-lists.d.ts +6 -0
- package/backend/effects/builtin/activity-feed-alert.d.ts +6 -0
- package/backend/effects/builtin/add-quote.d.ts +7 -0
- package/backend/effects/builtin/chat-feed-alert.d.ts +6 -0
- package/backend/effects/builtin/chat-feed-custom-highlight.d.ts +9 -0
- package/backend/effects/builtin/chat-feed-message-hide.d.ts +5 -0
- package/backend/effects/builtin/chat.d.ts +12 -0
- package/backend/effects/builtin/clear-chat.d.ts +3 -0
- package/backend/effects/builtin/clear-effects.d.ts +11 -0
- package/backend/effects/builtin/comment.d.ts +5 -0
- package/backend/effects/builtin/conditional-effects/switch-statement.d.ts +18 -0
- package/backend/effects/builtin/copy-to-clipboard.d.ts +5 -0
- package/backend/effects/builtin/custom-variable.d.ts +9 -0
- package/backend/effects/builtin/delay.d.ts +5 -0
- package/backend/effects/builtin/delete-chat-message.d.ts +3 -0
- package/backend/effects/builtin/deprecated/random-effect.d.ts +9 -0
- package/backend/effects/builtin/deprecated/sequential-effect.d.ts +7 -0
- package/backend/effects/builtin/dice.d.ts +4 -0
- package/backend/effects/builtin/eval-js.d.ts +6 -0
- package/backend/effects/builtin/file-writer.d.ts +12 -0
- package/backend/effects/builtin/http-request.d.ts +23 -0
- package/backend/effects/builtin/log-message.d.ts +6 -0
- package/backend/effects/builtin/mark-all-activity-acknowledged.d.ts +3 -0
- package/backend/effects/builtin/moderator-ban.d.ts +7 -0
- package/backend/effects/builtin/moderator-mod.d.ts +6 -0
- package/backend/effects/builtin/moderator-purge.d.ts +5 -0
- package/backend/effects/builtin/moderator-timeout.d.ts +7 -0
- package/backend/effects/builtin/overlay-alert.d.ts +54 -0
- package/backend/effects/builtin/overlay-widgets/send-message-to-custom-widget.d.ts +7 -0
- package/backend/effects/builtin/overlay-widgets/set-custom-widget-state.d.ts +7 -0
- package/backend/effects/builtin/overlay-widgets/update-dynamic-countdown.d.ts +9 -0
- package/backend/effects/builtin/overlay-widgets/update-overlay-widget-settings.d.ts +11 -0
- package/backend/effects/builtin/overlay-widgets/update-progress-bar.d.ts +7 -0
- package/backend/effects/builtin/pause-resume-effect-queue.d.ts +7 -0
- package/backend/effects/builtin/play-sound.d.ts +21 -0
- package/backend/effects/builtin/random-reddit-image.d.ts +8 -0
- package/backend/effects/builtin/remove-user-metadata.d.ts +6 -0
- package/backend/effects/builtin/reset-timer.d.ts +5 -0
- package/backend/effects/builtin/retrigger-last-activity.d.ts +3 -0
- package/backend/effects/builtin/run-command.d.ts +13 -0
- package/backend/effects/builtin/run-program.d.ts +9 -0
- package/backend/effects/builtin/send-custom-websocket-event.d.ts +6 -0
- package/backend/effects/builtin/set-active-control-deck.d.ts +6 -0
- package/backend/effects/builtin/set-default-control-deck.d.ts +5 -0
- package/backend/effects/builtin/set-output.d.ts +9 -0
- package/backend/effects/builtin/set-user-metadata.d.ts +8 -0
- package/backend/effects/builtin/show-text.d.ts +45 -0
- package/backend/effects/builtin/show-toast.d.ts +8 -0
- package/backend/effects/builtin/stop-effect-execution.d.ts +9 -0
- package/backend/effects/builtin/sync-profile-data.d.ts +5 -0
- package/backend/effects/builtin/take-screenshot.d.ts +25 -0
- package/backend/effects/builtin/text-to-speech.d.ts +7 -0
- package/backend/effects/builtin/toggle-command.d.ts +8 -0
- package/backend/effects/builtin/toggle-connection.d.ts +11 -0
- package/backend/effects/builtin/toggle-event-set.d.ts +6 -0
- package/backend/effects/builtin/toggle-event.d.ts +7 -0
- package/backend/effects/builtin/toggle-overlay-widgets.d.ts +6 -0
- package/backend/effects/builtin/toggle-scheduled-task.d.ts +8 -0
- package/backend/effects/builtin/toggle-timer.d.ts +8 -0
- package/backend/effects/builtin/trigger-manual-effect-queue.d.ts +5 -0
- package/backend/effects/builtin/update-channel-reward.d.ts +25 -0
- package/backend/effects/builtin/update-counter.d.ts +7 -0
- package/backend/effects/builtin/update-role.d.ts +12 -0
- package/backend/effects/builtin/update-viewer-rank.d.ts +8 -0
- package/backend/effects/effect-helpers.d.ts +5 -0
- package/backend/effects/effect-manager.d.ts +70 -0
- package/backend/effects/preset-lists/preset-effect-list-manager.d.ts +8 -0
- package/backend/effects/queues/effect-queue-config-manager.d.ts +17 -0
- package/backend/effects/queues/effect-queue-runner.d.ts +27 -0
- package/backend/effects/queues/effect-queue.d.ts +27 -0
- package/backend/events/activity-feed-manager.d.ts +18 -0
- package/backend/events/builtin/firebot-event-source.d.ts +2 -0
- package/backend/events/builtin-event-source-loader.d.ts +1 -0
- package/backend/events/event-manager.d.ts +26 -0
- package/backend/events/events-access.d.ts +27 -0
- package/backend/events/filters/builtin/firebot/countdown-dynamic.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/currency.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/custom-variable-name.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/custom-widget-message-name.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/custom-widget.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/effect-queue.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/index.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/metadata-key.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/metadata-value.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/new-currency-amount.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/new-rank.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/new-view-time.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/previous-currency-amount.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/previous-rank.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/previous-view-time.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/rank-ladder.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/rank-transition-type.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/triggered-command.d.ts +3 -0
- package/backend/events/filters/builtin/firebot/viewer-ranks.d.ts +3 -0
- package/backend/events/filters/builtin/firebot/viewer-roles.d.ts +3 -0
- package/backend/events/filters/builtin/firebot/webhook.d.ts +2 -0
- package/backend/events/filters/builtin/index.d.ts +2 -0
- package/backend/events/filters/builtin/third-party/donation-amount.d.ts +2 -0
- package/backend/events/filters/builtin/third-party/donation-from.d.ts +2 -0
- package/backend/events/filters/builtin/third-party/index.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/bits-badge-tier.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/channel-live.d.ts +3 -0
- package/backend/events/filters/builtin/twitch/chat-mode-duration.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/chat-mode-setting.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/chat-mode.d.ts +3 -0
- package/backend/events/filters/builtin/twitch/cheer-bits-amount.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/gift-count.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/gift-duration.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/golden-kappa-train.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/index.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/is-anonymous.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/lifetime-gift-count.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/message.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/power-up.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/raid-viewer-count.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/reward-name.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/reward.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/shared-chat.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/shared-train.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/stream-category.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/sub-kind.d.ts +3 -0
- package/backend/events/filters/builtin/twitch/sub-months.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/sub-type.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/treasure-train.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/username.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/watch-streak-count.d.ts +2 -0
- package/backend/events/filters/builtin-filter-loader.d.ts +1 -0
- package/backend/events/filters/filter-factory.d.ts +17 -0
- package/backend/events/filters/filter-manager.d.ts +18 -0
- package/backend/font-manager.d.ts +28 -0
- package/backend/games/builtin/bid/bid-command.d.ts +9 -0
- package/backend/games/builtin/bid/bid.d.ts +3 -0
- package/backend/games/builtin/heist/heist-command.d.ts +3 -0
- package/backend/games/builtin/heist/heist-runner.d.ts +23 -0
- package/backend/games/builtin/heist/heist.d.ts +3 -0
- package/backend/games/builtin/slots/slot-machine.d.ts +5 -0
- package/backend/games/builtin/slots/slots.d.ts +3 -0
- package/backend/games/builtin/slots/spin-command.d.ts +9 -0
- package/backend/games/builtin/trivia/trivia-command.d.ts +9 -0
- package/backend/games/builtin/trivia/trivia-helper.d.ts +10 -0
- package/backend/games/builtin/trivia/trivia.d.ts +3 -0
- package/backend/games/builtin-game-loader.d.ts +5 -0
- package/backend/games/game-manager.d.ts +33 -0
- package/backend/hotkeys/hotkey-manager.d.ts +17 -0
- package/backend/import/import-manager.d.ts +16 -0
- package/backend/import/third-party/firebot-importer.d.ts +2 -0
- package/backend/import/third-party/mix-it-up-importer.d.ts +2 -0
- package/backend/import/third-party/streamlabs-chatbot-importer.d.ts +9 -0
- package/backend/integrations/builtin/extralife/extralife-poll.d.ts +32 -0
- package/backend/integrations/builtin/extralife/variables/extralife-donations.d.ts +3 -0
- package/backend/integrations/builtin/extralife/variables/extralife-incentives.d.ts +3 -0
- package/backend/integrations/builtin/extralife/variables/extralife-info.d.ts +3 -0
- package/backend/integrations/builtin/extralife/variables/extralife-milestones.d.ts +3 -0
- package/backend/integrations/builtin/obs/communicator.d.ts +2 -0
- package/backend/integrations/builtin/obs/constants.d.ts +32 -0
- package/backend/integrations/builtin/obs/effects/change-scene-collection.d.ts +4 -0
- package/backend/integrations/builtin/obs/effects/change-scene-effect-type.d.ts +4 -0
- package/backend/integrations/builtin/obs/effects/create-recording-chapter.d.ts +4 -0
- package/backend/integrations/builtin/obs/effects/save-replay-buffer.d.ts +2 -0
- package/backend/integrations/builtin/obs/effects/send-raw-obs-websocket-request.d.ts +5 -0
- package/backend/integrations/builtin/obs/effects/set-obs-browser-source-url.d.ts +5 -0
- package/backend/integrations/builtin/obs/effects/set-obs-color-source-color.d.ts +6 -0
- package/backend/integrations/builtin/obs/effects/set-obs-image-source-file.d.ts +5 -0
- package/backend/integrations/builtin/obs/effects/set-obs-media-source-file.d.ts +5 -0
- package/backend/integrations/builtin/obs/effects/set-obs-source-text.d.ts +7 -0
- package/backend/integrations/builtin/obs/effects/start-stream.d.ts +2 -0
- package/backend/integrations/builtin/obs/effects/start-virtual-cam.d.ts +2 -0
- package/backend/integrations/builtin/obs/effects/stop-stream.d.ts +2 -0
- package/backend/integrations/builtin/obs/effects/stop-virtual-cam.d.ts +2 -0
- package/backend/integrations/builtin/obs/effects/take-obs-source-screenshot.d.ts +26 -0
- package/backend/integrations/builtin/obs/effects/toggle-obs-source-filter.d.ts +11 -0
- package/backend/integrations/builtin/obs/effects/toggle-obs-source-muted.d.ts +10 -0
- package/backend/integrations/builtin/obs/effects/toggle-obs-source-visibility.d.ts +13 -0
- package/backend/integrations/builtin/obs/effects/transform-obs-source.d.ts +15 -0
- package/backend/integrations/builtin/obs/events/obs-event-source.d.ts +2 -0
- package/backend/integrations/builtin/obs/filters/group-name-filter.d.ts +3 -0
- package/backend/integrations/builtin/obs/filters/scene-name-filter.d.ts +3 -0
- package/backend/integrations/builtin/obs/obs-integration.d.ts +14 -0
- package/backend/integrations/builtin/obs/obs-remote.d.ts +114 -0
- package/backend/integrations/builtin/obs/variables/group-item-id.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/group-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-active.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-audio-balance.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-audio-monitor-type.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-audio-sync-offset.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-audio-tracks.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-kind.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-muted.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-settings.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-showing.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-uuid.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-volume-db.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/input-volume-multiplier.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/is-connected.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/is-recording.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/is-streaming.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/obs-color-value.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/old-input-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/profile-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/replay-buffer-path.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/scene-collection-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/scene-item-enabled.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/scene-item-id.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/scene-item-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/scene-name-variable.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/transition-duration.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/transition-name.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/vendor-event-data.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/vendor-event-type.d.ts +2 -0
- package/backend/integrations/builtin/obs/variables/vendor-name.d.ts +2 -0
- package/backend/integrations/builtin/philips-hue/effects/control-light.d.ts +4 -0
- package/backend/integrations/builtin/streamloots/filters/card-name.d.ts +2 -0
- package/backend/integrations/builtin/streamloots/filters/card-rarity.d.ts +2 -0
- package/backend/integrations/builtin/streamloots/filters/chest-gift.d.ts +3 -0
- package/backend/integrations/builtin/streamloots/filters/chest-quantity.d.ts +2 -0
- package/backend/logger-cache.d.ts +15 -0
- package/backend/logwrapper.d.ts +3 -0
- package/backend/notifications/notification-manager.d.ts +24 -0
- package/backend/overlay-widgets/builtin-types/chat/chat-advanced.d.ts +25 -0
- package/backend/overlay-widgets/builtin-types/chat/chat.d.ts +42 -0
- package/backend/overlay-widgets/builtin-types/countdown/countdown-dynamic.d.ts +17 -0
- package/backend/overlay-widgets/builtin-types/countdown/countdown-manager.d.ts +10 -0
- package/backend/overlay-widgets/builtin-types/countdown-to-date/countdown-to-date.d.ts +12 -0
- package/backend/overlay-widgets/builtin-types/counter-display/counter-display.d.ts +3 -0
- package/backend/overlay-widgets/builtin-types/current-date-time/current-date-time.d.ts +11 -0
- package/backend/overlay-widgets/builtin-types/custom/custom-advanced.d.ts +7 -0
- package/backend/overlay-widgets/builtin-types/custom/custom.d.ts +10 -0
- package/backend/overlay-widgets/builtin-types/image/image.d.ts +9 -0
- package/backend/overlay-widgets/builtin-types/index.d.ts +48 -0
- package/backend/overlay-widgets/builtin-types/progressbar/progressbar.d.ts +25 -0
- package/backend/overlay-widgets/builtin-types/text/text.d.ts +11 -0
- package/backend/overlay-widgets/builtin-widget-type-loader.d.ts +1 -0
- package/backend/overlay-widgets/overlay-widget-config-manager.d.ts +19 -0
- package/backend/overlay-widgets/overlay-widgets-manager.d.ts +36 -0
- package/backend/plugin-log-names.d.ts +3 -0
- package/backend/plugins/executors/legacy-effect-script-executor.d.ts +15 -0
- package/backend/plugins/executors/legacy-startup-script-executor.d.ts +15 -0
- package/backend/plugins/executors/plugin-executor.d.ts +18 -0
- package/backend/plugins/executors/plugin-executor.interface.d.ts +49 -0
- package/backend/plugins/plugin-api/context.d.ts +44 -0
- package/backend/plugins/plugin-api/index.d.ts +8 -0
- package/backend/plugins/plugin-api/internal/define-namespace.d.ts +3 -0
- package/backend/plugins/plugin-api/internal/dispose-bag.d.ts +13 -0
- package/backend/plugins/plugin-api/internal/name-normalizer.d.ts +5 -0
- package/backend/plugins/plugin-api/internal/plugin-data-dir.d.ts +1 -0
- package/backend/plugins/plugin-api/namespaces/effects.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/event-filter-factory.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/events.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/frontend-communicator.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/http-server.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/logger.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/notifications.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/parameters.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/plugins.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/settings.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/storage.d.ts +6 -0
- package/backend/plugins/plugin-api/namespaces/twitch.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/variable-factory.d.ts +2 -0
- package/backend/plugins/plugin-api/namespaces/webhooks.d.ts +2 -0
- package/backend/plugins/plugin-config-manager.d.ts +10 -0
- package/backend/plugins/plugin-manager.d.ts +99 -0
- package/backend/plugins/plugin-manifest-utils.d.ts +8 -0
- package/backend/power-ups/power-ups-manager.d.ts +17 -0
- package/backend/pronouns/pronoun-manager.d.ts +16 -0
- package/backend/quick-actions/builtin/give-currency.d.ts +3 -0
- package/backend/quick-actions/builtin/open-reward-request-queue.d.ts +3 -0
- package/backend/quick-actions/builtin/stream-info.d.ts +3 -0
- package/backend/quick-actions/builtin/stream-preview.d.ts +3 -0
- package/backend/quick-actions/quick-action-manager.d.ts +16 -0
- package/backend/quotes/quote-manager.d.ts +41 -0
- package/backend/ranks/rank-command-manager.d.ts +20 -0
- package/backend/ranks/rank-ladder-helper.d.ts +23 -0
- package/backend/ranks/rank-manager.d.ts +12 -0
- package/backend/reconnecting-websocket/events.d.ts +40 -0
- package/backend/reconnecting-websocket/index.d.ts +139 -0
- package/backend/resource-token-manager.d.ts +13 -0
- package/backend/restrictions/builtin/active-chat-users.d.ts +3 -0
- package/backend/restrictions/builtin/channel-currency.d.ts +9 -0
- package/backend/restrictions/builtin/channel-game.d.ts +6 -0
- package/backend/restrictions/builtin/chat-messages.d.ts +5 -0
- package/backend/restrictions/builtin/custom-variable.d.ts +6 -0
- package/backend/restrictions/builtin/follow-check.d.ts +8 -0
- package/backend/restrictions/builtin/index.d.ts +2 -0
- package/backend/restrictions/builtin/limit-per-stream.d.ts +7 -0
- package/backend/restrictions/builtin/only-when-live.d.ts +3 -0
- package/backend/restrictions/builtin/permissions.d.ts +13 -0
- package/backend/restrictions/builtin/time-range.d.ts +8 -0
- package/backend/restrictions/builtin/view-time.d.ts +5 -0
- package/backend/restrictions/builtin/viewer-count.d.ts +7 -0
- package/backend/restrictions/builtin-restrictions-loader.d.ts +1 -0
- package/backend/restrictions/restriction-manager.d.ts +21 -0
- package/backend/roles/chat-roles-manager.d.ts +10 -0
- package/backend/roles/custom-roles-manager.d.ts +35 -0
- package/backend/roles/firebot-roles-manager.d.ts +7 -0
- package/backend/roles/role-helpers.d.ts +28 -0
- package/backend/roles/team-roles-manager.d.ts +10 -0
- package/backend/roles/twitch-roles-manager.d.ts +31 -0
- package/backend/secrets-manager.d.ts +17 -0
- package/backend/setups/setup-manager.d.ts +20 -0
- package/backend/sort-tags/sort-tag-manager.d.ts +17 -0
- package/backend/streaming-platforms/twitch/ad-manager.d.ts +18 -0
- package/backend/streaming-platforms/twitch/api/eventsub/custom-subscriptions/power-up-redemption-add-subscription.d.ts +30 -0
- package/backend/streaming-platforms/twitch/api/eventsub/eventsub-chat-helpers.d.ts +69 -0
- package/backend/streaming-platforms/twitch/api/eventsub/eventsub-client.d.ts +11 -0
- package/backend/streaming-platforms/twitch/api/eventsub/eventsub-helpers.d.ts +7 -0
- package/backend/streaming-platforms/twitch/api/index.d.ts +86 -0
- package/backend/streaming-platforms/twitch/api/resource/api-resource-base.d.ts +17 -0
- package/backend/streaming-platforms/twitch/api/resource/auth.d.ts +6 -0
- package/backend/streaming-platforms/twitch/api/resource/bits.d.ts +9 -0
- package/backend/streaming-platforms/twitch/api/resource/categories.d.ts +19 -0
- package/backend/streaming-platforms/twitch/api/resource/channel-rewards.d.ts +74 -0
- package/backend/streaming-platforms/twitch/api/resource/channels.d.ts +64 -0
- package/backend/streaming-platforms/twitch/api/resource/charity.d.ts +7 -0
- package/backend/streaming-platforms/twitch/api/resource/chat.d.ts +161 -0
- package/backend/streaming-platforms/twitch/api/resource/clips.d.ts +55 -0
- package/backend/streaming-platforms/twitch/api/resource/goals.d.ts +12 -0
- package/backend/streaming-platforms/twitch/api/resource/hypetrain.d.ts +10 -0
- package/backend/streaming-platforms/twitch/api/resource/moderation.d.ts +96 -0
- package/backend/streaming-platforms/twitch/api/resource/polls.d.ts +28 -0
- package/backend/streaming-platforms/twitch/api/resource/power-ups.d.ts +21 -0
- package/backend/streaming-platforms/twitch/api/resource/predictions.d.ts +39 -0
- package/backend/streaming-platforms/twitch/api/resource/streams.d.ts +12 -0
- package/backend/streaming-platforms/twitch/api/resource/subscriptions.d.ts +24 -0
- package/backend/streaming-platforms/twitch/api/resource/teams.d.ts +11 -0
- package/backend/streaming-platforms/twitch/api/resource/users.d.ts +20 -0
- package/backend/streaming-platforms/twitch/api/resource/videos.d.ts +12 -0
- package/backend/streaming-platforms/twitch/api/resource/whispers.d.ts +17 -0
- package/backend/streaming-platforms/twitch/api/user-context-api-client.d.ts +12 -0
- package/backend/streaming-platforms/twitch/auth/twitch-auth.d.ts +14 -0
- package/backend/streaming-platforms/twitch/auth/twitch-device-auth-provider.d.ts +97 -0
- package/backend/streaming-platforms/twitch/chat/shared-chat-cache.d.ts +13 -0
- package/backend/streaming-platforms/twitch/chat/slash-commands/channel-handlers.d.ts +4 -0
- package/backend/streaming-platforms/twitch/chat/slash-commands/chat-handlers.d.ts +19 -0
- package/backend/streaming-platforms/twitch/chat/slash-commands/moderation-handlers.d.ts +8 -0
- package/backend/streaming-platforms/twitch/chat/slash-commands/twitch-command-helpers.d.ts +4 -0
- package/backend/streaming-platforms/twitch/chat/twitch-slash-command-handler.d.ts +9 -0
- package/backend/streaming-platforms/twitch/chatter-poll.d.ts +12 -0
- package/backend/streaming-platforms/twitch/effects/ad-break.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/announcement.d.ts +7 -0
- package/backend/streaming-platforms/twitch/effects/approve-reject-channel-reward-redemption.d.ts +9 -0
- package/backend/streaming-platforms/twitch/effects/block-unblock.d.ts +6 -0
- package/backend/streaming-platforms/twitch/effects/cancel-prediction.d.ts +3 -0
- package/backend/streaming-platforms/twitch/effects/create-poll.d.ts +9 -0
- package/backend/streaming-platforms/twitch/effects/create-prediction.d.ts +7 -0
- package/backend/streaming-platforms/twitch/effects/create-stream-marker.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/end-poll.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/lock-prediction.d.ts +3 -0
- package/backend/streaming-platforms/twitch/effects/pin-chat-message.d.ts +6 -0
- package/backend/streaming-platforms/twitch/effects/raid.d.ts +6 -0
- package/backend/streaming-platforms/twitch/effects/resolve-prediction.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/set-chat-mode.d.ts +16 -0
- package/backend/streaming-platforms/twitch/effects/shield-mode.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/shoutout.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/snooze-ad-break.d.ts +3 -0
- package/backend/streaming-platforms/twitch/effects/stream-game.d.ts +8 -0
- package/backend/streaming-platforms/twitch/effects/stream-title.d.ts +5 -0
- package/backend/streaming-platforms/twitch/effects/unpin-chat-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/effects/update-pinned-chat-message.d.ts +6 -0
- package/backend/streaming-platforms/twitch/effects/update-vip-role.d.ts +6 -0
- package/backend/streaming-platforms/twitch/events/ad.d.ts +2 -0
- package/backend/streaming-platforms/twitch/events/announcement.d.ts +1 -0
- package/backend/streaming-platforms/twitch/events/bits.d.ts +7 -0
- package/backend/streaming-platforms/twitch/events/charity.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/chat-message.d.ts +5 -0
- package/backend/streaming-platforms/twitch/events/chat-mode-changed.d.ts +1 -0
- package/backend/streaming-platforms/twitch/events/chat.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/follow.d.ts +1 -0
- package/backend/streaming-platforms/twitch/events/gift-sub.d.ts +3 -0
- package/backend/streaming-platforms/twitch/events/goal.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/hype-train.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/index.d.ts +50 -0
- package/backend/streaming-platforms/twitch/events/poll.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/prediction.d.ts +5 -0
- package/backend/streaming-platforms/twitch/events/raid.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/reward-redemption.d.ts +7 -0
- package/backend/streaming-platforms/twitch/events/shoutout.d.ts +2 -0
- package/backend/streaming-platforms/twitch/events/stream.d.ts +4 -0
- package/backend/streaming-platforms/twitch/events/sub.d.ts +2 -0
- package/backend/streaming-platforms/twitch/events/viewer-arrived.d.ts +2 -0
- package/backend/streaming-platforms/twitch/events/viewer-banned.d.ts +2 -0
- package/backend/streaming-platforms/twitch/events/viewer-timeout.d.ts +1 -0
- package/backend/streaming-platforms/twitch/events/watch-streak.d.ts +1 -0
- package/backend/streaming-platforms/twitch/events/whisper.d.ts +1 -0
- package/backend/streaming-platforms/twitch/stream-info-manager.d.ts +23 -0
- package/backend/streaming-platforms/twitch/variables/account-creation-date.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/ads/ad-break-duration.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/ads/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/ads/is-ad-break-running.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/ads/is-ad-break-scheduled.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/ads/seconds-until-next-ad-break.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-badge-tier.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-badge-unlocked-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-cheered.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-leaderboard-raw.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-leaderboard.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-top-cheerers-raw.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/bits-top-cheerers.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/cheer-bits.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/cheer-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/cheer-total-bits.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/gigantified-emote-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/gigantified-emote-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/bits/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/channel-goal/channel-goal-current-amount.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/channel-goal/channel-goal-description.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/channel-goal/channel-goal-target-amount.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/channel-goal/channel-goal-type.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/channel-goal/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-campaign-goal.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-campaign-total.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-description.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-logo.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/charity-website.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/charity/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-animated-emote-urls.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-emote-names.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-emote-urls.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-html.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message-text-only.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/chat-user-color.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/is-whisper.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/whisper-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/message/whisper-recipient.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/mode/chat-mode-duration.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/mode/chat-mode-state.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/mode/chat-mode.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/mode/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/moderation/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/moderation/mod-reason.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/moderation/moderator.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/moderation/timeout-duration.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-by-user-display-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-by-user-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-by-username.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message-text-only.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message-user-display-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message-user-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message-username.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/pinned-message/pinned-chat-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/is-shared-chat-enabled.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/is-shared-chat-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-participants.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-source-avatar-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-source-display-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-source-user-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-source-user.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/shared-chat/shared-chat-source-username.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/watch-streak/channel-points-awarded.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/watch-streak/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/chat/watch-streak/streak-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/chat/watch-streak/streak-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/cheermote-amounts.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/cheermote-animated-urls.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/cheermote-colors.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/cheermote-names.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/cheermote-urls.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/cheermote/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/clips/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/clips/latest-clip-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/clips/random-clip-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/follow-age.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/follow-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/golden-kappa-train.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/hype-train-level.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/hype-train-percent.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/hype-train-previous-level.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/shared-train.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/hype-train/treasure-train.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/latest-follower.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/polls/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/polls/poll-choices.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/polls/poll-title.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/polls/poll-winning-choice-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/polls/poll-winning-choice-votes.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-cost.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-description.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-image-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/power-ups/power-up-redemption-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/prediction-winning-outcome-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/raid/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/raid/raid-target-user-display-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/raid/raid-target-user-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/raid/raid-target-username.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/raid/raid-viewer-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-cost.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-description.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-image-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/reward-redemption-id.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/unlocked-emote-name.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/reward/unlocked-emote-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/stream/category-image-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/stream/category.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/stream/current-viewer-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/stream/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/stream/is-channel-live.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/stream/stream-title.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-duration.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-giver-user.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-receiver-user.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-receivers-raw.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-receivers.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-sub-months.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/gift-sub-type.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/index.d.ts +2 -0
- package/backend/streaming-platforms/twitch/variables/subs/is-anonymous.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/lifetime-gift-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-message.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-months.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-points.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-streak.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-type.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/subs/sub-users.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/twitch-channel-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/twitch-vod-url.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/viewer-count.d.ts +3 -0
- package/backend/streaming-platforms/twitch/variables/vip.d.ts +3 -0
- package/backend/timers/scheduled-task-manager.d.ts +22 -0
- package/backend/timers/timer-manager.d.ts +20 -0
- package/backend/ui-extensions/ui-extension-manager.d.ts +11 -0
- package/backend/utils/arrays.d.ts +46 -0
- package/backend/utils/async.d.ts +5 -0
- package/backend/utils/binary.d.ts +6 -0
- package/backend/utils/capitalize.d.ts +5 -0
- package/backend/utils/commafy.d.ts +6 -0
- package/backend/utils/date-time.d.ts +27 -0
- package/backend/utils/empty-folder.d.ts +5 -0
- package/backend/utils/escape-reg-exp.d.ts +5 -0
- package/backend/utils/get-random-int.d.ts +6 -0
- package/backend/utils/index.d.ts +16 -0
- package/backend/utils/is-valid-uuid.d.ts +6 -0
- package/backend/utils/mask-pii.d.ts +13 -0
- package/backend/utils/objects.d.ts +37 -0
- package/backend/utils/pick.d.ts +5 -0
- package/backend/utils/stringify.d.ts +5 -0
- package/backend/utils/trigger-data.d.ts +8 -0
- package/backend/utils/url.d.ts +6 -0
- package/backend/variables/builtin/accounts/bot.d.ts +3 -0
- package/backend/variables/builtin/accounts/index.d.ts +2 -0
- package/backend/variables/builtin/accounts/streamer.d.ts +3 -0
- package/backend/variables/builtin/array/array-add.d.ts +3 -0
- package/backend/variables/builtin/array/array-element.d.ts +3 -0
- package/backend/variables/builtin/array/array-filter.d.ts +3 -0
- package/backend/variables/builtin/array/array-find-index.d.ts +3 -0
- package/backend/variables/builtin/array/array-find-with-null.d.ts +3 -0
- package/backend/variables/builtin/array/array-find.d.ts +3 -0
- package/backend/variables/builtin/array/array-from.d.ts +3 -0
- package/backend/variables/builtin/array/array-fuzzy-search.d.ts +3 -0
- package/backend/variables/builtin/array/array-join.d.ts +3 -0
- package/backend/variables/builtin/array/array-length.d.ts +3 -0
- package/backend/variables/builtin/array/array-random-item.d.ts +3 -0
- package/backend/variables/builtin/array/array-remove.d.ts +3 -0
- package/backend/variables/builtin/array/array-reverse.d.ts +3 -0
- package/backend/variables/builtin/array/array-shuffle.d.ts +3 -0
- package/backend/variables/builtin/array/array-slice.d.ts +3 -0
- package/backend/variables/builtin/array/index.d.ts +2 -0
- package/backend/variables/builtin/array/raw-array-add.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-element.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-filter.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-find-index.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-find.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-from.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-join.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-length.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-remove.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-reverse.d.ts +3 -0
- package/backend/variables/builtin/array/raw-array-shuffle.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-change.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-maximum.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-minimum.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-name.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-new-value.d.ts +3 -0
- package/backend/variables/builtin/counter/counter-previous-value.d.ts +3 -0
- package/backend/variables/builtin/counter/counter.d.ts +3 -0
- package/backend/variables/builtin/counter/index.d.ts +2 -0
- package/backend/variables/builtin/currency/currency-name.d.ts +2 -0
- package/backend/variables/builtin/currency/currency-rank.d.ts +3 -0
- package/backend/variables/builtin/currency/currency.d.ts +3 -0
- package/backend/variables/builtin/currency/index.d.ts +2 -0
- package/backend/variables/builtin/currency/new-currency-amount.d.ts +2 -0
- package/backend/variables/builtin/currency/previous-currency-amount.d.ts +2 -0
- package/backend/variables/builtin/currency/top-currency-raw.d.ts +3 -0
- package/backend/variables/builtin/currency/top-currency-user.d.ts +3 -0
- package/backend/variables/builtin/currency/top-currency.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-created-data.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-created-name.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-expired-data.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-expired-name.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-keys-raw.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-keys.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable-raw.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/custom-variable.d.ts +3 -0
- package/backend/variables/builtin/custom-vars/index.d.ts +2 -0
- package/backend/variables/builtin/donation/donation-amount-formatted.d.ts +3 -0
- package/backend/variables/builtin/donation/donation-amount.d.ts +3 -0
- package/backend/variables/builtin/donation/donation-from.d.ts +3 -0
- package/backend/variables/builtin/donation/donation-message.d.ts +3 -0
- package/backend/variables/builtin/donation/index.d.ts +2 -0
- package/backend/variables/builtin/index.d.ts +2 -0
- package/backend/variables/builtin/macro/index.d.ts +2 -0
- package/backend/variables/builtin/macro/macro-arg.d.ts +3 -0
- package/backend/variables/builtin/macro/macro.d.ts +3 -0
- package/backend/variables/builtin/metadata/arg-array-raw.d.ts +3 -0
- package/backend/variables/builtin/metadata/arg-array.d.ts +3 -0
- package/backend/variables/builtin/metadata/arg-count.d.ts +3 -0
- package/backend/variables/builtin/metadata/arg.d.ts +3 -0
- package/backend/variables/builtin/metadata/command-trigger.d.ts +3 -0
- package/backend/variables/builtin/metadata/control-deck-input.d.ts +3 -0
- package/backend/variables/builtin/metadata/count.d.ts +3 -0
- package/backend/variables/builtin/metadata/effect-output.d.ts +3 -0
- package/backend/variables/builtin/metadata/effect-queue-id.d.ts +3 -0
- package/backend/variables/builtin/metadata/effect-queue-length.d.ts +3 -0
- package/backend/variables/builtin/metadata/effect-queue-name.d.ts +3 -0
- package/backend/variables/builtin/metadata/effect-queue-status.d.ts +3 -0
- package/backend/variables/builtin/metadata/event-data.d.ts +3 -0
- package/backend/variables/builtin/metadata/index.d.ts +2 -0
- package/backend/variables/builtin/metadata/overlay-instance.d.ts +3 -0
- package/backend/variables/builtin/metadata/preset-list-arg.d.ts +3 -0
- package/backend/variables/builtin/metadata/scan-whole-message.d.ts +3 -0
- package/backend/variables/builtin/metadata/target.d.ts +6 -0
- package/backend/variables/builtin/metadata/top-metadata-raw.d.ts +3 -0
- package/backend/variables/builtin/metadata/top-metadata-user.d.ts +3 -0
- package/backend/variables/builtin/metadata/top-metadata.d.ts +3 -0
- package/backend/variables/builtin/metadata/user.d.ts +3 -0
- package/backend/variables/builtin/metadata/username.d.ts +3 -0
- package/backend/variables/builtin/metadata/webhook-header.d.ts +3 -0
- package/backend/variables/builtin/metadata/webhook-headers.d.ts +2 -0
- package/backend/variables/builtin/metadata/webhook-id.d.ts +2 -0
- package/backend/variables/builtin/metadata/webhook-name.d.ts +2 -0
- package/backend/variables/builtin/metadata/webhook-payload.d.ts +2 -0
- package/backend/variables/builtin/metadata/webhook-raw-payload.d.ts +2 -0
- package/backend/variables/builtin/misc/active-chat-user-count.d.ts +3 -0
- package/backend/variables/builtin/misc/chat-user-count.d.ts +3 -0
- package/backend/variables/builtin/misc/color.d.ts +3 -0
- package/backend/variables/builtin/misc/date.d.ts +3 -0
- package/backend/variables/builtin/misc/discord-timestamp.d.ts +3 -0
- package/backend/variables/builtin/misc/index.d.ts +2 -0
- package/backend/variables/builtin/misc/profile-page-bytebin-token.d.ts +3 -0
- package/backend/variables/builtin/misc/quote-as-object.d.ts +3 -0
- package/backend/variables/builtin/misc/quote-as-raw-object.d.ts +3 -0
- package/backend/variables/builtin/misc/quote.d.ts +3 -0
- package/backend/variables/builtin/misc/random-advice.d.ts +3 -0
- package/backend/variables/builtin/misc/random-dad-joke.d.ts +3 -0
- package/backend/variables/builtin/misc/random-reddit-image.d.ts +3 -0
- package/backend/variables/builtin/misc/roll-dice.d.ts +3 -0
- package/backend/variables/builtin/misc/time.d.ts +3 -0
- package/backend/variables/builtin/misc/top-view-time-raw.d.ts +3 -0
- package/backend/variables/builtin/misc/top-view-time.d.ts +3 -0
- package/backend/variables/builtin/misc/unix-timestamp.d.ts +3 -0
- package/backend/variables/builtin/misc/uptime.d.ts +3 -0
- package/backend/variables/builtin/number/ensure-number.d.ts +3 -0
- package/backend/variables/builtin/number/index.d.ts +2 -0
- package/backend/variables/builtin/number/math.d.ts +3 -0
- package/backend/variables/builtin/number/number-ceil.d.ts +3 -0
- package/backend/variables/builtin/number/number-commafy.d.ts +3 -0
- package/backend/variables/builtin/number/number-floor.d.ts +3 -0
- package/backend/variables/builtin/number/number-max.d.ts +3 -0
- package/backend/variables/builtin/number/number-min.d.ts +3 -0
- package/backend/variables/builtin/number/number-pad.d.ts +3 -0
- package/backend/variables/builtin/number/number-random.d.ts +3 -0
- package/backend/variables/builtin/number/number-round.d.ts +3 -0
- package/backend/variables/builtin/number/ordinal-indicator.d.ts +3 -0
- package/backend/variables/builtin/object/index.d.ts +2 -0
- package/backend/variables/builtin/object/object-keys.d.ts +3 -0
- package/backend/variables/builtin/object/object-set-property-raw.d.ts +3 -0
- package/backend/variables/builtin/object/object-set-property.d.ts +3 -0
- package/backend/variables/builtin/object/object-walk-path-raw.d.ts +3 -0
- package/backend/variables/builtin/object/object-walk-path.d.ts +3 -0
- package/backend/variables/builtin/operand/false.d.ts +3 -0
- package/backend/variables/builtin/operand/index.d.ts +2 -0
- package/backend/variables/builtin/operand/null.d.ts +3 -0
- package/backend/variables/builtin/operand/true.d.ts +3 -0
- package/backend/variables/builtin/overlay-widgets/custom-widget-id.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/custom-widget-message-data.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/custom-widget-message-name.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/custom-widget-name.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/dynamic-countdown-id.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/dynamic-countdown-name.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/index.d.ts +2 -0
- package/backend/variables/builtin/overlay-widgets/overlay-widget-state.d.ts +3 -0
- package/backend/variables/builtin/spoofed/all.d.ts +3 -0
- package/backend/variables/builtin/spoofed/and.d.ts +3 -0
- package/backend/variables/builtin/spoofed/any.d.ts +3 -0
- package/backend/variables/builtin/spoofed/custom-variable-shorthand.d.ts +3 -0
- package/backend/variables/builtin/spoofed/effect-output-shorthand.d.ts +3 -0
- package/backend/variables/builtin/spoofed/if.d.ts +3 -0
- package/backend/variables/builtin/spoofed/index.d.ts +2 -0
- package/backend/variables/builtin/spoofed/nall.d.ts +3 -0
- package/backend/variables/builtin/spoofed/nand.d.ts +3 -0
- package/backend/variables/builtin/spoofed/nany.d.ts +3 -0
- package/backend/variables/builtin/spoofed/nor.d.ts +3 -0
- package/backend/variables/builtin/spoofed/not.d.ts +3 -0
- package/backend/variables/builtin/spoofed/or.d.ts +3 -0
- package/backend/variables/builtin/spoofed/preset-list-args-shorthand.d.ts +3 -0
- package/backend/variables/builtin/text/atob.d.ts +3 -0
- package/backend/variables/builtin/text/base64-decode.d.ts +3 -0
- package/backend/variables/builtin/text/base64-encode.d.ts +3 -0
- package/backend/variables/builtin/text/btoa.d.ts +3 -0
- package/backend/variables/builtin/text/index.d.ts +2 -0
- package/backend/variables/builtin/text/regex-exec.d.ts +3 -0
- package/backend/variables/builtin/text/regex-matches-raw.d.ts +3 -0
- package/backend/variables/builtin/text/regex-matches.d.ts +3 -0
- package/backend/variables/builtin/text/regex-test.d.ts +3 -0
- package/backend/variables/builtin/text/sprintf.d.ts +3 -0
- package/backend/variables/builtin/text/text-capitalize.d.ts +3 -0
- package/backend/variables/builtin/text/text-concat.d.ts +3 -0
- package/backend/variables/builtin/text/text-contains.d.ts +3 -0
- package/backend/variables/builtin/text/text-decode-from-html.d.ts +3 -0
- package/backend/variables/builtin/text/text-decode-from-url.d.ts +3 -0
- package/backend/variables/builtin/text/text-encode-for-html.d.ts +3 -0
- package/backend/variables/builtin/text/text-encode-for-url.d.ts +3 -0
- package/backend/variables/builtin/text/text-length.d.ts +3 -0
- package/backend/variables/builtin/text/text-lowercase.d.ts +3 -0
- package/backend/variables/builtin/text/text-pad-end.d.ts +3 -0
- package/backend/variables/builtin/text/text-pad-start.d.ts +3 -0
- package/backend/variables/builtin/text/text-replace.d.ts +3 -0
- package/backend/variables/builtin/text/text-scramble.d.ts +3 -0
- package/backend/variables/builtin/text/text-split-raw.d.ts +3 -0
- package/backend/variables/builtin/text/text-split.d.ts +3 -0
- package/backend/variables/builtin/text/text-substring.d.ts +3 -0
- package/backend/variables/builtin/text/text-trim-end.d.ts +3 -0
- package/backend/variables/builtin/text/text-trim-start.d.ts +3 -0
- package/backend/variables/builtin/text/text-trim.d.ts +3 -0
- package/backend/variables/builtin/text/text-uppercase.d.ts +3 -0
- package/backend/variables/builtin/text/text-word.d.ts +3 -0
- package/backend/variables/builtin/user/chat-messages.d.ts +3 -0
- package/backend/variables/builtin/user/index.d.ts +2 -0
- package/backend/variables/builtin/user/is-user-in-chat.d.ts +3 -0
- package/backend/variables/builtin/user/join-date.d.ts +3 -0
- package/backend/variables/builtin/user/last-seen.d.ts +3 -0
- package/backend/variables/builtin/user/metadata-key.d.ts +2 -0
- package/backend/variables/builtin/user/metadata-value.d.ts +2 -0
- package/backend/variables/builtin/user/pronouns.d.ts +3 -0
- package/backend/variables/builtin/user/random-active-viewer.d.ts +3 -0
- package/backend/variables/builtin/user/random-viewer.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/index.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/is-demotion.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/is-promotion.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/new-rank.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/previous-rank.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/rank-ladder-mode.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/rank-ladder.d.ts +2 -0
- package/backend/variables/builtin/user/ranks/rank-value-description.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/rank-value.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/viewer-has-rank.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/viewer-names-in-rank.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/viewer-next-rank.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/viewer-rank.d.ts +3 -0
- package/backend/variables/builtin/user/ranks/viewers-in-rank-array.d.ts +3 -0
- package/backend/variables/builtin/user/roles/custom-role-user-count.d.ts +3 -0
- package/backend/variables/builtin/user/roles/custom-role-users-raw.d.ts +3 -0
- package/backend/variables/builtin/user/roles/custom-role-users.d.ts +3 -0
- package/backend/variables/builtin/user/roles/has-role.d.ts +3 -0
- package/backend/variables/builtin/user/roles/has-roles.d.ts +3 -0
- package/backend/variables/builtin/user/roles/index.d.ts +2 -0
- package/backend/variables/builtin/user/roles/random-custom-role-user-raw.d.ts +3 -0
- package/backend/variables/builtin/user/roles/random-custom-role-user.d.ts +3 -0
- package/backend/variables/builtin/user/roles/user-roles-raw.d.ts +3 -0
- package/backend/variables/builtin/user/roles/user-roles.d.ts +3 -0
- package/backend/variables/builtin/user/user-avatar-url.d.ts +3 -0
- package/backend/variables/builtin/user/user-badge-urls.d.ts +3 -0
- package/backend/variables/builtin/user/user-bio.d.ts +3 -0
- package/backend/variables/builtin/user/user-display-name.d.ts +3 -0
- package/backend/variables/builtin/user/user-exists.d.ts +3 -0
- package/backend/variables/builtin/user/user-id-name.d.ts +3 -0
- package/backend/variables/builtin/user/user-id.d.ts +3 -0
- package/backend/variables/builtin/user/user-is-banned.d.ts +3 -0
- package/backend/variables/builtin/user/user-is-timed-out.d.ts +3 -0
- package/backend/variables/builtin/user/user-metadata-raw.d.ts +3 -0
- package/backend/variables/builtin/user/user-metadata.d.ts +3 -0
- package/backend/variables/builtin/user/username-array-raw.d.ts +3 -0
- package/backend/variables/builtin/user/username-array.d.ts +3 -0
- package/backend/variables/builtin/user/view-time.d.ts +3 -0
- package/backend/variables/builtin/utility/allow-html.d.ts +3 -0
- package/backend/variables/builtin/utility/api-read-raw.d.ts +3 -0
- package/backend/variables/builtin/utility/api-read.d.ts +3 -0
- package/backend/variables/builtin/utility/audio-duration.d.ts +3 -0
- package/backend/variables/builtin/utility/convert-from-json.d.ts +3 -0
- package/backend/variables/builtin/utility/convert-to-json.d.ts +3 -0
- package/backend/variables/builtin/utility/eval-js.d.ts +3 -0
- package/backend/variables/builtin/utility/eval-vars.d.ts +3 -0
- package/backend/variables/builtin/utility/file-exists.d.ts +3 -0
- package/backend/variables/builtin/utility/file-line-count.d.ts +3 -0
- package/backend/variables/builtin/utility/file-name.d.ts +3 -0
- package/backend/variables/builtin/utility/file-read.d.ts +3 -0
- package/backend/variables/builtin/utility/files-in-directory.d.ts +3 -0
- package/backend/variables/builtin/utility/format-duration.d.ts +3 -0
- package/backend/variables/builtin/utility/index.d.ts +2 -0
- package/backend/variables/builtin/utility/loop-count.d.ts +3 -0
- package/backend/variables/builtin/utility/loop-item.d.ts +3 -0
- package/backend/variables/builtin/utility/overlay-resources-path.d.ts +3 -0
- package/backend/variables/builtin/utility/quick-store.d.ts +3 -0
- package/backend/variables/builtin/utility/random-uuid.d.ts +3 -0
- package/backend/variables/builtin/utility/run-effect.d.ts +3 -0
- package/backend/variables/builtin/utility/video-duration.d.ts +3 -0
- package/backend/variables/macro-manager.d.ts +10 -0
- package/backend/variables/replace-variable-manager.d.ts +45 -0
- package/backend/variables/variable-factory.d.ts +2 -0
- package/backend/variables/variable-loader.d.ts +1 -0
- package/backend/viewers/viewer-database.d.ts +87 -0
- package/backend/viewers/viewer-export-manager.d.ts +17 -0
- package/backend/viewers/viewer-metadata-manager.d.ts +18 -0
- package/backend/viewers/viewer-online-status-manager.d.ts +26 -0
- package/backend/webhooks/webhook-config-manager.d.ts +26 -0
- package/index.d.ts +3 -3
- package/package.json +10 -3
- package/server/bonjour-manager.d.ts +11 -0
- package/server/http-server-manager.d.ts +70 -0
- package/server/websocket-client.d.ts +5 -0
- package/server/websocket-events-handler.d.ts +1 -0
- package/server/websocket-server-manager.d.ts +22 -0
- package/types/accounts.d.ts +1 -2
- package/types/auth.d.ts +1 -10
- package/types/channel-rewards.d.ts +1 -5
- package/types/chat.d.ts +9 -31
- package/types/commands.d.ts +11 -31
- package/types/control-deck.d.ts +236 -0
- package/types/counters.d.ts +1 -2
- package/types/currency.d.ts +1 -3
- package/types/discord.d.ts +2 -3
- package/types/effects.d.ts +19 -42
- package/types/events.d.ts +14 -37
- package/types/expressionish.d.ts +2 -22
- package/types/games.d.ts +1 -4
- package/types/hotkeys.d.ts +1 -3
- package/types/http-server.d.ts +19 -0
- package/types/icons.d.ts +1 -1
- package/types/import.d.ts +7 -34
- package/types/index.d.ts +6 -1
- package/types/integrations.d.ts +41 -65
- package/types/moderation.d.ts +1 -8
- package/types/modules/event-manager.d.ts +2 -10
- package/types/modules/frontend-communicator.d.ts +5 -21
- package/types/modules/index.d.ts +1 -1
- package/types/notifications.d.ts +28 -0
- package/types/overlay-widgets.d.ts +11 -34
- package/types/parameters.d.ts +29 -182
- package/types/plugin-api.d.ts +178 -0
- package/types/plugins.d.ts +114 -116
- package/types/power-ups.d.ts +0 -2
- package/types/pronouns.d.ts +1 -2
- package/types/quick-actions.d.ts +1 -3
- package/types/quotes.d.ts +1 -3
- package/types/ranks.d.ts +1 -2
- package/types/restrictions.d.ts +11 -24
- package/types/roles.d.ts +1 -3
- package/types/settings.d.ts +5 -5
- package/types/setups.d.ts +2 -4
- package/types/sort-tags.d.ts +1 -1
- package/types/timers.d.ts +1 -5
- package/types/triggers.d.ts +12 -23
- package/types/ui/angular.d.ts +5 -26
- package/types/ui/control-deck-service.d.ts +8 -0
- package/types/ui/effect-helper-service.d.ts +1 -2
- package/types/ui/effect-queues-service.d.ts +8 -4
- package/types/ui/firebot-root-scope.d.ts +0 -1
- package/types/ui/index.d.ts +2 -1
- package/types/ui/modal-factory.d.ts +5 -13
- package/types/ui/modal-service.d.ts +3 -2
- package/types/ui/ng-toast.d.ts +5 -1
- package/types/ui/object-copy-helper.d.ts +1 -1
- package/types/ui/platform-service.d.ts +1 -1
- package/types/ui/preset-effect-lists-service.d.ts +1 -6
- package/types/ui/settings-service.d.ts +0 -1
- package/types/ui-extensions.d.ts +101 -0
- package/types/util-types.d.ts +11 -33
- package/types/variable-macros.d.ts +1 -1
- package/types/variables.d.ts +24 -19
- package/types/viewers.d.ts +1 -3
- package/types/webhooks.d.ts +16 -1
- package/types/websocket.d.ts +9 -47
- package/types/script-api.d.ts +0 -95
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { InstalledPlugin, InstalledPluginConfig, PluginDetails, PluginType, Trigger } from "../../types";
|
|
2
|
+
import { EffectScriptExecutionResult } from "./executors/plugin-executor.interface";
|
|
3
|
+
type GetPluginDetailsResult = {
|
|
4
|
+
success: true;
|
|
5
|
+
fileName: string;
|
|
6
|
+
pluginType: "plugin" | "script";
|
|
7
|
+
details: PluginDetails;
|
|
8
|
+
} | {
|
|
9
|
+
success: false;
|
|
10
|
+
error: string;
|
|
11
|
+
};
|
|
12
|
+
declare class PluginManager {
|
|
13
|
+
private startingPlugins;
|
|
14
|
+
private activePlugins;
|
|
15
|
+
private pendingApiInstances;
|
|
16
|
+
private requireInterceptorInstalled;
|
|
17
|
+
private pluginExecutors;
|
|
18
|
+
private legacyEffectScriptExecutor;
|
|
19
|
+
constructor();
|
|
20
|
+
migrateLegacyStartUpScriptsToPlugins(): Promise<void>;
|
|
21
|
+
startPlugin(pluginConfig: InstalledPluginConfig, installing?: boolean): Promise<void>;
|
|
22
|
+
private doStartPlugin;
|
|
23
|
+
startPlugins(): Promise<void>;
|
|
24
|
+
stopPlugin(pluginId: string, uninstalling?: boolean): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Convenience helper for hot-reloading. Finds an active plugin by its plugin file
|
|
27
|
+
* name and restarts it (stop then start). Does nothing if no active plugin matches.
|
|
28
|
+
*/
|
|
29
|
+
restartPluginByFileName(fileName: string): Promise<void>;
|
|
30
|
+
stopAllPlugins(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Handle a config change. Starts/stops as needed, and on a still-enabled plugin
|
|
33
|
+
* either re-loads (if file may have changed) or invokes onParameterUpdate.
|
|
34
|
+
*/
|
|
35
|
+
reloadPluginConfig(pluginConfig: InstalledPluginConfig, isNewInstall?: boolean): Promise<void>;
|
|
36
|
+
setPluginEnabled(pluginId: string, enabled: boolean): Promise<void>;
|
|
37
|
+
getInstalledPlugins(): Promise<InstalledPlugin[]>;
|
|
38
|
+
private doGetPluginDetailsByFileName;
|
|
39
|
+
/**
|
|
40
|
+
* Loads a plugin file (without persisting a config) and returns its details for
|
|
41
|
+
* the install / edit UI.
|
|
42
|
+
*/
|
|
43
|
+
getPluginDetailsByFileName(fileName: string, expectedPluginType?: PluginType): Promise<GetPluginDetailsResult>;
|
|
44
|
+
/**
|
|
45
|
+
* Validates a file at any path on disk and copies it into the scripts folder.
|
|
46
|
+
* Does NOT persist an InstalledPluginConfig — caller does that on save.
|
|
47
|
+
*/
|
|
48
|
+
installPluginFromPath(sourcePath: string, overwrite?: boolean): Promise<GetPluginDetailsResult | {
|
|
49
|
+
success: false;
|
|
50
|
+
error: string;
|
|
51
|
+
conflict?: boolean;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Delete a copied plugin file that the user cancelled installing, but only
|
|
55
|
+
* when no config currently references it.
|
|
56
|
+
*/
|
|
57
|
+
cancelInstall(fileName: string): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Called by PluginConfigManager when a config is deleted, so we can stop the
|
|
60
|
+
* plugin.
|
|
61
|
+
*/
|
|
62
|
+
onPluginConfigDeleted(pluginConfig: InstalledPluginConfig): Promise<void>;
|
|
63
|
+
deletePluginFileIfUnreferenced(fileName: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Remove an installed plugin. Stops the plugin and deletes its config, and
|
|
66
|
+
* optionally deletes the underlying plugin file from the scripts folder.
|
|
67
|
+
*/
|
|
68
|
+
deletePlugin(pluginId: string, deletePluginFile?: boolean): Promise<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Replace the underlying plugin file for an existing plugin config with a new file
|
|
71
|
+
* chosen on disk.
|
|
72
|
+
*/
|
|
73
|
+
updatePluginFromPath(pluginId: string, sourcePath: string, overwrite?: boolean): Promise<GetPluginDetailsResult | {
|
|
74
|
+
success: false;
|
|
75
|
+
error: string;
|
|
76
|
+
conflict?: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
runEffectScript(effectData: {
|
|
79
|
+
scriptName: string;
|
|
80
|
+
parameters?: Record<string, unknown>;
|
|
81
|
+
}, trigger?: Trigger): Promise<EffectScriptExecutionResult | undefined>;
|
|
82
|
+
private getPluginFilePath;
|
|
83
|
+
private getActivePluginByFileName;
|
|
84
|
+
private findPluginExecutor;
|
|
85
|
+
private installRequireInterceptor;
|
|
86
|
+
private createApiInstance;
|
|
87
|
+
private loadPlugin;
|
|
88
|
+
/**
|
|
89
|
+
* Hack to load a plugin without registering it in `require.cache`.
|
|
90
|
+
*
|
|
91
|
+
* Used for read-only inspection (manifest / parameter schema lookup) so that
|
|
92
|
+
* loading a fresh copy of a plugin does not evict or replace the cached module
|
|
93
|
+
* of a currently-running plugin is holding a reference to.
|
|
94
|
+
*/
|
|
95
|
+
private loadPluginIsolated;
|
|
96
|
+
private isValidPlugin;
|
|
97
|
+
}
|
|
98
|
+
declare const pluginManager: PluginManager;
|
|
99
|
+
export { pluginManager as PluginManager };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Manifest } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the external links (repo / website / support) for a plugin manifest.
|
|
4
|
+
*
|
|
5
|
+
* When the manifest `repo` points at a GitHub repository, `website` and `support`
|
|
6
|
+
* are auto-populated when not explicitly provided.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolvePluginManifestLinks<T extends Manifest>(manifest: T): T;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JsonDB } from "node-json-db";
|
|
2
|
+
import type { PowerUpRedemptionMetadata, SavedPowerUp } from "../../types";
|
|
3
|
+
declare class PowerUpsManager {
|
|
4
|
+
private logger;
|
|
5
|
+
powerUps: Record<string, SavedPowerUp>;
|
|
6
|
+
constructor();
|
|
7
|
+
getPowerUpsDb(): JsonDB;
|
|
8
|
+
loadPowerUps(): Promise<void>;
|
|
9
|
+
savePowerUp(powerUp: SavedPowerUp, emitUpdateEvent?: boolean): Promise<SavedPowerUp>;
|
|
10
|
+
saveAllPowerUps(allPowerUps: SavedPowerUp[]): Promise<void>;
|
|
11
|
+
getPowerUp(powerUpId: string): SavedPowerUp;
|
|
12
|
+
getPowerUpIdByName(powerUpName: string): string;
|
|
13
|
+
private triggerPowerUpEffects;
|
|
14
|
+
triggerPowerUp(powerUpId: string, metadata: PowerUpRedemptionMetadata, manual?: boolean): Promise<boolean | void>;
|
|
15
|
+
}
|
|
16
|
+
declare const powerUpsManager: PowerUpsManager;
|
|
17
|
+
export = powerUpsManager;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserPronoun } from "../../types";
|
|
2
|
+
declare class FirebotPronounManager {
|
|
3
|
+
private logger;
|
|
4
|
+
private _appVersion;
|
|
5
|
+
private _pronounCache;
|
|
6
|
+
private _userPronounCache;
|
|
7
|
+
private _userNoPronounCache;
|
|
8
|
+
constructor();
|
|
9
|
+
private callUrl;
|
|
10
|
+
cachePronouns(): Promise<void>;
|
|
11
|
+
getUserPronouns(username: string, fallback?: string): Promise<UserPronoun | undefined>;
|
|
12
|
+
getUserFriendlyPronounString(username: string, fallback?: string, type?: "subject" | "object" | "both"): Promise<string>;
|
|
13
|
+
getFriendlyPronounString(primary: string, secondary: string | undefined, type?: "subject" | "object" | "both"): string | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare const pronounManager: FirebotPronounManager;
|
|
16
|
+
export { pronounManager as FirebotPronounManager };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QuickActionDefinition, SystemQuickAction } from "../../types";
|
|
2
|
+
import JsonDbManager from "../database/json-db-manager";
|
|
3
|
+
declare class QuickActionManager extends JsonDbManager<QuickActionDefinition> {
|
|
4
|
+
systemQuickActions: SystemQuickAction[];
|
|
5
|
+
constructor();
|
|
6
|
+
loadItems(): void;
|
|
7
|
+
getAllItems(): QuickActionDefinition[];
|
|
8
|
+
rebuildSettings(): void;
|
|
9
|
+
saveQuickAction(quickAction: QuickActionDefinition, notify?: boolean): QuickActionDefinition;
|
|
10
|
+
deleteQuickAction(customQuickActionId: string): void;
|
|
11
|
+
getSystemQuickActionDefinitions(): QuickActionDefinition[];
|
|
12
|
+
triggerQuickAction(quickActionId: string): void;
|
|
13
|
+
triggerUiRefresh(): void;
|
|
14
|
+
}
|
|
15
|
+
declare const quickActionManager: QuickActionManager;
|
|
16
|
+
export { quickActionManager as QuickActionManager };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TypedEmitter } from "tiny-typed-emitter";
|
|
2
|
+
import type { Quote } from "../../types";
|
|
3
|
+
interface QuoteEventData {
|
|
4
|
+
quote: Partial<Quote>;
|
|
5
|
+
}
|
|
6
|
+
interface DateConfig {
|
|
7
|
+
day: number;
|
|
8
|
+
month: number;
|
|
9
|
+
year: number;
|
|
10
|
+
}
|
|
11
|
+
declare class QuoteManager {
|
|
12
|
+
private logger;
|
|
13
|
+
private db;
|
|
14
|
+
events: TypedEmitter<{
|
|
15
|
+
"created-item": (data: QuoteEventData) => void;
|
|
16
|
+
"updated-item": (data: QuoteEventData) => void;
|
|
17
|
+
"deleted-item": (data: QuoteEventData) => void;
|
|
18
|
+
}>;
|
|
19
|
+
constructor();
|
|
20
|
+
private regExpEscape;
|
|
21
|
+
loadQuoteDatabase(): Promise<void>;
|
|
22
|
+
getCurrentQuoteId(): Promise<number>;
|
|
23
|
+
getNextQuoteId(): Promise<number>;
|
|
24
|
+
setQuoteIdIncrementer(number: number): Promise<number>;
|
|
25
|
+
addQuote(quote: Quote): Promise<number>;
|
|
26
|
+
addQuotes(quotes: Quote[]): Promise<void>;
|
|
27
|
+
updateQuote(quote: Quote, dontSendUiUpdateEvent?: boolean): Promise<Quote>;
|
|
28
|
+
removeQuote(quoteId: number, dontSendUiUpdateEvent?: boolean): Promise<void>;
|
|
29
|
+
getQuote(quoteId: number): Promise<Quote>;
|
|
30
|
+
getRandomQuoteByDate(dateConfig: DateConfig): Promise<Quote>;
|
|
31
|
+
getRandomQuoteByAuthor(author: string): Promise<Quote>;
|
|
32
|
+
getRandomQuoteByGame(gameSearch: string): Promise<Quote>;
|
|
33
|
+
getRandomQuoteContainingText(text: string): Promise<Quote>;
|
|
34
|
+
getRandomQuote(): Promise<Quote>;
|
|
35
|
+
getAllQuotes(): Promise<Quote[]>;
|
|
36
|
+
private updateQuoteId;
|
|
37
|
+
recalculateQuoteIds(): Promise<void>;
|
|
38
|
+
exportQuotesToFile(filepath: string): Promise<boolean>;
|
|
39
|
+
}
|
|
40
|
+
declare const manager: QuoteManager;
|
|
41
|
+
export { manager as QuoteManager };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RankLadder, SystemCommand } from "../../types";
|
|
2
|
+
type RankCommandRefreshRequestAction = "create" | "update" | "delete";
|
|
3
|
+
type RankCommandOptions = {
|
|
4
|
+
selfRankMessageTemplate: string;
|
|
5
|
+
otherRankMessageTemplate: string;
|
|
6
|
+
rankListMessageTemplate: string;
|
|
7
|
+
promoteRankMessageTemplate: string;
|
|
8
|
+
demoteRankMessageTemplate: string;
|
|
9
|
+
setRankMessageTemplate: string;
|
|
10
|
+
removeRankMessageTemplate: string;
|
|
11
|
+
};
|
|
12
|
+
declare class RankCommandManager {
|
|
13
|
+
private logger;
|
|
14
|
+
constructor();
|
|
15
|
+
createRankCommandDefinition(rankLadder: RankLadder): SystemCommand<RankCommandOptions>;
|
|
16
|
+
refreshRankCommand(action?: RankCommandRefreshRequestAction, rankLadder?: RankLadder): void;
|
|
17
|
+
createAllRankLadderCommands(): void;
|
|
18
|
+
}
|
|
19
|
+
declare const rankCommandManager: RankCommandManager;
|
|
20
|
+
export = rankCommandManager;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FirebotViewer, RankLadder, Rank } from "../../types";
|
|
2
|
+
export declare class RankLadderHelper {
|
|
3
|
+
private readonly rankLadder;
|
|
4
|
+
constructor(rankLadder: RankLadder);
|
|
5
|
+
get id(): string;
|
|
6
|
+
get name(): string;
|
|
7
|
+
get mode(): "manual" | "auto";
|
|
8
|
+
get trackBy(): "view_time" | "currency" | "metadata";
|
|
9
|
+
get currencyId(): string;
|
|
10
|
+
get metadataKey(): string;
|
|
11
|
+
get announcePromotionsInChat(): boolean;
|
|
12
|
+
get promotionMessageTemplate(): string;
|
|
13
|
+
get restrictedToRoleIds(): string[];
|
|
14
|
+
getRank(rankId: string): Rank | undefined;
|
|
15
|
+
getRankByName(name: string): Rank | null;
|
|
16
|
+
isRankHigher(rankId: string, comparedToRankId: string): boolean;
|
|
17
|
+
getHighestQualifiedRankId(viewer: FirebotViewer): string | null;
|
|
18
|
+
getNextRankId(currentRankId?: string): string | null;
|
|
19
|
+
getPreviousRankId(currentRankId: string): string | null;
|
|
20
|
+
hasRank(rankId: string): boolean;
|
|
21
|
+
getRankValueDescription(rankId: string): string | null;
|
|
22
|
+
private getTrackByValue;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RankLadder, Rank } from "../../types";
|
|
2
|
+
import JsonDbManager from "../database/json-db-manager";
|
|
3
|
+
import { RankLadderHelper } from "./rank-ladder-helper";
|
|
4
|
+
declare class RankManager extends JsonDbManager<RankLadder> {
|
|
5
|
+
constructor();
|
|
6
|
+
getRankFromLadder(ladder: RankLadder, rankId: string): Rank | undefined;
|
|
7
|
+
getRankLadderHelpers(): RankLadderHelper[];
|
|
8
|
+
getRankLadderHelper(rankLadderId: string): RankLadderHelper | null;
|
|
9
|
+
triggerUiRefresh(): void;
|
|
10
|
+
}
|
|
11
|
+
declare const rankManager: RankManager;
|
|
12
|
+
export = rankManager;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class Event {
|
|
2
|
+
target: any;
|
|
3
|
+
type: string;
|
|
4
|
+
constructor(type: string, target: any);
|
|
5
|
+
}
|
|
6
|
+
export declare class ErrorEvent extends Event {
|
|
7
|
+
message: string;
|
|
8
|
+
error: Error;
|
|
9
|
+
constructor(error: Error, target: any);
|
|
10
|
+
}
|
|
11
|
+
export declare class CloseEvent extends Event {
|
|
12
|
+
code: number;
|
|
13
|
+
reason: string;
|
|
14
|
+
wasClean: boolean;
|
|
15
|
+
constructor(code: number, reason: string, target: any);
|
|
16
|
+
}
|
|
17
|
+
export interface WebSocketEventMap {
|
|
18
|
+
close: CloseEvent;
|
|
19
|
+
error: ErrorEvent;
|
|
20
|
+
message: MessageEvent;
|
|
21
|
+
open: Event;
|
|
22
|
+
ping: Event;
|
|
23
|
+
}
|
|
24
|
+
export interface WebSocketEventListenerMap {
|
|
25
|
+
close: (event: CloseEvent) => void | {
|
|
26
|
+
handleEvent: (event: CloseEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
error: (event: ErrorEvent) => void | {
|
|
29
|
+
handleEvent: (event: ErrorEvent) => void;
|
|
30
|
+
};
|
|
31
|
+
message: (event: MessageEvent) => void | {
|
|
32
|
+
handleEvent: (event: MessageEvent) => void;
|
|
33
|
+
};
|
|
34
|
+
open: (event: Event) => void | {
|
|
35
|
+
handleEvent: (event: Event) => void;
|
|
36
|
+
};
|
|
37
|
+
ping: (event: Event) => void | {
|
|
38
|
+
handleEvent: (event: Event) => void;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { ClientOptions } from 'ws';
|
|
2
|
+
import * as Events from './events';
|
|
3
|
+
export type Event = Events.Event;
|
|
4
|
+
export type ErrorEvent = Events.ErrorEvent;
|
|
5
|
+
export type CloseEvent = Events.CloseEvent;
|
|
6
|
+
export type Options = {
|
|
7
|
+
maxReconnectionDelay?: number;
|
|
8
|
+
minReconnectionDelay?: number;
|
|
9
|
+
reconnectionDelayGrowFactor?: number;
|
|
10
|
+
minUptime?: number;
|
|
11
|
+
connectionTimeout?: number;
|
|
12
|
+
maxRetries?: number;
|
|
13
|
+
maxEnqueuedMessages?: number;
|
|
14
|
+
startClosed?: boolean;
|
|
15
|
+
debug?: boolean;
|
|
16
|
+
wsOptions?: ClientOptions;
|
|
17
|
+
};
|
|
18
|
+
export type UrlProvider = string | (() => string) | (() => Promise<string>);
|
|
19
|
+
export type Message = string | ArrayBuffer | Blob | ArrayBufferView;
|
|
20
|
+
export type ListenersMap = {
|
|
21
|
+
error: Array<Events.WebSocketEventListenerMap['error']>;
|
|
22
|
+
message: Array<Events.WebSocketEventListenerMap['message']>;
|
|
23
|
+
open: Array<Events.WebSocketEventListenerMap['open']>;
|
|
24
|
+
close: Array<Events.WebSocketEventListenerMap['close']>;
|
|
25
|
+
ping: Array<Events.WebSocketEventListenerMap['ping']>;
|
|
26
|
+
};
|
|
27
|
+
export default class ReconnectingWebSocket {
|
|
28
|
+
private _ws?;
|
|
29
|
+
private _listeners;
|
|
30
|
+
private _retryCount;
|
|
31
|
+
private _uptimeTimeout;
|
|
32
|
+
private _connectTimeout;
|
|
33
|
+
private _shouldReconnect;
|
|
34
|
+
private _connectLock;
|
|
35
|
+
private _binaryType;
|
|
36
|
+
private _closeCalled;
|
|
37
|
+
private _messageQueue;
|
|
38
|
+
private readonly _url;
|
|
39
|
+
private readonly _protocols?;
|
|
40
|
+
private readonly _options;
|
|
41
|
+
constructor(url: UrlProvider, protocols?: string | string[], options?: Options);
|
|
42
|
+
static get CONNECTING(): number;
|
|
43
|
+
static get OPEN(): number;
|
|
44
|
+
static get CLOSING(): number;
|
|
45
|
+
static get CLOSED(): number;
|
|
46
|
+
get CONNECTING(): number;
|
|
47
|
+
get OPEN(): number;
|
|
48
|
+
get CLOSING(): number;
|
|
49
|
+
get CLOSED(): number;
|
|
50
|
+
get binaryType(): BinaryType;
|
|
51
|
+
set binaryType(value: BinaryType);
|
|
52
|
+
/**
|
|
53
|
+
* Returns the number or connection retries
|
|
54
|
+
*/
|
|
55
|
+
get retryCount(): number;
|
|
56
|
+
/**
|
|
57
|
+
* The number of bytes of data that have been queued using calls to send() but not yet
|
|
58
|
+
* transmitted to the network. This value resets to zero once all queued data has been sent.
|
|
59
|
+
* This value does not reset to zero when the connection is closed; if you keep calling send(),
|
|
60
|
+
* this will continue to climb. Read only
|
|
61
|
+
*/
|
|
62
|
+
get bufferedAmount(): number;
|
|
63
|
+
/**
|
|
64
|
+
* The extensions selected by the server. This is currently only the empty string or a list of
|
|
65
|
+
* extensions as negotiated by the connection
|
|
66
|
+
*/
|
|
67
|
+
get extensions(): string;
|
|
68
|
+
/**
|
|
69
|
+
* A string indicating the name of the sub-protocol the server selected;
|
|
70
|
+
* this will be one of the strings specified in the protocols parameter when creating the
|
|
71
|
+
* WebSocket object
|
|
72
|
+
*/
|
|
73
|
+
get protocol(): string;
|
|
74
|
+
/**
|
|
75
|
+
* The current state of the connection; this is one of the Ready state constants
|
|
76
|
+
*/
|
|
77
|
+
get readyState(): number;
|
|
78
|
+
/**
|
|
79
|
+
* The URL as resolved by the constructor
|
|
80
|
+
*/
|
|
81
|
+
get url(): string;
|
|
82
|
+
/**
|
|
83
|
+
* An event listener to be called when the WebSocket connection's readyState changes to CLOSED
|
|
84
|
+
*/
|
|
85
|
+
onclose: ((event: Events.CloseEvent) => void) | null;
|
|
86
|
+
/**
|
|
87
|
+
* An event listener to be called when an error occurs
|
|
88
|
+
*/
|
|
89
|
+
onerror: ((event: Events.ErrorEvent) => void) | null;
|
|
90
|
+
/**
|
|
91
|
+
* An event listener to be called when a message is received from the server
|
|
92
|
+
*/
|
|
93
|
+
onmessage: ((event: MessageEvent) => void) | null;
|
|
94
|
+
/**
|
|
95
|
+
* An event listener to be called when the WebSocket connection's readyState changes to OPEN;
|
|
96
|
+
* this indicates that the connection is ready to send and receive data
|
|
97
|
+
*/
|
|
98
|
+
onopen: ((event: Event) => void) | null;
|
|
99
|
+
/**
|
|
100
|
+
* Closes the WebSocket connection or connection attempt, if any. If the connection is already
|
|
101
|
+
* CLOSED, this method does nothing
|
|
102
|
+
*/
|
|
103
|
+
close(code?: number, reason?: string): void;
|
|
104
|
+
/**
|
|
105
|
+
* Closes the WebSocket connection or connection attempt and connects again.
|
|
106
|
+
* Resets retry counter;
|
|
107
|
+
*/
|
|
108
|
+
reconnect(code?: number, reason?: string): void;
|
|
109
|
+
/**
|
|
110
|
+
* Enqueue specified data to be transmitted to the server over the WebSocket connection
|
|
111
|
+
*/
|
|
112
|
+
send(data: Message): void;
|
|
113
|
+
/**
|
|
114
|
+
* Register an event handler of a specific event type
|
|
115
|
+
*/
|
|
116
|
+
addEventListener<T extends keyof Events.WebSocketEventListenerMap>(type: T, listener: Events.WebSocketEventListenerMap[T]): void;
|
|
117
|
+
dispatchEvent(event: Event): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Removes an event listener
|
|
120
|
+
*/
|
|
121
|
+
removeEventListener<T extends keyof Events.WebSocketEventListenerMap>(type: T, listener: Events.WebSocketEventListenerMap[T]): void;
|
|
122
|
+
private _debug;
|
|
123
|
+
private _getNextDelay;
|
|
124
|
+
private _wait;
|
|
125
|
+
private _getNextUrl;
|
|
126
|
+
private _connect;
|
|
127
|
+
private _handleTimeout;
|
|
128
|
+
private _disconnect;
|
|
129
|
+
private _acceptOpen;
|
|
130
|
+
private _callEventListener;
|
|
131
|
+
private _handleOpen;
|
|
132
|
+
private _handleMessage;
|
|
133
|
+
private _handleError;
|
|
134
|
+
private _handlePing;
|
|
135
|
+
private _handleClose;
|
|
136
|
+
private _removeListeners;
|
|
137
|
+
private _addListeners;
|
|
138
|
+
private _clearTimeouts;
|
|
139
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ResourceToken {
|
|
2
|
+
path: string;
|
|
3
|
+
length: number | null;
|
|
4
|
+
}
|
|
5
|
+
declare class ResourceTokenManager {
|
|
6
|
+
private logger;
|
|
7
|
+
tokens: Record<string, ResourceToken>;
|
|
8
|
+
private deleteToken;
|
|
9
|
+
getResourcePath(token: string): string;
|
|
10
|
+
storeResourcePath(path: string, length: string | number | null): string;
|
|
11
|
+
}
|
|
12
|
+
declare const resourceTokenManager: ResourceTokenManager;
|
|
13
|
+
export { resourceTokenManager as ResourceTokenManager };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RestrictionType } from "../../../types";
|
|
2
|
+
type ComparisonType = "less" | "greater" | "equal";
|
|
3
|
+
declare const model: RestrictionType<{
|
|
4
|
+
selectedCurrency: string;
|
|
5
|
+
comparison: ComparisonType;
|
|
6
|
+
amount: number;
|
|
7
|
+
autoDeductCurrency: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export = model;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RestrictionType } from "../../../types";
|
|
2
|
+
type PermissionMode = "roles" | "viewer";
|
|
3
|
+
type Rank = {
|
|
4
|
+
rankId: string;
|
|
5
|
+
ladderId: string;
|
|
6
|
+
};
|
|
7
|
+
declare const model: RestrictionType<{
|
|
8
|
+
mode: PermissionMode;
|
|
9
|
+
username: string;
|
|
10
|
+
roleIds: string[];
|
|
11
|
+
ranks: Rank[];
|
|
12
|
+
}>;
|
|
13
|
+
export = model;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadRestrictions: () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TypedEmitter } from "tiny-typed-emitter";
|
|
2
|
+
import type { RestrictionData, RestrictionResult, RestrictionType, Trigger } from "../../types";
|
|
3
|
+
type Events = {
|
|
4
|
+
"restriction-registered": (restriction: RestrictionType) => void;
|
|
5
|
+
"restriction-unregistered": (restrictionId: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare class RestrictionsManager extends TypedEmitter<Events> {
|
|
8
|
+
private logger;
|
|
9
|
+
private _registeredRestrictions;
|
|
10
|
+
constructor();
|
|
11
|
+
registerRestriction(restriction: RestrictionType): void;
|
|
12
|
+
unregisterRestriction(restrictionId: string): void;
|
|
13
|
+
getRestrictionById(restrictionId: string): RestrictionType;
|
|
14
|
+
getAllRestrictions(): RestrictionType[];
|
|
15
|
+
checkPermissionsPredicateOnly(restrictionData: RestrictionData, username: string, twitchRoles: string[]): Promise<boolean>;
|
|
16
|
+
private runPredicate;
|
|
17
|
+
runRestrictionPredicates(triggerData: Trigger, restrictionData: RestrictionData, restrictionsAreInherited?: boolean): Promise<RestrictionResult>;
|
|
18
|
+
private mapRestrictionForFrontEnd;
|
|
19
|
+
}
|
|
20
|
+
declare const manager: RestrictionsManager;
|
|
21
|
+
export { manager as RestrictionsManager };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class ChatRolesManager {
|
|
2
|
+
private logger;
|
|
3
|
+
private _knownBots;
|
|
4
|
+
setupListeners(): void;
|
|
5
|
+
cacheViewerListBots(): Promise<void>;
|
|
6
|
+
userIsKnownBot(userId: string): Promise<boolean>;
|
|
7
|
+
getUsersChatRoles(userId: string): Promise<string[]>;
|
|
8
|
+
}
|
|
9
|
+
declare const chatRolesManager: ChatRolesManager;
|
|
10
|
+
export = chatRolesManager;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TypedEmitter } from "tiny-typed-emitter";
|
|
2
|
+
import type { BasicViewer, CustomRole, LegacyCustomRole } from "../../types";
|
|
3
|
+
type Events = {
|
|
4
|
+
"created-item": (item: object) => void;
|
|
5
|
+
"updated-item": (item: object) => void;
|
|
6
|
+
"deleted-item": (item: object) => void;
|
|
7
|
+
"viewer-role-updated": (userId: string, roleId: string, action: "added" | "removed") => void;
|
|
8
|
+
};
|
|
9
|
+
declare class CustomRolesManager extends TypedEmitter<Events> {
|
|
10
|
+
private logger;
|
|
11
|
+
private _customRoles;
|
|
12
|
+
constructor();
|
|
13
|
+
migrateLegacyCustomRoles(): Promise<void>;
|
|
14
|
+
importLegacyCustomRole(legacyRole: LegacyCustomRole): Promise<void>;
|
|
15
|
+
importCustomRole(role: LegacyCustomRole | CustomRole): Promise<void>;
|
|
16
|
+
private getCustomRolesDb;
|
|
17
|
+
loadCustomRoles(): Promise<void>;
|
|
18
|
+
refreshCustomRolesUserData(): Promise<void>;
|
|
19
|
+
saveCustomRole(role: CustomRole): void;
|
|
20
|
+
addViewerToRole(roleId: string, viewer: BasicViewer): void;
|
|
21
|
+
getCustomRoles(): CustomRole[];
|
|
22
|
+
getRoleByName(name: string): CustomRole;
|
|
23
|
+
getAllCustomRolesForViewer(userId: string): {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
showBadgeInChat: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
userIsInRole(userId: string, userTwitchRoles: string[], roleIdsToCheck: string[]): boolean;
|
|
29
|
+
removeViewerFromRole(roleId: string, userId: string): void;
|
|
30
|
+
removeAllViewersFromRole(roleId: string): void;
|
|
31
|
+
deleteCustomRole(roleId: string): void;
|
|
32
|
+
triggerUiRefresh(): void;
|
|
33
|
+
}
|
|
34
|
+
declare const customRolesManager: CustomRolesManager;
|
|
35
|
+
export = customRolesManager;
|