@n8n/rest-api-client 1.2.0 → 1.4.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 (70) hide show
  1. package/dist/api/index.cjs +33 -9
  2. package/dist/api/index.cjs.map +1 -1
  3. package/dist/api/index.d.cts +6 -1
  4. package/dist/api/index.d.ts +6 -1
  5. package/dist/api/index.js +38 -14
  6. package/dist/api/module-settings.cjs +8 -0
  7. package/dist/api/module-settings.cjs.map +1 -0
  8. package/dist/api/module-settings.d.cts +6 -0
  9. package/dist/api/module-settings.d.ts +6 -0
  10. package/dist/api/module-settings.js +8 -0
  11. package/dist/api/tags.cjs +2 -0
  12. package/dist/api/tags.cjs.map +1 -0
  13. package/dist/api/tags.d.cts +9 -0
  14. package/dist/api/tags.d.ts +9 -0
  15. package/dist/api/tags.js +2 -0
  16. package/dist/api/tags.js.map +1 -0
  17. package/dist/api/templates.cjs +20 -0
  18. package/dist/api/templates.cjs.map +1 -0
  19. package/dist/api/templates.d.cts +120 -0
  20. package/dist/api/templates.d.ts +120 -0
  21. package/dist/api/templates.js +20 -0
  22. package/dist/api/templates.js.map +1 -0
  23. package/dist/api/versions.cjs +4 -2
  24. package/dist/api/versions.cjs.map +1 -1
  25. package/dist/api/versions.d.cts +19 -2
  26. package/dist/api/versions.d.ts +19 -2
  27. package/dist/api/versions.js +5 -3
  28. package/dist/api/workflows.cjs +2 -0
  29. package/dist/api/workflows.cjs.map +1 -0
  30. package/dist/api/workflows.d.cts +39 -0
  31. package/dist/api/workflows.d.ts +39 -0
  32. package/dist/api/workflows.js +2 -0
  33. package/dist/api/workflows.js.map +1 -0
  34. package/dist/chunk-5HPYAEBR.cjs +13 -0
  35. package/dist/chunk-5HPYAEBR.cjs.map +1 -0
  36. package/dist/chunk-72B7PPKD.js +1 -0
  37. package/dist/chunk-72B7PPKD.js.map +1 -0
  38. package/dist/chunk-F2BR3GFD.cjs +1 -0
  39. package/dist/{chunk-7GMP4OAL.cjs.map → chunk-F2BR3GFD.cjs.map} +1 -1
  40. package/dist/chunk-GEZ7P5JL.cjs +55 -0
  41. package/dist/chunk-GEZ7P5JL.cjs.map +1 -0
  42. package/dist/chunk-GLSB4GH3.cjs +1 -0
  43. package/dist/chunk-GLSB4GH3.cjs.map +1 -0
  44. package/dist/chunk-LWPFHULW.js +13 -0
  45. package/dist/chunk-LWPFHULW.js.map +1 -0
  46. package/dist/chunk-P652HZKI.js +1 -0
  47. package/dist/chunk-P652HZKI.js.map +1 -0
  48. package/dist/chunk-PUTYSFAZ.js +55 -0
  49. package/dist/chunk-PUTYSFAZ.js.map +1 -0
  50. package/dist/chunk-Q7EXJ6B2.js +23 -0
  51. package/dist/chunk-Q7EXJ6B2.js.map +1 -0
  52. package/dist/chunk-QGKFNOJQ.js +1 -0
  53. package/dist/chunk-QGKFNOJQ.js.map +1 -0
  54. package/dist/chunk-QUUEZXZJ.cjs +1 -0
  55. package/dist/chunk-QUUEZXZJ.cjs.map +1 -0
  56. package/dist/chunk-ZHELW3VP.cjs +23 -0
  57. package/dist/chunk-ZHELW3VP.cjs.map +1 -0
  58. package/dist/index.cjs +33 -9
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.cts +5 -1
  61. package/dist/index.d.ts +5 -1
  62. package/dist/index.js +38 -14
  63. package/package.json +14 -14
  64. package/dist/chunk-7GMP4OAL.cjs +0 -1
  65. package/dist/chunk-FXQQJTT6.js +0 -15
  66. package/dist/chunk-FXQQJTT6.js.map +0 -1
  67. package/dist/chunk-RYFRJOLT.cjs +0 -15
  68. package/dist/chunk-RYFRJOLT.cjs.map +0 -1
  69. package/dist/chunk-YUAOJ44N.js +0 -1
  70. /package/dist/{chunk-YUAOJ44N.js.map → api/module-settings.js.map} +0 -0
@@ -24,6 +24,23 @@ interface Version {
24
24
  hasSecurityIssue: boolean;
25
25
  securityIssueFixVersion: string;
26
26
  }
27
- declare function getNextVersions(endpoint: string, version: string, instanceId: string): Promise<Version[]>;
27
+ interface WhatsNewSection {
28
+ title: string;
29
+ calloutText: string;
30
+ footer: string;
31
+ items: WhatsNewArticle[];
32
+ createdAt: string;
33
+ updatedAt: string | null;
34
+ }
35
+ interface WhatsNewArticle {
36
+ id: number;
37
+ createdAt: string;
38
+ updatedAt: string | null;
39
+ publishedAt: string;
40
+ title: string;
41
+ content: string;
42
+ }
43
+ declare function getNextVersions(endpoint: string, currentVersion: string, instanceId: string): Promise<Version[]>;
44
+ declare function getWhatsNewSection(endpoint: string, currentVersion: string, instanceId: string): Promise<WhatsNewSection>;
28
45
 
29
- export { type Version, type VersionNode, getNextVersions };
46
+ export { type Version, type VersionNode, type WhatsNewArticle, type WhatsNewSection, getNextVersions, getWhatsNewSection };
@@ -24,6 +24,23 @@ interface Version {
24
24
  hasSecurityIssue: boolean;
25
25
  securityIssueFixVersion: string;
26
26
  }
27
- declare function getNextVersions(endpoint: string, version: string, instanceId: string): Promise<Version[]>;
27
+ interface WhatsNewSection {
28
+ title: string;
29
+ calloutText: string;
30
+ footer: string;
31
+ items: WhatsNewArticle[];
32
+ createdAt: string;
33
+ updatedAt: string | null;
34
+ }
35
+ interface WhatsNewArticle {
36
+ id: number;
37
+ createdAt: string;
38
+ updatedAt: string | null;
39
+ publishedAt: string;
40
+ title: string;
41
+ content: string;
42
+ }
43
+ declare function getNextVersions(endpoint: string, currentVersion: string, instanceId: string): Promise<Version[]>;
44
+ declare function getWhatsNewSection(endpoint: string, currentVersion: string, instanceId: string): Promise<WhatsNewSection>;
28
45
 
29
- export { type Version, type VersionNode, getNextVersions };
46
+ export { type Version, type VersionNode, type WhatsNewArticle, type WhatsNewSection, getNextVersions, getWhatsNewSection };
@@ -1,8 +1,10 @@
1
1
  import {
2
- getNextVersions
3
- } from "../chunk-FXQQJTT6.js";
2
+ getNextVersions,
3
+ getWhatsNewSection
4
+ } from "../chunk-Q7EXJ6B2.js";
4
5
  import "../chunk-XEWNI57X.js";
5
6
  export {
6
- getNextVersions
7
+ getNextVersions,
8
+ getWhatsNewSection
7
9
  };
8
10
  //# sourceMappingURL=versions.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";require('../chunk-QUUEZXZJ.cjs');
2
+ //# sourceMappingURL=workflows.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/workflows.cjs"],"names":[],"mappings":"AAAA,8CAA8B","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/workflows.cjs"}
@@ -0,0 +1,39 @@
1
+ import { INode, IConnections, IWorkflowSettings, IPinData } from 'n8n-workflow';
2
+ import { ITag } from './tags.cjs';
3
+
4
+ interface WorkflowMetadata {
5
+ onboardingId?: string;
6
+ templateId?: string;
7
+ instanceId?: string;
8
+ templateCredsSetupCompleted?: boolean;
9
+ }
10
+ interface WorkflowData {
11
+ id?: string;
12
+ name?: string;
13
+ active?: boolean;
14
+ nodes: INode[];
15
+ connections: IConnections;
16
+ settings?: IWorkflowSettings;
17
+ tags?: string[];
18
+ pinData?: IPinData;
19
+ versionId?: string;
20
+ meta?: WorkflowMetadata;
21
+ }
22
+ interface WorkflowDataUpdate {
23
+ id?: string;
24
+ name?: string;
25
+ nodes?: INode[];
26
+ connections?: IConnections;
27
+ settings?: IWorkflowSettings;
28
+ active?: boolean;
29
+ tags?: ITag[] | string[];
30
+ pinData?: IPinData;
31
+ versionId?: string;
32
+ meta?: WorkflowMetadata;
33
+ parentFolderId?: string;
34
+ }
35
+ interface WorkflowDataCreate extends WorkflowDataUpdate {
36
+ projectId?: string;
37
+ }
38
+
39
+ export type { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata };
@@ -0,0 +1,39 @@
1
+ import { INode, IConnections, IWorkflowSettings, IPinData } from 'n8n-workflow';
2
+ import { ITag } from './tags.js';
3
+
4
+ interface WorkflowMetadata {
5
+ onboardingId?: string;
6
+ templateId?: string;
7
+ instanceId?: string;
8
+ templateCredsSetupCompleted?: boolean;
9
+ }
10
+ interface WorkflowData {
11
+ id?: string;
12
+ name?: string;
13
+ active?: boolean;
14
+ nodes: INode[];
15
+ connections: IConnections;
16
+ settings?: IWorkflowSettings;
17
+ tags?: string[];
18
+ pinData?: IPinData;
19
+ versionId?: string;
20
+ meta?: WorkflowMetadata;
21
+ }
22
+ interface WorkflowDataUpdate {
23
+ id?: string;
24
+ name?: string;
25
+ nodes?: INode[];
26
+ connections?: IConnections;
27
+ settings?: IWorkflowSettings;
28
+ active?: boolean;
29
+ tags?: ITag[] | string[];
30
+ pinData?: IPinData;
31
+ versionId?: string;
32
+ meta?: WorkflowMetadata;
33
+ parentFolderId?: string;
34
+ }
35
+ interface WorkflowDataCreate extends WorkflowDataUpdate {
36
+ projectId?: string;
37
+ }
38
+
39
+ export type { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata };
@@ -0,0 +1,2 @@
1
+ import "../chunk-P652HZKI.js";
2
+ //# sourceMappingURL=workflows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
4
+
5
+ // src/api/module-settings.ts
6
+ async function getModuleSettings(context) {
7
+ return await _chunkBJZROXM5cjs.makeRestApiRequest.call(void 0, context, "GET", "/module-settings");
8
+ }
9
+
10
+
11
+
12
+ exports.getModuleSettings = getModuleSettings;
13
+ //# sourceMappingURL=chunk-5HPYAEBR.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-5HPYAEBR.cjs","../src/api/module-settings.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACCA,MAAA,SAAsB,iBAAA,CAAkB,OAAA,EAA2D;AAClG,EAAA,OAAO,MAAM,kDAAA,OAAmB,EAAS,KAAA,EAAO,kBAAkB,CAAA;AACnE;ADCA;AACA;AACE;AACF,8CAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-5HPYAEBR.cjs","sourcesContent":[null,"import type { FrontendModuleSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getModuleSettings(context: IRestApiContext): Promise<FrontendModuleSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/module-settings');\n}\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-72B7PPKD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-F2BR3GFD.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-7GMP4OAL.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-7GMP4OAL.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-F2BR3GFD.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-F2BR3GFD.cjs"}
@@ -0,0 +1,55 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
4
+
5
+ // src/api/templates.ts
6
+ function stringifyArray(arr) {
7
+ return arr.join(",");
8
+ }
9
+ async function testHealthEndpoint(apiEndpoint) {
10
+ return await _chunkBJZROXM5cjs.get.call(void 0, apiEndpoint, "/health");
11
+ }
12
+ async function getCategories(apiEndpoint, headers) {
13
+ return await _chunkBJZROXM5cjs.get.call(void 0, apiEndpoint, "/templates/categories", void 0, headers);
14
+ }
15
+ async function getCollections(apiEndpoint, query, headers) {
16
+ return await _chunkBJZROXM5cjs.get.call(void 0,
17
+ apiEndpoint,
18
+ "/templates/collections",
19
+ { category: query.categories, search: query.search },
20
+ headers
21
+ );
22
+ }
23
+ async function getWorkflows(apiEndpoint, query, headers) {
24
+ return await _chunkBJZROXM5cjs.get.call(void 0,
25
+ apiEndpoint,
26
+ "/templates/search",
27
+ {
28
+ page: query.page,
29
+ rows: query.limit,
30
+ category: stringifyArray(query.categories),
31
+ search: query.search
32
+ },
33
+ headers
34
+ );
35
+ }
36
+ async function getCollectionById(apiEndpoint, collectionId, headers) {
37
+ return await _chunkBJZROXM5cjs.get.call(void 0, apiEndpoint, `/templates/collections/${collectionId}`, void 0, headers);
38
+ }
39
+ async function getTemplateById(apiEndpoint, templateId, headers) {
40
+ return await _chunkBJZROXM5cjs.get.call(void 0, apiEndpoint, `/templates/workflows/${templateId}`, void 0, headers);
41
+ }
42
+ async function getWorkflowTemplate(apiEndpoint, templateId, headers) {
43
+ return await _chunkBJZROXM5cjs.get.call(void 0, apiEndpoint, `/workflows/templates/${templateId}`, void 0, headers);
44
+ }
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+ exports.testHealthEndpoint = testHealthEndpoint; exports.getCategories = getCategories; exports.getCollections = getCollections; exports.getWorkflows = getWorkflows; exports.getCollectionById = getCollectionById; exports.getTemplateById = getTemplateById; exports.getWorkflowTemplate = getWorkflowTemplate;
55
+ //# sourceMappingURL=chunk-GEZ7P5JL.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-GEZ7P5JL.cjs","../src/api/templates.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACsHA,SAAS,cAAA,CAAe,GAAA,EAAe;AACtC,EAAA,OAAO,GAAA,CAAI,IAAA,CAAK,GAAG,CAAA;AACpB;AAEA,MAAA,SAAsB,kBAAA,CAAmB,WAAA,EAAqB;AAC7D,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,SAAS,CAAA;AACxC;AAEA,MAAA,SAAsB,aAAA,CACrB,WAAA,EACA,OAAA,EACgD;AAChD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,uBAAA,EAAyB,KAAA,CAAA,EAAW,OAAO,CAAA;AAC1E;AAEA,MAAA,SAAsB,cAAA,CACrB,WAAA,EACA,KAAA,EACA,OAAA,EACmD;AACnD,EAAA,OAAO,MAAM,mCAAA;AAAA,IACZ,WAAA;AAAA,IACA,wBAAA;AAAA,IACA,EAAE,QAAA,EAAU,KAAA,CAAM,UAAA,EAAY,MAAA,EAAQ,KAAA,CAAM,OAAO,CAAA;AAAA,IACnD;AAAA,EACD,CAAA;AACD;AAEA,MAAA,SAAsB,YAAA,CACrB,WAAA,EACA,KAAA,EACA,OAAA,EAKE;AACF,EAAA,OAAO,MAAM,mCAAA;AAAA,IACZ,WAAA;AAAA,IACA,mBAAA;AAAA,IACA;AAAA,MACC,IAAA,EAAM,KAAA,CAAM,IAAA;AAAA,MACZ,IAAA,EAAM,KAAA,CAAM,KAAA;AAAA,MACZ,QAAA,EAAU,cAAA,CAAe,KAAA,CAAM,UAAU,CAAA;AAAA,MACzC,MAAA,EAAQ,KAAA,CAAM;AAAA,IACf,CAAA;AAAA,IACA;AAAA,EACD,CAAA;AACD;AAEA,MAAA,SAAsB,iBAAA,CACrB,WAAA,EACA,YAAA,EACA,OAAA,EACwD;AACxD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,CAAA,uBAAA,EAA0B,YAAY,CAAA,CAAA;AACrE;AAMqD;AACgB,EAAA;AACrE;AAM8B;AACuC,EAAA;AACrE;ADtJuE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-GEZ7P5JL.cjs","sourcesContent":[null,"import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: { page: number; limit: number; categories: string[]; search: string },\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/search',\n\t\t{\n\t\t\tpage: query.page,\n\t\t\trows: query.limit,\n\t\t\tcategory: stringifyArray(query.categories),\n\t\t\tsearch: query.search,\n\t\t},\n\t\theaders,\n\t);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"]}
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-GLSB4GH3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-GLSB4GH3.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-GLSB4GH3.cjs"}
@@ -0,0 +1,13 @@
1
+ import {
2
+ makeRestApiRequest
3
+ } from "./chunk-XEWNI57X.js";
4
+
5
+ // src/api/module-settings.ts
6
+ async function getModuleSettings(context) {
7
+ return await makeRestApiRequest(context, "GET", "/module-settings");
8
+ }
9
+
10
+ export {
11
+ getModuleSettings
12
+ };
13
+ //# sourceMappingURL=chunk-LWPFHULW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/module-settings.ts"],"sourcesContent":["import type { FrontendModuleSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getModuleSettings(context: IRestApiContext): Promise<FrontendModuleSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/module-settings');\n}\n"],"mappings":";;;;;AAKA,eAAsB,kBAAkB,SAA2D;AAClG,SAAO,MAAM,mBAAmB,SAAS,OAAO,kBAAkB;AACnE;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-P652HZKI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,55 @@
1
+ import {
2
+ get
3
+ } from "./chunk-XEWNI57X.js";
4
+
5
+ // src/api/templates.ts
6
+ function stringifyArray(arr) {
7
+ return arr.join(",");
8
+ }
9
+ async function testHealthEndpoint(apiEndpoint) {
10
+ return await get(apiEndpoint, "/health");
11
+ }
12
+ async function getCategories(apiEndpoint, headers) {
13
+ return await get(apiEndpoint, "/templates/categories", void 0, headers);
14
+ }
15
+ async function getCollections(apiEndpoint, query, headers) {
16
+ return await get(
17
+ apiEndpoint,
18
+ "/templates/collections",
19
+ { category: query.categories, search: query.search },
20
+ headers
21
+ );
22
+ }
23
+ async function getWorkflows(apiEndpoint, query, headers) {
24
+ return await get(
25
+ apiEndpoint,
26
+ "/templates/search",
27
+ {
28
+ page: query.page,
29
+ rows: query.limit,
30
+ category: stringifyArray(query.categories),
31
+ search: query.search
32
+ },
33
+ headers
34
+ );
35
+ }
36
+ async function getCollectionById(apiEndpoint, collectionId, headers) {
37
+ return await get(apiEndpoint, `/templates/collections/${collectionId}`, void 0, headers);
38
+ }
39
+ async function getTemplateById(apiEndpoint, templateId, headers) {
40
+ return await get(apiEndpoint, `/templates/workflows/${templateId}`, void 0, headers);
41
+ }
42
+ async function getWorkflowTemplate(apiEndpoint, templateId, headers) {
43
+ return await get(apiEndpoint, `/workflows/templates/${templateId}`, void 0, headers);
44
+ }
45
+
46
+ export {
47
+ testHealthEndpoint,
48
+ getCategories,
49
+ getCollections,
50
+ getWorkflows,
51
+ getCollectionById,
52
+ getTemplateById,
53
+ getWorkflowTemplate
54
+ };
55
+ //# sourceMappingURL=chunk-PUTYSFAZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/templates.ts"],"sourcesContent":["import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: { page: number; limit: number; categories: string[]; search: string },\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/search',\n\t\t{\n\t\t\tpage: query.page,\n\t\t\trows: query.limit,\n\t\t\tcategory: stringifyArray(query.categories),\n\t\t\tsearch: query.search,\n\t\t},\n\t\theaders,\n\t);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"],"mappings":";;;;;AA0HA,SAAS,eAAe,KAAe;AACtC,SAAO,IAAI,KAAK,GAAG;AACpB;AAEA,eAAsB,mBAAmB,aAAqB;AAC7D,SAAO,MAAM,IAAI,aAAa,SAAS;AACxC;AAEA,eAAsB,cACrB,aACA,SACgD;AAChD,SAAO,MAAM,IAAI,aAAa,yBAAyB,QAAW,OAAO;AAC1E;AAEA,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA,EAAE,UAAU,MAAM,YAAY,QAAQ,MAAM,OAAO;AAAA,IACnD;AAAA,EACD;AACD;AAEA,eAAsB,aACrB,aACA,OACA,SAKE;AACF,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,MACC,MAAM,MAAM;AAAA,MACZ,MAAM,MAAM;AAAA,MACZ,UAAU,eAAe,MAAM,UAAU;AAAA,MACzC,QAAQ,MAAM;AAAA,IACf;AAAA,IACA;AAAA,EACD;AACD;AAEA,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,SAAO,MAAM,IAAI,aAAa,0BAA0B,YAAY,IAAI,QAAW,OAAO;AAC3F;AAEA,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;AAEA,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;","names":[]}
@@ -0,0 +1,23 @@
1
+ import {
2
+ get
3
+ } from "./chunk-XEWNI57X.js";
4
+
5
+ // src/api/versions.ts
6
+ import { INSTANCE_ID_HEADER, INSTANCE_VERSION_HEADER } from "@n8n/constants";
7
+ async function getNextVersions(endpoint, currentVersion, instanceId) {
8
+ const headers = { [INSTANCE_ID_HEADER]: instanceId };
9
+ return await get(endpoint, currentVersion, {}, headers);
10
+ }
11
+ async function getWhatsNewSection(endpoint, currentVersion, instanceId) {
12
+ const headers = {
13
+ [INSTANCE_ID_HEADER]: instanceId,
14
+ [INSTANCE_VERSION_HEADER]: currentVersion
15
+ };
16
+ return await get(endpoint, "", {}, headers);
17
+ }
18
+
19
+ export {
20
+ getNextVersions,
21
+ getWhatsNewSection
22
+ };
23
+ //# sourceMappingURL=chunk-Q7EXJ6B2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/versions.ts"],"sourcesContent":["import { INSTANCE_ID_HEADER, INSTANCE_VERSION_HEADER } from '@n8n/constants';\nimport type { INodeParameters } from 'n8n-workflow';\n\nimport { get } from '../utils';\n\nexport interface VersionNode {\n\tname: string;\n\tdisplayName: string;\n\ticon: string;\n\ticonUrl?: string;\n\tdefaults: INodeParameters;\n\ticonData: {\n\t\ttype: string;\n\t\ticon?: string;\n\t\tfileBuffer?: string;\n\t};\n\ttypeVersion?: number;\n}\n\nexport interface Version {\n\tname: string;\n\tnodes: VersionNode[];\n\tcreatedAt: string;\n\tdescription: string;\n\tdocumentationUrl: string;\n\thasBreakingChange: boolean;\n\thasSecurityFix: boolean;\n\thasSecurityIssue: boolean;\n\tsecurityIssueFixVersion: string;\n}\n\nexport interface WhatsNewSection {\n\ttitle: string;\n\tcalloutText: string;\n\tfooter: string;\n\titems: WhatsNewArticle[];\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n}\n\nexport interface WhatsNewArticle {\n\tid: number;\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n\tpublishedAt: string;\n\ttitle: string;\n\tcontent: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, currentVersion, {}, headers);\n}\n\nexport async function getWhatsNewSection(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<WhatsNewSection> {\n\tconst headers = {\n\t\t[INSTANCE_ID_HEADER as string]: instanceId,\n\t\t[INSTANCE_VERSION_HEADER as string]: currentVersion,\n\t};\n\treturn await get(endpoint, '', {}, headers);\n}\n"],"mappings":";;;;;AAAA,SAAS,oBAAoB,+BAA+B;AAiD5D,eAAsB,gBACrB,UACA,gBACA,YACqB;AACrB,QAAM,UAAU,EAAE,CAAC,kBAA4B,GAAG,WAAW;AAC7D,SAAO,MAAM,IAAI,UAAU,gBAAgB,CAAC,GAAG,OAAO;AACvD;AAEA,eAAsB,mBACrB,UACA,gBACA,YAC2B;AAC3B,QAAM,UAAU;AAAA,IACf,CAAC,kBAA4B,GAAG;AAAA,IAChC,CAAC,uBAAiC,GAAG;AAAA,EACtC;AACA,SAAO,MAAM,IAAI,UAAU,IAAI,CAAC,GAAG,OAAO;AAC3C;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-QGKFNOJQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-QUUEZXZJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-QUUEZXZJ.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-QUUEZXZJ.cjs"}
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
4
+
5
+ // src/api/versions.ts
6
+ var _constants = require('@n8n/constants');
7
+ async function getNextVersions(endpoint, currentVersion, instanceId) {
8
+ const headers = { [_constants.INSTANCE_ID_HEADER]: instanceId };
9
+ return await _chunkBJZROXM5cjs.get.call(void 0, endpoint, currentVersion, {}, headers);
10
+ }
11
+ async function getWhatsNewSection(endpoint, currentVersion, instanceId) {
12
+ const headers = {
13
+ [_constants.INSTANCE_ID_HEADER]: instanceId,
14
+ [_constants.INSTANCE_VERSION_HEADER]: currentVersion
15
+ };
16
+ return await _chunkBJZROXM5cjs.get.call(void 0, endpoint, "", {}, headers);
17
+ }
18
+
19
+
20
+
21
+
22
+ exports.getNextVersions = getNextVersions; exports.getWhatsNewSection = getWhatsNewSection;
23
+ //# sourceMappingURL=chunk-ZHELW3VP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-ZHELW3VP.cjs","../src/api/versions.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACJA,2CAA4D;AAiD5D,MAAA,SAAsB,eAAA,CACrB,QAAA,EACA,cAAA,EACA,UAAA,EACqB;AACrB,EAAA,MAAM,QAAA,EAAU,EAAE,CAAC,6BAA4B,CAAA,EAAG,WAAW,CAAA;AAC7D,EAAA,OAAO,MAAM,mCAAA,QAAI,EAAU,cAAA,EAAgB,CAAC,CAAA,EAAG,OAAO,CAAA;AACvD;AAEA,MAAA,SAAsB,kBAAA,CACrB,QAAA,EACA,cAAA,EACA,UAAA,EAC2B;AAC3B,EAAA,MAAM,QAAA,EAAU;AAAA,IACf,CAAC,6BAA4B,CAAA,EAAG,UAAA;AAAA,IAChC,CAAC,kCAAiC,CAAA,EAAG;AAAA,EACtC,CAAA;AACA,EAAA,OAAO,MAAM,mCAAA,QAAI,EAAU,EAAA,EAAI,CAAC,CAAA,EAAG,OAAO,CAAA;AAC3C;ADnDA;AACA;AACE;AACA;AACF,2FAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-ZHELW3VP.cjs","sourcesContent":[null,"import { INSTANCE_ID_HEADER, INSTANCE_VERSION_HEADER } from '@n8n/constants';\nimport type { INodeParameters } from 'n8n-workflow';\n\nimport { get } from '../utils';\n\nexport interface VersionNode {\n\tname: string;\n\tdisplayName: string;\n\ticon: string;\n\ticonUrl?: string;\n\tdefaults: INodeParameters;\n\ticonData: {\n\t\ttype: string;\n\t\ticon?: string;\n\t\tfileBuffer?: string;\n\t};\n\ttypeVersion?: number;\n}\n\nexport interface Version {\n\tname: string;\n\tnodes: VersionNode[];\n\tcreatedAt: string;\n\tdescription: string;\n\tdocumentationUrl: string;\n\thasBreakingChange: boolean;\n\thasSecurityFix: boolean;\n\thasSecurityIssue: boolean;\n\tsecurityIssueFixVersion: string;\n}\n\nexport interface WhatsNewSection {\n\ttitle: string;\n\tcalloutText: string;\n\tfooter: string;\n\titems: WhatsNewArticle[];\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n}\n\nexport interface WhatsNewArticle {\n\tid: number;\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n\tpublishedAt: string;\n\ttitle: string;\n\tcontent: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, currentVersion, {}, headers);\n}\n\nexport async function getWhatsNewSection(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<WhatsNewSection> {\n\tconst headers = {\n\t\t[INSTANCE_ID_HEADER as string]: instanceId,\n\t\t[INSTANCE_VERSION_HEADER as string]: currentVersion,\n\t};\n\treturn await get(endpoint, '', {}, headers);\n}\n"]}
package/dist/index.cjs CHANGED
@@ -1,4 +1,19 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7GMP4OAL.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-GLSB4GH3.cjs');
2
+
3
+
4
+
5
+ var _chunkZHELW3VPcjs = require('./chunk-ZHELW3VP.cjs');
6
+
7
+
8
+ var _chunkTPJH3ODZcjs = require('./chunk-TPJH3ODZ.cjs');
9
+
10
+
11
+
12
+ var _chunkI7RGOI7Mcjs = require('./chunk-I7RGOI7M.cjs');
13
+ require('./chunk-QUUEZXZJ.cjs');
14
+
15
+
16
+ var _chunkEC4X5QK7cjs = require('./chunk-EC4X5QK7.cjs');
2
17
 
3
18
 
4
19
 
@@ -20,19 +35,19 @@ var _chunkSRXOQNCAcjs = require('./chunk-SRXOQNCA.cjs');
20
35
 
21
36
 
22
37
  var _chunkPINAQIUHcjs = require('./chunk-PINAQIUH.cjs');
38
+ require('./chunk-F2BR3GFD.cjs');
23
39
 
24
40
 
25
- var _chunkVIX6KJAAcjs = require('./chunk-VIX6KJAA.cjs');
26
41
 
27
42
 
28
- var _chunkRYFRJOLTcjs = require('./chunk-RYFRJOLT.cjs');
29
43
 
30
44
 
31
- var _chunkTPJH3ODZcjs = require('./chunk-TPJH3ODZ.cjs');
32
45
 
33
46
 
47
+ var _chunkGEZ7P5JLcjs = require('./chunk-GEZ7P5JL.cjs');
34
48
 
35
- var _chunkI7RGOI7Mcjs = require('./chunk-I7RGOI7M.cjs');
49
+
50
+ var _chunkVIX6KJAAcjs = require('./chunk-VIX6KJAA.cjs');
36
51
 
37
52
 
38
53
  var _chunk4V4RUEM3cjs = require('./chunk-4V4RUEM3.cjs');
@@ -52,6 +67,7 @@ var _chunkV23ZNIFQcjs = require('./chunk-V23ZNIFQ.cjs');
52
67
  var _chunk6BEPD323cjs = require('./chunk-6BEPD323.cjs');
53
68
 
54
69
 
70
+ var _chunk5HPYAEBRcjs = require('./chunk-5HPYAEBR.cjs');
55
71
 
56
72
 
57
73
 
@@ -61,13 +77,12 @@ var _chunk6BEPD323cjs = require('./chunk-6BEPD323.cjs');
61
77
 
62
78
 
63
79
 
64
- var _chunkB5P5VN56cjs = require('./chunk-B5P5VN56.cjs');
65
80
 
66
81
 
67
- var _chunk4IDLCD6Ccjs = require('./chunk-4IDLCD6C.cjs');
82
+ var _chunkB5P5VN56cjs = require('./chunk-B5P5VN56.cjs');
68
83
 
69
84
 
70
- var _chunkEC4X5QK7cjs = require('./chunk-EC4X5QK7.cjs');
85
+ var _chunk4IDLCD6Ccjs = require('./chunk-4IDLCD6C.cjs');
71
86
  require('./chunk-PO2SPQJP.cjs');
72
87
 
73
88
 
@@ -187,5 +202,14 @@ var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
187
202
 
188
203
 
189
204
 
190
- exports.NO_NETWORK_ERROR_CODE = _chunkBJZROXM5cjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunkBJZROXM5cjs.ResponseError; exports.STREAM_SEPERATOR = _chunkBJZROXM5cjs.STREAM_SEPERATOR; exports.canEnableMFA = _chunk6BEPD323cjs.canEnableMFA; exports.createApiKey = _chunkJAFCRNMHcjs.createApiKey; exports.deleteApiKey = _chunkJAFCRNMHcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunk575X4GYWcjs.deleteDestinationFromDb; exports.disableMfa = _chunk6BEPD323cjs.disableMfa; exports.dismissBannerPermanently = _chunkVIX6KJAAcjs.dismissBannerPermanently; exports.enableMfa = _chunk6BEPD323cjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkB5P5VN56cjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkB5P5VN56cjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkTPJH3ODZcjs.findWebhook; exports.get = _chunkBJZROXM5cjs.get; exports.getAdminPanelLoginCode = _chunkMOQI72I4cjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkJAFCRNMHcjs.getApiKeyScopes; exports.getApiKeys = _chunkJAFCRNMHcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkWCUCSPGIcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunk7TPC6CKZcjs.getBecomeCreatorCta; exports.getCloudUserInfo = _chunkMOQI72I4cjs.getCloudUserInfo; exports.getCurrentPlan = _chunkMOQI72I4cjs.getCurrentPlan; exports.getCurrentUsage = _chunkMOQI72I4cjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunk575X4GYWcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunk575X4GYWcjs.getEventNamesFromBackend; exports.getFullApiResponse = _chunkBJZROXM5cjs.getFullApiResponse; exports.getInstalledCommunityNodes = _chunkWCUCSPGIcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkV23ZNIFQcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkV23ZNIFQcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkB5P5VN56cjs.getLocalResourceMapperFields; exports.getMfaQR = _chunk6BEPD323cjs.getMfaQR; exports.getNextVersions = _chunkRYFRJOLTcjs.getNextVersions; exports.getNodeParameterActionResult = _chunkB5P5VN56cjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkB5P5VN56cjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkB5P5VN56cjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkB5P5VN56cjs.getNodeTypes; exports.getNodesInformation = _chunkB5P5VN56cjs.getNodesInformation; exports.getOidcConfig = _chunkPINAQIUHcjs.getOidcConfig; exports.getPromptsData = _chunkMGE7P7D5cjs.getPromptsData; exports.getResourceLocatorResults = _chunkB5P5VN56cjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkB5P5VN56cjs.getResourceMapperFields; exports.getRoles = _chunkGD7AFETXcjs.getRoles; exports.getSamlConfig = _chunkPINAQIUHcjs.getSamlConfig; exports.getSamlMetadata = _chunkPINAQIUHcjs.getSamlMetadata; exports.getSettings = _chunkSRXOQNCAcjs.getSettings; exports.getWorkflowHistory = _chunkI7RGOI7Mcjs.getWorkflowHistory; exports.getWorkflowVersion = _chunkI7RGOI7Mcjs.getWorkflowVersion; exports.hasDestinationId = _chunk575X4GYWcjs.hasDestinationId; exports.initOidcLogin = _chunkPINAQIUHcjs.initOidcLogin; exports.initSSO = _chunkPINAQIUHcjs.initSSO; exports.installNewPackage = _chunkWCUCSPGIcjs.installNewPackage; exports.makeRestApiRequest = _chunkBJZROXM5cjs.makeRestApiRequest; exports.patch = _chunkBJZROXM5cjs.patch; exports.post = _chunkBJZROXM5cjs.post; exports.request = _chunkBJZROXM5cjs.request; exports.runLdapSync = _chunkV23ZNIFQcjs.runLdapSync; exports.saveDestinationToDb = _chunk575X4GYWcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkPINAQIUHcjs.saveOidcConfig; exports.saveSamlConfig = _chunkPINAQIUHcjs.saveSamlConfig; exports.sendConfirmationEmail = _chunkMOQI72I4cjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkEC4X5QK7cjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunk575X4GYWcjs.sendTestMessageToDestination; exports.sessionStarted = _chunk4V4RUEM3cjs.sessionStarted; exports.streamRequest = _chunkBJZROXM5cjs.streamRequest; exports.submitContactInfo = _chunkMGE7P7D5cjs.submitContactInfo; exports.testLdapConnection = _chunkV23ZNIFQcjs.testLdapConnection; exports.testSamlConfig = _chunkPINAQIUHcjs.testSamlConfig; exports.toggleSamlConfig = _chunkPINAQIUHcjs.toggleSamlConfig; exports.uninstallPackage = _chunkWCUCSPGIcjs.uninstallPackage; exports.updateApiKey = _chunkJAFCRNMHcjs.updateApiKey; exports.updateLdapConfig = _chunkV23ZNIFQcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk4IDLCD6Ccjs.updateNpsSurveyState; exports.updatePackage = _chunkWCUCSPGIcjs.updatePackage; exports.verifyMfaCode = _chunk6BEPD323cjs.verifyMfaCode;
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ exports.NO_NETWORK_ERROR_CODE = _chunkBJZROXM5cjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunkBJZROXM5cjs.ResponseError; exports.STREAM_SEPERATOR = _chunkBJZROXM5cjs.STREAM_SEPERATOR; exports.canEnableMFA = _chunk6BEPD323cjs.canEnableMFA; exports.createApiKey = _chunkJAFCRNMHcjs.createApiKey; exports.deleteApiKey = _chunkJAFCRNMHcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunk575X4GYWcjs.deleteDestinationFromDb; exports.disableMfa = _chunk6BEPD323cjs.disableMfa; exports.dismissBannerPermanently = _chunkVIX6KJAAcjs.dismissBannerPermanently; exports.enableMfa = _chunk6BEPD323cjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkB5P5VN56cjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkB5P5VN56cjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkTPJH3ODZcjs.findWebhook; exports.get = _chunkBJZROXM5cjs.get; exports.getAdminPanelLoginCode = _chunkMOQI72I4cjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkJAFCRNMHcjs.getApiKeyScopes; exports.getApiKeys = _chunkJAFCRNMHcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkWCUCSPGIcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunk7TPC6CKZcjs.getBecomeCreatorCta; exports.getCategories = _chunkGEZ7P5JLcjs.getCategories; exports.getCloudUserInfo = _chunkMOQI72I4cjs.getCloudUserInfo; exports.getCollectionById = _chunkGEZ7P5JLcjs.getCollectionById; exports.getCollections = _chunkGEZ7P5JLcjs.getCollections; exports.getCurrentPlan = _chunkMOQI72I4cjs.getCurrentPlan; exports.getCurrentUsage = _chunkMOQI72I4cjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunk575X4GYWcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunk575X4GYWcjs.getEventNamesFromBackend; exports.getFullApiResponse = _chunkBJZROXM5cjs.getFullApiResponse; exports.getInstalledCommunityNodes = _chunkWCUCSPGIcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkV23ZNIFQcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkV23ZNIFQcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkB5P5VN56cjs.getLocalResourceMapperFields; exports.getMfaQR = _chunk6BEPD323cjs.getMfaQR; exports.getModuleSettings = _chunk5HPYAEBRcjs.getModuleSettings; exports.getNextVersions = _chunkZHELW3VPcjs.getNextVersions; exports.getNodeParameterActionResult = _chunkB5P5VN56cjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkB5P5VN56cjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkB5P5VN56cjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkB5P5VN56cjs.getNodeTypes; exports.getNodesInformation = _chunkB5P5VN56cjs.getNodesInformation; exports.getOidcConfig = _chunkPINAQIUHcjs.getOidcConfig; exports.getPromptsData = _chunkMGE7P7D5cjs.getPromptsData; exports.getResourceLocatorResults = _chunkB5P5VN56cjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkB5P5VN56cjs.getResourceMapperFields; exports.getRoles = _chunkGD7AFETXcjs.getRoles; exports.getSamlConfig = _chunkPINAQIUHcjs.getSamlConfig; exports.getSamlMetadata = _chunkPINAQIUHcjs.getSamlMetadata; exports.getSettings = _chunkSRXOQNCAcjs.getSettings; exports.getTemplateById = _chunkGEZ7P5JLcjs.getTemplateById; exports.getWhatsNewSection = _chunkZHELW3VPcjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkI7RGOI7Mcjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkGEZ7P5JLcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkI7RGOI7Mcjs.getWorkflowVersion; exports.getWorkflows = _chunkGEZ7P5JLcjs.getWorkflows; exports.hasDestinationId = _chunk575X4GYWcjs.hasDestinationId; exports.initOidcLogin = _chunkPINAQIUHcjs.initOidcLogin; exports.initSSO = _chunkPINAQIUHcjs.initSSO; exports.installNewPackage = _chunkWCUCSPGIcjs.installNewPackage; exports.makeRestApiRequest = _chunkBJZROXM5cjs.makeRestApiRequest; exports.patch = _chunkBJZROXM5cjs.patch; exports.post = _chunkBJZROXM5cjs.post; exports.request = _chunkBJZROXM5cjs.request; exports.runLdapSync = _chunkV23ZNIFQcjs.runLdapSync; exports.saveDestinationToDb = _chunk575X4GYWcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkPINAQIUHcjs.saveOidcConfig; exports.saveSamlConfig = _chunkPINAQIUHcjs.saveSamlConfig; exports.sendConfirmationEmail = _chunkMOQI72I4cjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkEC4X5QK7cjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunk575X4GYWcjs.sendTestMessageToDestination; exports.sessionStarted = _chunk4V4RUEM3cjs.sessionStarted; exports.streamRequest = _chunkBJZROXM5cjs.streamRequest; exports.submitContactInfo = _chunkMGE7P7D5cjs.submitContactInfo; exports.testHealthEndpoint = _chunkGEZ7P5JLcjs.testHealthEndpoint; exports.testLdapConnection = _chunkV23ZNIFQcjs.testLdapConnection; exports.testSamlConfig = _chunkPINAQIUHcjs.testSamlConfig; exports.toggleSamlConfig = _chunkPINAQIUHcjs.toggleSamlConfig; exports.uninstallPackage = _chunkWCUCSPGIcjs.uninstallPackage; exports.updateApiKey = _chunkJAFCRNMHcjs.updateApiKey; exports.updateLdapConfig = _chunkV23ZNIFQcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk4IDLCD6Ccjs.updateNpsSurveyState; exports.updatePackage = _chunkWCUCSPGIcjs.updatePackage; exports.verifyMfaCode = _chunk6BEPD323cjs.verifyMfaCode;
191
215
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0jJAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+mKAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"}
package/dist/index.d.cts CHANGED
@@ -12,11 +12,15 @@ export { sendGetWorkerStatus } from './api/orchestration.cjs';
12
12
  export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo } from './api/prompts.cjs';
13
13
  export { getRoles } from './api/roles.cjs';
14
14
  export { getSettings } from './api/settings.cjs';
15
+ export { getModuleSettings } from './api/module-settings.cjs';
15
16
  export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testSamlConfig, toggleSamlConfig } from './api/sso.cjs';
17
+ export { ITag } from './api/tags.cjs';
18
+ export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.cjs';
16
19
  export { dismissBannerPermanently } from './api/ui.cjs';
17
- export { Version, VersionNode, getNextVersions } from './api/versions.cjs';
20
+ export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.cjs';
18
21
  export { findWebhook } from './api/webhooks.cjs';
19
22
  export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.cjs';
23
+ export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './api/workflows.cjs';
20
24
  export { IRestApiContext } from './types.cjs';
21
25
  export { NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPERATOR, get, getFullApiResponse, makeRestApiRequest, patch, post, request, streamRequest } from './utils.cjs';
22
26
  import '@n8n/api-types';
package/dist/index.d.ts CHANGED
@@ -12,11 +12,15 @@ export { sendGetWorkerStatus } from './api/orchestration.js';
12
12
  export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo } from './api/prompts.js';
13
13
  export { getRoles } from './api/roles.js';
14
14
  export { getSettings } from './api/settings.js';
15
+ export { getModuleSettings } from './api/module-settings.js';
15
16
  export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testSamlConfig, toggleSamlConfig } from './api/sso.js';
17
+ export { ITag } from './api/tags.js';
18
+ export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.js';
16
19
  export { dismissBannerPermanently } from './api/ui.js';
17
- export { Version, VersionNode, getNextVersions } from './api/versions.js';
20
+ export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.js';
18
21
  export { findWebhook } from './api/webhooks.js';
19
22
  export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.js';
23
+ export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './api/workflows.js';
20
24
  export { IRestApiContext } from './types.js';
21
25
  export { NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPERATOR, get, getFullApiResponse, makeRestApiRequest, patch, post, request, streamRequest } from './utils.js';
22
26
  import '@n8n/api-types';