@n8n/rest-api-client 2.5.1 → 2.7.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/dist/ai-usage.cjs +15 -0
- package/dist/ai-usage.cjs.map +1 -0
- package/dist/ai-usage.d.cts +8 -0
- package/dist/ai-usage.d.mts +8 -0
- package/dist/ai-usage.mjs +10 -0
- package/dist/ai-usage.mjs.map +1 -0
- package/dist/api/ai-usage.cjs +4 -0
- package/dist/api/ai-usage.d.cts +3 -0
- package/dist/api/ai-usage.d.mts +3 -0
- package/dist/api/ai-usage.mjs +4 -0
- package/dist/api/externalSecrets.ee.cjs +1 -0
- package/dist/api/externalSecrets.ee.d.cts +2 -2
- package/dist/api/externalSecrets.ee.d.mts +2 -2
- package/dist/api/externalSecrets.ee.mjs +2 -2
- package/dist/api/index.cjs +10 -3
- package/dist/api/index.d.cts +4 -3
- package/dist/api/index.d.mts +4 -3
- package/dist/api/index.mjs +4 -3
- package/dist/api/secretsProvider.ee.cjs +9 -0
- package/dist/api/secretsProvider.ee.d.cts +3 -0
- package/dist/api/secretsProvider.ee.d.mts +3 -0
- package/dist/api/secretsProvider.ee.mjs +4 -0
- package/dist/externalSecrets.ee.cjs +12 -0
- package/dist/externalSecrets.ee.cjs.map +1 -1
- package/dist/externalSecrets.ee.d.cts +2 -1
- package/dist/externalSecrets.ee.d.mts +2 -1
- package/dist/externalSecrets.ee.mjs +7 -1
- package/dist/externalSecrets.ee.mjs.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +4 -3
- package/dist/secretsProvider.ee.cjs +60 -0
- package/dist/secretsProvider.ee.cjs.map +1 -0
- package/dist/secretsProvider.ee.d.cts +23 -0
- package/dist/secretsProvider.ee.d.mts +23 -0
- package/dist/secretsProvider.ee.mjs +25 -0
- package/dist/secretsProvider.ee.mjs.map +1 -0
- package/dist/templates.cjs.map +1 -1
- package/dist/templates.d.cts +3 -0
- package/dist/templates.d.mts +3 -0
- package/dist/templates.mjs.map +1 -1
- package/dist/utils2.cjs +6 -2
- package/dist/utils2.cjs.map +1 -1
- package/dist/utils2.d.cts +2 -0
- package/dist/utils2.d.mts +2 -0
- package/dist/utils2.mjs +6 -2
- package/dist/utils2.mjs.map +1 -1
- package/package.json +9 -9
- package/dist/api/prompts.cjs +0 -5
- package/dist/api/prompts.d.cts +0 -2
- package/dist/api/prompts.d.mts +0 -2
- package/dist/api/prompts.mjs +0 -4
- package/dist/prompts.cjs +0 -31
- package/dist/prompts.cjs.map +0 -1
- package/dist/prompts.d.cts +0 -14
- package/dist/prompts.d.mts +0 -14
- package/dist/prompts.mjs +0 -20
- package/dist/prompts.mjs.map +0 -1
package/dist/api/prompts.cjs
DELETED
package/dist/api/prompts.d.cts
DELETED
package/dist/api/prompts.d.mts
DELETED
package/dist/api/prompts.mjs
DELETED
package/dist/prompts.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const require_utils = require('./utils2.cjs');
|
|
2
|
-
let __n8n_constants = require("@n8n/constants");
|
|
3
|
-
|
|
4
|
-
//#region src/api/prompts.ts
|
|
5
|
-
async function getPromptsData(instanceId, userId) {
|
|
6
|
-
return await require_utils.get(__n8n_constants.N8N_IO_BASE_URL, "/prompts", {}, {
|
|
7
|
-
"n8n-instance-id": instanceId,
|
|
8
|
-
"n8n-user-id": userId
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
async function submitContactInfo(instanceId, userId, email) {
|
|
12
|
-
return await require_utils.post(__n8n_constants.N8N_IO_BASE_URL, "/prompt", { email }, {
|
|
13
|
-
"n8n-instance-id": instanceId,
|
|
14
|
-
"n8n-user-id": userId
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
Object.defineProperty(exports, 'getPromptsData', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return getPromptsData;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, 'submitContactInfo', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return submitContactInfo;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=prompts.cjs.map
|
package/dist/prompts.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.cjs","names":["get","N8N_IO_BASE_URL","post"],"sources":["../src/api/prompts.ts"],"sourcesContent":["import { N8N_IO_BASE_URL } from '@n8n/constants';\n\nimport { get, post } from '../utils';\n\nexport interface N8nPrompts {\n\tmessage?: string;\n\ttitle?: string;\n\tshowContactPrompt?: boolean;\n}\n\nexport interface N8nPromptResponse {\n\tupdated: boolean;\n}\n\nexport async function getPromptsData(instanceId: string, userId: string): Promise<N8nPrompts> {\n\treturn await get(\n\t\tN8N_IO_BASE_URL,\n\t\t'/prompts',\n\t\t{},\n\t\t{ 'n8n-instance-id': instanceId, 'n8n-user-id': userId },\n\t);\n}\n\nexport async function submitContactInfo(\n\tinstanceId: string,\n\tuserId: string,\n\temail: string,\n): Promise<N8nPromptResponse> {\n\treturn await post(\n\t\tN8N_IO_BASE_URL,\n\t\t'/prompt',\n\t\t{ email },\n\t\t{ 'n8n-instance-id': instanceId, 'n8n-user-id': userId },\n\t);\n}\n"],"mappings":";;;;AAcA,eAAsB,eAAe,YAAoB,QAAqC;AAC7F,QAAO,MAAMA,kBACZC,iCACA,YACA,EAAE,EACF;EAAE,mBAAmB;EAAY,eAAe;EAAQ,CACxD;;AAGF,eAAsB,kBACrB,YACA,QACA,OAC6B;AAC7B,QAAO,MAAMC,mBACZD,iCACA,WACA,EAAE,OAAO,EACT;EAAE,mBAAmB;EAAY,eAAe;EAAQ,CACxD"}
|
package/dist/prompts.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/api/prompts.d.ts
|
|
2
|
-
interface N8nPrompts {
|
|
3
|
-
message?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
showContactPrompt?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface N8nPromptResponse {
|
|
8
|
-
updated: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare function getPromptsData(instanceId: string, userId: string): Promise<N8nPrompts>;
|
|
11
|
-
declare function submitContactInfo(instanceId: string, userId: string, email: string): Promise<N8nPromptResponse>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { submitContactInfo as i, N8nPrompts as n, getPromptsData as r, N8nPromptResponse as t };
|
|
14
|
-
//# sourceMappingURL=prompts.d.cts.map
|
package/dist/prompts.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/api/prompts.d.ts
|
|
2
|
-
interface N8nPrompts {
|
|
3
|
-
message?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
showContactPrompt?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface N8nPromptResponse {
|
|
8
|
-
updated: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare function getPromptsData(instanceId: string, userId: string): Promise<N8nPrompts>;
|
|
11
|
-
declare function submitContactInfo(instanceId: string, userId: string, email: string): Promise<N8nPromptResponse>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { submitContactInfo as i, N8nPrompts as n, getPromptsData as r, N8nPromptResponse as t };
|
|
14
|
-
//# sourceMappingURL=prompts.d.mts.map
|
package/dist/prompts.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { a as get, l as post } from "./utils2.mjs";
|
|
2
|
-
import { N8N_IO_BASE_URL } from "@n8n/constants";
|
|
3
|
-
|
|
4
|
-
//#region src/api/prompts.ts
|
|
5
|
-
async function getPromptsData(instanceId, userId) {
|
|
6
|
-
return await get(N8N_IO_BASE_URL, "/prompts", {}, {
|
|
7
|
-
"n8n-instance-id": instanceId,
|
|
8
|
-
"n8n-user-id": userId
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
async function submitContactInfo(instanceId, userId, email) {
|
|
12
|
-
return await post(N8N_IO_BASE_URL, "/prompt", { email }, {
|
|
13
|
-
"n8n-instance-id": instanceId,
|
|
14
|
-
"n8n-user-id": userId
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { submitContactInfo as n, getPromptsData as t };
|
|
20
|
-
//# sourceMappingURL=prompts.mjs.map
|
package/dist/prompts.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.mjs","names":[],"sources":["../src/api/prompts.ts"],"sourcesContent":["import { N8N_IO_BASE_URL } from '@n8n/constants';\n\nimport { get, post } from '../utils';\n\nexport interface N8nPrompts {\n\tmessage?: string;\n\ttitle?: string;\n\tshowContactPrompt?: boolean;\n}\n\nexport interface N8nPromptResponse {\n\tupdated: boolean;\n}\n\nexport async function getPromptsData(instanceId: string, userId: string): Promise<N8nPrompts> {\n\treturn await get(\n\t\tN8N_IO_BASE_URL,\n\t\t'/prompts',\n\t\t{},\n\t\t{ 'n8n-instance-id': instanceId, 'n8n-user-id': userId },\n\t);\n}\n\nexport async function submitContactInfo(\n\tinstanceId: string,\n\tuserId: string,\n\temail: string,\n): Promise<N8nPromptResponse> {\n\treturn await post(\n\t\tN8N_IO_BASE_URL,\n\t\t'/prompt',\n\t\t{ email },\n\t\t{ 'n8n-instance-id': instanceId, 'n8n-user-id': userId },\n\t);\n}\n"],"mappings":";;;;AAcA,eAAsB,eAAe,YAAoB,QAAqC;AAC7F,QAAO,MAAM,IACZ,iBACA,YACA,EAAE,EACF;EAAE,mBAAmB;EAAY,eAAe;EAAQ,CACxD;;AAGF,eAAsB,kBACrB,YACA,QACA,OAC6B;AAC7B,QAAO,MAAM,KACZ,iBACA,WACA,EAAE,OAAO,EACT;EAAE,mBAAmB;EAAY,eAAe;EAAQ,CACxD"}
|