@capgo/cli 7.18.1 → 7.18.3
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 +238 -237
- package/dist/package.json +5 -5
- package/dist/src/api/app.d.ts +13 -0
- package/dist/src/api/app.d.ts.map +1 -0
- package/dist/src/api/app.js +45 -0
- package/dist/src/api/app.js.map +1 -0
- package/dist/src/api/channels.d.ts +4505 -0
- package/dist/src/api/channels.d.ts.map +1 -0
- package/dist/src/api/channels.js +167 -0
- package/dist/src/api/channels.js.map +1 -0
- package/dist/src/api/cryptoV2.d.ts +16 -0
- package/dist/src/api/cryptoV2.d.ts.map +1 -0
- package/dist/src/api/cryptoV2.js +102 -0
- package/dist/src/api/cryptoV2.js.map +1 -0
- package/dist/src/api/update.d.ts +2 -0
- package/dist/src/api/update.d.ts.map +1 -0
- package/dist/src/api/update.js +14 -0
- package/dist/src/api/update.js.map +1 -0
- package/dist/src/api/versions.d.ts +56 -0
- package/dist/src/api/versions.d.ts.map +1 -0
- package/dist/src/api/versions.js +92 -0
- package/dist/src/api/versions.js.map +1 -0
- package/dist/src/app/add.d.ts +18 -0
- package/dist/src/app/add.d.ts.map +1 -0
- package/dist/src/app/add.js +150 -0
- package/dist/src/app/add.js.map +1 -0
- package/dist/src/app/debug.d.ts +33 -0
- package/dist/src/app/debug.d.ts.map +1 -0
- package/dist/src/app/debug.js +222 -0
- package/dist/src/app/debug.js.map +1 -0
- package/dist/src/app/delete.d.ts +3 -0
- package/dist/src/app/delete.d.ts.map +1 -0
- package/dist/src/app/delete.js +89 -0
- package/dist/src/app/delete.js.map +1 -0
- package/dist/src/app/info.d.ts +13 -0
- package/dist/src/app/info.d.ts.map +1 -0
- package/dist/src/app/info.js +84 -0
- package/dist/src/app/info.js.map +1 -0
- package/dist/src/app/list.d.ts +16 -0
- package/dist/src/app/list.d.ts.map +1 -0
- package/dist/src/app/list.js +48 -0
- package/dist/src/app/list.js.map +1 -0
- package/dist/src/app/set.d.ts +3 -0
- package/dist/src/app/set.d.ts.map +1 -0
- package/dist/src/app/set.js +96 -0
- package/dist/src/app/set.js.map +1 -0
- package/dist/src/app/setting.d.ts +8 -0
- package/dist/src/app/setting.d.ts.map +1 -0
- package/dist/src/app/setting.js +50 -0
- package/dist/src/app/setting.js.map +1 -0
- package/dist/src/bundle/check.d.ts +3 -0
- package/dist/src/bundle/check.d.ts.map +1 -0
- package/dist/src/bundle/check.js +30 -0
- package/dist/src/bundle/check.js.map +1 -0
- package/dist/src/bundle/cleanup.d.ts +14 -0
- package/dist/src/bundle/cleanup.d.ts.map +1 -0
- package/dist/src/bundle/cleanup.js +105 -0
- package/dist/src/bundle/cleanup.js.map +1 -0
- package/dist/src/bundle/compatibility.d.ts +15 -0
- package/dist/src/bundle/compatibility.d.ts.map +1 -0
- package/dist/src/bundle/compatibility.js +62 -0
- package/dist/src/bundle/compatibility.js.map +1 -0
- package/dist/src/bundle/decryptV2.d.ts +13 -0
- package/dist/src/bundle/decryptV2.d.ts.map +1 -0
- package/dist/src/bundle/decryptV2.js +76 -0
- package/dist/src/bundle/decryptV2.js.map +1 -0
- package/dist/src/bundle/delete.d.ts +7 -0
- package/dist/src/bundle/delete.d.ts.map +1 -0
- package/dist/src/bundle/delete.js +40 -0
- package/dist/src/bundle/delete.js.map +1 -0
- package/dist/src/bundle/encryptV2.d.ts +14 -0
- package/dist/src/bundle/encryptV2.d.ts.map +1 -0
- package/dist/src/bundle/encryptV2.js +108 -0
- package/dist/src/bundle/encryptV2.js.map +1 -0
- package/dist/src/bundle/list.d.ts +22 -0
- package/dist/src/bundle/list.d.ts.map +1 -0
- package/dist/src/bundle/list.js +36 -0
- package/dist/src/bundle/list.js.map +1 -0
- package/dist/src/bundle/partial.d.ts +14 -0
- package/dist/src/bundle/partial.d.ts.map +1 -0
- package/dist/src/bundle/partial.js +332 -0
- package/dist/src/bundle/partial.js.map +1 -0
- package/dist/src/bundle/unlink.d.ts +9 -0
- package/dist/src/bundle/unlink.d.ts.map +1 -0
- package/dist/src/bundle/unlink.js +70 -0
- package/dist/src/bundle/unlink.js.map +1 -0
- package/dist/src/bundle/upload.d.ts +19 -0
- package/dist/src/bundle/upload.d.ts.map +1 -0
- package/dist/src/bundle/upload.js +700 -0
- package/dist/src/bundle/upload.js.map +1 -0
- package/dist/src/bundle/upload_interface.d.ts +49 -0
- package/dist/src/bundle/upload_interface.d.ts.map +1 -0
- package/dist/src/bundle/upload_interface.js +2 -0
- package/dist/src/bundle/upload_interface.js.map +1 -0
- package/dist/src/bundle/zip.d.ts +19 -0
- package/dist/src/bundle/zip.d.ts.map +1 -0
- package/dist/src/bundle/zip.js +148 -0
- package/dist/src/bundle/zip.js.map +1 -0
- package/dist/src/channel/add.d.ts +26 -0
- package/dist/src/channel/add.d.ts.map +1 -0
- package/dist/src/channel/add.js +68 -0
- package/dist/src/channel/add.js.map +1 -0
- package/dist/src/channel/currentBundle.d.ts +8 -0
- package/dist/src/channel/currentBundle.d.ts.map +1 -0
- package/dist/src/channel/currentBundle.js +54 -0
- package/dist/src/channel/currentBundle.js.map +1 -0
- package/dist/src/channel/delete.d.ts +8 -0
- package/dist/src/channel/delete.d.ts.map +1 -0
- package/dist/src/channel/delete.js +77 -0
- package/dist/src/channel/delete.js.map +1 -0
- package/dist/src/channel/list.d.ts +3 -0
- package/dist/src/channel/list.d.ts.map +1 -0
- package/dist/src/channel/list.js +45 -0
- package/dist/src/channel/list.js.map +1 -0
- package/dist/src/channel/set.d.ts +18 -0
- package/dist/src/channel/set.d.ts.map +1 -0
- package/dist/src/channel/set.js +220 -0
- package/dist/src/channel/set.js.map +1 -0
- package/dist/src/config/index.d.ts +16 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +31 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/docs.d.ts +2 -0
- package/dist/src/docs.d.ts.map +1 -0
- package/dist/src/docs.js +280 -0
- package/dist/src/docs.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +504 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/init.d.ts +7 -0
- package/dist/src/init.d.ts.map +1 -0
- package/dist/src/init.js +797 -0
- package/dist/src/init.js.map +1 -0
- package/dist/src/keyV2.d.ts +20 -0
- package/dist/src/keyV2.d.ts.map +1 -0
- package/dist/src/keyV2.js +163 -0
- package/dist/src/keyV2.js.map +1 -0
- package/dist/src/login.d.ts +10 -0
- package/dist/src/login.d.ts.map +1 -0
- package/dist/src/login.js +51 -0
- package/dist/src/login.js.map +1 -0
- package/dist/src/organisation/add.d.ts +18 -0
- package/dist/src/organisation/add.d.ts.map +1 -0
- package/dist/src/organisation/add.js +82 -0
- package/dist/src/organisation/add.js.map +1 -0
- package/dist/src/organisation/delete.d.ts +8 -0
- package/dist/src/organisation/delete.d.ts.map +1 -0
- package/dist/src/organisation/delete.js +91 -0
- package/dist/src/organisation/delete.js.map +1 -0
- package/dist/src/organisation/index.d.ts +5 -0
- package/dist/src/organisation/index.d.ts.map +1 -0
- package/dist/src/organisation/index.js +5 -0
- package/dist/src/organisation/index.js.map +1 -0
- package/dist/src/organisation/list.d.ts +19 -0
- package/dist/src/organisation/list.d.ts.map +1 -0
- package/dist/src/organisation/list.js +60 -0
- package/dist/src/organisation/list.js.map +1 -0
- package/dist/src/organisation/set.d.ts +13 -0
- package/dist/src/organisation/set.d.ts.map +1 -0
- package/dist/src/organisation/set.js +95 -0
- package/dist/src/organisation/set.js.map +1 -0
- package/dist/src/sdk.d.ts +605 -0
- package/dist/src/sdk.d.ts.map +1 -0
- package/dist/src/sdk.js +441 -0
- package/dist/src/sdk.js.map +1 -0
- package/dist/src/types/supabase.types.d.ts +2305 -0
- package/dist/src/types/supabase.types.d.ts.map +1 -0
- package/dist/src/types/supabase.types.js +86 -0
- package/dist/src/types/supabase.types.js.map +1 -0
- package/dist/src/user/account.d.ts +4 -0
- package/dist/src/user/account.d.ts.map +1 -0
- package/dist/src/user/account.js +31 -0
- package/dist/src/user/account.js.map +1 -0
- package/dist/src/utils.d.ts +2426 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +1184 -0
- package/dist/src/utils.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
import type { Channel } from './api/channels';
|
|
2
|
+
import type { DecryptResult } from './bundle/decryptV2';
|
|
3
|
+
import type { EncryptResult } from './bundle/encryptV2';
|
|
4
|
+
import type { UploadBundleResult } from './bundle/upload';
|
|
5
|
+
import type { ZipResult } from './bundle/zip';
|
|
6
|
+
import { getInfo as doctorInternal } from './app/info';
|
|
7
|
+
import { checkCompatibilityCommandInternal } from './bundle/compatibility';
|
|
8
|
+
export type DoctorInfo = Awaited<ReturnType<typeof doctorInternal>>;
|
|
9
|
+
type CompatibilityReport = Awaited<ReturnType<typeof checkCompatibilityCommandInternal>>['finalCompatibility'];
|
|
10
|
+
export type BundleCompatibilityEntry = CompatibilityReport[number];
|
|
11
|
+
/** Common result wrapper for all SDK operations */
|
|
12
|
+
export interface SDKResult<T = void> {
|
|
13
|
+
success: boolean;
|
|
14
|
+
data?: T;
|
|
15
|
+
error?: string;
|
|
16
|
+
warnings?: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface AddAppOptions {
|
|
19
|
+
/** App ID (e.g., com.example.app) */
|
|
20
|
+
appId: string;
|
|
21
|
+
/** App name for display in Capgo Cloud */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** App icon path for display in Capgo Cloud */
|
|
24
|
+
icon?: string;
|
|
25
|
+
/** API key for authentication */
|
|
26
|
+
apikey?: string;
|
|
27
|
+
/** Custom Supabase host */
|
|
28
|
+
supaHost?: string;
|
|
29
|
+
/** Custom Supabase anon key */
|
|
30
|
+
supaAnon?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UpdateAppOptions {
|
|
33
|
+
/** App ID (e.g., com.example.app) */
|
|
34
|
+
appId: string;
|
|
35
|
+
/** Updated app name */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** Updated app icon path */
|
|
38
|
+
icon?: string;
|
|
39
|
+
/** Days to keep old bundles (0 = infinite) */
|
|
40
|
+
retention?: number;
|
|
41
|
+
/** API key for authentication */
|
|
42
|
+
apikey?: string;
|
|
43
|
+
/** Custom Supabase host */
|
|
44
|
+
supaHost?: string;
|
|
45
|
+
/** Custom Supabase anon key */
|
|
46
|
+
supaAnon?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface AppInfo {
|
|
49
|
+
appId: string;
|
|
50
|
+
name: string;
|
|
51
|
+
iconUrl?: string;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
}
|
|
54
|
+
export interface UploadOptions {
|
|
55
|
+
/** App ID (e.g., com.example.app) */
|
|
56
|
+
appId: string;
|
|
57
|
+
/** Path to build folder */
|
|
58
|
+
path: string;
|
|
59
|
+
/** Bundle version */
|
|
60
|
+
bundle?: string;
|
|
61
|
+
/** Channel name */
|
|
62
|
+
channel?: string;
|
|
63
|
+
/** API key for authentication */
|
|
64
|
+
apikey?: string;
|
|
65
|
+
/** External URL instead of upload */
|
|
66
|
+
external?: string;
|
|
67
|
+
/** Enable encryption */
|
|
68
|
+
encrypt?: boolean;
|
|
69
|
+
/** Private key for encryption */
|
|
70
|
+
encryptionKey?: string;
|
|
71
|
+
/** Custom Supabase host */
|
|
72
|
+
supaHost?: string;
|
|
73
|
+
/** Custom Supabase anon key */
|
|
74
|
+
supaAnon?: string;
|
|
75
|
+
/** Timeout in seconds */
|
|
76
|
+
timeout?: number;
|
|
77
|
+
/** Use TUS protocol for upload */
|
|
78
|
+
useTus?: boolean;
|
|
79
|
+
/** Comment for this version */
|
|
80
|
+
comment?: string;
|
|
81
|
+
/** Minimum update version required */
|
|
82
|
+
minUpdateVersion?: string;
|
|
83
|
+
/** Automatically set min-update-version when compatibility fails */
|
|
84
|
+
autoMinUpdateVersion?: boolean;
|
|
85
|
+
/** Allow self-assignment to channel */
|
|
86
|
+
selfAssign?: boolean;
|
|
87
|
+
/** Package.json paths for monorepos */
|
|
88
|
+
packageJsonPaths?: string;
|
|
89
|
+
/** Ignore compatibility checks */
|
|
90
|
+
ignoreCompatibilityCheck?: boolean;
|
|
91
|
+
/** Disable code check for notifyAppReady() */
|
|
92
|
+
disableCodeCheck?: boolean;
|
|
93
|
+
/** Use legacy zip upload instead of TUS */
|
|
94
|
+
useZip?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface UploadResult {
|
|
97
|
+
success: boolean;
|
|
98
|
+
bundleId?: string;
|
|
99
|
+
bundleUrl?: string;
|
|
100
|
+
checksum?: string | null;
|
|
101
|
+
encryptionMethod?: UploadBundleResult['encryptionMethod'];
|
|
102
|
+
sessionKey?: string;
|
|
103
|
+
ivSessionKey?: string | null;
|
|
104
|
+
storageProvider?: string;
|
|
105
|
+
skipped?: boolean;
|
|
106
|
+
reason?: string;
|
|
107
|
+
error?: string;
|
|
108
|
+
warnings?: string[];
|
|
109
|
+
}
|
|
110
|
+
export interface BundleInfo {
|
|
111
|
+
id: string;
|
|
112
|
+
version: string;
|
|
113
|
+
channel?: string;
|
|
114
|
+
uploadedAt: Date;
|
|
115
|
+
size: number;
|
|
116
|
+
encrypted: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface CleanupOptions {
|
|
119
|
+
/** App ID */
|
|
120
|
+
appId: string;
|
|
121
|
+
/** Number of versions to keep */
|
|
122
|
+
keep?: number;
|
|
123
|
+
/** Bundle version pattern */
|
|
124
|
+
bundle?: string;
|
|
125
|
+
/** Force removal without confirmation */
|
|
126
|
+
force?: boolean;
|
|
127
|
+
/** Delete bundles even if linked to channels */
|
|
128
|
+
ignoreChannel?: boolean;
|
|
129
|
+
/** API key for authentication */
|
|
130
|
+
apikey?: string;
|
|
131
|
+
/** Custom Supabase host */
|
|
132
|
+
supaHost?: string;
|
|
133
|
+
/** Custom Supabase anon key */
|
|
134
|
+
supaAnon?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface GenerateKeyOptions {
|
|
137
|
+
/** Overwrite existing keys if they already exist */
|
|
138
|
+
force?: boolean;
|
|
139
|
+
/** Automatically configure the default encryption channel instead of prompting */
|
|
140
|
+
setupChannel?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface SaveKeyOptions {
|
|
143
|
+
/** Path to the public key file (.pub) */
|
|
144
|
+
keyPath?: string;
|
|
145
|
+
/** Public key contents as string (used if keyPath not provided) */
|
|
146
|
+
keyData?: string;
|
|
147
|
+
/** Automatically configure the default encryption channel instead of prompting */
|
|
148
|
+
setupChannel?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export interface DeleteOldKeyOptions {
|
|
151
|
+
/** Force deletion if legacy files are present */
|
|
152
|
+
force?: boolean;
|
|
153
|
+
/** Automatically configure the default encryption channel instead of prompting */
|
|
154
|
+
setupChannel?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export interface AddChannelOptions {
|
|
157
|
+
/** Channel ID/name */
|
|
158
|
+
channelId: string;
|
|
159
|
+
/** App ID */
|
|
160
|
+
appId: string;
|
|
161
|
+
/** Set as default channel */
|
|
162
|
+
default?: boolean;
|
|
163
|
+
/** Allow device self-assignment */
|
|
164
|
+
selfAssign?: boolean;
|
|
165
|
+
/** API key for authentication */
|
|
166
|
+
apikey?: string;
|
|
167
|
+
/** Custom Supabase host */
|
|
168
|
+
supaHost?: string;
|
|
169
|
+
/** Custom Supabase anon key */
|
|
170
|
+
supaAnon?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface UpdateChannelOptions {
|
|
173
|
+
/** Channel ID/name */
|
|
174
|
+
channelId: string;
|
|
175
|
+
/** App ID */
|
|
176
|
+
appId: string;
|
|
177
|
+
/** Bundle version to link */
|
|
178
|
+
bundle?: string;
|
|
179
|
+
/** Channel state (default or normal) */
|
|
180
|
+
state?: string;
|
|
181
|
+
/** Allow downgrade */
|
|
182
|
+
downgrade?: boolean;
|
|
183
|
+
/** Enable for iOS */
|
|
184
|
+
ios?: boolean;
|
|
185
|
+
/** Enable for Android */
|
|
186
|
+
android?: boolean;
|
|
187
|
+
/** Allow device self-assignment */
|
|
188
|
+
selfAssign?: boolean;
|
|
189
|
+
/** Disable auto update strategy */
|
|
190
|
+
disableAutoUpdate?: string;
|
|
191
|
+
/** Enable for dev builds */
|
|
192
|
+
dev?: boolean;
|
|
193
|
+
/** Enable for emulators */
|
|
194
|
+
emulator?: boolean;
|
|
195
|
+
/** API key for authentication */
|
|
196
|
+
apikey?: string;
|
|
197
|
+
/** Custom Supabase host */
|
|
198
|
+
supaHost?: string;
|
|
199
|
+
/** Custom Supabase anon key */
|
|
200
|
+
supaAnon?: string;
|
|
201
|
+
}
|
|
202
|
+
export interface AccountIdOptions {
|
|
203
|
+
/** API key for authentication */
|
|
204
|
+
apikey?: string;
|
|
205
|
+
/** Custom Supabase host */
|
|
206
|
+
supaHost?: string;
|
|
207
|
+
/** Custom Supabase anon key */
|
|
208
|
+
supaAnon?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface ListOrganizationsOptions extends AccountIdOptions {
|
|
211
|
+
}
|
|
212
|
+
export interface AddOrganizationOptions extends AccountIdOptions {
|
|
213
|
+
/** Organization name */
|
|
214
|
+
name: string;
|
|
215
|
+
/** Management email */
|
|
216
|
+
email: string;
|
|
217
|
+
}
|
|
218
|
+
export interface UpdateOrganizationOptions extends AccountIdOptions {
|
|
219
|
+
/** Organization ID */
|
|
220
|
+
orgId: string;
|
|
221
|
+
/** Updated name */
|
|
222
|
+
name?: string;
|
|
223
|
+
/** Updated management email */
|
|
224
|
+
email?: string;
|
|
225
|
+
}
|
|
226
|
+
export interface OrganizationInfo {
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
role?: string;
|
|
230
|
+
appCount?: number;
|
|
231
|
+
email?: string;
|
|
232
|
+
createdAt?: Date;
|
|
233
|
+
}
|
|
234
|
+
export interface DeleteOrganizationOptions extends AccountIdOptions {
|
|
235
|
+
autoConfirm?: boolean;
|
|
236
|
+
}
|
|
237
|
+
export interface LoginOptions {
|
|
238
|
+
apikey: string;
|
|
239
|
+
local?: boolean;
|
|
240
|
+
supaHost?: string;
|
|
241
|
+
supaAnon?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface DoctorOptions {
|
|
244
|
+
packageJson?: string;
|
|
245
|
+
}
|
|
246
|
+
export interface BundleCompatibilityOptions {
|
|
247
|
+
appId: string;
|
|
248
|
+
channel: string;
|
|
249
|
+
packageJson?: string;
|
|
250
|
+
nodeModules?: string;
|
|
251
|
+
textOutput?: boolean;
|
|
252
|
+
apikey?: string;
|
|
253
|
+
supaHost?: string;
|
|
254
|
+
supaAnon?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface EncryptBundleOptions {
|
|
257
|
+
zipPath: string;
|
|
258
|
+
checksum: string;
|
|
259
|
+
keyPath?: string;
|
|
260
|
+
keyData?: string;
|
|
261
|
+
json?: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface DecryptBundleOptions {
|
|
264
|
+
zipPath: string;
|
|
265
|
+
ivSessionKey: string;
|
|
266
|
+
keyPath?: string;
|
|
267
|
+
keyData?: string;
|
|
268
|
+
checksum?: string;
|
|
269
|
+
}
|
|
270
|
+
export interface ZipBundleOptions {
|
|
271
|
+
appId: string;
|
|
272
|
+
path: string;
|
|
273
|
+
bundle?: string;
|
|
274
|
+
name?: string;
|
|
275
|
+
codeCheck?: boolean;
|
|
276
|
+
json?: boolean;
|
|
277
|
+
keyV2?: boolean;
|
|
278
|
+
packageJson?: string;
|
|
279
|
+
}
|
|
280
|
+
export interface CurrentBundleOptions extends AccountIdOptions {
|
|
281
|
+
}
|
|
282
|
+
export interface SetSettingOptions {
|
|
283
|
+
apikey?: string;
|
|
284
|
+
bool?: string;
|
|
285
|
+
string?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Capgo SDK for programmatic access to all CLI functionality.
|
|
289
|
+
* Use this class to integrate Capgo operations directly into your application.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```typescript
|
|
293
|
+
* // Initialize SDK
|
|
294
|
+
* const sdk = new CapgoSDK({ apikey: 'your-api-key' })
|
|
295
|
+
*
|
|
296
|
+
* // Upload a bundle
|
|
297
|
+
* const result = await sdk.uploadBundle({
|
|
298
|
+
* appId: 'com.example.app',
|
|
299
|
+
* path: './dist',
|
|
300
|
+
* bundle: '1.0.0',
|
|
301
|
+
* channel: 'production'
|
|
302
|
+
* })
|
|
303
|
+
*
|
|
304
|
+
* if (result.success) {
|
|
305
|
+
* console.log('Upload successful!')
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
export declare class CapgoSDK {
|
|
310
|
+
private readonly apikey?;
|
|
311
|
+
private readonly supaHost?;
|
|
312
|
+
private readonly supaAnon?;
|
|
313
|
+
constructor(options?: {
|
|
314
|
+
apikey?: string;
|
|
315
|
+
supaHost?: string;
|
|
316
|
+
supaAnon?: string;
|
|
317
|
+
});
|
|
318
|
+
/**
|
|
319
|
+
* Save an API key locally or in the home directory
|
|
320
|
+
*/
|
|
321
|
+
login(options: LoginOptions): Promise<SDKResult>;
|
|
322
|
+
/**
|
|
323
|
+
* Run Capgo Doctor diagnostics and return the report
|
|
324
|
+
*/
|
|
325
|
+
doctor(options?: DoctorOptions): Promise<SDKResult<DoctorInfo>>;
|
|
326
|
+
/**
|
|
327
|
+
* Add a new app to Capgo Cloud
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ```typescript
|
|
331
|
+
* const result = await sdk.addApp({
|
|
332
|
+
* appId: 'com.example.app',
|
|
333
|
+
* name: 'My App',
|
|
334
|
+
* icon: './icon.png'
|
|
335
|
+
* })
|
|
336
|
+
* ```
|
|
337
|
+
*/
|
|
338
|
+
addApp(options: AddAppOptions): Promise<SDKResult>;
|
|
339
|
+
/**
|
|
340
|
+
* Update an existing app in Capgo Cloud
|
|
341
|
+
*
|
|
342
|
+
* Note: This method requires CLI function refactoring to work without exit().
|
|
343
|
+
* Currently it will throw an error.
|
|
344
|
+
*
|
|
345
|
+
* @example
|
|
346
|
+
* ```typescript
|
|
347
|
+
* const result = await sdk.updateApp({
|
|
348
|
+
* appId: 'com.example.app',
|
|
349
|
+
* name: 'Updated App Name',
|
|
350
|
+
* retention: 30
|
|
351
|
+
* })
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
updateApp(options: UpdateAppOptions): Promise<SDKResult>;
|
|
355
|
+
/**
|
|
356
|
+
* Delete an app from Capgo Cloud
|
|
357
|
+
*
|
|
358
|
+
* @param appId - The app ID to delete
|
|
359
|
+
* @param skipConfirmation - Skip owner confirmation check (use with caution)
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* ```typescript
|
|
363
|
+
* const result = await sdk.deleteApp('com.example.app')
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
deleteApp(appId: string, skipConfirmation?: boolean): Promise<SDKResult>;
|
|
367
|
+
/**
|
|
368
|
+
* List all apps for the authenticated account
|
|
369
|
+
*
|
|
370
|
+
* @example
|
|
371
|
+
* ```typescript
|
|
372
|
+
* const result = await sdk.listApps()
|
|
373
|
+
* if (result.success) {
|
|
374
|
+
* result.data?.forEach(app => {
|
|
375
|
+
* console.log(`${app.name} (${app.appId})`)
|
|
376
|
+
* })
|
|
377
|
+
* }
|
|
378
|
+
* ```
|
|
379
|
+
*/
|
|
380
|
+
listApps(): Promise<SDKResult<AppInfo[]>>;
|
|
381
|
+
/**
|
|
382
|
+
* Retrieve the account ID associated with the configured API key
|
|
383
|
+
*/
|
|
384
|
+
getAccountId(options?: AccountIdOptions): Promise<SDKResult<string>>;
|
|
385
|
+
checkBundleCompatibility(options: BundleCompatibilityOptions): Promise<SDKResult<BundleCompatibilityEntry[]>>;
|
|
386
|
+
encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
387
|
+
decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
388
|
+
zipBundle(options: ZipBundleOptions): Promise<SDKResult<ZipResult>>;
|
|
389
|
+
/**
|
|
390
|
+
* Upload a bundle to Capgo Cloud
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* ```typescript
|
|
394
|
+
* const result = await sdk.uploadBundle({
|
|
395
|
+
* appId: 'com.example.app',
|
|
396
|
+
* path: './dist',
|
|
397
|
+
* bundle: '1.0.0',
|
|
398
|
+
* channel: 'production',
|
|
399
|
+
* comment: 'New features added'
|
|
400
|
+
* })
|
|
401
|
+
* ```
|
|
402
|
+
*/
|
|
403
|
+
uploadBundle(options: UploadOptions): Promise<UploadResult>;
|
|
404
|
+
/**
|
|
405
|
+
* List bundles for an app
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* ```typescript
|
|
409
|
+
* const result = await sdk.listBundles('com.example.app')
|
|
410
|
+
* if (result.success) {
|
|
411
|
+
* result.data?.forEach(bundle => {
|
|
412
|
+
* console.log(`${bundle.version} - ${bundle.uploadedAt}`)
|
|
413
|
+
* })
|
|
414
|
+
* }
|
|
415
|
+
* ```
|
|
416
|
+
*/
|
|
417
|
+
listBundles(appId: string): Promise<SDKResult<BundleInfo[]>>;
|
|
418
|
+
/**
|
|
419
|
+
* Delete a specific bundle
|
|
420
|
+
*
|
|
421
|
+
* Note: This method requires CLI function refactoring to work without exit().
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* ```typescript
|
|
425
|
+
* const result = await sdk.deleteBundle('com.example.app', '1.0.0')
|
|
426
|
+
* ```
|
|
427
|
+
*/
|
|
428
|
+
deleteBundle(appId: string, bundleId: string): Promise<SDKResult>;
|
|
429
|
+
/**
|
|
430
|
+
* Cleanup old bundles, keeping only recent versions
|
|
431
|
+
*
|
|
432
|
+
* @example
|
|
433
|
+
* ```typescript
|
|
434
|
+
* const result = await sdk.cleanupBundles({
|
|
435
|
+
* appId: 'com.example.app',
|
|
436
|
+
* keep: 5,
|
|
437
|
+
* force: true
|
|
438
|
+
* })
|
|
439
|
+
* ```
|
|
440
|
+
*/
|
|
441
|
+
cleanupBundles(options: CleanupOptions): Promise<SDKResult<{
|
|
442
|
+
removed: number;
|
|
443
|
+
kept: number;
|
|
444
|
+
}>>;
|
|
445
|
+
getCurrentBundle(appId: string, channelId: string, options?: CurrentBundleOptions): Promise<SDKResult<string>>;
|
|
446
|
+
/**
|
|
447
|
+
* Create a new channel for app distribution
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* ```typescript
|
|
451
|
+
* const result = await sdk.addChannel({
|
|
452
|
+
* channelId: 'production',
|
|
453
|
+
* appId: 'com.example.app',
|
|
454
|
+
* default: true
|
|
455
|
+
* })
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
458
|
+
addChannel(options: AddChannelOptions): Promise<SDKResult>;
|
|
459
|
+
/**
|
|
460
|
+
* Update channel settings
|
|
461
|
+
*
|
|
462
|
+
* @example
|
|
463
|
+
* ```typescript
|
|
464
|
+
* const result = await sdk.updateChannel({
|
|
465
|
+
* channelId: 'production',
|
|
466
|
+
* appId: 'com.example.app',
|
|
467
|
+
* bundle: '1.0.0'
|
|
468
|
+
* })
|
|
469
|
+
* ```
|
|
470
|
+
*/
|
|
471
|
+
updateChannel(options: UpdateChannelOptions): Promise<SDKResult>;
|
|
472
|
+
/**
|
|
473
|
+
* Delete a channel
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* ```typescript
|
|
477
|
+
* const result = await sdk.deleteChannel('staging', 'com.example.app')
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
deleteChannel(channelId: string, appId: string, deleteBundle?: boolean): Promise<SDKResult>;
|
|
481
|
+
/**
|
|
482
|
+
* List all channels for an app
|
|
483
|
+
*
|
|
484
|
+
* @example
|
|
485
|
+
* ```typescript
|
|
486
|
+
* const result = await sdk.listChannels('com.example.app')
|
|
487
|
+
* if (result.success) {
|
|
488
|
+
* result.data?.forEach(channel => {
|
|
489
|
+
* console.log(`${channel.name} - ${channel.isDefault ? 'default' : 'normal'}`)
|
|
490
|
+
* })
|
|
491
|
+
* }
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
494
|
+
listChannels(appId: string): Promise<SDKResult<Channel[]>>;
|
|
495
|
+
/**
|
|
496
|
+
* Generate Capgo encryption keys (private/public pair)
|
|
497
|
+
*/
|
|
498
|
+
generateEncryptionKeys(options?: GenerateKeyOptions): Promise<SDKResult>;
|
|
499
|
+
/**
|
|
500
|
+
* Save a public encryption key into the Capacitor config
|
|
501
|
+
*/
|
|
502
|
+
saveEncryptionKey(options?: SaveKeyOptions): Promise<SDKResult>;
|
|
503
|
+
/**
|
|
504
|
+
* Delete legacy (v1) encryption keys from the project
|
|
505
|
+
*/
|
|
506
|
+
deleteLegacyEncryptionKey(options?: DeleteOldKeyOptions): Promise<SDKResult<{
|
|
507
|
+
deleted: boolean;
|
|
508
|
+
}>>;
|
|
509
|
+
listOrganizations(options?: ListOrganizationsOptions): Promise<SDKResult<OrganizationInfo[]>>;
|
|
510
|
+
addOrganization(options: AddOrganizationOptions): Promise<SDKResult<OrganizationInfo>>;
|
|
511
|
+
updateOrganization(options: UpdateOrganizationOptions): Promise<SDKResult<OrganizationInfo>>;
|
|
512
|
+
deleteOrganization(orgId: string, options?: DeleteOrganizationOptions): Promise<SDKResult<{
|
|
513
|
+
deleted: boolean;
|
|
514
|
+
}>>;
|
|
515
|
+
setAppSetting(path: string, options: SetSettingOptions): Promise<SDKResult>;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Upload a bundle to Capgo Cloud (functional API)
|
|
519
|
+
*
|
|
520
|
+
* @example
|
|
521
|
+
* ```typescript
|
|
522
|
+
* const result = await uploadBundle({
|
|
523
|
+
* appId: 'com.example.app',
|
|
524
|
+
* path: './dist',
|
|
525
|
+
* bundle: '1.0.0',
|
|
526
|
+
* apikey: 'your-api-key'
|
|
527
|
+
* })
|
|
528
|
+
* ```
|
|
529
|
+
*/
|
|
530
|
+
export declare function uploadBundle(options: UploadOptions): Promise<UploadResult>;
|
|
531
|
+
export declare function login(options: LoginOptions): Promise<SDKResult>;
|
|
532
|
+
export declare function doctor(options?: DoctorOptions): Promise<SDKResult<DoctorInfo>>;
|
|
533
|
+
export declare function checkBundleCompatibility(options: BundleCompatibilityOptions): Promise<SDKResult<BundleCompatibilityEntry[]>>;
|
|
534
|
+
export declare function encryptBundle(options: EncryptBundleOptions): Promise<SDKResult<EncryptResult>>;
|
|
535
|
+
export declare function decryptBundle(options: DecryptBundleOptions): Promise<SDKResult<DecryptResult>>;
|
|
536
|
+
export declare function zipBundle(options: ZipBundleOptions): Promise<SDKResult<ZipResult>>;
|
|
537
|
+
export declare function generateEncryptionKeys(options?: GenerateKeyOptions): Promise<SDKResult>;
|
|
538
|
+
export declare function saveEncryptionKey(options?: SaveKeyOptions): Promise<SDKResult>;
|
|
539
|
+
export declare function deleteLegacyEncryptionKey(options?: DeleteOldKeyOptions): Promise<SDKResult<{
|
|
540
|
+
deleted: boolean;
|
|
541
|
+
}>>;
|
|
542
|
+
export declare function getCurrentBundle(appId: string, channelId: string, options?: CurrentBundleOptions): Promise<SDKResult<string>>;
|
|
543
|
+
export declare function updateAppSetting(path: string, options: SetSettingOptions): Promise<SDKResult>;
|
|
544
|
+
export declare function getAccountId(options?: AccountIdOptions): Promise<SDKResult<string>>;
|
|
545
|
+
export declare function listOrganizations(options?: ListOrganizationsOptions): Promise<SDKResult<OrganizationInfo[]>>;
|
|
546
|
+
export declare function addOrganization(options: AddOrganizationOptions): Promise<SDKResult<OrganizationInfo>>;
|
|
547
|
+
export declare function updateOrganization(options: UpdateOrganizationOptions): Promise<SDKResult<OrganizationInfo>>;
|
|
548
|
+
export declare function deleteOrganization(orgId: string, options?: DeleteOrganizationOptions): Promise<SDKResult<{
|
|
549
|
+
deleted: boolean;
|
|
550
|
+
}>>;
|
|
551
|
+
/**
|
|
552
|
+
* Add a new app to Capgo Cloud (functional API)
|
|
553
|
+
*
|
|
554
|
+
* @example
|
|
555
|
+
* ```typescript
|
|
556
|
+
* const result = await addApp({
|
|
557
|
+
* appId: 'com.example.app',
|
|
558
|
+
* name: 'My App',
|
|
559
|
+
* apikey: 'your-api-key'
|
|
560
|
+
* })
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
export declare function addApp(options: AddAppOptions): Promise<SDKResult>;
|
|
564
|
+
/**
|
|
565
|
+
* List bundles for an app (functional API)
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* ```typescript
|
|
569
|
+
* const result = await listBundles('com.example.app', { apikey: 'your-api-key' })
|
|
570
|
+
* ```
|
|
571
|
+
*/
|
|
572
|
+
export declare function listBundles(appId: string, options?: {
|
|
573
|
+
apikey?: string;
|
|
574
|
+
supaHost?: string;
|
|
575
|
+
supaAnon?: string;
|
|
576
|
+
}): Promise<SDKResult<BundleInfo[]>>;
|
|
577
|
+
/**
|
|
578
|
+
* Add a new channel (functional API)
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* ```typescript
|
|
582
|
+
* const result = await addChannel({
|
|
583
|
+
* channelId: 'production',
|
|
584
|
+
* appId: 'com.example.app',
|
|
585
|
+
* apikey: 'your-api-key'
|
|
586
|
+
* })
|
|
587
|
+
* ```
|
|
588
|
+
*/
|
|
589
|
+
export declare function addChannel(options: AddChannelOptions): Promise<SDKResult>;
|
|
590
|
+
/**
|
|
591
|
+
* Get Capacitor configuration
|
|
592
|
+
*
|
|
593
|
+
* @example
|
|
594
|
+
* ```typescript
|
|
595
|
+
* const config = await getCapacitorConfig()
|
|
596
|
+
* if (config) {
|
|
597
|
+
* console.log(config.appId)
|
|
598
|
+
* }
|
|
599
|
+
* ```
|
|
600
|
+
*/
|
|
601
|
+
export declare function getCapacitorConfig(): Promise<import("./config").ExtConfigPairs | null>;
|
|
602
|
+
export type { CapacitorConfig } from './config';
|
|
603
|
+
export type { Database } from './types/supabase.types';
|
|
604
|
+
export { createSupabaseClient } from './utils';
|
|
605
|
+
//# sourceMappingURL=sdk.d.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