@capgo/cli 7.71.7 → 7.71.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "7.71.7",
4
+ "version": "7.71.9",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -3,11 +3,11 @@ export declare function generateSessionKey(key: string): {
3
3
  sessionKey: Buffer;
4
4
  ivSessionKey: string;
5
5
  };
6
- export declare function encryptSourceV2(source: Buffer, sessionKey: Buffer, ivSessionKey: string): Buffer;
7
- export declare function decryptSourceV2(source: Buffer, ivSessionKey: string, key: string): Buffer;
8
- export declare function encryptChecksumV2(checksum: string, key: string): string;
6
+ export declare function encryptSource(source: Buffer, sessionKey: Buffer, ivSessionKey: string): Buffer;
7
+ export declare function decryptSource(source: Buffer, ivSessionKey: string, key: string): Buffer;
8
+ export declare function encryptChecksum(checksum: string, key: string): string;
9
9
  export declare function encryptChecksumV3(checksum: string, key: string): string;
10
- export declare function decryptChecksumV2(checksum: string, key: string): string;
10
+ export declare function decryptChecksum(checksum: string, key: string): string;
11
11
  export declare function decryptChecksumV3(checksum: string, key: string): string;
12
12
  export interface RSAKeys {
13
13
  publicKey: string;
@@ -0,0 +1,13 @@
1
+ interface Options {
2
+ key?: string;
3
+ keyData?: string;
4
+ checksum?: string;
5
+ packageJson?: string;
6
+ }
7
+ export interface DecryptResult {
8
+ outputPath: string;
9
+ checksumMatches?: boolean;
10
+ }
11
+ export declare function decryptZipInternal(zipPath: string, ivsessionKey: string, options: Options, silent?: boolean): Promise<DecryptResult>;
12
+ export declare function decryptZip(zipPath: string, ivsessionKey: string, options: Options): Promise<void>;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ interface Options {
2
+ key?: string;
3
+ keyData?: string;
4
+ json?: boolean;
5
+ packageJson?: string;
6
+ }
7
+ export interface EncryptResult {
8
+ checksum: string;
9
+ filename: string;
10
+ ivSessionKey: string;
11
+ }
12
+ export declare function encryptZipInternal(zipPath: string, checksum: string, options: Options, silent?: boolean): Promise<EncryptResult>;
13
+ export declare function encryptZip(zipPath: string, checksum: string, options: Options): Promise<void>;
14
+ export {};
@@ -0,0 +1,18 @@
1
+ interface SaveOptions {
2
+ key?: string;
3
+ keyData?: string;
4
+ setupChannel?: boolean;
5
+ }
6
+ interface Options {
7
+ force?: boolean;
8
+ setupChannel?: boolean;
9
+ }
10
+ export declare function saveKeyInternal(options: SaveOptions, silent?: boolean): Promise<boolean>;
11
+ export declare function saveKey(options: SaveOptions): Promise<void>;
12
+ export declare function deleteOldPrivateKeyInternal(options: Options, silent?: boolean): Promise<boolean>;
13
+ export declare function deleteOldPrivateKey(options: Options, logg?: boolean): Promise<boolean>;
14
+ export declare function saveKeyCommand(options: SaveOptions): Promise<void>;
15
+ export declare function createKeyInternal(options: Options, silent?: boolean): Promise<boolean>;
16
+ export declare function createKey(options: Options): Promise<void>;
17
+ export declare function deleteOldKey(options: Options): Promise<void>;
18
+ export {};
package/dist/src/sdk.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Channel } from './api/channels';
2
2
  import type { BuildCredentials } from './build/request';
3
- import type { DecryptResult } from './bundle/decryptV2';
4
- import type { EncryptResult } from './bundle/encryptV2';
3
+ import type { DecryptResult } from './bundle/decrypt';
4
+ import type { EncryptResult } from './bundle/encrypt';
5
5
  import type { UploadBundleResult } from './bundle/upload';
6
6
  import type { ZipResult } from './bundle/zip';
7
7
  import { getInfoInternal } from './app/info';