@crowbartools/firebot-types 5.67.0-alpha28 → 5.67.0-alpha29

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.
@@ -101,6 +101,7 @@ declare class PluginManager {
101
101
  private loadPluginIsolated;
102
102
  private isValidPlugin;
103
103
  private searchForCommunityPlugins;
104
+ private trackCommunityPluginDownload;
104
105
  private downloadAndSaveCommunityPlugin;
105
106
  private installCommunityPlugin;
106
107
  private updateCommunityPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowbartools/firebot-types",
3
- "version": "5.67.0-alpha28",
3
+ "version": "5.67.0-alpha29",
4
4
  "description": "Type definitions and plugin API for Firebot plugins.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -36,6 +36,8 @@ type CustomIcon = {
36
36
  backgroundColor?: string;
37
37
  };
38
38
  export type PluginIcon = FontAwesomeIcon | CustomIcon;
39
+ export type PluginCategory = "stream-services" | "social" | "music-media" | "games" | "overlays" | "tools-utilities";
40
+ export type PluginFeature = "effects" | "events" | "variables" | "integrations" | "overlay-widgets" | "games" | "commands" | "ui-extensions";
39
41
  export type ManagedPluginManifest = {
40
42
  name: string;
41
43
  author: string;
@@ -48,6 +50,8 @@ export type ManagedPluginManifest = {
48
50
  releaseDate: string;
49
51
  type: "single-file" | "zip";
50
52
  icon?: PluginIcon;
53
+ category?: PluginCategory;
54
+ features?: PluginFeature[];
51
55
  tags?: string[];
52
56
  repo?: string;
53
57
  website?: string;
@@ -71,6 +75,19 @@ export type ManagedPluginUpdateRequest = {
71
75
  plugins: Array<ManagedPluginBase>;
72
76
  firebotVersion: ManifestFirebotVersion;
73
77
  };
78
+ export type CommunityPluginSearchSortMode = "popular" | "recently-updated" | "name";
79
+ export type CommunityPluginSearchCriteria = {
80
+ query?: string;
81
+ category?: PluginCategory;
82
+ features?: PluginFeature[];
83
+ sortBy: CommunityPluginSearchSortMode;
84
+ page: number;
85
+ pageSize: number;
86
+ };
87
+ export type CommunityPluginSearchResult = {
88
+ items: ManagedPluginExtended[];
89
+ total: number;
90
+ };
74
91
  export type InstalledPluginConfig<Params extends GenericParameters = GenericParameters> = {
75
92
  id: string;
76
93
  fileName: string;