twenty-sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/README.md +139 -44
  2. package/dist/HtmlTagToRemoteComponent-Bd5sgek2.js +1 -0
  3. package/dist/HtmlTagToRemoteComponent-DlsAI7JU.mjs +146 -0
  4. package/dist/RatingValues-CT-y6O0b-CsGZSJKO.mjs +402 -0
  5. package/dist/RatingValues-CT-y6O0b-D7JSZAMu.js +1 -0
  6. package/dist/cli/commands/app/app-dev.d.ts +25 -0
  7. package/dist/cli/commands/{app-generate.command.d.ts → app/app-generate.d.ts} +1 -1
  8. package/dist/cli/commands/{app-uninstall.command.d.ts → app/app-uninstall.d.ts} +1 -1
  9. package/dist/cli/commands/app-command.d.ts +2 -0
  10. package/dist/cli/commands/auth/auth-list.d.ts +4 -0
  11. package/dist/cli/commands/auth/auth-login.d.ts +8 -0
  12. package/dist/cli/commands/auth/auth-logout.d.ts +4 -0
  13. package/dist/cli/commands/auth/auth-status.d.ts +5 -0
  14. package/dist/cli/commands/auth/auth-switch.d.ts +7 -0
  15. package/dist/cli/commands/entity/entity-add.d.ts +12 -0
  16. package/dist/cli/commands/logic-function/logic-function-execute.d.ts +10 -0
  17. package/dist/cli/commands/{app-logs.command.d.ts → logic-function/logic-function-logs.d.ts} +1 -1
  18. package/dist/cli/utilities/api/api-service.d.ts +51 -0
  19. package/dist/cli/utilities/build/common/cleanup-removed-files.d.ts +1 -0
  20. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +11 -0
  21. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +37 -0
  22. package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +24 -0
  23. package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +3 -0
  24. package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +2 -0
  25. package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +4 -0
  26. package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +2 -0
  27. package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +1 -0
  28. package/dist/cli/utilities/build/common/front-component-build/utils/unwrap-define-front-component-to-direct-export.d.ts +1 -0
  29. package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +25 -0
  30. package/dist/cli/utilities/build/manifest/manifest-build.d.ts +7 -0
  31. package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +5 -0
  32. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +20 -0
  33. package/dist/cli/utilities/build/manifest/manifest-types.d.ts +4 -0
  34. package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +17 -0
  35. package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +6 -0
  36. package/dist/cli/utilities/build/manifest/manifest-watcher.d.ts +12 -0
  37. package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +2 -0
  38. package/dist/cli/{services/generate.service.d.ts → utilities/client/client-service.d.ts} +2 -2
  39. package/dist/cli/{services/config.service.d.ts → utilities/config/config-service.d.ts} +4 -0
  40. package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +42 -0
  41. package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +31 -0
  42. package/dist/cli/utilities/dev/dev-ui-state.d.ts +27 -0
  43. package/dist/cli/utilities/dev/dev-ui.d.ts +4 -0
  44. package/dist/cli/utilities/entity/entity-field-template.d.ts +11 -0
  45. package/dist/cli/utilities/entity/entity-front-component-template.d.ts +4 -0
  46. package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +4 -0
  47. package/dist/cli/{utils/get-new-object-file-content.d.ts → utilities/entity/entity-object-template.d.ts} +1 -1
  48. package/dist/cli/{utils/jsonc-parser.d.ts → utilities/file/file-jsonc.d.ts} +1 -5
  49. package/dist/cli/utilities/file/file-tarball.d.ts +16 -0
  50. package/dist/cli/utilities/file/file-uploader.d.ts +14 -0
  51. package/dist/cli/{utils/get-ts-program-and-diagnostics.d.ts → utilities/typescript/typescript-program.d.ts} +1 -1
  52. package/dist/cli.cjs +280 -179
  53. package/dist/cli.mjs +11094 -9467
  54. package/dist/front-component/host/components/FrontComponentRenderer.d.ts +8 -0
  55. package/dist/front-component/host/generated/host-component-registry.d.ts +4 -0
  56. package/dist/front-component/host/generated/host-index.d.ts +1 -0
  57. package/dist/front-component/index.d.ts +10 -0
  58. package/dist/front-component/remote/components/FrontComponentWorkerEffect.d.ts +8 -0
  59. package/dist/front-component/remote/generated/remote-components.d.ts +44 -0
  60. package/dist/front-component/remote/generated/remote-elements.d.ts +195 -0
  61. package/dist/front-component/remote/generated/remote-index.d.ts +2 -0
  62. package/dist/front-component/remote/mock/mock-front-component.d.ts +3 -0
  63. package/dist/front-component/remote/worker/createRemoteWorker.d.ts +1 -0
  64. package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
  65. package/dist/front-component/types/HostToWorkerRenderContext.d.ts +3 -0
  66. package/dist/front-component/types/PropertySchema.d.ts +4 -0
  67. package/dist/front-component/types/WorkerExports.d.ts +5 -0
  68. package/dist/front-component-constants/AllowedHtmlElements.d.ts +11 -0
  69. package/dist/front-component-constants/AllowedUiComponents.d.ts +9 -0
  70. package/dist/front-component-constants/CommonHtmlEvents.d.ts +1 -0
  71. package/dist/front-component-constants/EventToReact.d.ts +1 -0
  72. package/dist/front-component-constants/HtmlCommonProperties.d.ts +2 -0
  73. package/dist/front-component-constants/HtmlTagToRemoteComponent.d.ts +1 -0
  74. package/dist/front-component-constants/index.d.ts +8 -0
  75. package/dist/front-component-constants.cjs +1 -0
  76. package/dist/front-component-constants.mjs +77 -0
  77. package/dist/front-component.cjs +328 -0
  78. package/dist/front-component.mjs +42579 -0
  79. package/dist/index.cjs +2 -2
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.mjs +2183 -242
  82. package/dist/jsx-runtime-C9ldtZbm.mjs +10472 -0
  83. package/dist/jsx-runtime-CfccAQK_.js +54 -0
  84. package/dist/sdk/application/application-config.d.ts +2 -0
  85. package/dist/sdk/application/define-application.d.ts +3 -0
  86. package/dist/sdk/common/types/define-entity.type.d.ts +11 -0
  87. package/dist/sdk/common/utils/create-validation-result.d.ts +5 -0
  88. package/dist/{application → sdk}/fields/composite-fields.d.ts +1 -1
  89. package/dist/sdk/fields/define-field.d.ts +3 -0
  90. package/dist/sdk/fields/validate-fields.d.ts +2 -0
  91. package/dist/sdk/front-components/define-front-component.d.ts +3 -0
  92. package/dist/sdk/front-components/front-component-config.d.ts +5 -0
  93. package/dist/sdk/index.d.ts +22 -0
  94. package/dist/sdk/logic-functions/define-logic-function.d.ts +3 -0
  95. package/dist/sdk/logic-functions/logic-function-config.d.ts +6 -0
  96. package/dist/sdk/logic-functions/triggers/route-payload-type.d.ts +1 -0
  97. package/dist/sdk/objects/define-object.d.ts +3 -0
  98. package/dist/sdk/objects/standard-object-ids.d.ts +1 -0
  99. package/dist/sdk/roles/define-role.d.ts +3 -0
  100. package/dist/sdk/roles/permission-flag-type.d.ts +1 -0
  101. package/dist/types-Bg4PAegr.js +1 -0
  102. package/dist/types-DVJsIqkp.mjs +7 -0
  103. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BZ0Penru.js +1 -0
  104. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs +263 -0
  105. package/dist/vendor/twenty-shared/RatingValues-Bd_cXQ5v.js +1 -0
  106. package/dist/vendor/twenty-shared/RatingValues-CT-y6O0b.mjs +388 -0
  107. package/dist/vendor/twenty-shared/application/applicationType.d.ts +17 -4
  108. package/dist/vendor/twenty-shared/application/applicationType.d.ts.map +1 -1
  109. package/dist/vendor/twenty-shared/application/assetManifestType.d.ts +7 -0
  110. package/dist/vendor/twenty-shared/application/assetManifestType.d.ts.map +1 -0
  111. package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts +2 -0
  112. package/dist/vendor/twenty-shared/application/constants/AssetDirectory.d.ts.map +1 -0
  113. package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts +2 -0
  114. package/dist/vendor/twenty-shared/application/constants/GeneratedDirectory.d.ts.map +1 -0
  115. package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts +2 -0
  116. package/dist/vendor/twenty-shared/application/constants/OutputDirectory.d.ts.map +1 -0
  117. package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts +8 -0
  118. package/dist/vendor/twenty-shared/application/enums/syncable-entities.enum.d.ts.map +1 -0
  119. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +12 -1
  120. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
  121. package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts +10 -0
  122. package/dist/vendor/twenty-shared/application/frontComponentManifestType.d.ts.map +1 -0
  123. package/dist/vendor/twenty-shared/application/index.d.ts +11 -5
  124. package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
  125. package/dist/vendor/twenty-shared/application/{serverlessFunctionManifestType.d.ts → logicFunctionManifestType.d.ts} +9 -5
  126. package/dist/vendor/twenty-shared/application/logicFunctionManifestType.d.ts.map +1 -0
  127. package/dist/vendor/twenty-shared/application/manifestType.d.ts +20 -0
  128. package/dist/vendor/twenty-shared/application/manifestType.d.ts.map +1 -0
  129. package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts +5 -0
  130. package/dist/vendor/twenty-shared/application/objectFieldManifest.type.d.ts.map +1 -0
  131. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +2 -2
  132. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
  133. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +3 -18
  134. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
  135. package/dist/vendor/twenty-shared/application.cjs +1 -1
  136. package/dist/vendor/twenty-shared/application.mjs +8 -3
  137. package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts +2 -0
  138. package/dist/vendor/twenty-shared/constants/DocumentationBaseUrl.d.ts.map +1 -0
  139. package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts +2 -0
  140. package/dist/vendor/twenty-shared/constants/DocumentationDefaultLanguage.d.ts.map +1 -0
  141. package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts +2 -0
  142. package/dist/vendor/twenty-shared/constants/DocumentationDefaultPath.d.ts.map +1 -0
  143. package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts +165 -0
  144. package/dist/vendor/twenty-shared/constants/DocumentationPaths.d.ts.map +1 -0
  145. package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts +3 -0
  146. package/dist/vendor/twenty-shared/constants/DocumentationSupportedLanguages.d.ts.map +1 -0
  147. package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts +2 -0
  148. package/dist/vendor/twenty-shared/constants/FilesFieldMaxNumberOfValues.d.ts.map +1 -0
  149. package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts +1 -0
  150. package/dist/vendor/twenty-shared/constants/PermissionFlagType.d.ts.map +1 -1
  151. package/dist/vendor/twenty-shared/constants/index.d.ts +8 -0
  152. package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
  153. package/dist/vendor/twenty-shared/constants.cjs +1 -1
  154. package/dist/vendor/twenty-shared/constants.mjs +56 -35
  155. package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts +1 -1
  156. package/dist/vendor/twenty-shared/database-events/database-event-payload.type.d.ts.map +1 -1
  157. package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts +4 -0
  158. package/dist/vendor/twenty-shared/database-events/object-record-delete.event.d.ts.map +1 -1
  159. package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts +4 -0
  160. package/dist/vendor/twenty-shared/database-events/object-record-restore.event.d.ts.map +1 -1
  161. package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts +3 -3
  162. package/dist/vendor/twenty-shared/database-events/object-record-update.event.d.ts.map +1 -1
  163. package/dist/vendor/twenty-shared/isValidCountryCode-D-UqlXRW.js +4 -0
  164. package/dist/vendor/twenty-shared/{isValidCountryCode-E35rsxfD.mjs → isValidCountryCode-Dyji5s5r.mjs} +2351 -2320
  165. package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
  166. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +5 -4
  167. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
  168. package/dist/vendor/twenty-shared/metadata/index.d.ts +1 -1
  169. package/dist/vendor/twenty-shared/metadata/index.d.ts.map +1 -1
  170. package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts +2196 -0
  171. package/dist/vendor/twenty-shared/metadata/standard-object.constant.d.ts.map +1 -0
  172. package/dist/vendor/twenty-shared/metadata.cjs +1 -1
  173. package/dist/vendor/twenty-shared/metadata.mjs +2025 -69
  174. package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts +1 -0
  175. package/dist/vendor/twenty-shared/translations/constants/AppLocales.d.ts.map +1 -1
  176. package/dist/vendor/twenty-shared/translations/index.d.ts +1 -0
  177. package/dist/vendor/twenty-shared/translations/index.d.ts.map +1 -1
  178. package/dist/vendor/twenty-shared/translations.cjs +1 -1
  179. package/dist/vendor/twenty-shared/translations.mjs +2 -2
  180. package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts +6 -0
  181. package/dist/vendor/twenty-shared/types/ExtractSerializedRelationProperties.type.d.ts.map +1 -0
  182. package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts +44 -88
  183. package/dist/vendor/twenty-shared/types/FieldMetadataDefaultValue.d.ts.map +1 -1
  184. package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts +2 -1
  185. package/dist/vendor/twenty-shared/types/FieldMetadataOptions.d.ts.map +1 -1
  186. package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts +15 -9
  187. package/dist/vendor/twenty-shared/types/FieldMetadataSettings.d.ts.map +1 -1
  188. package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts +18 -17
  189. package/dist/vendor/twenty-shared/types/FieldMetadataType.d.ts.map +1 -1
  190. package/dist/vendor/twenty-shared/types/FileCategory.d.ts +12 -0
  191. package/dist/vendor/twenty-shared/types/FileCategory.d.ts.map +1 -0
  192. package/dist/vendor/twenty-shared/types/FileFolder.d.ts +14 -0
  193. package/dist/vendor/twenty-shared/types/FileFolder.d.ts.map +1 -0
  194. package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts +2 -0
  195. package/dist/vendor/twenty-shared/types/IsEmptyObject.type.d.ts.map +1 -0
  196. package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts +1 -1
  197. package/dist/vendor/twenty-shared/types/IsEmptyRecord.type.d.ts.map +1 -1
  198. package/dist/vendor/twenty-shared/types/IsNever.type.d.ts +2 -0
  199. package/dist/vendor/twenty-shared/types/IsNever.type.d.ts.map +1 -0
  200. package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts +4 -0
  201. package/dist/vendor/twenty-shared/types/IsSerializedRelation.type.d.ts.map +1 -0
  202. package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts +28 -0
  203. package/dist/vendor/twenty-shared/types/LogicFunctionEvent.d.ts.map +1 -0
  204. package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts +4 -0
  205. package/dist/vendor/twenty-shared/types/ObjectPermissions.d.ts.map +1 -1
  206. package/dist/vendor/twenty-shared/types/OrderBy.d.ts +2 -0
  207. package/dist/vendor/twenty-shared/types/OrderBy.d.ts.map +1 -0
  208. package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts +2 -0
  209. package/dist/vendor/twenty-shared/types/QueryCursorDirection.d.ts.map +1 -0
  210. package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts +2 -0
  211. package/dist/vendor/twenty-shared/types/RecordGqlFieldsDeprecated.d.ts.map +1 -0
  212. package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts +4 -0
  213. package/dist/vendor/twenty-shared/types/RecordGqlOperationGqlRecordFields.d.ts.map +1 -0
  214. package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts +10 -0
  215. package/dist/vendor/twenty-shared/types/RecordGqlOperationOrderBy.d.ts.map +1 -0
  216. package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts +9 -0
  217. package/dist/vendor/twenty-shared/types/RecordGqlOperationSignature.d.ts.map +1 -0
  218. package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts +14 -0
  219. package/dist/vendor/twenty-shared/types/RecordGqlOperationVariables.d.ts.map +1 -0
  220. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts +15 -0
  221. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicate.d.ts.map +1 -0
  222. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts +11 -0
  223. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroup.d.ts.map +1 -0
  224. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts +5 -0
  225. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateGroupLogicalOperator.d.ts.map +1 -0
  226. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts +19 -0
  227. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateOperand.d.ts.map +1 -0
  228. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts +6 -0
  229. package/dist/vendor/twenty-shared/types/RowLevelPermissionPredicateValue.d.ts.map +1 -0
  230. package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts +5 -0
  231. package/dist/vendor/twenty-shared/types/SerializedRelation.type.d.ts.map +1 -0
  232. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +5 -4
  233. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
  234. package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts +2 -0
  235. package/dist/vendor/twenty-shared/types/__tests__/extract-serialized-relation-properties.type-test.d.ts.map +1 -0
  236. package/dist/vendor/twenty-shared/types/index.d.ts +29 -4
  237. package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
  238. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts +6 -0
  239. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutTabLayoutMode.d.ts.map +1 -0
  240. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts +2 -0
  241. package/dist/vendor/twenty-shared/types/page-layout/PageLayoutWidgetConditionalDisplay.d.ts.map +1 -0
  242. package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts +18 -0
  243. package/dist/vendor/twenty-shared/types/page-layout/page-layout-widget-position.type.d.ts.map +1 -0
  244. package/dist/vendor/twenty-shared/types.cjs +1 -1
  245. package/dist/vendor/twenty-shared/types.mjs +85 -76
  246. package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts +2 -0
  247. package/dist/vendor/twenty-shared/utils/array/compareArraysOfObjectsByProperty.d.ts.map +1 -0
  248. package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts +6 -0
  249. package/dist/vendor/twenty-shared/utils/files/extractFolderPathFilenameAndTypeOrThrow.util.d.ts.map +1 -0
  250. package/dist/vendor/twenty-shared/utils/filter/index.d.ts +13 -0
  251. package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
  252. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts +7 -0
  253. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingArrayFilter.d.ts.map +1 -0
  254. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts +7 -0
  255. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingBooleanFilter.d.ts.map +1 -0
  256. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts +10 -0
  257. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingCurrencyFilter.d.ts.map +1 -0
  258. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts +7 -0
  259. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingDateFilter.d.ts.map +1 -0
  260. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts +7 -0
  261. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFloatFilter.d.ts.map +1 -0
  262. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts +7 -0
  263. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingMultiSelectFilter.d.ts.map +1 -0
  264. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts +7 -0
  265. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRatingFilter.d.ts.map +1 -0
  266. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts +7 -0
  267. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRawJsonFilter.d.ts.map +1 -0
  268. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts +7 -0
  269. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingRichTextV2Filter.d.ts.map +1 -0
  270. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts +7 -0
  271. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingSelectFilter.d.ts.map +1 -0
  272. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts +7 -0
  273. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingStringFilter.d.ts.map +1 -0
  274. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts +7 -0
  275. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingTSVectorFilter.d.ts.map +1 -0
  276. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts +7 -0
  277. package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingUUIDFilter.d.ts.map +1 -0
  278. package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts +2 -0
  279. package/dist/vendor/twenty-shared/utils/format/formatToShortNumber.d.ts.map +1 -0
  280. package/dist/vendor/twenty-shared/utils/index.d.ts +19 -0
  281. package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
  282. package/dist/vendor/twenty-shared/utils/strings/index.d.ts +1 -0
  283. package/dist/vendor/twenty-shared/utils/strings/index.d.ts.map +1 -1
  284. package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts +2 -0
  285. package/dist/vendor/twenty-shared/utils/strings/pascalCase.d.ts.map +1 -0
  286. package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts +2 -0
  287. package/dist/vendor/twenty-shared/utils/strings/stringifySafely.d.ts.map +1 -0
  288. package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts +2 -0
  289. package/dist/vendor/twenty-shared/utils/typeguard/isPlainObject.d.ts.map +1 -0
  290. package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts +2 -2
  291. package/dist/vendor/twenty-shared/utils/validation/isValidLocale.d.ts.map +1 -1
  292. package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts +2 -5
  293. package/dist/vendor/twenty-shared/utils/validation/normalizeLocale.d.ts.map +1 -1
  294. package/dist/vendor/twenty-shared/utils.cjs +2 -2
  295. package/dist/vendor/twenty-shared/utils.mjs +994 -522
  296. package/dist/vendor/twenty-shared/workflow/index.d.ts +4 -0
  297. package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
  298. package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts +2 -3
  299. package/dist/vendor/twenty-shared/workflow/schemas/code-action-schema.d.ts.map +1 -1
  300. package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts +2 -3
  301. package/dist/vendor/twenty-shared/workflow/schemas/code-action-settings-schema.d.ts.map +1 -1
  302. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts +29 -0
  303. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-schema.d.ts.map +1 -0
  304. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts +18 -0
  305. package/dist/vendor/twenty-shared/workflow/schemas/logic-function-action-settings-schema.d.ts.map +1 -0
  306. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts +5 -1
  307. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-schema.d.ts.map +1 -1
  308. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts +5 -1
  309. package/dist/vendor/twenty-shared/workflow/schemas/send-email-action-settings-schema.d.ts.map +1 -1
  310. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +32 -4
  311. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
  312. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +32 -4
  313. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
  314. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +32 -4
  315. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
  316. package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts +6 -0
  317. package/dist/vendor/twenty-shared/workflow/types/EmailRecipients.d.ts.map +1 -0
  318. package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts +12 -0
  319. package/dist/vendor/twenty-shared/workflow/utils/variable-path.util.d.ts.map +1 -0
  320. package/dist/vendor/twenty-shared/workflow.cjs +3 -3
  321. package/dist/vendor/twenty-shared/workflow.mjs +205 -166
  322. package/package.json +39 -15
  323. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +0 -3151
  324. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +0 -20
  325. package/dist/application/application-config.d.ts +0 -2
  326. package/dist/application/define-app.d.ts +0 -18
  327. package/dist/application/fields/field.decorator.d.ts +0 -3
  328. package/dist/application/fields/relation.decorator.d.ts +0 -28
  329. package/dist/application/functions/define-function.d.ts +0 -28
  330. package/dist/application/functions/function-config.d.ts +0 -9
  331. package/dist/application/index.d.ts +0 -19
  332. package/dist/application/objects/define-object.d.ts +0 -35
  333. package/dist/application/objects/object.decorator.d.ts +0 -4
  334. package/dist/application/objects/standard-object-ids.d.ts +0 -1
  335. package/dist/application/permission-flag-type.d.ts +0 -1
  336. package/dist/application/role-config.d.ts +0 -2
  337. package/dist/application/roles/define-role.d.ts +0 -26
  338. package/dist/cli/commands/app-add.command.d.ts +0 -13
  339. package/dist/cli/commands/app-dev.command.d.ts +0 -11
  340. package/dist/cli/commands/app-sync.command.d.ts +0 -7
  341. package/dist/cli/commands/app.command.d.ts +0 -10
  342. package/dist/cli/commands/auth.command.d.ts +0 -9
  343. package/dist/cli/services/api.service.d.ts +0 -20
  344. package/dist/cli/utils/config-loader.d.ts +0 -43
  345. package/dist/cli/utils/display-entity-summary.d.ts +0 -2
  346. package/dist/cli/utils/display-errors.d.ts +0 -2
  347. package/dist/cli/utils/display-warnings.d.ts +0 -2
  348. package/dist/cli/utils/get-function-base-file.d.ts +0 -4
  349. package/dist/cli/utils/load-env-variables.d.ts +0 -2
  350. package/dist/cli/utils/load-manifest.d.ts +0 -41
  351. package/dist/cli/utils/validate-manifest.d.ts +0 -22
  352. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +0 -1
  353. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-CtpRADP1.mjs +0 -500
  354. package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +0 -1
  355. package/dist/vendor/twenty-shared/RatingValues-DNSj7xKA.mjs +0 -224
  356. package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts +0 -12
  357. package/dist/vendor/twenty-shared/application/applicationManifestType.d.ts.map +0 -1
  358. package/dist/vendor/twenty-shared/application/packageJsonType.d.ts +0 -14
  359. package/dist/vendor/twenty-shared/application/packageJsonType.d.ts.map +0 -1
  360. package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +0 -1
  361. package/dist/vendor/twenty-shared/isValidCountryCode-WBKj_GIR.js +0 -4
  362. package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts +0 -51
  363. package/dist/vendor/twenty-shared/metadata/standard-object-ids.d.ts.map +0 -1
  364. /package/dist/cli/{types/api-response.types.d.ts → utilities/api/api-response-type.d.ts} +0 -0
  365. /package/dist/cli/{constants → utilities/config}/current-execution-directory.d.ts +0 -0
  366. /package/dist/cli/{utils/convert-to-label.d.ts → utilities/entity/entity-label.d.ts} +0 -0
  367. /package/dist/cli/{utils/get-role-base-file.d.ts → utilities/entity/entity-role-template.d.ts} +0 -0
  368. /package/dist/cli/{utils/find-path-file.d.ts → utilities/file/file-find.d.ts} +0 -0
  369. /package/dist/cli/{utils/format-path.d.ts → utilities/file/file-path.d.ts} +0 -0
  370. /package/dist/cli/{utils/format-and-warn-ts-diagnostics.d.ts → utilities/typescript/typescript-diagnostics.d.ts} +0 -0
  371. /package/dist/{application → sdk/common/types}/syncable-entity-options.type.d.ts +0 -0
  372. /package/dist/{application → sdk}/fields/field-type.d.ts +0 -0
  373. /package/dist/{application → sdk}/fields/on-delete-action.d.ts +0 -0
  374. /package/dist/{application → sdk}/fields/relation-type.d.ts +0 -0
  375. /package/dist/{application/functions → sdk/logic-functions}/triggers/cron-payload-type.d.ts +0 -0
  376. /package/dist/{application/functions → sdk/logic-functions}/triggers/database-event-payload-type.d.ts +0 -0
@@ -1,21 +1,22 @@
1
1
  import { z as e } from "zod";
2
- import { S } from "./StepFilters-Cml3Z3gd.mjs";
3
- import { F as c } from "./ObjectRecordGroupByDateGranularity-CtpRADP1.mjs";
2
+ import { S as w } from "./StepFilters-Cml3Z3gd.mjs";
3
+ import { F as l } from "./ObjectRecordGroupByDateGranularity-DmLx4uDl.mjs";
4
4
  import "class-validator";
5
5
  import { V as y, a as E } from "./ViewFilterOperandDeprecated-DHNmFtYo.mjs";
6
- import { i as j, a as l } from "./isValidCountryCode-E35rsxfD.mjs";
6
+ import { i as j, a as d } from "./isValidCountryCode-Dyji5s5r.mjs";
7
7
  import { isObject as A } from "@sniptt/guards";
8
8
  import "handlebars";
9
- import "./RatingValues-DNSj7xKA.mjs";
9
+ import "lodash.camelcase";
10
+ import "./RatingValues-CT-y6O0b.mjs";
10
11
  import "qs";
11
12
  import "react-router-dom";
12
- const O = /{{([^{}]+)}}/g, Ie = {
13
+ const O = /{{([^{}]+)}}/g, Ce = {
13
14
  rawJson: "application/json",
14
15
  formData: "multipart/form-data",
15
16
  keyValue: "application/x-www-form-urlencoded",
16
17
  text: "text/plain",
17
18
  none: ""
18
- }, xe = {
19
+ }, Le = {
19
20
  IF: {
20
21
  x: -200,
21
22
  y: 120
@@ -24,7 +25,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
24
25
  x: 200,
25
26
  y: 120
26
27
  }
27
- }, De = "trigger", i = e.object({
28
+ }, Pe = "trigger", a = e.object({
28
29
  input: e.looseObject({}).describe(
29
30
  "Input data for the workflow action. Structure depends on the action type."
30
31
  ),
@@ -39,12 +40,12 @@ const O = /{{([^{}]+)}}/g, Ie = {
39
40
  value: e.boolean().describe("Whether to continue to the next step if this action fails.")
40
41
  })
41
42
  })
42
- }), T = i.extend({
43
+ }), T = a.extend({
43
44
  input: e.object({
44
45
  agentId: e.string().optional(),
45
46
  prompt: e.string().optional()
46
47
  })
47
- }), a = e.object({
48
+ }), s = e.object({
48
49
  id: e.string().describe(
49
50
  "Unique identifier for the workflow step. Must be unique within the workflow."
50
51
  ),
@@ -58,10 +59,10 @@ const O = /{{([^{}]+)}}/g, Ie = {
58
59
  "Array of step IDs that this step connects to. Leave empty or null for the final step."
59
60
  ),
60
61
  position: e.object({ x: e.number(), y: e.number() }).optional().nullable().describe("Position coordinates for the step in the workflow diagram.")
61
- }), R = a.extend({
62
+ }), k = s.extend({
62
63
  type: e.literal("AI_AGENT"),
63
64
  settings: T
64
- }), d = e.object({
65
+ }), p = e.object({
65
66
  name: e.string().optional().describe(
66
67
  "Human-readable name for the trigger. Optional but recommended for clarity."
67
68
  ),
@@ -74,33 +75,32 @@ const O = /{{([^{}]+)}}/g, Ie = {
74
75
  nextStepIds: e.array(e.string()).optional().nullable().describe(
75
76
  "Array of step IDs that the trigger connects to. These are the first steps in the workflow."
76
77
  )
77
- }), k = i.extend({
78
+ }), R = a.extend({
78
79
  input: e.object({
79
- serverlessFunctionId: e.string(),
80
- serverlessFunctionVersion: e.string(),
81
- serverlessFunctionInput: e.record(e.string(), e.any())
80
+ logicFunctionId: e.string(),
81
+ logicFunctionInput: e.record(e.string(), e.any())
82
82
  })
83
- }), N = a.extend({
83
+ }), I = s.extend({
84
84
  type: e.literal("CODE"),
85
- settings: k
86
- }), u = e.record(e.string(), e.any()).describe(
85
+ settings: R
86
+ }), m = e.record(e.string(), e.any()).describe(
87
87
  `Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
88
88
  - Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.object.id}}"}}
89
89
  - Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
90
90
  - Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`
91
- ), I = i.extend({
91
+ ), N = a.extend({
92
92
  input: e.object({
93
93
  objectName: e.string().describe(
94
94
  'The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").'
95
95
  ),
96
- objectRecord: u.describe("The record data to create.")
96
+ objectRecord: m.describe("The record data to create.")
97
97
  })
98
- }), x = a.extend(
98
+ }), x = s.extend(
99
99
  {
100
100
  type: e.literal("CREATE_RECORD"),
101
- settings: I
101
+ settings: N
102
102
  }
103
- ), D = d.extend({
103
+ ), D = p.extend({
104
104
  type: e.literal("CRON"),
105
105
  settings: e.discriminatedUnion("type", [
106
106
  e.object({
@@ -131,7 +131,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
131
131
  outputSchema: e.looseObject({})
132
132
  })
133
133
  ])
134
- }), F = d.extend({
134
+ }), F = p.extend({
135
135
  type: e.literal("DATABASE_EVENT"),
136
136
  settings: e.object({
137
137
  eventName: e.string().regex(
@@ -149,27 +149,27 @@ const O = /{{([^{}]+)}}/g, Ie = {
149
149
  })
150
150
  }).describe(
151
151
  "Database event trigger that fires when a record is created, updated, deleted, or upserted. The triggered record is accessible in workflow steps via {{trigger.object.fieldName}}."
152
- ), U = i.extend({
152
+ ), U = a.extend({
153
153
  input: e.object({
154
154
  objectName: e.string(),
155
155
  objectRecordId: e.string()
156
156
  })
157
- }), _ = a.extend(
157
+ }), _ = s.extend(
158
158
  {
159
159
  type: e.literal("DELETE_RECORD"),
160
160
  settings: U
161
161
  }
162
- ), C = i.extend({
162
+ ), C = a.extend({
163
163
  input: e.object({})
164
- }), L = a.extend({
164
+ }), L = s.extend({
165
165
  type: e.literal("EMPTY"),
166
166
  settings: C
167
- }), m = e.object({
167
+ }), g = e.object({
168
168
  id: e.string(),
169
- logicalOperator: e.enum(S),
169
+ logicalOperator: e.enum(w),
170
170
  parentStepFilterGroupId: e.string().optional(),
171
171
  positionInStepFilterGroup: e.number().optional()
172
- }), g = e.object({
172
+ }), b = e.object({
173
173
  id: e.string(),
174
174
  type: e.string(),
175
175
  stepOutputKey: e.string(),
@@ -179,15 +179,15 @@ const O = /{{([^{}]+)}}/g, Ie = {
179
179
  positionInStepFilterGroup: e.number().optional(),
180
180
  fieldMetadataId: e.string().optional(),
181
181
  compositeFieldSubFieldName: e.string().optional()
182
- }), P = i.extend({
182
+ }), P = a.extend({
183
183
  input: e.object({
184
- stepFilterGroups: e.array(m),
185
- stepFilters: e.array(g)
184
+ stepFilterGroups: e.array(g),
185
+ stepFilters: e.array(b)
186
186
  })
187
- }), G = a.extend({
187
+ }), G = s.extend({
188
188
  type: e.literal("FILTER"),
189
189
  settings: P
190
- }), v = i.extend({
190
+ }), M = a.extend({
191
191
  input: e.object({
192
192
  objectName: e.string(),
193
193
  limit: e.number().optional(),
@@ -201,20 +201,20 @@ const O = /{{([^{}]+)}}/g, Ie = {
201
201
  gqlOperationOrderBy: e.array(e.record(e.string(), e.any())).optional()
202
202
  }).optional()
203
203
  })
204
- }), M = a.extend({
204
+ }), B = s.extend({
205
205
  type: e.literal("FIND_RECORDS"),
206
- settings: v
207
- }), B = i.extend({
206
+ settings: M
207
+ }), v = a.extend({
208
208
  input: e.array(
209
209
  e.object({
210
210
  id: e.string(),
211
211
  name: e.string(),
212
212
  label: e.string(),
213
213
  type: e.union([
214
- e.literal(c.TEXT),
215
- e.literal(c.NUMBER),
216
- e.literal(c.DATE),
217
- e.literal(c.SELECT),
214
+ e.literal(l.TEXT),
215
+ e.literal(l.NUMBER),
216
+ e.literal(l.DATE),
217
+ e.literal(l.SELECT),
218
218
  e.literal("RECORD")
219
219
  ]),
220
220
  placeholder: e.string().optional(),
@@ -222,10 +222,10 @@ const O = /{{([^{}]+)}}/g, Ie = {
222
222
  value: e.any().optional()
223
223
  })
224
224
  )
225
- }), V = a.extend({
225
+ }), V = s.extend({
226
226
  type: e.literal("FORM"),
227
- settings: B
228
- }), W = i.extend({
227
+ settings: v
228
+ }), W = a.extend({
229
229
  input: e.object({
230
230
  url: e.string(),
231
231
  method: e.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
@@ -241,23 +241,23 @@ const O = /{{([^{}]+)}}/g, Ie = {
241
241
  ])
242
242
  ).or(e.string()).optional()
243
243
  })
244
- }), H = a.extend({
244
+ }), H = s.extend({
245
245
  type: e.literal("HTTP_REQUEST"),
246
246
  settings: W
247
247
  }), K = e.object({
248
248
  id: e.string(),
249
249
  nextStepIds: e.array(e.string()),
250
250
  filterGroupId: e.string().optional()
251
- }), q = i.extend({
251
+ }), q = a.extend({
252
252
  input: e.object({
253
- stepFilterGroups: e.array(m),
254
- stepFilters: e.array(g),
253
+ stepFilterGroups: e.array(g),
254
+ stepFilters: e.array(b),
255
255
  branches: e.array(K)
256
256
  })
257
- }), J = a.extend({
257
+ }), J = s.extend({
258
258
  type: e.literal("IF_ELSE"),
259
259
  settings: q
260
- }), Y = i.extend({
260
+ }), Y = a.extend({
261
261
  input: e.object({
262
262
  items: e.union([
263
263
  e.array(
@@ -274,10 +274,18 @@ const O = /{{([^{}]+)}}/g, Ie = {
274
274
  ]).optional(),
275
275
  initialLoopStepIds: e.array(e.string()).optional()
276
276
  })
277
- }), z = a.extend({
277
+ }), z = s.extend({
278
278
  type: e.literal("ITERATOR"),
279
279
  settings: Y
280
- }), Q = d.extend({
280
+ }), $ = a.extend({
281
+ input: e.object({
282
+ logicFunctionId: e.string(),
283
+ logicFunctionInput: e.record(e.string(), e.any())
284
+ })
285
+ }), Q = s.extend({
286
+ type: e.literal("LOGIC_FUNCTION"),
287
+ settings: $
288
+ }), X = p.extend({
281
289
  type: e.literal("MANUAL"),
282
290
  settings: e.object({
283
291
  objectType: e.string().optional(),
@@ -303,46 +311,50 @@ const O = /{{([^{}]+)}}/g, Ie = {
303
311
  })
304
312
  }).describe(
305
313
  "Manual trigger that can be launched by the user. If a record is selected when launched, it is accessible via {{trigger.record.fieldName}}. If no record is selected, no data context is available."
306
- ), $ = e.object({
314
+ ), Z = e.object({
307
315
  id: e.string().refine((t) => j(t)),
308
316
  name: e.string(),
309
317
  size: e.number(),
310
318
  type: e.string(),
311
319
  createdAt: e.string()
312
- }), X = i.extend({
320
+ }), ee = a.extend({
313
321
  input: e.object({
314
322
  connectedAccountId: e.string(),
315
- email: e.string(),
323
+ recipients: e.object({
324
+ to: e.string().optional().default(""),
325
+ cc: e.string().optional().default(""),
326
+ bcc: e.string().optional().default("")
327
+ }),
316
328
  subject: e.string().optional(),
317
329
  body: e.string().optional(),
318
- files: e.array($).optional().default([])
330
+ files: e.array(Z).optional().default([])
319
331
  })
320
- }), Z = a.extend({
332
+ }), te = s.extend({
321
333
  type: e.literal("SEND_EMAIL"),
322
- settings: X
323
- }), ee = i.extend({
334
+ settings: ee
335
+ }), oe = a.extend({
324
336
  input: e.object({
325
337
  objectName: e.string(),
326
- objectRecord: u,
338
+ objectRecord: m,
327
339
  objectRecordId: e.string(),
328
340
  fieldsToUpdate: e.array(e.string())
329
341
  })
330
- }), te = a.extend(
342
+ }), ne = s.extend(
331
343
  {
332
344
  type: e.literal("UPDATE_RECORD"),
333
- settings: ee
345
+ settings: oe
334
346
  }
335
- ), oe = i.extend({
347
+ ), re = a.extend({
336
348
  input: e.object({
337
349
  objectName: e.string(),
338
- objectRecord: u
350
+ objectRecord: m
339
351
  })
340
- }), re = a.extend(
352
+ }), ie = s.extend(
341
353
  {
342
354
  type: e.literal("UPSERT_RECORD"),
343
- settings: oe
355
+ settings: re
344
356
  }
345
- ), ne = d.extend({
357
+ ), ae = p.extend({
346
358
  type: e.literal("WEBHOOK"),
347
359
  settings: e.discriminatedUnion("httpMethod", [
348
360
  e.object({
@@ -357,7 +369,7 @@ const O = /{{([^{}]+)}}/g, Ie = {
357
369
  authentication: e.literal("API_KEY").nullable()
358
370
  })
359
371
  ])
360
- }), ie = i.extend({
372
+ }), se = a.extend({
361
373
  input: e.object({
362
374
  delayType: e.enum(["SCHEDULED_DATE", "DURATION"]),
363
375
  scheduledDateTime: e.string().nullable().optional(),
@@ -368,56 +380,57 @@ const O = /{{([^{}]+)}}/g, Ie = {
368
380
  seconds: e.union([e.number().min(0), e.string()]).optional()
369
381
  }).optional()
370
382
  })
371
- }), ae = a.extend({
383
+ }), ce = s.extend({
372
384
  type: e.literal("DELAY"),
373
- settings: ie
374
- }), se = e.discriminatedUnion("type", [
375
- N,
376
- Z,
377
- x,
385
+ settings: se
386
+ }), le = e.discriminatedUnion("type", [
387
+ I,
388
+ Q,
378
389
  te,
390
+ x,
391
+ ne,
379
392
  _,
380
- re,
381
- M,
393
+ ie,
394
+ B,
382
395
  V,
383
396
  H,
384
- R,
397
+ k,
385
398
  G,
386
399
  J,
387
400
  z,
388
- ae,
401
+ ce,
389
402
  L
390
403
  ]);
391
- var b = /* @__PURE__ */ ((t) => (t.NOT_STARTED = "NOT_STARTED", t.RUNNING = "RUNNING", t.SUCCESS = "SUCCESS", t.STOPPED = "STOPPED", t.FAILED = "FAILED", t.PENDING = "PENDING", t.SKIPPED = "SKIPPED", t))(b || {});
392
- const ce = e.enum(b), f = e.object({
404
+ var f = /* @__PURE__ */ ((t) => (t.NOT_STARTED = "NOT_STARTED", t.RUNNING = "RUNNING", t.SUCCESS = "SUCCESS", t.STOPPED = "STOPPED", t.FAILED = "FAILED", t.PENDING = "PENDING", t.SKIPPED = "SKIPPED", t))(f || {});
405
+ const de = e.enum(f), h = e.object({
393
406
  result: e.any().optional(),
394
407
  error: e.any().optional(),
395
- status: ce,
408
+ status: de,
396
409
  get history() {
397
410
  return e.array(
398
- f.pick({
411
+ h.pick({
399
412
  result: !0,
400
413
  status: !0,
401
414
  error: !0
402
415
  })
403
416
  ).optional();
404
417
  }
405
- }), le = e.record(
418
+ }), pe = e.record(
406
419
  e.string(),
407
- f
408
- ), de = e.discriminatedUnion("type", [
420
+ h
421
+ ), ue = e.discriminatedUnion("type", [
409
422
  F,
410
- Q,
423
+ X,
411
424
  D,
412
- ne
413
- ]), pe = e.object({
425
+ ae
426
+ ]), me = e.object({
414
427
  flow: e.object({
415
- trigger: de,
416
- steps: e.array(se)
428
+ trigger: ue,
429
+ steps: e.array(le)
417
430
  }),
418
- stepInfos: le,
431
+ stepInfos: pe,
419
432
  workflowRunError: e.any().optional()
420
- }), ue = e.enum([
433
+ }), ge = e.enum([
421
434
  "NOT_STARTED",
422
435
  "RUNNING",
423
436
  "COMPLETED",
@@ -425,18 +438,18 @@ const ce = e.enum(b), f = e.object({
425
438
  "ENQUEUED",
426
439
  "STOPPING",
427
440
  "STOPPED"
428
- ]), Fe = e.looseObject({
441
+ ]), Ge = e.looseObject({
429
442
  __typename: e.literal("WorkflowRun"),
430
443
  id: e.string(),
431
444
  workflowVersionId: e.string(),
432
445
  workflowId: e.string(),
433
- state: pe.nullable(),
434
- status: ue,
446
+ state: me.nullable(),
447
+ status: ge,
435
448
  createdAt: e.string(),
436
449
  deletedAt: e.string().nullable(),
437
450
  endedAt: e.string().nullable(),
438
451
  name: e.string()
439
- }), Ue = ({
452
+ }), Me = ({
440
453
  nameSingular: t,
441
454
  isSystem: o
442
455
  }) => ![
@@ -444,20 +457,20 @@ const ce = e.enum(b), f = e.object({
444
457
  "workflowVersion",
445
458
  "workflowRun",
446
459
  "dashboard"
447
- ].includes(t) && !o, _e = ({
460
+ ].includes(t) && !o, Be = ({
448
461
  rawVariableName: t,
449
462
  part: o
450
463
  }) => {
451
464
  const r = t.replace(
452
465
  O,
453
- (h, w) => w
454
- ).split("."), s = o === "stepId" ? r[0] : o === "selectedField" ? r[r.length - 1] : null;
455
- if (!l(s))
466
+ (c, S) => S
467
+ ).split("."), i = o === "stepId" ? r[0] : o === "selectedField" ? r[r.length - 1] : null;
468
+ if (!d(i))
456
469
  throw new Error("Expected to find at least one splitted chunk.");
457
- return s;
458
- }, Ce = (t) => Object.fromEntries(
459
- Object.entries(t).filter(([, o]) => l(o?.result)).map(([o, n]) => [o, n?.result])
460
- ), Le = (t) => t === "true" ? !0 : t === "false" ? !1 : t, me = (t) => {
470
+ return i;
471
+ }, ve = (t) => Object.fromEntries(
472
+ Object.entries(t).filter(([, o]) => d(o?.result)).map(([o, n]) => [o, n?.result])
473
+ ), Ve = (t) => t === "true" ? !0 : t === "false" ? !1 : t, be = (t) => {
461
474
  let o = t;
462
475
  if (typeof t == "string")
463
476
  try {
@@ -466,13 +479,13 @@ const ce = e.enum(b), f = e.object({
466
479
  o = t;
467
480
  }
468
481
  return new URLSearchParams(o).toString();
469
- }, ge = (t) => {
482
+ }, fe = (t) => {
470
483
  const o = new FormData();
471
484
  if (typeof t == "string")
472
485
  try {
473
486
  const n = JSON.parse(t);
474
487
  Object.entries(n).forEach(
475
- ([r, s]) => o.append(r, String(s))
488
+ ([r, i]) => o.append(r, String(i))
476
489
  );
477
490
  } catch {
478
491
  throw new Error("String data for FormData must be valid JSON");
@@ -480,112 +493,138 @@ const ce = e.enum(b), f = e.object({
480
493
  else
481
494
  Object.entries(t).forEach(([n, r]) => o.append(n, r));
482
495
  return o;
483
- }, p = (t) => typeof t == "string" ? t : JSON.stringify(t), be = (t) => typeof t == "string" ? t : Object.entries(t).map(([o, n]) => `${o}=${n}`).join(`
484
- `), Pe = (t, o) => {
496
+ }, u = (t) => typeof t == "string" ? t : JSON.stringify(t), he = (t) => typeof t == "string" ? t : Object.entries(t).map(([o, n]) => `${o}=${n}`).join(`
497
+ `), We = (t, o) => {
485
498
  if (o === void 0)
486
- return p(t);
499
+ return u(t);
487
500
  switch (o) {
488
501
  case "application/x-www-form-urlencoded":
489
- return me(t);
502
+ return be(t);
490
503
  case "multipart/form-data":
491
- return ge(t);
504
+ return fe(t);
492
505
  case "application/json":
493
- return p(t);
506
+ return u(t);
494
507
  case "text/plain":
495
- return be(t);
508
+ return he(t);
496
509
  default:
497
- return p(t);
510
+ return u(t);
511
+ }
512
+ }, Se = /[\s[]/, we = (t) => Se.test(t), ye = (t) => we(t) ? `[${t}]` : t, He = (t) => t.map(ye).join("."), Ke = (t) => {
513
+ const o = [];
514
+ let n = "", r = !1, i = 0;
515
+ for (; i < t.length; ) {
516
+ const c = t[i];
517
+ if (c === "[" && !r) {
518
+ n.length > 0 && (o.push(n), n = ""), r = !0, i++;
519
+ continue;
520
+ }
521
+ if (c === "]" && r) {
522
+ o.push(n), n = "", r = !1, i++, i < t.length && t[i] === "." && i++;
523
+ continue;
524
+ }
525
+ if (c === "." && !r) {
526
+ n.length > 0 && (o.push(n), n = ""), i++;
527
+ continue;
528
+ }
529
+ n += c, i++;
498
530
  }
499
- }, fe = (t) => !l(t) || t === null ? "unknown" : typeof t == "string" ? "string" : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : Array.isArray(t) ? "array" : "unknown", he = (t) => t ? Object.entries(t).reduce(
531
+ return n.length > 0 && o.push(n), o;
532
+ }, Ee = (t) => !d(t) || t === null ? "unknown" : typeof t == "string" ? "string" : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : Array.isArray(t) ? "array" : "unknown", je = (t) => t ? Object.entries(t).reduce(
500
533
  (o, [n, r]) => (A(r) && !Array.isArray(r) ? o[n] = {
501
534
  isLeaf: !1,
502
535
  type: "object",
503
536
  label: n,
504
- value: he(r)
537
+ value: je(r)
505
538
  } : o[n] = {
506
539
  isLeaf: !0,
507
540
  value: r,
508
- type: fe(r),
541
+ type: Ee(r),
509
542
  label: n
510
543
  }, o),
511
544
  {}
512
- ) : {}, Ge = ({
545
+ ) : {}, qe = ({
513
546
  schema: t,
514
547
  propertyPath: o
515
548
  }) => {
516
549
  if (o.length === 0)
517
550
  return;
518
551
  let n = t, r;
519
- for (const s of o) {
520
- if (r = n[s], !l(r))
552
+ for (const i of o) {
553
+ if (r = n[i], !d(r))
521
554
  return;
522
555
  if (r.isLeaf)
523
- return s === o[o.length - 1] ? r : void 0;
556
+ return i === o[o.length - 1] ? r : void 0;
524
557
  n = r.value;
525
558
  }
526
559
  return r;
527
560
  };
528
561
  export {
529
562
  O as CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX,
530
- Ie as CONTENT_TYPE_VALUES_HTTP_REQUEST,
531
- xe as IF_ELSE_BRANCH_POSITION_OFFSETS,
532
- b as StepStatus,
533
- De as TRIGGER_STEP_ID,
534
- d as baseTriggerSchema,
535
- a as baseWorkflowActionSchema,
536
- i as baseWorkflowActionSettingsSchema,
537
- he as buildOutputSchemaFromValue,
538
- Ue as canObjectBeManagedByWorkflow,
539
- _e as extractRawVariableNamePart,
540
- Ce as getWorkflowRunContext,
541
- Ge as navigateOutputSchemaProperty,
542
- u as objectRecordSchema,
543
- Le as parseBooleanFromStringValue,
544
- Pe as parseDataFromContentType,
545
- m as stepFilterGroupSchema,
546
- g as stepFilterSchema,
563
+ Ce as CONTENT_TYPE_VALUES_HTTP_REQUEST,
564
+ Le as IF_ELSE_BRANCH_POSITION_OFFSETS,
565
+ f as StepStatus,
566
+ Pe as TRIGGER_STEP_ID,
567
+ p as baseTriggerSchema,
568
+ s as baseWorkflowActionSchema,
569
+ a as baseWorkflowActionSettingsSchema,
570
+ je as buildOutputSchemaFromValue,
571
+ Me as canObjectBeManagedByWorkflow,
572
+ ye as escapePathSegment,
573
+ Be as extractRawVariableNamePart,
574
+ ve as getWorkflowRunContext,
575
+ He as joinVariablePath,
576
+ qe as navigateOutputSchemaProperty,
577
+ we as needsEscaping,
578
+ m as objectRecordSchema,
579
+ Ve as parseBooleanFromStringValue,
580
+ We as parseDataFromContentType,
581
+ Ke as parseVariablePath,
582
+ g as stepFilterGroupSchema,
583
+ b as stepFilterSchema,
547
584
  K as stepIfElseBranchSchema,
548
- se as workflowActionSchema,
549
- R as workflowAiAgentActionSchema,
585
+ le as workflowActionSchema,
586
+ k as workflowAiAgentActionSchema,
550
587
  T as workflowAiAgentActionSettingsSchema,
551
- N as workflowCodeActionSchema,
552
- k as workflowCodeActionSettingsSchema,
588
+ I as workflowCodeActionSchema,
589
+ R as workflowCodeActionSettingsSchema,
553
590
  x as workflowCreateRecordActionSchema,
554
- I as workflowCreateRecordActionSettingsSchema,
591
+ N as workflowCreateRecordActionSettingsSchema,
555
592
  D as workflowCronTriggerSchema,
556
593
  F as workflowDatabaseEventTriggerSchema,
557
- ae as workflowDelayActionSchema,
558
- ie as workflowDelayActionSettingsSchema,
594
+ ce as workflowDelayActionSchema,
595
+ se as workflowDelayActionSettingsSchema,
559
596
  _ as workflowDeleteRecordActionSchema,
560
597
  U as workflowDeleteRecordActionSettingsSchema,
561
598
  L as workflowEmptyActionSchema,
562
599
  C as workflowEmptyActionSettingsSchema,
563
- $ as workflowFileSchema,
600
+ Z as workflowFileSchema,
564
601
  G as workflowFilterActionSchema,
565
602
  P as workflowFilterActionSettingsSchema,
566
- M as workflowFindRecordsActionSchema,
567
- v as workflowFindRecordsActionSettingsSchema,
603
+ B as workflowFindRecordsActionSchema,
604
+ M as workflowFindRecordsActionSettingsSchema,
568
605
  V as workflowFormActionSchema,
569
- B as workflowFormActionSettingsSchema,
606
+ v as workflowFormActionSettingsSchema,
570
607
  H as workflowHttpRequestActionSchema,
571
608
  W as workflowHttpRequestActionSettingsSchema,
572
609
  J as workflowIfElseActionSchema,
573
610
  q as workflowIfElseActionSettingsSchema,
574
611
  z as workflowIteratorActionSchema,
575
612
  Y as workflowIteratorActionSettingsSchema,
576
- Q as workflowManualTriggerSchema,
577
- Fe as workflowRunSchema,
578
- pe as workflowRunStateSchema,
579
- f as workflowRunStateStepInfoSchema,
580
- le as workflowRunStateStepInfosSchema,
581
- ue as workflowRunStatusSchema,
582
- ce as workflowRunStepStatusSchema,
583
- Z as workflowSendEmailActionSchema,
584
- X as workflowSendEmailActionSettingsSchema,
585
- de as workflowTriggerSchema,
586
- te as workflowUpdateRecordActionSchema,
587
- ee as workflowUpdateRecordActionSettingsSchema,
588
- re as workflowUpsertRecordActionSchema,
589
- oe as workflowUpsertRecordActionSettingsSchema,
590
- ne as workflowWebhookTriggerSchema
613
+ Q as workflowLogicFunctionActionSchema,
614
+ $ as workflowLogicFunctionActionSettingsSchema,
615
+ X as workflowManualTriggerSchema,
616
+ Ge as workflowRunSchema,
617
+ me as workflowRunStateSchema,
618
+ h as workflowRunStateStepInfoSchema,
619
+ pe as workflowRunStateStepInfosSchema,
620
+ ge as workflowRunStatusSchema,
621
+ de as workflowRunStepStatusSchema,
622
+ te as workflowSendEmailActionSchema,
623
+ ee as workflowSendEmailActionSettingsSchema,
624
+ ue as workflowTriggerSchema,
625
+ ne as workflowUpdateRecordActionSchema,
626
+ oe as workflowUpdateRecordActionSettingsSchema,
627
+ ie as workflowUpsertRecordActionSchema,
628
+ re as workflowUpsertRecordActionSettingsSchema,
629
+ ae as workflowWebhookTriggerSchema
591
630
  };