@capgo/cli 7.72.1 → 7.72.2
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/dist/index.js +390 -378
- package/dist/package.json +3 -3
- package/dist/src/api/app.d.ts +1 -7
- package/dist/src/api/channels.d.ts +6 -10
- package/dist/src/api/crypto.d.ts +2 -4
- package/dist/src/app/add.d.ts +3 -3
- package/dist/src/app/debug.d.ts +3 -6
- package/dist/src/app/delete.d.ts +1 -1
- package/dist/src/app/list.d.ts +1 -1
- package/dist/src/app/setting.d.ts +3 -8
- package/dist/src/build/credentials.d.ts +2 -23
- package/dist/src/build/request.d.ts +2 -70
- package/dist/src/bundle/cleanup.d.ts +3 -11
- package/dist/src/bundle/compatibility.d.ts +4 -9
- package/dist/src/bundle/decrypt.d.ts +4 -13
- package/dist/src/bundle/delete.d.ts +3 -7
- package/dist/src/bundle/encrypt.d.ts +4 -14
- package/dist/src/bundle/list.d.ts +1 -1
- package/dist/src/bundle/releaseType.d.ts +3 -8
- package/dist/src/bundle/unlink.d.ts +3 -8
- package/dist/src/bundle/upload.d.ts +2 -12
- package/dist/src/bundle/upload_interface.d.ts +2 -50
- package/dist/src/bundle/zip.d.ts +4 -18
- package/dist/src/channel/add.d.ts +3 -8
- package/dist/src/channel/currentBundle.d.ts +3 -8
- package/dist/src/channel/delete.d.ts +3 -8
- package/dist/src/channel/list.d.ts +31 -3
- package/dist/src/channel/set.d.ts +2 -18
- package/dist/src/config/index.d.ts +2 -12
- package/dist/src/organization/add.d.ts +3 -8
- package/dist/src/organization/delete.d.ts +3 -7
- package/dist/src/organization/list.d.ts +1 -1
- package/dist/src/organization/members.d.ts +1 -1
- package/dist/src/organization/set.d.ts +3 -17
- package/dist/src/schemas/app.d.ts +26 -0
- package/dist/src/schemas/base.d.ts +7 -0
- package/dist/src/schemas/build.d.ts +151 -0
- package/dist/src/schemas/bundle.d.ts +159 -0
- package/dist/src/schemas/channel.d.ts +62 -0
- package/dist/src/schemas/common.d.ts +55 -0
- package/dist/src/schemas/config.d.ts +20 -0
- package/dist/src/schemas/crypto.d.ts +6 -0
- package/dist/src/schemas/index.d.ts +21 -0
- package/dist/src/schemas/organization.d.ts +41 -0
- package/dist/src/schemas/sdk.d.ts +324 -0
- package/dist/src/schemas/validate.d.ts +12 -0
- package/dist/src/sdk.d.ts +14 -354
- package/dist/src/sdk.js +330 -291
- package/dist/src/utils/security_policy_errors.d.ts +2 -5
- package/dist/src/utils.d.ts +56 -40
- package/package.json +3 -3
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.72.
|
|
4
|
+
"version": "7.72.2",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@capacitor/cli": "^8.0.0",
|
|
76
76
|
"@capgo/find-package-manager": "^0.0.18",
|
|
77
77
|
"@clack/prompts": "^1.0.0",
|
|
78
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
78
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
79
79
|
"@sauber/table": "npm:@jsr/sauber__table",
|
|
80
80
|
"@std/semver": "npm:@jsr/std__semver@1.0.6",
|
|
81
81
|
"@supabase/supabase-js": "^2.79.0",
|
|
@@ -97,6 +97,6 @@
|
|
|
97
97
|
"tmp": "^0.2.5",
|
|
98
98
|
"tus-js-client": "^4.3.1",
|
|
99
99
|
"typescript": "^5.9.3",
|
|
100
|
-
"zod": "^3.
|
|
100
|
+
"zod": "^4.3.6"
|
|
101
101
|
}
|
|
102
102
|
}
|
package/dist/src/api/app.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import type { SupabaseClient } from '@supabase/supabase-js';
|
|
2
2
|
import type { Database } from '../types/supabase.types';
|
|
3
|
-
import type { OptionsBase } from '../utils';
|
|
4
3
|
import { OrganizationPerm } from '../utils';
|
|
5
4
|
export declare function checkAppExists(supabase: SupabaseClient<Database>, appid: string): Promise<boolean>;
|
|
6
5
|
export declare function check2FAComplianceForApp(supabase: SupabaseClient<Database>, appid: string, silent?: boolean): Promise<void>;
|
|
7
6
|
export declare function checkAppExistsAndHasPermissionOrgErr(supabase: SupabaseClient<Database>, apikey: string, appid: string, requiredPermission: OrganizationPerm, silent?: boolean, skip2FACheck?: boolean): Promise<OrganizationPerm>;
|
|
8
|
-
export
|
|
9
|
-
name?: string;
|
|
10
|
-
icon?: string;
|
|
11
|
-
retention?: number;
|
|
12
|
-
exposeMetadata?: boolean;
|
|
13
|
-
}
|
|
7
|
+
export type { AppOptions as Options } from '../schemas/app';
|
|
14
8
|
export declare const newIconPath = "assets/icon.png";
|
|
@@ -7000,11 +7000,10 @@ export declare function findBundleIdByChannelName(supabase: SupabaseClient<Datab
|
|
|
7000
7000
|
id: number;
|
|
7001
7001
|
name: string;
|
|
7002
7002
|
} | undefined>;
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
export interface Channel {
|
|
7003
|
+
export type { Channel } from '../schemas/channel';
|
|
7004
|
+
type Channel = import('../schemas/channel').Channel;
|
|
7005
|
+
export declare function displayChannels(data: Channel[], silent?: boolean): void;
|
|
7006
|
+
export declare function getActiveChannels(supabase: SupabaseClient<Database>, appid: string, silent?: boolean): Promise<{
|
|
7008
7007
|
id: number;
|
|
7009
7008
|
name: string;
|
|
7010
7009
|
public: boolean;
|
|
@@ -7017,8 +7016,5 @@ export interface Channel {
|
|
|
7017
7016
|
allow_device: boolean;
|
|
7018
7017
|
allow_dev: boolean;
|
|
7019
7018
|
allow_prod: boolean;
|
|
7020
|
-
version?:
|
|
7021
|
-
}
|
|
7022
|
-
export declare function displayChannels(data: Channel[], silent?: boolean): void;
|
|
7023
|
-
export declare function getActiveChannels(supabase: SupabaseClient<Database>, appid: string, silent?: boolean): Promise<Channel[]>;
|
|
7024
|
-
export {};
|
|
7019
|
+
version?: any;
|
|
7020
|
+
}[]>;
|
package/dist/src/api/crypto.d.ts
CHANGED
|
@@ -9,10 +9,8 @@ export declare function encryptChecksum(checksum: string, key: string): string;
|
|
|
9
9
|
export declare function encryptChecksumV3(checksum: string, key: string): string;
|
|
10
10
|
export declare function decryptChecksum(checksum: string, key: string): string;
|
|
11
11
|
export declare function decryptChecksumV3(checksum: string, key: string): string;
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
privateKey: string;
|
|
15
|
-
}
|
|
12
|
+
export type { RSAKeys } from '../schemas/crypto';
|
|
13
|
+
type RSAKeys = import('../schemas/crypto').RSAKeys;
|
|
16
14
|
export declare function createRSA(): RSAKeys;
|
|
17
15
|
/**
|
|
18
16
|
* Calculate the key ID from a public key
|
package/dist/src/app/add.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppOptions } from '../schemas/app';
|
|
2
2
|
import type { Organization } from '../utils';
|
|
3
3
|
export declare const reverseDomainRegex: RegExp;
|
|
4
|
-
export declare function addAppInternal(initialAppId: string, options:
|
|
4
|
+
export declare function addAppInternal(initialAppId: string, options: AppOptions, organization?: Organization, silent?: boolean): Promise<{
|
|
5
5
|
appId: any;
|
|
6
6
|
organizationUid: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
name: string;
|
|
9
9
|
signedURL: string;
|
|
10
10
|
}>;
|
|
11
|
-
export declare function addApp(appId: string, options:
|
|
11
|
+
export declare function addApp(appId: string, options: AppOptions): Promise<void>;
|
package/dist/src/app/debug.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import type { AppDebugOptions } from '../schemas/app';
|
|
1
2
|
import type { Database } from '../types/supabase.types';
|
|
2
|
-
|
|
3
|
-
export interface OptionsBaseDebug extends OptionsBase {
|
|
4
|
-
device?: string;
|
|
5
|
-
}
|
|
3
|
+
export type { AppDebugOptions as OptionsBaseDebug } from '../schemas/app';
|
|
6
4
|
export declare function markSnag(channel: string, orgId: string, apikey: string, event: string, appId?: string, icon?: string): Promise<void>;
|
|
7
5
|
export declare function cancelCommand(channel: string, command: boolean | symbol, orgId: string, apikey: string): Promise<void>;
|
|
8
6
|
interface Order {
|
|
@@ -28,5 +26,4 @@ interface LogData {
|
|
|
28
26
|
}
|
|
29
27
|
export declare function getStats(apikey: string, query: QueryStats, after: string | null): Promise<LogData[]>;
|
|
30
28
|
export declare function waitLog(channel: string, apikey: string, appId: string, orgId: string, deviceId?: string): Promise<void>;
|
|
31
|
-
export declare function debugApp(appId: string, options:
|
|
32
|
-
export {};
|
|
29
|
+
export declare function debugApp(appId: string, options: AppDebugOptions): Promise<void>;
|
package/dist/src/app/delete.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { OptionsBase } from '../
|
|
1
|
+
import type { OptionsBase } from '../schemas/base';
|
|
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>;
|
package/dist/src/app/list.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
string?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function setSettingInternal(setting: string, options: Options, silent?: boolean): Promise<void>;
|
|
7
|
-
export declare function setSetting(setting: string, options: Options): Promise<void>;
|
|
8
|
-
export {};
|
|
1
|
+
import type { AppSettingOptions } from '../schemas/app';
|
|
2
|
+
export declare function setSettingInternal(setting: string, options: AppSettingOptions, silent?: boolean): Promise<void>;
|
|
3
|
+
export declare function setSetting(setting: string, options: AppSettingOptions): Promise<void>;
|
|
@@ -18,30 +18,9 @@
|
|
|
18
18
|
* - Use separate credentials for CI/CD vs local development
|
|
19
19
|
* - Rotate credentials regularly
|
|
20
20
|
*/
|
|
21
|
+
import type { CredentialFile, SavedCredentials } from '../schemas/build';
|
|
21
22
|
import type { BuildCredentials } from './request';
|
|
22
|
-
export
|
|
23
|
-
BUILD_CERTIFICATE_FILE?: string;
|
|
24
|
-
BUILD_PROVISION_PROFILE_FILE?: string;
|
|
25
|
-
BUILD_PROVISION_PROFILE_FILE_PROD?: string;
|
|
26
|
-
APPLE_KEY_FILE?: string;
|
|
27
|
-
ANDROID_KEYSTORE_PATH?: string;
|
|
28
|
-
PLAY_CONFIG_JSON_PATH?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Per-app credentials structure
|
|
32
|
-
* Each app can have its own iOS and Android credentials
|
|
33
|
-
*/
|
|
34
|
-
export interface SavedCredentials {
|
|
35
|
-
ios?: Partial<BuildCredentials>;
|
|
36
|
-
android?: Partial<BuildCredentials>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* All credentials file structure
|
|
40
|
-
* Maps appId -> credentials for that app
|
|
41
|
-
*/
|
|
42
|
-
export interface AllCredentials {
|
|
43
|
-
[appId: string]: SavedCredentials;
|
|
44
|
-
}
|
|
23
|
+
export type { AllCredentials, CredentialFile, SavedCredentials } from '../schemas/build';
|
|
45
24
|
/**
|
|
46
25
|
* Load saved credentials for a specific app
|
|
47
26
|
* Checks local file first, then global file
|
|
@@ -25,76 +25,8 @@
|
|
|
25
25
|
* - Credentials stored in ~/.capgo/credentials.json (local machine only)
|
|
26
26
|
* - Use `build credentials clear` to remove saved credentials
|
|
27
27
|
*/
|
|
28
|
-
import type {
|
|
29
|
-
|
|
30
|
-
* Build credentials for iOS and Android native builds
|
|
31
|
-
*
|
|
32
|
-
* SECURITY: These credentials are NEVER stored on Capgo servers.
|
|
33
|
-
* They are used only during the build process and are automatically
|
|
34
|
-
* deleted after the build completes (maximum 24 hours retention).
|
|
35
|
-
* Builds are sent directly to app stores - Capgo keeps nothing.
|
|
36
|
-
*/
|
|
37
|
-
export interface BuildCredentials {
|
|
38
|
-
BUILD_CERTIFICATE_BASE64?: string;
|
|
39
|
-
BUILD_PROVISION_PROFILE_BASE64?: string;
|
|
40
|
-
BUILD_PROVISION_PROFILE_BASE64_PROD?: string;
|
|
41
|
-
P12_PASSWORD?: string;
|
|
42
|
-
APPLE_KEY_ID?: string;
|
|
43
|
-
APPLE_ISSUER_ID?: string;
|
|
44
|
-
APPLE_KEY_CONTENT?: string;
|
|
45
|
-
APPLE_PROFILE_NAME?: string;
|
|
46
|
-
APP_STORE_CONNECT_TEAM_ID?: string;
|
|
47
|
-
ANDROID_KEYSTORE_FILE?: string;
|
|
48
|
-
KEYSTORE_KEY_ALIAS?: string;
|
|
49
|
-
KEYSTORE_KEY_PASSWORD?: string;
|
|
50
|
-
KEYSTORE_STORE_PASSWORD?: string;
|
|
51
|
-
PLAY_CONFIG_JSON?: string;
|
|
52
|
-
[key: string]: string | undefined;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* CLI options for build request command
|
|
56
|
-
* All BuildCredentials fields are flattened as individual CLI options
|
|
57
|
-
*/
|
|
58
|
-
export interface BuildRequestOptions extends OptionsBase {
|
|
59
|
-
path?: string;
|
|
60
|
-
platform: 'ios' | 'android';
|
|
61
|
-
buildMode?: 'debug' | 'release';
|
|
62
|
-
userId?: string;
|
|
63
|
-
buildCertificateBase64?: string;
|
|
64
|
-
buildProvisionProfileBase64?: string;
|
|
65
|
-
buildProvisionProfileBase64Prod?: string;
|
|
66
|
-
p12Password?: string;
|
|
67
|
-
appleKeyId?: string;
|
|
68
|
-
appleIssuerId?: string;
|
|
69
|
-
appleKeyContent?: string;
|
|
70
|
-
appleProfileName?: string;
|
|
71
|
-
appStoreConnectTeamId?: string;
|
|
72
|
-
androidKeystoreFile?: string;
|
|
73
|
-
keystoreKeyAlias?: string;
|
|
74
|
-
keystoreKeyPassword?: string;
|
|
75
|
-
keystoreStorePassword?: string;
|
|
76
|
-
playConfigJson?: string;
|
|
77
|
-
verbose?: boolean;
|
|
78
|
-
}
|
|
79
|
-
export interface BuildRequestResponse {
|
|
80
|
-
jobId: string;
|
|
81
|
-
folder: string;
|
|
82
|
-
status: 'queued' | 'reserved';
|
|
83
|
-
artifactKey: string;
|
|
84
|
-
uploadUrl: string;
|
|
85
|
-
machine?: {
|
|
86
|
-
id: string;
|
|
87
|
-
ip: string;
|
|
88
|
-
[key: string]: unknown;
|
|
89
|
-
} | null;
|
|
90
|
-
}
|
|
91
|
-
export interface BuildRequestResult {
|
|
92
|
-
success: boolean;
|
|
93
|
-
jobId?: string;
|
|
94
|
-
uploadUrl?: string;
|
|
95
|
-
status?: string;
|
|
96
|
-
error?: string;
|
|
97
|
-
}
|
|
28
|
+
import type { BuildRequestOptions, BuildRequestResult } from '../schemas/build';
|
|
29
|
+
export type { BuildCredentials, BuildRequestOptions, BuildRequestResponse, BuildRequestResult } from '../schemas/build';
|
|
98
30
|
/**
|
|
99
31
|
* Request a native build from Capgo's cloud build service
|
|
100
32
|
*
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
version: string;
|
|
4
|
-
bundle: string;
|
|
5
|
-
keep: number;
|
|
6
|
-
force: boolean;
|
|
7
|
-
ignoreChannel: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function cleanupBundleInternal(appId: string, options: Options, silent?: boolean): Promise<{
|
|
1
|
+
import type { BundleCleanupOptions } from '../schemas/bundle';
|
|
2
|
+
export declare function cleanupBundleInternal(appId: string, options: BundleCleanupOptions, silent?: boolean): Promise<{
|
|
10
3
|
removed: number;
|
|
11
4
|
kept: number;
|
|
12
5
|
}>;
|
|
13
|
-
export declare function cleanupBundle(appId: string, options:
|
|
6
|
+
export declare function cleanupBundle(appId: string, options: BundleCleanupOptions): Promise<{
|
|
14
7
|
removed: number;
|
|
15
8
|
kept: number;
|
|
16
9
|
}>;
|
|
17
|
-
export {};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
channel?: string;
|
|
4
|
-
text?: boolean;
|
|
5
|
-
packageJson?: string;
|
|
6
|
-
nodeModules?: string;
|
|
7
|
-
}
|
|
1
|
+
import type { BundleCompatibilityOptions } from '../schemas/bundle';
|
|
2
|
+
import type { Compatibility } from '../utils';
|
|
8
3
|
interface CompatibilityResult {
|
|
9
4
|
finalCompatibility: Compatibility[];
|
|
10
5
|
hasIncompatible: boolean;
|
|
11
6
|
resolvedAppId: string;
|
|
12
7
|
channel: string;
|
|
13
8
|
}
|
|
14
|
-
export declare function checkCompatibilityInternal(appId: string, options:
|
|
15
|
-
export declare function checkCompatibility(appId: string, options:
|
|
9
|
+
export declare function checkCompatibilityInternal(appId: string, options: BundleCompatibilityOptions, silent?: boolean): Promise<CompatibilityResult>;
|
|
10
|
+
export declare function checkCompatibility(appId: string, options: BundleCompatibilityOptions): Promise<void>;
|
|
16
11
|
export {};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
packageJson?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface DecryptResult {
|
|
8
|
-
outputPath: string;
|
|
9
|
-
checksumMatches?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function decryptZipInternal(zipPath: string, ivsessionKey: string, options: Options, silent?: boolean): Promise<DecryptResult>;
|
|
12
|
-
export declare function decryptZip(zipPath: string, ivsessionKey: string, options: Options): Promise<void>;
|
|
13
|
-
export {};
|
|
1
|
+
import type { BundleDecryptOptions, DecryptResult } from '../schemas/bundle';
|
|
2
|
+
export type { DecryptResult } from '../schemas/bundle';
|
|
3
|
+
export declare function decryptZipInternal(zipPath: string, ivsessionKey: string, options: BundleDecryptOptions, silent?: boolean): Promise<DecryptResult>;
|
|
4
|
+
export declare function decryptZip(zipPath: string, ivsessionKey: string, options: BundleDecryptOptions): Promise<void>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare function deleteBundleInternal(bundleId: string, appId: string, options: Options, silent?: boolean): Promise<boolean>;
|
|
6
|
-
export declare function deleteBundle(bundleId: string, appId: string, options: Options): Promise<boolean>;
|
|
7
|
-
export {};
|
|
1
|
+
import type { BundleDeleteOptions } from '../schemas/bundle';
|
|
2
|
+
export declare function deleteBundleInternal(bundleId: string, appId: string, options: BundleDeleteOptions, silent?: boolean): Promise<boolean>;
|
|
3
|
+
export declare function deleteBundle(bundleId: string, appId: string, options: BundleDeleteOptions): Promise<boolean>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
packageJson?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface EncryptResult {
|
|
8
|
-
checksum: string;
|
|
9
|
-
filename: string;
|
|
10
|
-
ivSessionKey: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function encryptZipInternal(zipPath: string, checksum: string, options: Options, silent?: boolean): Promise<EncryptResult>;
|
|
13
|
-
export declare function encryptZip(zipPath: string, checksum: string, options: Options): Promise<void>;
|
|
14
|
-
export {};
|
|
1
|
+
import type { BundleEncryptOptions, EncryptResult } from '../schemas/bundle';
|
|
2
|
+
export type { EncryptResult } from '../schemas/bundle';
|
|
3
|
+
export declare function encryptZipInternal(zipPath: string, checksum: string, options: BundleEncryptOptions, silent?: boolean): Promise<EncryptResult>;
|
|
4
|
+
export declare function encryptZip(zipPath: string, checksum: string, options: BundleEncryptOptions): Promise<void>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
interface Options extends OptionsBase {
|
|
3
|
-
channel?: string;
|
|
4
|
-
packageJson?: string;
|
|
5
|
-
nodeModules?: string;
|
|
6
|
-
}
|
|
1
|
+
import type { BundleReleaseTypeOptions } from '../schemas/bundle';
|
|
7
2
|
interface ReleaseTypeResult {
|
|
8
3
|
releaseType: 'native' | 'OTA';
|
|
9
4
|
resolvedAppId: string;
|
|
@@ -12,9 +7,9 @@ interface ReleaseTypeResult {
|
|
|
12
7
|
/**
|
|
13
8
|
* Determine whether a native build or OTA update is recommended.
|
|
14
9
|
*/
|
|
15
|
-
export declare function getReleaseType(appId: string, options:
|
|
10
|
+
export declare function getReleaseType(appId: string, options: BundleReleaseTypeOptions): Promise<ReleaseTypeResult>;
|
|
16
11
|
/**
|
|
17
12
|
* Print the recommended release type and the relevant CLI commands.
|
|
18
13
|
*/
|
|
19
|
-
export declare function printReleaseType(appId: string, options:
|
|
14
|
+
export declare function printReleaseType(appId: string, options: BundleReleaseTypeOptions): Promise<void>;
|
|
20
15
|
export {};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
packageJson?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function unlinkDeviceInternal(channel: string, appId: string, options: Options, silent?: boolean): Promise<boolean>;
|
|
7
|
-
export declare function unlinkDevice(channel: string, appId: string, options: Options): Promise<void>;
|
|
8
|
-
export {};
|
|
1
|
+
import type { BundleUnlinkOptions } from '../schemas/bundle';
|
|
2
|
+
export declare function unlinkDeviceInternal(channel: string, appId: string, options: BundleUnlinkOptions, silent?: boolean): Promise<boolean>;
|
|
3
|
+
export declare function unlinkDevice(channel: string, appId: string, options: BundleUnlinkOptions): Promise<void>;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
+
import type { UploadBundleResult } from '../schemas/bundle';
|
|
1
2
|
import type { OptionsUpload } from './upload_interface';
|
|
2
3
|
import { createSupabaseClient } from '../utils';
|
|
3
4
|
type SupabaseType = Awaited<ReturnType<typeof createSupabaseClient>>;
|
|
4
|
-
export
|
|
5
|
-
success: boolean;
|
|
6
|
-
bundle: string;
|
|
7
|
-
checksum?: string | null;
|
|
8
|
-
encryptionMethod: 'none' | 'v1' | 'v2';
|
|
9
|
-
sessionKey?: string;
|
|
10
|
-
ivSessionKey?: string | null;
|
|
11
|
-
storageProvider?: string;
|
|
12
|
-
skipped?: boolean;
|
|
13
|
-
reason?: string;
|
|
14
|
-
}
|
|
5
|
+
export type { UploadBundleResult };
|
|
15
6
|
export declare function getDefaultUploadChannel(appId: string, supabase: SupabaseType, hostWeb: string): Promise<string | null>;
|
|
16
7
|
export declare function uploadBundleInternal(preAppid: string, options: OptionsUpload, silent?: boolean): Promise<UploadBundleResult>;
|
|
17
8
|
export declare function uploadBundle(appid: string, options: OptionsUpload): Promise<void>;
|
|
18
|
-
export {};
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
bundle?: string;
|
|
4
|
-
path?: string;
|
|
5
|
-
channel?: string;
|
|
6
|
-
displayIvSession?: boolean;
|
|
7
|
-
external?: string;
|
|
8
|
-
key?: boolean;
|
|
9
|
-
keyV2?: string;
|
|
10
|
-
keyDataV2?: string;
|
|
11
|
-
ivSessionKey?: string;
|
|
12
|
-
s3Region?: string;
|
|
13
|
-
s3Apikey?: string;
|
|
14
|
-
s3Apisecret?: string;
|
|
15
|
-
s3BucketName?: string;
|
|
16
|
-
s3Port?: number;
|
|
17
|
-
s3SSL?: boolean;
|
|
18
|
-
s3Endpoint?: string;
|
|
19
|
-
bundleUrl?: boolean;
|
|
20
|
-
codeCheck?: boolean;
|
|
21
|
-
oldEncryption?: boolean;
|
|
22
|
-
minUpdateVersion?: string;
|
|
23
|
-
autoMinUpdateVersion?: boolean;
|
|
24
|
-
autoSetBundle?: boolean;
|
|
25
|
-
ignoreMetadataCheck?: boolean;
|
|
26
|
-
ignoreChecksumCheck?: boolean;
|
|
27
|
-
forceCrc32Checksum?: boolean;
|
|
28
|
-
timeout?: number;
|
|
29
|
-
multipart?: boolean;
|
|
30
|
-
partial?: boolean;
|
|
31
|
-
partialOnly?: boolean;
|
|
32
|
-
delta?: boolean;
|
|
33
|
-
deltaOnly?: boolean;
|
|
34
|
-
tus?: boolean;
|
|
35
|
-
encryptedChecksum?: string;
|
|
36
|
-
packageJson?: string;
|
|
37
|
-
dryUpload?: boolean;
|
|
38
|
-
nodeModules?: string;
|
|
39
|
-
encryptPartial?: boolean;
|
|
40
|
-
deleteLinkedBundleOnUpload?: boolean;
|
|
41
|
-
tusChunkSize?: number;
|
|
42
|
-
zip?: boolean;
|
|
43
|
-
link?: string;
|
|
44
|
-
comment?: string;
|
|
45
|
-
noBrotliPatterns?: string;
|
|
46
|
-
disableBrotli?: boolean;
|
|
47
|
-
versionExistsOk?: boolean;
|
|
48
|
-
selfAssign?: boolean;
|
|
49
|
-
verbose?: boolean;
|
|
50
|
-
}
|
|
1
|
+
export { optionsUploadSchema } from '../schemas/bundle';
|
|
2
|
+
export type { OptionsUpload } from '../schemas/bundle';
|
package/dist/src/bundle/zip.d.ts
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
codeCheck?: boolean;
|
|
6
|
-
name?: string;
|
|
7
|
-
json?: boolean;
|
|
8
|
-
keyV2?: boolean;
|
|
9
|
-
packageJson?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ZipResult {
|
|
12
|
-
bundle: string;
|
|
13
|
-
filename: string;
|
|
14
|
-
checksum: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function zipBundleInternal(appId: string, options: Options, silent?: boolean): Promise<ZipResult>;
|
|
17
|
-
export declare function zipBundle(appId: string, options: Options): Promise<void>;
|
|
18
|
-
export {};
|
|
1
|
+
import type { BundleZipOptions, ZipResult } from '../schemas/bundle';
|
|
2
|
+
export type { ZipResult } from '../schemas/bundle';
|
|
3
|
+
export declare function zipBundleInternal(appId: string, options: BundleZipOptions, silent?: boolean): Promise<ZipResult>;
|
|
4
|
+
export declare function zipBundle(appId: string, options: BundleZipOptions): Promise<void>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
default?: boolean;
|
|
4
|
-
selfAssign?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function addChannelInternal(channelId: string, appId: string, options: Options, silent?: boolean): Promise<{
|
|
1
|
+
import type { ChannelAddOptions } from '../schemas/channel';
|
|
2
|
+
export declare function addChannelInternal(channelId: string, appId: string, options: ChannelAddOptions, silent?: boolean): Promise<{
|
|
7
3
|
allow_dev: boolean;
|
|
8
4
|
allow_device: boolean;
|
|
9
5
|
allow_device_self_set: boolean;
|
|
@@ -23,5 +19,4 @@ export declare function addChannelInternal(channelId: string, appId: string, opt
|
|
|
23
19
|
updated_at: string;
|
|
24
20
|
version: number;
|
|
25
21
|
}>;
|
|
26
|
-
export declare function addChannel(channelId: string, appId: string, options:
|
|
27
|
-
export {};
|
|
22
|
+
export declare function addChannel(channelId: string, appId: string, options: ChannelAddOptions): Promise<void>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
quiet?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function currentBundleInternal(channel: string, appId: string, options: Options, silent?: boolean): Promise<string>;
|
|
7
|
-
export declare function currentBundle(channel: string, appId: string, options: Options): Promise<string>;
|
|
8
|
-
export {};
|
|
1
|
+
import type { ChannelCurrentBundleOptions } from '../schemas/channel';
|
|
2
|
+
export declare function currentBundleInternal(channel: string, appId: string, options: ChannelCurrentBundleOptions, silent?: boolean): Promise<string>;
|
|
3
|
+
export declare function currentBundle(channel: string, appId: string, options: ChannelCurrentBundleOptions): Promise<string>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
successIfNotFound: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function deleteChannelInternal(channelId: string, appId: string, options: DeleteChannelOptions, silent?: boolean): Promise<boolean>;
|
|
7
|
-
export declare function deleteChannel(channelId: string, appId: string, options: DeleteChannelOptions): Promise<boolean>;
|
|
8
|
-
export {};
|
|
1
|
+
import type { ChannelDeleteOptions } from '../schemas/channel';
|
|
2
|
+
export declare function deleteChannelInternal(channelId: string, appId: string, options: ChannelDeleteOptions, silent?: boolean): Promise<boolean>;
|
|
3
|
+
export declare function deleteChannel(channelId: string, appId: string, options: ChannelDeleteOptions): Promise<boolean>;
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
import type { OptionsBase } from '../
|
|
2
|
-
export declare function listChannelsInternal(appId: string, options: OptionsBase, silent?: boolean): Promise<
|
|
3
|
-
|
|
1
|
+
import type { OptionsBase } from '../schemas/base';
|
|
2
|
+
export declare function listChannelsInternal(appId: string, options: OptionsBase, silent?: boolean): Promise<{
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
public: boolean;
|
|
6
|
+
ios: boolean;
|
|
7
|
+
android: boolean;
|
|
8
|
+
disable_auto_update: string;
|
|
9
|
+
disable_auto_update_under_native: boolean;
|
|
10
|
+
allow_device_self_set: boolean;
|
|
11
|
+
allow_emulator: boolean;
|
|
12
|
+
allow_device: boolean;
|
|
13
|
+
allow_dev: boolean;
|
|
14
|
+
allow_prod: boolean;
|
|
15
|
+
version?: any;
|
|
16
|
+
}[]>;
|
|
17
|
+
export declare function listChannels(appId: string, options: OptionsBase): Promise<{
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
public: boolean;
|
|
21
|
+
ios: boolean;
|
|
22
|
+
android: boolean;
|
|
23
|
+
disable_auto_update: string;
|
|
24
|
+
disable_auto_update_under_native: boolean;
|
|
25
|
+
allow_device_self_set: boolean;
|
|
26
|
+
allow_emulator: boolean;
|
|
27
|
+
allow_device: boolean;
|
|
28
|
+
allow_dev: boolean;
|
|
29
|
+
allow_prod: boolean;
|
|
30
|
+
version?: any;
|
|
31
|
+
}[]>;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
bundle?: string;
|
|
4
|
-
state?: string;
|
|
5
|
-
downgrade?: boolean;
|
|
6
|
-
latest?: boolean;
|
|
7
|
-
latestRemote?: boolean;
|
|
8
|
-
ios?: boolean;
|
|
9
|
-
android?: boolean;
|
|
10
|
-
selfAssign?: boolean;
|
|
11
|
-
disableAutoUpdate?: string;
|
|
12
|
-
dev?: boolean;
|
|
13
|
-
emulator?: boolean;
|
|
14
|
-
device?: boolean;
|
|
15
|
-
prod?: boolean;
|
|
16
|
-
packageJson?: string;
|
|
17
|
-
ignoreMetadataCheck?: boolean;
|
|
18
|
-
}
|
|
1
|
+
import type { OptionsSetChannel } from '../schemas/channel';
|
|
2
|
+
export type { OptionsSetChannel } from '../schemas/channel';
|
|
19
3
|
export declare function setChannelInternal(channel: string, appId: string, options: OptionsSetChannel, silent?: boolean): Promise<boolean>;
|
|
20
4
|
export declare function setChannel(channel: string, appId: string, options: OptionsSetChannel): Promise<boolean>;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
appName: string;
|
|
4
|
-
webDir: string;
|
|
5
|
-
plugins?: Record<string, any>;
|
|
6
|
-
android?: Record<string, any>;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export interface ExtConfigPairs {
|
|
10
|
-
config: CapacitorConfig;
|
|
11
|
-
path: string;
|
|
12
|
-
}
|
|
1
|
+
import type { ExtConfigPairs } from '../schemas/config';
|
|
2
|
+
export type { CapacitorConfig, ExtConfigPairs } from '../schemas/config';
|
|
13
3
|
export declare function loadConfig(): Promise<ExtConfigPairs | undefined>;
|
|
14
4
|
export declare function writeConfig(key: string, config: ExtConfigPairs, raw?: boolean): Promise<void>;
|
|
15
5
|
export declare function writeConfigUpdater(config: ExtConfigPairs, raw?: boolean): Promise<void>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
name?: string;
|
|
4
|
-
email?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function addOrganizationInternal(options: OptionsOrganization, silent?: boolean): Promise<{
|
|
1
|
+
import type { OrganizationAddOptions } from '../schemas/organization';
|
|
2
|
+
export declare function addOrganizationInternal(options: OrganizationAddOptions, silent?: boolean): Promise<{
|
|
7
3
|
created_at: string | null;
|
|
8
4
|
created_by: string;
|
|
9
5
|
customer_id: string | null;
|
|
@@ -21,5 +17,4 @@ export declare function addOrganizationInternal(options: OptionsOrganization, si
|
|
|
21
17
|
stats_updated_at: string | null;
|
|
22
18
|
updated_at: string | null;
|
|
23
19
|
}>;
|
|
24
|
-
export declare function addOrganization(options:
|
|
25
|
-
export {};
|
|
20
|
+
export declare function addOrganization(options: OrganizationAddOptions): Promise<void>;
|