@capgo/cli 7.63.0 → 7.64.1
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 +131 -14
- package/dist/index.js +413 -392
- package/dist/package.json +2 -3
- package/dist/src/api/app.d.ts +2 -2
- package/dist/src/api/channels.d.ts +952 -63
- package/dist/src/api/cryptoV2.d.ts +0 -1
- package/dist/src/api/update.d.ts +0 -1
- package/dist/src/api/versions.d.ts +0 -1
- package/dist/src/app/add.d.ts +0 -1
- package/dist/src/app/debug.d.ts +0 -1
- package/dist/src/app/delete.d.ts +0 -1
- package/dist/src/app/info.d.ts +0 -1
- package/dist/src/app/list.d.ts +0 -1
- package/dist/src/app/set.d.ts +0 -1
- package/dist/src/app/setting.d.ts +0 -1
- package/dist/src/build/credentials-command.d.ts +0 -1
- package/dist/src/build/credentials.d.ts +0 -1
- package/dist/src/build/request.d.ts +0 -1
- package/dist/src/bundle/check.d.ts +0 -1
- package/dist/src/bundle/cleanup.d.ts +0 -1
- package/dist/src/bundle/compatibility.d.ts +0 -1
- package/dist/src/bundle/decryptV2.d.ts +0 -1
- package/dist/src/bundle/delete.d.ts +0 -1
- package/dist/src/bundle/encryptV2.d.ts +0 -1
- package/dist/src/bundle/list.d.ts +0 -1
- package/dist/src/bundle/partial.d.ts +0 -1
- package/dist/src/bundle/unlink.d.ts +0 -1
- package/dist/src/bundle/upload.d.ts +0 -1
- package/dist/src/bundle/upload_interface.d.ts +0 -1
- package/dist/src/bundle/zip.d.ts +0 -1
- package/dist/src/channel/add.d.ts +0 -1
- package/dist/src/channel/currentBundle.d.ts +0 -1
- package/dist/src/channel/delete.d.ts +0 -1
- package/dist/src/channel/list.d.ts +0 -1
- package/dist/src/channel/set.d.ts +0 -1
- package/dist/src/checksum.d.ts +0 -1
- package/dist/src/config/index.d.ts +0 -1
- package/dist/src/docs.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/init.d.ts +0 -1
- package/dist/src/keyV2.d.ts +0 -1
- package/dist/src/login.d.ts +0 -1
- package/dist/src/mcp/server.d.ts +0 -1
- package/dist/src/{organisation → organization}/add.d.ts +3 -1
- package/dist/src/{organisation → organization}/delete.d.ts +0 -1
- package/dist/src/{organisation → organization}/index.d.ts +1 -1
- package/dist/src/{organisation → organization}/list.d.ts +4 -1
- package/dist/src/organization/members.d.ts +11 -0
- package/dist/src/{organisation → organization}/set.d.ts +2 -1
- package/dist/src/sdk.d.ts +6 -1
- package/dist/src/sdk.js +319 -308
- package/dist/src/types/supabase.types.d.ts +508 -29
- package/dist/src/user/account.d.ts +0 -1
- package/dist/src/utils/latest-version.d.ts +0 -1
- package/dist/src/utils/security_policy_errors.d.ts +50 -0
- package/dist/src/utils.d.ts +477 -27
- package/dist/src/versionHelpers.d.ts +0 -1
- package/package.json +2 -3
- package/dist/src/api/app.d.ts.map +0 -1
- package/dist/src/api/channels.d.ts.map +0 -1
- package/dist/src/api/cryptoV2.d.ts.map +0 -1
- package/dist/src/api/update.d.ts.map +0 -1
- package/dist/src/api/versions.d.ts.map +0 -1
- package/dist/src/app/add.d.ts.map +0 -1
- package/dist/src/app/debug.d.ts.map +0 -1
- package/dist/src/app/delete.d.ts.map +0 -1
- package/dist/src/app/info.d.ts.map +0 -1
- package/dist/src/app/list.d.ts.map +0 -1
- package/dist/src/app/set.d.ts.map +0 -1
- package/dist/src/app/setting.d.ts.map +0 -1
- package/dist/src/build/credentials-command.d.ts.map +0 -1
- package/dist/src/build/credentials.d.ts.map +0 -1
- package/dist/src/build/request.d.ts.map +0 -1
- package/dist/src/bundle/check.d.ts.map +0 -1
- package/dist/src/bundle/cleanup.d.ts.map +0 -1
- package/dist/src/bundle/compatibility.d.ts.map +0 -1
- package/dist/src/bundle/decryptV2.d.ts.map +0 -1
- package/dist/src/bundle/delete.d.ts.map +0 -1
- package/dist/src/bundle/encryptV2.d.ts.map +0 -1
- package/dist/src/bundle/list.d.ts.map +0 -1
- package/dist/src/bundle/partial.d.ts.map +0 -1
- package/dist/src/bundle/unlink.d.ts.map +0 -1
- package/dist/src/bundle/upload.d.ts.map +0 -1
- package/dist/src/bundle/upload_interface.d.ts.map +0 -1
- package/dist/src/bundle/zip.d.ts.map +0 -1
- package/dist/src/channel/add.d.ts.map +0 -1
- package/dist/src/channel/currentBundle.d.ts.map +0 -1
- package/dist/src/channel/delete.d.ts.map +0 -1
- package/dist/src/channel/list.d.ts.map +0 -1
- package/dist/src/channel/set.d.ts.map +0 -1
- package/dist/src/checksum.d.ts.map +0 -1
- package/dist/src/config/index.d.ts.map +0 -1
- package/dist/src/docs.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/init.d.ts.map +0 -1
- package/dist/src/keyV2.d.ts.map +0 -1
- package/dist/src/login.d.ts.map +0 -1
- package/dist/src/mcp/server.d.ts.map +0 -1
- package/dist/src/organisation/add.d.ts.map +0 -1
- package/dist/src/organisation/delete.d.ts.map +0 -1
- package/dist/src/organisation/index.d.ts.map +0 -1
- package/dist/src/organisation/list.d.ts.map +0 -1
- package/dist/src/organisation/set.d.ts.map +0 -1
- package/dist/src/sdk.d.ts.map +0 -1
- package/dist/src/types/supabase.types.d.ts.map +0 -1
- package/dist/src/user/account.d.ts.map +0 -1
- package/dist/src/utils/latest-version.d.ts.map +0 -1
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/versionHelpers.d.ts.map +0 -1
package/dist/src/api/update.d.ts
CHANGED
package/dist/src/app/add.d.ts
CHANGED
package/dist/src/app/debug.d.ts
CHANGED
|
@@ -30,4 +30,3 @@ export declare function getStats(apikey: string, query: QueryStats, after: strin
|
|
|
30
30
|
export declare function waitLog(channel: string, apikey: string, appId: string, orgId: string, deviceId?: string): Promise<void>;
|
|
31
31
|
export declare function debugApp(appId: string, options: OptionsBaseDebug): Promise<void>;
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=debug.d.ts.map
|
package/dist/src/app/delete.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { OptionsBase } from '../utils';
|
|
2
2
|
export declare function deleteAppInternal(initialAppId: string, options: OptionsBase, silent?: boolean, skipConfirmation?: boolean): Promise<boolean>;
|
|
3
3
|
export declare function deleteApp(initialAppId: string, options: OptionsBase): Promise<boolean>;
|
|
4
|
-
//# sourceMappingURL=delete.d.ts.map
|
package/dist/src/app/info.d.ts
CHANGED
package/dist/src/app/list.d.ts
CHANGED
package/dist/src/app/set.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { Options } from '../api/app';
|
|
2
2
|
export declare function setAppInternal(appId: string, options: Options, silent?: boolean): Promise<boolean>;
|
|
3
3
|
export declare function setApp(appId: string, options: Options): Promise<boolean>;
|
|
4
|
-
//# sourceMappingURL=set.d.ts.map
|
|
@@ -6,4 +6,3 @@ interface Options extends OptionsBase {
|
|
|
6
6
|
export declare function setSettingInternal(setting: string, options: Options, silent?: boolean): Promise<void>;
|
|
7
7
|
export declare function setSetting(setting: string, options: Options): Promise<void>;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=setting.d.ts.map
|
|
@@ -114,4 +114,3 @@ export interface BuildRequestResult {
|
|
|
114
114
|
*/
|
|
115
115
|
export declare function requestBuildInternal(appId: string, options: BuildRequestOptions, silent?: boolean): Promise<BuildRequestResult>;
|
|
116
116
|
export declare function requestBuildCommand(appId: string, options: BuildRequestOptions): Promise<void>;
|
|
117
|
-
//# sourceMappingURL=request.d.ts.map
|
|
@@ -12,4 +12,3 @@ interface CompatibilityResult {
|
|
|
12
12
|
export declare function checkCompatibilityInternal(appId: string, options: Options, silent?: boolean): Promise<CompatibilityResult>;
|
|
13
13
|
export declare function checkCompatibility(appId: string, options: Options): Promise<void>;
|
|
14
14
|
export {};
|
|
15
|
-
//# sourceMappingURL=compatibility.d.ts.map
|
|
@@ -10,4 +10,3 @@ export interface DecryptResult {
|
|
|
10
10
|
export declare function decryptZipV2Internal(zipPath: string, ivsessionKey: string, options: Options, silent?: boolean): Promise<DecryptResult>;
|
|
11
11
|
export declare function decryptZipV2(zipPath: string, ivsessionKey: string, options: Options): Promise<void>;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=decryptV2.d.ts.map
|
|
@@ -5,4 +5,3 @@ interface Options extends OptionsBase {
|
|
|
5
5
|
export declare function deleteBundleInternal(bundleId: string, appId: string, options: Options, silent?: boolean): Promise<boolean>;
|
|
6
6
|
export declare function deleteBundle(bundleId: string, appId: string, options: Options): Promise<boolean>;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface EncryptResult {
|
|
|
11
11
|
export declare function encryptZipV2Internal(zipPath: string, checksum: string, options: Options, silent?: boolean): Promise<EncryptResult>;
|
|
12
12
|
export declare function encryptZipV2(zipPath: string, checksum: string, options: Options): Promise<void>;
|
|
13
13
|
export {};
|
|
14
|
-
//# sourceMappingURL=encryptV2.d.ts.map
|
|
@@ -11,4 +11,3 @@ interface PartialEncryptionOptions {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function uploadPartial(apikey: string, manifest: manifestType, path: string, appId: string, orgId: string, encryptionOptions: PartialEncryptionOptions | undefined, options: OptionsUpload): Promise<any[] | null>;
|
|
13
13
|
export {};
|
|
14
|
-
//# sourceMappingURL=partial.d.ts.map
|
|
@@ -6,4 +6,3 @@ interface Options extends OptionsBase {
|
|
|
6
6
|
export declare function unlinkDeviceInternal(channel: string, appId: string, options: Options, silent?: boolean): Promise<boolean>;
|
|
7
7
|
export declare function unlinkDevice(channel: string, appId: string, options: Options): Promise<void>;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=unlink.d.ts.map
|
|
@@ -16,4 +16,3 @@ export declare function getDefaultUploadChannel(appId: string, supabase: Supabas
|
|
|
16
16
|
export declare function uploadBundleInternal(preAppid: string, options: OptionsUpload, silent?: boolean): Promise<UploadBundleResult>;
|
|
17
17
|
export declare function uploadBundle(appid: string, options: OptionsUpload): Promise<void>;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=upload.d.ts.map
|
package/dist/src/bundle/zip.d.ts
CHANGED
|
@@ -16,4 +16,3 @@ export interface ZipResult {
|
|
|
16
16
|
export declare function zipBundleInternal(appId: string, options: Options, silent?: boolean): Promise<ZipResult>;
|
|
17
17
|
export declare function zipBundle(appId: string, options: Options): Promise<void>;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=zip.d.ts.map
|
|
@@ -6,4 +6,3 @@ interface Options extends OptionsBase {
|
|
|
6
6
|
export declare function currentBundleInternal(channel: string, appId: string, options: Options, silent?: boolean): Promise<string>;
|
|
7
7
|
export declare function currentBundle(channel: string, appId: string, options: Options): Promise<string>;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=currentBundle.d.ts.map
|
|
@@ -6,4 +6,3 @@ interface DeleteChannelOptions extends OptionsBase {
|
|
|
6
6
|
export declare function deleteChannelInternal(channelId: string, appId: string, options: DeleteChannelOptions, silent?: boolean): Promise<boolean>;
|
|
7
7
|
export declare function deleteChannel(channelId: string, appId: string, options: DeleteChannelOptions): Promise<boolean>;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { OptionsBase } from '../utils';
|
|
2
2
|
export declare function listChannelsInternal(appId: string, options: OptionsBase, silent?: boolean): Promise<import("../api/channels").Channel[]>;
|
|
3
3
|
export declare function listChannels(appId: string, options: OptionsBase): Promise<import("../api/channels").Channel[]>;
|
|
4
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -18,4 +18,3 @@ export interface OptionsSetChannel extends OptionsBase {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function setChannelInternal(channel: string, appId: string, options: OptionsSetChannel, silent?: boolean): Promise<boolean>;
|
|
20
20
|
export declare function setChannel(channel: string, appId: string, options: OptionsSetChannel): Promise<boolean>;
|
|
21
|
-
//# sourceMappingURL=set.d.ts.map
|
package/dist/src/checksum.d.ts
CHANGED
|
@@ -13,4 +13,3 @@ export interface ExtConfigPairs {
|
|
|
13
13
|
export declare function loadConfig(): Promise<ExtConfigPairs | undefined>;
|
|
14
14
|
export declare function writeConfig(key: string, config: ExtConfigPairs, raw?: boolean): Promise<void>;
|
|
15
15
|
export declare function writeConfigUpdater(config: ExtConfigPairs, raw?: boolean): Promise<void>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/docs.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
package/dist/src/init.d.ts
CHANGED
package/dist/src/keyV2.d.ts
CHANGED
|
@@ -16,4 +16,3 @@ export declare function createKeyV2Internal(options: Options, silent?: boolean):
|
|
|
16
16
|
export declare function createKeyV2(options: Options): Promise<void>;
|
|
17
17
|
export declare function deleteOldKeyV2(options: Options): Promise<void>;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=keyV2.d.ts.map
|
package/dist/src/login.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare function doLoginExists(): boolean;
|
|
|
7
7
|
export declare function loginInternal(apikey: string, options: Options, silent?: boolean): Promise<void>;
|
|
8
8
|
export declare function login(apikey: string, options: Options): Promise<void>;
|
|
9
9
|
export {};
|
|
10
|
-
//# sourceMappingURL=login.d.ts.map
|
package/dist/src/mcp/server.d.ts
CHANGED
|
@@ -7,14 +7,16 @@ export declare function addOrganizationInternal(options: OptionsOrganization, si
|
|
|
7
7
|
created_at: string | null;
|
|
8
8
|
created_by: string;
|
|
9
9
|
customer_id: string | null;
|
|
10
|
+
email_preferences: import("../types/supabase.types").Json;
|
|
11
|
+
enforcing_2fa: boolean;
|
|
10
12
|
id: string;
|
|
11
13
|
last_stats_updated_at: string | null;
|
|
12
14
|
logo: string | null;
|
|
13
15
|
management_email: string;
|
|
14
16
|
name: string;
|
|
17
|
+
password_policy_config: import("../types/supabase.types").Json | null;
|
|
15
18
|
stats_updated_at: string | null;
|
|
16
19
|
updated_at: string | null;
|
|
17
20
|
}>;
|
|
18
21
|
export declare function addOrganization(options: OptionsOrganization): Promise<void>;
|
|
19
22
|
export {};
|
|
20
|
-
//# sourceMappingURL=add.d.ts.map
|
|
@@ -5,4 +5,3 @@ interface DeleteOrganizationOptions extends OptionsBase {
|
|
|
5
5
|
export declare function deleteOrganizationInternal(orgId: string, options: DeleteOrganizationOptions, silent?: boolean): Promise<boolean>;
|
|
6
6
|
export declare function deleteOrganization(orgId: string, options: DeleteOrganizationOptions): Promise<void>;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { OptionsBase } from '../utils';
|
|
2
2
|
export declare function listOrganizationsInternal(options: OptionsBase, silent?: boolean): Promise<{
|
|
3
|
+
"2fa_has_access": boolean;
|
|
3
4
|
app_count: number;
|
|
4
5
|
can_use_more: boolean;
|
|
5
6
|
created_by: string;
|
|
6
7
|
credit_available: number;
|
|
7
8
|
credit_next_expiration: string;
|
|
8
9
|
credit_total: number;
|
|
10
|
+
enforcing_2fa: boolean;
|
|
9
11
|
gid: string;
|
|
10
12
|
is_canceled: boolean;
|
|
11
13
|
is_yearly: boolean;
|
|
@@ -13,6 +15,8 @@ export declare function listOrganizationsInternal(options: OptionsBase, silent?:
|
|
|
13
15
|
management_email: string;
|
|
14
16
|
name: string;
|
|
15
17
|
next_stats_update_at: string;
|
|
18
|
+
password_has_access: boolean;
|
|
19
|
+
password_policy_config: import("../types/supabase.types").Json;
|
|
16
20
|
paying: boolean;
|
|
17
21
|
role: string;
|
|
18
22
|
stats_updated_at: string;
|
|
@@ -21,4 +25,3 @@ export declare function listOrganizationsInternal(options: OptionsBase, silent?:
|
|
|
21
25
|
trial_left: number;
|
|
22
26
|
}[]>;
|
|
23
27
|
export declare function listOrganizations(options: OptionsBase): Promise<void>;
|
|
24
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OptionsBase } from '../utils';
|
|
2
|
+
interface MemberInfo {
|
|
3
|
+
uid: string;
|
|
4
|
+
email: string;
|
|
5
|
+
role: string;
|
|
6
|
+
is_tmp: boolean;
|
|
7
|
+
has_2fa: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function listMembersInternal(orgId: string, options: OptionsBase, silent?: boolean): Promise<MemberInfo[]>;
|
|
10
|
+
export declare function listMembers(orgId: string, options: OptionsBase): Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -2,12 +2,13 @@ import type { OptionsBase } from '../utils';
|
|
|
2
2
|
interface OptionsOrganization extends OptionsBase {
|
|
3
3
|
name?: string;
|
|
4
4
|
email?: string;
|
|
5
|
+
enforce2fa?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare function setOrganizationInternal(orgId: string, options: OptionsOrganization, silent?: boolean): Promise<{
|
|
7
8
|
orgId: string;
|
|
8
9
|
name: string;
|
|
9
10
|
email: string;
|
|
11
|
+
enforce2fa: boolean;
|
|
10
12
|
}>;
|
|
11
13
|
export declare function setOrganization(orgId: string, options: OptionsOrganization): Promise<void>;
|
|
12
14
|
export {};
|
|
13
|
-
//# sourceMappingURL=set.d.ts.map
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export interface SDKResult<T = void> {
|
|
|
14
14
|
success: boolean;
|
|
15
15
|
data?: T;
|
|
16
16
|
error?: string;
|
|
17
|
+
/** Human-readable message for security policy errors (2FA, password policy, API key requirements) */
|
|
18
|
+
securityPolicyMessage?: string;
|
|
19
|
+
/** Whether this error is due to a security policy (2FA, password policy, hashed API key requirement, etc.) */
|
|
20
|
+
isSecurityPolicyError?: boolean;
|
|
17
21
|
warnings?: string[];
|
|
18
22
|
}
|
|
19
23
|
export interface AddAppOptions {
|
|
@@ -819,4 +823,5 @@ export type { BuildCredentials } from './build/request';
|
|
|
819
823
|
export type { CapacitorConfig } from './config';
|
|
820
824
|
export type { Database } from './types/supabase.types';
|
|
821
825
|
export { createSupabaseClient } from './utils';
|
|
822
|
-
|
|
826
|
+
export { SECURITY_POLICY_ERRORS, SECURITY_POLICY_MESSAGES, isSecurityPolicyError, parseSecurityPolicyError, getSecurityPolicyMessage, formatApiErrorForCli, } from './utils/security_policy_errors';
|
|
827
|
+
export type { SecurityPolicyErrorCode, ParsedSecurityError } from './utils/security_policy_errors';
|