@todesktop/shared 7.188.17 → 7.188.18

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
@@ -103,6 +103,7 @@ export interface ToDesktopJson {
103
103
  asar?: boolean;
104
104
  asarUnpack?: boolean | string[];
105
105
  bucket?: string;
106
+ buildVersion?: string;
106
107
  copyright?: string;
107
108
  dmg?: {
108
109
  background?: FilePath;
@@ -183,17 +184,22 @@ export declare type CustomMacCodeSign = {
183
184
  } | {
184
185
  type: 'hsm';
185
186
  };
186
- export declare type CustomMacNotarization = {
187
+ export declare type CustomMacNotarization = CustomNotarizationApiKeyAuth | CustomNotarizationPasswordAuth | CustomNotarizationPasswordHsmAuth;
188
+ export interface CustomNotarizationApiKeyAuth {
189
+ appleApiKeyId: string;
190
+ appleApiIssuer: string;
191
+ type: 'hsm-api';
192
+ }
193
+ export interface CustomNotarizationPasswordAuth {
187
194
  appleId: string;
188
195
  appleIdPassword: string;
189
- ascProvider?: string;
190
- teamId?: string;
191
- } | {
192
- type: 'hsm';
196
+ teamId: string;
197
+ }
198
+ export interface CustomNotarizationPasswordHsmAuth {
193
199
  appleId: string;
194
- ascProvider?: string;
195
- teamId?: string;
196
- };
200
+ teamId: string;
201
+ type: 'hsm';
202
+ }
197
203
  export declare type ReleaseRedirectionRule = {
198
204
  appId: string;
199
205
  rule: 'app';
@@ -77,12 +77,6 @@ export interface IIcon {
77
77
  height: number;
78
78
  type: string;
79
79
  }
80
- export interface CustomNotarization {
81
- appleId: string;
82
- appleIdPassword: string;
83
- ascProvider?: string;
84
- teamId?: string;
85
- }
86
80
  export interface IApp extends BaseApp {
87
81
  appModelId: string;
88
82
  appPkgName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.17",
3
+ "version": "7.188.18",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -115,6 +115,7 @@ export interface ToDesktopJson {
115
115
  asar?: boolean;
116
116
  asarUnpack?: boolean | string[];
117
117
  bucket?: string;
118
+ buildVersion?: string;
118
119
  copyright?: string;
119
120
  dmg?: {
120
121
  background?: FilePath;
@@ -204,19 +205,27 @@ export type CustomMacCodeSign =
204
205
  };
205
206
 
206
207
  export type CustomMacNotarization =
207
- | {
208
- appleId: string;
209
- appleIdPassword: string;
210
- ascProvider?: string;
211
- teamId?: string;
212
- }
213
- | {
214
- // password is stored on hsm
215
- type: 'hsm';
216
- appleId: string;
217
- ascProvider?: string;
218
- teamId?: string;
219
- };
208
+ | CustomNotarizationApiKeyAuth
209
+ | CustomNotarizationPasswordAuth
210
+ | CustomNotarizationPasswordHsmAuth;
211
+
212
+ export interface CustomNotarizationApiKeyAuth {
213
+ appleApiKeyId: string;
214
+ appleApiIssuer: string;
215
+ type: 'hsm-api';
216
+ }
217
+
218
+ export interface CustomNotarizationPasswordAuth {
219
+ appleId: string;
220
+ appleIdPassword: string;
221
+ teamId: string;
222
+ }
223
+
224
+ export interface CustomNotarizationPasswordHsmAuth {
225
+ appleId: string;
226
+ teamId: string;
227
+ type: 'hsm';
228
+ }
220
229
 
221
230
  export type ReleaseRedirectionRule =
222
231
  | {
package/src/toDesktop.ts CHANGED
@@ -93,13 +93,6 @@ export interface IIcon {
93
93
  type: string;
94
94
  }
95
95
 
96
- export interface CustomNotarization {
97
- appleId: string;
98
- appleIdPassword: string;
99
- ascProvider?: string;
100
- teamId?: string;
101
- }
102
-
103
96
  export interface IApp extends BaseApp {
104
97
  appModelId: string;
105
98
  appPkgName?: string;