@todesktop/shared 7.183.0 → 7.184.0

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.
@@ -175,6 +175,10 @@ export interface IUser extends Schemable {
175
175
  isOldAccountThatNeedsNewPassword?: boolean;
176
176
  accessToken?: string;
177
177
  isAdmin?: boolean;
178
+ featureFlags?: FeatureFlags;
179
+ }
180
+ export interface FeatureFlags {
181
+ desktopAppPlugins: boolean;
178
182
  }
179
183
  export interface UserIHaveSentInviteTo {
180
184
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.183.0",
3
+ "version": "7.184.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/toDesktop.ts CHANGED
@@ -193,6 +193,12 @@ export interface IUser extends Schemable {
193
193
  isOldAccountThatNeedsNewPassword?: boolean;
194
194
  accessToken?: string;
195
195
  isAdmin?: boolean;
196
+ featureFlags?: FeatureFlags;
197
+ }
198
+
199
+ export interface FeatureFlags {
200
+ // Whether the user can install desktop app plugins using the ToDesktop Builder
201
+ desktopAppPlugins: boolean;
196
202
  }
197
203
 
198
204
  // uses an `email` identifier because an invited user may not have an account