@todesktop/shared 7.184.15 → 7.184.16

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
@@ -141,10 +141,39 @@ export interface IAppMeta {
141
141
  };
142
142
  forceVersionNumber?: string;
143
143
  }
144
+ export declare enum WindowsHSMCertType {
145
+ ev = "ev",
146
+ file = "file"
147
+ }
148
+ export interface CustomWindowsCodeSignFile {
149
+ certType: string;
150
+ hsmCertType: WindowsHSMCertType.file;
151
+ hsmCertName: string;
152
+ certPassword?: string;
153
+ certUrl?: URL;
154
+ }
155
+ export interface CustomWindowsCodeSignEV {
156
+ certType: "hsm";
157
+ hsmCertType: WindowsHSMCertType.ev;
158
+ hsmCertName: string;
159
+ }
160
+ export interface CustomMacCodeSign {
161
+ certName: string;
162
+ certPassword: string;
163
+ certUrl: string;
164
+ }
144
165
  export interface BaseApp extends Schemable {
145
166
  id: string;
146
167
  appModelId?: string;
147
168
  customDomain?: string;
169
+ customMacCodeSign?: CustomMacCodeSign;
170
+ customNotarization?: {
171
+ appleId: string;
172
+ appleIdPassword: string;
173
+ ascProvider?: string;
174
+ teamId?: string;
175
+ };
176
+ customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
148
177
  meta?: IAppMeta;
149
178
  subscription?: {
150
179
  status: string;
@@ -168,4 +197,8 @@ export interface BaseApp extends Schemable {
168
197
  shouldCreateMacUniversalInstaller?: boolean;
169
198
  appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
170
199
  nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
200
+ snapStore?: {
201
+ login?: string;
202
+ description?: string;
203
+ };
171
204
  }
package/lib/base.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WindowsEVOnboardingProvider = exports.WindowsEVOnboardingSteps = void 0;
3
+ exports.WindowsHSMCertType = exports.WindowsEVOnboardingProvider = exports.WindowsEVOnboardingSteps = void 0;
4
4
  var WindowsEVOnboardingSteps;
5
5
  (function (WindowsEVOnboardingSteps) {
6
6
  WindowsEVOnboardingSteps["hasChosenProvider"] = "hasChosenProvider";
@@ -14,3 +14,8 @@ var WindowsEVOnboardingProvider;
14
14
  WindowsEVOnboardingProvider["globalsign"] = "globalsign";
15
15
  WindowsEVOnboardingProvider["other"] = "other";
16
16
  })(WindowsEVOnboardingProvider = exports.WindowsEVOnboardingProvider || (exports.WindowsEVOnboardingProvider = {}));
17
+ var WindowsHSMCertType;
18
+ (function (WindowsHSMCertType) {
19
+ WindowsHSMCertType["ev"] = "ev";
20
+ WindowsHSMCertType["file"] = "file";
21
+ })(WindowsHSMCertType = exports.WindowsHSMCertType || (exports.WindowsHSMCertType = {}));
@@ -403,6 +403,6 @@ export interface DesktopifyApp2 {
403
403
  shouldHaveFullAccessToElectronAPIs?: boolean;
404
404
  }
405
405
  export interface IApp2 extends BaseApp {
406
- desktopApp?: DesktopifyApp2;
406
+ desktopApp: DesktopifyApp2;
407
407
  }
408
408
  export {};
@@ -1,5 +1,5 @@
1
1
  import { BaseApp, Schemable } from "./base";
2
- import { IAppBuilderLib, URL } from "./desktopify";
2
+ import { IAppBuilderLib } from "./desktopify";
3
3
  export declare type IUploadFileStatus = "error" | "success" | "done" | "uploading" | "removed";
4
4
  export interface IUploadFile {
5
5
  uid: string;
@@ -77,33 +77,12 @@ export interface IIcon {
77
77
  height: number;
78
78
  type: string;
79
79
  }
80
- export interface CustomMacCodeSign {
81
- certName: string;
82
- certPassword: string;
83
- certUrl: string;
84
- }
85
80
  export interface CustomNotarization {
86
81
  appleId: string;
87
82
  appleIdPassword: string;
88
83
  ascProvider?: string;
89
84
  teamId?: string;
90
85
  }
91
- export declare enum WindowsHSMCertType {
92
- ev = "ev",
93
- file = "file"
94
- }
95
- export interface CustomWindowsCodeSignFile {
96
- certType: string;
97
- hsmCertType: WindowsHSMCertType.file;
98
- hsmCertName: string;
99
- certPassword?: string;
100
- certUrl?: URL;
101
- }
102
- export interface CustomWindowsCodeSignEV {
103
- certType: "hsm";
104
- hsmCertType: WindowsHSMCertType.ev;
105
- hsmCertName: string;
106
- }
107
86
  export interface IApp extends BaseApp {
108
87
  appModelId: string;
109
88
  appPkgName?: string;
@@ -111,16 +90,8 @@ export interface IApp extends BaseApp {
111
90
  appType?: string;
112
91
  appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
113
92
  cssToInject?: string;
114
- customMacCodeSign?: CustomMacCodeSign;
115
93
  customDomain?: string;
116
- customNotarization?: {
117
- appleId: string;
118
- appleIdPassword: string;
119
- ascProvider?: string;
120
- teamId?: string;
121
- };
122
94
  customUserAgent?: ISwitchableValue<string>;
123
- customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
124
95
  disableContextMenu?: boolean;
125
96
  environmentVariables?: {
126
97
  [propertyName: string]: string;
@@ -151,10 +122,6 @@ export interface IApp extends BaseApp {
151
122
  shouldLaunchAtStartupByDefault?: boolean;
152
123
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
153
124
  shouldReuseRendererProcess?: boolean;
154
- snapStore?: {
155
- login?: string;
156
- description?: string;
157
- };
158
125
  themeSource?: "system" | "light" | "dark";
159
126
  themeSourceMac?: "system" | "light" | "dark";
160
127
  toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
@@ -178,6 +145,7 @@ export interface IUser extends Schemable {
178
145
  accessToken?: string;
179
146
  isAdmin?: boolean;
180
147
  featureFlags?: FeatureFlags;
148
+ disableShouldCodeSign?: boolean;
181
149
  }
182
150
  export interface FeatureFlags {
183
151
  desktopAppPlugins: boolean;
package/lib/toDesktop.js CHANGED
@@ -1,8 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WindowsHSMCertType = void 0;
4
- var WindowsHSMCertType;
5
- (function (WindowsHSMCertType) {
6
- WindowsHSMCertType["ev"] = "ev";
7
- WindowsHSMCertType["file"] = "file";
8
- })(WindowsHSMCertType = exports.WindowsHSMCertType || (exports.WindowsHSMCertType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.184.15",
3
+ "version": "7.184.16",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -154,10 +154,45 @@ export interface IAppMeta {
154
154
  forceVersionNumber?: string;
155
155
  }
156
156
 
157
+ export enum WindowsHSMCertType {
158
+ ev = "ev",
159
+ file = "file",
160
+ }
161
+
162
+ export interface CustomWindowsCodeSignFile {
163
+ certType: string;
164
+ hsmCertType: WindowsHSMCertType.file;
165
+ hsmCertName: string;
166
+ // following are still used in desktopify, but no longer used/saved from web app
167
+ certPassword?: string;
168
+ certUrl?: URL;
169
+ }
170
+
171
+ export interface CustomWindowsCodeSignEV {
172
+ certType: "hsm";
173
+ hsmCertType: WindowsHSMCertType.ev;
174
+ hsmCertName: string;
175
+ }
176
+
177
+ export interface CustomMacCodeSign {
178
+ certName: string;
179
+ certPassword: string;
180
+ certUrl: string;
181
+ }
182
+
157
183
  export interface BaseApp extends Schemable {
158
184
  id: string;
159
185
  appModelId?: string;
160
186
  customDomain?: string;
187
+ customMacCodeSign?: CustomMacCodeSign;
188
+ customNotarization?: {
189
+ appleId: string;
190
+ appleIdPassword: string;
191
+ ascProvider?: string;
192
+ teamId?: string;
193
+ };
194
+ customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
195
+
161
196
  meta?: IAppMeta;
162
197
  subscription?: {
163
198
  status: string;
@@ -185,4 +220,5 @@ export interface BaseApp extends Schemable {
185
220
  // artifact configs
186
221
  appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
187
222
  nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
223
+ snapStore?: { login?: string; description?: string };
188
224
  }
@@ -531,6 +531,6 @@ export interface DesktopifyApp2 {
531
531
  }
532
532
 
533
533
  export interface IApp2 extends BaseApp {
534
- // Old apps don't have the `desktopApp` property so let's not assume it exists
535
- desktopApp?: DesktopifyApp2;
534
+ // Be careful when coercing to `IApp2` that we always check for `desktopApp` first
535
+ desktopApp: DesktopifyApp2;
536
536
  }
package/src/toDesktop.ts CHANGED
@@ -93,12 +93,6 @@ export interface IIcon {
93
93
  type: string;
94
94
  }
95
95
 
96
- export interface CustomMacCodeSign {
97
- certName: string;
98
- certPassword: string;
99
- certUrl: string;
100
- }
101
-
102
96
  export interface CustomNotarization {
103
97
  appleId: string;
104
98
  appleIdPassword: string;
@@ -106,26 +100,6 @@ export interface CustomNotarization {
106
100
  teamId?: string;
107
101
  }
108
102
 
109
- export enum WindowsHSMCertType {
110
- ev = "ev",
111
- file = "file",
112
- }
113
-
114
- export interface CustomWindowsCodeSignFile {
115
- certType: string;
116
- hsmCertType: WindowsHSMCertType.file;
117
- hsmCertName: string;
118
- // following are still used in desktopify, but no longer used/saved from web app
119
- certPassword?: string;
120
- certUrl?: URL;
121
- }
122
-
123
- export interface CustomWindowsCodeSignEV {
124
- certType: "hsm";
125
- hsmCertType: WindowsHSMCertType.ev;
126
- hsmCertName: string;
127
- }
128
-
129
103
  export interface IApp extends BaseApp {
130
104
  appModelId: string;
131
105
  appPkgName?: string;
@@ -133,16 +107,8 @@ export interface IApp extends BaseApp {
133
107
  appType?: string;
134
108
  appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
135
109
  cssToInject?: string;
136
- customMacCodeSign?: CustomMacCodeSign;
137
110
  customDomain?: string;
138
- customNotarization?: {
139
- appleId: string;
140
- appleIdPassword: string;
141
- ascProvider?: string;
142
- teamId?: string;
143
- };
144
111
  customUserAgent?: ISwitchableValue<string>;
145
- customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
146
112
  disableContextMenu?: boolean;
147
113
  environmentVariables?: { [propertyName: string]: string };
148
114
  icon?: string;
@@ -171,7 +137,6 @@ export interface IApp extends BaseApp {
171
137
  shouldLaunchAtStartupByDefault?: boolean;
172
138
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
173
139
  shouldReuseRendererProcess?: boolean;
174
- snapStore?: { login?: string; description?: string };
175
140
  themeSource?: "system" | "light" | "dark";
176
141
  themeSourceMac?: "system" | "light" | "dark";
177
142
  toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
@@ -196,6 +161,7 @@ export interface IUser extends Schemable {
196
161
  accessToken?: string;
197
162
  isAdmin?: boolean;
198
163
  featureFlags?: FeatureFlags;
164
+ disableShouldCodeSign?: boolean;
199
165
  }
200
166
 
201
167
  export interface FeatureFlags {