@capgo/cli 7.95.11 → 7.95.13
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 +93 -93
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +0 -5215
- package/dist/src/api/crypto.d.ts +5 -2
- package/dist/src/build/request.d.ts +1 -1
- package/dist/src/bundle/unlink.d.ts +8 -1
- package/dist/src/key.d.ts +0 -2
- package/dist/src/schemas/build.d.ts +0 -15
- package/dist/src/schemas/bundle.d.ts +0 -8
- package/dist/src/schemas/common.d.ts +0 -9
- package/dist/src/schemas/index.d.ts +7 -9
- package/dist/src/schemas/sdk.d.ts +0 -8
- package/dist/src/sdk.js +144 -144
- package/dist/src/types/supabase.types.d.ts +0 -36
- package/dist/src/utils.d.ts +0 -41
- package/package.json +1 -1
- package/dist/src/schemas/crypto.d.ts +0 -6
package/dist/src/api/crypto.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ export declare function encryptChecksum(checksum: string, key: string): string;
|
|
|
9
9
|
export declare function encryptChecksumV3(checksum: string, key: string): string;
|
|
10
10
|
export declare function decryptChecksum(checksum: string, key: string): string;
|
|
11
11
|
export declare function decryptChecksumV3(checksum: string, key: string): string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
interface RSAKeys {
|
|
13
|
+
publicKey: string;
|
|
14
|
+
privateKey: string;
|
|
15
|
+
}
|
|
14
16
|
export declare function createRSA(): RSAKeys;
|
|
15
17
|
/**
|
|
16
18
|
* Calculate the key ID from a public key
|
|
@@ -21,3 +23,4 @@ export declare function createRSA(): RSAKeys;
|
|
|
21
23
|
* @returns 20-character key ID or empty string if key is invalid
|
|
22
24
|
*/
|
|
23
25
|
export declare function calcKeyId(publicKey: string): string;
|
|
26
|
+
export {};
|
|
@@ -50,7 +50,7 @@ interface ResolveBuildPlatformOptions {
|
|
|
50
50
|
promptPlatform?: () => Promise<unknown>;
|
|
51
51
|
}
|
|
52
52
|
export declare function resolveBuildPlatform(platform: string | undefined, { silent, interactive, promptPlatform, }?: ResolveBuildPlatformOptions): Promise<BuildPlatform>;
|
|
53
|
-
export type { BuildCredentials, BuildRequestOptions,
|
|
53
|
+
export type { BuildCredentials, BuildRequestOptions, BuildRequestResult } from '../schemas/build';
|
|
54
54
|
/**
|
|
55
55
|
* Extract native node_modules roots that contain platform folders.
|
|
56
56
|
*/
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface BundleUnlinkOptions {
|
|
2
|
+
bundle?: string;
|
|
3
|
+
packageJson?: string;
|
|
4
|
+
apikey?: string;
|
|
5
|
+
supaHost?: string;
|
|
6
|
+
supaAnon?: string;
|
|
7
|
+
}
|
|
2
8
|
export declare function unlinkDeviceInternal(channel: string, appId: string, options: BundleUnlinkOptions, silent?: boolean): Promise<boolean>;
|
|
3
9
|
export declare function unlinkDevice(channel: string, appId: string, options: BundleUnlinkOptions): Promise<void>;
|
|
10
|
+
export {};
|
package/dist/src/key.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ interface Options {
|
|
|
8
8
|
setupChannel?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare function saveKeyInternal(options: SaveOptions, silent?: boolean): Promise<boolean>;
|
|
11
|
-
export declare function saveKey(options: SaveOptions): Promise<void>;
|
|
12
11
|
export declare function deleteOldPrivateKeyInternal(options: Options, silent?: boolean): Promise<boolean>;
|
|
13
|
-
export declare function deleteOldPrivateKey(options: Options, logg?: boolean): Promise<boolean>;
|
|
14
12
|
export declare function saveKeyCommand(options: SaveOptions): Promise<void>;
|
|
15
13
|
export declare function createKeyInternal(options: Options, silent?: boolean): Promise<boolean>;
|
|
16
14
|
export declare function createKey(options: Options): Promise<void>;
|
|
@@ -57,21 +57,6 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
|
|
|
57
57
|
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export type BuildRequestOptions = z.infer<typeof buildRequestOptionsSchema>;
|
|
60
|
-
export declare const buildRequestResponseSchema: z.ZodObject<{
|
|
61
|
-
jobId: z.ZodString;
|
|
62
|
-
folder: z.ZodString;
|
|
63
|
-
status: z.ZodEnum<{
|
|
64
|
-
queued: "queued";
|
|
65
|
-
reserved: "reserved";
|
|
66
|
-
}>;
|
|
67
|
-
artifactKey: z.ZodString;
|
|
68
|
-
uploadUrl: z.ZodString;
|
|
69
|
-
machine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
70
|
-
id: z.ZodString;
|
|
71
|
-
ip: z.ZodString;
|
|
72
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
73
|
-
}, z.core.$strip>;
|
|
74
|
-
export type BuildRequestResponse = z.infer<typeof buildRequestResponseSchema>;
|
|
75
60
|
export declare const buildRequestResultSchema: z.ZodObject<{
|
|
76
61
|
success: z.ZodBoolean;
|
|
77
62
|
jobId: z.ZodOptional<z.ZodString>;
|
|
@@ -136,14 +136,6 @@ export declare const bundleCleanupOptionsSchema: z.ZodObject<{
|
|
|
136
136
|
ignoreChannel: z.ZodBoolean;
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
export type BundleCleanupOptions = z.infer<typeof bundleCleanupOptionsSchema>;
|
|
139
|
-
export declare const bundleUnlinkOptionsSchema: z.ZodObject<{
|
|
140
|
-
apikey: z.ZodString;
|
|
141
|
-
supaHost: z.ZodOptional<z.ZodString>;
|
|
142
|
-
supaAnon: z.ZodOptional<z.ZodString>;
|
|
143
|
-
bundle: z.ZodOptional<z.ZodString>;
|
|
144
|
-
packageJson: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export type BundleUnlinkOptions = z.infer<typeof bundleUnlinkOptionsSchema>;
|
|
147
139
|
export declare const bundleEncryptOptionsSchema: z.ZodObject<{
|
|
148
140
|
key: z.ZodOptional<z.ZodString>;
|
|
149
141
|
keyData: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const regexSemver: RegExp;
|
|
3
|
-
export declare const reverseDomainRegex: RegExp;
|
|
4
2
|
export declare const nativePackageSchema: z.ZodObject<{
|
|
5
3
|
name: z.ZodString;
|
|
6
4
|
version: z.ZodString;
|
|
@@ -40,13 +38,6 @@ export declare const compatibilityDetailsSchema: z.ZodObject<{
|
|
|
40
38
|
message: z.ZodString;
|
|
41
39
|
}, z.core.$strip>;
|
|
42
40
|
export type CompatibilityDetails = z.infer<typeof compatibilityDetailsSchema>;
|
|
43
|
-
export declare const uploadUrlsSchema: z.ZodObject<{
|
|
44
|
-
path: z.ZodString;
|
|
45
|
-
hash: z.ZodString;
|
|
46
|
-
uploadLink: z.ZodString;
|
|
47
|
-
finalPath: z.ZodString;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
export type uploadUrlsType = z.infer<typeof uploadUrlsSchema>;
|
|
50
41
|
export declare const parsedSecurityErrorSchema: z.ZodObject<{
|
|
51
42
|
isSecurityPolicyError: z.ZodBoolean;
|
|
52
43
|
errorCode: z.ZodString;
|
|
@@ -2,20 +2,18 @@ export { appDebugOptionsSchema, appOptionsSchema, appSettingOptionsSchema } from
|
|
|
2
2
|
export type { AppDebugOptions, AppOptions, AppSettingOptions } from './app';
|
|
3
3
|
export { optionsBaseSchema } from './base';
|
|
4
4
|
export type { OptionsBase } from './base';
|
|
5
|
-
export { allCredentialsSchema, buildCredentialsSchema, buildRequestOptionsSchema,
|
|
6
|
-
export type { AllCredentials, BuildCredentials, BuildRequestOptions,
|
|
7
|
-
export { bundleCleanupOptionsSchema, bundleCompatibilityOptionsSchema, bundleDecryptOptionsSchema, bundleDeleteOptionsSchema, bundleEncryptOptionsSchema, bundleReleaseTypeOptionsSchema,
|
|
8
|
-
export type { BundleCleanupOptions, BundleCompatibilityOptions, BundleDecryptOptions, BundleDeleteOptions, BundleEncryptOptions, BundleReleaseTypeOptions,
|
|
5
|
+
export { allCredentialsSchema, buildCredentialsSchema, buildRequestOptionsSchema, buildRequestResultSchema, credentialFileSchema, savedCredentialsSchema, } from './build';
|
|
6
|
+
export type { AllCredentials, BuildCredentials, BuildRequestOptions, BuildRequestResult, CredentialFile, SavedCredentials, } from './build';
|
|
7
|
+
export { bundleCleanupOptionsSchema, bundleCompatibilityOptionsSchema, bundleDecryptOptionsSchema, bundleDeleteOptionsSchema, bundleEncryptOptionsSchema, bundleReleaseTypeOptionsSchema, bundleZipOptionsSchema, decryptResultSchema, encryptResultSchema, optionsUploadSchema, uploadBundleResultSchema, zipResultSchema, } from './bundle';
|
|
8
|
+
export type { BundleCleanupOptions, BundleCompatibilityOptions, BundleDecryptOptions, BundleDeleteOptions, BundleEncryptOptions, BundleReleaseTypeOptions, BundleZipOptions, DecryptResult, EncryptResult, OptionsUpload, UploadBundleResult, ZipResult, } from './bundle';
|
|
9
9
|
export { channelAddOptionsSchema, channelCurrentBundleOptionsSchema, channelDeleteOptionsSchema, channelSchema, optionsSetChannelSchema } from './channel';
|
|
10
10
|
export type { Channel, ChannelAddOptions, ChannelCurrentBundleOptions, ChannelDeleteOptions, OptionsSetChannel } from './channel';
|
|
11
|
-
export { compatibilityDetailsSchema, compatibilitySchema, incompatibilityReasonSchema, nativePackageSchema, parsedSecurityErrorSchema
|
|
12
|
-
export type { Compatibility, CompatibilityDetails, IncompatibilityReason, NativePackage, ParsedSecurityError
|
|
11
|
+
export { compatibilityDetailsSchema, compatibilitySchema, incompatibilityReasonSchema, nativePackageSchema, parsedSecurityErrorSchema } from './common';
|
|
12
|
+
export type { Compatibility, CompatibilityDetails, IncompatibilityReason, NativePackage, ParsedSecurityError } from './common';
|
|
13
13
|
export { capacitorConfigSchema, extConfigPairsSchema } from './config';
|
|
14
14
|
export type { CapacitorConfig, ExtConfigPairs } from './config';
|
|
15
|
-
export { rsaKeysSchema } from './crypto';
|
|
16
|
-
export type { RSAKeys } from './crypto';
|
|
17
15
|
export { organizationAddOptionsSchema, organizationDeleteOptionsSchema, organizationSetOptionsSchema, passwordPolicyConfigSchema } from './organization';
|
|
18
16
|
export type { OrganizationAddOptions, OrganizationDeleteOptions, OrganizationSetOptions, PasswordPolicyConfig } from './organization';
|
|
19
|
-
export { accountIdOptionsSchema, addAppOptionsSchema, addChannelOptionsSchema, addOrganizationOptionsSchema, appInfoSchema, bundleInfoSchema, cleanupOptionsSchema, currentBundleOptionsSchema, decryptBundleOptionsSchema, deleteOldKeyOptionsSchema, deleteOrganizationOptionsSchema, deviceStatsSchema, doctorOptionsSchema, encryptBundleOptionsSchema, generateKeyOptionsSchema, getStatsOptionsSchema, listOrganizationsOptionsSchema, loginOptionsSchema, organizationInfoSchema, saveKeyOptionsSchema, bundleCompatibilityOptionsSchema as sdkBundleCompatibilityOptionsSchema, requestBuildOptionsSchema as sdkRequestBuildOptionsSchema,
|
|
17
|
+
export { accountIdOptionsSchema, addAppOptionsSchema, addChannelOptionsSchema, addOrganizationOptionsSchema, appInfoSchema, bundleInfoSchema, cleanupOptionsSchema, currentBundleOptionsSchema, decryptBundleOptionsSchema, deleteOldKeyOptionsSchema, deleteOrganizationOptionsSchema, deviceStatsSchema, doctorOptionsSchema, encryptBundleOptionsSchema, generateKeyOptionsSchema, getStatsOptionsSchema, listOrganizationsOptionsSchema, loginOptionsSchema, organizationInfoSchema, saveKeyOptionsSchema, bundleCompatibilityOptionsSchema as sdkBundleCompatibilityOptionsSchema, requestBuildOptionsSchema as sdkRequestBuildOptionsSchema, setSettingOptionsSchema, statsOrderSchema, updateAppOptionsSchema, updateChannelOptionsSchema, updateOrganizationOptionsSchema, uploadOptionsSchema, uploadResultSchema, zipBundleOptionsSchema, } from './sdk';
|
|
20
18
|
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetStatsOptions, ListOrganizationsOptions, LoginOptions, OrganizationInfo, SaveKeyOptions, BundleCompatibilityOptions as SdkBundleCompatibilityOptions, RequestBuildOptions as SdkRequestBuildOptions, SDKResult, SetSettingOptions, StatsOrder, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBundleOptions, } from './sdk';
|
|
21
19
|
export { validateOptions } from './validate';
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sdkResultSchema: z.ZodObject<{
|
|
3
|
-
success: z.ZodBoolean;
|
|
4
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
5
|
-
error: z.ZodOptional<z.ZodString>;
|
|
6
|
-
securityPolicyMessage: z.ZodOptional<z.ZodString>;
|
|
7
|
-
isSecurityPolicyError: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
2
|
export interface SDKResult<T = void> {
|
|
11
3
|
success: boolean;
|
|
12
4
|
data?: T;
|