@membranehq/sdk 0.3.0 → 0.5.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 (364) hide show
  1. package/README.md +2 -0
  2. package/dist/bundle.d.ts +9397 -1740
  3. package/dist/bundle.js +8027 -17721
  4. package/dist/bundle.js.map +1 -1
  5. package/dist/dts/accessors/action-instances-accessors.d.ts +30 -0
  6. package/dist/dts/accessors/actions-accessors.d.ts +23 -0
  7. package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +12 -0
  8. package/dist/dts/accessors/app-data-schemas-accessors.d.ts +10 -0
  9. package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +11 -0
  10. package/dist/dts/accessors/app-event-types-accessors.d.ts +10 -0
  11. package/dist/dts/{accessors.d.ts → accessors/base-accessors.d.ts} +3 -3
  12. package/dist/dts/{connections/accessors.d.ts → accessors/connections-accessors.d.ts} +79 -10
  13. package/dist/dts/accessors/customers-accessors.d.ts +15 -0
  14. package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +14 -0
  15. package/dist/dts/accessors/data-link-tables-accessors.d.ts +10 -0
  16. package/dist/dts/{data-sources/accessors.d.ts → accessors/data-sources-accessors.d.ts} +4 -4
  17. package/dist/dts/{external-events/accessors.d.ts → accessors/external-event-subscriptions-accessors.d.ts} +3 -3
  18. package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +31 -0
  19. package/dist/dts/accessors/field-mappings-accessors.d.ts +25 -0
  20. package/dist/dts/{flows/accessors.d.ts → accessors/flow-instances-accessors.d.ts} +5 -26
  21. package/dist/dts/{flow-runs/accessors.d.ts → accessors/flow-runs-accessors.d.ts} +1 -1
  22. package/dist/dts/accessors/flows-accessors.d.ts +23 -0
  23. package/dist/dts/accessors/index.d.ts +21 -0
  24. package/dist/dts/accessors/integrations-accessors.d.ts +113 -0
  25. package/dist/dts/{scenarios/accessors.d.ts → accessors/scenarios-accessors.d.ts} +2 -2
  26. package/dist/dts/{screens/accessors.d.ts → accessors/screens-accessors.d.ts} +2 -2
  27. package/dist/dts/api-client.d.ts +1 -0
  28. package/dist/dts/apps/types.d.ts +2 -0
  29. package/dist/dts/auth/accessors.d.ts +1 -1
  30. package/dist/dts/auth/index.d.ts +1 -1
  31. package/dist/dts/client.d.ts +3 -16
  32. package/dist/dts/data-builder/index.d.ts +19 -9
  33. package/dist/dts/data-filter/index.d.ts +1 -1
  34. package/dist/dts/data-schema/index.d.ts +0 -2
  35. package/dist/dts/data-schema/types.d.ts +4 -3
  36. package/dist/dts/{data-schema/utils.d.ts → data-schema-utils/index.d.ts} +3 -6
  37. package/dist/dts/entity-repository.d.ts +87 -20
  38. package/dist/dts/error-tools/index.d.ts +3 -0
  39. package/dist/dts/errors/index.d.ts +2 -9
  40. package/dist/dts/{data-builder/formulas → formulas}/base.d.ts +2 -2
  41. package/dist/dts/{data-builder/formulas → formulas}/dataSchemaRef.d.ts +3 -3
  42. package/dist/dts/{data-builder/formulas → formulas}/eval.d.ts +1 -1
  43. package/dist/dts/{data-builder/formulas → formulas}/findAppRecordId.d.ts +1 -1
  44. package/dist/dts/{data-builder/formulas → formulas}/findExternalRecordId.d.ts +1 -1
  45. package/dist/dts/formulas/index.d.ts +91 -0
  46. package/dist/dts/{data-builder/formulas → formulas}/record.d.ts +1 -1
  47. package/dist/dts/{data-builder/formulas → formulas}/types.d.ts +1 -0
  48. package/dist/dts/http-requests.d.ts +20 -6
  49. package/dist/dts/iframe.d.ts +12 -4
  50. package/dist/dts/index.d.ts +6 -18
  51. package/dist/dts/integration-elements/index.d.ts +3 -3
  52. package/dist/dts/{data-builder/locators.d.ts → locators/index.d.ts} +3 -3
  53. package/dist/dts/sse/index.d.ts +1 -0
  54. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  55. package/dist/dts/variables.d.ts +1 -1
  56. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +8 -0
  57. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +10 -0
  58. package/dist/dts/workspace-elements/api/actions-api.d.ts +728 -0
  59. package/dist/dts/{app-data-schemas/api.d.ts → workspace-elements/api/app-data-schema-instances-api.d.ts} +13 -20
  60. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -0
  61. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +30 -0
  62. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +30 -0
  63. package/dist/dts/workspace-elements/api/app-events-api.d.ts +17 -0
  64. package/dist/dts/workspace-elements/api/connections-api.d.ts +710 -0
  65. package/dist/dts/workspace-elements/api/customers-api.d.ts +70 -0
  66. package/dist/dts/{data-links/api.d.ts → workspace-elements/api/data-link-table-instances-api.d.ts} +15 -8
  67. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +8 -0
  68. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +12 -0
  69. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +856 -0
  70. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +19 -0
  71. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +19 -0
  72. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +10 -0
  73. package/dist/dts/workspace-elements/api/external-events-api.d.ts +507 -0
  74. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +41 -0
  75. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +619 -0
  76. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +50 -0
  77. package/dist/dts/workspace-elements/api/flows-api.d.ts +2437 -0
  78. package/dist/dts/workspace-elements/api/index.d.ts +25 -0
  79. package/dist/dts/workspace-elements/api/integrations-api.d.ts +260 -0
  80. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +486 -0
  81. package/dist/dts/{screens/types.d.ts → workspace-elements/api/screens-api.d.ts} +6 -8
  82. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +77 -0
  83. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +42 -0
  84. package/dist/dts/{actions → workspace-elements/base/actions}/index.d.ts +0 -1
  85. package/dist/dts/workspace-elements/base/actions/types.d.ts +68 -0
  86. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +47 -0
  87. package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +1 -0
  88. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -0
  89. package/dist/dts/workspace-elements/base/app-event-subscriptions/index.d.ts +1 -0
  90. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +84 -0
  91. package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +1 -0
  92. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +75 -0
  93. package/dist/dts/workspace-elements/base/connections/index.d.ts +1 -0
  94. package/dist/dts/workspace-elements/base/connections/types.d.ts +92 -0
  95. package/dist/dts/{connectors → workspace-elements/base/connectors}/auth.d.ts +2 -2
  96. package/dist/dts/workspace-elements/base/connectors/events/index.d.ts +1 -0
  97. package/dist/dts/{connectors → workspace-elements/base/connectors}/events/types.d.ts +1 -1
  98. package/dist/dts/workspace-elements/base/connectors/global-webhooks/index.d.ts +1 -0
  99. package/dist/dts/{connectors → workspace-elements/base/connectors}/graphql-api.d.ts +1 -1
  100. package/dist/dts/{connectors → workspace-elements/base/connectors}/index.d.ts +0 -2
  101. package/dist/dts/{connectors → workspace-elements/base/connectors}/methods.d.ts +1 -1
  102. package/dist/dts/{connectors → workspace-elements/base/connectors}/rest-api.d.ts +1 -1
  103. package/dist/dts/{connectors → workspace-elements/base/connectors}/types.d.ts +16 -4
  104. package/dist/dts/{connectors → workspace-elements/base/connectors}/udm.d.ts +1 -1
  105. package/dist/dts/workspace-elements/base/customers/index.d.ts +30 -0
  106. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/base.d.ts +2 -2
  107. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/connector-event.d.ts +1 -1
  108. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/custom-pull.d.ts +1 -1
  109. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +1 -1
  110. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/webhook.d.ts +1 -1
  111. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/methods.d.ts +2 -2
  112. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/index.d.ts +1 -1
  113. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/base.d.ts +4 -4
  114. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/index.d.ts +0 -2
  115. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/methods.d.ts +2 -2
  116. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-records.d.ts +1 -1
  117. package/dist/dts/workspace-elements/base/data-collections/index.d.ts +6 -0
  118. package/dist/dts/{connectors/data-locations → workspace-elements/base/data-collections}/schemas.d.ts +762 -261
  119. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +54 -0
  120. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/base.d.ts +2 -2
  121. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/index.d.ts +2 -2
  122. package/dist/dts/{connectors/data-locations → workspace-elements/base/data-collections}/utils.d.ts +5 -2
  123. package/dist/dts/workspace-elements/base/data-link-table-instances/index.d.ts +1 -0
  124. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +70 -0
  125. package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +1 -0
  126. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +31 -0
  127. package/dist/dts/workspace-elements/base/data-source-instances/index.d.ts +1 -0
  128. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1036 -0
  129. package/dist/dts/{data-sources → workspace-elements/base/data-sources}/index.d.ts +0 -2
  130. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +94 -0
  131. package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
  132. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +41 -0
  133. package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +1 -0
  134. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +48 -0
  135. package/dist/dts/workspace-elements/base/external-event-subscriptions/index.d.ts +1 -0
  136. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +218 -0
  137. package/dist/dts/{external-events → workspace-elements/base/external-events}/api.d.ts +2 -2
  138. package/dist/dts/{external-events → workspace-elements/base/external-events}/index.d.ts +1 -4
  139. package/dist/dts/workspace-elements/base/external-events/types.d.ts +157 -0
  140. package/dist/dts/workspace-elements/base/field-mapping-instances/index.d.ts +1 -0
  141. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +85 -0
  142. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
  143. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +115 -0
  144. package/dist/dts/workspace-elements/base/flow-instances/index.d.ts +2 -0
  145. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +168 -0
  146. package/dist/dts/{flow-runs → workspace-elements/base/flow-runs}/flow-node-runs.d.ts +27 -27
  147. package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +2 -0
  148. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +126 -0
  149. package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
  150. package/dist/dts/workspace-elements/base/flows/types.d.ts +227 -0
  151. package/dist/dts/workspace-elements/base/index.d.ts +27 -0
  152. package/dist/dts/workspace-elements/base/integrations/index.d.ts +1 -0
  153. package/dist/dts/workspace-elements/base/integrations/types.d.ts +505 -0
  154. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +1 -0
  155. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +727 -0
  156. package/dist/dts/workspace-elements/base/screens/index.d.ts +1 -0
  157. package/dist/dts/workspace-elements/base/screens/types.d.ts +41 -0
  158. package/dist/dts/workspace-elements/errors.d.ts +5 -0
  159. package/dist/dts/workspace-elements/index.d.ts +4 -0
  160. package/dist/dts/workspace-elements/types.d.ts +30 -4
  161. package/dist/dts/{flows/utils.d.ts → workspace-elements/utils/flow-utils.d.ts} +3 -3
  162. package/dist/dts/workspace-elements/utils/index.d.ts +1 -0
  163. package/dist/dts/workspace-elements-catalog/index.d.ts +3 -8
  164. package/dist/dts/workspaces/types.d.ts +6 -42
  165. package/dist/index.d.ts +13896 -3203
  166. package/dist/index.js +10508 -9435
  167. package/dist/index.js.map +1 -1
  168. package/dist/index.module.d.mts +13896 -3203
  169. package/dist/index.module.mjs +10358 -9413
  170. package/dist/index.module.mjs.map +1 -1
  171. package/package.json +7 -2
  172. package/dist/dts/actions/accessors.d.ts +0 -49
  173. package/dist/dts/actions/types.d.ts +0 -94
  174. package/dist/dts/app-data-schemas/accessors.d.ts +0 -18
  175. package/dist/dts/app-data-schemas/index.d.ts +0 -23
  176. package/dist/dts/app-events/accessors.d.ts +0 -20
  177. package/dist/dts/app-events/api.d.ts +0 -44
  178. package/dist/dts/app-events/index.d.ts +0 -42
  179. package/dist/dts/connections/api.d.ts +0 -27
  180. package/dist/dts/connections/create-or-update-connection.d.ts +0 -15
  181. package/dist/dts/connections/index.d.ts +0 -3
  182. package/dist/dts/connections/types.d.ts +0 -50
  183. package/dist/dts/data-builder/formula-processors.d.ts +0 -13
  184. package/dist/dts/data-builder/formula-types.d.ts +0 -4
  185. package/dist/dts/data-builder/formulas/index.d.ts +0 -26
  186. package/dist/dts/data-collections/types.d.ts +0 -24
  187. package/dist/dts/data-links/accessors.d.ts +0 -20
  188. package/dist/dts/data-links/index.d.ts +0 -36
  189. package/dist/dts/data-schema/data-field.d.ts +0 -14
  190. package/dist/dts/data-sources/api.d.ts +0 -90
  191. package/dist/dts/data-sources/types.d.ts +0 -63
  192. package/dist/dts/errors/error-doc-enum.d.ts +0 -7
  193. package/dist/dts/external-events/types.d.ts +0 -157
  194. package/dist/dts/field-mappings/accessors.d.ts +0 -54
  195. package/dist/dts/field-mappings/api.d.ts +0 -58
  196. package/dist/dts/field-mappings/index.d.ts +0 -66
  197. package/dist/dts/field-mappings/types.d.ts +0 -12
  198. package/dist/dts/flow-runs/index.d.ts +0 -78
  199. package/dist/dts/flows/api.d.ts +0 -54
  200. package/dist/dts/flows/index.d.ts +0 -6
  201. package/dist/dts/flows/types.d.ts +0 -76
  202. package/dist/dts/integrations/accessors.d.ts +0 -57
  203. package/dist/dts/integrations/api.d.ts +0 -24
  204. package/dist/dts/integrations/index.d.ts +0 -3
  205. package/dist/dts/integrations/types.d.ts +0 -38
  206. package/dist/dts/scenarios/index.d.ts +0 -2
  207. package/dist/dts/scenarios/types.d.ts +0 -145
  208. package/dist/dts/screens/index.d.ts +0 -2
  209. package/dist/dts/users/accessors.d.ts +0 -10
  210. package/dist/dts/users/api.d.ts +0 -23
  211. package/dist/dts/users/index.d.ts +0 -13
  212. package/dist/dts/{accessors.test.d.ts → accessors/base-accessors.test.d.ts} +0 -0
  213. package/dist/dts/{connectors/data-locations/utils.test.d.ts → data-builder/data-builder.test.d.ts} +0 -0
  214. package/dist/dts/{data-builder/formulas → data-schema-utils}/index.test.d.ts +0 -0
  215. package/dist/dts/{data-builder/formulas → formulas}/and.d.ts +0 -0
  216. package/dist/dts/{data-builder/formulas → formulas}/and.test.d.ts +0 -0
  217. package/dist/dts/{data-builder/formulas → formulas}/case.d.ts +0 -0
  218. package/dist/dts/{data-builder/formulas → formulas}/case.test.d.ts +0 -0
  219. package/dist/dts/{data-builder/formulas → formulas}/concat.d.ts +0 -0
  220. package/dist/dts/{data-builder/formulas → formulas}/concat.test.d.ts +0 -0
  221. package/dist/dts/{data-builder/formulas → formulas}/copy.d.ts +0 -0
  222. package/dist/dts/{data-builder/formulas → formulas}/copy.test.d.ts +0 -0
  223. package/dist/dts/{data-builder/formulas → formulas}/dataSchemaRef.test.d.ts +0 -0
  224. package/dist/dts/{data-builder/formulas → formulas}/domainFromEmail.d.ts +0 -0
  225. package/dist/dts/{data-builder/formulas → formulas}/domainFromEmail.test.d.ts +0 -0
  226. package/dist/dts/{data-builder/formulas → formulas}/eval.test.d.ts +0 -0
  227. package/dist/dts/{data-builder/formulas → formulas}/extractDate.d.ts +0 -0
  228. package/dist/dts/{data-builder/formulas → formulas}/extractDate.test.d.ts +0 -0
  229. package/dist/dts/{data-builder/formulas → formulas}/extractTime.d.ts +0 -0
  230. package/dist/dts/{data-builder/formulas → formulas}/extractTime.test.d.ts +0 -0
  231. package/dist/dts/{data-builder/formulas → formulas}/findAppRecordId.test.d.ts +0 -0
  232. package/dist/dts/{data-builder/formulas → formulas}/findExternalRecordId.test.d.ts +0 -0
  233. package/dist/dts/{data-builder/formulas → formulas}/first-name.d.ts +0 -0
  234. package/dist/dts/{data-builder/formulas → formulas}/first-name.test.d.ts +0 -0
  235. package/dist/dts/{data-builder/formulas → formulas}/firstNotEmpty.d.ts +0 -0
  236. package/dist/dts/{data-builder/formulas → formulas}/firstNotEmpty.test.d.ts +0 -0
  237. package/dist/dts/{data-builder/formulas → formulas}/formula.d.ts +0 -0
  238. package/dist/dts/{data-builder/formulas → formulas}/formula.test.d.ts +0 -0
  239. package/dist/dts/{data-builder → formulas}/index.test.d.ts +0 -0
  240. package/dist/dts/{data-builder/formulas → formulas}/iterate.d.ts +0 -0
  241. package/dist/dts/{data-builder/formulas → formulas}/iterate.test.d.ts +0 -0
  242. package/dist/dts/{data-builder/formulas → formulas}/jsonata.d.ts +0 -0
  243. package/dist/dts/{data-builder/formulas → formulas}/jsonata.test.d.ts +0 -0
  244. package/dist/dts/{data-builder/formulas → formulas}/last-name.d.ts +0 -0
  245. package/dist/dts/{data-builder/formulas → formulas}/last-name.test.d.ts +0 -0
  246. package/dist/dts/{data-builder/formulas → formulas}/lookup.d.ts +0 -0
  247. package/dist/dts/{data-builder/formulas → formulas}/lookup.test.d.ts +0 -0
  248. package/dist/dts/{data-builder/formulas → formulas}/map.d.ts +0 -0
  249. package/dist/dts/{data-builder/formulas → formulas}/map.test.d.ts +0 -0
  250. package/dist/dts/{data-builder/formulas → formulas}/mergeObjects.d.ts +0 -0
  251. package/dist/dts/{data-builder/formulas → formulas}/mergeObjects.test.d.ts +0 -0
  252. package/dist/dts/{data-builder/formulas → formulas}/or.d.ts +0 -0
  253. package/dist/dts/{data-builder/formulas → formulas}/or.test.d.ts +0 -0
  254. package/dist/dts/{data-builder/formulas → formulas}/plain.d.ts +0 -0
  255. package/dist/dts/{data-builder/formulas → formulas}/plain.test.d.ts +0 -0
  256. package/dist/dts/{data-builder/formulas → formulas}/record.test.d.ts +0 -0
  257. package/dist/dts/{data-builder/formulas → formulas}/tpl.d.ts +0 -0
  258. package/dist/dts/{data-builder/formulas → formulas}/tpl.test.d.ts +0 -0
  259. package/dist/dts/{data-builder/formulas → formulas}/var.d.ts +0 -0
  260. package/dist/dts/{data-builder/formulas → formulas}/var.test.d.ts +0 -0
  261. package/dist/dts/{data-builder → locators}/locators.test.d.ts +0 -0
  262. package/dist/dts/{data-builder/formula-processors.test.d.ts → setupTests.d.ts} +0 -0
  263. package/dist/dts/{connectors/events → workspace-elements/base/action-instances}/index.d.ts +0 -0
  264. package/dist/dts/{connectors/global-webhooks → workspace-elements/base/action-run-log-records}/index.d.ts +0 -0
  265. package/dist/dts/{actions → workspace-elements/base/actions}/action-types.d.ts +0 -0
  266. package/dist/dts/{data-collections → workspace-elements/base/app-data-schema-instances}/index.d.ts +0 -0
  267. package/dist/dts/{connectors → workspace-elements/base/connectors}/constants.d.ts +0 -0
  268. package/dist/dts/{connectors → workspace-elements/base/connectors}/global-webhooks/types.d.ts +0 -0
  269. package/dist/dts/{connectors → workspace-elements/base/connectors}/openapi.d.ts +0 -0
  270. package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/handlers.d.ts +0 -0
  271. package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/index.d.ts +0 -0
  272. package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/types.d.ts +0 -0
  273. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/full-scan.d.ts +0 -0
  274. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/index.d.ts +0 -0
  275. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/create.d.ts +0 -0
  276. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/delete.d.ts +0 -0
  277. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/find-by-id.d.ts +0 -0
  278. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/find.d.ts +0 -0
  279. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/list.d.ts +0 -0
  280. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/match.d.ts +0 -0
  281. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/search.d.ts +0 -0
  282. package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/update.d.ts +0 -0
  283. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/activities.d.ts +0 -0
  284. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/activities.test.d.ts +0 -0
  285. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/bills.d.ts +0 -0
  286. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/campaign-members.d.ts +0 -0
  287. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/campaigns.d.ts +0 -0
  288. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/companies.d.ts +0 -0
  289. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/contact-lists.d.ts +0 -0
  290. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/contacts.d.ts +0 -0
  291. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/credit-notes.d.ts +0 -0
  292. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/customers.d.ts +0 -0
  293. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deal-products.d.ts +0 -0
  294. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deal-stages.d.ts +0 -0
  295. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deals.d.ts +0 -0
  296. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/documents.d.ts +0 -0
  297. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/drive-items.d.ts +0 -0
  298. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/drives.d.ts +0 -0
  299. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/eeocs.d.ts +0 -0
  300. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/emails.d.ts +0 -0
  301. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/employees.d.ts +0 -0
  302. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/files.d.ts +0 -0
  303. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/folders.d.ts +0 -0
  304. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/invoices.d.ts +0 -0
  305. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-applications.d.ts +0 -0
  306. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-candidates.d.ts +0 -0
  307. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-interviews.d.ts +0 -0
  308. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-offers.d.ts +0 -0
  309. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/jobs.d.ts +0 -0
  310. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/journal-entries.d.ts +0 -0
  311. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/leads.d.ts +0 -0
  312. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/ledger-accounts.d.ts +0 -0
  313. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/meetings.d.ts +0 -0
  314. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/messages.d.ts +0 -0
  315. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/notes.d.ts +0 -0
  316. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/orders.d.ts +0 -0
  317. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/payments.d.ts +0 -0
  318. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/payrolls.d.ts +0 -0
  319. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/products.d.ts +0 -0
  320. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/projects.d.ts +0 -0
  321. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/suppliers.d.ts +0 -0
  322. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/tasks.d.ts +0 -0
  323. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/tax-rates.d.ts +0 -0
  324. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/timeoff-balances.d.ts +0 -0
  325. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/timeoff-requests.d.ts +0 -0
  326. package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/users.d.ts +0 -0
  327. package/dist/dts/{data-schema → workspace-elements/base/data-collections}/utils.test.d.ts +0 -0
  328. package/dist/dts/{data-sources → workspace-elements/base/data-sources}/constants.d.ts +0 -0
  329. package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/is-object.test.d.ts +0 -0
  330. package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/merge-with-formulas.d.ts +0 -0
  331. package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/merge-with-formulas.test.d.ts +0 -0
  332. package/dist/dts/{flows → workspace-elements/base/flow-instances}/schemas.d.ts +39 -39
  333. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-request-to-external-app.d.ts +0 -0
  334. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-request-to-your-app.d.ts +0 -0
  335. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-trigger.d.ts +0 -0
  336. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/app-event-trigger.d.ts +0 -0
  337. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/base.d.ts +0 -0
  338. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/connector-event-trigger.d.ts +0 -0
  339. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/create-data-link.d.ts +0 -0
  340. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/create-data-record.d.ts +0 -0
  341. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/custom-http-request.d.ts +0 -0
  342. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-created-trigger.d.ts +0 -0
  343. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-deleted-trigger.d.ts +0 -0
  344. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-updated-trigger.d.ts +0 -0
  345. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/delete-data-link.d.ts +0 -0
  346. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/delete-data-record.d.ts +0 -0
  347. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/filter.d.ts +0 -0
  348. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-link.d.ts +0 -0
  349. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-record-by-id.d.ts +0 -0
  350. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-records.d.ts +0 -0
  351. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-or-create-data-record.d.ts +0 -0
  352. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/for-each-v2.d.ts +0 -0
  353. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/for-each.d.ts +0 -0
  354. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/index.d.ts +0 -0
  355. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/integration-specific-operation.d.ts +0 -0
  356. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/list-data-records.d.ts +0 -0
  357. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/lookup-data-record.d.ts +0 -0
  358. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/run-action.d.ts +0 -0
  359. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/run-javascript.d.ts +0 -0
  360. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/schedule-trigger.d.ts +0 -0
  361. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/search-data-records.d.ts +0 -0
  362. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/transform-data.d.ts +0 -0
  363. /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/update-data-record.d.ts +0 -0
  364. /package/dist/dts/{flows/utils.test.d.ts → workspace-elements/utils/flow-utils.test.d.ts} +0 -0
@@ -0,0 +1,727 @@
1
+ import { z } from 'zod';
2
+ export declare enum ScenarioTemplateCategory {
3
+ DataExport = "data-export",
4
+ DataImport = "data-import",
5
+ BiDirectionalSync = "bi-directional-sync",
6
+ UnifiedApi = "unified-api",
7
+ DataEnrichment = "data-enrichment"
8
+ }
9
+ export declare const ScenarioToDo: z.ZodObject<{
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ isComplete: z.ZodBoolean;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ description: string;
16
+ isComplete: boolean;
17
+ }, {
18
+ name: string;
19
+ description: string;
20
+ isComplete: boolean;
21
+ }>;
22
+ export type ScenarioToDo = z.infer<typeof ScenarioToDo>;
23
+ export declare const ScenarioElement: z.ZodObject<{
24
+ id: z.ZodString;
25
+ type: z.ZodString;
26
+ element: z.ZodOptional<z.ZodAny>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: string;
29
+ id: string;
30
+ element?: any;
31
+ }, {
32
+ type: string;
33
+ id: string;
34
+ element?: any;
35
+ }>;
36
+ export type ScenarioElement = z.infer<typeof ScenarioElement>;
37
+ export declare const BaseScenario: z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ } & {
41
+ key: z.ZodString;
42
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
43
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
44
+ } & {
45
+ appId: z.ZodString;
46
+ scenarioTemplateId: z.ZodOptional<z.ZodString>;
47
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ type: z.ZodString;
50
+ element: z.ZodOptional<z.ZodAny>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ type: string;
53
+ id: string;
54
+ element?: any;
55
+ }, {
56
+ type: string;
57
+ id: string;
58
+ element?: any;
59
+ }>, "many">>;
60
+ connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ id: z.ZodString;
62
+ key: z.ZodString;
63
+ name: z.ZodString;
64
+ logoUri: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ key: string;
67
+ id: string;
68
+ name: string;
69
+ logoUri: string;
70
+ }, {
71
+ key: string;
72
+ id: string;
73
+ name: string;
74
+ logoUri: string;
75
+ }>, "many">>;
76
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ name: z.ZodString;
78
+ description: z.ZodString;
79
+ isComplete: z.ZodBoolean;
80
+ }, "strip", z.ZodTypeAny, {
81
+ name: string;
82
+ description: string;
83
+ isComplete: boolean;
84
+ }, {
85
+ name: string;
86
+ description: string;
87
+ isComplete: boolean;
88
+ }>, "many">>;
89
+ archivedAt: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ key: string;
92
+ id: string;
93
+ name: string;
94
+ appId: string;
95
+ state?: import("../../types").WorkspaceElementState | undefined;
96
+ errors?: any[] | undefined;
97
+ archivedAt?: string | undefined;
98
+ scenarioTemplateId?: string | undefined;
99
+ elements?: {
100
+ type: string;
101
+ id: string;
102
+ element?: any;
103
+ }[] | undefined;
104
+ connectors?: {
105
+ key: string;
106
+ id: string;
107
+ name: string;
108
+ logoUri: string;
109
+ }[] | undefined;
110
+ todos?: {
111
+ name: string;
112
+ description: string;
113
+ isComplete: boolean;
114
+ }[] | undefined;
115
+ }, {
116
+ key: string;
117
+ id: string;
118
+ name: string;
119
+ appId: string;
120
+ state?: import("../../types").WorkspaceElementState | undefined;
121
+ errors?: any[] | undefined;
122
+ archivedAt?: string | undefined;
123
+ scenarioTemplateId?: string | undefined;
124
+ elements?: {
125
+ type: string;
126
+ id: string;
127
+ element?: any;
128
+ }[] | undefined;
129
+ connectors?: {
130
+ key: string;
131
+ id: string;
132
+ name: string;
133
+ logoUri: string;
134
+ }[] | undefined;
135
+ todos?: {
136
+ name: string;
137
+ description: string;
138
+ isComplete: boolean;
139
+ }[] | undefined;
140
+ }>;
141
+ export type BaseScenario = z.infer<typeof BaseScenario>;
142
+ export declare const HandyScenarioTemplateElement: z.ZodObject<{
143
+ type: z.ZodString;
144
+ integration: z.ZodOptional<z.ZodObject<{
145
+ key: z.ZodString;
146
+ connectorId: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ key: string;
149
+ connectorId: string;
150
+ }, {
151
+ key: string;
152
+ connectorId: string;
153
+ }>>;
154
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ key: z.ZodString;
156
+ connectorId: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ key: string;
159
+ connectorId: string;
160
+ }, {
161
+ key: string;
162
+ connectorId: string;
163
+ }>, "many">>;
164
+ fields: z.ZodIntersection<z.ZodObject<{
165
+ key: z.ZodString;
166
+ name: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ key: string;
169
+ name: string;
170
+ }, {
171
+ key: string;
172
+ name: string;
173
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: string;
176
+ fields: {
177
+ key: string;
178
+ name: string;
179
+ } & Record<string, any>;
180
+ integration?: {
181
+ key: string;
182
+ connectorId: string;
183
+ } | undefined;
184
+ integrations?: {
185
+ key: string;
186
+ connectorId: string;
187
+ }[] | undefined;
188
+ }, {
189
+ type: string;
190
+ fields: {
191
+ key: string;
192
+ name: string;
193
+ } & Record<string, any>;
194
+ integration?: {
195
+ key: string;
196
+ connectorId: string;
197
+ } | undefined;
198
+ integrations?: {
199
+ key: string;
200
+ connectorId: string;
201
+ }[] | undefined;
202
+ }>;
203
+ export type HandyScenarioTemplateElement = z.infer<typeof HandyScenarioTemplateElement>;
204
+ export declare const ElementsExportFields: z.ZodObject<{
205
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
206
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ integrationKeys?: string[] | undefined;
209
+ }, {
210
+ integrationKeys?: string[] | undefined;
211
+ }>>>>;
212
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
213
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ integrationKeys?: string[] | undefined;
216
+ }, {
217
+ integrationKeys?: string[] | undefined;
218
+ }>>>>;
219
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
220
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ integrationKeys?: string[] | undefined;
223
+ }, {
224
+ integrationKeys?: string[] | undefined;
225
+ }>>>>;
226
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
227
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ integrationKeys?: string[] | undefined;
230
+ }, {
231
+ integrationKeys?: string[] | undefined;
232
+ }>>>>;
233
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
234
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
235
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ actions?: Record<string, any> | undefined;
238
+ flows?: Record<string, any> | undefined;
239
+ fieldMappings?: Record<string, any> | undefined;
240
+ dataSources?: Record<string, any> | undefined;
241
+ dataLinkTables?: Record<string, any> | undefined;
242
+ appEventTypes?: Record<string, any> | undefined;
243
+ appDataSchemas?: Record<string, any> | undefined;
244
+ }, {
245
+ actions?: Record<string, any> | undefined;
246
+ flows?: Record<string, any> | undefined;
247
+ fieldMappings?: Record<string, any> | undefined;
248
+ dataSources?: Record<string, any> | undefined;
249
+ dataLinkTables?: Record<string, any> | undefined;
250
+ appEventTypes?: Record<string, any> | undefined;
251
+ appDataSchemas?: Record<string, any> | undefined;
252
+ }>;
253
+ export type ElementsExportFields = z.infer<typeof ElementsExportFields>;
254
+ export declare const ScenarioTemplateElements: z.ZodIntersection<z.ZodObject<{
255
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
256
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ integrationKeys?: string[] | undefined;
259
+ }, {
260
+ integrationKeys?: string[] | undefined;
261
+ }>>>>;
262
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
263
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ integrationKeys?: string[] | undefined;
266
+ }, {
267
+ integrationKeys?: string[] | undefined;
268
+ }>>>>;
269
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
270
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ integrationKeys?: string[] | undefined;
273
+ }, {
274
+ integrationKeys?: string[] | undefined;
275
+ }>>>>;
276
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
277
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ integrationKeys?: string[] | undefined;
280
+ }, {
281
+ integrationKeys?: string[] | undefined;
282
+ }>>>>;
283
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
284
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
285
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ actions?: Record<string, any> | undefined;
288
+ flows?: Record<string, any> | undefined;
289
+ fieldMappings?: Record<string, any> | undefined;
290
+ dataSources?: Record<string, any> | undefined;
291
+ dataLinkTables?: Record<string, any> | undefined;
292
+ appEventTypes?: Record<string, any> | undefined;
293
+ appDataSchemas?: Record<string, any> | undefined;
294
+ }, {
295
+ actions?: Record<string, any> | undefined;
296
+ flows?: Record<string, any> | undefined;
297
+ fieldMappings?: Record<string, any> | undefined;
298
+ dataSources?: Record<string, any> | undefined;
299
+ dataLinkTables?: Record<string, any> | undefined;
300
+ appEventTypes?: Record<string, any> | undefined;
301
+ appDataSchemas?: Record<string, any> | undefined;
302
+ }>, z.ZodObject<{
303
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
304
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
305
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ integrationKeys?: string[] | undefined;
308
+ }, {
309
+ integrationKeys?: string[] | undefined;
310
+ }>>>>;
311
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
312
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ integrationKeys?: string[] | undefined;
315
+ }, {
316
+ integrationKeys?: string[] | undefined;
317
+ }>>>>;
318
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
319
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ integrationKeys?: string[] | undefined;
322
+ }, {
323
+ integrationKeys?: string[] | undefined;
324
+ }>>>>;
325
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
326
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ integrationKeys?: string[] | undefined;
329
+ }, {
330
+ integrationKeys?: string[] | undefined;
331
+ }>>>>;
332
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
333
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
334
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ actions?: Record<string, any> | undefined;
337
+ flows?: Record<string, any> | undefined;
338
+ fieldMappings?: Record<string, any> | undefined;
339
+ dataSources?: Record<string, any> | undefined;
340
+ dataLinkTables?: Record<string, any> | undefined;
341
+ appEventTypes?: Record<string, any> | undefined;
342
+ appDataSchemas?: Record<string, any> | undefined;
343
+ }, {
344
+ actions?: Record<string, any> | undefined;
345
+ flows?: Record<string, any> | undefined;
346
+ fieldMappings?: Record<string, any> | undefined;
347
+ dataSources?: Record<string, any> | undefined;
348
+ dataLinkTables?: Record<string, any> | undefined;
349
+ appEventTypes?: Record<string, any> | undefined;
350
+ appDataSchemas?: Record<string, any> | undefined;
351
+ }>, z.ZodObject<{
352
+ connectorId: z.ZodString;
353
+ }, "strip", z.ZodTypeAny, {
354
+ connectorId: string;
355
+ }, {
356
+ connectorId: string;
357
+ }>>>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ integrations?: Record<string, {
360
+ actions?: Record<string, any> | undefined;
361
+ flows?: Record<string, any> | undefined;
362
+ fieldMappings?: Record<string, any> | undefined;
363
+ dataSources?: Record<string, any> | undefined;
364
+ dataLinkTables?: Record<string, any> | undefined;
365
+ appEventTypes?: Record<string, any> | undefined;
366
+ appDataSchemas?: Record<string, any> | undefined;
367
+ } & {
368
+ connectorId: string;
369
+ }> | undefined;
370
+ }, {
371
+ integrations?: Record<string, {
372
+ actions?: Record<string, any> | undefined;
373
+ flows?: Record<string, any> | undefined;
374
+ fieldMappings?: Record<string, any> | undefined;
375
+ dataSources?: Record<string, any> | undefined;
376
+ dataLinkTables?: Record<string, any> | undefined;
377
+ appEventTypes?: Record<string, any> | undefined;
378
+ appDataSchemas?: Record<string, any> | undefined;
379
+ } & {
380
+ connectorId: string;
381
+ }> | undefined;
382
+ }>>;
383
+ export type ScenarioTemplateElements = z.infer<typeof ScenarioTemplateElements>;
384
+ export declare const ScenarioTemplate: z.ZodObject<{
385
+ id: z.ZodString;
386
+ name: z.ZodString;
387
+ key: z.ZodString;
388
+ shortDescription: z.ZodOptional<z.ZodString>;
389
+ description: z.ZodOptional<z.ZodString>;
390
+ demoWorkspaceKey: z.ZodOptional<z.ZodString>;
391
+ demoAppUri: z.ZodOptional<z.ZodString>;
392
+ demoGithubRepo: z.ZodOptional<z.ZodString>;
393
+ demoVideoYoutubeUri: z.ZodOptional<z.ZodString>;
394
+ tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ScenarioTemplateCategory>, "many">>;
395
+ elements: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
396
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
397
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ integrationKeys?: string[] | undefined;
400
+ }, {
401
+ integrationKeys?: string[] | undefined;
402
+ }>>>>;
403
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
404
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ integrationKeys?: string[] | undefined;
407
+ }, {
408
+ integrationKeys?: string[] | undefined;
409
+ }>>>>;
410
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
411
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ integrationKeys?: string[] | undefined;
414
+ }, {
415
+ integrationKeys?: string[] | undefined;
416
+ }>>>>;
417
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
418
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ integrationKeys?: string[] | undefined;
421
+ }, {
422
+ integrationKeys?: string[] | undefined;
423
+ }>>>>;
424
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
425
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
426
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ actions?: Record<string, any> | undefined;
429
+ flows?: Record<string, any> | undefined;
430
+ fieldMappings?: Record<string, any> | undefined;
431
+ dataSources?: Record<string, any> | undefined;
432
+ dataLinkTables?: Record<string, any> | undefined;
433
+ appEventTypes?: Record<string, any> | undefined;
434
+ appDataSchemas?: Record<string, any> | undefined;
435
+ }, {
436
+ actions?: Record<string, any> | undefined;
437
+ flows?: Record<string, any> | undefined;
438
+ fieldMappings?: Record<string, any> | undefined;
439
+ dataSources?: Record<string, any> | undefined;
440
+ dataLinkTables?: Record<string, any> | undefined;
441
+ appEventTypes?: Record<string, any> | undefined;
442
+ appDataSchemas?: Record<string, any> | undefined;
443
+ }>, z.ZodObject<{
444
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
445
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
446
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ integrationKeys?: string[] | undefined;
449
+ }, {
450
+ integrationKeys?: string[] | undefined;
451
+ }>>>>;
452
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
453
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ integrationKeys?: string[] | undefined;
456
+ }, {
457
+ integrationKeys?: string[] | undefined;
458
+ }>>>>;
459
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
460
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ integrationKeys?: string[] | undefined;
463
+ }, {
464
+ integrationKeys?: string[] | undefined;
465
+ }>>>>;
466
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
467
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ integrationKeys?: string[] | undefined;
470
+ }, {
471
+ integrationKeys?: string[] | undefined;
472
+ }>>>>;
473
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
474
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
475
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ actions?: Record<string, any> | undefined;
478
+ flows?: Record<string, any> | undefined;
479
+ fieldMappings?: Record<string, any> | undefined;
480
+ dataSources?: Record<string, any> | undefined;
481
+ dataLinkTables?: Record<string, any> | undefined;
482
+ appEventTypes?: Record<string, any> | undefined;
483
+ appDataSchemas?: Record<string, any> | undefined;
484
+ }, {
485
+ actions?: Record<string, any> | undefined;
486
+ flows?: Record<string, any> | undefined;
487
+ fieldMappings?: Record<string, any> | undefined;
488
+ dataSources?: Record<string, any> | undefined;
489
+ dataLinkTables?: Record<string, any> | undefined;
490
+ appEventTypes?: Record<string, any> | undefined;
491
+ appDataSchemas?: Record<string, any> | undefined;
492
+ }>, z.ZodObject<{
493
+ connectorId: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ connectorId: string;
496
+ }, {
497
+ connectorId: string;
498
+ }>>>>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ integrations?: Record<string, {
501
+ actions?: Record<string, any> | undefined;
502
+ flows?: Record<string, any> | undefined;
503
+ fieldMappings?: Record<string, any> | undefined;
504
+ dataSources?: Record<string, any> | undefined;
505
+ dataLinkTables?: Record<string, any> | undefined;
506
+ appEventTypes?: Record<string, any> | undefined;
507
+ appDataSchemas?: Record<string, any> | undefined;
508
+ } & {
509
+ connectorId: string;
510
+ }> | undefined;
511
+ }, {
512
+ integrations?: Record<string, {
513
+ actions?: Record<string, any> | undefined;
514
+ flows?: Record<string, any> | undefined;
515
+ fieldMappings?: Record<string, any> | undefined;
516
+ dataSources?: Record<string, any> | undefined;
517
+ dataLinkTables?: Record<string, any> | undefined;
518
+ appEventTypes?: Record<string, any> | undefined;
519
+ appDataSchemas?: Record<string, any> | undefined;
520
+ } & {
521
+ connectorId: string;
522
+ }> | undefined;
523
+ }>>>;
524
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
525
+ name: z.ZodString;
526
+ description: z.ZodString;
527
+ isComplete: z.ZodBoolean;
528
+ }, "isComplete">, "strip", z.ZodTypeAny, {
529
+ name: string;
530
+ description: string;
531
+ }, {
532
+ name: string;
533
+ description: string;
534
+ }>, "many">>;
535
+ connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
536
+ id: z.ZodString;
537
+ key: z.ZodString;
538
+ name: z.ZodString;
539
+ logoUri: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ key: string;
542
+ id: string;
543
+ name: string;
544
+ logoUri: string;
545
+ }, {
546
+ key: string;
547
+ id: string;
548
+ name: string;
549
+ logoUri: string;
550
+ }>, "many">>;
551
+ handyElements: z.ZodOptional<z.ZodArray<z.ZodObject<{
552
+ type: z.ZodString;
553
+ integration: z.ZodOptional<z.ZodObject<{
554
+ key: z.ZodString;
555
+ connectorId: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ key: string;
558
+ connectorId: string;
559
+ }, {
560
+ key: string;
561
+ connectorId: string;
562
+ }>>;
563
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
564
+ key: z.ZodString;
565
+ connectorId: z.ZodString;
566
+ }, "strip", z.ZodTypeAny, {
567
+ key: string;
568
+ connectorId: string;
569
+ }, {
570
+ key: string;
571
+ connectorId: string;
572
+ }>, "many">>;
573
+ fields: z.ZodIntersection<z.ZodObject<{
574
+ key: z.ZodString;
575
+ name: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ key: string;
578
+ name: string;
579
+ }, {
580
+ key: string;
581
+ name: string;
582
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ type: string;
585
+ fields: {
586
+ key: string;
587
+ name: string;
588
+ } & Record<string, any>;
589
+ integration?: {
590
+ key: string;
591
+ connectorId: string;
592
+ } | undefined;
593
+ integrations?: {
594
+ key: string;
595
+ connectorId: string;
596
+ }[] | undefined;
597
+ }, {
598
+ type: string;
599
+ fields: {
600
+ key: string;
601
+ name: string;
602
+ } & Record<string, any>;
603
+ integration?: {
604
+ key: string;
605
+ connectorId: string;
606
+ } | undefined;
607
+ integrations?: {
608
+ key: string;
609
+ connectorId: string;
610
+ }[] | undefined;
611
+ }>, "many">>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ key: string;
614
+ id: string;
615
+ name: string;
616
+ description?: string | undefined;
617
+ elements?: ({
618
+ actions?: Record<string, any> | undefined;
619
+ flows?: Record<string, any> | undefined;
620
+ fieldMappings?: Record<string, any> | undefined;
621
+ dataSources?: Record<string, any> | undefined;
622
+ dataLinkTables?: Record<string, any> | undefined;
623
+ appEventTypes?: Record<string, any> | undefined;
624
+ appDataSchemas?: Record<string, any> | undefined;
625
+ } & {
626
+ integrations?: Record<string, {
627
+ actions?: Record<string, any> | undefined;
628
+ flows?: Record<string, any> | undefined;
629
+ fieldMappings?: Record<string, any> | undefined;
630
+ dataSources?: Record<string, any> | undefined;
631
+ dataLinkTables?: Record<string, any> | undefined;
632
+ appEventTypes?: Record<string, any> | undefined;
633
+ appDataSchemas?: Record<string, any> | undefined;
634
+ } & {
635
+ connectorId: string;
636
+ }> | undefined;
637
+ }) | undefined;
638
+ connectors?: {
639
+ key: string;
640
+ id: string;
641
+ name: string;
642
+ logoUri: string;
643
+ }[] | undefined;
644
+ todos?: {
645
+ name: string;
646
+ description: string;
647
+ }[] | undefined;
648
+ shortDescription?: string | undefined;
649
+ demoWorkspaceKey?: string | undefined;
650
+ demoAppUri?: string | undefined;
651
+ demoGithubRepo?: string | undefined;
652
+ demoVideoYoutubeUri?: string | undefined;
653
+ tags?: ScenarioTemplateCategory[] | undefined;
654
+ handyElements?: {
655
+ type: string;
656
+ fields: {
657
+ key: string;
658
+ name: string;
659
+ } & Record<string, any>;
660
+ integration?: {
661
+ key: string;
662
+ connectorId: string;
663
+ } | undefined;
664
+ integrations?: {
665
+ key: string;
666
+ connectorId: string;
667
+ }[] | undefined;
668
+ }[] | undefined;
669
+ }, {
670
+ key: string;
671
+ id: string;
672
+ name: string;
673
+ description?: string | undefined;
674
+ elements?: ({
675
+ actions?: Record<string, any> | undefined;
676
+ flows?: Record<string, any> | undefined;
677
+ fieldMappings?: Record<string, any> | undefined;
678
+ dataSources?: Record<string, any> | undefined;
679
+ dataLinkTables?: Record<string, any> | undefined;
680
+ appEventTypes?: Record<string, any> | undefined;
681
+ appDataSchemas?: Record<string, any> | undefined;
682
+ } & {
683
+ integrations?: Record<string, {
684
+ actions?: Record<string, any> | undefined;
685
+ flows?: Record<string, any> | undefined;
686
+ fieldMappings?: Record<string, any> | undefined;
687
+ dataSources?: Record<string, any> | undefined;
688
+ dataLinkTables?: Record<string, any> | undefined;
689
+ appEventTypes?: Record<string, any> | undefined;
690
+ appDataSchemas?: Record<string, any> | undefined;
691
+ } & {
692
+ connectorId: string;
693
+ }> | undefined;
694
+ }) | undefined;
695
+ connectors?: {
696
+ key: string;
697
+ id: string;
698
+ name: string;
699
+ logoUri: string;
700
+ }[] | undefined;
701
+ todos?: {
702
+ name: string;
703
+ description: string;
704
+ }[] | undefined;
705
+ shortDescription?: string | undefined;
706
+ demoWorkspaceKey?: string | undefined;
707
+ demoAppUri?: string | undefined;
708
+ demoGithubRepo?: string | undefined;
709
+ demoVideoYoutubeUri?: string | undefined;
710
+ tags?: ScenarioTemplateCategory[] | undefined;
711
+ handyElements?: {
712
+ type: string;
713
+ fields: {
714
+ key: string;
715
+ name: string;
716
+ } & Record<string, any>;
717
+ integration?: {
718
+ key: string;
719
+ connectorId: string;
720
+ } | undefined;
721
+ integrations?: {
722
+ key: string;
723
+ connectorId: string;
724
+ }[] | undefined;
725
+ }[] | undefined;
726
+ }>;
727
+ export type ScenarioTemplate = z.infer<typeof ScenarioTemplate>;