@crowbartools/firebot-types 5.67.0-alpha1.3 → 5.67.0-alpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -13
- 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 +142 -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 +9 -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-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 +4 -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 +4 -0
- package/backend/events/filters/builtin/firebot/new-rank.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/new-view-time.d.ts +4 -0
- package/backend/events/filters/builtin/firebot/previous-currency-amount.d.ts +4 -0
- package/backend/events/filters/builtin/firebot/previous-rank.d.ts +2 -0
- package/backend/events/filters/builtin/firebot/previous-view-time.d.ts +4 -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 +4 -0
- package/backend/events/filters/builtin/third-party/donation-amount.d.ts +4 -0
- package/backend/events/filters/builtin/third-party/donation-from.d.ts +2 -0
- package/backend/events/filters/builtin/third-party/index.d.ts +4 -0
- package/backend/events/filters/builtin/twitch/bits-badge-tier.d.ts +4 -0
- package/backend/events/filters/builtin/twitch/channel-live.d.ts +3 -0
- package/backend/events/filters/builtin/twitch/chat-mode-duration.d.ts +4 -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 +4 -0
- package/backend/events/filters/builtin/twitch/gift-count.d.ts +4 -0
- package/backend/events/filters/builtin/twitch/gift-duration.d.ts +4 -0
- package/backend/events/filters/builtin/twitch/golden-kappa-train.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/index.d.ts +4 -0
- package/backend/events/filters/builtin/twitch/is-anonymous.d.ts +2 -0
- package/backend/events/filters/builtin/twitch/lifetime-gift-count.d.ts +4 -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 +4 -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 +4 -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 +4 -0
- package/backend/events/filters/builtin-filter-loader.d.ts +1 -0
- package/backend/events/filters/filter-factory.d.ts +28 -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 +4 -0
- package/backend/logger-cache.d.ts +15 -0
- package/backend/logwrapper.d.ts +3 -0
- package/backend/notifications/notification-manager.d.ts +23 -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/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 +22 -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/script-log-names.d.ts +3 -0
- package/backend/scripts/executors/effect-script-executor.d.ts +22 -0
- package/backend/scripts/executors/legacy-effect-script-executor.d.ts +12 -0
- package/backend/scripts/executors/legacy-startup-script-executor.d.ts +15 -0
- package/backend/scripts/executors/plugin-executor.d.ts +17 -0
- package/backend/scripts/executors/script-executor.interface.d.ts +45 -0
- package/backend/scripts/plugin-config-manager.d.ts +12 -0
- package/backend/scripts/plugin-manifest-utils.d.ts +8 -0
- package/backend/scripts/script-api/context.d.ts +45 -0
- package/backend/scripts/script-api/index.d.ts +8 -0
- package/backend/scripts/script-api/internal/define-namespace.d.ts +3 -0
- package/backend/scripts/script-api/internal/dispose-bag.d.ts +13 -0
- package/backend/scripts/script-api/internal/name-normalizer.d.ts +5 -0
- package/backend/scripts/script-api/internal/script-data-dir.d.ts +1 -0
- package/backend/scripts/script-api/namespaces/effects.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/events.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/frontend-communicator.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/logger.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/notifications.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/parameters.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/plugins.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/settings.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/storage.d.ts +6 -0
- package/backend/scripts/script-api/namespaces/twitch.d.ts +2 -0
- package/backend/scripts/script-api/namespaces/webhooks.d.ts +2 -0
- package/backend/scripts/script-manager.d.ts +100 -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 +85 -0
- package/backend/streaming-platforms/twitch/api/resource/api-resource-base.d.ts +16 -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 +116 -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/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/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/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/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 +12 -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 +16 -0
- package/package.json +10 -3
- package/server/http-server-manager.d.ts +69 -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 +21 -0
- package/types/discord.d.ts +2 -2
- package/types/events.d.ts +10 -0
- package/types/http-server.d.ts +31 -0
- package/types/index.d.ts +6 -2
- package/types/notifications.d.ts +33 -0
- package/types/plugins.d.ts +61 -38
- package/types/script-api.d.ts +169 -31
- package/types/settings.d.ts +8 -11
- package/types/ui-extensions.d.ts +103 -0
- package/types/websocket.d.ts +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Request, Response } from "express";
|
|
2
|
+
import type { Awaitable } from "./util-types";
|
|
3
|
+
|
|
4
|
+
export type HttpMethod =
|
|
5
|
+
| "GET"
|
|
6
|
+
| "POST"
|
|
7
|
+
| "PUT"
|
|
8
|
+
| "PATCH"
|
|
9
|
+
| "DELETE"
|
|
10
|
+
| "HEAD"
|
|
11
|
+
| "CONNECT"
|
|
12
|
+
| "OPTIONS"
|
|
13
|
+
| "TRACE";
|
|
14
|
+
|
|
15
|
+
export interface CustomHttpRoute {
|
|
16
|
+
path: string;
|
|
17
|
+
method: HttpMethod;
|
|
18
|
+
handler: (req: Request, res: Response) => Awaitable<void>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Defines custom HTTP routes that plugins can add to the internal Firebot HTTP server.
|
|
23
|
+
* Paths can contain multiple levels and parameters (e.g. `/item/:id`).
|
|
24
|
+
* Full routes are built as follows (default Firebot hostname/port used as an example):
|
|
25
|
+
*
|
|
26
|
+
* `{method} http://localhost:7472/plugins/{prefix}/{path}`
|
|
27
|
+
*/
|
|
28
|
+
export interface PluginHttpRouteDefinition {
|
|
29
|
+
prefix: string;
|
|
30
|
+
routes: Array<CustomHttpRoute>;
|
|
31
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -12,13 +12,17 @@ export * from "./expressionish";
|
|
|
12
12
|
export * from "./games";
|
|
13
13
|
export * from "./goals";
|
|
14
14
|
export * from "./hotkeys";
|
|
15
|
+
export * from "./http-server";
|
|
15
16
|
export * from "./icons";
|
|
16
17
|
export * from "./import";
|
|
17
18
|
export * from "./integrations";
|
|
18
19
|
export * from "./moderation";
|
|
19
20
|
export * from "./modules";
|
|
21
|
+
export * from "./notifications";
|
|
20
22
|
export * from "./overlay-widgets";
|
|
21
23
|
export * from "./parameters";
|
|
24
|
+
export * from "./plugins";
|
|
25
|
+
export * from "./power-ups";
|
|
22
26
|
export * from "./pronouns";
|
|
23
27
|
export * from "./quick-actions";
|
|
24
28
|
export * from "./quotes";
|
|
@@ -31,10 +35,10 @@ export * from "./sort-tags";
|
|
|
31
35
|
export * from "./timers";
|
|
32
36
|
export * from "./triggers";
|
|
33
37
|
export * from "./ui";
|
|
38
|
+
export * from "./ui-extensions";
|
|
34
39
|
export * from "./util-types";
|
|
35
40
|
export * from "./variable-macros";
|
|
36
41
|
export * from "./variables";
|
|
37
42
|
export * from "./viewers";
|
|
38
43
|
export * from "./webhooks";
|
|
39
|
-
export * from "./websocket";
|
|
40
|
-
export * from "./plugins";
|
|
44
|
+
export * from "./websocket";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type NotificationSource = "external" | "internal" | "script";
|
|
2
|
+
|
|
3
|
+
export type NotificationType = "info" | "tip" | "update" | "alert";
|
|
4
|
+
|
|
5
|
+
export type ExternalNotification = {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
type: NotificationType;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type NotificationBase = {
|
|
13
|
+
title: string;
|
|
14
|
+
message: string;
|
|
15
|
+
type: NotificationType;
|
|
16
|
+
source?: NotificationSource;
|
|
17
|
+
scriptName?: string;
|
|
18
|
+
externalId?: string;
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type Notification = NotificationBase & {
|
|
23
|
+
id: string;
|
|
24
|
+
timestamp: Date;
|
|
25
|
+
saved: boolean;
|
|
26
|
+
read: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export interface NotificationCache {
|
|
30
|
+
dbVersion?: string;
|
|
31
|
+
notifications: Notification[];
|
|
32
|
+
knownExternalIds: string[];
|
|
33
|
+
}
|
package/types/plugins.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import type { EffectInstance, EffectList, EffectType } from "./effects";
|
|
3
|
+
import type { Trigger } from "./triggers";
|
|
4
|
+
import type { Awaitable } from "./util-types";
|
|
5
|
+
import type { ReplaceVariable } from "./variables";
|
|
6
|
+
import type { EventFilter, EventSource } from "./events";
|
|
7
|
+
import type { SystemCommand } from "./commands";
|
|
8
|
+
import type { RestrictionType } from "./restrictions";
|
|
9
|
+
import type { FirebotParams, FirebotParameterArray } from "./parameters";
|
|
10
|
+
import type { FirebotGame } from "./games";
|
|
11
|
+
import type { Integration } from "./integrations";
|
|
12
|
+
import type { UIExtension } from "./ui-extensions";
|
|
13
|
+
import type { OverlayWidgetType } from "./overlay-widgets";
|
|
14
|
+
import type { PluginHttpRouteDefinition } from "./http-server";
|
|
15
|
+
import type { CustomWebSocketHandler } from "./websocket";
|
|
11
16
|
|
|
12
17
|
type NoResult = Awaitable<void>;
|
|
13
18
|
|
|
@@ -26,6 +31,7 @@ export type ScriptContext<Params extends FirebotParams = FirebotParams> = {
|
|
|
26
31
|
parameters: Params;
|
|
27
32
|
};
|
|
28
33
|
|
|
34
|
+
type DynamicObject<T> = T | ((context: ScriptContext) => Awaitable<T>);
|
|
29
35
|
type DynamicArray<T> = Array<T | ((context: ScriptContext) => Awaitable<T>)>;
|
|
30
36
|
|
|
31
37
|
export type ScriptType = "script" | "plugin";
|
|
@@ -47,21 +53,42 @@ export interface Manifest {
|
|
|
47
53
|
author: string;
|
|
48
54
|
description: string | ManifestDescription;
|
|
49
55
|
|
|
50
|
-
keywords?: string[];
|
|
56
|
+
// keywords?: string[];
|
|
51
57
|
|
|
58
|
+
/**
|
|
59
|
+
* A link to the plugin's source code repository
|
|
60
|
+
*/
|
|
52
61
|
repo?: string;
|
|
53
62
|
|
|
54
|
-
|
|
63
|
+
/**
|
|
64
|
+
* A link to the plugin's website
|
|
65
|
+
* If the repo is on GitHub and the website is not specified, it will default to the GitHub repo URL.
|
|
66
|
+
*/
|
|
55
67
|
website?: string;
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
/**
|
|
69
|
+
* A link to the plugin's issue tracker or support server (e.g. Discord).
|
|
70
|
+
* If the repo is on GitHub and support is not specified, it will default to the GitHub issues URL.
|
|
71
|
+
*/
|
|
72
|
+
support?: string;
|
|
58
73
|
|
|
59
74
|
minimumFirebotVersion?: ManifestFirebotVersion;
|
|
60
75
|
maximumFirebotVersion?: ManifestFirebotVersion;
|
|
61
76
|
|
|
77
|
+
/**
|
|
78
|
+
* A FontAwesome icon name shown in the UI (eg. "fa-cogs").
|
|
79
|
+
*/
|
|
62
80
|
icon?: `fa-${string}`;
|
|
81
|
+
/**
|
|
82
|
+
* A hex color code (eg. "#FF0000") used for the icon.
|
|
83
|
+
*/
|
|
63
84
|
color?: string;
|
|
64
85
|
|
|
86
|
+
/**
|
|
87
|
+
* If true, the plugin will be initialized before parameters are shown to the user,
|
|
88
|
+
* allowing the plugin to provide custom parameter types that can be used in its own parametersSchema.
|
|
89
|
+
*/
|
|
90
|
+
initBeforeShowingParams?: boolean;
|
|
91
|
+
|
|
65
92
|
type: ScriptType;
|
|
66
93
|
}
|
|
67
94
|
|
|
@@ -77,46 +104,42 @@ export interface ScriptBase<Params extends FirebotParams = FirebotParams> {
|
|
|
77
104
|
manifest: Manifest;
|
|
78
105
|
|
|
79
106
|
parametersSchema?: FirebotParameterArray<Params>;
|
|
80
|
-
|
|
81
|
-
// if uninstalled is true, the script is being removed by the user, thus the script should remove related data files/assets
|
|
82
|
-
// otherwise the script should assume firebot is closing or the script is being reloaded
|
|
83
|
-
onUnload?: (context: ScriptContext<Params>, isUninstalling?: boolean) => NoResult;
|
|
84
107
|
}
|
|
85
108
|
|
|
86
|
-
// Supplants the "Run Script" effect script functionality
|
|
87
109
|
export interface EffectScript<Params extends FirebotParams = FirebotParams> extends ScriptBase<Params> {
|
|
88
110
|
run: (context: ScriptContext<Params>) => Awaitable<void | EffectScriptResult>;
|
|
89
111
|
}
|
|
90
112
|
|
|
91
|
-
// Supplants the "Start up" script functionality
|
|
92
113
|
export interface Plugin<Params extends FirebotParams = FirebotParams> extends ScriptBase<Params> {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
114
|
+
/**
|
|
115
|
+
* Automatically handles registration with appropriate managers for definitions
|
|
116
|
+
* when the script is unloaded, definitions will automagically be unregistered.
|
|
117
|
+
*
|
|
118
|
+
* Array entries can be direct definitions or functions that return definitions
|
|
119
|
+
* (or promises of definitions) for dynamic registration based on context (e.g. parameter values).
|
|
120
|
+
*/
|
|
98
121
|
registers?: {
|
|
99
|
-
|
|
100
|
-
// If value within array is a function, call said function to get definition
|
|
101
|
-
// If definition is or evaluates to promise, await promise
|
|
102
|
-
effects?: DynamicArray<EffectType>;
|
|
122
|
+
effects?: DynamicArray<EffectType<any, any>>;
|
|
103
123
|
eventSources?: DynamicArray<EventSource>;
|
|
104
124
|
variables?: DynamicArray<ReplaceVariable>;
|
|
105
|
-
|
|
106
|
-
integrations?: DynamicArray<Integration>;
|
|
125
|
+
integrations?: DynamicArray<Integration<any>>;
|
|
107
126
|
filters?: DynamicArray<EventFilter>;
|
|
108
|
-
restrictions?: DynamicArray<RestrictionType
|
|
109
|
-
systemCommands?: DynamicArray<SystemCommand
|
|
127
|
+
restrictions?: DynamicArray<RestrictionType<any>>;
|
|
128
|
+
systemCommands?: DynamicArray<SystemCommand<any>>;
|
|
110
129
|
games?: DynamicArray<FirebotGame>;
|
|
130
|
+
uiExtensions?: DynamicArray<UIExtension>;
|
|
131
|
+
overlayWidgets?: DynamicArray<OverlayWidgetType<any, any>>;
|
|
132
|
+
httpRoutes?: DynamicObject<PluginHttpRouteDefinition>;
|
|
133
|
+
websocketListener?: DynamicObject<CustomWebSocketHandler>;
|
|
111
134
|
};
|
|
112
135
|
|
|
113
|
-
|
|
136
|
+
/** Called when the plugin is loaded */
|
|
114
137
|
onLoad?: (context: ScriptContext<Params>, isInstalling?: boolean) => NoResult;
|
|
115
138
|
|
|
116
|
-
|
|
139
|
+
/** Called when Firebot is closing or plugin is disabled / removed */
|
|
117
140
|
onUnload?: (context: ScriptContext<Params>, isUninstalling?: boolean) => NoResult;
|
|
118
141
|
|
|
119
|
-
|
|
142
|
+
/** Called when the user updates plugin-specific parameters */
|
|
120
143
|
onParameterUpdate?: (context: ScriptContext<Params>) => NoResult;
|
|
121
144
|
}
|
|
122
145
|
|
|
@@ -128,11 +151,10 @@ export type InstalledPlugin = {
|
|
|
128
151
|
};
|
|
129
152
|
|
|
130
153
|
/* Legacy types */
|
|
131
|
-
|
|
132
154
|
type LegacyScriptParameters = Record<
|
|
133
155
|
string,
|
|
134
156
|
{
|
|
135
|
-
|
|
157
|
+
|
|
136
158
|
type: any;
|
|
137
159
|
title?: string;
|
|
138
160
|
description?: string;
|
|
@@ -177,6 +199,7 @@ type LegacyCustomScriptManifest = {
|
|
|
177
199
|
author: string;
|
|
178
200
|
website?: string;
|
|
179
201
|
startupOnly?: boolean;
|
|
202
|
+
initBeforeShowingParams?: boolean;
|
|
180
203
|
firebotVersion?: "5";
|
|
181
204
|
};
|
|
182
205
|
|
package/types/script-api.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
|
|
3
3
|
// Public contract types for the Firebot Script API.
|
|
4
|
-
//
|
|
5
4
|
// Everything a custom script can touch via `require("@crowbartools/firebot-types")`
|
|
6
5
|
// should be defined here
|
|
7
6
|
|
|
7
|
+
import type { TriggeredEvent } from "./events";
|
|
8
|
+
import type { RunEffectsContext } from "./effects";
|
|
9
|
+
import type { TwitchApi } from "../backend/streaming-platforms/twitch/api";
|
|
10
|
+
import type { Notification } from "./notifications";
|
|
11
|
+
import type { FirebotAccount } from "./accounts";
|
|
12
|
+
import type { FirebotSettingsTypes } from "./settings";
|
|
13
|
+
import type { InstalledPlugin } from "./plugins";
|
|
14
|
+
|
|
8
15
|
export type ScriptLogMethod = (message: string, ...meta: unknown[]) => void;
|
|
9
16
|
|
|
10
17
|
export interface ScriptLoggerApi {
|
|
@@ -45,51 +52,182 @@ export interface ScriptWebhooksApi {
|
|
|
45
52
|
onReceived(handler: ScriptWebhookEventHandler): () => void;
|
|
46
53
|
}
|
|
47
54
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Simple per-script storage scoped to the script's data directory.
|
|
57
|
+
* Provides helpers for storing/loading JSON values
|
|
58
|
+
* plus generic file read/write for anything else.
|
|
59
|
+
*/
|
|
60
|
+
export interface ScriptStorageApi {
|
|
61
|
+
/** Absolute path to this script's data directory. */
|
|
62
|
+
readonly path: string;
|
|
63
|
+
|
|
64
|
+
/** Save a value as JSON under the given key. The key becomes the filename with a `.json` extension. */
|
|
65
|
+
setJson(key: string, value: unknown): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Load a JSON value previously saved with `setJson`. Returns `null` if
|
|
68
|
+
* nothing has been stored under this key.
|
|
69
|
+
*/
|
|
70
|
+
getJson<T = unknown>(key: string): Promise<T | null>;
|
|
71
|
+
/** Delete the JSON value stored under the given key. No-op if missing. */
|
|
72
|
+
deleteJson(key: string): Promise<void>;
|
|
73
|
+
|
|
74
|
+
/** Check whether a file exists in the data directory. */
|
|
75
|
+
fileExists(name: string): Promise<boolean>;
|
|
76
|
+
/** Read a file's raw bytes. Returns `null` if it doesn't exist. */
|
|
77
|
+
readFile(name: string): Promise<Buffer | null>;
|
|
78
|
+
/** Read a file as text. Returns `null` if it doesn't exist. */
|
|
79
|
+
readTextFile(name: string, encoding?: BufferEncoding): Promise<string | null>;
|
|
80
|
+
/** Write contents to a file, creating any missing parent directories. */
|
|
81
|
+
writeFile(name: string, contents: string | Buffer | Uint8Array): Promise<void>;
|
|
82
|
+
/** Delete a file. No-op if it doesn't exist. */
|
|
83
|
+
deleteFile(name: string): Promise<void>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type ScriptEventHandler = (event: TriggeredEvent) => void;
|
|
87
|
+
|
|
88
|
+
export interface ScriptEventsApi {
|
|
89
|
+
/**
|
|
90
|
+
* Subscribe to all Firebot events as they trigger. Returns an `unsubscribe`
|
|
91
|
+
* function.
|
|
92
|
+
*/
|
|
93
|
+
onTriggered(handler: ScriptEventHandler): () => void;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Manually trigger a Firebot event.
|
|
97
|
+
*/
|
|
98
|
+
trigger(
|
|
99
|
+
sourceId: string,
|
|
100
|
+
eventId: string,
|
|
101
|
+
meta?: Record<string, unknown>
|
|
102
|
+
): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ScriptEffectsApi {
|
|
106
|
+
/**
|
|
107
|
+
* Register an existing effect to be available for an event.
|
|
108
|
+
* Useful for surfacing built-in effects on script provided events.
|
|
109
|
+
*/
|
|
110
|
+
addEventToEffect(effectId: string, eventSourceId: string, eventId: string): void;
|
|
111
|
+
|
|
112
|
+
/** Reverse of `addEventToEffect`. */
|
|
113
|
+
removeEventFromEffect(effectId: string, eventSourceId: string, eventId: string): void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Run an effect list. Respects the list's run mode and effect queue, if any.
|
|
117
|
+
* Resolves once the effects have been run (queued lists resolve
|
|
118
|
+
* immediately).
|
|
119
|
+
*/
|
|
120
|
+
processEffects(context: RunEffectsContext): Promise<unknown>;
|
|
55
121
|
}
|
|
56
122
|
|
|
57
|
-
export interface
|
|
58
|
-
/**
|
|
59
|
-
|
|
123
|
+
export interface ScriptTwitchApi {
|
|
124
|
+
/** The full Twitch API surface. See {@linkcode TwitchApi}. */
|
|
125
|
+
api: typeof TwitchApi;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Access to this plugin's saved parameter values (the settings configured by
|
|
130
|
+
* the user)
|
|
131
|
+
*/
|
|
132
|
+
export interface ScriptParametersApi {
|
|
133
|
+
getAll<T extends Record<string, unknown> = Record<string, unknown>>(): T;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ScriptNotificationsApi {
|
|
137
|
+
/**
|
|
138
|
+
* Create a new notification. Pass `permanentlySave` as `true` to persist it
|
|
139
|
+
* across restarts.
|
|
140
|
+
*/
|
|
141
|
+
add(notification: Pick<Notification, "title" | "message" | "type" | "metadata">, permanentlySave?: boolean): Notification;
|
|
142
|
+
/** Look up one of this script's notifications by id. */
|
|
143
|
+
get(id: string): Notification | null;
|
|
144
|
+
/** All notifications owned by this script. */
|
|
145
|
+
getAll(): Notification[];
|
|
146
|
+
/** Delete one of this script's notifications by id. */
|
|
147
|
+
delete(id: string): void;
|
|
148
|
+
/** Delete all of this script's notifications. */
|
|
149
|
+
clearAll(): void;
|
|
150
|
+
}
|
|
60
151
|
|
|
61
|
-
|
|
62
|
-
|
|
152
|
+
export interface ScriptFrontendCommunicatorApi {
|
|
153
|
+
/** Send a synchronous event to the frontend. */
|
|
154
|
+
send<ExpectedArg = unknown>(eventName: string, data?: ExpectedArg): void;
|
|
63
155
|
|
|
64
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Send an asynchronous event to the frontend and await the reply it sends
|
|
158
|
+
* back.
|
|
159
|
+
*/
|
|
160
|
+
fireEventAsync<ReturnPayload = void, ExpectedArg = unknown>(
|
|
161
|
+
eventName: string,
|
|
162
|
+
data?: ExpectedArg
|
|
163
|
+
): Promise<ReturnPayload>;
|
|
65
164
|
|
|
66
|
-
|
|
67
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Handle a synchronous event triggered by the frontend. Returns an
|
|
167
|
+
* `unsubscribe` function.
|
|
168
|
+
*/
|
|
169
|
+
on<ExpectedArgs extends Array<unknown> = [], ReturnPayload = void>(
|
|
170
|
+
eventName: string,
|
|
171
|
+
callback: (...args: ExpectedArgs) => ReturnPayload
|
|
172
|
+
): () => void;
|
|
68
173
|
|
|
69
|
-
|
|
70
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Handle an asynchronous event triggered by the frontend. Returns an
|
|
176
|
+
* `unsubscribe` function.
|
|
177
|
+
*/
|
|
178
|
+
onAsync<ExpectedArgs extends Array<unknown> = [], ReturnPayload = void>(
|
|
179
|
+
eventName: string,
|
|
180
|
+
callback: (...args: ExpectedArgs) => Promise<ReturnPayload>
|
|
181
|
+
): () => void;
|
|
182
|
+
}
|
|
71
183
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
184
|
+
export interface ScriptSettingsApi {
|
|
185
|
+
/**
|
|
186
|
+
* Get a Firebot setting value or its default
|
|
187
|
+
*
|
|
188
|
+
* @param settingName Name of the setting to get
|
|
189
|
+
* @returns Setting value, or the default if one isn't explicitly set
|
|
190
|
+
*/
|
|
191
|
+
getSetting<SettingName extends keyof FirebotSettingsTypes>(settingName: SettingName): FirebotSettingsTypes[SettingName];
|
|
192
|
+
}
|
|
76
193
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
194
|
+
export interface ScriptPluginsApi {
|
|
195
|
+
/**
|
|
196
|
+
* Get a list of currently installed plugins installed by the user
|
|
197
|
+
*/
|
|
198
|
+
getInstalledPlugins(): Promise<Array<InstalledPlugin>>;
|
|
199
|
+
}
|
|
81
200
|
|
|
82
|
-
|
|
83
|
-
|
|
201
|
+
export interface Accounts {
|
|
202
|
+
streamer: FirebotAccount;
|
|
203
|
+
bot: FirebotAccount;
|
|
84
204
|
}
|
|
85
205
|
|
|
86
206
|
export interface FirebotScriptApi {
|
|
87
|
-
/** Running Firebot version, e.g. `"5.
|
|
207
|
+
/** Running Firebot version, e.g. `"5.67.0"`. */
|
|
88
208
|
version: string;
|
|
209
|
+
/** The streamer and bot accounts currently in use. */
|
|
210
|
+
accounts: Accounts;
|
|
89
211
|
/** Scoped logger. */
|
|
90
212
|
logger: ScriptLoggerApi;
|
|
213
|
+
/** Access to Firebot settings. */
|
|
214
|
+
settings: ScriptSettingsApi;
|
|
91
215
|
/** Webhooks owned by this script. */
|
|
92
216
|
webhooks: ScriptWebhooksApi;
|
|
93
|
-
/**
|
|
94
|
-
|
|
217
|
+
/** Simple persistent storage rooted at this script's data directory. */
|
|
218
|
+
storage: ScriptStorageApi;
|
|
219
|
+
/** Subscribe to and trigger Firebot events + register event sources. */
|
|
220
|
+
events: ScriptEventsApi;
|
|
221
|
+
/** Run effect lists. */
|
|
222
|
+
effects: ScriptEffectsApi;
|
|
223
|
+
/** Access to Firebot's Twitch API wrappers (Helix, chat, auth, etc). */
|
|
224
|
+
twitch: ScriptTwitchApi;
|
|
225
|
+
/** This plugin's saved parameter values. */
|
|
226
|
+
parameters: ScriptParametersApi;
|
|
227
|
+
/** Two-way messaging between the script and the frontend. */
|
|
228
|
+
frontendCommunicator: ScriptFrontendCommunicatorApi;
|
|
229
|
+
/** Notifications owned by this script. */
|
|
230
|
+
notifications: ScriptNotificationsApi;
|
|
231
|
+
/** Access to installed plugins. */
|
|
232
|
+
plugins: ScriptPluginsApi;
|
|
95
233
|
}
|
package/types/settings.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
export
|
|
1
|
+
export enum FirebotAutoUpdateLevel {
|
|
2
2
|
Off = 0,
|
|
3
3
|
Bugfix = 1,
|
|
4
4
|
Feature = 2,
|
|
5
5
|
MajorRelease = 3,
|
|
6
6
|
Betas = 4
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
export type FirebotAudioDevice = {
|
|
9
10
|
label: string;
|
|
10
11
|
deviceId: string;
|
|
11
12
|
};
|
|
13
|
+
|
|
12
14
|
export type FirebotGlobalValue = {
|
|
13
15
|
name: string;
|
|
14
16
|
secret?: boolean;
|
|
15
17
|
value: string;
|
|
16
18
|
};
|
|
19
|
+
|
|
17
20
|
export type FirebotSettingsTypes = {
|
|
18
21
|
ActiveChatUserListTimeout: number;
|
|
19
22
|
ActiveProfiles: string[];
|
|
@@ -48,10 +51,7 @@ export type FirebotSettingsTypes = {
|
|
|
48
51
|
ChatShowFfzEmotes: boolean;
|
|
49
52
|
ChatShowSevenTvEmotes: boolean;
|
|
50
53
|
ChatShowSharedChatInfo: boolean;
|
|
51
|
-
ChatTaggedNotificationSound: {
|
|
52
|
-
name: string;
|
|
53
|
-
path?: string | undefined;
|
|
54
|
-
};
|
|
54
|
+
ChatTaggedNotificationSound: { name: string, path?: string | undefined };
|
|
55
55
|
ChatTaggedNotificationVolume: number;
|
|
56
56
|
ChatTimestamps: boolean;
|
|
57
57
|
ClearChatFeedMode: "never" | "onlyStreamer" | "always";
|
|
@@ -73,7 +73,7 @@ export type FirebotSettingsTypes = {
|
|
|
73
73
|
EventSetSettings: Record<string, {
|
|
74
74
|
position: number;
|
|
75
75
|
}>;
|
|
76
|
-
EventSettings: object;
|
|
76
|
+
EventSettings: object; // Pretty sure this is no longer used
|
|
77
77
|
FirstTimeUse: boolean;
|
|
78
78
|
ForceOverlayEffectsToContinueOnRefresh: boolean;
|
|
79
79
|
GlobalValues: Array<FirebotGlobalValue>;
|
|
@@ -83,6 +83,7 @@ export type FirebotSettingsTypes = {
|
|
|
83
83
|
LegacySortTagsImported: boolean;
|
|
84
84
|
LoggedInProfile: string;
|
|
85
85
|
MaxBackupCount: number | "All";
|
|
86
|
+
MigratedLegacyStartUpScriptsToPlugins: boolean;
|
|
86
87
|
MinimizeToTray: boolean;
|
|
87
88
|
NotifyOnBeta: boolean;
|
|
88
89
|
OpenEffectQueueMonitorOnLaunch: boolean;
|
|
@@ -124,8 +125,4 @@ export type FirebotSettingsTypes = {
|
|
|
124
125
|
WebServerPort: number;
|
|
125
126
|
WhileLoopEnabled: boolean;
|
|
126
127
|
WysiwygBackground: "black" | "white";
|
|
127
|
-
};
|
|
128
|
-
export declare const FirebotGlobalSettings: Partial<Record<keyof FirebotSettingsTypes, boolean>>;
|
|
129
|
-
export declare const FirebotSettingsDefaults: FirebotSettingsTypes;
|
|
130
|
-
/** Anything in `SettingsTypes` not listed here will resolve to "/settings/settingName" (e.g. "/settings/autoFlagBots") */
|
|
131
|
-
export declare const FirebotSettingsPaths: Partial<Record<keyof FirebotSettingsTypes, string>>;
|
|
128
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
|
2
|
+
export type BasePage = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: `fa-${string}`;
|
|
6
|
+
fullPage?: boolean;
|
|
7
|
+
disableScroll?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type AngularJsPage = BasePage & {
|
|
11
|
+
type: 'angularjs';
|
|
12
|
+
template: string;
|
|
13
|
+
controller: Function;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type IframePage = BasePage & {
|
|
17
|
+
type: 'iframe';
|
|
18
|
+
// Other properties TBD
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type AngularJsFactory = {
|
|
22
|
+
name: string;
|
|
23
|
+
function: Function;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type AngularJsComponent = {
|
|
27
|
+
name: string;
|
|
28
|
+
bindings: Record<string, string>;
|
|
29
|
+
template: string;
|
|
30
|
+
transclude?: boolean | string | { [slot: string]: string };
|
|
31
|
+
controller: Function;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A specialized AngularJS component for rendering Firebot parameters.
|
|
37
|
+
* These components will always have the following bindings:
|
|
38
|
+
* - `$ctrl.schema`: The parameter schema (any properties in the parameter object)
|
|
39
|
+
* - `$ctrl.value`: The current value of the parameter
|
|
40
|
+
* - `$ctrl.onInput`: A callback function to call when the parameter value changes
|
|
41
|
+
* - `$ctrl.onTouched`: A callback function to call when the parameter is touched
|
|
42
|
+
*/
|
|
43
|
+
export type AngularJsFirebotParameterComponent = {
|
|
44
|
+
parameterConfig: {
|
|
45
|
+
/**
|
|
46
|
+
* The type of parameter this component handles.
|
|
47
|
+
* This value is what will go in the "type" field of a parameter schema.
|
|
48
|
+
*/
|
|
49
|
+
type: string;
|
|
50
|
+
hideTitle?: boolean;
|
|
51
|
+
hideDescription?: boolean;
|
|
52
|
+
};
|
|
53
|
+
template: string;
|
|
54
|
+
controller: Function;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type AngularJsDirective = {
|
|
58
|
+
name: string;
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
|
+
function: (...args: any[]) => {
|
|
61
|
+
compile?: Function;
|
|
62
|
+
controller?: Function;
|
|
63
|
+
link?: Function;
|
|
64
|
+
multiElement?: boolean;
|
|
65
|
+
name?: string;
|
|
66
|
+
priority?: number;
|
|
67
|
+
require?: string | string[] | { [controller: string]: string };
|
|
68
|
+
restrict?: string;
|
|
69
|
+
scope?: boolean | object;
|
|
70
|
+
template?: string;
|
|
71
|
+
terminal?: boolean;
|
|
72
|
+
transclude?: boolean | string | { [slot: string]: string };
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type AngularJsFilter = {
|
|
77
|
+
name: string;
|
|
78
|
+
function: {
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
80
|
+
(...args: any[]): Function;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type UIExtension = {
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Adds new sidebar entries under an "Extensions" category
|
|
88
|
+
*/
|
|
89
|
+
pages?: AngularJsPage[];
|
|
90
|
+
/**
|
|
91
|
+
* Add your own AngularJS services, components, directives, filters
|
|
92
|
+
*/
|
|
93
|
+
providers?: {
|
|
94
|
+
factories?: AngularJsFactory[];
|
|
95
|
+
components?: AngularJsComponent[];
|
|
96
|
+
directives?: AngularJsDirective[];
|
|
97
|
+
filters?: AngularJsFilter[];
|
|
98
|
+
/**
|
|
99
|
+
* Add your own parameter components for rendering custom parameter types
|
|
100
|
+
*/
|
|
101
|
+
parameters?: AngularJsFirebotParameterComponent[];
|
|
102
|
+
};
|
|
103
|
+
};
|
package/types/websocket.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ interface InvokePluginMessage extends InvokeMessage {
|
|
|
62
62
|
|
|
63
63
|
interface CustomWebSocketHandler {
|
|
64
64
|
pluginName: string;
|
|
65
|
-
|
|
65
|
+
handler: (data: unknown) => Awaitable<void>;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export type OverlayConnectedData = {
|