@todesktop/shared 7.188.75 → 7.188.77

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.
@@ -88,7 +88,9 @@ export interface IApp extends BaseApp {
88
88
  customUserAgent?: ISwitchableValue<string>;
89
89
  disableContextMenu?: boolean;
90
90
  environmentVariables?: {
91
- [propertyName: string]: string;
91
+ [propertyName: string]: string | {
92
+ secret: string;
93
+ };
92
94
  };
93
95
  icon?: string;
94
96
  icons?: IIcon[];
@@ -150,10 +152,9 @@ export interface FeatureFlags {
150
152
  }
151
153
  export interface UserIHaveSentInviteTo {
152
154
  email: string;
153
- permissions: string;
154
- privileges?: {
155
- canBuild?: boolean;
156
- canRelease?: boolean;
155
+ permissions?: {
156
+ canBuild: boolean;
157
+ canRelease: boolean;
157
158
  };
158
159
  name: string;
159
160
  sender: UserIHaveAcceptedInviteFrom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.75",
3
+ "version": "7.188.77",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/toDesktop.ts CHANGED
@@ -103,7 +103,10 @@ export interface IApp extends BaseApp {
103
103
  customDomain?: string;
104
104
  customUserAgent?: ISwitchableValue<string>;
105
105
  disableContextMenu?: boolean;
106
- environmentVariables?: { [propertyName: string]: string };
106
+ environmentVariables?: {
107
+ // values that have been made secret need to be retrieved from azure key vault
108
+ [propertyName: string]: string | { secret: string };
109
+ };
107
110
  icon?: string;
108
111
  icons?: IIcon[];
109
112
  internalUrls?: ISwitchableValue<string>;
@@ -171,10 +174,9 @@ export interface FeatureFlags {
171
174
  // uses an `email` identifier because an invited user may not have an account
172
175
  export interface UserIHaveSentInviteTo {
173
176
  email: string;
174
- permissions: string;
175
- privileges?: {
176
- canBuild?: boolean;
177
- canRelease?: boolean;
177
+ permissions?: {
178
+ canBuild: boolean;
179
+ canRelease: boolean;
178
180
  };
179
181
  name: string;
180
182
  // this allows us to encode information about the sender without loosening firebase privileges