@capgo/cli 7.55.0 → 7.56.0
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/README.md +6 -3
- package/dist/index.js +244 -232
- package/dist/package.json +1 -1
- package/dist/src/build/credentials-command.d.ts +9 -1
- package/dist/src/build/credentials-command.d.ts.map +1 -1
- package/dist/src/build/credentials.d.ts +15 -6
- package/dist/src/build/credentials.d.ts.map +1 -1
- package/dist/src/build/request.d.ts +1 -1
- package/dist/src/sdk.d.ts +2 -2
- package/dist/src/sdk.js +170 -170
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface SaveCredentialsOptions {
|
|
2
2
|
platform?: 'ios' | 'android';
|
|
3
3
|
appId?: string;
|
|
4
|
+
local?: boolean;
|
|
4
5
|
certificate?: string;
|
|
5
6
|
provisioningProfile?: string;
|
|
6
7
|
provisioningProfileProd?: string;
|
|
@@ -23,7 +24,7 @@ interface SaveCredentialsOptions {
|
|
|
23
24
|
* - Credentials are saved to ~/.capgo-credentials/credentials.json on YOUR local machine only
|
|
24
25
|
* - When you run a build, credentials are sent to Capgo's build servers
|
|
25
26
|
* - Credentials are NEVER stored permanently on Capgo servers
|
|
26
|
-
* - They are automatically deleted after build completion
|
|
27
|
+
* - They are automatically deleted after build completion
|
|
27
28
|
*/
|
|
28
29
|
export declare function saveCredentialsCommand(options: SaveCredentialsOptions): Promise<void>;
|
|
29
30
|
/**
|
|
@@ -31,6 +32,7 @@ export declare function saveCredentialsCommand(options: SaveCredentialsOptions):
|
|
|
31
32
|
*/
|
|
32
33
|
export declare function listCredentialsCommand(options?: {
|
|
33
34
|
appId?: string;
|
|
35
|
+
local?: boolean;
|
|
34
36
|
}): Promise<void>;
|
|
35
37
|
/**
|
|
36
38
|
* Clear saved credentials
|
|
@@ -38,6 +40,12 @@ export declare function listCredentialsCommand(options?: {
|
|
|
38
40
|
export declare function clearCredentialsCommand(options: {
|
|
39
41
|
appId?: string;
|
|
40
42
|
platform?: 'ios' | 'android';
|
|
43
|
+
local?: boolean;
|
|
41
44
|
}): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Update existing credentials (partial update, no full validation)
|
|
47
|
+
* Use this to update specific credentials without providing all of them again
|
|
48
|
+
*/
|
|
49
|
+
export declare function updateCredentialsCommand(options: SaveCredentialsOptions): Promise<void>;
|
|
42
50
|
export {};
|
|
43
51
|
//# sourceMappingURL=credentials-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials-command.d.ts","sourceRoot":"","sources":["../../../src/build/credentials-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials-command.d.ts","sourceRoot":"","sources":["../../../src/build/credentials-command.ts"],"names":[],"mappings":"AAiBA,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6P3F;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8EzG;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CvI;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4K7F"}
|
|
@@ -43,9 +43,10 @@ export interface AllCredentials {
|
|
|
43
43
|
[appId: string]: SavedCredentials;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* Load saved credentials for a specific app
|
|
46
|
+
* Load saved credentials for a specific app
|
|
47
|
+
* Checks local file first, then global file
|
|
47
48
|
*/
|
|
48
|
-
export declare function loadSavedCredentials(appId?: string): Promise<SavedCredentials | null>;
|
|
49
|
+
export declare function loadSavedCredentials(appId?: string, local?: boolean): Promise<SavedCredentials | null>;
|
|
49
50
|
/**
|
|
50
51
|
* Load credentials from environment variables
|
|
51
52
|
* Only returns credentials that are actually set in env
|
|
@@ -65,17 +66,25 @@ export declare function convertFilesToCredentials(platform: 'ios' | 'android', f
|
|
|
65
66
|
/**
|
|
66
67
|
* Update saved credentials for a specific app and platform
|
|
67
68
|
*/
|
|
68
|
-
export declare function updateSavedCredentials(appId: string, platform: 'ios' | 'android', credentials: Partial<BuildCredentials
|
|
69
|
+
export declare function updateSavedCredentials(appId: string, platform: 'ios' | 'android', credentials: Partial<BuildCredentials>, local?: boolean): Promise<void>;
|
|
69
70
|
/**
|
|
70
71
|
* Clear saved credentials for a specific app and/or platform
|
|
71
72
|
*/
|
|
72
|
-
export declare function clearSavedCredentials(appId?: string, platform?: 'ios' | 'android'): Promise<void>;
|
|
73
|
+
export declare function clearSavedCredentials(appId?: string, platform?: 'ios' | 'android', local?: boolean): Promise<void>;
|
|
73
74
|
/**
|
|
74
75
|
* Get saved credentials for a specific app and platform
|
|
75
76
|
*/
|
|
76
|
-
export declare function getSavedCredentials(appId: string, platform: 'ios' | 'android'): Promise<Partial<BuildCredentials> | null>;
|
|
77
|
+
export declare function getSavedCredentials(appId: string, platform: 'ios' | 'android', local?: boolean): Promise<Partial<BuildCredentials> | null>;
|
|
77
78
|
/**
|
|
78
79
|
* List all apps that have saved credentials
|
|
79
80
|
*/
|
|
80
|
-
export declare function listAllApps(): Promise<string[]>;
|
|
81
|
+
export declare function listAllApps(local?: boolean): Promise<string[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Get the local credentials file path (for display purposes)
|
|
84
|
+
*/
|
|
85
|
+
export declare function getLocalCredentialsPath(): string;
|
|
86
|
+
/**
|
|
87
|
+
* Get the global credentials file path (for display purposes)
|
|
88
|
+
*/
|
|
89
|
+
export declare function getGlobalCredentialsPath(): string;
|
|
81
90
|
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/build/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/build/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAwBjD,MAAM,WAAW,cAAc;IAE7B,sBAAsB,CAAC,EAAE,MAAM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C,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BxH;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAGhJ;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAGpE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD"}
|
|
@@ -108,7 +108,7 @@ export interface BuildRequestResult {
|
|
|
108
108
|
* Credentials provided to this function are:
|
|
109
109
|
* - Transmitted securely over HTTPS to Capgo's build servers
|
|
110
110
|
* - Used ONLY during the active build process
|
|
111
|
-
* - Automatically deleted after build completion
|
|
111
|
+
* - Automatically deleted after build completion
|
|
112
112
|
* - NEVER stored permanently on Capgo servers
|
|
113
113
|
* - Builds sent directly to app stores - Capgo keeps nothing
|
|
114
114
|
*/
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ export interface RequestBuildOptions {
|
|
|
293
293
|
* They are:
|
|
294
294
|
* - Transmitted securely over HTTPS
|
|
295
295
|
* - Used ONLY during the active build process
|
|
296
|
-
* - Automatically deleted after build completion
|
|
296
|
+
* - Automatically deleted after build completion
|
|
297
297
|
* - Builds sent directly to app stores - Capgo keeps nothing
|
|
298
298
|
*/
|
|
299
299
|
credentials?: BuildCredentials;
|
|
@@ -737,7 +737,7 @@ export declare function addChannel(options: AddChannelOptions): Promise<SDKResul
|
|
|
737
737
|
*
|
|
738
738
|
* SECURITY GUARANTEE:
|
|
739
739
|
* Credentials are NEVER stored on Capgo servers. They are used only during
|
|
740
|
-
* the build process and automatically deleted after completion
|
|
740
|
+
* the build process and automatically deleted after completion.
|
|
741
741
|
* Builds are sent directly to app stores - Capgo keeps nothing.
|
|
742
742
|
*
|
|
743
743
|
* @example
|