@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.
Files changed (59) hide show
  1. package/dist/ai-usage.cjs +15 -0
  2. package/dist/ai-usage.cjs.map +1 -0
  3. package/dist/ai-usage.d.cts +8 -0
  4. package/dist/ai-usage.d.mts +8 -0
  5. package/dist/ai-usage.mjs +10 -0
  6. package/dist/ai-usage.mjs.map +1 -0
  7. package/dist/api/ai-usage.cjs +4 -0
  8. package/dist/api/ai-usage.d.cts +3 -0
  9. package/dist/api/ai-usage.d.mts +3 -0
  10. package/dist/api/ai-usage.mjs +4 -0
  11. package/dist/api/externalSecrets.ee.cjs +1 -0
  12. package/dist/api/externalSecrets.ee.d.cts +2 -2
  13. package/dist/api/externalSecrets.ee.d.mts +2 -2
  14. package/dist/api/externalSecrets.ee.mjs +2 -2
  15. package/dist/api/index.cjs +10 -3
  16. package/dist/api/index.d.cts +4 -3
  17. package/dist/api/index.d.mts +4 -3
  18. package/dist/api/index.mjs +4 -3
  19. package/dist/api/secretsProvider.ee.cjs +9 -0
  20. package/dist/api/secretsProvider.ee.d.cts +3 -0
  21. package/dist/api/secretsProvider.ee.d.mts +3 -0
  22. package/dist/api/secretsProvider.ee.mjs +4 -0
  23. package/dist/externalSecrets.ee.cjs +12 -0
  24. package/dist/externalSecrets.ee.cjs.map +1 -1
  25. package/dist/externalSecrets.ee.d.cts +2 -1
  26. package/dist/externalSecrets.ee.d.mts +2 -1
  27. package/dist/externalSecrets.ee.mjs +7 -1
  28. package/dist/externalSecrets.ee.mjs.map +1 -1
  29. package/dist/index.cjs +10 -3
  30. package/dist/index.d.cts +4 -3
  31. package/dist/index.d.mts +4 -3
  32. package/dist/index.mjs +4 -3
  33. package/dist/secretsProvider.ee.cjs +60 -0
  34. package/dist/secretsProvider.ee.cjs.map +1 -0
  35. package/dist/secretsProvider.ee.d.cts +23 -0
  36. package/dist/secretsProvider.ee.d.mts +23 -0
  37. package/dist/secretsProvider.ee.mjs +25 -0
  38. package/dist/secretsProvider.ee.mjs.map +1 -0
  39. package/dist/templates.cjs.map +1 -1
  40. package/dist/templates.d.cts +3 -0
  41. package/dist/templates.d.mts +3 -0
  42. package/dist/templates.mjs.map +1 -1
  43. package/dist/utils2.cjs +6 -2
  44. package/dist/utils2.cjs.map +1 -1
  45. package/dist/utils2.d.cts +2 -0
  46. package/dist/utils2.d.mts +2 -0
  47. package/dist/utils2.mjs +6 -2
  48. package/dist/utils2.mjs.map +1 -1
  49. package/package.json +9 -9
  50. package/dist/api/prompts.cjs +0 -5
  51. package/dist/api/prompts.d.cts +0 -2
  52. package/dist/api/prompts.d.mts +0 -2
  53. package/dist/api/prompts.mjs +0 -4
  54. package/dist/prompts.cjs +0 -31
  55. package/dist/prompts.cjs.map +0 -1
  56. package/dist/prompts.d.cts +0 -14
  57. package/dist/prompts.d.mts +0 -14
  58. package/dist/prompts.mjs +0 -20
  59. package/dist/prompts.mjs.map +0 -1
@@ -1,5 +0,0 @@
1
- require('../utils2.cjs');
2
- const require_prompts = require('../prompts.cjs');
3
-
4
- exports.getPromptsData = require_prompts.getPromptsData;
5
- exports.submitContactInfo = require_prompts.submitContactInfo;
@@ -1,2 +0,0 @@
1
- import { i as submitContactInfo, n as N8nPrompts, r as getPromptsData, t as N8nPromptResponse } from "../prompts.cjs";
2
- export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo };
@@ -1,2 +0,0 @@
1
- import { i as submitContactInfo, n as N8nPrompts, r as getPromptsData, t as N8nPromptResponse } from "../prompts.mjs";
2
- export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo };
@@ -1,4 +0,0 @@
1
- import "../utils2.mjs";
2
- import { n as submitContactInfo, t as getPromptsData } from "../prompts.mjs";
3
-
4
- export { getPromptsData, submitContactInfo };
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
@@ -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"}
@@ -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
@@ -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
@@ -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"}