n8n-nodes-base 2.40.2 → 2.41.1

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 (240) hide show
  1. package/dist/cjs/build.tsbuildinfo +1 -1
  2. package/dist/credentials/ClearbitApi.credentials.d.ts.map +1 -1
  3. package/dist/credentials/ClearbitApi.credentials.js +1 -0
  4. package/dist/credentials/ClearbitApi.credentials.js.map +1 -1
  5. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.d.ts.map +1 -1
  6. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +1 -0
  7. package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
  8. package/dist/credentials/MondayComApi.credentials.js +1 -1
  9. package/dist/credentials/NotionApi.credentials.d.ts.map +1 -1
  10. package/dist/credentials/NotionApi.credentials.js +1 -0
  11. package/dist/credentials/NotionApi.credentials.js.map +1 -1
  12. package/dist/credentials/SlackApi.credentials.d.ts.map +1 -1
  13. package/dist/credentials/SlackApi.credentials.js +1 -0
  14. package/dist/credentials/SlackApi.credentials.js.map +1 -1
  15. package/dist/credentials/SlackOAuth2Api.credentials.js +1 -1
  16. package/dist/credentials/SlackOAuth2Api.credentials.js.map +1 -1
  17. package/dist/credentials/TelegramApi.credentials.d.ts.map +1 -1
  18. package/dist/credentials/TelegramApi.credentials.js +1 -0
  19. package/dist/credentials/TelegramApi.credentials.js.map +1 -1
  20. package/dist/credentials/common/aws/utils.d.ts +5 -1
  21. package/dist/credentials/common/aws/utils.d.ts.map +1 -1
  22. package/dist/credentials/common/aws/utils.js +6 -4
  23. package/dist/credentials/common/aws/utils.js.map +1 -1
  24. package/dist/known/credentials.json +4 -2
  25. package/dist/known/nodes.json +4 -0
  26. package/dist/node-definitions/.nodes-hash +1 -1
  27. package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v2.ts +1 -1
  28. package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v21.ts +1 -1
  29. package/dist/node-definitions/nodes/n8n-nodes-base/emailReadImap/v22.ts +1 -1
  30. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/index.ts +3 -1
  31. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_each.ts +0 -1
  32. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v1/mode_once.ts +0 -1
  33. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_each.ts +0 -1
  34. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v11/mode_once.ts +0 -1
  35. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_each.ts +0 -1
  36. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v12/mode_once.ts +0 -1
  37. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_each.ts +0 -1
  38. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v13/mode_once.ts +0 -1
  39. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/index.schema.js +22 -0
  40. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/index.ts +15 -0
  41. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_each.schema.js +27 -0
  42. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_each.ts +99 -0
  43. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_once.schema.js +27 -0
  44. package/dist/node-definitions/nodes/n8n-nodes-base/executeWorkflow/v14/mode_once.ts +99 -0
  45. package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
  46. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
  47. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/index.schema.js +2 -0
  48. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/index.ts +3 -0
  49. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_create.schema.js +2 -1
  50. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_create.ts +31 -0
  51. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_reply.schema.js +2 -1
  52. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_channel_message/operation_reply.ts +31 -0
  53. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/index.schema.js +24 -0
  54. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/index.ts +18 -0
  55. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_create.schema.js +25 -0
  56. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_create.ts +73 -0
  57. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get.schema.js +23 -0
  58. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get.ts +31 -0
  59. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get_all.schema.js +24 -0
  60. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat/operation_get_all.ts +37 -0
  61. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat_message/operation_create.schema.js +2 -1
  62. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftTeams/v2/resource_chat_message/operation_create.ts +20 -0
  63. package/dist/nodes/Databricks/Databricks.node.d.ts.map +1 -1
  64. package/dist/nodes/Databricks/Databricks.node.js +3 -36
  65. package/dist/nodes/Databricks/Databricks.node.js.map +1 -1
  66. package/dist/nodes/Databricks/DatabricksTrigger.node.d.ts +6 -0
  67. package/dist/nodes/Databricks/DatabricksTrigger.node.d.ts.map +1 -0
  68. package/dist/nodes/Databricks/DatabricksTrigger.node.js +30 -0
  69. package/dist/nodes/Databricks/DatabricksTrigger.node.js.map +1 -0
  70. package/dist/nodes/Databricks/DatabricksTrigger.node.json +18 -0
  71. package/dist/nodes/Databricks/actions/helpers.d.ts +14 -15
  72. package/dist/nodes/Databricks/actions/helpers.d.ts.map +1 -1
  73. package/dist/nodes/Databricks/actions/helpers.js +72 -31
  74. package/dist/nodes/Databricks/actions/helpers.js.map +1 -1
  75. package/dist/nodes/Databricks/actions/interfaces.d.ts +75 -12
  76. package/dist/nodes/Databricks/actions/interfaces.d.ts.map +1 -1
  77. package/dist/nodes/Databricks/actions/job/Job.resource.d.ts +3 -0
  78. package/dist/nodes/Databricks/actions/job/Job.resource.d.ts.map +1 -1
  79. package/dist/nodes/Databricks/actions/job/Job.resource.js +4 -1
  80. package/dist/nodes/Databricks/actions/job/Job.resource.js.map +1 -1
  81. package/dist/nodes/Databricks/actions/job/getJob.operation.d.ts +3 -0
  82. package/dist/nodes/Databricks/actions/job/getJob.operation.d.ts.map +1 -0
  83. package/dist/nodes/Databricks/actions/job/getJob.operation.js +41 -0
  84. package/dist/nodes/Databricks/actions/job/getJob.operation.js.map +1 -0
  85. package/dist/nodes/Databricks/actions/job/getRun.operation.d.ts +3 -0
  86. package/dist/nodes/Databricks/actions/job/getRun.operation.d.ts.map +1 -0
  87. package/dist/nodes/Databricks/actions/job/getRun.operation.js +36 -0
  88. package/dist/nodes/Databricks/actions/job/getRun.operation.js.map +1 -0
  89. package/dist/nodes/Databricks/actions/job/getRunOutput.operation.d.ts +3 -0
  90. package/dist/nodes/Databricks/actions/job/getRunOutput.operation.d.ts.map +1 -0
  91. package/dist/nodes/Databricks/actions/job/getRunOutput.operation.js +61 -0
  92. package/dist/nodes/Databricks/actions/job/getRunOutput.operation.js.map +1 -0
  93. package/dist/nodes/Databricks/actions/job/run.operation.d.ts.map +1 -1
  94. package/dist/nodes/Databricks/actions/job/run.operation.js +8 -38
  95. package/dist/nodes/Databricks/actions/job/run.operation.js.map +1 -1
  96. package/dist/nodes/Databricks/actions/job/runState.d.ts +11 -0
  97. package/dist/nodes/Databricks/actions/job/runState.d.ts.map +1 -0
  98. package/dist/nodes/Databricks/actions/job/runState.js +30 -0
  99. package/dist/nodes/Databricks/actions/job/runState.js.map +1 -0
  100. package/dist/nodes/Databricks/actions/router.js +1 -1
  101. package/dist/nodes/Databricks/actions/router.js.map +1 -1
  102. package/dist/nodes/Databricks/authentication.d.ts +4 -0
  103. package/dist/nodes/Databricks/authentication.d.ts.map +1 -0
  104. package/dist/nodes/Databricks/authentication.js +40 -0
  105. package/dist/nodes/Databricks/authentication.js.map +1 -0
  106. package/dist/nodes/Databricks/constants.d.ts +3 -0
  107. package/dist/nodes/Databricks/constants.d.ts.map +1 -1
  108. package/dist/nodes/Databricks/constants.js +4 -1
  109. package/dist/nodes/Databricks/constants.js.map +1 -1
  110. package/dist/nodes/Databricks/methods/listSearch.d.ts +1 -0
  111. package/dist/nodes/Databricks/methods/listSearch.d.ts.map +1 -1
  112. package/dist/nodes/Databricks/methods/listSearch.js +53 -15
  113. package/dist/nodes/Databricks/methods/listSearch.js.map +1 -1
  114. package/dist/nodes/Databricks/resources/job/operations.d.ts.map +1 -1
  115. package/dist/nodes/Databricks/resources/job/operations.js +18 -0
  116. package/dist/nodes/Databricks/resources/job/operations.js.map +1 -1
  117. package/dist/nodes/Databricks/resources/job/parameters.d.ts.map +1 -1
  118. package/dist/nodes/Databricks/resources/job/parameters.js +51 -2
  119. package/dist/nodes/Databricks/resources/job/parameters.js.map +1 -1
  120. package/dist/nodes/Databricks/transport/index.d.ts +4 -0
  121. package/dist/nodes/Databricks/transport/index.d.ts.map +1 -0
  122. package/dist/nodes/Databricks/transport/index.js +16 -0
  123. package/dist/nodes/Databricks/transport/index.js.map +1 -0
  124. package/dist/nodes/Databricks/transport/jobRuns.d.ts +16 -0
  125. package/dist/nodes/Databricks/transport/jobRuns.d.ts.map +1 -0
  126. package/dist/nodes/Databricks/transport/jobRuns.js +55 -0
  127. package/dist/nodes/Databricks/transport/jobRuns.js.map +1 -0
  128. package/dist/nodes/Databricks/transport/pagination.d.ts +13 -0
  129. package/dist/nodes/Databricks/transport/pagination.d.ts.map +1 -0
  130. package/dist/nodes/Databricks/transport/pagination.js +28 -0
  131. package/dist/nodes/Databricks/transport/pagination.js.map +1 -0
  132. package/dist/nodes/Databricks/transport/pipelineEvents.d.ts +68 -0
  133. package/dist/nodes/Databricks/transport/pipelineEvents.d.ts.map +1 -0
  134. package/dist/nodes/Databricks/transport/pipelineEvents.js +88 -0
  135. package/dist/nodes/Databricks/transport/pipelineEvents.js.map +1 -0
  136. package/dist/nodes/EmailReadImap/search-criteria.d.ts +9 -0
  137. package/dist/nodes/EmailReadImap/search-criteria.d.ts.map +1 -0
  138. package/dist/nodes/EmailReadImap/search-criteria.js +254 -0
  139. package/dist/nodes/EmailReadImap/search-criteria.js.map +1 -0
  140. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts +1 -3
  141. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts.map +1 -1
  142. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +59 -64
  143. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  144. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
  145. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +16 -5
  146. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  147. package/dist/nodes/EmailReadImap/v2/utils.d.ts +2 -1
  148. package/dist/nodes/EmailReadImap/v2/utils.d.ts.map +1 -1
  149. package/dist/nodes/EmailReadImap/v2/utils.js +32 -38
  150. package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
  151. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.d.ts.map +1 -1
  152. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js +48 -42
  153. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js.map +1 -1
  154. package/dist/nodes/Form/v1/FormTriggerV1.node.d.ts +1 -1
  155. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.d.ts.map +1 -1
  156. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.js +13 -11
  157. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/create.operation.js.map +1 -1
  158. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.d.ts.map +1 -1
  159. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.js +5 -3
  160. package/dist/nodes/Microsoft/Teams/v2/actions/channelMessage/reply.operation.js.map +1 -1
  161. package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.d.ts +31 -0
  162. package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.d.ts.map +1 -0
  163. package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.js +225 -0
  164. package/dist/nodes/Microsoft/Teams/v2/actions/chat/create.operation.js.map +1 -0
  165. package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.d.ts +31 -0
  166. package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.d.ts.map +1 -0
  167. package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.js +37 -0
  168. package/dist/nodes/Microsoft/Teams/v2/actions/chat/get.operation.js.map +1 -0
  169. package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.d.ts +31 -0
  170. package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.d.ts.map +1 -0
  171. package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.js +43 -0
  172. package/dist/nodes/Microsoft/Teams/v2/actions/chat/getAll.operation.js.map +1 -0
  173. package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.d.ts +7 -0
  174. package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.d.ts.map +1 -0
  175. package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.js +96 -0
  176. package/dist/nodes/Microsoft/Teams/v2/actions/chat/index.js.map +1 -0
  177. package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.d.ts +10 -0
  178. package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.d.ts.map +1 -0
  179. package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.js +20 -0
  180. package/dist/nodes/Microsoft/Teams/v2/actions/chat/sharedGuard.js.map +1 -0
  181. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.d.ts.map +1 -1
  182. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.js +9 -12
  183. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.js.map +1 -1
  184. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/get.operation.js +1 -1
  185. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/get.operation.js.map +1 -1
  186. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js +1 -1
  187. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/getAll.operation.js.map +1 -1
  188. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/messageActions.js +1 -1
  189. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/messageActions.js.map +1 -1
  190. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sendAndWait.operation.js +1 -1
  191. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sendAndWait.operation.js.map +1 -1
  192. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.d.ts +1 -1
  193. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.d.ts.map +1 -1
  194. package/dist/nodes/Microsoft/Teams/v2/actions/chatMessage/sharedGuard.js +2 -2
  195. package/dist/nodes/Microsoft/Teams/v2/actions/node.type.d.ts +1 -0
  196. package/dist/nodes/Microsoft/Teams/v2/actions/node.type.d.ts.map +1 -1
  197. package/dist/nodes/Microsoft/Teams/v2/actions/router.d.ts.map +1 -1
  198. package/dist/nodes/Microsoft/Teams/v2/actions/router.js +25 -0
  199. package/dist/nodes/Microsoft/Teams/v2/actions/router.js.map +1 -1
  200. package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.d.ts.map +1 -1
  201. package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.js +7 -1
  202. package/dist/nodes/Microsoft/Teams/v2/actions/versionDescription.js.map +1 -1
  203. package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.d.ts +22 -3
  204. package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.d.ts.map +1 -1
  205. package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.js +93 -4
  206. package/dist/nodes/Microsoft/Teams/v2/descriptions/common.description.js.map +1 -1
  207. package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.d.ts +6 -0
  208. package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.d.ts.map +1 -1
  209. package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.js +53 -1
  210. package/dist/nodes/Microsoft/Teams/v2/descriptions/rlc.description.js.map +1 -1
  211. package/dist/nodes/Microsoft/Teams/v2/helpers/utils.d.ts +38 -14
  212. package/dist/nodes/Microsoft/Teams/v2/helpers/utils.d.ts.map +1 -1
  213. package/dist/nodes/Microsoft/Teams/v2/helpers/utils.js +268 -65
  214. package/dist/nodes/Microsoft/Teams/v2/helpers/utils.js.map +1 -1
  215. package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.d.ts +6 -0
  216. package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.d.ts.map +1 -1
  217. package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.js +51 -0
  218. package/dist/nodes/Microsoft/Teams/v2/methods/listSearch.js.map +1 -1
  219. package/dist/nodes/Microsoft/Teams/v2/transport/index.d.ts.map +1 -1
  220. package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
  221. package/dist/nodes/MondayCom/GenericFunctions.d.ts.map +1 -1
  222. package/dist/nodes/MondayCom/GenericFunctions.js +22 -6
  223. package/dist/nodes/MondayCom/GenericFunctions.js.map +1 -1
  224. package/dist/nodes/MondayCom/MondayCom.node.d.ts.map +1 -1
  225. package/dist/nodes/MondayCom/MondayCom.node.js +41 -37
  226. package/dist/nodes/MondayCom/MondayCom.node.js.map +1 -1
  227. package/dist/nodes/S3/GenericFunctions.d.ts.map +1 -1
  228. package/dist/nodes/S3/GenericFunctions.js +4 -0
  229. package/dist/nodes/S3/GenericFunctions.js.map +1 -1
  230. package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
  231. package/dist/nodes/Slack/V2/GenericFunctions.js +3 -0
  232. package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
  233. package/dist/nodes/Telegram/GenericFunctions.d.ts +1 -1
  234. package/dist/nodes/TheHiveProject/helpers/constants.d.ts +1 -1
  235. package/dist/types/credentials.json +9 -9
  236. package/dist/types/nodes.json +7 -6
  237. package/dist/utils/microsoft/transport.d.ts.map +1 -1
  238. package/dist/utils/microsoft/transport.js +23 -4
  239. package/dist/utils/microsoft/transport.js.map +1 -1
  240. package/package.json +14 -12
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Execute Sub-workflow Node - Version 1.4
3
+ * Discriminator: mode=each
4
+ */
5
+
6
+
7
+ // Helper types for special n8n fields
8
+ type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
9
+ type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
10
+ type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
11
+
12
+ /** Call the sub-workflow individually for each item */
13
+ export type ExecuteWorkflowV14EachParams = {
14
+ /**
15
+ * <patterns>
16
+ * These workflowInputs patterns apply to Execute Workflow node versions 1.2 and newer.
17
+ * <pattern title="Child accepts all data">
18
+ * Omit workflowInputs from parameters.
19
+ * </pattern>
20
+ * <pattern title="Child declares inputs">
21
+ * workflowInputs: {
22
+ * mappingMode: 'defineBelow',
23
+ * value: {
24
+ * orderId: expr('{{ $json.id }}'),
25
+ * amount: expr('{{ $json.total }}'),
26
+ * },
27
+ * matchingColumns: [],
28
+ * schema: [
29
+ * {
30
+ * id: 'orderId',
31
+ * displayName: 'orderId',
32
+ * required: false,
33
+ * defaultMatch: false,
34
+ * display: true,
35
+ * canBeUsedToMatch: true,
36
+ * type: 'string',
37
+ * },
38
+ * {
39
+ * id: 'amount',
40
+ * displayName: 'amount',
41
+ * required: false,
42
+ * defaultMatch: false,
43
+ * display: true,
44
+ * canBeUsedToMatch: true,
45
+ * type: 'number',
46
+ * },
47
+ * ],
48
+ * attemptToConvertTypes: false,
49
+ * }
50
+ * </pattern>
51
+ * </patterns>
52
+ */
53
+ mode: 'each';
54
+ /**
55
+ * Where to get the workflow to execute from
56
+ * @default database
57
+ */
58
+ source?: 'database' | 'parameter' | Expression<string>;
59
+ /**
60
+ * Workflow
61
+ * @displayOptions.show { source: ["database"] }
62
+ */
63
+ workflowId?: { __rl: true; mode: 'list' | 'id'; value: string | number; cachedResultName?: string; cachedResultUrl?: string } | Expression<string>;
64
+ /**
65
+ * The path to local JSON workflow file to execute
66
+ * @displayOptions.show { source: ["localFile"] }
67
+ */
68
+ workflowPath: string | Expression<string>;
69
+ /**
70
+ * The workflow JSON code to execute
71
+ * @displayOptions.show { source: ["parameter"] }
72
+ */
73
+ workflowJson?: IDataObject | string | Expression<string>;
74
+ /**
75
+ * The URL from which to load the workflow from
76
+ * @displayOptions.show { source: ["url"] }
77
+ */
78
+ workflowUrl: string | Expression<string>;
79
+ /**
80
+ * Workflow Inputs
81
+ * @builderHint The default { mappingMode: 'defineBelow', value: null } is only a temporary UI initialization state and must never be emitted in a workflow. Omit workflowInputs when the selected sub-workflow's trigger is set to 'Accept all data'. When the trigger declares inputs, pass the full Resource Mapper object and make the value and schema fields exactly match the declared input names and types.
82
+ * @displayOptions.show { source: ["database"] }
83
+ * @displayOptions.hide { workflowId: [""] }
84
+ * @default {"mappingMode":"defineBelow","value":null}
85
+ */
86
+ workflowInputs?: ResourceMapperValue;
87
+ options?: {
88
+ /** Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding
89
+ * @default true
90
+ */
91
+ waitForSubWorkflow?: boolean | Expression<boolean>;
92
+ };
93
+ };
94
+
95
+ export type ExecuteWorkflowV14EachNode = {
96
+ type: 'n8n-nodes-base.executeWorkflow';
97
+ version: 1.4;
98
+ config: NodeConfig<ExecuteWorkflowV14EachParams>;
99
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Execute Sub-workflow Node - Version 1.4 - Zod Schema
3
+ * Discriminator: mode=once
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
+
15
+ return z.object({
16
+ parameters: z.object({
17
+ mode: z.literal('once').default('once'),
18
+ source: z.union([z.literal('database'), z.literal('parameter'), expressionSchema]).optional(),
19
+ workflowId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"show":{"source":["database"]}}, defaults: {"source":"database"} }),
20
+ workflowPath: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"source":["localFile"]}}, defaults: {"source":"database"} }),
21
+ workflowJson: resolveSchema({ parameters, schema: z.union([iDataObjectSchema, z.string()]), required: false, displayOptions: {"show":{"source":["parameter"]}}, defaults: {"source":"database"} }),
22
+ workflowUrl: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"show":{"source":["url"]}}, defaults: {"source":"database"} }),
23
+ workflowInputs: resolveSchema({ parameters, schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"source":["database"]},"hide":{"workflowId":[""]}}, defaults: {"source":"database","workflowId":""} }),
24
+ options: z.object({ waitForSubWorkflow: booleanOrExpression.optional() }).optional(),
25
+ }).optional(),
26
+ });
27
+ };
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Execute Sub-workflow Node - Version 1.4
3
+ * Discriminator: mode=once
4
+ */
5
+
6
+
7
+ // Helper types for special n8n fields
8
+ type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
9
+ type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
10
+ type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
11
+
12
+ /** Pass all items into a single execution of the sub-workflow */
13
+ export type ExecuteWorkflowV14OnceParams = {
14
+ /**
15
+ * <patterns>
16
+ * These workflowInputs patterns apply to Execute Workflow node versions 1.2 and newer.
17
+ * <pattern title="Child accepts all data">
18
+ * Omit workflowInputs from parameters.
19
+ * </pattern>
20
+ * <pattern title="Child declares inputs">
21
+ * workflowInputs: {
22
+ * mappingMode: 'defineBelow',
23
+ * value: {
24
+ * orderId: expr('{{ $json.id }}'),
25
+ * amount: expr('{{ $json.total }}'),
26
+ * },
27
+ * matchingColumns: [],
28
+ * schema: [
29
+ * {
30
+ * id: 'orderId',
31
+ * displayName: 'orderId',
32
+ * required: false,
33
+ * defaultMatch: false,
34
+ * display: true,
35
+ * canBeUsedToMatch: true,
36
+ * type: 'string',
37
+ * },
38
+ * {
39
+ * id: 'amount',
40
+ * displayName: 'amount',
41
+ * required: false,
42
+ * defaultMatch: false,
43
+ * display: true,
44
+ * canBeUsedToMatch: true,
45
+ * type: 'number',
46
+ * },
47
+ * ],
48
+ * attemptToConvertTypes: false,
49
+ * }
50
+ * </pattern>
51
+ * </patterns>
52
+ */
53
+ mode: 'once';
54
+ /**
55
+ * Where to get the workflow to execute from
56
+ * @default database
57
+ */
58
+ source?: 'database' | 'parameter' | Expression<string>;
59
+ /**
60
+ * Workflow
61
+ * @displayOptions.show { source: ["database"] }
62
+ */
63
+ workflowId?: { __rl: true; mode: 'list' | 'id'; value: string | number; cachedResultName?: string; cachedResultUrl?: string } | Expression<string>;
64
+ /**
65
+ * The path to local JSON workflow file to execute
66
+ * @displayOptions.show { source: ["localFile"] }
67
+ */
68
+ workflowPath: string | Expression<string>;
69
+ /**
70
+ * The workflow JSON code to execute
71
+ * @displayOptions.show { source: ["parameter"] }
72
+ */
73
+ workflowJson?: IDataObject | string | Expression<string>;
74
+ /**
75
+ * The URL from which to load the workflow from
76
+ * @displayOptions.show { source: ["url"] }
77
+ */
78
+ workflowUrl: string | Expression<string>;
79
+ /**
80
+ * Workflow Inputs
81
+ * @builderHint The default { mappingMode: 'defineBelow', value: null } is only a temporary UI initialization state and must never be emitted in a workflow. Omit workflowInputs when the selected sub-workflow's trigger is set to 'Accept all data'. When the trigger declares inputs, pass the full Resource Mapper object and make the value and schema fields exactly match the declared input names and types.
82
+ * @displayOptions.show { source: ["database"] }
83
+ * @displayOptions.hide { workflowId: [""] }
84
+ * @default {"mappingMode":"defineBelow","value":null}
85
+ */
86
+ workflowInputs?: ResourceMapperValue;
87
+ options?: {
88
+ /** Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding
89
+ * @default true
90
+ */
91
+ waitForSubWorkflow?: boolean | Expression<boolean>;
92
+ };
93
+ };
94
+
95
+ export type ExecuteWorkflowV14OnceNode = {
96
+ type: 'n8n-nodes-base.executeWorkflow';
97
+ version: 1.4;
98
+ config: NodeConfig<ExecuteWorkflowV14OnceParams>;
99
+ };
@@ -34,13 +34,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
34
34
  /**
35
35
  * Start
36
36
  * @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
37
- * @default 2026-09-09T00:00:00.000+00:00
37
+ * @default 2026-09-15T00:00:00.000+00:00
38
38
  */
39
39
  startDate?: string | Expression<string>;
40
40
  /**
41
41
  * End
42
42
  * @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
43
- * @default 2026-09-16T00:00:00.000+00:00
43
+ * @default 2026-09-22T00:00:00.000+00:00
44
44
  */
45
45
  endDate?: string | Expression<string>;
46
46
  /**
@@ -33,12 +33,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
33
33
  subject: string | Expression<string>;
34
34
  /**
35
35
  * Start
36
- * @default 2026-09-17T07:19:07.473+00:00
36
+ * @default 2026-09-23T07:17:13.830+00:00
37
37
  */
38
38
  startDateTime?: string | Expression<string>;
39
39
  /**
40
40
  * End
41
- * @default 2026-09-17T07:49:07.473+00:00
41
+ * @default 2026-09-23T07:47:13.830+00:00
42
42
  */
43
43
  endDateTime?: string | Expression<string>;
44
44
  /**
@@ -10,6 +10,7 @@
10
10
 
11
11
  const getChannelSchema = require('./resource_channel/index.schema');
12
12
  const getChannelMessageSchema = require('./resource_channel_message/index.schema');
13
+ const getChatSchema = require('./resource_chat/index.schema');
13
14
  const getChatMemberSchema = require('./resource_chat_member/index.schema');
14
15
  const getChatMessageSchema = require('./resource_chat_message/index.schema');
15
16
  const getOnlineMeetingSchema = require('./resource_online_meeting/index.schema');
@@ -22,6 +23,7 @@ module.exports = function getSchema(helpers) {
22
23
  return z.union([
23
24
  getChannelSchema({ ...helpers, parameters: effectiveParams }),
24
25
  getChannelMessageSchema({ ...helpers, parameters: effectiveParams }),
26
+ getChatSchema({ ...helpers, parameters: effectiveParams }),
25
27
  getChatMemberSchema({ ...helpers, parameters: effectiveParams }),
26
28
  getChatMessageSchema({ ...helpers, parameters: effectiveParams }),
27
29
  getOnlineMeetingSchema({ ...helpers, parameters: effectiveParams }),
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type { MicrosoftTeamsV2ChannelNode } from './resource_channel';
7
7
  import type { MicrosoftTeamsV2ChannelMessageNode } from './resource_channel_message';
8
+ import type { MicrosoftTeamsV2ChatNode } from './resource_chat';
8
9
  import type { MicrosoftTeamsV2ChatMemberNode } from './resource_chat_member';
9
10
  import type { MicrosoftTeamsV2ChatMessageNode } from './resource_chat_message';
10
11
  import type { MicrosoftTeamsV2OnlineMeetingNode } from './resource_online_meeting';
@@ -12,6 +13,7 @@ import type { MicrosoftTeamsV2TaskNode } from './resource_task';
12
13
 
13
14
  export * from './resource_channel';
14
15
  export * from './resource_channel_message';
16
+ export * from './resource_chat';
15
17
  export * from './resource_chat_member';
16
18
  export * from './resource_chat_message';
17
19
  export * from './resource_online_meeting';
@@ -20,6 +22,7 @@ export * from './resource_task';
20
22
  export type MicrosoftTeamsV2Node =
21
23
  | MicrosoftTeamsV2ChannelNode
22
24
  | MicrosoftTeamsV2ChannelMessageNode
25
+ | MicrosoftTeamsV2ChatNode
23
26
  | MicrosoftTeamsV2ChatMemberNode
24
27
  | MicrosoftTeamsV2ChatMessageNode
25
28
  | MicrosoftTeamsV2OnlineMeetingNode
@@ -21,7 +21,8 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
21
21
  channelId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
22
22
  contentType: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
23
23
  message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
24
- options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional(), makeReply: stringOrExpression.optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
24
+ mentions: resolveSchema({ parameters, schema: z.object({ mention: z.array(z.object({ mentionType: z.union([z.literal('user'), z.literal('tag')]).optional(), userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), tagId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
25
+ options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional(), mentionPlacement: z.union([z.literal('start'), z.literal('end'), expressionSchema]).optional(), makeReply: stringOrExpression.optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
25
26
  }).optional(),
26
27
  });
27
28
  };
@@ -40,6 +40,33 @@ export type MicrosoftTeamsV2ChannelMessageCreateParams = {
40
40
  * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
41
41
  */
42
42
  message: string | Expression<string>;
43
+ /**
44
+ * People or team tags to @mention. A team tag notifies everyone who carries it. The Mention Placement option decides whether the tokens go before or after the message text, and adding a mention makes the message render as HTML even when Content Type is Text.
45
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
46
+ * @default {}
47
+ */
48
+ mentions?: {
49
+ /** Mention
50
+ */
51
+ mention?: Array<{
52
+ /** Mention Type
53
+ * @default user
54
+ */
55
+ mentionType?: 'user' | 'tag';
56
+ /** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
57
+ * @searchListMethod getUsers
58
+ * @displayOptions.show { mentionType: ["user"] }
59
+ * @default {"mode":"list","value":""}
60
+ */
61
+ userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
62
+ /** Select a tag from the team, or enter its ID
63
+ * @searchListMethod getTags
64
+ * @displayOptions.show { mentionType: ["tag"] }
65
+ * @default {"mode":"list","value":""}
66
+ */
67
+ tagId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
68
+ }>;
69
+ };
43
70
  /**
44
71
  * Options
45
72
  * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
@@ -50,6 +77,10 @@ export type MicrosoftTeamsV2ChannelMessageCreateParams = {
50
77
  * @default true
51
78
  */
52
79
  includeLinkToWorkflow?: boolean | Expression<boolean>;
80
+ /** Whether the mentions go before or after the message text. A mention makes the message render as HTML, even if Content Type is Text.
81
+ * @default start
82
+ */
83
+ mentionPlacement?: 'start' | 'end' | Expression<string>;
53
84
  /** An optional ID of the message you want to reply to. The message ID is the number before "?tenantId" in the message URL. The Reply operation does the same thing and is easier to find.
54
85
  */
55
86
  makeReply?: string | Expression<string>;
@@ -22,7 +22,8 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
22
22
  messageId: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
23
23
  contentType: resolveSchema({ parameters, schema: z.union([z.literal('text'), z.literal('html'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
24
24
  message: resolveSchema({ parameters, schema: stringOrExpression, required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
25
- options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
25
+ mentions: resolveSchema({ parameters, schema: z.object({ mention: z.array(z.object({ mentionType: z.union([z.literal('user'), z.literal('tag')]).optional(), userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), tagId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
26
+ options: resolveSchema({ parameters, schema: z.object({ includeLinkToWorkflow: booleanOrExpression.optional(), mentionPlacement: z.union([z.literal('start'), z.literal('end'), expressionSchema]).optional() }), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
26
27
  }).optional(),
27
28
  });
28
29
  };
@@ -45,6 +45,33 @@ export type MicrosoftTeamsV2ChannelMessageReplyParams = {
45
45
  * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
46
46
  */
47
47
  message: string | Expression<string>;
48
+ /**
49
+ * People or team tags to @mention. A team tag notifies everyone who carries it. The Mention Placement option decides whether the tokens go before or after the message text, and adding a mention makes the message render as HTML even when Content Type is Text.
50
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
51
+ * @default {}
52
+ */
53
+ mentions?: {
54
+ /** Mention
55
+ */
56
+ mention?: Array<{
57
+ /** Mention Type
58
+ * @default user
59
+ */
60
+ mentionType?: 'user' | 'tag';
61
+ /** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
62
+ * @searchListMethod getUsers
63
+ * @displayOptions.show { mentionType: ["user"] }
64
+ * @default {"mode":"list","value":""}
65
+ */
66
+ userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
67
+ /** Select a tag from the team, or enter its ID
68
+ * @searchListMethod getTags
69
+ * @displayOptions.show { mentionType: ["tag"] }
70
+ * @default {"mode":"list","value":""}
71
+ */
72
+ tagId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
73
+ }>;
74
+ };
48
75
  /**
49
76
  * Options
50
77
  * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
@@ -55,6 +82,10 @@ export type MicrosoftTeamsV2ChannelMessageReplyParams = {
55
82
  * @default true
56
83
  */
57
84
  includeLinkToWorkflow?: boolean | Expression<boolean>;
85
+ /** Whether the mentions go before or after the message text. A mention makes the message render as HTML, even if Content Type is Text.
86
+ * @default start
87
+ */
88
+ mentionPlacement?: 'start' | 'end' | Expression<string>;
58
89
  };
59
90
  };
60
91
 
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Microsoft Teams - Chat Resource - Zod Schema Factory
3
+ * Exports a factory that unions all operation schemas for this resource.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getCreateSchema = require('./operation_create.schema');
12
+ const getGetSchema = require('./operation_get.schema');
13
+ const getGetAllSchema = require('./operation_get_all.schema');
14
+
15
+ module.exports = function getSchema(helpers) {
16
+ const { parameters, z } = helpers;
17
+ // Apply operation default if not set
18
+ const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'create' } : parameters;
19
+ return z.union([
20
+ getCreateSchema({ ...helpers, parameters: effectiveParams }),
21
+ getGetSchema({ ...helpers, parameters: effectiveParams }),
22
+ getGetAllSchema({ ...helpers, parameters: effectiveParams }),
23
+ ]);
24
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Microsoft Teams - Chat Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { MicrosoftTeamsV2ChatCreateNode } from './operation_create';
7
+ import type { MicrosoftTeamsV2ChatGetNode } from './operation_get';
8
+ import type { MicrosoftTeamsV2ChatGetAllNode } from './operation_get_all';
9
+
10
+ export * from './operation_create';
11
+ export * from './operation_get';
12
+ export * from './operation_get_all';
13
+
14
+ export type MicrosoftTeamsV2ChatNode =
15
+ | MicrosoftTeamsV2ChatCreateNode
16
+ | MicrosoftTeamsV2ChatGetNode
17
+ | MicrosoftTeamsV2ChatGetAllNode
18
+ ;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Microsoft Teams Node - Version 2 - Zod Schema
3
+ * Discriminator: resource=chat, operation=create
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
+
15
+ return z.object({
16
+ parameters: z.object({
17
+ resource: z.literal('chat'),
18
+ operation: z.literal('create').default('create'),
19
+ authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
20
+ chatType: resolveSchema({ parameters, schema: z.union([z.literal('group'), z.literal('oneOnOne'), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
21
+ members: resolveSchema({ parameters, schema: z.object({ member: z.array(z.object({ userId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(), role: z.union([z.literal('guest'), z.literal('owner'), expressionSchema]).optional(), tenantId: stringOrExpression.optional() })).min(1) }), required: true, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
22
+ topic: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"chatType":["group"]},"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}}, defaults: {"chatType":"oneOnOne"} }),
23
+ }).optional(),
24
+ });
25
+ };
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Microsoft Teams Node - Version 2
3
+ * Discriminator: resource=chat, operation=create
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ microsoftTeamsOAuth2Api: CredentialReference;
9
+ microsoftOAuth2Api: CredentialReference;
10
+ microsoftEntraServicePrincipalApi: CredentialReference;
11
+ }
12
+
13
+ /** Create a channel */
14
+ export type MicrosoftTeamsV2ChatCreateParams = {
15
+ resource: 'chat';
16
+ operation: 'create';
17
+ authentication?: 'microsoftTeamsOAuth2Api' | 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
18
+ /**
19
+ * Whether to create a chat with one other person or a group chat
20
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
21
+ * @default oneOnOne
22
+ */
23
+ chatType?: 'group' | 'oneOnOne' | Expression<string>;
24
+ /**
25
+ * The other people to add to the chat. You are added automatically.
26
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
27
+ * @default {}
28
+ */
29
+ members: {
30
+ /** Participant
31
+ * @minItems 1
32
+ */
33
+ member: [{
34
+ /** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
35
+ * @searchListMethod getUsers
36
+ * @default {"mode":"list","value":""}
37
+ */
38
+ userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
39
+ /** The role to give this participant. In-tenant guest accounts must use Guest. All other accounts use Owner.
40
+ * @default owner
41
+ */
42
+ role?: 'guest' | 'owner' | Expression<string>;
43
+ /** Only for a user from another organization. Give that user as a user object ID, not an email address. Leave this empty for a user in your own tenant.
44
+ */
45
+ tenantId?: string | Expression<string>;
46
+ }, ...Array<{
47
+ /** Select the user from the list or by ID. Guest users must be given by their object ID, not by their user principal name.
48
+ * @searchListMethod getUsers
49
+ * @default {"mode":"list","value":""}
50
+ */
51
+ userId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
52
+ /** The role to give this participant. In-tenant guest accounts must use Guest. All other accounts use Owner.
53
+ * @default owner
54
+ */
55
+ role?: 'guest' | 'owner' | Expression<string>;
56
+ /** Only for a user from another organization. Give that user as a user object ID, not an email address. Leave this empty for a user in your own tenant.
57
+ */
58
+ tenantId?: string | Expression<string>;
59
+ }>];
60
+ };
61
+ /**
62
+ * The name of the group chat, shown to all members
63
+ * @displayOptions.show { chatType: ["group"] }
64
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
65
+ */
66
+ topic?: string | Expression<string>;
67
+ };
68
+
69
+ export type MicrosoftTeamsV2ChatCreateNode = {
70
+ type: 'n8n-nodes-base.microsoftTeams';
71
+ version: 2;
72
+ config: NodeConfig<MicrosoftTeamsV2ChatCreateParams> & { credentials?: Credentials };
73
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Microsoft Teams Node - Version 2 - Zod Schema
3
+ * Discriminator: resource=chat, operation=get
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
+
15
+ return z.object({
16
+ parameters: z.object({
17
+ resource: z.literal('chat'),
18
+ operation: z.literal('get'),
19
+ authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
20
+ chatId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
21
+ }).optional(),
22
+ });
23
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Microsoft Teams Node - Version 2
3
+ * Discriminator: resource=chat, operation=get
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ microsoftTeamsOAuth2Api: CredentialReference;
9
+ microsoftOAuth2Api: CredentialReference;
10
+ microsoftEntraServicePrincipalApi: CredentialReference;
11
+ }
12
+
13
+ /** Get a channel */
14
+ export type MicrosoftTeamsV2ChatGetParams = {
15
+ resource: 'chat';
16
+ operation: 'get';
17
+ authentication?: 'microsoftTeamsOAuth2Api' | 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
18
+ /**
19
+ * Select the chat from the list, by URL, or by ID (find the chat ID after "conversations/" in the URL)
20
+ * @searchListMethod getChats
21
+ * @displayOptions.hide { /authentication: ["microsoftEntraServicePrincipalApi"] }
22
+ * @default {"mode":"list","value":""}
23
+ */
24
+ chatId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
25
+ };
26
+
27
+ export type MicrosoftTeamsV2ChatGetNode = {
28
+ type: 'n8n-nodes-base.microsoftTeams';
29
+ version: 2;
30
+ config: NodeConfig<MicrosoftTeamsV2ChatGetParams> & { credentials?: Credentials };
31
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Microsoft Teams Node - Version 2 - Zod Schema
3
+ * Discriminator: resource=chat, operation=getAll
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
+
15
+ return z.object({
16
+ parameters: z.object({
17
+ resource: z.literal('chat'),
18
+ operation: z.literal('getAll'),
19
+ authentication: z.union([z.literal('microsoftTeamsOAuth2Api'), z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
20
+ returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}} }),
21
+ limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]},"hide":{"/authentication":["microsoftEntraServicePrincipalApi"]}}, defaults: {"returnAll":false} }),
22
+ }).optional(),
23
+ });
24
+ };