n8n-nodes-openpgp 0.0.0 → 0.2.0
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 +1 -8
- package/dist/credentials/OpenPgpPrivateKeyApi.credentials.d.ts +8 -0
- package/dist/credentials/OpenPgpPrivateKeyApi.credentials.js +39 -0
- package/dist/credentials/OpenPgpPrivateKeyApi.credentials.js.map +1 -0
- package/dist/credentials/openPgpPrivateKeyApi.svg +6 -0
- package/dist/nodes/OpenPgp/OpenPgp.node.d.ts +10 -0
- package/dist/nodes/OpenPgp/OpenPgp.node.js +683 -0
- package/dist/nodes/OpenPgp/OpenPgp.node.js.map +1 -0
- package/dist/nodes/OpenPgp/helpers.d.ts +76 -0
- package/dist/nodes/OpenPgp/helpers.js +290 -0
- package/dist/nodes/OpenPgp/helpers.js.map +1 -0
- package/dist/nodes/OpenPgp/openPgp.svg +5 -0
- package/dist/nodes/OpenPgp/operations.d.ts +5 -0
- package/dist/nodes/OpenPgp/operations.js +236 -0
- package/dist/nodes/OpenPgp/operations.js.map +1 -0
- package/dist/package.json +77 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +75 -20
package/README.md
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
# n8n-
|
|
2
|
-
|
|
3
|
-
**Placeholder.** This package name is reserved for the OpenPGP community node
|
|
4
|
-
for n8n (encrypt / decrypt / sign / verify, built on OpenPGP.js).
|
|
5
|
-
|
|
6
|
-
This 0.0.0 version installs nothing and does nothing. The real package is
|
|
7
|
-
published from the repo's release pipeline — see
|
|
8
|
-
<https://github.com/calvertjadon/n8n-nodes-openpgp>.
|
|
1
|
+
# n8n-openpgp
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class OpenPgpPrivateKeyApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
icon: "file:openPgpPrivateKeyApi.svg";
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenPgpPrivateKeyApi = void 0;
|
|
4
|
+
class OpenPgpPrivateKeyApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'openPgpPrivateKeyApi';
|
|
7
|
+
this.displayName = 'OpenPGP Private Key API';
|
|
8
|
+
this.documentationUrl = 'https://github.com/calvertjadon/n8n-nodes-openpgp#readme';
|
|
9
|
+
this.icon = 'file:openPgpPrivateKeyApi.svg';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Private Key',
|
|
13
|
+
name: 'privateKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
password: true,
|
|
17
|
+
rows: 6,
|
|
18
|
+
},
|
|
19
|
+
default: '',
|
|
20
|
+
required: true,
|
|
21
|
+
placeholder: 'e.g. -----BEGIN PGP PRIVATE KEY BLOCK-----',
|
|
22
|
+
description: 'The armored private key used to decrypt and sign. Paste the complete block, including the BEGIN and END lines.',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Passphrase',
|
|
26
|
+
name: 'passphrase',
|
|
27
|
+
type: 'string',
|
|
28
|
+
typeOptions: {
|
|
29
|
+
password: true,
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
placeholder: 'e.g. the passphrase of the private key',
|
|
33
|
+
description: 'The passphrase that unlocks the private key. Leave empty when the key is not protected by one.',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.OpenPgpPrivateKeyApi = OpenPgpPrivateKeyApi;
|
|
39
|
+
//# sourceMappingURL=OpenPgpPrivateKeyApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenPgpPrivateKeyApi.credentials.js","sourceRoot":"","sources":["../../credentials/OpenPgpPrivateKeyApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAAjC;QACC,SAAI,GAAG,sBAAsB,CAAC;QAE9B,gBAAW,GAAG,yBAAyB,CAAC;QAExC,qBAAgB,GAAG,0DAA0D,CAAC;QAE9E,SAAI,GAAG,+BAAwC,CAAC;QAEhD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;oBACd,IAAI,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4CAA4C;gBACzD,WAAW,EACV,gHAAgH;aACjH;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,wCAAwC;gBACrD,WAAW,EACV,gGAAgG;aACjG;SACD,CAAC;IACH,CAAC;CAAA;AArCD,oDAqCC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#EA4B71" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<rect x="3.5" y="10" width="17" height="11" rx="2.5" />
|
|
3
|
+
<path d="M7.5 10V7.5a4.5 4.5 0 0 1 9 0V10" />
|
|
4
|
+
<circle cx="12" cy="15.5" r="1.5" fill="#EA4B71" stroke="none" />
|
|
5
|
+
<path d="M12 17v2.5" />
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ICredentialTestFunctions, type ICredentialsDecrypted, type IExecuteFunctions, type INodeCredentialTestResult, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class OpenPgp implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
methods: {
|
|
6
|
+
credentialTest: {
|
|
7
|
+
openPgpPrivateKeyTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|