@capgo/cli 8.0.0-alpha.5 → 8.0.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 +733 -84
- package/dist/index.js +1132 -317
- package/dist/keychain-export.swift +351 -0
- package/dist/package.json +120 -30
- package/dist/src/ai/analyze.d.ts +48 -0
- package/dist/src/ai/log-capture.d.ts +14 -0
- package/dist/src/ai/prompt.d.ts +1 -0
- package/dist/src/ai/render-markdown.d.ts +12 -0
- package/dist/src/ai/sse.d.ts +5 -0
- package/dist/src/ai/stream-markdown.d.ts +22 -0
- package/dist/src/ai/telemetry.d.ts +39 -0
- package/dist/src/analytics/error-category.d.ts +11 -0
- package/dist/src/analytics/org-resolver.d.ts +11 -0
- package/dist/src/analytics/supabase-perf.d.ts +48 -0
- package/dist/src/analytics/track.d.ts +70 -0
- package/dist/src/api/app.d.ts +17 -8
- package/dist/src/api/channels.d.ts +2442 -2729
- package/dist/src/api/crypto.d.ts +26 -0
- package/dist/src/api/update.d.ts +7 -1
- package/dist/src/api/versions.d.ts +9 -2
- package/dist/src/app/add.d.ts +6 -4
- package/dist/src/app/debug.d.ts +3 -7
- package/dist/src/app/delete.d.ts +1 -2
- package/dist/src/app/info.d.ts +5 -1
- package/dist/src/app/list.d.ts +23 -2
- package/dist/src/app/set.d.ts +0 -1
- package/dist/src/app/setting.d.ts +3 -9
- package/dist/src/app/updateProbe.d.ts +43 -0
- package/dist/src/build/credentials-command.d.ts +89 -0
- package/dist/src/build/credentials-manage.d.ts +7 -0
- package/dist/src/build/credentials.d.ts +78 -0
- package/dist/src/build/env-render.d.ts +8 -0
- package/dist/src/build/last-output-command.d.ts +6 -0
- package/dist/src/build/mobileprovision-parser.d.ts +35 -0
- package/dist/src/build/needed.d.ts +28 -0
- package/dist/src/build/onboarding/ai-fit.d.ts +110 -0
- package/dist/src/build/onboarding/analytics.d.ts +23 -0
- package/dist/src/build/onboarding/android/gcp-api.d.ts +128 -0
- package/dist/src/build/onboarding/android/gradle-parser.d.ts +19 -0
- package/dist/src/build/onboarding/android/keystore.d.ts +77 -0
- package/dist/src/build/onboarding/android/oauth-config.d.ts +24 -0
- package/dist/src/build/onboarding/android/oauth-google.d.ts +134 -0
- package/dist/src/build/onboarding/android/play-api.d.ts +91 -0
- package/dist/src/build/onboarding/android/progress.d.ts +22 -0
- package/dist/src/build/onboarding/android/service-account-validation.d.ts +58 -0
- package/dist/src/build/onboarding/android/types.d.ts +72 -0
- package/dist/src/build/onboarding/android/ui/app.d.ts +17 -0
- package/dist/src/build/onboarding/app-verification.d.ts +86 -0
- package/dist/src/build/onboarding/apple-api.d.ts +234 -0
- package/dist/src/build/onboarding/build-log.d.ts +10 -0
- package/dist/src/build/onboarding/bundle-id-detector.d.ts +117 -0
- package/dist/src/build/onboarding/ci-secrets.d.ts +87 -0
- package/dist/src/build/onboarding/command.d.ts +6 -0
- package/dist/src/build/onboarding/csr.d.ts +33 -0
- package/dist/src/build/onboarding/diff-utils.d.ts +24 -0
- package/dist/src/build/onboarding/env-export.d.ts +46 -0
- package/dist/src/build/onboarding/error-categories.d.ts +13 -0
- package/dist/src/build/onboarding/file-picker.d.ts +47 -0
- package/dist/src/build/onboarding/macos-signing.d.ts +190 -0
- package/dist/src/build/onboarding/min-terminal-size.d.ts +16 -0
- package/dist/src/build/onboarding/progress.d.ts +51 -0
- package/dist/src/build/onboarding/recovery.d.ts +7 -0
- package/dist/src/build/onboarding/telemetry.d.ts +28 -0
- package/dist/src/build/onboarding/types.d.ts +140 -0
- package/dist/src/build/onboarding/ui/app.d.ts +36 -0
- package/dist/src/build/onboarding/ui/completed-steps-log.d.ts +9 -0
- package/dist/src/build/onboarding/ui/components.d.ts +178 -0
- package/dist/src/build/onboarding/ui/frame-fit.d.ts +10 -0
- package/dist/src/build/onboarding/ui/min-size-gate.d.ts +20 -0
- package/dist/src/build/onboarding/ui/platform-picker.d.ts +19 -0
- package/dist/src/build/onboarding/ui/shell.d.ts +33 -0
- package/dist/src/build/onboarding/ui/steps/android-ci.d.ts +45 -0
- package/dist/src/build/onboarding/ui/steps/android-keystore.d.ts +75 -0
- package/dist/src/build/onboarding/ui/steps/android-sa-gcp.d.ts +85 -0
- package/dist/src/build/onboarding/ui/steps/android-shared.d.ts +67 -0
- package/dist/src/build/onboarding/ui/steps/ios-ci.d.ts +44 -0
- package/dist/src/build/onboarding/ui/steps/ios-credentials.d.ts +66 -0
- package/dist/src/build/onboarding/ui/steps/ios-import.d.ts +79 -0
- package/dist/src/build/onboarding/ui/steps/ios-shared.d.ts +93 -0
- package/dist/src/build/onboarding/workflow-generator.d.ts +48 -0
- package/dist/src/build/onboarding/workflow-ui-helpers.d.ts +18 -0
- package/dist/src/build/onboarding/workflow-writer.d.ts +36 -0
- package/dist/src/build/output-record.d.ts +30 -0
- package/dist/src/build/pbxproj-parser.d.ts +48 -0
- package/dist/src/build/platform-paths.d.ts +20 -0
- package/dist/src/build/qr.d.ts +5 -0
- package/dist/src/build/request.d.ts +102 -43
- package/dist/src/build/telemetry.d.ts +17 -0
- package/dist/src/bundle/builder-cta.d.ts +67 -0
- package/dist/src/bundle/check.d.ts +0 -1
- package/dist/src/bundle/cleanup.d.ts +3 -12
- package/dist/src/bundle/compatibility.d.ts +23 -12
- package/dist/src/bundle/decrypt.d.ts +4 -0
- package/dist/src/bundle/delete.d.ts +3 -8
- package/dist/src/bundle/encrypt.d.ts +4 -0
- package/dist/src/bundle/list.d.ts +5 -2
- package/dist/src/bundle/partial.d.ts +5 -3
- package/dist/src/bundle/releaseType.d.ts +15 -0
- package/dist/src/bundle/unlink.d.ts +6 -5
- package/dist/src/bundle/upload-command.d.ts +8 -0
- package/dist/src/bundle/upload.d.ts +21 -14
- package/dist/src/bundle/upload_interface.d.ts +2 -50
- package/dist/src/bundle/zip.d.ts +4 -19
- package/dist/src/capacitor-cli.d.ts +13 -0
- package/dist/src/channel/add.d.ts +8 -10
- package/dist/src/channel/currentBundle.d.ts +3 -9
- package/dist/src/channel/delete.d.ts +3 -9
- package/dist/src/channel/list.d.ts +31 -4
- package/dist/src/channel/set.d.ts +2 -17
- package/dist/src/checksum.d.ts +1 -2
- package/dist/src/config/index.d.ts +2 -13
- package/dist/src/docs.d.ts +0 -1
- package/dist/src/github-command.d.ts +9 -0
- package/dist/src/github.d.ts +40 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/init/app-conflict.d.ts +2 -0
- package/dist/src/init/command.d.ts +57 -0
- package/dist/src/init/index.d.ts +1 -0
- package/dist/src/init/prompts.d.ts +41 -0
- package/dist/src/init/runtime.d.ts +111 -0
- package/dist/src/init/ui/app.d.ts +9 -0
- package/dist/src/init/ui/components.d.ts +31 -0
- package/dist/src/init/ui.d.ts +12 -0
- package/dist/src/init/updater.d.ts +13 -0
- package/dist/src/key.d.ts +16 -0
- package/dist/src/login.d.ts +0 -1
- package/dist/src/mcp/server.d.ts +5 -0
- package/dist/src/onboarding-support.d.ts +18 -0
- package/dist/src/organization/add.d.ts +26 -0
- package/dist/src/organization/delete.d.ts +3 -0
- package/dist/src/{organisation → organization}/index.d.ts +1 -1
- package/dist/src/{organisation → organization}/list.d.ts +14 -2
- package/dist/src/organization/members.d.ts +12 -0
- package/dist/src/organization/set.d.ts +21 -0
- package/dist/src/posthog.d.ts +13 -0
- package/dist/src/probe.d.ts +20 -0
- package/dist/src/promptPreferences.d.ts +13 -0
- package/dist/src/replicationProgress.d.ts +8 -0
- package/dist/src/run/device.d.ts +5 -0
- package/dist/src/runner-command.d.ts +5 -0
- 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 +196 -0
- package/dist/src/schemas/bundle.d.ts +157 -0
- package/dist/src/schemas/channel.d.ts +62 -0
- package/dist/src/schemas/common.d.ts +46 -0
- package/dist/src/schemas/config.d.ts +20 -0
- package/dist/src/schemas/index.d.ts +19 -0
- package/dist/src/schemas/organization.d.ts +41 -0
- package/dist/src/schemas/sdk.d.ts +335 -0
- package/dist/src/schemas/validate.d.ts +12 -0
- package/dist/src/sdk.d.ts +69 -337
- package/dist/src/sdk.js +542 -301
- package/dist/src/terminal-table.d.ts +7 -0
- package/dist/src/types/supabase.types.d.ts +2770 -296
- package/dist/src/updaterConfig.d.ts +8 -0
- package/dist/src/user/account.d.ts +0 -1
- package/dist/src/utils/latest-version.d.ts +0 -1
- package/dist/src/utils/safeWrites.d.ts +21 -0
- package/dist/src/utils/security_policy_errors.d.ts +47 -0
- package/dist/src/utils.d.ts +2869 -341
- package/dist/src/versionHelpers.d.ts +19 -0
- package/package.json +120 -30
- package/skills/native-builds/SKILL.md +255 -0
- package/skills/organization-management/SKILL.md +93 -0
- package/skills/release-management/SKILL.md +225 -0
- package/skills/usage/SKILL.md +92 -0
- 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 +0 -16
- 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/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 +0 -13
- 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 +0 -14
- 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 +0 -7
- package/dist/src/init.d.ts.map +0 -1
- package/dist/src/keyV2.d.ts +0 -19
- package/dist/src/keyV2.d.ts.map +0 -1
- package/dist/src/login.d.ts.map +0 -1
- package/dist/src/organisation/add.d.ts +0 -19
- package/dist/src/organisation/add.d.ts.map +0 -1
- package/dist/src/organisation/delete.d.ts +0 -8
- 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 +0 -13
- 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/sdk.d.ts
CHANGED
|
@@ -1,344 +1,16 @@
|
|
|
1
1
|
import type { Channel } from './api/channels';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { EncryptResult } from './bundle/encryptV2';
|
|
5
|
-
import type { UploadBundleResult } from './bundle/upload';
|
|
2
|
+
import type { DecryptResult } from './bundle/decrypt';
|
|
3
|
+
import type { EncryptResult } from './bundle/encrypt';
|
|
6
4
|
import type { ZipResult } from './bundle/zip';
|
|
5
|
+
import type { StarAllRepositoryResult } from './github';
|
|
6
|
+
import type { ProbeInternalResult } from './probe';
|
|
7
|
+
import type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetStatsOptions, ListOrganizationsOptions, LoginOptions, OrganizationInfo, ProbeOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBundleOptions } from './schemas/sdk';
|
|
7
8
|
import { getInfoInternal } from './app/info';
|
|
8
9
|
import { checkCompatibilityInternal } from './bundle/compatibility';
|
|
9
10
|
export type DoctorInfo = Awaited<ReturnType<typeof getInfoInternal>>;
|
|
10
11
|
type CompatibilityReport = Awaited<ReturnType<typeof checkCompatibilityInternal>>['finalCompatibility'];
|
|
11
12
|
export type BundleCompatibilityEntry = CompatibilityReport[number];
|
|
12
|
-
|
|
13
|
-
export interface SDKResult<T = void> {
|
|
14
|
-
success: boolean;
|
|
15
|
-
data?: T;
|
|
16
|
-
error?: string;
|
|
17
|
-
warnings?: string[];
|
|
18
|
-
}
|
|
19
|
-
export interface AddAppOptions {
|
|
20
|
-
/** App ID (e.g., com.example.app) */
|
|
21
|
-
appId: string;
|
|
22
|
-
/** App name for display in Capgo Cloud */
|
|
23
|
-
name?: string;
|
|
24
|
-
/** App icon path for display in Capgo Cloud */
|
|
25
|
-
icon?: string;
|
|
26
|
-
/** API key for authentication */
|
|
27
|
-
apikey?: string;
|
|
28
|
-
/** Custom Supabase host */
|
|
29
|
-
supaHost?: string;
|
|
30
|
-
/** Custom Supabase anon key */
|
|
31
|
-
supaAnon?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface UpdateAppOptions {
|
|
34
|
-
/** App ID (e.g., com.example.app) */
|
|
35
|
-
appId: string;
|
|
36
|
-
/** Updated app name */
|
|
37
|
-
name?: string;
|
|
38
|
-
/** Updated app icon path */
|
|
39
|
-
icon?: string;
|
|
40
|
-
/** Days to keep old bundles (0 = infinite) */
|
|
41
|
-
retention?: number;
|
|
42
|
-
/** API key for authentication */
|
|
43
|
-
apikey?: string;
|
|
44
|
-
/** Custom Supabase host */
|
|
45
|
-
supaHost?: string;
|
|
46
|
-
/** Custom Supabase anon key */
|
|
47
|
-
supaAnon?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface AppInfo {
|
|
50
|
-
appId: string;
|
|
51
|
-
name: string;
|
|
52
|
-
iconUrl?: string;
|
|
53
|
-
createdAt: Date;
|
|
54
|
-
}
|
|
55
|
-
export interface UploadOptions {
|
|
56
|
-
/** App ID (e.g., com.example.app) */
|
|
57
|
-
appId: string;
|
|
58
|
-
/** Path to build folder */
|
|
59
|
-
path: string;
|
|
60
|
-
/** Bundle version */
|
|
61
|
-
bundle?: string;
|
|
62
|
-
/** Channel name */
|
|
63
|
-
channel?: string;
|
|
64
|
-
/** API key for authentication */
|
|
65
|
-
apikey?: string;
|
|
66
|
-
/** External URL instead of upload */
|
|
67
|
-
external?: string;
|
|
68
|
-
/** Enable encryption */
|
|
69
|
-
encrypt?: boolean;
|
|
70
|
-
/** Private key for encryption */
|
|
71
|
-
encryptionKey?: string;
|
|
72
|
-
/** Custom Supabase host */
|
|
73
|
-
supaHost?: string;
|
|
74
|
-
/** Custom Supabase anon key */
|
|
75
|
-
supaAnon?: string;
|
|
76
|
-
/** Timeout in seconds */
|
|
77
|
-
timeout?: number;
|
|
78
|
-
/** Use TUS protocol for upload */
|
|
79
|
-
useTus?: boolean;
|
|
80
|
-
/** Comment for this version */
|
|
81
|
-
comment?: string;
|
|
82
|
-
/** Minimum update version required */
|
|
83
|
-
minUpdateVersion?: string;
|
|
84
|
-
/** Automatically set min-update-version when compatibility fails */
|
|
85
|
-
autoMinUpdateVersion?: boolean;
|
|
86
|
-
/** Allow self-assignment to channel */
|
|
87
|
-
selfAssign?: boolean;
|
|
88
|
-
/** Package.json paths for monorepos */
|
|
89
|
-
packageJsonPaths?: string;
|
|
90
|
-
/** Ignore compatibility checks */
|
|
91
|
-
ignoreCompatibilityCheck?: boolean;
|
|
92
|
-
/** Disable code check for notifyAppReady() */
|
|
93
|
-
disableCodeCheck?: boolean;
|
|
94
|
-
/** Use legacy zip upload instead of TUS */
|
|
95
|
-
useZip?: boolean;
|
|
96
|
-
}
|
|
97
|
-
export interface UploadResult {
|
|
98
|
-
success: boolean;
|
|
99
|
-
bundleId?: string;
|
|
100
|
-
bundleUrl?: string;
|
|
101
|
-
checksum?: string | null;
|
|
102
|
-
encryptionMethod?: UploadBundleResult['encryptionMethod'];
|
|
103
|
-
sessionKey?: string;
|
|
104
|
-
ivSessionKey?: string | null;
|
|
105
|
-
storageProvider?: string;
|
|
106
|
-
skipped?: boolean;
|
|
107
|
-
reason?: string;
|
|
108
|
-
error?: string;
|
|
109
|
-
warnings?: string[];
|
|
110
|
-
}
|
|
111
|
-
export interface BundleInfo {
|
|
112
|
-
id: string;
|
|
113
|
-
version: string;
|
|
114
|
-
channel?: string;
|
|
115
|
-
uploadedAt: Date;
|
|
116
|
-
size: number;
|
|
117
|
-
encrypted: boolean;
|
|
118
|
-
}
|
|
119
|
-
export interface CleanupOptions {
|
|
120
|
-
/** App ID */
|
|
121
|
-
appId: string;
|
|
122
|
-
/** Number of versions to keep */
|
|
123
|
-
keep?: number;
|
|
124
|
-
/** Bundle version pattern */
|
|
125
|
-
bundle?: string;
|
|
126
|
-
/** Force removal without confirmation */
|
|
127
|
-
force?: boolean;
|
|
128
|
-
/** Delete bundles even if linked to channels */
|
|
129
|
-
ignoreChannel?: boolean;
|
|
130
|
-
/** API key for authentication */
|
|
131
|
-
apikey?: string;
|
|
132
|
-
/** Custom Supabase host */
|
|
133
|
-
supaHost?: string;
|
|
134
|
-
/** Custom Supabase anon key */
|
|
135
|
-
supaAnon?: string;
|
|
136
|
-
}
|
|
137
|
-
export interface GenerateKeyOptions {
|
|
138
|
-
/** Overwrite existing keys if they already exist */
|
|
139
|
-
force?: boolean;
|
|
140
|
-
/** Automatically configure the default encryption channel instead of prompting */
|
|
141
|
-
setupChannel?: boolean;
|
|
142
|
-
}
|
|
143
|
-
export interface SaveKeyOptions {
|
|
144
|
-
/** Path to the public key file (.pub) */
|
|
145
|
-
keyPath?: string;
|
|
146
|
-
/** Public key contents as string (used if keyPath not provided) */
|
|
147
|
-
keyData?: string;
|
|
148
|
-
/** Automatically configure the default encryption channel instead of prompting */
|
|
149
|
-
setupChannel?: boolean;
|
|
150
|
-
}
|
|
151
|
-
export interface DeleteOldKeyOptions {
|
|
152
|
-
/** Force deletion if legacy files are present */
|
|
153
|
-
force?: boolean;
|
|
154
|
-
/** Automatically configure the default encryption channel instead of prompting */
|
|
155
|
-
setupChannel?: boolean;
|
|
156
|
-
}
|
|
157
|
-
export interface AddChannelOptions {
|
|
158
|
-
/** Channel ID/name */
|
|
159
|
-
channelId: string;
|
|
160
|
-
/** App ID */
|
|
161
|
-
appId: string;
|
|
162
|
-
/** Set as default channel */
|
|
163
|
-
default?: boolean;
|
|
164
|
-
/** Allow device self-assignment */
|
|
165
|
-
selfAssign?: boolean;
|
|
166
|
-
/** API key for authentication */
|
|
167
|
-
apikey?: string;
|
|
168
|
-
/** Custom Supabase host */
|
|
169
|
-
supaHost?: string;
|
|
170
|
-
/** Custom Supabase anon key */
|
|
171
|
-
supaAnon?: string;
|
|
172
|
-
}
|
|
173
|
-
export interface UpdateChannelOptions {
|
|
174
|
-
/** Channel ID/name */
|
|
175
|
-
channelId: string;
|
|
176
|
-
/** App ID */
|
|
177
|
-
appId: string;
|
|
178
|
-
/** Bundle version to link */
|
|
179
|
-
bundle?: string;
|
|
180
|
-
/** Channel state (default or normal) */
|
|
181
|
-
state?: string;
|
|
182
|
-
/** Allow downgrade */
|
|
183
|
-
downgrade?: boolean;
|
|
184
|
-
/** Enable for iOS */
|
|
185
|
-
ios?: boolean;
|
|
186
|
-
/** Enable for Android */
|
|
187
|
-
android?: boolean;
|
|
188
|
-
/** Allow device self-assignment */
|
|
189
|
-
selfAssign?: boolean;
|
|
190
|
-
/** Disable auto update strategy */
|
|
191
|
-
disableAutoUpdate?: string;
|
|
192
|
-
/** Enable for dev builds */
|
|
193
|
-
dev?: boolean;
|
|
194
|
-
/** Enable for emulators */
|
|
195
|
-
emulator?: boolean;
|
|
196
|
-
/** API key for authentication */
|
|
197
|
-
apikey?: string;
|
|
198
|
-
/** Custom Supabase host */
|
|
199
|
-
supaHost?: string;
|
|
200
|
-
/** Custom Supabase anon key */
|
|
201
|
-
supaAnon?: string;
|
|
202
|
-
}
|
|
203
|
-
export interface AccountIdOptions {
|
|
204
|
-
/** API key for authentication */
|
|
205
|
-
apikey?: string;
|
|
206
|
-
/** Custom Supabase host */
|
|
207
|
-
supaHost?: string;
|
|
208
|
-
/** Custom Supabase anon key */
|
|
209
|
-
supaAnon?: string;
|
|
210
|
-
}
|
|
211
|
-
export interface ListOrganizationsOptions extends AccountIdOptions {
|
|
212
|
-
}
|
|
213
|
-
export interface AddOrganizationOptions extends AccountIdOptions {
|
|
214
|
-
/** Organization name */
|
|
215
|
-
name: string;
|
|
216
|
-
/** Management email */
|
|
217
|
-
email: string;
|
|
218
|
-
}
|
|
219
|
-
export interface UpdateOrganizationOptions extends AccountIdOptions {
|
|
220
|
-
/** Organization ID */
|
|
221
|
-
orgId: string;
|
|
222
|
-
/** Updated name */
|
|
223
|
-
name?: string;
|
|
224
|
-
/** Updated management email */
|
|
225
|
-
email?: string;
|
|
226
|
-
}
|
|
227
|
-
export interface OrganizationInfo {
|
|
228
|
-
id: string;
|
|
229
|
-
name: string;
|
|
230
|
-
role?: string;
|
|
231
|
-
appCount?: number;
|
|
232
|
-
email?: string;
|
|
233
|
-
createdAt?: Date;
|
|
234
|
-
}
|
|
235
|
-
export interface DeleteOrganizationOptions extends AccountIdOptions {
|
|
236
|
-
autoConfirm?: boolean;
|
|
237
|
-
}
|
|
238
|
-
export interface LoginOptions {
|
|
239
|
-
apikey: string;
|
|
240
|
-
local?: boolean;
|
|
241
|
-
supaHost?: string;
|
|
242
|
-
supaAnon?: string;
|
|
243
|
-
}
|
|
244
|
-
export interface DoctorOptions {
|
|
245
|
-
packageJson?: string;
|
|
246
|
-
}
|
|
247
|
-
export interface BundleCompatibilityOptions {
|
|
248
|
-
appId: string;
|
|
249
|
-
channel: string;
|
|
250
|
-
packageJson?: string;
|
|
251
|
-
nodeModules?: string;
|
|
252
|
-
textOutput?: boolean;
|
|
253
|
-
apikey?: string;
|
|
254
|
-
supaHost?: string;
|
|
255
|
-
supaAnon?: string;
|
|
256
|
-
}
|
|
257
|
-
export interface EncryptBundleOptions {
|
|
258
|
-
zipPath: string;
|
|
259
|
-
checksum: string;
|
|
260
|
-
keyPath?: string;
|
|
261
|
-
keyData?: string;
|
|
262
|
-
json?: boolean;
|
|
263
|
-
}
|
|
264
|
-
export interface DecryptBundleOptions {
|
|
265
|
-
zipPath: string;
|
|
266
|
-
ivSessionKey: string;
|
|
267
|
-
keyPath?: string;
|
|
268
|
-
keyData?: string;
|
|
269
|
-
checksum?: string;
|
|
270
|
-
}
|
|
271
|
-
export interface ZipBundleOptions {
|
|
272
|
-
appId: string;
|
|
273
|
-
path: string;
|
|
274
|
-
bundle?: string;
|
|
275
|
-
name?: string;
|
|
276
|
-
codeCheck?: boolean;
|
|
277
|
-
json?: boolean;
|
|
278
|
-
keyV2?: boolean;
|
|
279
|
-
packageJson?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface RequestBuildOptions {
|
|
282
|
-
/** App ID (e.g., com.example.app) */
|
|
283
|
-
appId: string;
|
|
284
|
-
/** Path to project directory */
|
|
285
|
-
path?: string;
|
|
286
|
-
/** Fastlane lane - must be exactly "ios" or "android" */
|
|
287
|
-
lane: 'ios' | 'android';
|
|
288
|
-
/** Credentials for signing and publishing to stores (all credentials go here as environment variables) */
|
|
289
|
-
credentials?: BuildCredentials;
|
|
290
|
-
/** User ID for the build job (optional, will be auto-detected if not provided) */
|
|
291
|
-
userId?: string;
|
|
292
|
-
/** API key for authentication */
|
|
293
|
-
apikey?: string;
|
|
294
|
-
/** Custom Supabase host */
|
|
295
|
-
supaHost?: string;
|
|
296
|
-
/** Custom Supabase anon key */
|
|
297
|
-
supaAnon?: string;
|
|
298
|
-
}
|
|
299
|
-
export interface CurrentBundleOptions extends AccountIdOptions {
|
|
300
|
-
}
|
|
301
|
-
export interface SetSettingOptions {
|
|
302
|
-
apikey?: string;
|
|
303
|
-
bool?: string;
|
|
304
|
-
string?: string;
|
|
305
|
-
}
|
|
306
|
-
export interface StatsOrder {
|
|
307
|
-
key: string;
|
|
308
|
-
sortable?: 'asc' | 'desc';
|
|
309
|
-
}
|
|
310
|
-
export interface GetStatsOptions {
|
|
311
|
-
/** App ID */
|
|
312
|
-
appId: string;
|
|
313
|
-
/** Filter by specific device IDs */
|
|
314
|
-
deviceIds?: string[];
|
|
315
|
-
/** Search query */
|
|
316
|
-
search?: string;
|
|
317
|
-
/** Sort order */
|
|
318
|
-
order?: StatsOrder[];
|
|
319
|
-
/** Start date/time for range filter (ISO string) */
|
|
320
|
-
rangeStart?: string;
|
|
321
|
-
/** End date/time for range filter (ISO string) */
|
|
322
|
-
rangeEnd?: string;
|
|
323
|
-
/** Limit number of results */
|
|
324
|
-
limit?: number;
|
|
325
|
-
/** Get only stats after this timestamp (for polling) */
|
|
326
|
-
after?: string | null;
|
|
327
|
-
/** API key for authentication */
|
|
328
|
-
apikey?: string;
|
|
329
|
-
/** Custom Supabase host */
|
|
330
|
-
supaHost?: string;
|
|
331
|
-
/** Custom Supabase anon key */
|
|
332
|
-
supaAnon?: string;
|
|
333
|
-
}
|
|
334
|
-
export interface DeviceStats {
|
|
335
|
-
appId: string;
|
|
336
|
-
deviceId: string;
|
|
337
|
-
action: string;
|
|
338
|
-
versionId: number;
|
|
339
|
-
version?: number;
|
|
340
|
-
createdAt: string;
|
|
341
|
-
}
|
|
13
|
+
export type { UpdateProbeResult } from './app/updateProbe';
|
|
342
14
|
/**
|
|
343
15
|
* Capgo SDK for programmatic access to all CLI functionality.
|
|
344
16
|
* Use this class to integrate Capgo operations directly into your application.
|
|
@@ -437,6 +109,35 @@ export declare class CapgoSDK {
|
|
|
437
109
|
* Retrieve the account ID associated with the configured API key
|
|
438
110
|
*/
|
|
439
111
|
getAccountId(options?: AccountIdOptions): Promise<SDKResult<string>>;
|
|
112
|
+
/**
|
|
113
|
+
* Star the Capgo repository on GitHub
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* const result = await sdk.starRepo({ repository: 'Cap-go/capacitor-updater' })
|
|
118
|
+
* if (result.success) {
|
|
119
|
+
* console.log(`${result.data?.repository} starred`)
|
|
120
|
+
* }
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
starRepo(options?: StarRepoOptions): Promise<SDKResult<{
|
|
124
|
+
repository: string;
|
|
125
|
+
alreadyStarred: boolean;
|
|
126
|
+
}>>;
|
|
127
|
+
/**
|
|
128
|
+
* Star the Capgo-related repositories on GitHub
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* const result = await sdk.starAllRepositories()
|
|
133
|
+
* if (result.success) {
|
|
134
|
+
* for (const entry of result.data ?? []) {
|
|
135
|
+
* console.log(entry.repository, entry.status)
|
|
136
|
+
* }
|
|
137
|
+
* }
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
starAllRepositories(options?: StarAllRepositoriesOptions): Promise<SDKResult<StarAllRepositoryResult[]>>;
|
|
440
141
|
checkBundleCompatibility(options: BundleCompatibilityOptions): Promise<SDKResult<BundleCompatibilityEntry[]>>;
|
|
441
142
|
encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
442
143
|
decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
@@ -500,6 +201,12 @@ export declare class CapgoSDK {
|
|
|
500
201
|
/**
|
|
501
202
|
* Request a native build for your app with store publishing
|
|
502
203
|
*
|
|
204
|
+
* SECURITY GUARANTEE:
|
|
205
|
+
* Credentials provided to this method are NEVER stored on Capgo servers.
|
|
206
|
+
* They are used only during the build process and automatically deleted
|
|
207
|
+
* after completion (maximum 24 hours retention). Build outputs may optionally
|
|
208
|
+
* be uploaded for time-limited download links.
|
|
209
|
+
*
|
|
503
210
|
* @example
|
|
504
211
|
* ```typescript
|
|
505
212
|
* const result = await sdk.requestBuild({
|
|
@@ -508,7 +215,7 @@ export declare class CapgoSDK {
|
|
|
508
215
|
* lane: 'ios', // Must be exactly "ios" or "android"
|
|
509
216
|
* credentials: {
|
|
510
217
|
* BUILD_CERTIFICATE_BASE64: 'base64-cert...',
|
|
511
|
-
*
|
|
218
|
+
* CAPGO_IOS_PROVISIONING_MAP: '{"com.example.app":{"profile":"base64...","name":"match AppStore com.example.app"}}',
|
|
512
219
|
* P12_PASSWORD: 'cert-password',
|
|
513
220
|
* APPLE_KEY_ID: 'KEY123',
|
|
514
221
|
* APPLE_ISSUER_ID: 'issuer-uuid',
|
|
@@ -642,6 +349,7 @@ export declare class CapgoSDK {
|
|
|
642
349
|
*/
|
|
643
350
|
getStats(options: GetStatsOptions): Promise<SDKResult<DeviceStats[]>>;
|
|
644
351
|
setAppSetting(path: string, options: SetSettingOptions): Promise<SDKResult>;
|
|
352
|
+
probe(options: ProbeOptions): Promise<SDKResult<ProbeInternalResult>>;
|
|
645
353
|
}
|
|
646
354
|
/**
|
|
647
355
|
* Upload a bundle to Capgo Cloud (functional API)
|
|
@@ -663,6 +371,11 @@ export declare function checkBundleCompatibility(options: BundleCompatibilityOpt
|
|
|
663
371
|
export declare function encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
664
372
|
export declare function decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
665
373
|
export declare function zipBundle(options: ZipBundleOptions): Promise<SDKResult<ZipResult>>;
|
|
374
|
+
export declare function starRepo(options?: StarRepoOptions): Promise<SDKResult<{
|
|
375
|
+
repository: string;
|
|
376
|
+
alreadyStarred: boolean;
|
|
377
|
+
}>>;
|
|
378
|
+
export declare function starAllRepositories(options?: StarAllRepositoriesOptions): Promise<SDKResult<StarAllRepositoryResult[]>>;
|
|
666
379
|
export declare function generateEncryptionKeys(options?: GenerateKeyOptions): Promise<SDKResult>;
|
|
667
380
|
export declare function saveEncryptionKey(options?: SaveKeyOptions): Promise<SDKResult>;
|
|
668
381
|
export declare function deleteLegacyEncryptionKey(options?: DeleteOldKeyOptions): Promise<SDKResult<{
|
|
@@ -719,6 +432,11 @@ export declare function addChannel(options: AddChannelOptions): Promise<SDKResul
|
|
|
719
432
|
/**
|
|
720
433
|
* Request a native build for your app (functional API)
|
|
721
434
|
*
|
|
435
|
+
* SECURITY GUARANTEE:
|
|
436
|
+
* Credentials are NEVER stored on Capgo servers. They are used only during
|
|
437
|
+
* the build process and automatically deleted after completion.
|
|
438
|
+
* Build outputs may optionally be uploaded for time-limited download links.
|
|
439
|
+
*
|
|
722
440
|
* @example
|
|
723
441
|
* ```typescript
|
|
724
442
|
* const result = await requestBuild({
|
|
@@ -778,6 +496,7 @@ export declare function requestBuild(options: RequestBuildOptions): Promise<SDKR
|
|
|
778
496
|
* ```
|
|
779
497
|
*/
|
|
780
498
|
export declare function getStats(options: GetStatsOptions): Promise<SDKResult<DeviceStats[]>>;
|
|
499
|
+
export declare function probeUpdates(options: ProbeOptions): Promise<SDKResult<ProbeInternalResult>>;
|
|
781
500
|
/**
|
|
782
501
|
* Get Capacitor configuration
|
|
783
502
|
*
|
|
@@ -789,9 +508,22 @@ export declare function getStats(options: GetStatsOptions): Promise<SDKResult<De
|
|
|
789
508
|
* }
|
|
790
509
|
* ```
|
|
791
510
|
*/
|
|
792
|
-
export declare function getCapacitorConfig(): Promise<
|
|
511
|
+
export declare function getCapacitorConfig(): Promise<{
|
|
512
|
+
config: {
|
|
513
|
+
[x: string]: unknown;
|
|
514
|
+
appId: string;
|
|
515
|
+
appName: string;
|
|
516
|
+
webDir: string;
|
|
517
|
+
plugins?: Record<string, any> | undefined;
|
|
518
|
+
android?: Record<string, any> | undefined;
|
|
519
|
+
};
|
|
520
|
+
path: string;
|
|
521
|
+
} | null>;
|
|
793
522
|
export type { BuildCredentials } from './build/request';
|
|
794
523
|
export type { CapacitorConfig } from './config';
|
|
524
|
+
export type { ProbeInternalResult } from './probe';
|
|
525
|
+
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetStatsOptions, ListOrganizationsOptions, LoginOptions, OrganizationInfo, ProbeOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, StatsOrder, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBundleOptions, } from './schemas/sdk';
|
|
795
526
|
export type { Database } from './types/supabase.types';
|
|
796
527
|
export { createSupabaseClient } from './utils';
|
|
797
|
-
|
|
528
|
+
export { formatApiErrorForCli, getSecurityPolicyMessage, isSecurityPolicyError, parseSecurityPolicyError, SECURITY_POLICY_ERRORS, SECURITY_POLICY_MESSAGES, } from './utils/security_policy_errors';
|
|
529
|
+
export type { ParsedSecurityError, SecurityPolicyErrorCode } from './utils/security_policy_errors';
|