@capgo/cli 8.97.2 → 8.98.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 +121 -1
- package/dist/index.js +939 -910
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +4 -2
- package/dist/src/analytics/opt-out.d.ts +1 -0
- package/dist/src/build/archive.d.ts +54 -0
- package/dist/src/build/credentials-remote.d.ts +55 -0
- package/dist/src/build/request.d.ts +6 -30
- package/dist/src/build/zip-command.d.ts +10 -0
- package/dist/src/bundle/delta-pack.d.ts +45 -0
- package/dist/src/bundle/partial.d.ts +8 -1
- package/dist/src/bundle/upload-artifact.d.ts +51 -0
- package/dist/src/mcp/tool-schemas.d.ts +1 -0
- package/dist/src/schemas/build.d.ts +41 -0
- package/dist/src/schemas/bundle.d.ts +49 -1
- package/dist/src/schemas/sdk.d.ts +23 -1
- package/dist/src/sdk.d.ts +10 -2
- package/dist/src/sdk.js +381 -379
- package/dist/src/shared/json-stdout.d.ts +6 -0
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +4 -2
- package/skills/native-builds/SKILL.md +22 -0
- package/skills/release-management/SKILL.md +15 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BuildZipOptions, BuildZipResult } from '../schemas/build';
|
|
2
|
+
export type { BuildZipOptions, BuildZipResult } from '../schemas/build';
|
|
3
|
+
/**
|
|
4
|
+
* Offline `build zip`: write the exact native project archive `build request`
|
|
5
|
+
* uploads (same file filter, path rewriting, version sync and config
|
|
6
|
+
* resolution), plus the non-secret build_options derived from the project, so
|
|
7
|
+
* an agent can upload it through a signed URL. No API key, no network.
|
|
8
|
+
*/
|
|
9
|
+
export declare function zipBuildInternal(appId: string | undefined, options: BuildZipOptions, silent?: boolean): Promise<BuildZipResult>;
|
|
10
|
+
export declare function zipBuildCommand(appId: string | undefined, options: BuildZipOptions): Promise<void>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ManifestUploadFileHashFormat, ManifestUploadRequestEntry } from './manifest-upload';
|
|
2
|
+
import type { OptionsUpload } from './upload_interface';
|
|
3
|
+
import { Buffer } from 'node:buffer';
|
|
4
|
+
import { MANIFEST_UPLOAD_PROTOCOL_VERSION } from './manifest-upload';
|
|
5
|
+
/**
|
|
6
|
+
* Offline "delta pack": the exact per-file bytes the online delta upload
|
|
7
|
+
* (`bundle upload --delta`) would send, plus the manifest request entries it
|
|
8
|
+
* would post, so an agent can upload them through signed URLs.
|
|
9
|
+
*
|
|
10
|
+
* Layout (ZIP, STORE / no compression):
|
|
11
|
+
* - `capgo-delta-manifest.json` (see DeltaPackManifest)
|
|
12
|
+
* - `files/<id>`: uploaded bytes for entry `id` (brotli and/or encrypted exactly as uploaded)
|
|
13
|
+
*/
|
|
14
|
+
export declare const DELTA_PACK_MANIFEST_FILE = "capgo-delta-manifest.json";
|
|
15
|
+
export interface DeltaPackEntry extends ManifestUploadRequestEntry {
|
|
16
|
+
/** Path of the uploaded bytes inside the pack. */
|
|
17
|
+
pack_path: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DeltaPackManifest {
|
|
20
|
+
protocol_version: typeof MANIFEST_UPLOAD_PROTOCOL_VERSION;
|
|
21
|
+
file_hash_format: ManifestUploadFileHashFormat;
|
|
22
|
+
delta_encryption: {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** `compression` is 'none' | 'brotli' (backend manifest upload protocol values; brotli entries end in `.br`). */
|
|
26
|
+
entries: DeltaPackEntry[];
|
|
27
|
+
}
|
|
28
|
+
export interface DeltaPackResult {
|
|
29
|
+
filename: string;
|
|
30
|
+
manifest: DeltaPackManifest;
|
|
31
|
+
}
|
|
32
|
+
export interface DeltaPackBundleInput {
|
|
33
|
+
encryptionMethod: 'none' | 'v2' | 'v1';
|
|
34
|
+
finalKeyData: string;
|
|
35
|
+
sessionKey?: Buffer;
|
|
36
|
+
ivSessionKey?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Build the delta pack with the same steps as the online delta upload:
|
|
40
|
+
* delta encryption settings, manifest generation, then entry preparation
|
|
41
|
+
* (skip rules, brotli rules, encryption, validation, MAX_MANIFEST_ENTRIES).
|
|
42
|
+
* `options` must be the upload-shaped options (with `delta: true`); it is
|
|
43
|
+
* mutated the same way `bundle upload` mutates it (encryptDelta folding).
|
|
44
|
+
*/
|
|
45
|
+
export declare function writeDeltaPack(filename: string, path: string, bundle: DeltaPackBundleInput, options: OptionsUpload): Promise<DeltaPackResult>;
|
|
@@ -7,6 +7,11 @@ export declare function fileExistsAtUploadTarget(existenceCheckUrlPrefix: string
|
|
|
7
7
|
exists: boolean;
|
|
8
8
|
receipt?: string;
|
|
9
9
|
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Build the delta manifest (per-file sha256, optionally signed with the v2 key).
|
|
12
|
+
* Local only: shared by the online delta upload and the offline `bundle zip --delta-pack`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateDeltaManifest(path: string, encryptionMethod: 'none' | 'v2' | 'v1', finalKeyData: string, supportsHexChecksum?: boolean): Promise<manifestType>;
|
|
10
15
|
export declare function prepareBundlePartialFiles(path: string, apikey: string, orgId: string, appid: string, encryptionMethod: 'none' | 'v2' | 'v1', finalKeyData: string, supportsHexChecksum?: boolean): Promise<{
|
|
11
16
|
file: string;
|
|
12
17
|
hash: string;
|
|
@@ -18,6 +23,8 @@ export interface PartialEncryptionOptions {
|
|
|
18
23
|
export declare class PartialUploadValidationError extends CliUserError {
|
|
19
24
|
constructor(message: string);
|
|
20
25
|
}
|
|
21
|
-
export declare function prepareManifestUploadEntries(manifest: manifestType, path: string, encryptionOptions: PartialEncryptionOptions | undefined, options: OptionsUpload
|
|
26
|
+
export declare function prepareManifestUploadEntries(manifest: manifestType, path: string, encryptionOptions: PartialEncryptionOptions | undefined, options: OptionsUpload,
|
|
27
|
+
/** Receives the exact bytes the delta upload would send for each entry (used by the offline delta pack). */
|
|
28
|
+
onPayload?: (entry: ManifestUploadRequestEntry, uploadedBytes: Buffer) => void | Promise<void>): Promise<ManifestUploadRequestEntry[]>;
|
|
22
29
|
export declare function buildPartialUploadHeaders(manifestUploadEntry: ResolvedManifestUploadEntry): Record<string, string>;
|
|
23
30
|
export declare function uploadPartial(apikey: string, manifest: manifestType, path: string, appId: string, orgId: string, encryptionOptions: PartialEncryptionOptions | undefined, options: OptionsUpload, manifestUpload: ResolvedManifestUpload): Promise<any[] | null>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundle artifact preparation shared by `bundle upload` and the offline
|
|
3
|
+
* `bundle zip` packer. Everything here is local (no API key, no network): the
|
|
4
|
+
* online upload wires its analytics through the optional hooks, so both
|
|
5
|
+
* commands produce byte-for-byte the same zip, checksum, encryption metadata,
|
|
6
|
+
* native package list and delta encryption settings.
|
|
7
|
+
*/
|
|
8
|
+
import type { Buffer } from 'node:buffer';
|
|
9
|
+
import type { getLocalDependencies } from '../utils';
|
|
10
|
+
import type { OptionsUpload } from './upload_interface';
|
|
11
|
+
export type BundleArtifactOptions = Pick<OptionsUpload, 'mode' | 'keyV2' | 'keyDataV2' | 'key' | 'oldEncryption' | 'forceCrc32Checksum' | 'packageJson' | 'displayIvSession' | 'verbose'>;
|
|
12
|
+
export interface BundleArtifactHooks {
|
|
13
|
+
/** Called right before v2 encryption starts (the online upload sends its analytics event here). */
|
|
14
|
+
onEncryptV2?: () => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
interface ResolvedUpdaterForUpload {
|
|
17
|
+
packageName: string;
|
|
18
|
+
version: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function resolveUpdaterForUpload(options: Pick<OptionsUpload, 'mode' | 'packageJson'>, root: string): Promise<ResolvedUpdaterForUpload | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Zip the web assets, compute the checksum and apply v2 encryption exactly as
|
|
23
|
+
* `bundle upload` does (sha256/crc32 selection, .capgo_key_v2 default,
|
|
24
|
+
* --key-v2/--key-data-v2/--no-key, V3 hex vs V2 base64 checksum signature).
|
|
25
|
+
*/
|
|
26
|
+
export declare function prepareBundleArtifact(path: string, options: BundleArtifactOptions, publicKeyFromConfig?: string, hooks?: BundleArtifactHooks): Promise<{
|
|
27
|
+
zipped: Buffer<ArrayBufferLike>;
|
|
28
|
+
ivSessionKey: string | undefined;
|
|
29
|
+
sessionKey: Buffer<ArrayBufferLike> | undefined;
|
|
30
|
+
checksum: string;
|
|
31
|
+
checksumAlgorithm: "sha256" | "crc32";
|
|
32
|
+
checksumEncryption: "v2" | "v3" | undefined;
|
|
33
|
+
encryptionMethod: "none" | "v1" | "v2";
|
|
34
|
+
finalKeyData: string;
|
|
35
|
+
keyId: string;
|
|
36
|
+
updaterVersion: string | undefined;
|
|
37
|
+
updaterPackageName: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
type LocalDependencies = Awaited<ReturnType<typeof getLocalDependencies>>;
|
|
40
|
+
/** native_packages payload stored on the bundle (same shape `bundle upload` sends). */
|
|
41
|
+
export declare function buildNativePackagesPayload(localDependencies: LocalDependencies | undefined, ignoreMetadataCheck?: boolean): any[] | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Resolve delta (manifest) encryption exactly like `bundle upload`: folds the
|
|
44
|
+
* deprecated --encrypt-partial alias into options.encryptDelta, refuses explicit
|
|
45
|
+
* delta encryption without v2, auto-enables it for updater >= 6.14.4 and picks
|
|
46
|
+
* the hex (V3) checksum format when the updater supports it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveDeltaEncryptionSettings(options: OptionsUpload, encryptionMethod: 'none' | 'v2' | 'v1'): Promise<{
|
|
49
|
+
supportsHexChecksum: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
export {};
|
|
@@ -249,6 +249,7 @@ export declare const mcpRequestBuildInputSchema: z.ZodObject<{
|
|
|
249
249
|
}>;
|
|
250
250
|
path: z.ZodOptional<z.ZodString>;
|
|
251
251
|
nodeModules: z.ZodOptional<z.ZodString>;
|
|
252
|
+
useStoredCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
252
253
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
253
254
|
cacheKey: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
254
255
|
}, z.core.$strip>;
|
|
@@ -91,6 +91,7 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
|
|
|
91
91
|
syncIosVersion: z.ZodOptional<z.ZodBoolean>;
|
|
92
92
|
syncAndroidVersion: z.ZodOptional<z.ZodBoolean>;
|
|
93
93
|
playstoreUpload: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
useStoredCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
94
95
|
submitToStoreReview: z.ZodOptional<z.ZodBoolean>;
|
|
95
96
|
storeReleaseName: z.ZodOptional<z.ZodString>;
|
|
96
97
|
storeReleaseNotes: z.ZodOptional<z.ZodString>;
|
|
@@ -175,6 +176,46 @@ export declare const buildOptionsPayloadSchema: z.ZodObject<{
|
|
|
175
176
|
iosTestflightGroups: z.ZodOptional<z.ZodString>;
|
|
176
177
|
}, z.core.$strip>;
|
|
177
178
|
export type BuildOptionsPayload = z.infer<typeof buildOptionsPayloadSchema>;
|
|
179
|
+
export declare const buildZipOptionsSchema: z.ZodObject<{
|
|
180
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
android: "android";
|
|
182
|
+
ios: "ios";
|
|
183
|
+
}>>;
|
|
184
|
+
path: z.ZodOptional<z.ZodString>;
|
|
185
|
+
nodeModules: z.ZodOptional<z.ZodString>;
|
|
186
|
+
syncIosVersion: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
syncAndroidVersion: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
output: z.ZodOptional<z.ZodString>;
|
|
189
|
+
json: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type BuildZipOptions = z.infer<typeof buildZipOptionsSchema>;
|
|
192
|
+
export declare const buildZipResultSchema: z.ZodObject<{
|
|
193
|
+
app_id: z.ZodString;
|
|
194
|
+
platform: z.ZodEnum<{
|
|
195
|
+
android: "android";
|
|
196
|
+
ios: "ios";
|
|
197
|
+
}>;
|
|
198
|
+
filename: z.ZodString;
|
|
199
|
+
size_bytes: z.ZodNumber;
|
|
200
|
+
sha256: z.ZodString;
|
|
201
|
+
ios_dependency_manager: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
cocoapods: "cocoapods";
|
|
203
|
+
spm: "spm";
|
|
204
|
+
}>>;
|
|
205
|
+
build_options: z.ZodObject<{
|
|
206
|
+
platform: z.ZodEnum<{
|
|
207
|
+
android: "android";
|
|
208
|
+
ios: "ios";
|
|
209
|
+
}>;
|
|
210
|
+
iosSourceDir: z.ZodOptional<z.ZodString>;
|
|
211
|
+
iosAppDir: z.ZodOptional<z.ZodString>;
|
|
212
|
+
iosProjectDir: z.ZodOptional<z.ZodString>;
|
|
213
|
+
androidSourceDir: z.ZodOptional<z.ZodString>;
|
|
214
|
+
androidAppDir: z.ZodOptional<z.ZodString>;
|
|
215
|
+
androidProjectDir: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
export type BuildZipResult = z.infer<typeof buildZipResultSchema>;
|
|
178
219
|
export declare const credentialFileSchema: z.ZodObject<{
|
|
179
220
|
BUILD_CERTIFICATE_FILE: z.ZodOptional<z.ZodString>;
|
|
180
221
|
APPLE_KEY_FILE: z.ZodOptional<z.ZodString>;
|
|
@@ -75,10 +75,49 @@ export declare const optionsUploadSchema: z.ZodObject<{
|
|
|
75
75
|
qrPreview: z.ZodOptional<z.ZodBoolean>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
export type OptionsUpload = z.infer<typeof optionsUploadSchema>;
|
|
78
|
+
export declare const nativePackageMetadataSchema: z.ZodObject<{
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
version: z.ZodString;
|
|
81
|
+
requested_version: z.ZodOptional<z.ZodString>;
|
|
82
|
+
ios_checksum: z.ZodOptional<z.ZodString>;
|
|
83
|
+
android_checksum: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
78
85
|
export declare const zipResultSchema: z.ZodObject<{
|
|
79
86
|
bundle: z.ZodString;
|
|
80
87
|
filename: z.ZodString;
|
|
81
88
|
checksum: z.ZodString;
|
|
89
|
+
app_id: z.ZodOptional<z.ZodString>;
|
|
90
|
+
updater_version: z.ZodOptional<z.ZodString>;
|
|
91
|
+
updater_package: z.ZodOptional<z.ZodString>;
|
|
92
|
+
checksum_algorithm: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
sha256: "sha256";
|
|
94
|
+
crc32: "crc32";
|
|
95
|
+
}>>;
|
|
96
|
+
size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
cli_version: z.ZodOptional<z.ZodString>;
|
|
98
|
+
encryption_method: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
none: "none";
|
|
100
|
+
v2: "v2";
|
|
101
|
+
}>>;
|
|
102
|
+
session_key: z.ZodOptional<z.ZodString>;
|
|
103
|
+
key_id: z.ZodOptional<z.ZodString>;
|
|
104
|
+
native_packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
version: z.ZodString;
|
|
107
|
+
requested_version: z.ZodOptional<z.ZodString>;
|
|
108
|
+
ios_checksum: z.ZodOptional<z.ZodString>;
|
|
109
|
+
android_checksum: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
delta_pack: z.ZodOptional<z.ZodString>;
|
|
112
|
+
delta_pack_entries: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
delta_file_hash_format: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
sha256_hex: "sha256_hex";
|
|
115
|
+
rsa_v2_base64: "rsa_v2_base64";
|
|
116
|
+
rsa_v3_hex: "rsa_v3_hex";
|
|
117
|
+
}>>;
|
|
118
|
+
delta_encryption: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
enabled: z.ZodBoolean;
|
|
120
|
+
}, z.core.$strip>>;
|
|
82
121
|
}, z.core.$strip>;
|
|
83
122
|
export type ZipResult = z.infer<typeof zipResultSchema>;
|
|
84
123
|
export declare const encryptResultSchema: z.ZodObject<{
|
|
@@ -124,8 +163,17 @@ export declare const bundleZipOptionsSchema: z.ZodObject<{
|
|
|
124
163
|
ignoreNotifyAppReady: z.ZodOptional<z.ZodBoolean>;
|
|
125
164
|
name: z.ZodOptional<z.ZodString>;
|
|
126
165
|
json: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
keyV2: z.ZodOptional<z.ZodBoolean
|
|
166
|
+
keyV2: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
167
|
+
keyDataV2: z.ZodOptional<z.ZodString>;
|
|
168
|
+
key: z.ZodOptional<z.ZodBoolean>;
|
|
128
169
|
packageJson: z.ZodOptional<z.ZodString>;
|
|
170
|
+
nodeModules: z.ZodOptional<z.ZodString>;
|
|
171
|
+
forUpload: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
deltaPack: z.ZodOptional<z.ZodString>;
|
|
173
|
+
encryptDelta: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
encryptPartial: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
disableBrotli: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
forceCrc32Checksum: z.ZodOptional<z.ZodBoolean>;
|
|
129
177
|
}, z.core.$strip>;
|
|
130
178
|
export type BundleZipOptions = z.infer<typeof bundleZipOptionsSchema>;
|
|
131
179
|
export declare const bundleDeleteOptionsSchema: z.ZodObject<{
|
|
@@ -440,10 +440,31 @@ export declare const zipBundleOptionsSchema: z.ZodObject<{
|
|
|
440
440
|
name: z.ZodOptional<z.ZodString>;
|
|
441
441
|
codeCheck: z.ZodOptional<z.ZodBoolean>;
|
|
442
442
|
json: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
-
keyV2: z.ZodOptional<z.ZodBoolean
|
|
443
|
+
keyV2: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
444
|
+
keyDataV2: z.ZodOptional<z.ZodString>;
|
|
445
|
+
key: z.ZodOptional<z.ZodBoolean>;
|
|
444
446
|
packageJson: z.ZodOptional<z.ZodString>;
|
|
447
|
+
nodeModules: z.ZodOptional<z.ZodString>;
|
|
448
|
+
forUpload: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
deltaPack: z.ZodOptional<z.ZodString>;
|
|
450
|
+
encryptDelta: z.ZodOptional<z.ZodBoolean>;
|
|
451
|
+
disableBrotli: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
forceCrc32Checksum: z.ZodOptional<z.ZodBoolean>;
|
|
445
453
|
}, z.core.$strip>;
|
|
446
454
|
export type ZipBundleOptions = z.infer<typeof zipBundleOptionsSchema>;
|
|
455
|
+
export declare const zipBuildOptionsSchema: z.ZodObject<{
|
|
456
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
457
|
+
platform: z.ZodEnum<{
|
|
458
|
+
android: "android";
|
|
459
|
+
ios: "ios";
|
|
460
|
+
}>;
|
|
461
|
+
path: z.ZodOptional<z.ZodString>;
|
|
462
|
+
nodeModules: z.ZodOptional<z.ZodString>;
|
|
463
|
+
syncIosVersion: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
syncAndroidVersion: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
+
output: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export type ZipBuildOptions = z.infer<typeof zipBuildOptionsSchema>;
|
|
447
468
|
export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
448
469
|
appId: z.ZodString;
|
|
449
470
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -479,6 +500,7 @@ export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
|
479
500
|
PLAY_STORE_RELEASE_STATUS: z.ZodOptional<z.ZodString>;
|
|
480
501
|
PLAY_STORE_IN_APP_UPDATE_PRIORITY: z.ZodOptional<z.ZodString>;
|
|
481
502
|
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
503
|
+
useStoredCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
482
504
|
xcodeVersion: z.ZodOptional<z.ZodString>;
|
|
483
505
|
androidTrack: z.ZodOptional<z.ZodEnum<{
|
|
484
506
|
internal: "internal";
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Channel } from './api/channels';
|
|
2
2
|
import type { DecryptResult } from './bundle/decrypt';
|
|
3
3
|
import type { EncryptResult } from './bundle/encrypt';
|
|
4
|
+
import type { BuildZipResult } from './build/zip-command';
|
|
4
5
|
import type { ZipResult } from './bundle/zip';
|
|
5
6
|
import type { StarAllRepositoryResult } from './github';
|
|
6
7
|
import type { ProbeInternalResult } from './probe';
|
|
7
|
-
import type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBundleOptions } from './schemas/sdk';
|
|
8
|
+
import type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions } from './schemas/sdk';
|
|
8
9
|
import type { AccountProfile } from './schemas/account';
|
|
9
10
|
import { getInfoInternal } from './app/info';
|
|
10
11
|
import { checkCompatibilityInternal } from './bundle/compatibility';
|
|
@@ -166,6 +167,11 @@ export declare class CapgoSDK {
|
|
|
166
167
|
encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
167
168
|
decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
168
169
|
zipBundle(options: ZipBundleOptions): Promise<SDKResult<ZipResult>>;
|
|
170
|
+
/**
|
|
171
|
+
* Zip the native project exactly like `requestBuild` does, without uploading it.
|
|
172
|
+
* Offline: no API key and no network calls.
|
|
173
|
+
*/
|
|
174
|
+
zipBuild(options: ZipBuildOptions): Promise<SDKResult<BuildZipResult>>;
|
|
169
175
|
/**
|
|
170
176
|
* Upload a bundle to Capgo Cloud
|
|
171
177
|
*
|
|
@@ -452,6 +458,7 @@ export declare function checkBundleCompatibility(options: BundleCompatibilityOpt
|
|
|
452
458
|
export declare function encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
453
459
|
export declare function decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
454
460
|
export declare function zipBundle(options: ZipBundleOptions): Promise<SDKResult<ZipResult>>;
|
|
461
|
+
export declare function zipBuild(options: ZipBuildOptions): Promise<SDKResult<BuildZipResult>>;
|
|
455
462
|
export declare function starRepo(options?: StarRepoOptions): Promise<SDKResult<{
|
|
456
463
|
repository: string;
|
|
457
464
|
alreadyStarred: boolean;
|
|
@@ -605,9 +612,10 @@ export declare function probeUpdates(options: ProbeOptions): Promise<SDKResult<P
|
|
|
605
612
|
*/
|
|
606
613
|
export declare function getCapacitorConfig(): Promise<import("./config").ExtConfigPairs | null>;
|
|
607
614
|
export type { BuildCredentials } from './build/request';
|
|
615
|
+
export type { BuildZipResult } from './build/zip-command';
|
|
608
616
|
export type { CapacitorConfig } from './config';
|
|
609
617
|
export type { ProbeInternalResult } from './probe';
|
|
610
|
-
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, StatsOrder, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBundleOptions, } from './schemas/sdk';
|
|
618
|
+
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, StatsOrder, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions, } from './schemas/sdk';
|
|
611
619
|
export type { AccountProfile } from './schemas/account';
|
|
612
620
|
export type { AppRow, AppVersionRow, ChannelRow, Organization } from './types/api';
|
|
613
621
|
export { createCapgoClient, withCapgoHosts } from './utils';
|