n8n-nodes-cred-sync 0.1.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.
@@ -0,0 +1,6 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class SshCredentials implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ properties: INodeProperties[];
6
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SshCredentials = void 0;
4
+ class SshCredentials {
5
+ constructor() {
6
+ this.name = 'sshCredentialsApi';
7
+ this.displayName = 'SSH + PostgreSQL Credentials';
8
+ this.properties = [
9
+ {
10
+ displayName: 'Host',
11
+ name: 'host',
12
+ type: 'string',
13
+ default: '',
14
+ placeholder: '192.168.1.100',
15
+ required: true,
16
+ description: 'SSH server hostname or IP address',
17
+ },
18
+ {
19
+ displayName: 'Port',
20
+ name: 'port',
21
+ type: 'number',
22
+ default: 22,
23
+ description: 'SSH port number',
24
+ },
25
+ {
26
+ displayName: 'Username',
27
+ name: 'username',
28
+ type: 'string',
29
+ default: 'root',
30
+ required: true,
31
+ description: 'SSH username',
32
+ },
33
+ {
34
+ displayName: 'Authentication Method',
35
+ name: 'authMethod',
36
+ type: 'options',
37
+ options: [
38
+ { name: 'Password', value: 'password' },
39
+ { name: 'Private Key', value: 'privateKey' },
40
+ ],
41
+ default: 'password',
42
+ description: 'SSH authentication method',
43
+ },
44
+ {
45
+ displayName: 'Password',
46
+ name: 'password',
47
+ type: 'string',
48
+ typeOptions: { password: true },
49
+ default: '',
50
+ displayOptions: {
51
+ show: { authMethod: ['password'] },
52
+ },
53
+ description: 'SSH password',
54
+ },
55
+ {
56
+ displayName: 'Private Key',
57
+ name: 'privateKey',
58
+ type: 'string',
59
+ typeOptions: { password: true, rows: 5 },
60
+ default: '',
61
+ displayOptions: {
62
+ show: { authMethod: ['privateKey'] },
63
+ },
64
+ description: 'PEM-formatted SSH private key',
65
+ },
66
+ {
67
+ displayName: 'Passphrase',
68
+ name: 'passphrase',
69
+ type: 'string',
70
+ typeOptions: { password: true },
71
+ default: '',
72
+ displayOptions: {
73
+ show: { authMethod: ['privateKey'] },
74
+ },
75
+ description: 'Passphrase for the private key (leave empty if none)',
76
+ },
77
+ {
78
+ displayName: 'PostgreSQL User',
79
+ name: 'postgresUser',
80
+ type: 'string',
81
+ default: 'postgres',
82
+ required: true,
83
+ description: 'PostgreSQL username for database queries',
84
+ },
85
+ {
86
+ displayName: 'PostgreSQL Database',
87
+ name: 'postgresDatabase',
88
+ type: 'string',
89
+ default: 'n8n',
90
+ description: 'PostgreSQL database name',
91
+ },
92
+ ];
93
+ }
94
+ }
95
+ exports.SshCredentials = SshCredentials;
96
+ //# sourceMappingURL=SshCredentials.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SshCredentials.credentials.js","sourceRoot":"","sources":["../../credentials/SshCredentials.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,mBAAmB,CAAC;QAC3B,gBAAW,GAAG,8BAA8B,CAAC;QAC7C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,eAAe;gBAC5B,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;aAChD;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iBAAiB;aAC9B;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;gBACf,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,cAAc;aAC3B;YACD;gBACC,WA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ACnB,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,0CAA0C;aACvD;YACD;gBACC,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,0BAA0B;aACvC;SACD,CAAC;IACH,CAAC;CAAA;AAxFD,wCAwFC"}
@@ -0,0 +1,11 @@
1
+ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class CredentialShare implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getUsers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getCredentials(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
+ };
9
+ };
10
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
11
+ }
@@ -0,0 +1,338 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CredentialShare = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const ssh_utils_1 = require("./ssh.utils");
6
+ const docker_utils_1 = require("./docker.utils");
7
+ const postgres_utils_1 = require("./postgres.utils");
8
+ class CredentialShare {
9
+ constructor() {
10
+ this.description = {
11
+ displayName: 'Credential Share',
12
+ name: 'credentialShare',
13
+ icon: 'file:credentialshare.svg',
14
+ group: ['transform'],
15
+ version: 1,
16
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
17
+ description: 'Share n8n credentials between users via SSH + Docker + PostgreSQL',
18
+ defaults: {
19
+ name: 'Credential Share',
20
+ },
21
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
23
+ credentials: [
24
+ {
25
+ name: 'sshCredentialsApi',
26
+ required: true,
27
+ },
28
+ ],
29
+ properties: [
30
+ {
31
+ displayName: 'Resource',
32
+ name: 'resource',
33
+ type: 'options',
34
+ noDataExpression: true,
35
+ options: [
36
+ { name: 'User', value: 'user' },
37
+ { name: 'Credential', value: 'credential' },
38
+ ],
39
+ default: 'user',
40
+ },
41
+ {
42
+ displayName: 'Operation',
43
+ name: 'operation',
44
+ type: 'options',
45
+ noDataExpression: true,
46
+ displayOptions: {
47
+ show: { resource: ['user'] },
48
+ },
49
+ options: [
50
+ {
51
+ name: 'Get All',
52
+ value: 'getAll',
53
+ description: 'List all n8n users',
54
+ action: 'List all users',
55
+ },
56
+ ],
57
+ default: 'getAll',
58
+ },
59
+ {
60
+ displayName: 'Operation',
61
+ name: 'operation',
62
+ type: 'options',
63
+ noDataExpression: true,
64
+ displayOptions: {
65
+ show: { resource: ['credential'] },
66
+ },
67
+ options: [
68
+ {
69
+ name: 'Get All',
70
+ value: 'getAll',
71
+ description: 'List all credentials',
72
+ action: 'List all credentials',
73
+ },
74
+ {
75
+ name: 'Share',
76
+ value: 'share',
77
+ description: 'Share an existing credential with a user',
78
+ action: 'Share a credential',
79
+ },
80
+ {
81
+ name: 'Create',
82
+ value: 'create',
83
+ description: 'Create a new credential and optionally share it',
84
+ action: 'Create a credential',
85
+ },
86
+ ],
87
+ default: 'getAll',
88
+ },
89
+ {
90
+ displayName: 'Credential',
91
+ name: 'credentialId',
92
+ type: 'options',
93
+ typeOptions: {
94
+ loadOptionsMethod: 'getCredentials',
95
+ },
96
+ required: true,
97
+ default: '',
98
+ displayOptions: {
99
+ show: { resource: ['credential'], operation: ['share'] },
100
+ },
101
+ description: 'Select the credential to share',
102
+ },
103
+ {
104
+ displayName: 'User',
105
+ name: 'userId',
106
+ type: 'options',
107
+ typeOptions: {
108
+ loadOptionsMethod: 'getUsers',
109
+ },
110
+ required: true,
111
+ default: '',
112
+ displayOptions: {
113
+ show: { resource: ['credential'], operation: ['share'] },
114
+ },
115
+ description: 'Select the user to share the credential with',
116
+ },
117
+ {
118
+ displayName: 'Role',
119
+ name: 'shareRole',
120
+ type: 'options',
121
+ options: [
122
+ { name: 'Owner', value: 'credential:owner' },
123
+ { name: 'User', value: 'credential:user' },
124
+ ],
125
+ default: 'credential:owner',
126
+ displayOptions: {
127
+ show: { resource: ['credential'], operation: ['share'] },
128
+ },
129
+ description: 'Role to assign for the shared credential',
130
+ },
131
+ {
132
+ displayName: 'Credential Name',
133
+ name: 'credentialName',
134
+ type: 'string',
135
+ required: true,
136
+ default: '',
137
+ placeholder: 'e.g. Gmail Account',
138
+ displayOptions: {
139
+ show: { resource: ['credential'], operation: ['create'] },
140
+ },
141
+ description: 'Display name for the new credential',
142
+ },
143
+ {
144
+ displayName: 'Credential Type',
145
+ name: 'credentialType',
146
+ type: 'string',
147
+ required: true,
148
+ default: '',
149
+ placeholder: 'e.g. gmailOAuth2, httpBasicAuth, slackApi',
150
+ displayOptions: {
151
+ show: { resource: ['credential'], operation: ['create'] },
152
+ },
153
+ description: 'The n8n credential type identifier',
154
+ },
155
+ {
156
+ displayName: 'Credential Data (JSON)',
157
+ name: 'credentialData',
158
+ type: 'json',
159
+ required: true,
160
+ default: '{}',
161
+ displayOptions: {
162
+ show: { resource: ['credential'], operation: ['create'] },
163
+ },
164
+ description: 'JSON object with credential fields (e.g. {"clientId":"...","clientSecret":"..."})',
165
+ },
166
+ {
167
+ displayName: 'Share with User',
168
+ name: 'shareWithUser',
169
+ type: 'boolean',
170
+ default: true,
171
+ displayOptions: {
172
+ show: { resource: ['credential'], operation: ['create'] },
173
+ },
174
+ description: 'Whether to immediately share the new credential with a user',
175
+ },
176
+ {
177
+ displayName: 'User',
178
+ name: 'createShareUserId',
179
+ type: 'options',
180
+ typeOptions: {
181
+ loadOptionsMethod: 'getUsers',
182
+ },
183
+ default: '',
184
+ displayOptions: {
185
+ show: {
186
+ resource: ['credential'],
187
+ operation: ['create'],
188
+ shareWithUser: [true],
189
+ },
190
+ },
191
+ description: 'Select the user to share the new credential with',
192
+ },
193
+ ],
194
+ };
195
+ this.methods = {
196
+ loadOptions: {
197
+ async getUsers() {
198
+ const credentials = await this.getCredentials('sshCredentialsApi');
199
+ const sshConfig = (0, ssh_utils_1.buildSshConfig)(credentials);
200
+ const containers = await (0, docker_utils_1.discoverContainers)(sshConfig);
201
+ const csvOutput = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, credentials.postgresUser, credentials.postgresDatabase, (0, postgres_utils_1.queryListUsers)());
202
+ const users = (0, postgres_utils_1.parseCsvOutput)(csvOutput);
203
+ return users
204
+ .map((u) => ({
205
+ name: `${u.firstName} ${u.lastName} (${u.email})`,
206
+ value: u.id,
207
+ }))
208
+ .sort((a, b) => a.name.localeCompare(b.name));
209
+ },
210
+ async getCredentials() {
211
+ const credentials = await this.getCredentials('sshCredentialsApi');
212
+ const sshConfig = (0, ssh_utils_1.buildSshConfig)(credentials);
213
+ const containers = await (0, docker_utils_1.discoverContainers)(sshConfig);
214
+ const csvOutput = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, credentials.postgresUser, credentials.postgresDatabase, (0, postgres_utils_1.queryListCredentials)());
215
+ const creds = (0, postgres_utils_1.parseCsvOutput)(csvOutput);
216
+ return creds.map((c) => ({
217
+ name: `${c.name} (${c.type})`,
218
+ value: c.id,
219
+ }));
220
+ },
221
+ },
222
+ };
223
+ }
224
+ async execute() {
225
+ const items = this.getInputData();
226
+ const returnData = [];
227
+ const credentials = await this.getCredentials('sshCredentialsApi');
228
+ const sshConfig = (0, ssh_utils_1.buildSshConfig)(credentials);
229
+ const containers = await (0, docker_utils_1.discoverContainers)(sshConfig);
230
+ const pgUser = credentials.postgresUser;
231
+ const pgDb = credentials.postgresDatabase;
232
+ const resource = this.getNodeParameter('resource', 0);
233
+ const operation = this.getNodeParameter('operation', 0);
234
+ for (let i = 0; i < items.length; i++) {
235
+ try {
236
+ if (resource === 'user' && operation === 'getAll') {
237
+ const csv = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryListUsers)());
238
+ const users = (0, postgres_utils_1.parseCsvOutput)(csv);
239
+ for (const user of users) {
240
+ returnData.push({ json: user });
241
+ }
242
+ }
243
+ else if (resource === 'credential' && operation === 'getAll') {
244
+ const csv = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryListCredentials)());
245
+ const creds = (0, postgres_utils_1.parseCsvOutput)(csv);
246
+ for (const cred of creds) {
247
+ returnData.push({ json: cred });
248
+ }
249
+ }
250
+ else if (resource === 'credential' && operation === 'share') {
251
+ const credentialId = this.getNodeParameter('credentialId', i);
252
+ const userId = this.getNodeParameter('userId', i);
253
+ const role = this.getNodeParameter('shareRole', i);
254
+ const projCsv = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryUserProject)(userId));
255
+ const projects = (0, postgres_utils_1.parseCsvOutput)(projCsv);
256
+ if (projects.length === 0) {
257
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No personal project found for user ${userId}`, { itemIndex: i });
258
+ }
259
+ const projectId = projects[0].id;
260
+ await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryShareCredential)(credentialId, projectId, role));
261
+ returnData.push({
262
+ json: {
263
+ success: true,
264
+ credentialId,
265
+ projectId,
266
+ userId,
267
+ role,
268
+ },
269
+ });
270
+ }
271
+ else if (resource === 'credential' && operation === 'create') {
272
+ const credName = this.getNodeParameter('credentialName', i);
273
+ const credType = this.getNodeParameter('credentialType', i);
274
+ const credDataRaw = this.getNodeParameter('credentialData', i);
275
+ const shareWithUser = this.getNodeParameter('shareWithUser', i);
276
+ let credData;
277
+ if (typeof credDataRaw === 'string') {
278
+ try {
279
+ credData = JSON.parse(credDataRaw);
280
+ }
281
+ catch {
282
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Invalid JSON in Credential Data', { itemIndex: i });
283
+ }
284
+ }
285
+ else {
286
+ credData = credDataRaw;
287
+ }
288
+ const encKey = await (0, docker_utils_1.getEncryptionKey)(sshConfig, containers, pgUser, pgDb);
289
+ const encrypted = await (0, docker_utils_1.encryptCredentialData)(sshConfig, containers.n8nContainer, encKey, credData);
290
+ const insertCsv = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryInsertCredential)(credName, credType, encrypted));
291
+ const insertResult = (0, postgres_utils_1.parseCsvOutput)(insertCsv);
292
+ if (insertResult.length === 0) {
293
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Failed to insert credential - no ID returned', { itemIndex: i });
294
+ }
295
+ const newCredentialId = insertResult[0].id;
296
+ let sharedWithUserId = '';
297
+ let sharedProjectId = '';
298
+ if (shareWithUser) {
299
+ const userId = this.getNodeParameter('createShareUserId', i);
300
+ const projCsv = await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryUserProject)(userId));
301
+ const projects = (0, postgres_utils_1.parseCsvOutput)(projCsv);
302
+ if (projects.length === 0) {
303
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No personal project found for user ${userId}`, { itemIndex: i });
304
+ }
305
+ const projectId = projects[0].id;
306
+ await (0, docker_utils_1.dockerPsql)(sshConfig, containers.postgresContainer, pgUser, pgDb, (0, postgres_utils_1.queryShareCredential)(newCredentialId, projectId));
307
+ sharedWithUserId = userId;
308
+ sharedProjectId = projectId;
309
+ }
310
+ returnData.push({
311
+ json: {
312
+ success: 'true',
313
+ credentialId: newCredentialId,
314
+ name: credName,
315
+ type: credType,
316
+ sharedWithUserId,
317
+ projectId: sharedProjectId,
318
+ },
319
+ });
320
+ }
321
+ }
322
+ catch (error) {
323
+ if (this.continueOnFail()) {
324
+ returnData.push({
325
+ json: { error: error.message },
326
+ pairedItem: { item: i },
327
+ });
328
+ }
329
+ else {
330
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
331
+ }
332
+ }
333
+ }
334
+ return [returnData];
335
+ }
336
+ }
337
+ exports.CredentialShare = CredentialShare;
338
+ //# sourceMappingURL=CredentialShare.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialShare.node.js","sourceRoot":"","sources":["../../../nodes/CredentialShare/CredentialShare.node.ts"],"names":[],"mappings":";;;AAQA,+CAAuE;AAEvE,2CAA6C;AAC7C,iDAKwB;AACxB,qDAO0B;AAG1B,MAAa,eAAe;IAA5B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE;gBACT,IAAI,EAAE,kBAAkB;aACxB;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,mBAAmB;oBACzB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBAEX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;qBAC3C;oBACD,OAAO,EAAE,MAAM;iBACf;gBAGD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE;wBACf,IAAI,EAAE,EA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"codexVersion": "1.0",
5
+ "categories": ["Miscellaneous"],
6
+ "resources": {
7
+ "primaryDocumentation": [
8
+ {
9
+ "url": "https://github.com/n8n-nodes-credential-share"
10
+ }
11
+ ]
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none">
2
+ <rect width="60" height="60" rx="12" fill="#FF6D5A"/>
3
+ <path d="M30 16c-4.4 0-8 3.6-8 8 0 2.8 1.5 5.3 3.7 6.7L24 38h12l-1.7-7.3c2.2-1.4 3.7-3.9 3.7-6.7 0-4.4-3.6-8-8-8zm0 4c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4z" fill="white"/>
4
+ <path d="M40 42H20c-1.1 0-2 .9-2 2s.9 2 2 2h20c1.1 0 2-.9 2-2s-.9-2-2-2z" fill="white" opacity="0.7"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ import type { ConnectConfig } from 'ssh2';
2
+ import type { IContainerPair } from './interfaces';
3
+ export declare function discoverContainers(sshConfig: ConnectConfig): Promise<IContainerPair>;
4
+ export declare function dockerPsql(sshConfig: ConnectConfig, postgresContainer: string, postgresUser: string, postgresDatabase: string, query: string, timeoutMs?: number): Promise<string>;
5
+ export declare function getEncryptionKey(sshConfig: ConnectConfig, containers: IContainerPair, postgresUser: string, postgresDatabase: string): Promise<string>;
6
+ export declare function encryptCredentialData(sshConfig: ConnectConfig, n8nContainer: string, encryptionKey: string, data: Record<string, unknown>): Promise<string>;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.discoverContainers = discoverContainers;
4
+ exports.dockerPsql = dockerPsql;
5
+ exports.getEncryptionKey = getEncryptionKey;
6
+ exports.encryptCredentialData = encryptCredentialData;
7
+ const ssh_utils_1 = require("./ssh.utils");
8
+ async function discoverContainers(sshConfig) {
9
+ const result = await (0, ssh_utils_1.sshExec)(sshConfig, 'docker ps --format "{{.ID}}\\t{{.Names}}\\t{{.Image}}" | grep -E "n8n|postgres"');
10
+ if (result.code !== 0 && result.code !== 1) {
11
+ throw new Error(`Failed to list Docker containers: ${result.stderr}`);
12
+ }
13
+ const lines = result.stdout.trim().split('\n').filter(Boolean);
14
+ let n8nContainer = '';
15
+ let postgresContainer = '';
16
+ for (const line of lines) {
17
+ const [, name, image] = line.split('\t');
18
+ if (image && image.includes('n8n') && !image.includes('postgres')) {
19
+ n8nContainer = name;
20
+ }
21
+ else if (image && image.includes('postgres')) {
22
+ postgresContainer = name;
23
+ }
24
+ }
25
+ if (!n8nContainer) {
26
+ throw new Error('Could not find a running n8n container');
27
+ }
28
+ if (!postgresContainer) {
29
+ throw new Error('Could not find a running PostgreSQL container');
30
+ }
31
+ return { n8nContainer, postgresContainer };
32
+ }
33
+ async function dockerPsql(sshConfig, postgresContainer, postgresUser, postgresDatabase, query, timeoutMs = 30000) {
34
+ const safeQuery = query.replace(/'/g, "'\\''");
35
+ const command = `docker exec ${postgresContainer} psql -U ${postgresUser} -d ${postgresDatabase} --csv -c '${safeQuery}'`;
36
+ const result = await (0, ssh_utils_1.sshExec)(sshConfig, command, timeoutMs);
37
+ if (result.code !== 0) {
38
+ throw new Error(`PostgreSQL query failed: ${result.stderr || result.stdout}`);
39
+ }
40
+ return result.stdout;
41
+ }
42
+ async function getEncryptionKey(sshConfig, containers, postgresUser, postgresDatabase) {
43
+ const envResult = await (0, ssh_utils_1.sshExec)(sshConfig, `docker exec ${containers.n8nContainer} env | grep -i N8N_ENCRYPTION_KEY`);
44
+ if (envResult.code === 0 && envResult.stdout.trim()) {
45
+ const match = envResult.stdout.trim().match(/N8N_ENCRYPTION_KEY=(.+)/i);
46
+ if (match) {
47
+ return match[1].trim();
48
+ }
49
+ }
50
+ const settingsQuery = "SELECT value FROM settings WHERE key = 'encryptionKey'";
51
+ const safeQuery = settingsQuery.replace(/'/g, "'\\''");
52
+ const command = `docker exec ${containers.postgresContainer} psql -U ${postgresUser} -d ${postgresDatabase} -t -A -c '${safeQuery}'`;
53
+ const dbResult = await (0, ssh_utils_1.sshExec)(sshConfig, command);
54
+ if (dbResult.code !== 0 || !dbResult.stdout.trim()) {
55
+ throw new Error('Could not find n8n encryption key in environment or database');
56
+ }
57
+ let key = dbResult.stdout.trim();
58
+ if (key.startsWith('"') && key.endsWith('"')) {
59
+ key = key.slice(1, -1);
60
+ }
61
+ return key;
62
+ }
63
+ async function encryptCredentialData(sshConfig, n8nContainer, encryptionKey, data) {
64
+ const jsCode = `
65
+ const { createCipheriv, createHash, randomBytes } = require('crypto');
66
+ const encryptionKey = ${JSON.stringify(encryptionKey)};
67
+ const RANDOM_BYTES = Buffer.from('53616c7465645f5f', 'hex');
68
+ function encrypt(data) {
69
+ const salt = randomBytes(8);
70
+ const password = Buffer.concat([Buffer.from(encryptionKey, 'binary'), salt]);
71
+ const hash1 = createHash('md5').update(password).digest();
72
+ const hash2 = createHash('md5').update(Buffer.concat([hash1, password])).digest();
73
+ const iv = createHash('md5').update(Buffer.concat([hash2, password])).digest();
74
+ const key = Buffer.concat([hash1, hash2]);
75
+ const cipher = createCipheriv('aes-256-cbc', key, iv);
76
+ const encrypted = cipher.update(typeof data === 'string' ? data : JSON.stringify(data));
77
+ return Buffer.concat([RANDOM_BYTES, salt, encrypted, cipher.final()]).toString('base64');
78
+ }
79
+ console.log(encrypt(JSON.stringify(${JSON.stringify(data)})));
80
+ `;
81
+ const b64 = Buffer.from(jsCode).toString('base64');
82
+ const command = `docker exec ${n8nContainer} sh -c "echo '${b64}' | base64 -d | node"`;
83
+ const result = await (0, ssh_utils_1.sshExec)(sshConfig, command);
84
+ if (result.code !== 0) {
85
+ throw new Error(`Encryption failed: ${result.stderr || result.stdout}`);
86
+ }
87
+ return result.stdout.trim();
88
+ }
89
+ //# sourceMappingURL=docker.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker.utils.js","sourceRoot":"","sources":["../../../nodes/CredentialShare/docker.utils.ts"],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B,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,27 @@
1
+ export interface IN8nUser {
2
+ [key: string]: string;
3
+ id: string;
4
+ email: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ }
8
+ export interface IN8nCredential {
9
+ [key: string]: string;
10
+ id: string;
11
+ name: string;
12
+ type: string;
13
+ }
14
+ export interface IN8nProject {
15
+ [key: string]: string;
16
+ id: string;
17
+ name: string;
18
+ }
19
+ export interface IContainerPair {
20
+ n8nContainer: string;
21
+ postgresContainer: string;
22
+ }
23
+ export interface ISshExecResult {
24
+ stdout: string;
25
+ stderr: string;
26
+ code: number;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../nodes/CredentialShare/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare function sanitizeSql(value: string): string;
2
+ export declare function parseCsvOutput<T extends Record<string, string>>(csvOutput: string): T[];
3
+ export declare function queryListUsers(): string;
4
+ export declare function queryListCredentials(): string;
5
+ export declare function queryUserProject(userId: string): string;
6
+ export declare function queryInsertCredential(name: string, type: string, encryptedData: string): string;
7
+ export declare function queryShareCredential(credentialId: string, projectId: string, role?: string): string;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sanitizeSql = sanitizeSql;
4
+ exports.parseCsvOutput = parseCsvOutput;
5
+ exports.queryListUsers = queryListUsers;
6
+ exports.queryListCredentials = queryListCredentials;
7
+ exports.queryUserProject = queryUserProject;
8
+ exports.queryInsertCredential = queryInsertCredential;
9
+ exports.queryShareCredential = queryShareCredential;
10
+ function sanitizeSql(value) {
11
+ return value.replace(/'/g, "''");
12
+ }
13
+ function parseCsvOutput(csvOutput) {
14
+ var _a;
15
+ const lines = csvOutput.trim().split('\n').filter(Boolean);
16
+ if (lines.length < 2)
17
+ return [];
18
+ const headers = parseCsvLine(lines[0]);
19
+ const results = [];
20
+ for (let i = 1; i < lines.length; i++) {
21
+ const values = parseCsvLine(lines[i]);
22
+ const obj = {};
23
+ for (let j = 0; j < headers.length; j++) {
24
+ obj[headers[j]] = (_a = values[j]) !== null && _a !== void 0 ? _a : '';
25
+ }
26
+ results.push(obj);
27
+ }
28
+ return results;
29
+ }
30
+ function parseCsvLine(line) {
31
+ const result = [];
32
+ let current = '';
33
+ let inQuotes = false;
34
+ for (const char of line) {
35
+ if (char === '"') {
36
+ inQuotes = !inQuotes;
37
+ }
38
+ else if (char === ',' && !inQuotes) {
39
+ result.push(current.trim());
40
+ current = '';
41
+ }
42
+ else {
43
+ current += char;
44
+ }
45
+ }
46
+ result.push(current.trim());
47
+ return result;
48
+ }
49
+ function queryListUsers() {
50
+ return 'SELECT id, email, "firstName", "lastName" FROM "user"';
51
+ }
52
+ function queryListCredentials() {
53
+ return 'SELECT id, name, type FROM credentials_entity ORDER BY name';
54
+ }
55
+ function queryUserProject(userId) {
56
+ const safeId = sanitizeSql(userId);
57
+ return `SELECT p.id, p.name FROM project p JOIN project_relation pr ON p.id = pr."projectId" WHERE pr."userId" = '${safeId}' AND p.type = 'personal'`;
58
+ }
59
+ function queryInsertCredential(name, type, encryptedData) {
60
+ const safeName = sanitizeSql(name);
61
+ const safeType = sanitizeSql(type);
62
+ const safeData = sanitizeSql(encryptedData);
63
+ return `INSERT INTO credentials_entity (id, name, type, data, "createdAt", "updatedAt", "isManaged", "isGlobal", "isResolvable", "resolvableAllowFallback") VALUES (gen_random_uuid()::text, '${safeName}', '${safeType}', '${safeData}', NOW(), NOW(), false, false, false, false) RETURNING id`;
64
+ }
65
+ function queryShareCredential(credentialId, projectId, role = 'credential:owner') {
66
+ const safeCred = sanitizeSql(credentialId);
67
+ const safeProj = sanitizeSql(projectId);
68
+ const safeRole = sanitizeSql(role);
69
+ return `INSERT INTO shared_credentials ("credentialsId", "projectId", role, "createdAt", "updatedAt") VALUES ('${safeCred}', '${safeProj}', '${safeRole}', NOW(), NOW())`;
70
+ }
71
+ //# sourceMappingURL=postgres.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres.utils.js","sourceRoot":"","sources":["../../../nodes/CredentialShare/postgres.utils.ts"],"names":[],"mappings":";;AAAA,kCAEC;AAED,wCAiBC;AAsBD,wCAEC;AAED,oDAEC;AAED,4CAGC;AAED,sDASC;AAED,oDASC;AA5ED,SAAgB,WAAW,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,cAAc,CAAmC,SAAiB;;IACjF,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC;IAEhC,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,OAAO,GAAQ,EAAE,CAAC;IAExB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,MAAA,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Aa,CAAC,CAAC;IAC5C,OAAO,yLAAyL,QAAQ,OAAO,QAAQ,OAAO,QAAQ,2DAA2D,CAAC;AACnS,CAAC;AAED,SAAgB,oBAAoB,CACnC,YAAoB,EACpB,SAAiB,EACjB,IAAI,GAAG,kBAAkB;IAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAC3C,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,0GAA0G,QAAQ,OAAO,QAAQ,OAAO,QAAQ,kBAAkB,CAAC;AAC3K,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ConnectConfig } from 'ssh2';
2
+ import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
3
+ import type { ISshExecResult } from './interfaces';
4
+ export declare function buildSshConfig(credentials: ICredentialDataDecryptedObject): ConnectConfig;
5
+ export declare function sshExec(config: ConnectConfig, command: string, timeoutMs?: number): Promise<ISshExecResult>;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildSshConfig = buildSshConfig;
4
+ exports.sshExec = sshExec;
5
+ const ssh2_1 = require("ssh2");
6
+ function buildSshConfig(credentials) {
7
+ const config = {
8
+ host: credentials.host,
9
+ port: credentials.port || 22,
10
+ username: credentials.username,
11
+ readyTimeout: 10000,
12
+ };
13
+ if (credentials.authMethod === 'privateKey') {
14
+ config.privateKey = credentials.privateKey;
15
+ if (credentials.passphrase) {
16
+ config.passphrase = credentials.passphrase;
17
+ }
18
+ }
19
+ else {
20
+ config.password = credentials.password;
21
+ }
22
+ return config;
23
+ }
24
+ async function sshExec(config, command, timeoutMs = 30000) {
25
+ return new Promise((resolve, reject) => {
26
+ const conn = new ssh2_1.Client();
27
+ const timer = setTimeout(() => {
28
+ conn.end();
29
+ reject(new Error(`SSH command timed out after ${timeoutMs}ms`));
30
+ }, timeoutMs);
31
+ conn.on('ready', () => {
32
+ conn.exec(command, (err, stream) => {
33
+ if (err) {
34
+ clearTimeout(timer);
35
+ conn.end();
36
+ reject(err);
37
+ return;
38
+ }
39
+ let stdout = '';
40
+ let stderr = '';
41
+ stream.on('data', (data) => {
42
+ stdout += data.toString();
43
+ });
44
+ stream.stderr.on('data', (data) => {
45
+ stderr += data.toString();
46
+ });
47
+ stream.on('close', (code) => {
48
+ clearTimeout(timer);
49
+ conn.end();
50
+ resolve({ stdout, stderr, code: code !== null && code !== void 0 ? code : 0 });
51
+ });
52
+ });
53
+ });
54
+ conn.on('error', (err) => {
55
+ var _a, _b;
56
+ clearTimeout(timer);
57
+ if (err.message.includes('ECONNREFUSED')) {
58
+ reject(new Error(`Cannot connect to ${config.host}:${(_a = config.port) !== null && _a !== void 0 ? _a : 22} - connection refused`));
59
+ }
60
+ else if (err.message.includes('ETIMEDOUT')) {
61
+ reject(new Error(`Connection to ${config.host}:${(_b = config.port) !== null && _b !== void 0 ? _b : 22} timed out`));
62
+ }
63
+ else if (err.message.includes('authentication') || err.message.includes('Auth')) {
64
+ reject(new Error(`Authentication failed for user '${config.username}'`));
65
+ }
66
+ else {
67
+ reject(new Error(`SSH connection failed: ${err.message}`));
68
+ }
69
+ });
70
+ conn.connect(config);
71
+ });
72
+ }
73
+ //# sourceMappingURL=ssh.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssh.utils.js","sourceRoot":"","sources":["../../../nodes/CredentialShare/ssh.utils.ts"],"names":[],"mappings":";;AAKA,wCAkBC;AAED,0BAwDC;AAjFD,+BAA8B;AAK9B,SAAgB,cAAc,CAAC,WAA2C;IACzE,MAAM,MAAM,GAAkB;QAC7B,IAAI,EAAE,WAAW,CAAC,IAAc;QAChC,IAAI,EAAG,WAAW,CAAC,IAAe,IAAI,EAAE;QACxC,QAAQ,EAAE,WAAW,CAAC,QAAkB;QACxC,YAAY,EAAE,KAAM;KACpB,CAAC;IAEF,IAAI,WAAW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Q,GAAG,CAAC,CAAC,CAAC;YAC1E,CAAC;iBAAM,CAAC;gBACP,MAAM,CAAC,IAAI,KAAK,CAAC,0BAA0B,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YAC5D,CAAC;QACF,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "n8n-nodes-cred-sync",
3
+ "version": "0.1.0",
4
+ "description": "n8n community node to share credentials between users via SSH + Docker + PostgreSQL",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "n8n-community-node-package"
8
+ ],
9
+ "main": "index.js",
10
+ "scripts": {
11
+ "build": "tsc && node scripts/copy-assets.js",
12
+ "dev": "tsc --watch",
13
+ "lint": "tsc --noEmit",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "n8n": {
20
+ "n8nNodesApiVersion": 1,
21
+ "credentials": [
22
+ "dist/credentials/SshCredentials.credentials.js"
23
+ ],
24
+ "nodes": [
25
+ "dist/nodes/CredentialShare/CredentialShare.node.js"
26
+ ]
27
+ },
28
+ "dependencies": {
29
+ "ssh2": "^1.16.0"
30
+ },
31
+ "devDependencies": {
32
+ "@types/ssh2": "^1.15.1",
33
+ "typescript": "~5.5.0"
34
+ },
35
+ "peerDependencies": {
36
+ "n8n-workflow": "*"
37
+ }
38
+ }
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts5.6/index.d.ts","../node_modules/form-data/index.d.ts","../node_modules/@types/ssh2/index.d.ts","../node_modules/n8n-workflow/dist/esm/constants.d.ts","../node_modules/n8n-workflow/dist/esm/data-table.types.d.ts","../node_modules/n8n-workflow/dist/esm/deferred-promise.d.ts","../node_modules/@n8n/errors/dist/types.d.ts","../node_modules/@n8n/errors/dist/application.error.d.ts","../node_modules/@n8n/errors/dist/index.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-destructuring.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-computed-destructuring.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-class-extension.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-reserved-variable.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-with-statement.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/index.d.ts","../node_modules/zod/dist/types/v4/core/standard-schema.d.ts","../node_modules/zod/dist/types/v4/core/util.d.ts","../node_modules/zod/dist/types/v4/core/versions.d.ts","../node_modules/zod/dist/types/v4/core/schemas.d.ts","../node_modules/zod/dist/types/v4/core/checks.d.ts","../node_modules/zod/dist/types/v4/core/errors.d.ts","../node_modules/zod/dist/types/v4/core/core.d.ts","../node_modules/zod/dist/types/v4/core/parse.d.ts","../node_modules/zod/dist/types/v4/core/regexes.d.ts","../node_modules/zod/dist/types/v4/locales/ar.d.ts","../node_modules/zod/dist/types/v4/locales/az.d.ts","../node_modules/zod/dist/types/v4/locales/be.d.ts","../node_modules/zod/dist/types/v4/locales/ca.d.ts","../node_modules/zod/dist/types/v4/locales/cs.d.ts","../node_modules/zod/dist/types/v4/locales/de.d.ts","../node_modules/zod/dist/types/v4/locales/en.d.ts","../node_modules/zod/dist/types/v4/locales/es.d.ts","../node_modules/zod/dist/types/v4/locales/fa.d.ts","../node_modules/zod/dist/types/v4/locales/fi.d.ts","../node_modules/zod/dist/types/v4/locales/fr.d.ts","../node_modules/zod/dist/types/v4/locales/fr-ca.d.ts","../node_modules/zod/dist/types/v4/locales/he.d.ts","../node_modules/zod/dist/types/v4/locales/hu.d.ts","../node_modules/zod/dist/types/v4/locales/id.d.ts","../node_modules/zod/dist/types/v4/locales/it.d.ts","../node_modules/zod/dist/types/v4/locales/ja.d.ts","../node_modules/zod/dist/types/v4/locales/kh.d.ts","../node_modules/zod/dist/types/v4/locales/ko.d.ts","../node_modules/zod/dist/types/v4/locales/mk.d.ts","../node_modules/zod/dist/types/v4/locales/ms.d.ts","../node_modules/zod/dist/types/v4/locales/nl.d.ts","../node_modules/zod/dist/types/v4/locales/no.d.ts","../node_modules/zod/dist/types/v4/locales/ota.d.ts","../node_modules/zod/dist/types/v4/locales/ps.d.ts","../node_modules/zod/dist/types/v4/locales/pl.d.ts","../node_modules/zod/dist/types/v4/locales/pt.d.ts","../node_modules/zod/dist/types/v4/locales/ru.d.ts","../node_modules/zod/dist/types/v4/locales/sl.d.ts","../node_modules/zod/dist/types/v4/locales/sv.d.ts","../node_modules/zod/dist/types/v4/locales/ta.d.ts","../node_modules/zod/dist/types/v4/locales/th.d.ts","../node_modules/zod/dist/types/v4/locales/tr.d.ts","../node_modules/zod/dist/types/v4/locales/ua.d.ts","../node_modules/zod/dist/types/v4/locales/ur.d.ts","../node_modules/zod/dist/types/v4/locales/vi.d.ts","../node_modules/zod/dist/types/v4/locales/zh-cn.d.ts","../node_modules/zod/dist/types/v4/locales/zh-tw.d.ts","../node_modules/zod/dist/types/v4/locales/index.d.ts","../node_modules/zod/dist/types/v4/core/registries.d.ts","../node_modules/zod/dist/types/v4/core/doc.d.ts","../node_modules/zod/dist/types/v4/core/function.d.ts","../node_modules/zod/dist/types/v4/core/api.d.ts","../node_modules/zod/dist/types/v4/core/json-schema.d.ts","../node_modules/zod/dist/types/v4/core/to-json-schema.d.ts","../node_modules/zod/dist/types/v4/core/index.d.ts","../node_modules/zod/v4/core/index.d.ts","../node_modules/zod/dist/types/v4/classic/errors.d.ts","../node_modules/zod/dist/types/v4/classic/parse.d.ts","../node_modules/zod/dist/types/v4/classic/schemas.d.ts","../node_modules/zod/dist/types/v4/classic/checks.d.ts","../node_modules/zod/dist/types/v4/classic/compat.d.ts","../node_modules/zod/dist/types/v4/classic/iso.d.ts","../node_modules/zod/dist/types/v4/classic/coerce.d.ts","../node_modules/zod/dist/types/v4/classic/external.d.ts","../node_modules/zod/dist/types/v4/classic/index.d.ts","../node_modules/zod/dist/types/v4/index.d.ts","../node_modules/zod/v4/index.d.ts","../node_modules/n8n-workflow/dist/esm/execution-context.d.ts","../node_modules/n8n-workflow/dist/esm/execution-status.d.ts","../node_modules/n8n-workflow/dist/esm/result.d.ts","../node_modules/n8n-workflow/dist/esm/run-execution-data/run-execution-data.v0.d.ts","../node_modules/n8n-workflow/dist/esm/run-execution-data/run-execution-data.v1.d.ts","../node_modules/n8n-workflow/dist/esm/run-execution-data/run-execution-data.d.ts","../node_modules/n8n-workflow/dist/esm/expression.d.ts","../node_modules/n8n-workflow/dist/esm/workflow.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy-env-provider.d.ts","../node_modules/n8n-workflow/dist/esm/interfaces.d.ts","../node_modules/n8n-workflow/dist/esm/logger-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/node-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/observable-object.d.ts","../node_modules/n8n-workflow/dist/esm/telemetry-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-child-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-connected-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-node-by-name.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-parent-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/map-connections-by-destination.d.ts","../node_modules/n8n-workflow/dist/esm/common/index.d.ts","../node_modules/n8n-workflow/dist/esm/cron.d.ts","../node_modules/n8n-workflow/dist/esm/execution-context-establishment-hooks.d.ts","../node_modules/n8n-workflow/dist/esm/global-state.d.ts","../node_modules/n8n-workflow/dist/esm/run-execution-data-factory.d.ts","../node_modules/zod/dist/types/v3/helpers/typealiases.d.ts","../node_modules/zod/dist/types/v3/helpers/util.d.ts","../node_modules/zod/dist/types/v3/zoderror.d.ts","../node_modules/zod/dist/types/v3/locales/en.d.ts","../node_modules/zod/dist/types/v3/errors.d.ts","../node_modules/zod/dist/types/v3/helpers/parseutil.d.ts","../node_modules/zod/dist/types/v3/helpers/enumutil.d.ts","../node_modules/zod/dist/types/v3/helpers/errorutil.d.ts","../node_modules/zod/dist/types/v3/helpers/partialutil.d.ts","../node_modules/zod/dist/types/v3/standard-schema.d.ts","../node_modules/zod/dist/types/v3/types.d.ts","../node_modules/zod/dist/types/v3/external.d.ts","../node_modules/zod/dist/types/v3/index.d.ts","../node_modules/zod/dist/types/index.d.ts","../node_modules/n8n-workflow/dist/esm/message-event-bus.d.ts","../node_modules/n8n-workflow/dist/esm/expressions/expression-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/from-ai-parse-utils.d.ts","../node_modules/n8n-workflow/dist/esm/node-validation.d.ts","../node_modules/n8n-workflow/dist/esm/tool-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/node-reference-parser-utils.d.ts","../node_modules/n8n-workflow/dist/esm/metadata-utils.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-checksum.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-validation.d.ts","../node_modules/n8n-workflow/dist/esm/versioned-node-type.d.ts","../node_modules/n8n-workflow/dist/esm/type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/schemas.d.ts","../node_modules/n8n-workflow/dist/esm/utils.d.ts","../node_modules/n8n-workflow/dist/esm/type-guards.d.ts","../node_modules/n8n-workflow/dist/esm/graph/graph-utils.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/extensions.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-extension.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/index.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-parser.d.ts","../node_modules/n8n-workflow/dist/esm/native-methods/index.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/filter-parameter.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/parameter-type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/node-parameter-value-type-guard.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/path-utils.d.ts","../node_modules/n8n-workflow/dist/esm/evaluation-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/connections-diff.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-diff.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-environments-helper.d.ts","../node_modules/n8n-workflow/dist/esm/index.d.ts","../credentials/sshcredentials.credentials.ts","../nodes/credentialshare/interfaces.ts","../nodes/credentialshare/ssh.utils.ts","../nodes/credentialshare/docker.utils.ts","../nodes/credentialshare/postgres.utils.ts","../nodes/credentialshare/credentialshare.node.ts","../nodes/credentialshare/credentialshare.node.json","../package.json"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true},{"version":"d2662405c15ec112ebc0c3ec787edb82d58d6acb1a9d109317d7bf9cff9d09a7","affectsGlobalScope":true},{"version":"362d474eb9feae178a83ead94d757c21e42d6d7090e4182f0c12e92830a3d25e","affectsGlobalScope":true},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true},{"version":"dc27badd4bf4a2b0024a0cd32a9bbf0be7073902c5177a58be14242e7d8bf2c7","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"b972357e61ef2e072f8a88b9f4f5a70984c417237e6106f6b2390414a09ce523","affectsGlobalScope":true},"076cac5898bd833255def0f7c5717b83534212873505c9c958f1926d49f9bec6","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","75eb536b960b85f75e21490beeab53ea616646a995ad203e1af532d67a774fb6",{"version":"36d0976d3dad74078f707af107b5082dbe42ffcadb3442ff140c36c8a33b4887","affectsGlobalScope":true},"86e0d632e9ef88593e8724ffb6af05104e13a08f9d8df733a30f9991ac387fff","7646ad748a9ca15bf43d4c88f83cc851c67f8ec9c1186295605b59ba6bb36dcb",{"version":"cef8931bc129687165253f0642427c2a72705a4613b3ac461b9fa78c7cdaef32","affectsGlobalScope":true},"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","47b62c294beb69daa5879f052e416b02e6518f3e4541ae98adbfb27805dd6711","f8375506002c556ec412c7e2a5a9ece401079ee5d9eb2c1372e9f5377fac56c7","8edd6482bd72eca772f9df15d05c838dd688cdbd4d62690891fca6578cfda6fe","07ba29a1a495b710aea48a4cf19ae12b3cbda2a8e9ac62192af477027a99e8de","6dead64c944504250dd2fc9095231f36887cfc1534f1ff57737c19f92d165c91","b9a4824bb83f25d6d227394db2ed99985308cf2a3a35f0d6d39aa72b15473982",{"version":"6e9948b1e396106601365283680c319a9103c71a5725e7d03e26fe246df60c4c","affectsGlobalScope":true},"8e8e284b3832911aeede987e4d74cf0a00f2b03896b2fd3bf924344cc0f96b3c","37d37474a969ab1b91fc332eb6a375885dfd25279624dfa84dea48c9aedf4472","1ddd8c1a3ae1f8ab28affd53b13910be4afe0b35f28517b7f14c268e9e42647a","f1a79b6047d006548185e55478837dfbcdd234d6fe51532783f5dffd401cfb2b","cbc91187014fb1e738ef252751a9f84abf2989ec1c3b1637ec23b5b39cdf3d25","e822320b448edce0c7ede9cbeada034c72e1f1c8c8281974817030564c63dcb1",{"version":"9d65568cba17c9db40251023406668695ad698ea4a34542364af3e78edd37811","affectsGlobalScope":true},"f23e3d484de54d235bf702072100b541553a1df2550bad691fe84995e15cf7be","821c79b046e40d54a447bebd9307e70b86399a89980a87bbc98114411169e274","17bc38afc78d40b2f54af216c0cc31a4bd0c6897a5945fa39945dfc43260be2c",{"version":"d201b44ff390c220a94fb0ff6a534fe9fa15b44f8a86d0470009cdde3a3e62ab","affectsGlobalScope":true},{"version":"d44445141f204d5672c502a39c1124bcf1df225eba05df0d2957f79122be87b5","affectsGlobalScope":true},"de905bc5f7e7a81cb420e212b95ab5e3ab840f93e0cfa8ce879f6e7fa465d4a2","bc2ff43214898bc6d53cab92fb41b5309efec9cbb59a0650525980aee994de2b","bede3143eeddca3b8ec3592b09d7eb02042f9e195251040c5146eac09b173236","64a40cf4ec8a7a29db2b4bc35f042e5be8537c4be316e5221f40f30ca8ed7051","294c082d609e6523520290db4f1d54114ebc83643fb42abd965be5bcc5d9416b","cf7d740e39bd8adbdc7840ee91bef0af489052f6467edfcefb7197921757ec3b","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093",{"version":"b9f0681c4d2cb00a5cfe08a7be9662627b912de562926819ebddfe2ef6a9b5ee","affectsGlobalScope":true},"b85151402164ab7cb665e58df5c1a29aa25ea4ed3a367f84a15589e7d7a9c8ca","89eb8abe2b5c146fbb8f3bf72f4e91de3541f2fb559ad5fed4ad5bf223a3dedb",{"version":"bc6cb10764a82f3025c0f4822b8ad711c16d1a5c75789be2d188d553b69b2d48","affectsGlobalScope":true},"41d510caf7ed692923cb6ef5932dc9cf1ed0f57de8eb518c5bab8358a21af674","2751c5a6b9054b61c9b03b3770b2d39b1327564672b63e3485ac03ffeb28b4f6","dc058956a93388aab38307b7b3b9b6379e1021e73a244aab6ac9427dc3a252a7","f33302cf240672359992c356f2005d395b559e176196d03f31a28cc7b01e69bc",{"version":"3ce25041ff6ae06c08fcaccd5fcd9baf4ca6e80e6cb5a922773a1985672e74c2","affectsGlobalScope":true},{"version":"652c0de14329a834ff06af6ad44670fac35849654a464fd9ae36edb92a362c12","affectsGlobalScope":true},"3b1e178016d3fc554505ae087c249b205b1c50624d482c542be9d4682bab81fc","5db7c5bb02ef47aaaec6d262d50c4e9355c80937d649365c343fa5e84569621d","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"6831f13f06a15391dfeb2477d48ac58311ab675f85846a05499ee92d6e856933","affectsGlobalScope":true},"37bef1064b7d015aeaa7c0716fe23a0b3844abe2c0a3df7144153ca8445fe0da","59ef5d8f9f0274a03123bdd45bf38bf0e2a96d600ccb0606e0d780384e58f26a","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","4371055bb001f40596e2e236b27583e13bf11e75d937962f8947d56519237fb8","3f0125b44af4f5a35b653284e1af28e9df5bfe27b2ece1f7e176f387b1264c32","cf05b854a840e9094fd336fcf1f6458e2c1d0f51f3af682aad5acba1fd7ed807","a0981ee0c7ac06bdb575558bd09bac190e1c0c7888ddcb63d8bf648f23a30e8c","00f11c3ec667314eaa2adfe253b5ebebbbdbb82510e04460c2f09d1c3b521d31","5c7a516e25a2fd1dc5e054c6161fe3c8ba46364f3784ef98f3fca48ab685231c","3ff739b7f819cfc12b330f9adcc4c3abbbd5e9f9ca68f53243222a049a8361a2","d762b92c1af47b7b3c4eef92fe9a3806194d9edc5dae6901342fc87ef21d7f4a","41d14b690d8d8c2a9b7395e8c36de6ca981010736723216ab9f35eb598e09ad9","3fdcca6b893ffd38b61b792772f649c82ae28077c360802cec25360eabca24c0","299924f7545be254b02278e4dcff7038611f2325d30f0e5ae4bcac906847c164","be1d650f04c9f472f0ad0ead3e1b7059dd1e0ff918f7bcb707786d27c3bbeadd","1e16c1b1c4d8600a146b15a933f9a880cc275c01f39dc436625f22d3cca46272","7d5dd008a087b517daee2c66b15e5767389c08f9f8d66c434d26d4f6cb3f55c3","bf2aefef15e0b4d6bc8f4e19f967494b59b5f90a834de503c373df042513d924","4085248a1c89ee865cf9498402c90611d16920a6c9929f701ddc0b963ddad230","1a1acd3311ff1794be8401ee394efc3beeb1746068244eb0ee1d51d08e457401","ce0b4440a3dd75e14ca94b6d6b27fa26ca89e776d91b8803b3c86c4e8f06ed1a","37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","b6b1a3ff9ba1ddf1a908cfd1bcd471334ecd218a366460fc64c4561d6d0467a4","1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","da73778888d41d0abe7d28a24529ba13ff0a9311d55e1902feee7ab97dc6a67d","393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","0e10fd1d283b4ba7b94f5abb1bc30a2070ccb16c22f86a2780bea8ddc48f3bf7","0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","6ad6692aba2cad7697d1dbc76c973e7eca5c80aba70396233e4c4ea0e58c536d","c265bd0ffe35c74f210f980f49ba8f763c3338987539276a973fad1f52c4e9f2","4373179619287c6f48e1d2dc48f445bcb43e34bf13ab7bcc74953f06b0975404","5bfb2564cd6a65672b9c9a318d6313b925937b0a37606bf9ca89445b4a8d5a6b","066aff28aa26c1deb80e040da88f30f6149e388d556f8390d95edfff3fa99e3c","79b9e661f99d6d01ad0031fbffbb20a8570ca526125a1b01ef5643c00348a8c4","deb85dff5a350bd77f24fb5665b7a3c95aa0d4556a0d45ab423ebf3ffcbc70ce","78128cd7be8cbceaa53c812de6691b2301fe128cbf9b9f6d2778ecc0ad47a794","309ebd217636d68cf8784cbc3272c16fb94fb8e969e18b6fe88c35200340aef1","6e4fde24e4d82d79eaff2daa7f5dffa79ba53de2a6b8aef76c178a5a370764bb","ef9b6279acc69002a779d0172916ef22e8be5de2d2469ff2f4bb019a21e89de2",{"version":"12b8d97a20b0fb267b69c4a6be0dfad7c88851d2dcab6150aa4218f40efa45f4","affectsGlobalScope":true},"0e86102dbab93227b2702cba0ba06cb638961394577dc28cd5b856f0184c3156","6c859096094c744d2dd7b733189293a5b2af535e15f7794e69a3b4288b70dcfc","915d51e1bcd9b06ab8c922360b3f74ffe70c2ab6264f759f2b3e5f4130df0149","716a022c6d311c8367d830d2839fe017699564de2d0f5446b4a6f3f022a5c0c6","c939cb12cb000b4ec9c3eca3fe7dee1fe373ccb801237631d9252bad10206d61","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","92d777bf731e4062397081e864fbc384054934ab64af7723dfbf1df21824db31","ee415a173162328db8ab33496db05790b7d6b4a48272ff4a6c35cf9540ac3a60","80e653fbbec818eecfe95d182dc65a1d107b343d970159a71922ac4491caa0af","f978b1b63ad690ff2a8f16d6f784acaa0ba0f4bcfc64211d79a2704de34f5913","00c7c66bbd6675c5bc24b58bac2f9cbdeb9f619b295813cabf780c08034cfaba","9078205849121a5d37a642949d687565498da922508eacb0e5a0c3de427f0ae5","0ce71e5ee7c489209494c14028e351ccb1ffe455187d98a889f8e07ae2458ef7","f5c8f2ef9603893e25ed86c7112cd2cc60d53e5387b9146c904bce3e707c55de","db3ea1212b188ff23aa4f32b63e459c9b55d34b44b57bcbdf401f291352483f0","dc01facbb7d88bc5e2eabb7c6eee80a0241538d50a5c3b210fb745683faa1dab","5c5197a46686814821229b28e4cfd601ef0a32f2d2d29b9a99050bac0ab03c99","2f3a88381874ec5fd76116a07b4ec3ed2eb667d00cff57f4f21e58cc0e970ca8","2c6c3af3957e38e6a5190258a666a06893ba5a11e3501585243129afecefd037","13e5ea921d6f62171aab19f33a6690e3c6658eecd2e5672425e49ac30d4305e6","1e28020a23b28743d5bd708b9e4c7b75fdff606aa080fbaf5b8db3600d5c99cf","49e7f03e7e7288397725e823654fdfe61892bb5082f391057e61b9c4f1b54f16","7b368e9be7bfea145983add6818f4e9ad5d83e5cabc8f771211d77c0feb8db94","d49030b9a324bab9bcf9f663a70298391b0f5a25328409174d86617512bf3037","a4b634bb8c97cc700dbf165f3bb0095ec669042da72eaf28a7c5e2ddd98169ce","a7578eb8461c2d07440749f89aba22881d5fca09a1d1cd46974628869fbadfa1","59c348f04c0ae867f85d63e75a4b3b29fde55b3e483114bc96c4743c3bd326fc","3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","64c9811ebae7d6bdd3749155911ca473017944d6e9787cec3d11549b05b19de9","c875801a2ebbfe47d596ffc79c9ae98a0004caa3156dccd7027e0abced34369a","103c05a4c0773cf2ac87c535a51970dbe084218b1eee8f07bd768259b6f8d6ca","8ce9640581a9f826721db6e15aed360ea47f18357a10f5e23c24f36ac125ec4c","fcc64cf81ce0790cf7a687fe2cc08efb88a111b67534d4f57b5b055276dd3f31","18c4c5d4069ae6ddce9443a6057fcf333688556b0d644813a78e604812f82bb3","6481b29f54e19becbeb7236c60043e2daa47b45cb4fd7e88f287df09250f2405","647dc8edfe5c204d58e61a442ef3c6e545b3f06d272680aab5d94972dc42bedd","01658146c02cba2e49ee7beaa0b90864e7a17c3d02cc39cd8b643b5be3a1a438","7795c2f19ece1827b1ef8e36fe6628a3ce6e04028097f7f2b580a00bb9134823","db18ec88a0f1512b153a28a0ed1e19f34530885bca1d00e5f17a6e9b3184697f","65d581663663be2adeb0a5ac83f9fb077ab1e173d9ba06df33f959aaa1303491","36cd04c9f4116122a3545fcc6da5e522861d739718ab3a3cb7ff2268612531aa","9ae86dde42766df895cde73c60dc13347cc30829c6696de3cc54036b3120a5ba","6823cce79c10482d0860d40ebbfc29f00ddf7f99bca0aa23330599ddd8baead4","30ed6587fb249cc1b0585bab7ce2ca81ef193bfe2934241b6f06ffefdaaf4bf9","aa18fcf8ad877a9eb0c357c247708f019e25c4d906e3025d73604b66de8d7f11","cfc5482e113e44dae9712ae0a4e412788622221ae5eb1327fb69a13a0f5af662","5e620d0ed3eeb9a9a767355547123c85aea7e8f26d90e94d0cc3fa457f1c2035","164a6d88c10434ed6772b3d8a2a724d619c2271cfeb53c5589389d724eaacc1e","304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","6950710d5c94466e03d24a17dfe4ae0ceed9f1bfea492742597804acb24d5949","d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","04048e03fc99eab8fee9153834261f25cadacf69cafdc6f8894ae72da5a6f203","18c078c2b34901a328c1fc3e5a2f5bd51aa0fef06a548418198955e0af5eaf39","50b349aa17efbcf1f17d73bfd62daeee9c3593e2a9e9bc7fad1d38ee844486ca","07f804df70402ba5fb4a7457b3e8029b59ec3facc9694d778d936a11f5127179","74f9797560463a8c9070dd72c04b38cc17b79759b841e2a4175a11742f2ecd11","ce22b96ece23ecc9bc1f2a445afefa0a487f299986a1584887e4e4217e196963","4788f58342a67af140858e23a24cdf62457ec1ff79af68ac71b9d3c0c89bb53b","c56d30cadef4528d6d568207e6ca4dd401d474843aee160e6c3a24d790ede0fd","94b065f9004cde283dd5989e9bd604a725c9a3c165b3e1c963a7f2fae2d07a6a","33650b1a5cdb1bf423ae5bace3a0447f4673bfc9e1d982bcbafa1b6d9720d747","e9634e0306920990ddca8f667e3cb624597ea7a4cd25d557a599c0e175419879","dd8f07cc3c31fc292339ffedb6617e7f88f26f94da5b156a2e58779b78cd489b","2d347c9473107aa9cb2120f94e39f179aa5b36a62af100f49d90b332c9209d19","64d04605dc3d16a2afaeff2a50962ff0b0e96a2f62e6f015019b7d00e683ab65","18e9ac0c696390f25c7d51098d7c28e7e67c22b68c27e721588c34038f0c3bad","b33057a3c7ea75948a207a5b784726118ec60f882eeb875bd64e932b4cd41041","e3059fe953b72c20fec9f74878dd7879b661d81657875907336c41e3b817c84b","9e2e0b4711f1efef5c3c488616334ba2e5b911648a8784fd77fc8beb1e5047c9","315b8bc4d809525b2f6635eb0237af1fe03501cc57bb0b722c672d0634bb8bb1","0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","28f1497962f8853339b46d766384abe7a907900998f551cf43cd793cdcb98e3d","e4cce0b510957aab4b12a0dc21a3b4857b8f8a85bbded2b8b81f836ca3c83dbc","79a0953f85a27dcaab70dd0e3791a3564631dfd5d85c637513027747c6844357","2dcf72ec20aa5e3cf9911c4d5ada9393bb8d18f00d3dbdbe07ce618b4e90ab3f","678c7436b7aa03dad934a96850ea395c018637013aa0b52a65898f502b4d6e2a","1c18a09d1deaf0e9906100ab54592f256f87fc94c67cce61bfc1c2ea44ac3d13","481559421f5cd5562e4713c251e77dee07f5145c5f1d710afc445e733236802b","e98a715378d27c3eb8da1f1b4d2a0f77388893d953830e1ecdd17c31235890a6","483b6ed49396309c0ceb824efa6ddc71d5379cb550f08db41a89a7ca6eb0caec","1ab012fe3ddde4ef0b8bb169dc6f7bafd2dc505b5601633a1576111bcc10c0f5",{"version":"6dbf3b3ae1ca7cdd088159fd3a83ab024da5fbc3fa37145e6de80ab04b322d77","signature":"cece2242e7ea7c7c7e09286dad9c78d883948ce6aa460395174802edebee13a3"},{"version":"9dc80522450cecca786eeb138d153773ea77cab37b25755971f7961c3504a5e8","signature":"60d3368e86ac89c5ac8b3eafe739e5b4102e2c53e0bcf90ba99cbb775cdce6e2"},{"version":"a47cbf4fbdac629818a7b6e4d9c24104b04989258682af5c9f18d8cdb13ef855","signature":"a09768626ebe4b9158504cf4f9b2540849ca545c269dcbcb995ee50b7ba9ebd4"},{"version":"d58deb1c7182f1c15b3eb8fbaca6cd4572f58db4902eb57fb18c63db3845e594","signature":"9e1b1f2acfc01dd4ef4fee3bddb776ecaa7197305b4a8edca7688869cc78a5e9"},{"version":"67d9aeab2da956db7d4294020d2ca382a73f172dc7603015b4ad2cc9c9f1b9ed","signature":"2dbee62603f8547e64154f096b287512b43e0c368d34e7ec2c1ebad7700e47cb"},{"version":"be4104d6512ab32e41e5d769b8574c175bed85f48d5f4dd27347561d46c3b52d","signature":"bf9b1b35110ad88c55017c319c6554f754849692ab07b7b3c59ea377200635b9"},"05099912254152b9471a00dcaf25dd2e60ea559541387b95988edc3e7a9cbd04",{"version":"358ed5be6201d66d654f788f6703e02f68f5fc0e6d96abe9c05af1a40c99b365","signature":"ffde814e2e9e6de632283b8ad526a6c48772f37c8a4332e8ac042a966d999461"}],"root":[[310,317]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[50,91,309],[50,91,144],[50,91,144,145],[50,91],[50,88,91],[50,90,91],[50,91,96,123],[50,91,92,102,110,120,131],[50,91,92,93,102,110],[45,46,47,50,91],[50,91,94,132],[50,91,95,96,103,111],[50,91,96,120,128],[50,91,97,99,102,110],[50,90,91,98],[50,91,99,100],[50,91,101,102],[50,90,91,102],[50,91,102,103,104,120,131],[50,91,102,103,104,117,120,123],[50,91,99,102,105,110,120,131,309],[50,91,102,103,105,106,110,120,128,131],[50,91,105,107,120,128,131],[50,91,102,108],[50,91,109,131,136],[50,91,99,102,110,120],[50,91,111],[50,91,112],[50,90,91,113],[50,91,114,130,136],[50,91,115],[50,91,116],[50,91,102,117,118],[50,91,117,119,132,134],[50,91,102,120,121,123],[50,91,122,123],[50,91,120,121],[50,91,123],[50,91,124],[50,91,120,125],[50,91,102,126,127],[50,91,126,127],[50,91,96,110,120,128],[50,91,129],[91],[48,49,50,51,52,53,54,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137],[50,91,110,130],[50,91,105,116,131],[50,91,96,132],[50,91,120,133],[50,91,109,134],[50,91,135],[50,86,91],[50,86,91,102,104,113,120,123,131,134,136],[50,91,120,137],[50,91,102,105,107,110,120,138,309],[50,91,105,120,138,309],[50,91,251],[50,91,256,257,258,259,260],[50,91,146,251],[50,91,151,251],[50,91,146],[50,91,147],[50,91,163],[50,91,151],[50,91,152],[50,91,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173],[50,91,146,154,251],[50,91,154,155,251],[50,91,162],[50,91,159],[50,91,146,151,251],[50,91,156],[50,91,241],[50,91,247,249,251],[50,91,296],[50,91,296,297],[50,91,279],[50,91,105,141,142,143,174,242,243,244,247,248,249,250,251,252,253,254,255,261,262,263,264,265,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,298,299,300,301,302,303,304,305,307,308],[50,91,103,105,120,128,131,139,140,141,142,143,152,155,156,159,162,174,242,243,244,247,249,250,309],[50,91,251,279],[50,91,242,247,251],[50,91,245,246],[50,91,245,309],[50,91,247,249,250,251],[50,91,306,309],[50,91,248,251],[50,63,67,91,131],[50,63,91,120,131],[50,58,91],[50,60,63,91,128,131],[50,91,110,128],[50,91,138],[50,58,91,138],[50,60,63,91,110,131],[50,55,56,59,62,91,102,120,131],[50,55,61,91],[50,59,63,91,123,131,138],[50,79,91,138],[50,57,58,91,138],[50,63,91],[50,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,91],[50,63,70,71,91],[50,61,63,71,72,91],[50,62,91],[50,55,58,63,91],[50,63,67,71,72,91],[50,67,91],[50,61,63,66,91,131],[50,55,60,61,63,67,70,91],[50,91,120],[50,58,63,79,91,136,138],[50,91,278],[50,91,268,269],[50,91,266,267,268,270,271,276],[50,91,267,268],[50,91,276],[50,91,277],[50,91,268],[50,91,266,267,268,271,272,273,274,275],[50,91,266,267,278],[50,91,230],[50,91,230,233],[50,91,222,230,231,232,233,234,235,236,237],[50,91,238],[50,91,230,231],[50,91,230,232],[50,91,176,178,179,180,181],[50,91,176,178,180,181],[50,91,176,178,180],[50,91,176,178,179,181],[50,91,176,178,181],[50,91,176,177,178,179,180,181,182,183,222,223,224,225,226,227,228],[50,91,178,181],[50,91,175,176,177,179,180,181],[50,91,178,223,227],[50,91,178,179,180,181],[50,91,239],[50,91,180],[50,91,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221],[50,91,229],[50,91,240],[50,91,309,311,312,313,314],[50,91,140,311,312],[50,91,140,309,311]],"referencedMap":[[310,1],[145,2],[146,3],[144,4],[88,5],[89,5],[90,6],[91,7],[92,8],[93,9],[45,4],[48,10],[46,4],[47,4],[94,11],[95,12],[96,13],[97,14],[98,15],[99,16],[100,16],[101,17],[102,18],[103,19],[104,20],[51,4],[105,21],[106,22],[107,23],[108,24],[109,25],[110,26],[111,27],[112,28],[113,29],[114,30],[115,31],[116,32],[117,33],[118,33],[119,34],[120,35],[122,36],[121,37],[123,38],[124,39],[125,40],[126,41],[127,42],[128,43],[129,44],[50,45],[49,4],[138,46],[130,47],[131,48],[132,49],[133,50],[134,51],[135,52],[52,4],[53,4],[54,4],[87,53],[136,54],[137,55],[140,56],[139,57],[256,58],[257,58],[258,58],[259,58],[261,59],[260,58],[306,1],[141,4],[262,58],[142,4],[143,4],[151,60],[154,61],[147,62],[148,63],[149,63],[150,63],[164,64],[172,62],[173,4],[153,65],[169,66],[168,66],[167,66],[166,66],[170,66],[171,66],[152,65],[174,67],[155,68],[156,69],[158,65],[163,70],[165,60],[160,71],[159,72],[157,73],[161,71],[162,61],[305,4],[263,74],[242,74],[243,4],[248,75],[281,4],[297,76],[299,4],[296,4],[298,77],[282,78],[264,4],[295,58],[309,79],[251,80],[252,58],[280,81],[286,1],[300,76],[253,75],[301,60],[303,58],[302,58],[304,4],[285,58],[283,58],[254,58],[244,4],[265,82],[247,83],[245,1],[246,84],[292,81],[255,58],[284,58],[294,58],[291,58],[293,58],[290,58],[287,58],[250,4],[288,85],[307,86],[308,4],[289,58],[249,87],[43,4],[44,4],[9,4],[8,4],[2,4],[10,4],[11,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[3,4],[18,4],[4,4],[19,4],[23,4],[20,4],[21,4],[22,4],[24,4],[25,4],[26,4],[5,4],[27,4],[28,4],[29,4],[30,4],[6,4],[34,4],[31,4],[32,4],[33,4],[35,4],[7,4],[36,4],[41,4],[42,4],[37,4],[38,4],[39,4],[40,4],[1,4],[70,88],[77,89],[69,88],[84,90],[61,91],[60,92],[83,93],[78,94],[81,95],[63,96],[62,97],[58,98],[57,93],[80,99],[59,100],[64,101],[65,4],[68,101],[55,4],[86,102],[85,101],[72,103],[73,104],[75,105],[71,106],[74,107],[79,93],[66,108],[67,109],[76,110],[56,111],[82,112],[279,113],[270,114],[277,115],[272,4],[273,4],[271,116],[274,117],[266,4],[267,4],[278,118],[269,119],[275,4],[276,120],[268,121],[234,122],[237,123],[235,123],[231,122],[238,124],[239,125],[236,123],[232,126],[233,127],[226,128],[179,129],[181,130],[224,4],[180,131],[225,132],[229,133],[227,4],[182,129],[183,4],[223,134],[178,135],[175,4],[228,136],[176,137],[177,4],[240,138],[184,139],[185,139],[186,139],[187,139],[188,139],[189,139],[190,139],[191,139],[192,139],[193,139],[195,139],[194,139],[196,139],[197,139],[198,139],[222,140],[199,139],[200,139],[201,139],[202,139],[203,139],[204,139],[205,139],[206,139],[207,139],[209,139],[208,139],[210,139],[211,139],[212,139],[213,139],[214,139],[215,139],[216,139],[217,139],[218,139],[219,139],[220,139],[221,139],[230,141],[241,142],[316,4],[315,143],[313,144],[311,4],[314,4],[312,145],[317,4]]},"version":"5.5.4"}
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "n8n-nodes-cred-sync",
3
+ "version": "0.1.0",
4
+ "description": "n8n community node to share credentials between users via SSH + Docker + PostgreSQL",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "n8n-community-node-package"
8
+ ],
9
+ "main": "index.js",
10
+ "scripts": {
11
+ "build": "tsc && node scripts/copy-assets.js",
12
+ "dev": "tsc --watch",
13
+ "lint": "tsc --noEmit",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "n8n": {
20
+ "n8nNodesApiVersion": 1,
21
+ "credentials": [
22
+ "dist/credentials/SshCredentials.credentials.js"
23
+ ],
24
+ "nodes": [
25
+ "dist/nodes/CredentialShare/CredentialShare.node.js"
26
+ ]
27
+ },
28
+ "dependencies": {
29
+ "ssh2": "^1.16.0"
30
+ },
31
+ "devDependencies": {
32
+ "@types/ssh2": "^1.15.1",
33
+ "typescript": "~5.5.0"
34
+ },
35
+ "peerDependencies": {
36
+ "n8n-workflow": "*"
37
+ }
38
+ }