@todesktop/shared 7.188.6 → 7.188.8

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
@@ -171,22 +171,31 @@ export interface CustomWindowsCodeSignEV {
171
171
  hsmCertType: WindowsHSMCertType.ev;
172
172
  hsmCertName: string;
173
173
  }
174
- export interface CustomMacCodeSign {
174
+ export declare type CustomMacCodeSign = {
175
+ type: 'url';
175
176
  certName: string;
176
177
  certPassword: string;
177
178
  certUrl: string;
178
- }
179
+ } | {
180
+ type: 'hsm';
181
+ };
182
+ export declare type CustomMacNotarization = {
183
+ appleId: string;
184
+ appleIdPassword: string;
185
+ ascProvider?: string;
186
+ teamId?: string;
187
+ } | {
188
+ type: 'hsm';
189
+ appleId: string;
190
+ ascProvider?: string;
191
+ teamId?: string;
192
+ };
179
193
  export interface BaseApp extends Schemable {
180
194
  id: string;
181
195
  appModelId?: string;
182
196
  customDomain?: string;
183
197
  customMacCodeSign?: CustomMacCodeSign;
184
- customNotarization?: {
185
- appleId: string;
186
- appleIdPassword: string;
187
- ascProvider?: string;
188
- teamId?: string;
189
- };
198
+ customNotarization?: CustomMacNotarization;
190
199
  customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
191
200
  meta?: IAppMeta;
192
201
  subscription?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.6",
3
+ "version": "7.188.8",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -188,23 +188,38 @@ export interface CustomWindowsCodeSignEV {
188
188
  hsmCertName: string;
189
189
  }
190
190
 
191
- export interface CustomMacCodeSign {
192
- certName: string;
193
- certPassword: string;
194
- certUrl: string;
195
- }
191
+ export type CustomMacCodeSign =
192
+ | {
193
+ type: 'url';
194
+ certName: string;
195
+ certPassword: string;
196
+ certUrl: string;
197
+ }
198
+ | {
199
+ type: 'hsm';
200
+ };
201
+
202
+ export type CustomMacNotarization =
203
+ | {
204
+ appleId: string;
205
+ appleIdPassword: string;
206
+ ascProvider?: string;
207
+ teamId?: string;
208
+ }
209
+ | {
210
+ // password is stored on hsm
211
+ type: 'hsm';
212
+ appleId: string;
213
+ ascProvider?: string;
214
+ teamId?: string;
215
+ };
196
216
 
197
217
  export interface BaseApp extends Schemable {
198
218
  id: string;
199
219
  appModelId?: string;
200
220
  customDomain?: string;
201
221
  customMacCodeSign?: CustomMacCodeSign;
202
- customNotarization?: {
203
- appleId: string;
204
- appleIdPassword: string;
205
- ascProvider?: string;
206
- teamId?: string;
207
- };
222
+ customNotarization?: CustomMacNotarization;
208
223
  customWindowsCodeSign?: CustomWindowsCodeSignFile | CustomWindowsCodeSignEV;
209
224
 
210
225
  meta?: IAppMeta;