@egose/n8n-client 0.2.1 → 0.3.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 (121) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +8 -0
  3. package/{chunk-6JJ6RA5B.cjs → chunk-2T5KNPFX.cjs} +8 -1
  4. package/{chunk-RPB226OX.cjs → chunk-6MUNAE5L.cjs} +6 -6
  5. package/{chunk-3FDDCKAY.js → chunk-AS5WBSR3.js} +6 -6
  6. package/{chunk-TY76RTXQ.cjs → chunk-CWQXMALU.cjs} +7 -1
  7. package/{chunk-YSWBOCXJ.cjs → chunk-D4GV65GT.cjs} +10 -1
  8. package/{chunk-KRPRS2E5.cjs → chunk-DYUXQTFU.cjs} +6 -6
  9. package/{chunk-7H75UBMH.cjs → chunk-FB754K3A.cjs} +7 -1
  10. package/{chunk-4VK7K4IF.js → chunk-FOZHT2ZK.js} +7 -1
  11. package/{chunk-T62VHXNY.js → chunk-FSN23TT6.js} +7 -1
  12. package/{chunk-NBLW25ME.cjs → chunk-GUTI2M4U.cjs} +7 -1
  13. package/{chunk-GZ3POWDP.cjs → chunk-I2VZ7J4P.cjs} +6 -6
  14. package/{chunk-MMN2UKTI.cjs → chunk-JFTS6N3U.cjs} +11 -1
  15. package/{chunk-54N6YD4R.js → chunk-KBFYNP56.js} +2 -2
  16. package/{chunk-ETVDSJLY.js → chunk-KKFA5PJR.js} +2 -2
  17. package/{chunk-I4MMTW33.js → chunk-KMFHNXIH.js} +13 -1
  18. package/{chunk-W5P34RYO.cjs → chunk-O7AV3KS4.cjs} +31 -3
  19. package/{chunk-2R6A6NJE.js → chunk-PEUZAXIY.js} +10 -1
  20. package/{chunk-DTDNBA7W.cjs → chunk-TFMO4KWG.cjs} +4 -4
  21. package/{chunk-3YWWR6UD.cjs → chunk-TUWIRWCR.cjs} +14 -2
  22. package/{chunk-ZIIR24GM.cjs → chunk-U7CFNNJT.cjs} +11 -11
  23. package/{chunk-YE2OS2KS.js → chunk-UCSJX4UC.js} +8 -1
  24. package/{chunk-BQ2OTUXQ.js → chunk-UZYRG5OI.js} +2 -2
  25. package/{chunk-PT5DDLHC.js → chunk-VOCYFQYV.js} +2 -2
  26. package/{chunk-5DDMSYH2.js → chunk-W23TMDMQ.js} +2 -2
  27. package/{chunk-XJP6FPN3.js → chunk-WDO7B3R6.js} +11 -1
  28. package/{chunk-FTIVM52X.cjs → chunk-WO3YZAZT.cjs} +6 -6
  29. package/{chunk-YHSDCE3I.js → chunk-WQJUADC6.js} +7 -1
  30. package/{chunk-LQULSPET.cjs → chunk-WWVQNBTG.cjs} +6 -6
  31. package/{chunk-QJR4WFNV.js → chunk-YAYKWLOQ.js} +2 -2
  32. package/{chunk-GEWLPVNV.cjs → chunk-YWK563XR.cjs} +6 -6
  33. package/{chunk-LTYQTCHM.js → chunk-Z7XHC77E.js} +30 -2
  34. package/{chunk-HISH4ORK.js → chunk-ZPE32BQU.js} +2 -2
  35. package/clients/community-package.cjs +3 -3
  36. package/clients/community-package.d.cts +1 -1
  37. package/clients/community-package.d.ts +1 -1
  38. package/clients/community-package.js +2 -2
  39. package/clients/credential.cjs +3 -3
  40. package/clients/credential.d.cts +1 -1
  41. package/clients/credential.d.ts +1 -1
  42. package/clients/credential.js +2 -2
  43. package/clients/data-table.cjs +3 -3
  44. package/clients/data-table.d.cts +1 -1
  45. package/clients/data-table.d.ts +1 -1
  46. package/clients/data-table.js +2 -2
  47. package/clients/folder.cjs +3 -3
  48. package/clients/folder.d.cts +1 -1
  49. package/clients/folder.d.ts +1 -1
  50. package/clients/folder.js +2 -2
  51. package/clients/project.cjs +11 -11
  52. package/clients/project.d.cts +5 -5
  53. package/clients/project.d.ts +5 -5
  54. package/clients/project.js +10 -10
  55. package/clients/tag.cjs +3 -3
  56. package/clients/tag.d.cts +1 -1
  57. package/clients/tag.d.ts +1 -1
  58. package/clients/tag.js +2 -2
  59. package/clients/variable.cjs +3 -3
  60. package/clients/variable.d.cts +1 -1
  61. package/clients/variable.d.ts +1 -1
  62. package/clients/variable.js +2 -2
  63. package/clients/workflow.cjs +3 -3
  64. package/clients/workflow.d.cts +1 -1
  65. package/clients/workflow.d.ts +1 -1
  66. package/clients/workflow.js +2 -2
  67. package/{community-package-DBpReCPV.d.cts → community-package-BvmF_pP6.d.cts} +1 -0
  68. package/{community-package-CyzAqqwH.d.ts → community-package-xeQrLKme.d.ts} +1 -0
  69. package/{credential-CEH7XbGn.d.cts → credential-DPt1le6v.d.cts} +1 -0
  70. package/{credential-BWcrGfqd.d.ts → credential-Knm3Xhxp.d.ts} +1 -0
  71. package/{data-table-CHGUClGF.d.ts → data-table-Cg92UE2v.d.ts} +1 -0
  72. package/{data-table-CzR5kl9T.d.cts → data-table-ablBPGNU.d.cts} +1 -0
  73. package/{folder-DvgIxSea.d.cts → folder-DDe0xOyE.d.cts} +1 -0
  74. package/{folder-bjRPcy2j.d.ts → folder-JrOxuQPO.d.ts} +1 -0
  75. package/index.cjs +67 -26
  76. package/index.d.cts +74 -16
  77. package/index.d.ts +74 -16
  78. package/index.js +57 -16
  79. package/package.json +1 -1
  80. package/{project-BS1fXSLW.d.cts → project-CfXFXbv5.d.cts} +13 -4
  81. package/{project-uws9k24H.d.ts → project-DwqDoil4.d.ts} +13 -4
  82. package/resources/community-package.cjs +2 -2
  83. package/resources/community-package.d.cts +1 -1
  84. package/resources/community-package.d.ts +1 -1
  85. package/resources/community-package.js +1 -1
  86. package/resources/credential.cjs +2 -2
  87. package/resources/credential.d.cts +1 -1
  88. package/resources/credential.d.ts +1 -1
  89. package/resources/credential.js +1 -1
  90. package/resources/data-table.cjs +2 -2
  91. package/resources/data-table.d.cts +1 -1
  92. package/resources/data-table.d.ts +1 -1
  93. package/resources/data-table.js +1 -1
  94. package/resources/folder.cjs +2 -2
  95. package/resources/folder.d.cts +1 -1
  96. package/resources/folder.d.ts +1 -1
  97. package/resources/folder.js +1 -1
  98. package/resources/project.cjs +3 -3
  99. package/resources/project.d.cts +5 -5
  100. package/resources/project.d.ts +5 -5
  101. package/resources/project.js +2 -2
  102. package/resources/tag.cjs +2 -2
  103. package/resources/tag.d.cts +1 -1
  104. package/resources/tag.d.ts +1 -1
  105. package/resources/tag.js +1 -1
  106. package/resources/variable.cjs +2 -2
  107. package/resources/variable.d.cts +1 -1
  108. package/resources/variable.d.ts +1 -1
  109. package/resources/variable.js +1 -1
  110. package/resources/workflow.cjs +2 -2
  111. package/resources/workflow.d.cts +1 -1
  112. package/resources/workflow.d.ts +1 -1
  113. package/resources/workflow.js +1 -1
  114. package/{tag-lmf8obZe.d.ts → tag-5nOUYuYG.d.ts} +1 -0
  115. package/{tag-CzazpR40.d.cts → tag-DGGIqWix.d.cts} +1 -0
  116. package/types.d.cts +350 -0
  117. package/types.d.ts +350 -0
  118. package/{variable-CuCiwy0G.d.cts → variable-8kNQCTQx.d.cts} +1 -0
  119. package/{variable-C2LmlaTx.d.ts → variable-MVqhrcW-.d.ts} +1 -0
  120. package/{workflow-B2nxUmWq.d.cts → workflow-BD375xvs.d.cts} +1 -0
  121. package/{workflow-8pMj_fR_.d.ts → workflow-CLUVboDB.d.ts} +1 -0
@@ -1,11 +1,11 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { P as default } from '../project-uws9k24H.js';
4
+ export { P as default } from '../project-DwqDoil4.js';
5
5
  import '../http-client.js';
6
- import '../data-table-CHGUClGF.js';
6
+ import '../data-table-Cg92UE2v.js';
7
7
  import '../resources/base.js';
8
8
  import '../execution-BjR6z5Vu.js';
9
- import '../folder-bjRPcy2j.js';
10
- import '../variable-C2LmlaTx.js';
11
- import '../workflow-8pMj_fR_.js';
9
+ import '../folder-JrOxuQPO.js';
10
+ import '../variable-MVqhrcW-.js';
11
+ import '../workflow-CLUVboDB.js';
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ProjectClient
3
- } from "../chunk-3FDDCKAY.js";
4
- import "../chunk-LTYQTCHM.js";
5
- import "../chunk-HISH4ORK.js";
6
- import "../chunk-2R6A6NJE.js";
7
- import "../chunk-54N6YD4R.js";
8
- import "../chunk-I4MMTW33.js";
9
- import "../chunk-BQ2OTUXQ.js";
10
- import "../chunk-T62VHXNY.js";
3
+ } from "../chunk-AS5WBSR3.js";
4
+ import "../chunk-Z7XHC77E.js";
5
+ import "../chunk-ZPE32BQU.js";
6
+ import "../chunk-PEUZAXIY.js";
7
+ import "../chunk-KBFYNP56.js";
8
+ import "../chunk-KMFHNXIH.js";
9
+ import "../chunk-UZYRG5OI.js";
10
+ import "../chunk-FSN23TT6.js";
11
11
  import "../chunk-C6W6ERQD.js";
12
12
  import "../chunk-S4ZASMBT.js";
13
- import "../chunk-5DDMSYH2.js";
14
- import "../chunk-YE2OS2KS.js";
13
+ import "../chunk-W23TMDMQ.js";
14
+ import "../chunk-UCSJX4UC.js";
15
15
  import "../chunk-RMEH2UPX.js";
16
16
  import "../chunk-DURH6QOX.js";
17
17
  import "../chunk-TLBDBRPJ.js";
package/clients/tag.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKRPRS2E5cjs = require('../chunk-KRPRS2E5.cjs');
4
- require('../chunk-7H75UBMH.cjs');
3
+ var _chunkDYUXQTFUcjs = require('../chunk-DYUXQTFU.cjs');
4
+ require('../chunk-FB754K3A.cjs');
5
5
  require('../chunk-FIKGC2EL.cjs');
6
6
  require('../chunk-4M2HGY3F.cjs');
7
7
 
8
8
 
9
- exports.default = _chunkKRPRS2E5cjs.TagClient;
9
+ exports.default = _chunkDYUXQTFUcjs.TagClient;
10
10
  //# sourceMappingURL=tag.cjs.map
package/clients/tag.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { T as default } from '../tag-CzazpR40.cjs';
4
+ export { T as default } from '../tag-DGGIqWix.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../resources/base.cjs';
package/clients/tag.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { T as default } from '../tag-lmf8obZe.js';
4
+ export { T as default } from '../tag-5nOUYuYG.js';
5
5
  import '../http-client.js';
6
6
  import '../resources/base.js';
package/clients/tag.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TagClient
3
- } from "../chunk-PT5DDLHC.js";
4
- import "../chunk-4VK7K4IF.js";
3
+ } from "../chunk-VOCYFQYV.js";
4
+ import "../chunk-FOZHT2ZK.js";
5
5
  import "../chunk-TLBDBRPJ.js";
6
6
  import "../chunk-Q6FSREKN.js";
7
7
  export {
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDTDNBA7Wcjs = require('../chunk-DTDNBA7W.cjs');
4
- require('../chunk-YSWBOCXJ.cjs');
3
+ var _chunkTFMO4KWGcjs = require('../chunk-TFMO4KWG.cjs');
4
+ require('../chunk-D4GV65GT.cjs');
5
5
  require('../chunk-LC3TKRMX.cjs');
6
6
  require('../chunk-7B5DLJYY.cjs');
7
7
  require('../chunk-FIKGC2EL.cjs');
8
8
  require('../chunk-4M2HGY3F.cjs');
9
9
 
10
10
 
11
- exports.default = _chunkDTDNBA7Wcjs.VariableClient;
11
+ exports.default = _chunkTFMO4KWGcjs.VariableClient;
12
12
  //# sourceMappingURL=variable.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { V as default } from '../variable-CuCiwy0G.cjs';
4
+ export { V as default } from '../variable-8kNQCTQx.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../resources/base.cjs';
@@ -1,6 +1,6 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { V as default } from '../variable-C2LmlaTx.js';
4
+ export { V as default } from '../variable-MVqhrcW-.js';
5
5
  import '../http-client.js';
6
6
  import '../resources/base.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VariableClient
3
- } from "../chunk-HISH4ORK.js";
4
- import "../chunk-2R6A6NJE.js";
3
+ } from "../chunk-ZPE32BQU.js";
4
+ import "../chunk-PEUZAXIY.js";
5
5
  import "../chunk-RMEH2UPX.js";
6
6
  import "../chunk-DURH6QOX.js";
7
7
  import "../chunk-TLBDBRPJ.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGZ3POWDPcjs = require('../chunk-GZ3POWDP.cjs');
4
- require('../chunk-3YWWR6UD.cjs');
3
+ var _chunkI2VZ7J4Pcjs = require('../chunk-I2VZ7J4P.cjs');
4
+ require('../chunk-TUWIRWCR.cjs');
5
5
  require('../chunk-YBMEMKCN.cjs');
6
6
  require('../chunk-Z3D4URRD.cjs');
7
7
  require('../chunk-LC3TKRMX.cjs');
@@ -10,5 +10,5 @@ require('../chunk-FIKGC2EL.cjs');
10
10
  require('../chunk-4M2HGY3F.cjs');
11
11
 
12
12
 
13
- exports.default = _chunkGZ3POWDPcjs.WorkflowClient;
13
+ exports.default = _chunkI2VZ7J4Pcjs.WorkflowClient;
14
14
  //# sourceMappingURL=workflow.cjs.map
@@ -1,7 +1,7 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { W as default } from '../workflow-B2nxUmWq.cjs';
4
+ export { W as default } from '../workflow-BD375xvs.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../execution-C0c9utwa.cjs';
7
7
  import '../resources/base.cjs';
@@ -1,7 +1,7 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { W as default } from '../workflow-8pMj_fR_.js';
4
+ export { W as default } from '../workflow-CLUVboDB.js';
5
5
  import '../http-client.js';
6
6
  import '../execution-BjR6z5Vu.js';
7
7
  import '../resources/base.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WorkflowClient
3
- } from "../chunk-54N6YD4R.js";
4
- import "../chunk-I4MMTW33.js";
3
+ } from "../chunk-KBFYNP56.js";
4
+ import "../chunk-KMFHNXIH.js";
5
5
  import "../chunk-C6W6ERQD.js";
6
6
  import "../chunk-S4ZASMBT.js";
7
7
  import "../chunk-RMEH2UPX.js";
@@ -9,6 +9,7 @@ declare class CommunityPackageResource extends BaseResource<CommunityPackage> {
9
9
  get installedVersion(): string;
10
10
  refresh(): Promise<this>;
11
11
  update(data?: UpdateCommunityPackageRequest): Promise<this>;
12
+ patch(data?: UpdateCommunityPackageRequest): Promise<this>;
12
13
  uninstall(): Promise<void>;
13
14
  }
14
15
 
@@ -9,6 +9,7 @@ declare class CommunityPackageResource extends BaseResource<CommunityPackage> {
9
9
  get installedVersion(): string;
10
10
  refresh(): Promise<this>;
11
11
  update(data?: UpdateCommunityPackageRequest): Promise<this>;
12
+ patch(data?: UpdateCommunityPackageRequest): Promise<this>;
12
13
  uninstall(): Promise<void>;
13
14
  }
14
15
 
@@ -10,6 +10,7 @@ declare class CredentialResource extends BaseResource<Credential | CredentialRes
10
10
  get name(): string;
11
11
  get type(): string;
12
12
  update(data: CredentialUpdate): Promise<this>;
13
+ patch(data: CredentialUpdate): Promise<this>;
13
14
  delete(): Promise<Credential>;
14
15
  test(): Promise<CredentialTestResponse>;
15
16
  transfer(destinationProjectId: string): Promise<void>;
@@ -10,6 +10,7 @@ declare class CredentialResource extends BaseResource<Credential | CredentialRes
10
10
  get name(): string;
11
11
  get type(): string;
12
12
  update(data: CredentialUpdate): Promise<this>;
13
+ patch(data: CredentialUpdate): Promise<this>;
13
14
  delete(): Promise<Credential>;
14
15
  test(): Promise<CredentialTestResponse>;
15
16
  transfer(destinationProjectId: string): Promise<void>;
@@ -10,6 +10,7 @@ declare class DataTableResource extends BaseResource<DataTable> {
10
10
  get name(): string;
11
11
  refresh(): Promise<this>;
12
12
  update(data: UpdateDataTableRequest): Promise<this>;
13
+ patch(data: Partial<UpdateDataTableRequest>): Promise<this>;
13
14
  delete(): Promise<void>;
14
15
  listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
15
16
  insertRows(data: InsertRowsCountRequest): Promise<{
@@ -10,6 +10,7 @@ declare class DataTableResource extends BaseResource<DataTable> {
10
10
  get name(): string;
11
11
  refresh(): Promise<this>;
12
12
  update(data: UpdateDataTableRequest): Promise<this>;
13
+ patch(data: Partial<UpdateDataTableRequest>): Promise<this>;
13
14
  delete(): Promise<void>;
14
15
  listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
15
16
  insertRows(data: InsertRowsCountRequest): Promise<{
@@ -11,6 +11,7 @@ declare class FolderResource extends BaseResource<Folder | FolderDetail> {
11
11
  get name(): string;
12
12
  get parentFolderId(): string | undefined;
13
13
  update(data: FolderUpdate): Promise<this>;
14
+ patch(data: FolderUpdate): Promise<this>;
14
15
  delete(transferToFolderId?: string): Promise<void>;
15
16
  }
16
17
 
@@ -11,6 +11,7 @@ declare class FolderResource extends BaseResource<Folder | FolderDetail> {
11
11
  get name(): string;
12
12
  get parentFolderId(): string | undefined;
13
13
  update(data: FolderUpdate): Promise<this>;
14
+ patch(data: FolderUpdate): Promise<this>;
14
15
  delete(transferToFolderId?: string): Promise<void>;
15
16
  }
16
17
 
package/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKRPRS2E5cjs = require('./chunk-KRPRS2E5.cjs');
3
+ var _chunkDYUXQTFUcjs = require('./chunk-DYUXQTFU.cjs');
4
4
 
5
5
 
6
- var _chunk7H75UBMHcjs = require('./chunk-7H75UBMH.cjs');
6
+ var _chunkFB754K3Acjs = require('./chunk-FB754K3A.cjs');
7
7
 
8
8
 
9
9
  var _chunkB7CINZ27cjs = require('./chunk-B7CINZ27.cjs');
@@ -21,28 +21,28 @@ var _chunk54MX3Y2Mcjs = require('./chunk-54MX3Y2M.cjs');
21
21
  var _chunkCCS5ALTNcjs = require('./chunk-CCS5ALTN.cjs');
22
22
 
23
23
 
24
- var _chunkZIIR24GMcjs = require('./chunk-ZIIR24GM.cjs');
24
+ var _chunkU7CFNNJTcjs = require('./chunk-U7CFNNJT.cjs');
25
25
 
26
26
 
27
- var _chunkW5P34RYOcjs = require('./chunk-W5P34RYO.cjs');
27
+ var _chunkO7AV3KS4cjs = require('./chunk-O7AV3KS4.cjs');
28
28
 
29
29
 
30
- var _chunkDTDNBA7Wcjs = require('./chunk-DTDNBA7W.cjs');
30
+ var _chunkTFMO4KWGcjs = require('./chunk-TFMO4KWG.cjs');
31
31
 
32
32
 
33
- var _chunkYSWBOCXJcjs = require('./chunk-YSWBOCXJ.cjs');
33
+ var _chunkD4GV65GTcjs = require('./chunk-D4GV65GT.cjs');
34
34
 
35
35
 
36
- var _chunkGZ3POWDPcjs = require('./chunk-GZ3POWDP.cjs');
36
+ var _chunkI2VZ7J4Pcjs = require('./chunk-I2VZ7J4P.cjs');
37
37
 
38
38
 
39
- var _chunk3YWWR6UDcjs = require('./chunk-3YWWR6UD.cjs');
39
+ var _chunkTUWIRWCRcjs = require('./chunk-TUWIRWCR.cjs');
40
40
 
41
41
 
42
- var _chunkFTIVM52Xcjs = require('./chunk-FTIVM52X.cjs');
42
+ var _chunkWO3YZAZTcjs = require('./chunk-WO3YZAZT.cjs');
43
43
 
44
44
 
45
- var _chunkNBLW25MEcjs = require('./chunk-NBLW25ME.cjs');
45
+ var _chunkGUTI2M4Ucjs = require('./chunk-GUTI2M4U.cjs');
46
46
 
47
47
 
48
48
  var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
@@ -51,10 +51,10 @@ var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
51
51
  var _chunkZ3D4URRDcjs = require('./chunk-Z3D4URRD.cjs');
52
52
 
53
53
 
54
- var _chunkRPB226OXcjs = require('./chunk-RPB226OX.cjs');
54
+ var _chunk6MUNAE5Lcjs = require('./chunk-6MUNAE5L.cjs');
55
55
 
56
56
 
57
- var _chunk6JJ6RA5Bcjs = require('./chunk-6JJ6RA5B.cjs');
57
+ var _chunk2T5KNPFXcjs = require('./chunk-2T5KNPFX.cjs');
58
58
 
59
59
 
60
60
  var _chunkZPU6PQEScjs = require('./chunk-ZPU6PQES.cjs');
@@ -63,10 +63,10 @@ var _chunkZPU6PQEScjs = require('./chunk-ZPU6PQES.cjs');
63
63
  var _chunk5ZRUF6XZcjs = require('./chunk-5ZRUF6XZ.cjs');
64
64
 
65
65
 
66
- var _chunkGEWLPVNVcjs = require('./chunk-GEWLPVNV.cjs');
66
+ var _chunkYWK563XRcjs = require('./chunk-YWK563XR.cjs');
67
67
 
68
68
 
69
- var _chunkTY76RTXQcjs = require('./chunk-TY76RTXQ.cjs');
69
+ var _chunkCWQXMALUcjs = require('./chunk-CWQXMALU.cjs');
70
70
 
71
71
 
72
72
 
@@ -74,19 +74,37 @@ var _chunkLC3TKRMXcjs = require('./chunk-LC3TKRMX.cjs');
74
74
  require('./chunk-7B5DLJYY.cjs');
75
75
 
76
76
 
77
- var _chunkLQULSPETcjs = require('./chunk-LQULSPET.cjs');
77
+ var _chunkWWVQNBTGcjs = require('./chunk-WWVQNBTG.cjs');
78
78
 
79
79
 
80
- var _chunkMMN2UKTIcjs = require('./chunk-MMN2UKTI.cjs');
80
+ var _chunkJFTS6N3Ucjs = require('./chunk-JFTS6N3U.cjs');
81
81
  require('./chunk-FIKGC2EL.cjs');
82
82
  require('./chunk-4M2HGY3F.cjs');
83
83
 
84
84
  // src/index.ts
85
85
  var N8nClient = class {
86
86
  #http;
87
+ /**
88
+ * Create a new client instance.
89
+ *
90
+ * @param config - Client configuration. Must include `baseUrl` and exactly one of `apiKey` or `bearerToken`.
91
+ * @throws {Error} If both or neither auth method is provided.
92
+ */
87
93
  constructor(config) {
88
94
  this.#http = new (0, _chunkLC3TKRMXcjs.HttpClient)(config);
89
95
  }
96
+ /**
97
+ * Send an arbitrary HTTP request through the client's transport layer.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const result = await client.request<Workflow>({
102
+ * method: 'GET',
103
+ * path: '/workflows',
104
+ * query: { limit: 5 },
105
+ * });
106
+ * ```
107
+ */
90
108
  request(options) {
91
109
  return this.#http.request(options);
92
110
  }
@@ -105,48 +123,71 @@ var N8nClient = class {
105
123
  delete(path, query, headers) {
106
124
  return this.#http.delete(path, query, headers);
107
125
  }
126
+ /** Workflow management — list, get, create, update, delete, activate, deactivate, archive, transfer, tags, versions. */
108
127
  workflows() {
109
- return new (0, _chunkGZ3POWDPcjs.WorkflowClient)(this.#http);
128
+ return new (0, _chunkI2VZ7J4Pcjs.WorkflowClient)(this.#http);
110
129
  }
130
+ /** Execution monitoring — list, get, delete, retry, stop, tags. */
111
131
  executions() {
112
132
  return new (0, _chunkYBMEMKCNcjs.ExecutionClient)(this.#http);
113
133
  }
134
+ /** Credential management — list, get, create, update, delete, test, transfer, schema. */
114
135
  credentials() {
115
- return new (0, _chunkLQULSPETcjs.CredentialClient)(this.#http);
136
+ return new (0, _chunkWWVQNBTGcjs.CredentialClient)(this.#http);
116
137
  }
138
+ /** Tag management — list, get, create, update, delete. */
117
139
  tags() {
118
- return new (0, _chunkKRPRS2E5cjs.TagClient)(this.#http);
140
+ return new (0, _chunkDYUXQTFUcjs.TagClient)(this.#http);
119
141
  }
142
+ /** User management — list, get, create, delete, role changes. */
120
143
  users() {
121
144
  return new (0, _chunkB7CINZ27cjs.UserClient)(this.#http);
122
145
  }
146
+ /** Variable management — list, get (paginated search), create, update, delete. */
123
147
  variables() {
124
- return new (0, _chunkDTDNBA7Wcjs.VariableClient)(this.#http);
148
+ return new (0, _chunkTFMO4KWGcjs.VariableClient)(this.#http);
125
149
  }
150
+ /** Project management — list, create, update, delete, members. No `get(id)` — use `list()` to find projects. */
126
151
  projects() {
127
- return new (0, _chunkZIIR24GMcjs.ProjectClient)(this.#http);
152
+ return new (0, _chunkU7CFNNJTcjs.ProjectClient)(this.#http);
128
153
  }
154
+ /** Data table management — list, get, create, update, delete, rows, columns. */
129
155
  dataTables() {
130
- return new (0, _chunkFTIVM52Xcjs.DataTableClient)(this.#http);
131
- }
156
+ return new (0, _chunkWO3YZAZTcjs.DataTableClient)(this.#http);
157
+ }
158
+ /**
159
+ * Folder management — requires `projectId` because folder endpoints are project-scoped.
160
+ *
161
+ * @example
162
+ * ```ts
163
+ * const folders = client.folders('project-id');
164
+ * await folders.list();
165
+ * ```
166
+ */
132
167
  folders(projectId) {
133
- return new (0, _chunkRPB226OXcjs.FolderClient)(this.#http, projectId);
168
+ return new (0, _chunk6MUNAE5Lcjs.FolderClient)(this.#http, projectId);
134
169
  }
170
+ /** Community package management — list, install, update, uninstall. */
135
171
  communityPackages() {
136
- return new (0, _chunkGEWLPVNVcjs.CommunityPackageClient)(this.#http);
172
+ return new (0, _chunkYWK563XRcjs.CommunityPackageClient)(this.#http);
137
173
  }
174
+ /** Audit report generation (singleton — no `list`/`get`). */
138
175
  audit() {
139
176
  return new (0, _chunk5ZRUF6XZcjs.AuditClient)(this.#http);
140
177
  }
178
+ /** Execution insights summary (singleton — no `list`/`get`). */
141
179
  insights() {
142
180
  return new (0, _chunk54MX3Y2Mcjs.InsightsClient)(this.#http);
143
181
  }
182
+ /** Source control operations — pull, list files (singleton). */
144
183
  sourceControl() {
145
184
  return new (0, _chunkZPU6PQEScjs.SourceControlClient)(this.#http);
146
185
  }
186
+ /** Resource discovery — list available API resources, operations, and filters (singleton). */
147
187
  discover() {
148
188
  return new (0, _chunkBA4KTRMXcjs.DiscoverClient)(this.#http);
149
189
  }
190
+ /** n8n package import/export — export workflows as gzipped packages, import packages (singleton). */
150
191
  n8nPackage() {
151
192
  return new (0, _chunkCCS5ALTNcjs.N8nPackageClient)(this.#http);
152
193
  }
@@ -165,5 +206,5 @@ var N8nClient = class {
165
206
 
166
207
 
167
208
 
168
- exports.CommunityPackageResource = _chunkTY76RTXQcjs.CommunityPackageResource; exports.CredentialResource = _chunkMMN2UKTIcjs.CredentialResource; exports.DataTableResource = _chunkNBLW25MEcjs.DataTableResource; exports.ExecutionResource = _chunkZ3D4URRDcjs.ExecutionResource; exports.FolderResource = _chunk6JJ6RA5Bcjs.FolderResource; exports.HttpClient = _chunkLC3TKRMXcjs.HttpClient; exports.HttpError = _chunkLC3TKRMXcjs.HttpError; exports.ProjectResource = _chunkW5P34RYOcjs.ProjectResource; exports.TagResource = _chunk7H75UBMHcjs.TagResource; exports.UserResource = _chunkC3JBYESScjs.UserResource; exports.VariableResource = _chunkYSWBOCXJcjs.VariableResource; exports.WorkflowResource = _chunk3YWWR6UDcjs.WorkflowResource; exports.default = N8nClient;
209
+ exports.CommunityPackageResource = _chunkCWQXMALUcjs.CommunityPackageResource; exports.CredentialResource = _chunkJFTS6N3Ucjs.CredentialResource; exports.DataTableResource = _chunkGUTI2M4Ucjs.DataTableResource; exports.ExecutionResource = _chunkZ3D4URRDcjs.ExecutionResource; exports.FolderResource = _chunk2T5KNPFXcjs.FolderResource; exports.HttpClient = _chunkLC3TKRMXcjs.HttpClient; exports.HttpError = _chunkLC3TKRMXcjs.HttpError; exports.ProjectResource = _chunkO7AV3KS4cjs.ProjectResource; exports.TagResource = _chunkFB754K3Acjs.TagResource; exports.UserResource = _chunkC3JBYESScjs.UserResource; exports.VariableResource = _chunkD4GV65GTcjs.VariableResource; exports.WorkflowResource = _chunkTUWIRWCRcjs.WorkflowResource; exports.default = N8nClient;
169
210
  //# sourceMappingURL=index.cjs.map
package/index.d.cts CHANGED
@@ -2,26 +2,26 @@ import { RequestOptions } from './http-client.cjs';
2
2
  export { HttpClient, HttpError } from './http-client.cjs';
3
3
  import { N8nClientConfig } from './types.cjs';
4
4
  export { ActiveVersion, Audit, AuditAdditionalOptions, AuditCommunityLocation, AuditCredentialLocation, AuditNodeLocation, AuditRequest, AuditRisk, AuditRiskLocation, AuditRiskReport, AuditRiskSection, CommunityPackage, CommunityPackageNode, CreateColumnRequest, CreateDataTableRequest, Credential, CredentialCreate, CredentialListItem, CredentialListResponse, CredentialResponse, CredentialSharedItem, CredentialTestResponse, CredentialUpdate, DataTable, DataTableColumn, DataTableFilter, DataTableListParams, DataTableListResponse, DataTableRow, DataTableRowListParams, DataTableRowListResponse, DeleteRowsBooleanParams, DeleteRowsDataParams, DeleteRowsParams, DiscoverEndpoint, DiscoverFilter, DiscoverParams, DiscoverResource, DiscoverResponse, Execution, ExecutionGetParams, ExecutionListParams, ExecutionListResponse, ExecutionMode, ExecutionRetryRequest, ExecutionStatus, ExportWorkflowsRequest, Folder, FolderCreate, FolderDetail, FolderListParams, FolderListResponse, FolderUpdate, ImportPackageBindings, ImportPackageConflictError, ImportPackageOptions, ImportPackageResponse, ImportPackageUnprocessableError, ImportPackageWorkflow, InsertRowsAllRequest, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsRequest, InsightsMetric, InsightsSummary, InsightsSummaryParams, InstallCommunityPackageRequest, JsonArray, JsonObject, JsonPrimitive, JsonValue, N8nApiError, Project, ProjectListResponse, ProjectMember, ProjectMemberListResponse, ProjectMemberRelation, ProjectMemberRoleChangeRequest, ProjectMutation, PullRequest, SharedWorkflow, SharedWorkflowProject, SourceControlledFile, SourceControlledOwner, StopManyExecutionsRequest, StopManyExecutionsResponse, Tag, TagId, TagListResponse, TagMutation, UpdateColumnRequest, UpdateCommunityPackageRequest, UpdateDataTableRequest, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpdateRowsRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, UpsertRowRequest, User, UserCreate, UserCreateResponse, UserGetParams, UserListParams, UserListResponse, UserRoleChangeRequest, Variable, VariableCreate, VariableListParams, VariableListResponse, Workflow, WorkflowActivateRequest, WorkflowConnection, WorkflowConnectionBranch, WorkflowConnectionTypeMap, WorkflowConnections, WorkflowCreate, WorkflowGetParams, WorkflowListParams, WorkflowListResponse, WorkflowMeta, WorkflowNode, WorkflowNodeTelemetryTags, WorkflowPinData, WorkflowSettings, WorkflowTelemetryTag, WorkflowUpdate, WorkflowVersion } from './types.cjs';
5
- import { W as WorkflowClient } from './workflow-B2nxUmWq.cjs';
6
- export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-B2nxUmWq.cjs';
5
+ import { W as WorkflowClient } from './workflow-BD375xvs.cjs';
6
+ export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-BD375xvs.cjs';
7
7
  import { E as ExecutionClient } from './execution-C0c9utwa.cjs';
8
8
  export { a as ExecutionResource } from './execution-C0c9utwa.cjs';
9
- import { C as CredentialClient } from './credential-CEH7XbGn.cjs';
10
- export { a as CredentialResource } from './credential-CEH7XbGn.cjs';
11
- import { T as TagClient } from './tag-CzazpR40.cjs';
12
- export { a as TagResource } from './tag-CzazpR40.cjs';
9
+ import { C as CredentialClient } from './credential-DPt1le6v.cjs';
10
+ export { a as CredentialResource } from './credential-DPt1le6v.cjs';
11
+ import { T as TagClient } from './tag-DGGIqWix.cjs';
12
+ export { a as TagResource } from './tag-DGGIqWix.cjs';
13
13
  import { U as UserClient } from './user-CBa2VjYj.cjs';
14
14
  export { a as UserResource } from './user-CBa2VjYj.cjs';
15
- import { V as VariableClient } from './variable-CuCiwy0G.cjs';
16
- export { a as VariableResource } from './variable-CuCiwy0G.cjs';
17
- import { P as ProjectClient } from './project-BS1fXSLW.cjs';
18
- export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-BS1fXSLW.cjs';
19
- import { D as DataTableClient } from './data-table-CzR5kl9T.cjs';
20
- export { a as DataTableResource } from './data-table-CzR5kl9T.cjs';
21
- import { F as FolderClient } from './folder-DvgIxSea.cjs';
22
- export { a as FolderResource } from './folder-DvgIxSea.cjs';
23
- import { C as CommunityPackageClient } from './community-package-DBpReCPV.cjs';
24
- export { a as CommunityPackageResource } from './community-package-DBpReCPV.cjs';
15
+ import { V as VariableClient } from './variable-8kNQCTQx.cjs';
16
+ export { a as VariableResource } from './variable-8kNQCTQx.cjs';
17
+ import { P as ProjectClient } from './project-CfXFXbv5.cjs';
18
+ export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-CfXFXbv5.cjs';
19
+ import { D as DataTableClient } from './data-table-ablBPGNU.cjs';
20
+ export { a as DataTableResource } from './data-table-ablBPGNU.cjs';
21
+ import { F as FolderClient } from './folder-DDe0xOyE.cjs';
22
+ export { a as FolderResource } from './folder-DDe0xOyE.cjs';
23
+ import { C as CommunityPackageClient } from './community-package-BvmF_pP6.cjs';
24
+ export { a as CommunityPackageResource } from './community-package-BvmF_pP6.cjs';
25
25
  import AuditClient from './clients/audit.cjs';
26
26
  import InsightsClient from './clients/insights.cjs';
27
27
  import SourceControlClient from './clients/source-control.cjs';
@@ -31,29 +31,87 @@ export { PaginatedResponse, PaginationParams } from './pagination.cjs';
31
31
  import './clients/base.cjs';
32
32
  import './resources/base.cjs';
33
33
 
34
+ /**
35
+ * Root client for the n8n Public API v1.
36
+ *
37
+ * Creates an HTTP client and provides access to all 15 resource clients.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * import N8nClient from '@egose/n8n-client';
42
+ *
43
+ * const client = new N8nClient({
44
+ * baseUrl: 'http://localhost:5678',
45
+ * apiKey: process.env.N8N_API_KEY,
46
+ * });
47
+ *
48
+ * const { data } = await client.workflows().list({ limit: 10 });
49
+ * ```
50
+ */
34
51
  declare class N8nClient {
35
52
  #private;
53
+ /**
54
+ * Create a new client instance.
55
+ *
56
+ * @param config - Client configuration. Must include `baseUrl` and exactly one of `apiKey` or `bearerToken`.
57
+ * @throws {Error} If both or neither auth method is provided.
58
+ */
36
59
  constructor(config: N8nClientConfig);
60
+ /**
61
+ * Send an arbitrary HTTP request through the client's transport layer.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const result = await client.request<Workflow>({
66
+ * method: 'GET',
67
+ * path: '/workflows',
68
+ * query: { limit: 5 },
69
+ * });
70
+ * ```
71
+ */
37
72
  request<T>(options: RequestOptions): Promise<T>;
38
73
  get<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
39
74
  post<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
40
75
  put<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
41
76
  patch<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
42
77
  delete<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
78
+ /** Workflow management — list, get, create, update, delete, activate, deactivate, archive, transfer, tags, versions. */
43
79
  workflows(): WorkflowClient;
80
+ /** Execution monitoring — list, get, delete, retry, stop, tags. */
44
81
  executions(): ExecutionClient;
82
+ /** Credential management — list, get, create, update, delete, test, transfer, schema. */
45
83
  credentials(): CredentialClient;
84
+ /** Tag management — list, get, create, update, delete. */
46
85
  tags(): TagClient;
86
+ /** User management — list, get, create, delete, role changes. */
47
87
  users(): UserClient;
88
+ /** Variable management — list, get (paginated search), create, update, delete. */
48
89
  variables(): VariableClient;
90
+ /** Project management — list, create, update, delete, members. No `get(id)` — use `list()` to find projects. */
49
91
  projects(): ProjectClient;
92
+ /** Data table management — list, get, create, update, delete, rows, columns. */
50
93
  dataTables(): DataTableClient;
94
+ /**
95
+ * Folder management — requires `projectId` because folder endpoints are project-scoped.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const folders = client.folders('project-id');
100
+ * await folders.list();
101
+ * ```
102
+ */
51
103
  folders(projectId: string): FolderClient;
104
+ /** Community package management — list, install, update, uninstall. */
52
105
  communityPackages(): CommunityPackageClient;
106
+ /** Audit report generation (singleton — no `list`/`get`). */
53
107
  audit(): AuditClient;
108
+ /** Execution insights summary (singleton — no `list`/`get`). */
54
109
  insights(): InsightsClient;
110
+ /** Source control operations — pull, list files (singleton). */
55
111
  sourceControl(): SourceControlClient;
112
+ /** Resource discovery — list available API resources, operations, and filters (singleton). */
56
113
  discover(): DiscoverClient;
114
+ /** n8n package import/export — export workflows as gzipped packages, import packages (singleton). */
57
115
  n8nPackage(): N8nPackageClient;
58
116
  }
59
117