@todesktop/shared 7.188.10 → 7.188.12

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/lib/base.d.ts CHANGED
@@ -82,6 +82,7 @@ export interface IAppMeta {
82
82
  electron?: string;
83
83
  version?: string;
84
84
  };
85
+ releaseRedirections?: ReleaseRedirectionRule[];
85
86
  windowsEVOnboarding?: {
86
87
  provider: WindowsEVOnboardingProvider;
87
88
  tempHSMCertName: string;
@@ -192,6 +193,18 @@ export declare type CustomMacNotarization = {
192
193
  ascProvider?: string;
193
194
  teamId?: string;
194
195
  };
196
+ export declare type ReleaseRedirectionRule = {
197
+ appId: string;
198
+ rule: 'app';
199
+ } | {
200
+ appId: string;
201
+ ipList: string[];
202
+ rule: 'appByIp';
203
+ } | {
204
+ buildId: string;
205
+ ipList: string[];
206
+ rule: 'buildByIp';
207
+ };
195
208
  export interface BaseApp extends Schemable {
196
209
  id: string;
197
210
  appModelId?: string;
@@ -146,6 +146,7 @@ export interface IUser extends Schemable {
146
146
  isAdmin?: boolean;
147
147
  featureFlags?: FeatureFlags;
148
148
  disableShouldCodeSign?: boolean;
149
+ allowedIPs?: string[];
149
150
  }
150
151
  export interface FeatureFlags {
151
152
  desktopAppPlugins: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.10",
3
+ "version": "7.188.12",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -93,6 +93,7 @@ export interface IAppMeta {
93
93
  electron?: string;
94
94
  version?: string;
95
95
  };
96
+ releaseRedirections?: ReleaseRedirectionRule[];
96
97
  windowsEVOnboarding?: {
97
98
  provider: WindowsEVOnboardingProvider;
98
99
  tempHSMCertName: string;
@@ -216,6 +217,22 @@ export type CustomMacNotarization =
216
217
  teamId?: string;
217
218
  };
218
219
 
220
+ export type ReleaseRedirectionRule =
221
+ | {
222
+ appId: string;
223
+ rule: 'app';
224
+ }
225
+ | {
226
+ appId: string;
227
+ ipList: string[];
228
+ rule: 'appByIp';
229
+ }
230
+ | {
231
+ buildId: string;
232
+ ipList: string[];
233
+ rule: 'buildByIp';
234
+ };
235
+
219
236
  export interface BaseApp extends Schemable {
220
237
  id: string;
221
238
  appModelId?: string;
package/src/toDesktop.ts CHANGED
@@ -162,6 +162,7 @@ export interface IUser extends Schemable {
162
162
  isAdmin?: boolean;
163
163
  featureFlags?: FeatureFlags;
164
164
  disableShouldCodeSign?: boolean;
165
+ allowedIPs?: string[];
165
166
  }
166
167
 
167
168
  export interface FeatureFlags {