@todesktop/shared 7.188.11 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.11",
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;