UNPKG

1.75 kBTypeScriptView Raw
1export interface LegacyNotarizePasswordCredentials {
2 appleId: string;
3 appleIdPassword: string;
4}
5export interface NotaryToolPasswordCredentials {
6 appleId: string;
7 appleIdPassword: string;
8 teamId: string;
9}
10export interface LegacyNotarizeApiKeyCredentials {
11 appleApiKey: string;
12 appleApiIssuer: string;
13}
14export interface NotaryToolApiKeyCredentials {
15 appleApiKey: string;
16 appleApiKeyId: string;
17 appleApiIssuer: string;
18}
19export interface NotaryToolKeychainCredentials {
20 keychainProfile: string;
21 keychain?: string;
22}
23export declare type LegacyNotarizeCredentials = LegacyNotarizePasswordCredentials | LegacyNotarizeApiKeyCredentials;
24export declare type NotaryToolCredentials = NotaryToolPasswordCredentials | NotaryToolApiKeyCredentials | NotaryToolKeychainCredentials;
25export declare type NotarizeCredentials = LegacyNotarizeCredentials | NotaryToolCredentials;
26export interface LegacyNotarizeAppOptions {
27 appPath: string;
28 appBundleId: string;
29}
30export interface NotaryToolNotarizeAppOptions {
31 appPath: string;
32}
33export interface TransporterOptions {
34 ascProvider?: string;
35}
36export interface NotarizeResult {
37 uuid: string;
38}
39export declare type LegacyNotarizeStartOptions = LegacyNotarizeAppOptions & LegacyNotarizeCredentials & TransporterOptions;
40export declare type NotaryToolStartOptions = NotaryToolNotarizeAppOptions & NotaryToolCredentials;
41export declare type LegacyNotarizeWaitOptions = NotarizeResult & LegacyNotarizeCredentials;
42export declare type NotarizeStapleOptions = Pick<LegacyNotarizeAppOptions, 'appPath'>;
43export declare type NotarizeOptions = ({
44 tool?: 'legacy';
45} & LegacyNotarizeStartOptions) | ({
46 tool: 'notarytool';
47} & NotaryToolStartOptions);