@capgo/cli 8.90.0 → 8.90.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/README.md +92 -92
- package/dist/index.js +1080 -1027
- package/dist/notify-app-ready-worker.js +201 -207
- package/dist/onboarding-worker.js +472 -473
- package/dist/package.json +19 -23
- package/dist/src/analytics/api-perf.d.ts +39 -0
- package/dist/src/analytics/cli-headers.d.ts +0 -1
- package/dist/src/analytics/error-category.d.ts +1 -1
- package/dist/src/analytics/org-resolver.d.ts +2 -6
- package/dist/src/analytics/track.d.ts +1 -3
- package/dist/src/api/app.d.ts +31 -19
- package/dist/src/api/channels.d.ts +25 -52
- package/dist/src/api/cli-data.d.ts +27 -0
- package/dist/src/api/http-error.d.ts +9 -0
- package/dist/src/api/preflight.d.ts +53 -0
- package/dist/src/api/versions.d.ts +15 -59
- package/dist/src/app/add.d.ts +5 -9
- package/dist/src/app/debug.d.ts +1 -2
- package/dist/src/app/default-channels.d.ts +7 -9
- package/dist/src/app/list.d.ts +3 -70
- package/dist/src/auth/session.d.ts +1 -2
- package/dist/src/build/onboarding/android/ui/app.d.ts +2 -3
- package/dist/src/build/onboarding/app-selection.d.ts +2 -4
- package/dist/src/build/onboarding/appflow/tail.d.ts +1 -1
- package/dist/src/build/onboarding/command.d.ts +2 -3
- package/dist/src/build/onboarding/login.d.ts +1 -2
- package/dist/src/build/onboarding/ui/app.d.ts +2 -3
- package/dist/src/build/onboarding/ui/appflow-app.d.ts +1 -1
- package/dist/src/build/onboarding/ui/shell.d.ts +2 -3
- package/dist/src/build/prescan/command.d.ts +1 -2
- package/dist/src/build/prescan/context.d.ts +2 -3
- package/dist/src/build/prescan/types.d.ts +3 -4
- package/dist/src/bundle/auto-bump-ai.d.ts +6 -9
- package/dist/src/bundle/finalize-upload.d.ts +2 -4
- package/dist/src/bundle/list.d.ts +1 -25
- package/dist/src/bundle/manifest-upload.d.ts +1 -1
- package/dist/src/bundle/unlink.d.ts +1 -2
- package/dist/src/bundle/upload.d.ts +3 -3
- package/dist/src/channel/add.d.ts +3 -4
- package/dist/src/init/builder-setup.d.ts +1 -1
- package/dist/src/init/channel-selection.d.ts +2 -3
- package/dist/src/init/onboarding-report.d.ts +2 -4
- package/dist/src/init/replay.d.ts +2 -3
- package/dist/src/login.d.ts +1 -2
- package/dist/src/mcp/tool-schemas.d.ts +5 -5
- package/dist/src/observe/command.d.ts +1 -2
- package/dist/src/onboarding/background-api.d.ts +1 -1
- package/dist/src/onboarding/background-check.d.ts +0 -1
- package/dist/src/onboarding/background.d.ts +1 -2
- package/dist/src/organization/add.d.ts +2 -24
- package/dist/src/organization/list.d.ts +4 -34
- package/dist/src/organization/set.d.ts +4 -6
- package/dist/src/preview/qr.d.ts +1 -2
- package/dist/src/recovery/app-id.d.ts +1 -2
- package/dist/src/schemas/account.d.ts +2 -2
- package/dist/src/schemas/app.d.ts +6 -6
- package/dist/src/schemas/base.d.ts +2 -2
- package/dist/src/schemas/build.d.ts +4 -4
- package/dist/src/schemas/bundle.d.ts +13 -13
- package/dist/src/schemas/channel.d.ts +10 -10
- package/dist/src/schemas/onboarding.d.ts +1 -1
- package/dist/src/schemas/organization.d.ts +8 -8
- package/dist/src/schemas/sdk.d.ts +52 -52
- package/dist/src/sdk.d.ts +19 -8
- package/dist/src/sdk.js +449 -484
- package/dist/src/shared/network-error.d.ts +2 -2
- package/dist/src/shared/two-factor-compliance.d.ts +1 -1
- package/dist/src/types/api.d.ts +214 -0
- package/dist/src/user/whoami.d.ts +3 -4
- package/dist/src/utils.d.ts +135 -10894
- package/dist/updater-installed-worker.js +183 -189
- package/package.json +19 -23
- package/skills/usage/SKILL.md +2 -2
- package/dist/src/analytics/supabase-perf.d.ts +0 -48
- package/dist/src/types/supabase.types.d.ts +0 -5588
|
@@ -14,8 +14,8 @@ export declare const addAppOptionsSchema: z.ZodObject<{
|
|
|
14
14
|
name: z.ZodOptional<z.ZodString>;
|
|
15
15
|
icon: z.ZodOptional<z.ZodString>;
|
|
16
16
|
apikey: z.ZodOptional<z.ZodString>;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
18
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export type AddAppOptions = z.infer<typeof addAppOptionsSchema>;
|
|
21
21
|
export declare const updateAppOptionsSchema: z.ZodObject<{
|
|
@@ -34,8 +34,8 @@ export declare const updateAppOptionsSchema: z.ZodObject<{
|
|
|
34
34
|
defaultDownloadChannel: z.ZodOptional<z.ZodString>;
|
|
35
35
|
disableDownloadChannels: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
apikey: z.ZodOptional<z.ZodString>;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
38
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
39
39
|
collectCountry: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
collectPlatform: z.ZodOptional<z.ZodBoolean>;
|
|
41
41
|
collectOsVersion: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -79,8 +79,8 @@ export declare const uploadOptionsSchema: z.ZodObject<{
|
|
|
79
79
|
external: z.ZodOptional<z.ZodString>;
|
|
80
80
|
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
81
81
|
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
83
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
84
84
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
85
85
|
useTus: z.ZodOptional<z.ZodBoolean>;
|
|
86
86
|
comment: z.ZodOptional<z.ZodString>;
|
|
@@ -91,9 +91,9 @@ export declare const uploadOptionsSchema: z.ZodObject<{
|
|
|
91
91
|
major: "major";
|
|
92
92
|
minor: "minor";
|
|
93
93
|
patch: "patch";
|
|
94
|
-
metadata: "metadata";
|
|
95
94
|
fix: "fix";
|
|
96
95
|
ai: "ai";
|
|
96
|
+
metadata: "metadata";
|
|
97
97
|
}>]>>;
|
|
98
98
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
99
99
|
packageJsonPaths: z.ZodOptional<z.ZodString>;
|
|
@@ -142,8 +142,8 @@ export declare const cleanupOptionsSchema: z.ZodObject<{
|
|
|
142
142
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
143
143
|
ignoreChannel: z.ZodOptional<z.ZodBoolean>;
|
|
144
144
|
apikey: z.ZodOptional<z.ZodString>;
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
146
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
147
147
|
}, z.core.$strip>;
|
|
148
148
|
export type CleanupOptions = z.infer<typeof cleanupOptionsSchema>;
|
|
149
149
|
export declare const generateKeyOptionsSchema: z.ZodObject<{
|
|
@@ -171,8 +171,8 @@ export declare const addChannelOptionsSchema: z.ZodObject<{
|
|
|
171
171
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
172
172
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
173
173
|
apikey: z.ZodOptional<z.ZodString>;
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
175
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
176
176
|
}, z.core.$strip>;
|
|
177
177
|
export type AddChannelOptions = z.infer<typeof addChannelOptionsSchema>;
|
|
178
178
|
export declare const updateChannelOptionsBaseSchema: z.ZodObject<{
|
|
@@ -224,8 +224,8 @@ export declare const updateChannelOptionsBaseSchema: z.ZodObject<{
|
|
|
224
224
|
autoPauseCooldownMinutes: z.ZodOptional<z.ZodNumber>;
|
|
225
225
|
acceptIncompatible: z.ZodOptional<z.ZodBoolean>;
|
|
226
226
|
apikey: z.ZodOptional<z.ZodString>;
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
228
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
229
229
|
}, z.core.$strip>;
|
|
230
230
|
export declare const updateChannelOptionsSchema: z.ZodObject<{
|
|
231
231
|
channelId: z.ZodString;
|
|
@@ -276,8 +276,8 @@ export declare const updateChannelOptionsSchema: z.ZodObject<{
|
|
|
276
276
|
autoPauseCooldownMinutes: z.ZodOptional<z.ZodNumber>;
|
|
277
277
|
acceptIncompatible: z.ZodOptional<z.ZodBoolean>;
|
|
278
278
|
apikey: z.ZodOptional<z.ZodString>;
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
280
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
281
281
|
}, z.core.$strip>;
|
|
282
282
|
export type UpdateChannelOptions = z.infer<typeof updateChannelOptionsSchema>;
|
|
283
283
|
export declare const promoteChannelOptionsSchema: z.ZodObject<{
|
|
@@ -288,34 +288,34 @@ export declare const promoteChannelOptionsSchema: z.ZodObject<{
|
|
|
288
288
|
acceptIncompatible: z.ZodOptional<z.ZodBoolean>;
|
|
289
289
|
sendUpdateNotification: z.ZodOptional<z.ZodBoolean>;
|
|
290
290
|
apikey: z.ZodOptional<z.ZodString>;
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
292
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
293
293
|
}, z.core.$strip>;
|
|
294
294
|
export type PromoteChannelOptions = z.infer<typeof promoteChannelOptionsSchema>;
|
|
295
295
|
export declare const accountIdOptionsSchema: z.ZodObject<{
|
|
296
296
|
apikey: z.ZodOptional<z.ZodString>;
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
298
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
299
299
|
}, z.core.$strip>;
|
|
300
300
|
export type AccountIdOptions = z.infer<typeof accountIdOptionsSchema>;
|
|
301
301
|
export declare const listOrganizationsOptionsSchema: z.ZodObject<{
|
|
302
302
|
apikey: z.ZodOptional<z.ZodString>;
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
304
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
305
305
|
}, z.core.$strip>;
|
|
306
306
|
export type ListOrganizationsOptions = z.infer<typeof listOrganizationsOptionsSchema>;
|
|
307
307
|
export declare const addOrganizationOptionsSchema: z.ZodObject<{
|
|
308
308
|
apikey: z.ZodOptional<z.ZodString>;
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
310
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
311
311
|
name: z.ZodString;
|
|
312
312
|
email: z.ZodString;
|
|
313
313
|
}, z.core.$strip>;
|
|
314
314
|
export type AddOrganizationOptions = z.infer<typeof addOrganizationOptionsSchema>;
|
|
315
315
|
export declare const updateOrganizationOptionsSchema: z.ZodObject<{
|
|
316
316
|
apikey: z.ZodOptional<z.ZodString>;
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
318
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
319
319
|
orgId: z.ZodString;
|
|
320
320
|
name: z.ZodOptional<z.ZodString>;
|
|
321
321
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -336,16 +336,16 @@ export declare const updateOrganizationOptionsSchema: z.ZodObject<{
|
|
|
336
336
|
export type UpdateOrganizationOptions = z.infer<typeof updateOrganizationOptionsSchema>;
|
|
337
337
|
export declare const organizationMemberSdkOptionsSchema: z.ZodObject<{
|
|
338
338
|
apikey: z.ZodOptional<z.ZodString>;
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
340
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
341
341
|
orgId: z.ZodString;
|
|
342
342
|
email: z.ZodString;
|
|
343
343
|
}, z.core.$strip>;
|
|
344
344
|
export type RemoveOrganizationMemberOptions = z.infer<typeof organizationMemberSdkOptionsSchema>;
|
|
345
345
|
export declare const organizationMemberRoleOptionsSchema: z.ZodObject<{
|
|
346
346
|
apikey: z.ZodOptional<z.ZodString>;
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
348
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
349
349
|
orgId: z.ZodString;
|
|
350
350
|
email: z.ZodString;
|
|
351
351
|
role: z.ZodEnum<{
|
|
@@ -359,14 +359,14 @@ export type InviteOrganizationMemberOptions = z.infer<typeof organizationMemberR
|
|
|
359
359
|
export type UpdateOrganizationMemberRoleOptions = z.infer<typeof organizationMemberRoleOptionsSchema>;
|
|
360
360
|
export declare const getAccountOptionsSchema: z.ZodObject<{
|
|
361
361
|
apikey: z.ZodOptional<z.ZodString>;
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
363
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
364
364
|
}, z.core.$strip>;
|
|
365
365
|
export type GetAccountOptions = z.infer<typeof getAccountOptionsSchema>;
|
|
366
366
|
export declare const updateAccountOptionsSchema: z.ZodObject<{
|
|
367
367
|
apikey: z.ZodOptional<z.ZodString>;
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
369
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
370
370
|
firstName: z.ZodOptional<z.ZodString>;
|
|
371
371
|
lastName: z.ZodOptional<z.ZodString>;
|
|
372
372
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -388,16 +388,16 @@ export declare const organizationInfoSchema: z.ZodObject<{
|
|
|
388
388
|
export type OrganizationInfo = z.infer<typeof organizationInfoSchema>;
|
|
389
389
|
export declare const deleteOrganizationOptionsSchema: z.ZodObject<{
|
|
390
390
|
apikey: z.ZodOptional<z.ZodString>;
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
392
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
393
393
|
autoConfirm: z.ZodOptional<z.ZodBoolean>;
|
|
394
394
|
}, z.core.$strip>;
|
|
395
395
|
export type DeleteOrganizationOptions = z.infer<typeof deleteOrganizationOptionsSchema>;
|
|
396
396
|
export declare const loginOptionsSchema: z.ZodObject<{
|
|
397
397
|
apikey: z.ZodString;
|
|
398
398
|
local: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
400
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
401
401
|
}, z.core.$strip>;
|
|
402
402
|
export type LoginOptions = z.infer<typeof loginOptionsSchema>;
|
|
403
403
|
export declare const doctorOptionsSchema: z.ZodObject<{
|
|
@@ -411,8 +411,8 @@ export declare const bundleCompatibilityOptionsSchema: z.ZodObject<{
|
|
|
411
411
|
nodeModules: z.ZodOptional<z.ZodString>;
|
|
412
412
|
textOutput: z.ZodOptional<z.ZodBoolean>;
|
|
413
413
|
apikey: z.ZodOptional<z.ZodString>;
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
415
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
416
416
|
}, z.core.$strip>;
|
|
417
417
|
export type BundleCompatibilityOptions = z.infer<typeof bundleCompatibilityOptionsSchema>;
|
|
418
418
|
export declare const encryptBundleOptionsSchema: z.ZodObject<{
|
|
@@ -500,8 +500,8 @@ export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
|
500
500
|
iosAutomaticRelease: z.ZodOptional<z.ZodBoolean>;
|
|
501
501
|
userId: z.ZodOptional<z.ZodString>;
|
|
502
502
|
apikey: z.ZodOptional<z.ZodString>;
|
|
503
|
-
|
|
504
|
-
|
|
503
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
504
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
505
505
|
prescan: z.ZodOptional<z.ZodBoolean>;
|
|
506
506
|
prescanIgnoreFatal: z.ZodOptional<z.ZodBoolean>;
|
|
507
507
|
prescanSkip: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -512,8 +512,8 @@ export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
|
512
512
|
export type RequestBuildOptions = z.infer<typeof requestBuildOptionsSchema>;
|
|
513
513
|
export declare const currentBundleOptionsSchema: z.ZodObject<{
|
|
514
514
|
apikey: z.ZodOptional<z.ZodString>;
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
516
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
517
517
|
}, z.core.$strip>;
|
|
518
518
|
export type CurrentBundleOptions = z.infer<typeof currentBundleOptionsSchema>;
|
|
519
519
|
export declare const setSettingOptionsSchema: z.ZodObject<{
|
|
@@ -547,8 +547,8 @@ export declare const getStatsOptionsSchema: z.ZodObject<{
|
|
|
547
547
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
548
548
|
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
549
|
apikey: z.ZodOptional<z.ZodString>;
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
551
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
552
552
|
}, z.core.$strip>;
|
|
553
553
|
export type GetStatsOptions = z.infer<typeof getStatsOptionsSchema>;
|
|
554
554
|
export declare const deviceStatsSchema: z.ZodObject<{
|
|
@@ -562,9 +562,9 @@ export declare const deviceStatsSchema: z.ZodObject<{
|
|
|
562
562
|
export type DeviceStats = z.infer<typeof deviceStatsSchema>;
|
|
563
563
|
export declare const observeViewSchema: z.ZodEnum<{
|
|
564
564
|
device: "device";
|
|
565
|
-
events: "events";
|
|
566
565
|
summary: "summary";
|
|
567
566
|
metrics: "metrics";
|
|
567
|
+
events: "events";
|
|
568
568
|
routes: "routes";
|
|
569
569
|
versions: "versions";
|
|
570
570
|
}>;
|
|
@@ -579,9 +579,9 @@ export declare const observeOptionsObjectSchema: z.ZodObject<{
|
|
|
579
579
|
appId: z.ZodString;
|
|
580
580
|
view: z.ZodOptional<z.ZodEnum<{
|
|
581
581
|
device: "device";
|
|
582
|
-
events: "events";
|
|
583
582
|
summary: "summary";
|
|
584
583
|
metrics: "metrics";
|
|
584
|
+
events: "events";
|
|
585
585
|
routes: "routes";
|
|
586
586
|
versions: "versions";
|
|
587
587
|
}>>;
|
|
@@ -597,8 +597,8 @@ export declare const observeOptionsObjectSchema: z.ZodObject<{
|
|
|
597
597
|
}>>;
|
|
598
598
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
599
599
|
apikey: z.ZodOptional<z.ZodString>;
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
601
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
602
602
|
}, z.core.$strip>;
|
|
603
603
|
export declare function refineObserveDeviceId(value: {
|
|
604
604
|
view?: z.infer<typeof observeViewSchema>;
|
|
@@ -608,9 +608,9 @@ export declare const observeOptionsSchema: z.ZodObject<{
|
|
|
608
608
|
appId: z.ZodString;
|
|
609
609
|
view: z.ZodOptional<z.ZodEnum<{
|
|
610
610
|
device: "device";
|
|
611
|
-
events: "events";
|
|
612
611
|
summary: "summary";
|
|
613
612
|
metrics: "metrics";
|
|
613
|
+
events: "events";
|
|
614
614
|
routes: "routes";
|
|
615
615
|
versions: "versions";
|
|
616
616
|
}>>;
|
|
@@ -626,8 +626,8 @@ export declare const observeOptionsSchema: z.ZodObject<{
|
|
|
626
626
|
}>>;
|
|
627
627
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
628
628
|
apikey: z.ZodOptional<z.ZodString>;
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
630
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
631
631
|
}, z.core.$strip>;
|
|
632
632
|
export type ObserveOptions = z.infer<typeof observeOptionsSchema>;
|
|
633
633
|
export type ObserveView = z.infer<typeof observeViewSchema>;
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -39,13 +39,25 @@ export type { UpdateProbeResult } from './app/updateProbe';
|
|
|
39
39
|
*/
|
|
40
40
|
export declare class CapgoSDK {
|
|
41
41
|
private readonly apikey?;
|
|
42
|
-
private readonly
|
|
43
|
-
private readonly
|
|
42
|
+
private readonly apiHost?;
|
|
43
|
+
private readonly filesHost?;
|
|
44
44
|
constructor(options?: {
|
|
45
45
|
apikey?: string;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
/** Capgo API base URL for self-hosting or tests, e.g. `http://127.0.0.1:8787`. */
|
|
47
|
+
apiHost?: string;
|
|
48
|
+
/** Capgo files API base URL when it differs from apiHost. */
|
|
49
|
+
filesHost?: string;
|
|
48
50
|
});
|
|
51
|
+
/**
|
|
52
|
+
* Hosts for one SDK call: per-call apiHost / filesHost, else the constructor's. Each call runs in its own host scope, so SDK instances
|
|
53
|
+
* on different backends can run concurrently without sharing hosts or keys.
|
|
54
|
+
*/
|
|
55
|
+
callHosts(args: unknown[]): {
|
|
56
|
+
apiHost?: string;
|
|
57
|
+
filesHost?: string;
|
|
58
|
+
};
|
|
59
|
+
/** Per-call apiHost overrides the SDK-wide one. */
|
|
60
|
+
private resolveApiHost;
|
|
49
61
|
/**
|
|
50
62
|
* Save an API key locally or in the home directory
|
|
51
63
|
*/
|
|
@@ -492,8 +504,7 @@ export declare function addApp(options: AddAppOptions): Promise<SDKResult>;
|
|
|
492
504
|
*/
|
|
493
505
|
export declare function listBundles(appId: string, options?: {
|
|
494
506
|
apikey?: string;
|
|
495
|
-
|
|
496
|
-
supaAnon?: string;
|
|
507
|
+
apiHost?: string;
|
|
497
508
|
}): Promise<SDKResult<BundleInfo[]>>;
|
|
498
509
|
/**
|
|
499
510
|
* Add a new channel (functional API)
|
|
@@ -598,7 +609,7 @@ export type { CapacitorConfig } from './config';
|
|
|
598
609
|
export type { ProbeInternalResult } from './probe';
|
|
599
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';
|
|
600
611
|
export type { AccountProfile } from './schemas/account';
|
|
601
|
-
export type {
|
|
602
|
-
export {
|
|
612
|
+
export type { AppRow, AppVersionRow, ChannelRow, Organization } from './types/api';
|
|
613
|
+
export { createCapgoClient, withCapgoHosts } from './utils';
|
|
603
614
|
export { formatApiErrorForCli, getSecurityPolicyMessage, isSecurityPolicyError, parseSecurityPolicyError, SECURITY_POLICY_ERRORS, SECURITY_POLICY_MESSAGES, } from './utils/security_policy_errors';
|
|
604
615
|
export type { ParsedSecurityError, SecurityPolicyErrorCode } from './utils/security_policy_errors';
|