@n8n/rest-api-client 1.21.0 → 1.22.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 (195) hide show
  1. package/dist/api/api-keys.cjs +2 -2
  2. package/dist/api/api-keys.js +2 -2
  3. package/dist/api/cloudPlans.cjs +4 -3
  4. package/dist/api/cloudPlans.d.cts +2 -2
  5. package/dist/api/cloudPlans.d.ts +2 -2
  6. package/dist/api/cloudPlans.js +3 -3
  7. package/dist/api/communityNodes.cjs +2 -2
  8. package/dist/api/communityNodes.js +2 -2
  9. package/dist/api/ctas.cjs +2 -2
  10. package/dist/api/ctas.js +2 -2
  11. package/dist/api/dynamic-banners.cjs +10 -0
  12. package/dist/api/dynamic-banners.cjs.map +1 -0
  13. package/dist/api/dynamic-banners.d.cts +25 -0
  14. package/dist/api/dynamic-banners.d.ts +25 -0
  15. package/dist/api/dynamic-banners.js +10 -0
  16. package/dist/api/dynamic-banners.js.map +1 -0
  17. package/dist/api/eventbus.ee.cjs +2 -2
  18. package/dist/api/eventbus.ee.js +2 -2
  19. package/dist/api/events.cjs +2 -2
  20. package/dist/api/events.js +2 -2
  21. package/dist/api/externalSecrets.ee.cjs +2 -2
  22. package/dist/api/externalSecrets.ee.js +2 -2
  23. package/dist/api/index.cjs +28 -27
  24. package/dist/api/index.d.cts +3 -3
  25. package/dist/api/index.d.ts +3 -3
  26. package/dist/api/index.js +28 -28
  27. package/dist/api/ldap.cjs +2 -2
  28. package/dist/api/ldap.js +2 -2
  29. package/dist/api/mfa.cjs +2 -2
  30. package/dist/api/mfa.js +2 -2
  31. package/dist/api/module-settings.cjs +2 -2
  32. package/dist/api/module-settings.js +2 -2
  33. package/dist/api/nodeTypes.cjs +2 -2
  34. package/dist/api/nodeTypes.js +2 -2
  35. package/dist/api/npsSurvey.cjs +2 -2
  36. package/dist/api/npsSurvey.js +2 -2
  37. package/dist/api/orchestration.cjs +2 -2
  38. package/dist/api/orchestration.js +2 -2
  39. package/dist/api/prompts.cjs +2 -2
  40. package/dist/api/prompts.js +2 -2
  41. package/dist/api/provisioning.cjs +2 -2
  42. package/dist/api/provisioning.js +2 -2
  43. package/dist/api/roles.cjs +2 -2
  44. package/dist/api/roles.js +2 -2
  45. package/dist/api/settings.cjs +2 -2
  46. package/dist/api/settings.js +2 -2
  47. package/dist/api/sso.cjs +2 -2
  48. package/dist/api/sso.js +2 -2
  49. package/dist/api/templates.cjs +2 -2
  50. package/dist/api/templates.js +2 -2
  51. package/dist/api/third-party-licenses.cjs +2 -2
  52. package/dist/api/third-party-licenses.js +2 -2
  53. package/dist/api/ui.cjs +2 -2
  54. package/dist/api/ui.js +2 -2
  55. package/dist/api/usage.cjs +2 -2
  56. package/dist/api/usage.d.cts +1 -1
  57. package/dist/api/usage.d.ts +1 -1
  58. package/dist/api/usage.js +2 -2
  59. package/dist/api/users.cjs +2 -2
  60. package/dist/api/users.js +2 -2
  61. package/dist/api/versions.cjs +2 -2
  62. package/dist/api/versions.js +2 -2
  63. package/dist/api/webhooks.cjs +2 -2
  64. package/dist/api/webhooks.js +2 -2
  65. package/dist/api/workflowHistory.cjs +2 -2
  66. package/dist/api/workflowHistory.js +2 -2
  67. package/dist/{api-keys-DWJqK3fC.cjs → api-keys-DnxbjXaE.cjs} +2 -2
  68. package/dist/{api-keys-DWJqK3fC.cjs.map → api-keys-DnxbjXaE.cjs.map} +1 -1
  69. package/dist/{api-keys-CiCLTfFj.js → api-keys-uP5vY83C.js} +2 -2
  70. package/dist/{api-keys-CiCLTfFj.js.map → api-keys-uP5vY83C.js.map} +1 -1
  71. package/dist/{cloudPlans-D1vqD1lj.d.ts → cloudPlans-BZrDY7Vu.d.ts} +13 -2
  72. package/dist/{cloudPlans-DUWx1DpH.d.cts → cloudPlans-DJM4mwMR.d.cts} +13 -2
  73. package/dist/{cloudPlans-BPVCVGiw.js → cloudPlans-DLjkAVcu.js} +6 -3
  74. package/dist/cloudPlans-DLjkAVcu.js.map +1 -0
  75. package/dist/{cloudPlans-B8uHyQ_1.cjs → cloudPlans-DQw2uiuu.cjs} +11 -2
  76. package/dist/cloudPlans-DQw2uiuu.cjs.map +1 -0
  77. package/dist/{communityNodes-DW28WDvz.js → communityNodes-CZUiSFXs.js} +2 -2
  78. package/dist/{communityNodes-DW28WDvz.js.map → communityNodes-CZUiSFXs.js.map} +1 -1
  79. package/dist/{communityNodes-Dd7hz8vM.cjs → communityNodes-R-K96g6r.cjs} +2 -2
  80. package/dist/{communityNodes-Dd7hz8vM.cjs.map → communityNodes-R-K96g6r.cjs.map} +1 -1
  81. package/dist/{ctas-CAkx0BpQ.js → ctas-BhMDfBZj.js} +2 -2
  82. package/dist/{ctas-CAkx0BpQ.js.map → ctas-BhMDfBZj.js.map} +1 -1
  83. package/dist/{ctas-CkfR15kk.cjs → ctas-WLeRzMmj.cjs} +2 -2
  84. package/dist/{ctas-CkfR15kk.cjs.map → ctas-WLeRzMmj.cjs.map} +1 -1
  85. package/dist/{eventbus.ee-BI1YfCWy.js → eventbus.ee-BeIlRoKR.js} +2 -2
  86. package/dist/{eventbus.ee-BI1YfCWy.js.map → eventbus.ee-BeIlRoKR.js.map} +1 -1
  87. package/dist/{eventbus.ee-Dy8OID76.cjs → eventbus.ee-RY2w0bse.cjs} +2 -2
  88. package/dist/{eventbus.ee-Dy8OID76.cjs.map → eventbus.ee-RY2w0bse.cjs.map} +1 -1
  89. package/dist/{events-BXoIh-_I.js → events-BV8Poe8J.js} +2 -2
  90. package/dist/{events-BXoIh-_I.js.map → events-BV8Poe8J.js.map} +1 -1
  91. package/dist/{events-C9_PZbal.cjs → events-D8_upsDR.cjs} +2 -2
  92. package/dist/{events-C9_PZbal.cjs.map → events-D8_upsDR.cjs.map} +1 -1
  93. package/dist/{externalSecrets.ee-zAb9mWtZ.js → externalSecrets.ee-CVp75c1t.js} +2 -2
  94. package/dist/{externalSecrets.ee-zAb9mWtZ.js.map → externalSecrets.ee-CVp75c1t.js.map} +1 -1
  95. package/dist/{externalSecrets.ee-DyhPxamB.cjs → externalSecrets.ee-oRa5FKzO.cjs} +2 -2
  96. package/dist/{externalSecrets.ee-DyhPxamB.cjs.map → externalSecrets.ee-oRa5FKzO.cjs.map} +1 -1
  97. package/dist/index.cjs +28 -27
  98. package/dist/index.d.cts +4 -4
  99. package/dist/index.d.ts +4 -4
  100. package/dist/index.js +28 -28
  101. package/dist/{ldap-B4lzIQvN.cjs → ldap-Dro61aN8.cjs} +2 -2
  102. package/dist/{ldap-B4lzIQvN.cjs.map → ldap-Dro61aN8.cjs.map} +1 -1
  103. package/dist/{ldap-wyz03bvR.js → ldap-dJsgFbtF.js} +2 -2
  104. package/dist/{ldap-wyz03bvR.js.map → ldap-dJsgFbtF.js.map} +1 -1
  105. package/dist/{mfa-WNpmV50W.js → mfa-BRac8Q6l.js} +2 -2
  106. package/dist/{mfa-WNpmV50W.js.map → mfa-BRac8Q6l.js.map} +1 -1
  107. package/dist/{mfa-BteEfKoH.cjs → mfa-ChX3eCvb.cjs} +2 -2
  108. package/dist/{mfa-BteEfKoH.cjs.map → mfa-ChX3eCvb.cjs.map} +1 -1
  109. package/dist/{module-settings-GdAM-8kw.js → module-settings-BLmvyCNm.js} +2 -2
  110. package/dist/{module-settings-GdAM-8kw.js.map → module-settings-BLmvyCNm.js.map} +1 -1
  111. package/dist/{module-settings-BulEETdJ.cjs → module-settings-C_hGYsDf.cjs} +2 -2
  112. package/dist/{module-settings-BulEETdJ.cjs.map → module-settings-C_hGYsDf.cjs.map} +1 -1
  113. package/dist/{nodeTypes-DCk86LDz.cjs → nodeTypes-Btn1Spll.cjs} +2 -2
  114. package/dist/{nodeTypes-DCk86LDz.cjs.map → nodeTypes-Btn1Spll.cjs.map} +1 -1
  115. package/dist/{nodeTypes-5LNxsQY6.js → nodeTypes-DpuULzy-.js} +2 -2
  116. package/dist/{nodeTypes-5LNxsQY6.js.map → nodeTypes-DpuULzy-.js.map} +1 -1
  117. package/dist/{npsSurvey-C1x1TDrG.cjs → npsSurvey-BHAR9GWB.cjs} +2 -2
  118. package/dist/{npsSurvey-C1x1TDrG.cjs.map → npsSurvey-BHAR9GWB.cjs.map} +1 -1
  119. package/dist/{npsSurvey-DwL-sGR9.js → npsSurvey-C74EQvtL.js} +2 -2
  120. package/dist/{npsSurvey-DwL-sGR9.js.map → npsSurvey-C74EQvtL.js.map} +1 -1
  121. package/dist/{orchestration-BWq2DLiL.cjs → orchestration-C84h3vsL.cjs} +2 -2
  122. package/dist/{orchestration-BWq2DLiL.cjs.map → orchestration-C84h3vsL.cjs.map} +1 -1
  123. package/dist/{orchestration-C3GSuGhK.js → orchestration-D1TdzBBL.js} +2 -2
  124. package/dist/{orchestration-C3GSuGhK.js.map → orchestration-D1TdzBBL.js.map} +1 -1
  125. package/dist/{prompts-pb6raObn.cjs → prompts-BDM4qsW-.cjs} +2 -2
  126. package/dist/{prompts-pb6raObn.cjs.map → prompts-BDM4qsW-.cjs.map} +1 -1
  127. package/dist/{prompts-DriYCXBM.js → prompts-IpThocqw.js} +2 -2
  128. package/dist/{prompts-DriYCXBM.js.map → prompts-IpThocqw.js.map} +1 -1
  129. package/dist/{provisioning-BCZEC6K_.js → provisioning-DijeyEBA.js} +2 -2
  130. package/dist/{provisioning-BCZEC6K_.js.map → provisioning-DijeyEBA.js.map} +1 -1
  131. package/dist/{provisioning-BXzy-1C2.cjs → provisioning-iwaWZ0AK.cjs} +2 -2
  132. package/dist/{provisioning-BXzy-1C2.cjs.map → provisioning-iwaWZ0AK.cjs.map} +1 -1
  133. package/dist/{roles-DP9_NFP3.js → roles-B7cgU7qx.js} +2 -2
  134. package/dist/{roles-DP9_NFP3.js.map → roles-B7cgU7qx.js.map} +1 -1
  135. package/dist/{roles-ui0tjENB.cjs → roles-zt7bZoLT.cjs} +2 -2
  136. package/dist/{roles-ui0tjENB.cjs.map → roles-zt7bZoLT.cjs.map} +1 -1
  137. package/dist/{settings-M7GRxXmC.cjs → settings-BC-VEjjF.cjs} +2 -2
  138. package/dist/{settings-M7GRxXmC.cjs.map → settings-BC-VEjjF.cjs.map} +1 -1
  139. package/dist/{settings-CCGDGJdQ.js → settings-BouzQp14.js} +2 -2
  140. package/dist/{settings-CCGDGJdQ.js.map → settings-BouzQp14.js.map} +1 -1
  141. package/dist/{sso-DdLyNGN8.js → sso-CBMbEkVH.js} +2 -2
  142. package/dist/{sso-DdLyNGN8.js.map → sso-CBMbEkVH.js.map} +1 -1
  143. package/dist/{sso-C7aUBmBN.cjs → sso-DcsKWEuI.cjs} +2 -2
  144. package/dist/{sso-C7aUBmBN.cjs.map → sso-DcsKWEuI.cjs.map} +1 -1
  145. package/dist/{templates-aSkhGM9C.js → templates-BosEV6uN.js} +2 -2
  146. package/dist/{templates-aSkhGM9C.js.map → templates-BosEV6uN.js.map} +1 -1
  147. package/dist/{templates-bqybPo-G.cjs → templates-DlHDiLZ2.cjs} +2 -2
  148. package/dist/{templates-bqybPo-G.cjs.map → templates-DlHDiLZ2.cjs.map} +1 -1
  149. package/dist/{third-party-licenses-CrcvU83z.cjs → third-party-licenses-B2kKE3tr.cjs} +2 -2
  150. package/dist/{third-party-licenses-CrcvU83z.cjs.map → third-party-licenses-B2kKE3tr.cjs.map} +1 -1
  151. package/dist/{third-party-licenses-CVhfpAI_.js → third-party-licenses-CdPKzzPL.js} +2 -2
  152. package/dist/{third-party-licenses-CVhfpAI_.js.map → third-party-licenses-CdPKzzPL.js.map} +1 -1
  153. package/dist/{ui-Biyjef0Q.js → ui-B8PYUC2J.js} +2 -2
  154. package/dist/{ui-Biyjef0Q.js.map → ui-B8PYUC2J.js.map} +1 -1
  155. package/dist/{ui-C3gT7sPj.cjs → ui-HaAnvq50.cjs} +2 -2
  156. package/dist/{ui-C3gT7sPj.cjs.map → ui-HaAnvq50.cjs.map} +1 -1
  157. package/dist/{usage-BaUgyKjF.d.cts → usage-CMfgQpfn.d.cts} +2 -1
  158. package/dist/{usage-BLD4BoO3.d.ts → usage-CmhwTtkM.d.ts} +2 -1
  159. package/dist/{usage-Cls9J-mi.js → usage-CzKXyota.js} +2 -2
  160. package/dist/usage-CzKXyota.js.map +1 -0
  161. package/dist/{usage-DLyBkpx1.cjs → usage-DyuuFGeZ.cjs} +2 -2
  162. package/dist/usage-DyuuFGeZ.cjs.map +1 -0
  163. package/dist/{users-C2JDorqN.js → users-BthaWKTQ.js} +2 -2
  164. package/dist/{users-C2JDorqN.js.map → users-BthaWKTQ.js.map} +1 -1
  165. package/dist/{users-DmE1VJFB.cjs → users-DxfFvrYo.cjs} +2 -2
  166. package/dist/{users-DmE1VJFB.cjs.map → users-DxfFvrYo.cjs.map} +1 -1
  167. package/dist/{utils-ysk6cXaw.d.ts → utils-BKtM8LSn.d.ts} +3 -1
  168. package/dist/{utils-Ba-EBsDw.d.cts → utils-DGxAg-zF.d.cts} +3 -1
  169. package/dist/{utils-YFZuXq7S.js → utils-DfdsvSio.js} +7 -3
  170. package/dist/utils-DfdsvSio.js.map +1 -0
  171. package/dist/{utils-ZXKTtQnj.cjs → utils-VAtD8kId.cjs} +7 -3
  172. package/dist/utils-VAtD8kId.cjs.map +1 -0
  173. package/dist/utils.cjs +1 -1
  174. package/dist/utils.d.cts +1 -1
  175. package/dist/utils.d.ts +1 -1
  176. package/dist/utils.js +1 -1
  177. package/dist/{versions-CB15OAzF.js → versions-C-KlqShr.js} +2 -2
  178. package/dist/{versions-CB15OAzF.js.map → versions-C-KlqShr.js.map} +1 -1
  179. package/dist/{versions--_Wey_a_.cjs → versions-CSMjKBtT.cjs} +2 -2
  180. package/dist/{versions--_Wey_a_.cjs.map → versions-CSMjKBtT.cjs.map} +1 -1
  181. package/dist/{webhooks-C7CDtoXI.cjs → webhooks-BNYlgESK.cjs} +2 -2
  182. package/dist/{webhooks-C7CDtoXI.cjs.map → webhooks-BNYlgESK.cjs.map} +1 -1
  183. package/dist/{webhooks-BO1vtCkS.js → webhooks-BcjD9DiL.js} +2 -2
  184. package/dist/{webhooks-BO1vtCkS.js.map → webhooks-BcjD9DiL.js.map} +1 -1
  185. package/dist/{workflowHistory-EYU0KTz2.cjs → workflowHistory-BcN77ahm.cjs} +2 -2
  186. package/dist/{workflowHistory-EYU0KTz2.cjs.map → workflowHistory-BcN77ahm.cjs.map} +1 -1
  187. package/dist/{workflowHistory-CWlpPlYE.js → workflowHistory-IkElArGe.js} +2 -2
  188. package/dist/{workflowHistory-CWlpPlYE.js.map → workflowHistory-IkElArGe.js.map} +1 -1
  189. package/package.json +7 -7
  190. package/dist/cloudPlans-B8uHyQ_1.cjs.map +0 -1
  191. package/dist/cloudPlans-BPVCVGiw.js.map +0 -1
  192. package/dist/usage-Cls9J-mi.js.map +0 -1
  193. package/dist/usage-DLyBkpx1.cjs.map +0 -1
  194. package/dist/utils-YFZuXq7S.js.map +0 -1
  195. package/dist/utils-ZXKTtQnj.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-pb6raObn.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
+ {"version":3,"file":"prompts-BDM4qsW-.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,4 +1,4 @@
1
- import { a as get, l as post } from "./utils-YFZuXq7S.js";
1
+ import { a as get, l as post } from "./utils-DfdsvSio.js";
2
2
  import { N8N_IO_BASE_URL } from "@n8n/constants";
3
3
 
4
4
  //#region src/api/prompts.ts
@@ -17,4 +17,4 @@ async function submitContactInfo(instanceId, userId, email) {
17
17
 
18
18
  //#endregion
19
19
  export { submitContactInfo as n, getPromptsData as t };
20
- //# sourceMappingURL=prompts-DriYCXBM.js.map
20
+ //# sourceMappingURL=prompts-IpThocqw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-DriYCXBM.js","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"}
1
+ {"version":3,"file":"prompts-IpThocqw.js","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"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/provisioning.ts
4
4
  const getProvisioningConfig = async (context) => {
@@ -10,4 +10,4 @@ const saveProvisioningConfig = async (context, config) => {
10
10
 
11
11
  //#endregion
12
12
  export { saveProvisioningConfig as n, getProvisioningConfig as t };
13
- //# sourceMappingURL=provisioning-BCZEC6K_.js.map
13
+ //# sourceMappingURL=provisioning-DijeyEBA.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provisioning-BCZEC6K_.js","names":[],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesProvisioningFrequency: string;\n}\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: Partial<ProvisioningConfig>,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAYA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,SAAS,4BAA4B,OAAO"}
1
+ {"version":3,"file":"provisioning-DijeyEBA.js","names":[],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesProvisioningFrequency: string;\n}\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: Partial<ProvisioningConfig>,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAYA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,SAAS,4BAA4B,OAAO"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/provisioning.ts
4
4
  const getProvisioningConfig = async (context) => {
@@ -21,4 +21,4 @@ Object.defineProperty(exports, 'saveProvisioningConfig', {
21
21
  return saveProvisioningConfig;
22
22
  }
23
23
  });
24
- //# sourceMappingURL=provisioning-BXzy-1C2.cjs.map
24
+ //# sourceMappingURL=provisioning-iwaWZ0AK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"provisioning-BXzy-1C2.cjs","names":["makeRestApiRequest"],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesProvisioningFrequency: string;\n}\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: Partial<ProvisioningConfig>,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAYA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,SAAS,4BAA4B,OAAO"}
1
+ {"version":3,"file":"provisioning-iwaWZ0AK.cjs","names":["makeRestApiRequest"],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesProvisioningFrequency: string;\n}\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: Partial<ProvisioningConfig>,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAYA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,SAAS,4BAA4B,OAAO"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/roles.ts
4
4
  const getRoles = async (context) => {
@@ -19,4 +19,4 @@ const deleteProjectRole = async (context, slug) => {
19
19
 
20
20
  //#endregion
21
21
  export { updateProjectRole as a, getRoles as i, deleteProjectRole as n, getRoleBySlug as r, createProjectRole as t };
22
- //# sourceMappingURL=roles-DP9_NFP3.js.map
22
+ //# sourceMappingURL=roles-B7cgU7qx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"roles-DP9_NFP3.js","names":[],"sources":["../src/api/roles.ts"],"sourcesContent":["import type { CreateRoleDto, UpdateRoleDto } from '@n8n/api-types';\nimport type { AllRolesMap, Role } from '@n8n/permissions';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {\n\treturn await makeRestApiRequest(context, 'GET', '/roles?withUsageCount=true');\n};\n\nexport const createProjectRole = async (\n\tcontext: IRestApiContext,\n\tbody: CreateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'POST', '/roles', body);\n};\n\nexport const getRoleBySlug = async (\n\tcontext: IRestApiContext,\n\tbody: { slug: string },\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'GET', `/roles/${body.slug}?withUsageCount=true`);\n};\n\nexport const updateProjectRole = async (\n\tcontext: IRestApiContext,\n\tslug: string,\n\tbody: UpdateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'PATCH', `/roles/${slug}`, body);\n};\n\nexport const deleteProjectRole = async (context: IRestApiContext, slug: string): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'DELETE', `/roles/${slug}`);\n};\n"],"mappings":";;;AAMA,MAAa,WAAW,OAAO,YAAmD;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,6BAA6B;;AAG9E,MAAa,oBAAoB,OAChC,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,KAAK;;AAGjE,MAAa,gBAAgB,OAC5B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,KAAK,KAAK,sBAAsB;;AAG3F,MAAa,oBAAoB,OAChC,SACA,MACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,QAAQ,KAAK;;AAG1E,MAAa,oBAAoB,OAAO,SAA0B,SAAgC;AACjG,QAAO,MAAM,mBAAmB,SAAS,UAAU,UAAU,OAAO"}
1
+ {"version":3,"file":"roles-B7cgU7qx.js","names":[],"sources":["../src/api/roles.ts"],"sourcesContent":["import type { CreateRoleDto, UpdateRoleDto } from '@n8n/api-types';\nimport type { AllRolesMap, Role } from '@n8n/permissions';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {\n\treturn await makeRestApiRequest(context, 'GET', '/roles?withUsageCount=true');\n};\n\nexport const createProjectRole = async (\n\tcontext: IRestApiContext,\n\tbody: CreateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'POST', '/roles', body);\n};\n\nexport const getRoleBySlug = async (\n\tcontext: IRestApiContext,\n\tbody: { slug: string },\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'GET', `/roles/${body.slug}?withUsageCount=true`);\n};\n\nexport const updateProjectRole = async (\n\tcontext: IRestApiContext,\n\tslug: string,\n\tbody: UpdateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'PATCH', `/roles/${slug}`, body);\n};\n\nexport const deleteProjectRole = async (context: IRestApiContext, slug: string): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'DELETE', `/roles/${slug}`);\n};\n"],"mappings":";;;AAMA,MAAa,WAAW,OAAO,YAAmD;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,6BAA6B;;AAG9E,MAAa,oBAAoB,OAChC,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,KAAK;;AAGjE,MAAa,gBAAgB,OAC5B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,KAAK,KAAK,sBAAsB;;AAG3F,MAAa,oBAAoB,OAChC,SACA,MACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,QAAQ,KAAK;;AAG1E,MAAa,oBAAoB,OAAO,SAA0B,SAAgC;AACjG,QAAO,MAAM,mBAAmB,SAAS,UAAU,UAAU,OAAO"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/roles.ts
4
4
  const getRoles = async (context) => {
@@ -48,4 +48,4 @@ Object.defineProperty(exports, 'updateProjectRole', {
48
48
  return updateProjectRole;
49
49
  }
50
50
  });
51
- //# sourceMappingURL=roles-ui0tjENB.cjs.map
51
+ //# sourceMappingURL=roles-zt7bZoLT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roles-ui0tjENB.cjs","names":["makeRestApiRequest"],"sources":["../src/api/roles.ts"],"sourcesContent":["import type { CreateRoleDto, UpdateRoleDto } from '@n8n/api-types';\nimport type { AllRolesMap, Role } from '@n8n/permissions';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {\n\treturn await makeRestApiRequest(context, 'GET', '/roles?withUsageCount=true');\n};\n\nexport const createProjectRole = async (\n\tcontext: IRestApiContext,\n\tbody: CreateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'POST', '/roles', body);\n};\n\nexport const getRoleBySlug = async (\n\tcontext: IRestApiContext,\n\tbody: { slug: string },\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'GET', `/roles/${body.slug}?withUsageCount=true`);\n};\n\nexport const updateProjectRole = async (\n\tcontext: IRestApiContext,\n\tslug: string,\n\tbody: UpdateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'PATCH', `/roles/${slug}`, body);\n};\n\nexport const deleteProjectRole = async (context: IRestApiContext, slug: string): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'DELETE', `/roles/${slug}`);\n};\n"],"mappings":";;;AAMA,MAAa,WAAW,OAAO,YAAmD;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,6BAA6B;;AAG9E,MAAa,oBAAoB,OAChC,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,UAAU,KAAK;;AAGjE,MAAa,gBAAgB,OAC5B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,OAAO,UAAU,KAAK,KAAK,sBAAsB;;AAG3F,MAAa,oBAAoB,OAChC,SACA,MACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,UAAU,QAAQ,KAAK;;AAG1E,MAAa,oBAAoB,OAAO,SAA0B,SAAgC;AACjG,QAAO,MAAMA,iCAAmB,SAAS,UAAU,UAAU,OAAO"}
1
+ {"version":3,"file":"roles-zt7bZoLT.cjs","names":["makeRestApiRequest"],"sources":["../src/api/roles.ts"],"sourcesContent":["import type { CreateRoleDto, UpdateRoleDto } from '@n8n/api-types';\nimport type { AllRolesMap, Role } from '@n8n/permissions';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getRoles = async (context: IRestApiContext): Promise<AllRolesMap> => {\n\treturn await makeRestApiRequest(context, 'GET', '/roles?withUsageCount=true');\n};\n\nexport const createProjectRole = async (\n\tcontext: IRestApiContext,\n\tbody: CreateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'POST', '/roles', body);\n};\n\nexport const getRoleBySlug = async (\n\tcontext: IRestApiContext,\n\tbody: { slug: string },\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'GET', `/roles/${body.slug}?withUsageCount=true`);\n};\n\nexport const updateProjectRole = async (\n\tcontext: IRestApiContext,\n\tslug: string,\n\tbody: UpdateRoleDto,\n): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'PATCH', `/roles/${slug}`, body);\n};\n\nexport const deleteProjectRole = async (context: IRestApiContext, slug: string): Promise<Role> => {\n\treturn await makeRestApiRequest(context, 'DELETE', `/roles/${slug}`);\n};\n"],"mappings":";;;AAMA,MAAa,WAAW,OAAO,YAAmD;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,6BAA6B;;AAG9E,MAAa,oBAAoB,OAChC,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,UAAU,KAAK;;AAGjE,MAAa,gBAAgB,OAC5B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,OAAO,UAAU,KAAK,KAAK,sBAAsB;;AAG3F,MAAa,oBAAoB,OAChC,SACA,MACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,UAAU,QAAQ,KAAK;;AAG1E,MAAa,oBAAoB,OAAO,SAA0B,SAAgC;AACjG,QAAO,MAAMA,iCAAmB,SAAS,UAAU,UAAU,OAAO"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/settings.ts
4
4
  async function getSettings(context) {
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'getSettings', {
12
12
  return getSettings;
13
13
  }
14
14
  });
15
- //# sourceMappingURL=settings-M7GRxXmC.cjs.map
15
+ //# sourceMappingURL=settings-BC-VEjjF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-M7GRxXmC.cjs","names":["makeRestApiRequest"],"sources":["../src/api/settings.ts"],"sourcesContent":["import type { FrontendSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getSettings(context: IRestApiContext): Promise<FrontendSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/settings');\n}\n"],"mappings":";;;AAKA,eAAsB,YAAY,SAAqD;AACtF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,YAAY"}
1
+ {"version":3,"file":"settings-BC-VEjjF.cjs","names":["makeRestApiRequest"],"sources":["../src/api/settings.ts"],"sourcesContent":["import type { FrontendSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getSettings(context: IRestApiContext): Promise<FrontendSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/settings');\n}\n"],"mappings":";;;AAKA,eAAsB,YAAY,SAAqD;AACtF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,YAAY"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/settings.ts
4
4
  async function getSettings(context) {
@@ -7,4 +7,4 @@ async function getSettings(context) {
7
7
 
8
8
  //#endregion
9
9
  export { getSettings as t };
10
- //# sourceMappingURL=settings-CCGDGJdQ.js.map
10
+ //# sourceMappingURL=settings-BouzQp14.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-CCGDGJdQ.js","names":[],"sources":["../src/api/settings.ts"],"sourcesContent":["import type { FrontendSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getSettings(context: IRestApiContext): Promise<FrontendSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/settings');\n}\n"],"mappings":";;;AAKA,eAAsB,YAAY,SAAqD;AACtF,QAAO,MAAM,mBAAmB,SAAS,OAAO,YAAY"}
1
+ {"version":3,"file":"settings-BouzQp14.js","names":[],"sources":["../src/api/settings.ts"],"sourcesContent":["import type { FrontendSettings } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function getSettings(context: IRestApiContext): Promise<FrontendSettings> {\n\treturn await makeRestApiRequest(context, 'GET', '/settings');\n}\n"],"mappings":";;;AAKA,eAAsB,YAAY,SAAqD;AACtF,QAAO,MAAM,mBAAmB,SAAS,OAAO,YAAY"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/sso.ts
4
4
  const initSSO = async (context, redirectUrl = "") => {
@@ -31,4 +31,4 @@ const initOidcLogin = async (context) => {
31
31
 
32
32
  //#endregion
33
33
  export { initSSO as a, testSamlConfig as c, initOidcLogin as i, toggleSamlConfig as l, getSamlConfig as n, saveOidcConfig as o, getSamlMetadata as r, saveSamlConfig as s, getOidcConfig as t };
34
- //# sourceMappingURL=sso-DdLyNGN8.js.map
34
+ //# sourceMappingURL=sso-CBMbEkVH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sso-DdLyNGN8.js","names":[],"sources":["../src/api/sso.ts"],"sourcesContent":["import type { OidcConfigDto, SamlPreferences, SamlToggleDto } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config/test');\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAUA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAM,mBAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAM,mBAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAAO,YAA8C;AAClF,QAAO,MAAM,mBAAmB,SAAS,OAAO,wBAAwB;;AAGzE,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,kBAAkB"}
1
+ {"version":3,"file":"sso-CBMbEkVH.js","names":[],"sources":["../src/api/sso.ts"],"sourcesContent":["import type { OidcConfigDto, SamlPreferences, SamlToggleDto } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config/test');\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAUA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAM,mBAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAM,mBAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAAO,YAA8C;AAClF,QAAO,MAAM,mBAAmB,SAAS,OAAO,wBAAwB;;AAGzE,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,kBAAkB"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/sso.ts
4
4
  const initSSO = async (context, redirectUrl = "") => {
@@ -84,4 +84,4 @@ Object.defineProperty(exports, 'toggleSamlConfig', {
84
84
  return toggleSamlConfig;
85
85
  }
86
86
  });
87
- //# sourceMappingURL=sso-C7aUBmBN.cjs.map
87
+ //# sourceMappingURL=sso-DcsKWEuI.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sso-C7aUBmBN.cjs","names":["makeRestApiRequest"],"sources":["../src/api/sso.ts"],"sourcesContent":["import type { OidcConfigDto, SamlPreferences, SamlToggleDto } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config/test');\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAUA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAAO,YAA8C;AAClF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,wBAAwB;;AAGzE,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,kBAAkB"}
1
+ {"version":3,"file":"sso-DcsKWEuI.cjs","names":["makeRestApiRequest"],"sources":["../src/api/sso.ts"],"sourcesContent":["import type { OidcConfigDto, SamlPreferences, SamlToggleDto } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config/test');\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAUA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAAO,YAA8C;AAClF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,wBAAwB;;AAGzE,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,kBAAkB"}
@@ -1,4 +1,4 @@
1
- import { a as get } from "./utils-YFZuXq7S.js";
1
+ import { a as get } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/templates.ts
4
4
  function stringifyArray(arr) {
@@ -39,4 +39,4 @@ async function getWorkflowTemplate(apiEndpoint, templateId, headers) {
39
39
 
40
40
  //#endregion
41
41
  export { getWorkflowTemplate as a, getTemplateById as i, getCollectionById as n, getWorkflows as o, getCollections as r, testHealthEndpoint as s, getCategories as t };
42
- //# sourceMappingURL=templates-aSkhGM9C.js.map
42
+ //# sourceMappingURL=templates-BosEV6uN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates-aSkhGM9C.js","names":[],"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\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: 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: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\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":";;;AA8HA,SAAS,eAAe,KAAe;AACtC,QAAO,IAAI,KAAK,IAAI;;AAGrB,eAAsB,mBAAmB,aAAqB;AAC7D,QAAO,MAAM,IAAI,aAAa,UAAU;;AAGzC,eAAsB,cACrB,aACA,SACgD;AAChD,QAAO,MAAM,IAAI,aAAa,yBAAyB,QAAW,QAAQ;;AAG3E,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,QAAO,MAAM,IACZ,aACA,0BACA;EAAE,UAAU,MAAM;EAAY,QAAQ,MAAM;EAAQ,EACpD,QACA;;AAGF,eAAsB,aACrB,aACA,OAUA,SAKE;CACF,MAAM,EAAE,MAAM,MAAM,aAAa,YAAY,MAAO,GAAG,cAAc;AAUrE,QAAO,MAAM,IAAI,aAAa,qBATX;EAClB,GAAG;EACH,UAAU,eAAe,WAAW;EACpC,GAAI,QAAQ,EAAE,MAAM,eAAe,KAAK,EAAE;EAC1C,GAAI,SAAS,EAAE,OAAO,eAAe,MAAM,EAAE;EAC7C,GAAI,QAAQ,EAAE,MAAM;EACpB,GAAI,eAAe,EAAE,aAAa;EAClC,EAE8D,QAAQ;;AAGxE,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,QAAO,MAAM,IAAI,aAAa,0BAA0B,gBAAgB,QAAW,QAAQ;;AAG5F,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,QAAO,MAAM,IAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ;;AAGxF,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,QAAO,MAAM,IAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ"}
1
+ {"version":3,"file":"templates-BosEV6uN.js","names":[],"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\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: 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: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\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":";;;AA8HA,SAAS,eAAe,KAAe;AACtC,QAAO,IAAI,KAAK,IAAI;;AAGrB,eAAsB,mBAAmB,aAAqB;AAC7D,QAAO,MAAM,IAAI,aAAa,UAAU;;AAGzC,eAAsB,cACrB,aACA,SACgD;AAChD,QAAO,MAAM,IAAI,aAAa,yBAAyB,QAAW,QAAQ;;AAG3E,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,QAAO,MAAM,IACZ,aACA,0BACA;EAAE,UAAU,MAAM;EAAY,QAAQ,MAAM;EAAQ,EACpD,QACA;;AAGF,eAAsB,aACrB,aACA,OAUA,SAKE;CACF,MAAM,EAAE,MAAM,MAAM,aAAa,YAAY,MAAO,GAAG,cAAc;AAUrE,QAAO,MAAM,IAAI,aAAa,qBATX;EAClB,GAAG;EACH,UAAU,eAAe,WAAW;EACpC,GAAI,QAAQ,EAAE,MAAM,eAAe,KAAK,EAAE;EAC1C,GAAI,SAAS,EAAE,OAAO,eAAe,MAAM,EAAE;EAC7C,GAAI,QAAQ,EAAE,MAAM;EACpB,GAAI,eAAe,EAAE,aAAa;EAClC,EAE8D,QAAQ;;AAGxE,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,QAAO,MAAM,IAAI,aAAa,0BAA0B,gBAAgB,QAAW,QAAQ;;AAG5F,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,QAAO,MAAM,IAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ;;AAGxF,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,QAAO,MAAM,IAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/templates.ts
4
4
  function stringifyArray(arr) {
@@ -80,4 +80,4 @@ Object.defineProperty(exports, 'testHealthEndpoint', {
80
80
  return testHealthEndpoint;
81
81
  }
82
82
  });
83
- //# sourceMappingURL=templates-bqybPo-G.cjs.map
83
+ //# sourceMappingURL=templates-DlHDiLZ2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates-bqybPo-G.cjs","names":["get"],"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\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: 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: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\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":";;;AA8HA,SAAS,eAAe,KAAe;AACtC,QAAO,IAAI,KAAK,IAAI;;AAGrB,eAAsB,mBAAmB,aAAqB;AAC7D,QAAO,MAAMA,kBAAI,aAAa,UAAU;;AAGzC,eAAsB,cACrB,aACA,SACgD;AAChD,QAAO,MAAMA,kBAAI,aAAa,yBAAyB,QAAW,QAAQ;;AAG3E,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,QAAO,MAAMA,kBACZ,aACA,0BACA;EAAE,UAAU,MAAM;EAAY,QAAQ,MAAM;EAAQ,EACpD,QACA;;AAGF,eAAsB,aACrB,aACA,OAUA,SAKE;CACF,MAAM,EAAE,MAAM,MAAM,aAAa,YAAY,MAAO,GAAG,cAAc;AAUrE,QAAO,MAAMA,kBAAI,aAAa,qBATX;EAClB,GAAG;EACH,UAAU,eAAe,WAAW;EACpC,GAAI,QAAQ,EAAE,MAAM,eAAe,KAAK,EAAE;EAC1C,GAAI,SAAS,EAAE,OAAO,eAAe,MAAM,EAAE;EAC7C,GAAI,QAAQ,EAAE,MAAM;EACpB,GAAI,eAAe,EAAE,aAAa;EAClC,EAE8D,QAAQ;;AAGxE,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,QAAO,MAAMA,kBAAI,aAAa,0BAA0B,gBAAgB,QAAW,QAAQ;;AAG5F,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,QAAO,MAAMA,kBAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ;;AAGxF,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,QAAO,MAAMA,kBAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ"}
1
+ {"version":3,"file":"templates-DlHDiLZ2.cjs","names":["get"],"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\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: 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: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\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":";;;AA8HA,SAAS,eAAe,KAAe;AACtC,QAAO,IAAI,KAAK,IAAI;;AAGrB,eAAsB,mBAAmB,aAAqB;AAC7D,QAAO,MAAMA,kBAAI,aAAa,UAAU;;AAGzC,eAAsB,cACrB,aACA,SACgD;AAChD,QAAO,MAAMA,kBAAI,aAAa,yBAAyB,QAAW,QAAQ;;AAG3E,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,QAAO,MAAMA,kBACZ,aACA,0BACA;EAAE,UAAU,MAAM;EAAY,QAAQ,MAAM;EAAQ,EACpD,QACA;;AAGF,eAAsB,aACrB,aACA,OAUA,SAKE;CACF,MAAM,EAAE,MAAM,MAAM,aAAa,YAAY,MAAO,GAAG,cAAc;AAUrE,QAAO,MAAMA,kBAAI,aAAa,qBATX;EAClB,GAAG;EACH,UAAU,eAAe,WAAW;EACpC,GAAI,QAAQ,EAAE,MAAM,eAAe,KAAK,EAAE;EAC1C,GAAI,SAAS,EAAE,OAAO,eAAe,MAAM,EAAE;EAC7C,GAAI,QAAQ,EAAE,MAAM;EACpB,GAAI,eAAe,EAAE,aAAa;EAClC,EAE8D,QAAQ;;AAGxE,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,QAAO,MAAMA,kBAAI,aAAa,0BAA0B,gBAAgB,QAAW,QAAQ;;AAG5F,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,QAAO,MAAMA,kBAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ;;AAGxF,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,QAAO,MAAMA,kBAAI,aAAa,wBAAwB,cAAc,QAAW,QAAQ"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/third-party-licenses.ts
4
4
  async function getThirdPartyLicenses(context) {
@@ -16,4 +16,4 @@ Object.defineProperty(exports, 'getThirdPartyLicenses', {
16
16
  return getThirdPartyLicenses;
17
17
  }
18
18
  });
19
- //# sourceMappingURL=third-party-licenses-CrcvU83z.cjs.map
19
+ //# sourceMappingURL=third-party-licenses-B2kKE3tr.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"third-party-licenses-CrcvU83z.cjs","names":["request"],"sources":["../src/api/third-party-licenses.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { request } from '../utils';\n\nexport async function getThirdPartyLicenses(context: IRestApiContext): Promise<string> {\n\treturn await request({\n\t\tmethod: 'GET',\n\t\tbaseURL: context.baseUrl,\n\t\tendpoint: '/third-party-licenses',\n\t});\n}\n"],"mappings":";;;AAGA,eAAsB,sBAAsB,SAA2C;AACtF,QAAO,MAAMA,sBAAQ;EACpB,QAAQ;EACR,SAAS,QAAQ;EACjB,UAAU;EACV,CAAC"}
1
+ {"version":3,"file":"third-party-licenses-B2kKE3tr.cjs","names":["request"],"sources":["../src/api/third-party-licenses.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { request } from '../utils';\n\nexport async function getThirdPartyLicenses(context: IRestApiContext): Promise<string> {\n\treturn await request({\n\t\tmethod: 'GET',\n\t\tbaseURL: context.baseUrl,\n\t\tendpoint: '/third-party-licenses',\n\t});\n}\n"],"mappings":";;;AAGA,eAAsB,sBAAsB,SAA2C;AACtF,QAAO,MAAMA,sBAAQ;EACpB,QAAQ;EACR,SAAS,QAAQ;EACjB,UAAU;EACV,CAAC"}
@@ -1,4 +1,4 @@
1
- import { u as request } from "./utils-YFZuXq7S.js";
1
+ import { u as request } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/third-party-licenses.ts
4
4
  async function getThirdPartyLicenses(context) {
@@ -11,4 +11,4 @@ async function getThirdPartyLicenses(context) {
11
11
 
12
12
  //#endregion
13
13
  export { getThirdPartyLicenses as t };
14
- //# sourceMappingURL=third-party-licenses-CVhfpAI_.js.map
14
+ //# sourceMappingURL=third-party-licenses-CdPKzzPL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"third-party-licenses-CVhfpAI_.js","names":[],"sources":["../src/api/third-party-licenses.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { request } from '../utils';\n\nexport async function getThirdPartyLicenses(context: IRestApiContext): Promise<string> {\n\treturn await request({\n\t\tmethod: 'GET',\n\t\tbaseURL: context.baseUrl,\n\t\tendpoint: '/third-party-licenses',\n\t});\n}\n"],"mappings":";;;AAGA,eAAsB,sBAAsB,SAA2C;AACtF,QAAO,MAAM,QAAQ;EACpB,QAAQ;EACR,SAAS,QAAQ;EACjB,UAAU;EACV,CAAC"}
1
+ {"version":3,"file":"third-party-licenses-CdPKzzPL.js","names":[],"sources":["../src/api/third-party-licenses.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { request } from '../utils';\n\nexport async function getThirdPartyLicenses(context: IRestApiContext): Promise<string> {\n\treturn await request({\n\t\tmethod: 'GET',\n\t\tbaseURL: context.baseUrl,\n\t\tendpoint: '/third-party-licenses',\n\t});\n}\n"],"mappings":";;;AAGA,eAAsB,sBAAsB,SAA2C;AACtF,QAAO,MAAM,QAAQ;EACpB,QAAQ;EACR,SAAS,QAAQ;EACjB,UAAU;EACV,CAAC"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/ui.ts
4
4
  async function dismissBannerPermanently(context, data) {
@@ -7,4 +7,4 @@ async function dismissBannerPermanently(context, data) {
7
7
 
8
8
  //#endregion
9
9
  export { dismissBannerPermanently as t };
10
- //# sourceMappingURL=ui-Biyjef0Q.js.map
10
+ //# sourceMappingURL=ui-B8PYUC2J.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-Biyjef0Q.js","names":[],"sources":["../src/api/ui.ts"],"sourcesContent":["import type { BannerName } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function dismissBannerPermanently(\n\tcontext: IRestApiContext,\n\tdata: { bannerName: BannerName; dismissedBanners: string[] },\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', {\n\t\tbanner: data.bannerName,\n\t});\n}\n"],"mappings":";;;AAKA,eAAsB,yBACrB,SACA,MACgB;AAChB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,yBAAyB,EACzE,QAAQ,KAAK,YACb,CAAC"}
1
+ {"version":3,"file":"ui-B8PYUC2J.js","names":[],"sources":["../src/api/ui.ts"],"sourcesContent":["import type { BannerName } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function dismissBannerPermanently(\n\tcontext: IRestApiContext,\n\tdata: { bannerName: BannerName; dismissedBanners: string[] },\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', {\n\t\tbanner: data.bannerName,\n\t});\n}\n"],"mappings":";;;AAKA,eAAsB,yBACrB,SACA,MACgB;AAChB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,yBAAyB,EACzE,QAAQ,KAAK,YACb,CAAC"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/ui.ts
4
4
  async function dismissBannerPermanently(context, data) {
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'dismissBannerPermanently', {
12
12
  return dismissBannerPermanently;
13
13
  }
14
14
  });
15
- //# sourceMappingURL=ui-C3gT7sPj.cjs.map
15
+ //# sourceMappingURL=ui-HaAnvq50.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-C3gT7sPj.cjs","names":["makeRestApiRequest"],"sources":["../src/api/ui.ts"],"sourcesContent":["import type { BannerName } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function dismissBannerPermanently(\n\tcontext: IRestApiContext,\n\tdata: { bannerName: BannerName; dismissedBanners: string[] },\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', {\n\t\tbanner: data.bannerName,\n\t});\n}\n"],"mappings":";;;AAKA,eAAsB,yBACrB,SACA,MACgB;AAChB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,yBAAyB,EACzE,QAAQ,KAAK,YACb,CAAC"}
1
+ {"version":3,"file":"ui-HaAnvq50.cjs","names":["makeRestApiRequest"],"sources":["../src/api/ui.ts"],"sourcesContent":["import type { BannerName } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport async function dismissBannerPermanently(\n\tcontext: IRestApiContext,\n\tdata: { bannerName: BannerName; dismissedBanners: string[] },\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', {\n\t\tbanner: data.bannerName,\n\t});\n}\n"],"mappings":";;;AAKA,eAAsB,yBACrB,SACA,MACgB;AAChB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,yBAAyB,EACzE,QAAQ,KAAK,YACb,CAAC"}
@@ -5,6 +5,7 @@ import { CommunityRegisteredRequestDto, UsageState } from "@n8n/api-types";
5
5
  declare const getLicense: (context: IRestApiContext) => Promise<UsageState["data"]>;
6
6
  declare const activateLicenseKey: (context: IRestApiContext, data: {
7
7
  activationKey: string;
8
+ eulaUri?: string;
8
9
  }) => Promise<UsageState["data"]>;
9
10
  declare const renewLicense: (context: IRestApiContext) => Promise<UsageState["data"]>;
10
11
  declare const requestLicenseTrial: (context: IRestApiContext) => Promise<UsageState["data"]>;
@@ -14,4 +15,4 @@ declare const registerCommunityEdition: (context: IRestApiContext, params: Commu
14
15
  }>;
15
16
  //#endregion
16
17
  export { requestLicenseTrial as a, renewLicense as i, getLicense as n, registerCommunityEdition as r, activateLicenseKey as t };
17
- //# sourceMappingURL=usage-BaUgyKjF.d.cts.map
18
+ //# sourceMappingURL=usage-CMfgQpfn.d.cts.map
@@ -5,6 +5,7 @@ import { CommunityRegisteredRequestDto, UsageState } from "@n8n/api-types";
5
5
  declare const getLicense: (context: IRestApiContext) => Promise<UsageState["data"]>;
6
6
  declare const activateLicenseKey: (context: IRestApiContext, data: {
7
7
  activationKey: string;
8
+ eulaUri?: string;
8
9
  }) => Promise<UsageState["data"]>;
9
10
  declare const renewLicense: (context: IRestApiContext) => Promise<UsageState["data"]>;
10
11
  declare const requestLicenseTrial: (context: IRestApiContext) => Promise<UsageState["data"]>;
@@ -14,4 +15,4 @@ declare const registerCommunityEdition: (context: IRestApiContext, params: Commu
14
15
  }>;
15
16
  //#endregion
16
17
  export { requestLicenseTrial as a, renewLicense as i, getLicense as n, registerCommunityEdition as r, activateLicenseKey as t };
17
- //# sourceMappingURL=usage-BLD4BoO3.d.ts.map
18
+ //# sourceMappingURL=usage-CmhwTtkM.d.ts.map
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/usage.ts
4
4
  const getLicense = async (context) => {
@@ -19,4 +19,4 @@ const registerCommunityEdition = async (context, params) => {
19
19
 
20
20
  //#endregion
21
21
  export { requestLicenseTrial as a, renewLicense as i, getLicense as n, registerCommunityEdition as r, activateLicenseKey as t };
22
- //# sourceMappingURL=usage-Cls9J-mi.js.map
22
+ //# sourceMappingURL=usage-CzKXyota.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-CzKXyota.js","names":[],"sources":["../src/api/usage.ts"],"sourcesContent":["import type { CommunityRegisteredRequestDto, UsageState } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'GET', '/license');\n};\n\nexport const activateLicenseKey = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tactivationKey: string;\n\t\teulaUri?: string;\n\t},\n): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/activate', data);\n};\n\nexport const renewLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/renew');\n};\n\nexport const requestLicenseTrial = async (\n\tcontext: IRestApiContext,\n): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/enterprise/request_trial');\n};\n\nexport const registerCommunityEdition = async (\n\tcontext: IRestApiContext,\n\tparams: CommunityRegisteredRequestDto,\n): Promise<{ title: string; text: string }> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/license/enterprise/community-registered',\n\t\tparams,\n\t);\n};\n"],"mappings":";;;AAKA,MAAa,aAAa,OAAO,YAA0D;AAC1F,QAAO,MAAM,mBAAmB,SAAS,OAAO,WAAW;;AAG5D,MAAa,qBAAqB,OACjC,SACA,SAIiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,qBAAqB,KAAK;;AAG5E,MAAa,eAAe,OAAO,YAA0D;AAC5F,QAAO,MAAM,mBAAmB,SAAS,QAAQ,iBAAiB;;AAGnE,MAAa,sBAAsB,OAClC,YACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oCAAoC;;AAGtF,MAAa,2BAA2B,OACvC,SACA,WAC8C;AAC9C,QAAO,MAAM,mBACZ,SACA,QACA,4CACA,OACA"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/usage.ts
4
4
  const getLicense = async (context) => {
@@ -48,4 +48,4 @@ Object.defineProperty(exports, 'requestLicenseTrial', {
48
48
  return requestLicenseTrial;
49
49
  }
50
50
  });
51
- //# sourceMappingURL=usage-DLyBkpx1.cjs.map
51
+ //# sourceMappingURL=usage-DyuuFGeZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-DyuuFGeZ.cjs","names":["makeRestApiRequest"],"sources":["../src/api/usage.ts"],"sourcesContent":["import type { CommunityRegisteredRequestDto, UsageState } from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'GET', '/license');\n};\n\nexport const activateLicenseKey = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tactivationKey: string;\n\t\teulaUri?: string;\n\t},\n): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/activate', data);\n};\n\nexport const renewLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/renew');\n};\n\nexport const requestLicenseTrial = async (\n\tcontext: IRestApiContext,\n): Promise<UsageState['data']> => {\n\treturn await makeRestApiRequest(context, 'POST', '/license/enterprise/request_trial');\n};\n\nexport const registerCommunityEdition = async (\n\tcontext: IRestApiContext,\n\tparams: CommunityRegisteredRequestDto,\n): Promise<{ title: string; text: string }> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/license/enterprise/community-registered',\n\t\tparams,\n\t);\n};\n"],"mappings":";;;AAKA,MAAa,aAAa,OAAO,YAA0D;AAC1F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,WAAW;;AAG5D,MAAa,qBAAqB,OACjC,SACA,SAIiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,qBAAqB,KAAK;;AAG5E,MAAa,eAAe,OAAO,YAA0D;AAC5F,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,iBAAiB;;AAGnE,MAAa,sBAAsB,OAClC,YACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oCAAoC;;AAGtF,MAAa,2BAA2B,OACvC,SACA,WAC8C;AAC9C,QAAO,MAAMA,iCACZ,SACA,QACA,4CACA,OACA"}
@@ -1,4 +1,4 @@
1
- import { s as makeRestApiRequest } from "./utils-YFZuXq7S.js";
1
+ import { s as makeRestApiRequest } from "./utils-DfdsvSio.js";
2
2
 
3
3
  //#region src/api/users.ts
4
4
  async function loginCurrentUser(context) {
@@ -62,4 +62,4 @@ async function updateGlobalRole(context, { id, newRoleName }) {
62
62
 
63
63
  //#endregion
64
64
  export { updateOtherUserSettings as _, getUsers as a, logout as c, signup as d, submitPersonalizationSurvey as f, updateGlobalRole as g, updateCurrentUserSettings as h, getPasswordResetLink as i, sendForgotPasswordEmail as l, updateCurrentUserPassword as m, deleteUser as n, login as o, updateCurrentUser as p, getInviteLink as r, loginCurrentUser as s, changePassword as t, setupOwner as u, validatePasswordToken as v, validateSignupToken as y };
65
- //# sourceMappingURL=users-C2JDorqN.js.map
65
+ //# sourceMappingURL=users-BthaWKTQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"users-C2JDorqN.js","names":[],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUsersListFilterDto,\n\tUserUpdateRequestDto,\n\tRole,\n\tUsersList,\n\tUser,\n} from '@n8n/api-types';\nimport type { Scope } from '@n8n/permissions';\nimport type {\n\tFeatureFlags,\n\tIDataObject,\n\tIPersonalizationSurveyAnswersV4,\n\tIUserSettings,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type IPersonalizationSurveyAnswersV1 = {\n\tcodingSkill?: string | null;\n\tcompanyIndustry?: string[] | null;\n\tcompanySize?: string | null;\n\totherCompanyIndustry?: string | null;\n\totherWorkArea?: string | null;\n\tworkArea?: string[] | string | null;\n};\n\nexport type IPersonalizationSurveyAnswersV2 = {\n\tversion: 'v2';\n\tautomationGoal?: string | null;\n\tcodingSkill?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tcustomerType?: string | null;\n\tmspFocus?: string[] | null;\n\tmspFocusOther?: string | null;\n\totherAutomationGoal?: string | null;\n\totherCompanyIndustryExtended?: string[] | null;\n};\n\nexport type IPersonalizationSurveyAnswersV3 = {\n\tversion: 'v3';\n\tautomationGoal?: string | null;\n\totherAutomationGoal?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\totherCompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tautomationGoalSm?: string[] | null;\n\tautomationGoalSmOther?: string | null;\n\tusageModes?: string[] | null;\n\temail?: string | null;\n};\n\nexport type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;\n\nexport type IPersonalizationSurveyVersions =\n\t| IPersonalizationSurveyAnswersV1\n\t| IPersonalizationSurveyAnswersV2\n\t| IPersonalizationSurveyAnswersV3\n\t| IPersonalizationSurveyAnswersV4;\n\nexport interface IUserResponse extends User {\n\tglobalScopes?: Scope[];\n\tpersonalizationAnswers?: IPersonalizationSurveyVersions | null;\n\tsettings?: IUserSettings | null;\n}\n\nexport interface CurrentUserResponse extends IUserResponse {\n\tfeatureFlags?: FeatureFlags;\n}\n\nexport interface IUser extends IUserResponse {\n\tisDefaultUser: boolean;\n\tisPendingUser: boolean;\n\tinviteAcceptUrl?: string;\n\tfullName?: string;\n\tcreatedAt?: string;\n\tmfaEnabled: boolean;\n\tmfaAuthenticated?: boolean;\n}\n\nexport async function loginCurrentUser(\n\tcontext: IRestApiContext,\n): Promise<CurrentUserResponse | null> {\n\treturn await makeRestApiRequest(context, 'GET', '/login');\n}\n\nexport async function login(\n\tcontext: IRestApiContext,\n\tparams: LoginRequestDto,\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(context, 'POST', '/login', params);\n}\n\nexport async function logout(context: IRestApiContext): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/logout');\n}\n\nexport async function setupOwner(\n\tcontext: IRestApiContext,\n\tparams: { firstName: string; lastName: string; email: string; password: string },\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/owner/setup',\n\t\tparams as unknown as IDataObject,\n\t);\n}\n\nexport async function validateSignupToken(\n\tcontext: IRestApiContext,\n\tparams: { inviterId: string; inviteeId: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\n}\n\nexport async function signup(\n\tcontext: IRestApiContext,\n\tparams: {\n\t\tinviterId: string;\n\t\tinviteeId: string;\n\t\tfirstName: string;\n\t\tlastName: string;\n\t\tpassword: string;\n\t},\n): Promise<CurrentUserResponse> {\n\tconst { inviteeId, ...props } = params;\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/users/${params.inviteeId}`,\n\t\tprops as unknown as IDataObject,\n\t);\n}\n\nexport async function sendForgotPasswordEmail(\n\tcontext: IRestApiContext,\n\tparams: { email: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/forgot-password', params);\n}\n\nexport async function validatePasswordToken(\n\tcontext: IRestApiContext,\n\tparams: { token: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'GET', '/resolve-password-token', params);\n}\n\nexport async function changePassword(\n\tcontext: IRestApiContext,\n\tparams: { token: string; password: string; mfaCode?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/change-password', params);\n}\n\nexport async function updateCurrentUser(\n\tcontext: IRestApiContext,\n\tparams: UserUpdateRequestDto,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me', params);\n}\n\nexport async function updateCurrentUserSettings(\n\tcontext: IRestApiContext,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/settings', settings);\n}\n\nexport async function updateOtherUserSettings(\n\tcontext: IRestApiContext,\n\tuserId: string,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${userId}/settings`, settings);\n}\n\nexport async function updateCurrentUserPassword(\n\tcontext: IRestApiContext,\n\tparams: PasswordUpdateRequestDto,\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/password', params);\n}\n\nexport async function deleteUser(\n\tcontext: IRestApiContext,\n\t{ id, transferId }: { id: string; transferId?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'DELETE', `/users/${id}`, transferId ? { transferId } : {});\n}\n\nexport async function getUsers(\n\tcontext: IRestApiContext,\n\tfilter?: UsersListFilterDto,\n): Promise<UsersList> {\n\treturn await makeRestApiRequest(context, 'GET', '/users', filter);\n}\n\nexport async function getInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/invite-link`);\n}\n\nexport async function getPasswordResetLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/password-reset-link`);\n}\n\nexport async function submitPersonalizationSurvey(\n\tcontext: IRestApiContext,\n\tparams: IPersonalizationLatestVersion,\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/me/survey', params as unknown as IDataObject);\n}\n\nexport interface UpdateGlobalRolePayload {\n\tid: string;\n\tnewRoleName: Role;\n}\n\nexport async function updateGlobalRole(\n\tcontext: IRestApiContext,\n\t{ id, newRoleName }: UpdateGlobalRolePayload,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${id}/role`, { newRoleName });\n}\n"],"mappings":";;;AAsFA,eAAsB,iBACrB,SACsC;AACtC,QAAO,MAAM,mBAAmB,SAAS,OAAO,SAAS;;AAG1D,eAAsB,MACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,OAAO;;AAGnE,eAAsB,OAAO,SAAyC;AACrE,OAAM,mBAAmB,SAAS,QAAQ,UAAU;;AAGrD,eAAsB,WACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBACZ,SACA,QACA,gBACA,OACA;;AAGF,eAAsB,oBACrB,SACA,QACgE;AAChE,QAAO,MAAM,mBAAmB,SAAS,OAAO,yBAAyB,OAAO;;AAGjF,eAAsB,OACrB,SACA,QAO+B;CAC/B,MAAM,EAAE,UAAW,GAAG,UAAU;AAChC,QAAO,MAAM,mBACZ,SACA,QACA,UAAU,OAAO,aACjB,MACA;;AAGF,eAAsB,wBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,sBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,OAAO,2BAA2B,OAAO;;AAG5E,eAAsB,eACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,kBACrB,SACA,QACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,OAAO,OAAO;;AAGjE,eAAsB,0BACrB,SACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,SAAS;;AAG5E,eAAsB,wBACrB,SACA,QACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,OAAO,YAAY,SAAS;;AAGzF,eAAsB,0BACrB,SACA,QACgB;AAChB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,OAAO;;AAG1E,eAAsB,WACrB,SACA,EAAE,IAAI,cACU;AAChB,OAAM,mBAAmB,SAAS,UAAU,UAAU,MAAM,aAAa,EAAE,YAAY,GAAG,EAAE,CAAC;;AAG9F,eAAsB,SACrB,SACA,QACqB;AACrB,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,OAAO;;AAGlE,eAAsB,cACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,cAAc;;AAG5E,eAAsB,qBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,sBAAsB;;AAGpF,eAAsB,4BACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,cAAc,OAAiC;;AAQ1F,eAAsB,iBACrB,SACA,EAAE,IAAI,eACmB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,GAAG,QAAQ,EAAE,aAAa,CAAC"}
1
+ {"version":3,"file":"users-BthaWKTQ.js","names":[],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUsersListFilterDto,\n\tUserUpdateRequestDto,\n\tRole,\n\tUsersList,\n\tUser,\n} from '@n8n/api-types';\nimport type { Scope } from '@n8n/permissions';\nimport type {\n\tFeatureFlags,\n\tIDataObject,\n\tIPersonalizationSurveyAnswersV4,\n\tIUserSettings,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type IPersonalizationSurveyAnswersV1 = {\n\tcodingSkill?: string | null;\n\tcompanyIndustry?: string[] | null;\n\tcompanySize?: string | null;\n\totherCompanyIndustry?: string | null;\n\totherWorkArea?: string | null;\n\tworkArea?: string[] | string | null;\n};\n\nexport type IPersonalizationSurveyAnswersV2 = {\n\tversion: 'v2';\n\tautomationGoal?: string | null;\n\tcodingSkill?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tcustomerType?: string | null;\n\tmspFocus?: string[] | null;\n\tmspFocusOther?: string | null;\n\totherAutomationGoal?: string | null;\n\totherCompanyIndustryExtended?: string[] | null;\n};\n\nexport type IPersonalizationSurveyAnswersV3 = {\n\tversion: 'v3';\n\tautomationGoal?: string | null;\n\totherAutomationGoal?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\totherCompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tautomationGoalSm?: string[] | null;\n\tautomationGoalSmOther?: string | null;\n\tusageModes?: string[] | null;\n\temail?: string | null;\n};\n\nexport type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;\n\nexport type IPersonalizationSurveyVersions =\n\t| IPersonalizationSurveyAnswersV1\n\t| IPersonalizationSurveyAnswersV2\n\t| IPersonalizationSurveyAnswersV3\n\t| IPersonalizationSurveyAnswersV4;\n\nexport interface IUserResponse extends User {\n\tglobalScopes?: Scope[];\n\tpersonalizationAnswers?: IPersonalizationSurveyVersions | null;\n\tsettings?: IUserSettings | null;\n}\n\nexport interface CurrentUserResponse extends IUserResponse {\n\tfeatureFlags?: FeatureFlags;\n}\n\nexport interface IUser extends IUserResponse {\n\tisDefaultUser: boolean;\n\tisPendingUser: boolean;\n\tinviteAcceptUrl?: string;\n\tfullName?: string;\n\tcreatedAt?: string;\n\tmfaEnabled: boolean;\n\tmfaAuthenticated?: boolean;\n}\n\nexport async function loginCurrentUser(\n\tcontext: IRestApiContext,\n): Promise<CurrentUserResponse | null> {\n\treturn await makeRestApiRequest(context, 'GET', '/login');\n}\n\nexport async function login(\n\tcontext: IRestApiContext,\n\tparams: LoginRequestDto,\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(context, 'POST', '/login', params);\n}\n\nexport async function logout(context: IRestApiContext): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/logout');\n}\n\nexport async function setupOwner(\n\tcontext: IRestApiContext,\n\tparams: { firstName: string; lastName: string; email: string; password: string },\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/owner/setup',\n\t\tparams as unknown as IDataObject,\n\t);\n}\n\nexport async function validateSignupToken(\n\tcontext: IRestApiContext,\n\tparams: { inviterId: string; inviteeId: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\n}\n\nexport async function signup(\n\tcontext: IRestApiContext,\n\tparams: {\n\t\tinviterId: string;\n\t\tinviteeId: string;\n\t\tfirstName: string;\n\t\tlastName: string;\n\t\tpassword: string;\n\t},\n): Promise<CurrentUserResponse> {\n\tconst { inviteeId, ...props } = params;\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/users/${params.inviteeId}`,\n\t\tprops as unknown as IDataObject,\n\t);\n}\n\nexport async function sendForgotPasswordEmail(\n\tcontext: IRestApiContext,\n\tparams: { email: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/forgot-password', params);\n}\n\nexport async function validatePasswordToken(\n\tcontext: IRestApiContext,\n\tparams: { token: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'GET', '/resolve-password-token', params);\n}\n\nexport async function changePassword(\n\tcontext: IRestApiContext,\n\tparams: { token: string; password: string; mfaCode?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/change-password', params);\n}\n\nexport async function updateCurrentUser(\n\tcontext: IRestApiContext,\n\tparams: UserUpdateRequestDto,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me', params);\n}\n\nexport async function updateCurrentUserSettings(\n\tcontext: IRestApiContext,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/settings', settings);\n}\n\nexport async function updateOtherUserSettings(\n\tcontext: IRestApiContext,\n\tuserId: string,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${userId}/settings`, settings);\n}\n\nexport async function updateCurrentUserPassword(\n\tcontext: IRestApiContext,\n\tparams: PasswordUpdateRequestDto,\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/password', params);\n}\n\nexport async function deleteUser(\n\tcontext: IRestApiContext,\n\t{ id, transferId }: { id: string; transferId?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'DELETE', `/users/${id}`, transferId ? { transferId } : {});\n}\n\nexport async function getUsers(\n\tcontext: IRestApiContext,\n\tfilter?: UsersListFilterDto,\n): Promise<UsersList> {\n\treturn await makeRestApiRequest(context, 'GET', '/users', filter);\n}\n\nexport async function getInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/invite-link`);\n}\n\nexport async function getPasswordResetLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/password-reset-link`);\n}\n\nexport async function submitPersonalizationSurvey(\n\tcontext: IRestApiContext,\n\tparams: IPersonalizationLatestVersion,\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/me/survey', params as unknown as IDataObject);\n}\n\nexport interface UpdateGlobalRolePayload {\n\tid: string;\n\tnewRoleName: Role;\n}\n\nexport async function updateGlobalRole(\n\tcontext: IRestApiContext,\n\t{ id, newRoleName }: UpdateGlobalRolePayload,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${id}/role`, { newRoleName });\n}\n"],"mappings":";;;AAsFA,eAAsB,iBACrB,SACsC;AACtC,QAAO,MAAM,mBAAmB,SAAS,OAAO,SAAS;;AAG1D,eAAsB,MACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,OAAO;;AAGnE,eAAsB,OAAO,SAAyC;AACrE,OAAM,mBAAmB,SAAS,QAAQ,UAAU;;AAGrD,eAAsB,WACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBACZ,SACA,QACA,gBACA,OACA;;AAGF,eAAsB,oBACrB,SACA,QACgE;AAChE,QAAO,MAAM,mBAAmB,SAAS,OAAO,yBAAyB,OAAO;;AAGjF,eAAsB,OACrB,SACA,QAO+B;CAC/B,MAAM,EAAE,UAAW,GAAG,UAAU;AAChC,QAAO,MAAM,mBACZ,SACA,QACA,UAAU,OAAO,aACjB,MACA;;AAGF,eAAsB,wBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,sBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,OAAO,2BAA2B,OAAO;;AAG5E,eAAsB,eACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,kBACrB,SACA,QACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,OAAO,OAAO;;AAGjE,eAAsB,0BACrB,SACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,SAAS;;AAG5E,eAAsB,wBACrB,SACA,QACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,OAAO,YAAY,SAAS;;AAGzF,eAAsB,0BACrB,SACA,QACgB;AAChB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,OAAO;;AAG1E,eAAsB,WACrB,SACA,EAAE,IAAI,cACU;AAChB,OAAM,mBAAmB,SAAS,UAAU,UAAU,MAAM,aAAa,EAAE,YAAY,GAAG,EAAE,CAAC;;AAG9F,eAAsB,SACrB,SACA,QACqB;AACrB,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,OAAO;;AAGlE,eAAsB,cACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,cAAc;;AAG5E,eAAsB,qBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,sBAAsB;;AAGpF,eAAsB,4BACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,cAAc,OAAiC;;AAQ1F,eAAsB,iBACrB,SACA,EAAE,IAAI,eACmB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,GAAG,QAAQ,EAAE,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- const require_utils = require('./utils-ZXKTtQnj.cjs');
1
+ const require_utils = require('./utils-VAtD8kId.cjs');
2
2
 
3
3
  //#region src/api/users.ts
4
4
  async function loginCurrentUser(context) {
@@ -175,4 +175,4 @@ Object.defineProperty(exports, 'validateSignupToken', {
175
175
  return validateSignupToken;
176
176
  }
177
177
  });
178
- //# sourceMappingURL=users-DmE1VJFB.cjs.map
178
+ //# sourceMappingURL=users-DxfFvrYo.cjs.map