@capgo/cli 8.28.2 → 8.29.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/dist/index.js +896 -851
- package/dist/package.json +28 -26
- package/dist/src/analytics/track.d.ts +0 -1
- package/dist/src/api/channels.d.ts +4 -1
- package/dist/src/app/debug.d.ts +1 -1
- package/dist/src/build/credentials.d.ts +1 -1
- package/dist/src/build/onboarding/mcp/build-tool-schemas.d.ts +14 -0
- package/dist/src/build/onboarding/mcp/build-tools.d.ts +2 -11
- package/dist/src/build/onboarding/mcp/credentials-manage.d.ts +12 -31
- package/dist/src/build/onboarding/mcp/onboarding-tools.d.ts +2 -20
- package/dist/src/bundle/upload_interface.d.ts +0 -1
- package/dist/src/channel/list.d.ts +8 -2
- package/dist/src/github-command.d.ts +1 -2
- package/dist/src/init/mcp/live-update-tools.d.ts +2 -18
- package/dist/src/mcp/registrar.d.ts +18 -0
- package/dist/src/mcp/tool-schemas.d.ts +127 -0
- package/dist/src/schemas/app.d.ts +34 -35
- package/dist/src/schemas/ark_validation.d.ts +23 -0
- package/dist/src/schemas/arktype.d.ts +2 -0
- package/dist/src/schemas/arktype_config.d.ts +1 -0
- package/dist/src/schemas/auth.d.ts +7 -14
- package/dist/src/schemas/base.d.ts +6 -7
- package/dist/src/schemas/build.d.ts +254 -266
- package/dist/src/schemas/bundle.d.ts +156 -164
- package/dist/src/schemas/channel.d.ts +85 -87
- package/dist/src/schemas/common.d.ts +43 -51
- package/dist/src/schemas/config.d.ts +12 -20
- package/dist/src/schemas/index.d.ts +1 -2
- package/dist/src/schemas/live-update-onboarding.d.ts +22 -31
- package/dist/src/schemas/onboarding.d.ts +57 -147
- package/dist/src/schemas/organization.d.ts +40 -41
- package/dist/src/schemas/sdk.d.ts +396 -418
- package/dist/src/schemas/validate.d.ts +3 -9
- package/dist/src/sdk.d.ts +1 -11
- package/dist/src/sdk.js +447 -480
- package/dist/src/types/supabase.types.d.ts +3 -0
- package/dist/src/utils.d.ts +7 -25
- package/package.json +28 -26
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
appName: z.ZodString;
|
|
14
|
-
webDir: z.ZodString;
|
|
15
|
-
plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16
|
-
android: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
17
|
-
}, z.core.$loose>;
|
|
18
|
-
path: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type ExtConfigPairs = z.infer<typeof extConfigPairsSchema>;
|
|
1
|
+
export interface CapacitorConfig {
|
|
2
|
+
appId: string;
|
|
3
|
+
appName: string;
|
|
4
|
+
webDir: string;
|
|
5
|
+
plugins?: Record<string, any>;
|
|
6
|
+
android?: Record<string, any>;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export type ExtConfigPairs = {
|
|
10
|
+
config: CapacitorConfig;
|
|
11
|
+
path: string;
|
|
12
|
+
};
|
|
@@ -9,9 +9,8 @@ export { bundleCleanupOptionsSchema, bundleCompatibilityOptionsSchema, bundleDec
|
|
|
9
9
|
export type { BundleCleanupOptions, BundleCompatibilityOptions, BundleDecryptOptions, BundleDeleteOptions, BundleEncryptOptions, BundleReleaseTypeOptions, BundleZipOptions, DecryptResult, EncryptResult, OptionsUpload, UploadBundleResult, ZipResult, } from './bundle';
|
|
10
10
|
export { channelAddOptionsSchema, channelCurrentBundleOptionsSchema, channelDeleteOptionsSchema, channelSchema, optionsSetChannelSchema } from './channel';
|
|
11
11
|
export type { Channel, ChannelAddOptions, ChannelCurrentBundleOptions, ChannelDeleteOptions, OptionsSetChannel } from './channel';
|
|
12
|
-
export { compatibilityDetailsSchema, compatibilitySchema, incompatibilityReasonSchema, nativePackageSchema, parsedSecurityErrorSchema } from './common';
|
|
12
|
+
export { compatibilityDetailsSchema, compatibilitySchema, incompatibilityReasonSchema, localizedReleaseNotesSchema, nativePackageSchema, parsedSecurityErrorSchema } from './common';
|
|
13
13
|
export type { Compatibility, CompatibilityDetails, IncompatibilityReason, NativePackage, ParsedSecurityError } from './common';
|
|
14
|
-
export { capacitorConfigSchema, extConfigPairsSchema } from './config';
|
|
15
14
|
export type { CapacitorConfig, ExtConfigPairs } from './config';
|
|
16
15
|
export { organizationAddOptionsSchema, organizationDeleteOptionsSchema, organizationSetOptionsSchema, passwordPolicyConfigSchema } from './organization';
|
|
17
16
|
export type { OrganizationAddOptions, OrganizationDeleteOptions, OrganizationSetOptions, PasswordPolicyConfig } from './organization';
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
dirtyGitAction: z.ZodOptional<z.ZodEnum<{
|
|
24
|
-
"check-again": "check-again";
|
|
25
|
-
"continue-dirty": "continue-dirty";
|
|
26
|
-
}>>;
|
|
27
|
-
deviceRunConfirmed: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
otaReceivedConfirmed: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type LiveUpdateStartInput = z.infer<typeof liveUpdateStartSchema>;
|
|
31
|
-
export type LiveUpdateNextStepInput = z.infer<typeof liveUpdateNextStepSchema>;
|
|
1
|
+
export declare const liveUpdateStartSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
|
+
capacitorConfig?: string | undefined;
|
|
3
|
+
packageJson?: string | undefined;
|
|
4
|
+
mainFile?: string | undefined;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const liveUpdateNextStepSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
7
|
+
capacitorConfig?: string | undefined;
|
|
8
|
+
packageJson?: string | undefined;
|
|
9
|
+
mainFile?: string | undefined;
|
|
10
|
+
resumeChoice?: "continue" | "restart" | undefined;
|
|
11
|
+
encryptionChoice?: "skip" | "enable" | undefined;
|
|
12
|
+
platform?: "android" | "ios" | undefined;
|
|
13
|
+
dirtyGitAction?: "check-again" | "continue-dirty" | undefined;
|
|
14
|
+
deviceRunConfirmed?: boolean | undefined;
|
|
15
|
+
otaReceivedConfirmed?: boolean | undefined;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export type LiveUpdateStartInput = typeof liveUpdateStartSchema.infer;
|
|
18
|
+
export type LiveUpdateNextStepInput = typeof liveUpdateNextStepSchema.infer;
|
|
19
|
+
export declare const liveUpdateExplainInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
20
|
+
state?: string | undefined;
|
|
21
|
+
capacitorConfig?: string | undefined;
|
|
22
|
+
}, {}>;
|
|
@@ -1,147 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
open: "open";
|
|
59
|
-
continue: "continue";
|
|
60
|
-
cancel: "cancel";
|
|
61
|
-
"create-new": "create-new";
|
|
62
|
-
back: "back";
|
|
63
|
-
recheck: "recheck";
|
|
64
|
-
pick: "pick";
|
|
65
|
-
autofix: "autofix";
|
|
66
|
-
reopen: "reopen";
|
|
67
|
-
}>>;
|
|
68
|
-
verifyAppId: z.ZodOptional<z.ZodString>;
|
|
69
|
-
certToRevoke: z.ZodOptional<z.ZodString>;
|
|
70
|
-
duplicateProfileAction: z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
delete: "delete";
|
|
72
|
-
exit: "exit";
|
|
73
|
-
}>>;
|
|
74
|
-
errorAction: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
exit: "exit";
|
|
76
|
-
retry: "retry";
|
|
77
|
-
restart: "restart";
|
|
78
|
-
"email-support": "email-support";
|
|
79
|
-
}>>;
|
|
80
|
-
ciSecretAction: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
replace: "replace";
|
|
82
|
-
yes: "yes";
|
|
83
|
-
no: "no";
|
|
84
|
-
skip: "skip";
|
|
85
|
-
retry: "retry";
|
|
86
|
-
continue: "continue";
|
|
87
|
-
confirm: "confirm";
|
|
88
|
-
github: "github";
|
|
89
|
-
gitlab: "gitlab";
|
|
90
|
-
cancel: "cancel";
|
|
91
|
-
}>>;
|
|
92
|
-
githubActionsSetup: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
no: "no";
|
|
94
|
-
"with-workflow": "with-workflow";
|
|
95
|
-
"secrets-only": "secrets-only";
|
|
96
|
-
}>>;
|
|
97
|
-
exportEnvAction: z.ZodOptional<z.ZodEnum<{
|
|
98
|
-
replace: "replace";
|
|
99
|
-
yes: "yes";
|
|
100
|
-
no: "no";
|
|
101
|
-
skip: "skip";
|
|
102
|
-
}>>;
|
|
103
|
-
envExportPath: z.ZodOptional<z.ZodString>;
|
|
104
|
-
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
yarn: "yarn";
|
|
106
|
-
npm: "npm";
|
|
107
|
-
bun: "bun";
|
|
108
|
-
pnpm: "pnpm";
|
|
109
|
-
}>>;
|
|
110
|
-
buildScript: z.ZodOptional<z.ZodString>;
|
|
111
|
-
buildScriptCustom: z.ZodOptional<z.ZodString>;
|
|
112
|
-
workflowFileAction: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
write: "write";
|
|
114
|
-
view: "view";
|
|
115
|
-
cancel: "cancel";
|
|
116
|
-
}>>;
|
|
117
|
-
setupMethod: z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
"create-new": "create-new";
|
|
119
|
-
"import-existing": "import-existing";
|
|
120
|
-
}>>;
|
|
121
|
-
importDistribution: z.ZodOptional<z.ZodEnum<{
|
|
122
|
-
app_store: "app_store";
|
|
123
|
-
ad_hoc: "ad_hoc";
|
|
124
|
-
__cancel__: "__cancel__";
|
|
125
|
-
}>>;
|
|
126
|
-
identityChoice: z.ZodOptional<z.ZodString>;
|
|
127
|
-
profileChoice: z.ZodOptional<z.ZodString>;
|
|
128
|
-
importRecoveryAction: z.ZodOptional<z.ZodEnum<{
|
|
129
|
-
create: "create";
|
|
130
|
-
back: "back";
|
|
131
|
-
"provide-profile-path": "provide-profile-path";
|
|
132
|
-
browser: "browser";
|
|
133
|
-
}>>;
|
|
134
|
-
portalAction: z.ZodOptional<z.ZodEnum<{
|
|
135
|
-
back: "back";
|
|
136
|
-
"use-create": "use-create";
|
|
137
|
-
"open-anyway": "open-anyway";
|
|
138
|
-
"use-file": "use-file";
|
|
139
|
-
}>>;
|
|
140
|
-
profilePath: z.ZodOptional<z.ZodString>;
|
|
141
|
-
exportConfirm: z.ZodOptional<z.ZodEnum<{
|
|
142
|
-
exit: "exit";
|
|
143
|
-
back: "back";
|
|
144
|
-
go: "go";
|
|
145
|
-
}>>;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
export type OnboardingNextStepInput = z.infer<typeof onboardingNextStepSchema>;
|
|
1
|
+
export declare const onboardingNextStepSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
|
+
platform?: "android" | "ios" | undefined;
|
|
3
|
+
serviceAccountJsonPath?: string | undefined;
|
|
4
|
+
runBuild?: boolean | undefined;
|
|
5
|
+
keyId?: string | undefined;
|
|
6
|
+
issuerId?: string | undefined;
|
|
7
|
+
p8Path?: string | undefined;
|
|
8
|
+
serviceAccountMethod?: "generate" | "existing" | undefined;
|
|
9
|
+
playDeveloperId?: string | undefined;
|
|
10
|
+
gcpProjectId?: string | undefined;
|
|
11
|
+
gcpProjectName?: string | undefined;
|
|
12
|
+
androidPackage?: string | undefined;
|
|
13
|
+
androidVerifyAction?: "open" | "proceed" | "cancel" | "recheck" | undefined;
|
|
14
|
+
saMethodChoice?: "retry" | "oauth" | "save-anyway" | undefined;
|
|
15
|
+
reopenSignIn?: boolean | undefined;
|
|
16
|
+
openSignInBrowser?: boolean | undefined;
|
|
17
|
+
confirmCode?: string | undefined;
|
|
18
|
+
checkBuild?: boolean | undefined;
|
|
19
|
+
resumeChoice?: "continue" | "restart" | undefined;
|
|
20
|
+
credentialsExistChoice?: "backup" | "cancel" | undefined;
|
|
21
|
+
keystoreMethod?: "generate" | "existing" | undefined;
|
|
22
|
+
keystorePath?: string | undefined;
|
|
23
|
+
keystoreStorePassword?: string | undefined;
|
|
24
|
+
keystoreAlias?: string | undefined;
|
|
25
|
+
keystoreKeyPassword?: string | undefined;
|
|
26
|
+
keystoreNewAlias?: string | undefined;
|
|
27
|
+
keystorePasswordMethod?: "manual" | "random" | undefined;
|
|
28
|
+
keystoreCommonName?: string | undefined;
|
|
29
|
+
verifyAction?: "pick" | "open" | "continue" | "cancel" | "create-new" | "back" | "recheck" | "autofix" | "reopen" | undefined;
|
|
30
|
+
verifyAppId?: string | undefined;
|
|
31
|
+
certToRevoke?: string | undefined;
|
|
32
|
+
duplicateProfileAction?: "delete" | "exit" | undefined;
|
|
33
|
+
errorAction?: "exit" | "retry" | "restart" | "email-support" | undefined;
|
|
34
|
+
ciSecretAction?: "replace" | "yes" | "no" | "skip" | "retry" | "continue" | "confirm" | "github" | "gitlab" | "cancel" | undefined;
|
|
35
|
+
githubActionsSetup?: "no" | "with-workflow" | "secrets-only" | undefined;
|
|
36
|
+
exportEnvAction?: "replace" | "yes" | "no" | "skip" | undefined;
|
|
37
|
+
envExportPath?: string | undefined;
|
|
38
|
+
packageManager?: "yarn" | "npm" | "bun" | "pnpm" | undefined;
|
|
39
|
+
buildScript?: string | undefined;
|
|
40
|
+
buildScriptCustom?: string | undefined;
|
|
41
|
+
workflowFileAction?: "write" | "view" | "cancel" | undefined;
|
|
42
|
+
setupMethod?: "create-new" | "import-existing" | undefined;
|
|
43
|
+
importDistribution?: "app_store" | "ad_hoc" | "__cancel__" | undefined;
|
|
44
|
+
identityChoice?: string | undefined;
|
|
45
|
+
profileChoice?: string | undefined;
|
|
46
|
+
importRecoveryAction?: "create" | "back" | "provide-profile-path" | "browser" | undefined;
|
|
47
|
+
portalAction?: "back" | "use-create" | "open-anyway" | "use-file" | undefined;
|
|
48
|
+
profilePath?: string | undefined;
|
|
49
|
+
exportConfirm?: "exit" | "back" | "go" | undefined;
|
|
50
|
+
}, {}>;
|
|
51
|
+
export type OnboardingNextStepInput = typeof onboardingNextStepSchema.infer;
|
|
52
|
+
export declare const onboardingStartInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
53
|
+
platform?: "android" | "ios" | undefined;
|
|
54
|
+
}, {}>;
|
|
55
|
+
export declare const onboardingExplainInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
56
|
+
state?: string | undefined;
|
|
57
|
+
}, {}>;
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export type OrganizationSetOptions = z.infer<typeof organizationSetOptionsSchema>;
|
|
1
|
+
export declare const organizationAddOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
|
+
apikey: string;
|
|
3
|
+
supaHost?: string | undefined;
|
|
4
|
+
supaAnon?: string | undefined;
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
email?: string | undefined;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export type OrganizationAddOptions = typeof organizationAddOptionsSchema.infer;
|
|
9
|
+
export declare const organizationDeleteOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
10
|
+
apikey: string;
|
|
11
|
+
supaHost?: string | undefined;
|
|
12
|
+
supaAnon?: string | undefined;
|
|
13
|
+
autoConfirm?: boolean | undefined;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type OrganizationDeleteOptions = typeof organizationDeleteOptionsSchema.infer;
|
|
16
|
+
export declare const passwordPolicyConfigSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
min_length: number;
|
|
19
|
+
require_uppercase: boolean;
|
|
20
|
+
require_number: boolean;
|
|
21
|
+
require_special: boolean;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export type PasswordPolicyConfig = typeof passwordPolicyConfigSchema.infer;
|
|
24
|
+
export declare const organizationSetOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
25
|
+
apikey: string;
|
|
26
|
+
supaHost?: string | undefined;
|
|
27
|
+
supaAnon?: string | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
email?: string | undefined;
|
|
30
|
+
enforce2fa?: boolean | undefined;
|
|
31
|
+
passwordPolicy?: boolean | undefined;
|
|
32
|
+
minLength?: number | undefined;
|
|
33
|
+
requireUppercase?: boolean | undefined;
|
|
34
|
+
requireNumber?: boolean | undefined;
|
|
35
|
+
requireSpecial?: boolean | undefined;
|
|
36
|
+
requireApikeyExpiration?: boolean | undefined;
|
|
37
|
+
maxApikeyExpirationDays?: number | null | undefined;
|
|
38
|
+
enforceHashedApiKeys?: boolean | undefined;
|
|
39
|
+
}, {}>;
|
|
40
|
+
export type OrganizationSetOptions = typeof organizationSetOptionsSchema.infer;
|