twenty 2.54.3 → 2.56.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 (147) hide show
  1. package/CONTRIBUTING.md +1 -0
  2. package/dist/app-template/example/files/AGENTS.md +1 -1
  3. package/dist/app-template/yarn.lock +102 -102
  4. package/dist/app-worker.cjs +1 -1
  5. package/dist/chunks/application-xzYK_VZV.cjs +5 -0
  6. package/dist/chunks/{build-source-manifest-BJyDykpG.cjs → build-source-manifest-CWg4z3sT.cjs} +1 -1
  7. package/dist/chunks/build-source-snapshot-CNIkoxN6.cjs +26 -0
  8. package/dist/chunks/check-node-requirement-CIDuA1s-.cjs +1 -0
  9. package/dist/chunks/{cli-version.constant-BRiLR-nG.cjs → cli-version.constant-CXTtLO6W.cjs} +1 -1
  10. package/dist/chunks/{collect-translatable-strings-BWzloBoB.cjs → collect-translatable-strings-Drwh6Av8.cjs} +1 -1
  11. package/dist/chunks/compile-application-translations-BS7FQ7zb.cjs +870 -0
  12. package/dist/chunks/constants-BVRtHFho-CGmbRR4M.cjs +55 -0
  13. package/dist/chunks/{create-http-status-error-CSxveq4d.cjs → create-http-status-error-DGznRpsu.cjs} +1 -1
  14. package/dist/chunks/create-metadata-client-CZSrLZOR.cjs +6 -0
  15. package/dist/chunks/{create-pull-base-write-BAapBdLz.cjs → create-pull-base-write-BxCvm_m8.cjs} +1 -1
  16. package/dist/chunks/{create-rest-client-eb80-tts.cjs → create-rest-client-8cQWvHwx.cjs} +1 -1
  17. package/dist/chunks/extract-manifest-from-file-CAbBympP.cjs +1 -0
  18. package/dist/chunks/{extract-source-translations-BHy14v8o.cjs → extract-source-translations-BUR0Rc6f.cjs} +1 -1
  19. package/dist/chunks/{fetch-metadata-inspection-IuAwjjQT.cjs → fetch-metadata-inspection-BBWnhrft.cjs} +1 -1
  20. package/dist/chunks/{fetch-signed-in-identity-BFxRufRI.cjs → fetch-signed-in-identity-C-qQ3udY.cjs} +1 -1
  21. package/dist/chunks/{fetch-workspace-or-throw-CgPc8IBL.cjs → fetch-workspace-or-throw-J79slzbc.cjs} +1 -1
  22. package/dist/chunks/{format-data-value-Cln0Hv7L.cjs → format-data-value-fs3RrhMv.cjs} +1 -1
  23. package/dist/chunks/{format-metadata-fields-BltFjIsO.cjs → format-metadata-fields-9yjjSDbM.cjs} +1 -1
  24. package/dist/chunks/{format-metadata-owner-DpOc_B3P.cjs → format-metadata-owner-BeV6-_Th.cjs} +1 -1
  25. package/dist/chunks/{generate-application-client-CL8nm0q9.cjs → generate-application-client-B4yPRWWv.cjs} +1 -1
  26. package/dist/chunks/{get-client-generation-skip-reason-BJFlVAos.cjs → get-client-generation-skip-reason-DTIfgD_s.cjs} +1 -1
  27. package/dist/chunks/get-engine-version-range-DZGIWoR6.cjs +1 -0
  28. package/dist/chunks/get-local-status-D52rgA2e.cjs +1 -0
  29. package/dist/chunks/{get-system-view-universal-identifier.util-C31V-2Dl-Cm-ouuA6.cjs → get-system-view-universal-identifier.util-Bq8_ovT3-CXfImcpX.cjs} +1 -1
  30. package/dist/chunks/global-flags.constant-EQCqyBC2.cjs +1 -0
  31. package/dist/chunks/has-yarn-plug-and-play-BGlTmmrM.cjs +1 -0
  32. package/dist/chunks/{is-access-token-expiring-B3WtsewG.cjs → is-access-token-expiring-DYNdux1L.cjs} +1 -1
  33. package/dist/chunks/{is-application-not-found-error-BC7jyU0p.cjs → is-application-not-found-error-AJka4bNR.cjs} +1 -1
  34. package/dist/chunks/is-exported-manifest-Bj0l5om_.cjs +1 -0
  35. package/dist/chunks/is-valid-package-name-DvFQq5au.cjs +1 -0
  36. package/dist/chunks/list-ancestor-directories-BtB2hNt6.cjs +1 -0
  37. package/dist/chunks/{locale-catalog-format-C_5EGBEn.cjs → locale-catalog-format-D2tDWYnc.cjs} +1 -1
  38. package/dist/chunks/ltr-BS5BTFWS.cjs +1 -0
  39. package/dist/chunks/max-satisfying-BNYDQrne.cjs +1 -0
  40. package/dist/chunks/metadata-BYjbOpo6.cjs +1 -0
  41. package/dist/chunks/{metadata-page.constant-7kxmFenL.cjs → metadata-page.constant-qMNOJLjJ.cjs} +1 -1
  42. package/dist/chunks/{parse-app-export-CpZxFIlO.cjs → parse-app-export-hG8ubXTU.cjs} +1 -1
  43. package/dist/chunks/parse-graphql-response-C2la3nev.cjs +1 -0
  44. package/dist/chunks/{parse-json-input-kEwLo8mG.cjs → parse-json-input-DPZY9jQQ.cjs} +1 -1
  45. package/dist/chunks/print-typescript-value-BsjFUceV.cjs +3 -0
  46. package/dist/chunks/pull-minimum-sdk-version.constant-EdauMnSl.cjs +6 -0
  47. package/dist/chunks/pull-source-DeVIgzVE.cjs +1 -0
  48. package/dist/chunks/{read-app-identity-CJZThpUC.cjs → read-app-identity-D6Cp_N-A.cjs} +1 -1
  49. package/dist/chunks/{read-application-identifier-D6YPuiA7.cjs → read-application-identifier-CR_a7oUp.cjs} +1 -1
  50. package/dist/chunks/{read-application-identity-CWSIB1Jd.cjs → read-application-identity-CbZIanaH.cjs} +1 -1
  51. package/dist/chunks/read-bounded-body-BHRu5J2Y.cjs +1 -0
  52. package/dist/chunks/{read-config-9Dv5cmvw.cjs → read-config-BwRvqqhW.cjs} +1 -1
  53. package/dist/chunks/{read-infer-deletion-option-DtCw0TsU.cjs → read-infer-deletion-option-BQJz4Jqq.cjs} +1 -1
  54. package/dist/chunks/{read-json-object-BlyNzzdk.cjs → read-json-object-BP1Q_W12.cjs} +1 -1
  55. package/dist/chunks/read-local-container-CidDipKg.cjs +1 -0
  56. package/dist/chunks/read-snapshot-file-BPLzlSH_.cjs +1 -0
  57. package/dist/chunks/{read-source-identity-BQ_YGISo.cjs → read-source-identity-CDv42KDj.cjs} +1 -1
  58. package/dist/chunks/{record-pull-base-BIlU7Fj1.cjs → record-pull-base-BiVlDaBW.cjs} +1 -1
  59. package/dist/chunks/{record-typecheck-config-inputs-BGVirGsR.cjs → record-typecheck-config-inputs-DV3LeWK2.cjs} +1 -1
  60. package/dist/chunks/{request-oauth-tokens-BkL-WsAM.cjs → request-oauth-tokens-DJatgiZE.cjs} +1 -1
  61. package/dist/chunks/resolve-app-project-DrRcP_gL.cjs +1 -0
  62. package/dist/chunks/{resolve-command-target-C4r6LuWk.cjs → resolve-command-target-Czttq45g.cjs} +1 -1
  63. package/dist/chunks/{resolve-metadata-object-C3sDavWu.cjs → resolve-metadata-object-xK90Ursp.cjs} +1 -1
  64. package/dist/chunks/resolve-project-typescript-BxIGFhr6.cjs +1 -0
  65. package/dist/chunks/resolve-request-url-I1EOOumy.cjs +1 -0
  66. package/dist/chunks/resolve-source-sdk-DQnc0tSq.cjs +1 -0
  67. package/dist/chunks/{run-api-graphql-command-D-Pu9EdU.cjs → run-api-graphql-command-CmGTtFbD.cjs} +1 -1
  68. package/dist/chunks/{run-api-rest-command-BuDANSQa.cjs → run-api-rest-command-CnYQWgNv.cjs} +1 -1
  69. package/dist/chunks/run-app-add-command-o4tAyrDF.cjs +174 -0
  70. package/dist/chunks/{run-app-apply-command-CilkY9ws.cjs → run-app-apply-command-CnVUshfx.cjs} +1 -1
  71. package/dist/chunks/{run-app-build-command-DaKa_eKF.cjs → run-app-build-command-hjBbY-k_.cjs} +1 -1
  72. package/dist/chunks/{run-app-dev-command-BnSJIUgg.cjs → run-app-dev-command-Ml0sKfeA.cjs} +1 -1
  73. package/dist/chunks/{run-app-exec-command-BPlfFt9-.cjs → run-app-exec-command-DMpczF0l.cjs} +2 -2
  74. package/dist/chunks/{run-app-generate-client-command-7t5Hs10P.cjs → run-app-generate-client-command-D6c8FnpJ.cjs} +1 -1
  75. package/dist/chunks/{run-app-init-command-DhPC_GBU.cjs → run-app-init-command-XjO6SJpP.cjs} +1 -1
  76. package/dist/chunks/{run-app-install-command-DOzp9bOL.cjs → run-app-install-command-DlXSkmZV.cjs} +1 -1
  77. package/dist/chunks/run-app-logs-command-IlwI3B9r.cjs +9 -0
  78. package/dist/chunks/{run-app-operation-BbsxjrjR.cjs → run-app-operation-kyBLbhLr.cjs} +1 -1
  79. package/dist/chunks/{run-app-plan-command-Bt3IwVec.cjs → run-app-plan-command-1we4YlYM.cjs} +1 -1
  80. package/dist/chunks/{run-app-publish-command-CoGrZA2a.cjs → run-app-publish-command-cPw8ZxuU.cjs} +1 -1
  81. package/dist/chunks/{run-app-pull-command-gUX-w9BE.cjs → run-app-pull-command-Douf4yQq.cjs} +3 -3
  82. package/dist/chunks/{run-app-translations-extract-command-LUAa7jb9.cjs → run-app-translations-extract-command-BIHvH8MO.cjs} +1 -1
  83. package/dist/chunks/{run-app-typecheck-command-CbHawvU8.cjs → run-app-typecheck-command-C3z8IIuQ.cjs} +1 -1
  84. package/dist/chunks/{run-app-uninstall-command-BK-JAeo2.cjs → run-app-uninstall-command-BjqZ4eN7.cjs} +1 -1
  85. package/dist/chunks/{run-auth-login-command-CN6Xqgpx.cjs → run-auth-login-command-7E6YFU2x.cjs} +1 -1
  86. package/dist/chunks/{run-auth-logout-command-Dw6CLfIY.cjs → run-auth-logout-command-BJj49Lps.cjs} +1 -1
  87. package/dist/chunks/{run-auth-status-command-CXRrXjvh.cjs → run-auth-status-command-CEKg6671.cjs} +1 -1
  88. package/dist/chunks/{run-cli-CsDjb96b.cjs → run-cli-yIhKkhUO.cjs} +4 -4
  89. package/dist/chunks/{run-commands-command-CLTVI96u.cjs → run-commands-command-3PU3OrJ-.cjs} +1 -1
  90. package/dist/chunks/{run-data-get-command-BD7i13MO.cjs → run-data-get-command-J8vwRqXK.cjs} +1 -1
  91. package/dist/chunks/{run-data-list-command-tcCgbeZj.cjs → run-data-list-command-B4mffvAw.cjs} +1 -1
  92. package/dist/chunks/{run-doctor-command-CDKbN2os.cjs → run-doctor-command-CGAJlZ8M.cjs} +2 -2
  93. package/dist/chunks/run-local-logs-command-DYNNZaAA.cjs +1 -0
  94. package/dist/chunks/run-local-reset-command-txQMpX4Y.cjs +2 -0
  95. package/dist/chunks/run-local-start-command-DMqvXuI8.cjs +1 -0
  96. package/dist/chunks/run-local-status-command-JakSWQH2.cjs +1 -0
  97. package/dist/chunks/run-local-stop-command-CKzb8k8I.cjs +1 -0
  98. package/dist/chunks/run-local-upgrade-command-BxhahQIt.cjs +1 -0
  99. package/dist/chunks/{run-metadata-field-describe-command-BX5_s1m0.cjs → run-metadata-field-describe-command-C8NDfCQv.cjs} +1 -1
  100. package/dist/chunks/{run-metadata-field-list-command-BVFDiJv2.cjs → run-metadata-field-list-command-Dq8JWMNS.cjs} +1 -1
  101. package/dist/chunks/{run-metadata-object-describe-command-CWYI0V42.cjs → run-metadata-object-describe-command-BeyWRTEV.cjs} +1 -1
  102. package/dist/chunks/{run-metadata-object-list-command-Y3yebZrT.cjs → run-metadata-object-list-command-CSCOKM3y.cjs} +1 -1
  103. package/dist/chunks/{run-open-command-BUEQSKSk.cjs → run-open-command-DWajZfpf.cjs} +1 -1
  104. package/dist/chunks/{run-remote-list-command-BExGjyKO.cjs → run-remote-list-command-BSOS3z6p.cjs} +1 -1
  105. package/dist/chunks/{run-remote-remove-command-D2thQnCU.cjs → run-remote-remove-command-B485SDzS.cjs} +1 -1
  106. package/dist/chunks/{run-remote-rename-command-DI0Adm5U.cjs → run-remote-rename-command-6uSnN2c_.cjs} +1 -1
  107. package/dist/chunks/{run-remote-use-command-CXnu5zDY.cjs → run-remote-use-command-DyUpoMX7.cjs} +1 -1
  108. package/dist/chunks/{run-version-command-Brk-Nbh7.cjs → run-version-command-BvTg8tp9.cjs} +1 -1
  109. package/dist/chunks/satisfies-Jm-ashRt.cjs +1 -0
  110. package/dist/chunks/{select-target-CJ2FyoVQ.cjs → select-target-g9eHGzvk.cjs} +1 -1
  111. package/dist/chunks/{sign-in-to-remote-again-CwXAgGif.cjs → sign-in-to-remote-again-m84b1K-f.cjs} +1 -1
  112. package/dist/chunks/{sign-in-with-browser-DdjoPq5d.cjs → sign-in-with-browser-PLGwMTwd.cjs} +1 -1
  113. package/dist/chunks/{to-worker-output-diagnostics-Hj6aQiK9.cjs → to-worker-output-diagnostics-BrOMgkAW.cjs} +1 -1
  114. package/dist/chunks/{typecheck-application-nkgv6qiA.cjs → typecheck-application-rMuH9bYM.cjs} +1 -1
  115. package/dist/chunks/{update-config-XYMqGokt.cjs → update-config-D0Y-TAiW.cjs} +1 -1
  116. package/dist/chunks/{utils-RCpFyoX5-DF7Gq1IH.cjs → utils-BZkF-gp5-DunD-YmD.cjs} +2 -2
  117. package/dist/chunks/{valid-DnUN-PQ0.cjs → valid-BPaM0XRk.cjs} +1 -1
  118. package/dist/chunks/wait-for-local-environment-B1bVbQGm.cjs +1 -0
  119. package/dist/chunks/{write-config-atomically-BxCEc8_P.cjs → write-config-atomically-BheBtCVO.cjs} +1 -1
  120. package/dist/cli.cjs +1 -1
  121. package/docs/commands.md +63 -0
  122. package/package.json +2 -2
  123. package/src/app/add/README.md +6 -6
  124. package/src/app/pull/README.md +1 -1
  125. package/dist/chunks/application-pYRHxplP.cjs +0 -5
  126. package/dist/chunks/build-source-snapshot-Ds_ZZGnl.cjs +0 -865
  127. package/dist/chunks/check-node-requirement-CnwHKQBp.cjs +0 -1
  128. package/dist/chunks/compile-application-translations-qdigcX2V.cjs +0 -1
  129. package/dist/chunks/constants-Cbb71hpl-CrSqydxj.cjs +0 -55
  130. package/dist/chunks/create-metadata-client-CJRFQ20Z.cjs +0 -6
  131. package/dist/chunks/extract-manifest-from-file-CEK5X5YP.cjs +0 -1
  132. package/dist/chunks/global-flags.constant-uA1jkBmk.cjs +0 -1
  133. package/dist/chunks/has-yarn-plug-and-play-X3ay5Xl0.cjs +0 -1
  134. package/dist/chunks/is-exported-manifest-D8cwSas4.cjs +0 -1
  135. package/dist/chunks/is-valid-package-name-9YIecMQm.cjs +0 -1
  136. package/dist/chunks/metadata-CY9y5wYc.cjs +0 -1
  137. package/dist/chunks/parse-graphql-response-Di8aFmnF.cjs +0 -1
  138. package/dist/chunks/print-typescript-value-ChOUZ7Mm.cjs +0 -3
  139. package/dist/chunks/pull-minimum-sdk-version.constant-JDRwzl32.cjs +0 -5
  140. package/dist/chunks/pull-source-CpAYRk5s.cjs +0 -1
  141. package/dist/chunks/read-snapshot-file-Dgc3WCDM.cjs +0 -1
  142. package/dist/chunks/resolve-app-project-DP27LYGR.cjs +0 -1
  143. package/dist/chunks/resolve-project-typescript-BOAxXiKm.cjs +0 -1
  144. package/dist/chunks/resolve-request-url-BwELN2oQ.cjs +0 -1
  145. package/dist/chunks/resolve-source-sdk-CyvER2l1.cjs +0 -1
  146. package/dist/chunks/run-app-add-command-C0b2LVQN.cjs +0 -163
  147. package/dist/chunks/run-app-logs-command-CQDO_gce.cjs +0 -9
package/CONTRIBUTING.md CHANGED
@@ -49,6 +49,7 @@ changed server workflows against a disposable workspace when appropriate.
49
49
  | `src/config`, `src/target`, `src/oauth` | Saved connections, target selection and authentication |
50
50
  | `src/transport` | HTTP/GraphQL requests, proxy routing, limits and cancellation |
51
51
  | `src/metadata`, `src/data` | Workspace metadata inspection and record reads |
52
+ | `src/local` | Local development instance lifecycle, Docker subprocesses, image selection and readiness |
52
53
  | `src/doctor` | Read-only setup and connection diagnostics |
53
54
  | `src/app` | Project tooling and application lifecycle, see its [module map](src/app/README.md) |
54
55
  | `src/input`, `src/output` | Input parsing, human/JSON/NDJSON output and error contracts |
@@ -42,7 +42,7 @@
42
42
  For front component work, follow the official `develop-app` skill when installed. Install the official skills with `npx skills add https://github.com/twentyhq/twenty/tree/agent-skills --skill '*'`. Apply these essentials even when no skills are installed:
43
43
 
44
44
  - For every visible front component, use `twenty-ui` components by default. Reuse an equivalent Twenty UI control before writing a custom control or adding another UI library. Plain HTML is appropriate for layout containers and content without a Twenty UI equivalent.
45
- - Import from public family subpaths: `twenty-ui/components/input` for `MainButton` and `LightButton`, `twenty-ui/primitives/input` for foundational controls, `twenty-ui/primitives/typography` for text, and the matching family for other components. Import individual icons from `twenty-ui/icon`, never `IconsProvider` or `useIcons`. Keep `twenty-ui`, `twenty-sdk` and `twenty-client-sdk` pinned to the same version in `devDependencies`.
45
+ - Import from public family subpaths: `twenty-ui/components/input` for `MainButton` and `LightButton`, `twenty-ui/primitives/input` for foundational controls, `twenty-ui/primitives/typography` for text, and the matching family for other components. Import individual icons from `twenty-ui/icon`, never from `twenty-ui/icon/provider`. Keep `twenty-ui`, `twenty-sdk` and `twenty-client-sdk` pinned to the same version in `devDependencies`.
46
46
  - The renderer supplies styles and the workspace theme. Use `useTheme()` from `twenty-ui/theme` inside the component for spacing, colors, typography and radii. Do not add a root `ThemeProvider`, force a color scheme, or copy standalone stylesheet setup into a front component. Never dereference theme tokens at module top level, since entity files also run during manifest extraction.
47
47
  - Use component props before custom styles. Keep layouts compact and responsive to widget width, give inputs visible labels and icon-only actions accessible names, and handle loading, empty, error, disabled and saving states. Verify light and dark themes, narrow widths and long values.
48
48
  - Use `openCommandConfirmationModal` or `CommandModal` from `twenty-sdk/front-component` for confirmation dialogs and `enqueueSnackbar` for notifications. Do not render `Dialog`, `AlertDialog`, native `dialog` elements or native browser popovers directly. Use Twenty UI `Dropdown` for menus and pickers.
@@ -6,9 +6,9 @@ __metadata:
6
6
  cacheKey: 10c0
7
7
 
8
8
  "@babel/runtime@npm:^7.29.7 || ^8.0.0":
9
- version: 8.0.8
10
- resolution: "@babel/runtime@npm:8.0.8"
11
- checksum: 10c0/059934f37971e24c5cd4505a2e0f63a039051935c0a9fcebd31fb7d0a0c05acd7915ba2f06db5197c97a31755862330232253b9a2cefa5bf37fdc9e521b4d6dc
9
+ version: 8.1.0
10
+ resolution: "@babel/runtime@npm:8.1.0"
11
+ checksum: 10c0/4531254e3a031cb392b5a363eecce35592c944c656fb7a3a7ac619cbcc05007a8ceca56e3f438aabca17a5ef0d1d18ab54957cd6c5d16a0f2d088850b10a1a83
12
12
  languageName: node
13
13
  linkType: hard
14
14
 
@@ -327,10 +327,10 @@ __metadata:
327
327
  languageName: node
328
328
  linkType: hard
329
329
 
330
- "@oxc-project/types@npm:=0.155.0":
331
- version: 0.155.0
332
- resolution: "@oxc-project/types@npm:0.155.0"
333
- checksum: 10c0/07227fb2c2e03b07453129f2407b49b165eadaa679a34dad68e0b0526420506cea223431807983413f6968053de873c13b05d3978a9a43cabb3999ca97ba2ec5
330
+ "@oxc-project/types@npm:=0.156.0":
331
+ version: 0.156.0
332
+ resolution: "@oxc-project/types@npm:0.156.0"
333
+ checksum: 10c0/7f101d33e967179c10d38708c71c8c602ad862843a788603d6b8c2accebf2fce420ca95a26d74d90bc35db36daa0a8285c3af1589c38ae20e46e47153549313f
334
334
  languageName: node
335
335
  linkType: hard
336
336
 
@@ -390,107 +390,107 @@ __metadata:
390
390
  languageName: node
391
391
  linkType: hard
392
392
 
393
- "@rolldown/binding-android-arm-eabi@npm:1.2.15":
394
- version: 1.2.15
395
- resolution: "@rolldown/binding-android-arm-eabi@npm:1.2.15"
393
+ "@rolldown/binding-android-arm-eabi@npm:1.2.16":
394
+ version: 1.2.16
395
+ resolution: "@rolldown/binding-android-arm-eabi@npm:1.2.16"
396
396
  conditions: os=android & cpu=arm
397
397
  languageName: node
398
398
  linkType: hard
399
399
 
400
- "@rolldown/binding-android-arm64@npm:1.2.15":
401
- version: 1.2.15
402
- resolution: "@rolldown/binding-android-arm64@npm:1.2.15"
400
+ "@rolldown/binding-android-arm64@npm:1.2.16":
401
+ version: 1.2.16
402
+ resolution: "@rolldown/binding-android-arm64@npm:1.2.16"
403
403
  conditions: os=android & cpu=arm64
404
404
  languageName: node
405
405
  linkType: hard
406
406
 
407
- "@rolldown/binding-darwin-arm64@npm:1.2.15":
408
- version: 1.2.15
409
- resolution: "@rolldown/binding-darwin-arm64@npm:1.2.15"
407
+ "@rolldown/binding-darwin-arm64@npm:1.2.16":
408
+ version: 1.2.16
409
+ resolution: "@rolldown/binding-darwin-arm64@npm:1.2.16"
410
410
  conditions: os=darwin & cpu=arm64
411
411
  languageName: node
412
412
  linkType: hard
413
413
 
414
- "@rolldown/binding-darwin-x64@npm:1.2.15":
415
- version: 1.2.15
416
- resolution: "@rolldown/binding-darwin-x64@npm:1.2.15"
414
+ "@rolldown/binding-darwin-x64@npm:1.2.16":
415
+ version: 1.2.16
416
+ resolution: "@rolldown/binding-darwin-x64@npm:1.2.16"
417
417
  conditions: os=darwin & cpu=x64
418
418
  languageName: node
419
419
  linkType: hard
420
420
 
421
- "@rolldown/binding-freebsd-x64@npm:1.2.15":
422
- version: 1.2.15
423
- resolution: "@rolldown/binding-freebsd-x64@npm:1.2.15"
421
+ "@rolldown/binding-freebsd-x64@npm:1.2.16":
422
+ version: 1.2.16
423
+ resolution: "@rolldown/binding-freebsd-x64@npm:1.2.16"
424
424
  conditions: os=freebsd & cpu=x64
425
425
  languageName: node
426
426
  linkType: hard
427
427
 
428
- "@rolldown/binding-linux-arm-gnueabihf@npm:1.2.15":
429
- version: 1.2.15
430
- resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.2.15"
428
+ "@rolldown/binding-linux-arm-gnueabihf@npm:1.2.16":
429
+ version: 1.2.16
430
+ resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.2.16"
431
431
  conditions: os=linux & cpu=arm
432
432
  languageName: node
433
433
  linkType: hard
434
434
 
435
- "@rolldown/binding-linux-arm64-gnu@npm:1.2.15":
436
- version: 1.2.15
437
- resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.2.15"
435
+ "@rolldown/binding-linux-arm64-gnu@npm:1.2.16":
436
+ version: 1.2.16
437
+ resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.2.16"
438
438
  conditions: os=linux & cpu=arm64 & libc=glibc
439
439
  languageName: node
440
440
  linkType: hard
441
441
 
442
- "@rolldown/binding-linux-arm64-musl@npm:1.2.15":
443
- version: 1.2.15
444
- resolution: "@rolldown/binding-linux-arm64-musl@npm:1.2.15"
442
+ "@rolldown/binding-linux-arm64-musl@npm:1.2.16":
443
+ version: 1.2.16
444
+ resolution: "@rolldown/binding-linux-arm64-musl@npm:1.2.16"
445
445
  conditions: os=linux & cpu=arm64 & libc=musl
446
446
  languageName: node
447
447
  linkType: hard
448
448
 
449
- "@rolldown/binding-linux-ppc64-gnu@npm:1.2.15":
450
- version: 1.2.15
451
- resolution: "@rolldown/binding-linux-ppc64-gnu@npm:1.2.15"
449
+ "@rolldown/binding-linux-ppc64-gnu@npm:1.2.16":
450
+ version: 1.2.16
451
+ resolution: "@rolldown/binding-linux-ppc64-gnu@npm:1.2.16"
452
452
  conditions: os=linux & cpu=ppc64 & libc=glibc
453
453
  languageName: node
454
454
  linkType: hard
455
455
 
456
- "@rolldown/binding-linux-s390x-gnu@npm:1.2.15":
457
- version: 1.2.15
458
- resolution: "@rolldown/binding-linux-s390x-gnu@npm:1.2.15"
456
+ "@rolldown/binding-linux-s390x-gnu@npm:1.2.16":
457
+ version: 1.2.16
458
+ resolution: "@rolldown/binding-linux-s390x-gnu@npm:1.2.16"
459
459
  conditions: os=linux & cpu=s390x & libc=glibc
460
460
  languageName: node
461
461
  linkType: hard
462
462
 
463
- "@rolldown/binding-linux-x64-gnu@npm:1.2.15":
464
- version: 1.2.15
465
- resolution: "@rolldown/binding-linux-x64-gnu@npm:1.2.15"
463
+ "@rolldown/binding-linux-x64-gnu@npm:1.2.16":
464
+ version: 1.2.16
465
+ resolution: "@rolldown/binding-linux-x64-gnu@npm:1.2.16"
466
466
  conditions: os=linux & cpu=x64 & libc=glibc
467
467
  languageName: node
468
468
  linkType: hard
469
469
 
470
- "@rolldown/binding-linux-x64-musl@npm:1.2.15":
471
- version: 1.2.15
472
- resolution: "@rolldown/binding-linux-x64-musl@npm:1.2.15"
470
+ "@rolldown/binding-linux-x64-musl@npm:1.2.16":
471
+ version: 1.2.16
472
+ resolution: "@rolldown/binding-linux-x64-musl@npm:1.2.16"
473
473
  conditions: os=linux & cpu=x64 & libc=musl
474
474
  languageName: node
475
475
  linkType: hard
476
476
 
477
- "@rolldown/binding-openharmony-arm64@npm:1.2.15":
478
- version: 1.2.15
479
- resolution: "@rolldown/binding-openharmony-arm64@npm:1.2.15"
477
+ "@rolldown/binding-openharmony-arm64@npm:1.2.16":
478
+ version: 1.2.16
479
+ resolution: "@rolldown/binding-openharmony-arm64@npm:1.2.16"
480
480
  conditions: os=openharmony & cpu=arm64
481
481
  languageName: node
482
482
  linkType: hard
483
483
 
484
- "@rolldown/binding-win32-arm64-msvc@npm:1.2.15":
485
- version: 1.2.15
486
- resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.2.15"
484
+ "@rolldown/binding-win32-arm64-msvc@npm:1.2.16":
485
+ version: 1.2.16
486
+ resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.2.16"
487
487
  conditions: os=win32 & cpu=arm64
488
488
  languageName: node
489
489
  linkType: hard
490
490
 
491
- "@rolldown/binding-win32-x64-msvc@npm:1.2.15":
492
- version: 1.2.15
493
- resolution: "@rolldown/binding-win32-x64-msvc@npm:1.2.15"
491
+ "@rolldown/binding-win32-x64-msvc@npm:1.2.16":
492
+ version: 1.2.16
493
+ resolution: "@rolldown/binding-win32-x64-msvc@npm:1.2.16"
494
494
  conditions: os=win32 & cpu=x64
495
495
  languageName: node
496
496
  linkType: hard
@@ -552,18 +552,18 @@ __metadata:
552
552
  linkType: hard
553
553
 
554
554
  "@types/estree@npm:^1.0.0":
555
- version: 1.0.9
556
- resolution: "@types/estree@npm:1.0.9"
557
- checksum: 10c0/3ad3286ca2988cd550dafb8f2ad599c8474868e954fa601a36655bdfefd8039f7c714b8c1c7f2ae219ffbd58bd4660e66fa7479a0120fc02d4777057d4865387
555
+ version: 1.0.10
556
+ resolution: "@types/estree@npm:1.0.10"
557
+ checksum: 10c0/d258926dac68425e77e43fd64045123b77f998ab2cf0bd0cc5a6ff016c365e60ed26f42adac64551906c1beab3bea08d60d113f905829ac60cfd6409db4761e9
558
558
  languageName: node
559
559
  linkType: hard
560
560
 
561
561
  "@types/node@npm:*":
562
- version: 26.6.5
563
- resolution: "@types/node@npm:26.6.5"
562
+ version: 26.6.6
563
+ resolution: "@types/node@npm:26.6.6"
564
564
  dependencies:
565
565
  undici-types: "npm:~8.9.0"
566
- checksum: 10c0/4f791f69466ace7842c09e7bef96cb1ddbb65cf3db916ef7e84f0e2b2a17220b6b816dc7539d01520cadfb17ed7169b8214910900493e0a83be8bc7d124ec20a
566
+ checksum: 10c0/5cb63f644f6e85a257a9cd2403cbcbe196760e2a35fd3ec9fb8b5cff663e14cc832b198cc17b53f870a2e30900ed45a1fb3f53e6589aba26b8e8c484aa672053
567
567
  languageName: node
568
568
  linkType: hard
569
569
 
@@ -774,9 +774,9 @@ __metadata:
774
774
  oxlint: "npm:^0.16.0"
775
775
  react: "npm:^19.0.0"
776
776
  react-dom: "npm:^19.0.0"
777
- twenty-client-sdk: "npm:2.54.3"
778
- twenty-sdk: "npm:2.54.3"
779
- twenty-ui: "npm:2.54.3"
777
+ twenty-client-sdk: "npm:2.56.0"
778
+ twenty-sdk: "npm:2.56.0"
779
+ twenty-ui: "npm:2.56.0"
780
780
  typescript: "npm:^5.9.3"
781
781
  vite-tsconfig-paths: "npm:^4.2.1"
782
782
  vitest: "npm:^4.1.12"
@@ -1377,14 +1377,14 @@ __metadata:
1377
1377
  linkType: hard
1378
1378
 
1379
1379
  "preact@npm:^11.0.0":
1380
- version: 11.1.0
1381
- resolution: "preact@npm:11.1.0"
1380
+ version: 11.1.1
1381
+ resolution: "preact@npm:11.1.1"
1382
1382
  peerDependencies:
1383
1383
  preact-render-to-string: ">=6.7.0"
1384
1384
  peerDependenciesMeta:
1385
1385
  preact-render-to-string:
1386
1386
  optional: true
1387
- checksum: 10c0/ca267ae9e7c477c9673dba115ad9a023a5ea39c38cb462dad804495dbf5d01fe2309658c41e2296384e9871ac8387414b3ac440950d46fdedf43579a0b1ffd94
1387
+ checksum: 10c0/405e3b51cd29e916934583b557de1880f3102f70c90c23cb68ceba0ecf6710d69bea525faabb82f21e3a28a8883c31f0ccf8ebaf5965ca05cb047b0e275c9782
1388
1388
  languageName: node
1389
1389
  linkType: hard
1390
1390
 
@@ -1448,25 +1448,25 @@ __metadata:
1448
1448
  linkType: hard
1449
1449
 
1450
1450
  "rolldown@npm:~1.2.14":
1451
- version: 1.2.15
1452
- resolution: "rolldown@npm:1.2.15"
1451
+ version: 1.2.16
1452
+ resolution: "rolldown@npm:1.2.16"
1453
1453
  dependencies:
1454
- "@oxc-project/types": "npm:=0.155.0"
1455
- "@rolldown/binding-android-arm-eabi": "npm:1.2.15"
1456
- "@rolldown/binding-android-arm64": "npm:1.2.15"
1457
- "@rolldown/binding-darwin-arm64": "npm:1.2.15"
1458
- "@rolldown/binding-darwin-x64": "npm:1.2.15"
1459
- "@rolldown/binding-freebsd-x64": "npm:1.2.15"
1460
- "@rolldown/binding-linux-arm-gnueabihf": "npm:1.2.15"
1461
- "@rolldown/binding-linux-arm64-gnu": "npm:1.2.15"
1462
- "@rolldown/binding-linux-arm64-musl": "npm:1.2.15"
1463
- "@rolldown/binding-linux-ppc64-gnu": "npm:1.2.15"
1464
- "@rolldown/binding-linux-s390x-gnu": "npm:1.2.15"
1465
- "@rolldown/binding-linux-x64-gnu": "npm:1.2.15"
1466
- "@rolldown/binding-linux-x64-musl": "npm:1.2.15"
1467
- "@rolldown/binding-openharmony-arm64": "npm:1.2.15"
1468
- "@rolldown/binding-win32-arm64-msvc": "npm:1.2.15"
1469
- "@rolldown/binding-win32-x64-msvc": "npm:1.2.15"
1454
+ "@oxc-project/types": "npm:=0.156.0"
1455
+ "@rolldown/binding-android-arm-eabi": "npm:1.2.16"
1456
+ "@rolldown/binding-android-arm64": "npm:1.2.16"
1457
+ "@rolldown/binding-darwin-arm64": "npm:1.2.16"
1458
+ "@rolldown/binding-darwin-x64": "npm:1.2.16"
1459
+ "@rolldown/binding-freebsd-x64": "npm:1.2.16"
1460
+ "@rolldown/binding-linux-arm-gnueabihf": "npm:1.2.16"
1461
+ "@rolldown/binding-linux-arm64-gnu": "npm:1.2.16"
1462
+ "@rolldown/binding-linux-arm64-musl": "npm:1.2.16"
1463
+ "@rolldown/binding-linux-ppc64-gnu": "npm:1.2.16"
1464
+ "@rolldown/binding-linux-s390x-gnu": "npm:1.2.16"
1465
+ "@rolldown/binding-linux-x64-gnu": "npm:1.2.16"
1466
+ "@rolldown/binding-linux-x64-musl": "npm:1.2.16"
1467
+ "@rolldown/binding-openharmony-arm64": "npm:1.2.16"
1468
+ "@rolldown/binding-win32-arm64-msvc": "npm:1.2.16"
1469
+ "@rolldown/binding-win32-x64-msvc": "npm:1.2.16"
1470
1470
  "@rolldown/pluginutils": "npm:^1.0.0"
1471
1471
  dependenciesMeta:
1472
1472
  "@rolldown/binding-android-arm-eabi":
@@ -1501,7 +1501,7 @@ __metadata:
1501
1501
  optional: true
1502
1502
  bin:
1503
1503
  rolldown: ./bin/cli.mjs
1504
- checksum: 10c0/084cbdcc222e534c9aff90e77488cdeb6a685a20a34e6e3ba77c3b8646723cea2f090f05522f452ed51217cce68b7aa67df8661b49b4ac0227a5edfcb0383b68
1504
+ checksum: 10c0/ba57365e9a4dbba9fbc41c5a0180baaaca47a24e47a57e2d24e02b064195c33e289c2c4bd67db0d2b78f42dce3df5466d9c9176babc05f3f465e7e0eae733b39
1505
1505
  languageName: node
1506
1506
  linkType: hard
1507
1507
 
@@ -1513,11 +1513,11 @@ __metadata:
1513
1513
  linkType: hard
1514
1514
 
1515
1515
  "semver@npm:^7.3.5":
1516
- version: 7.8.5
1517
- resolution: "semver@npm:7.8.5"
1516
+ version: 7.8.6
1517
+ resolution: "semver@npm:7.8.6"
1518
1518
  bin:
1519
1519
  semver: bin/semver.js
1520
- checksum: 10c0/b1f3127a5be8125a94f37188b361c212466c292c6910adce3ec106cff5dc211ccaedc4739c11bb70fda59d6fc1f040a9bca289f4e093451521a2372e5231fe0c
1520
+ checksum: 10c0/bf0a4d16eb067e5391323649e46b4a268644d7f8ee88e37c7668d35e861ec145b6e7df576d898007fc0d9a2cedcbc33f71460aa3bbea18eedfa5af58c064d7fe
1521
1521
  languageName: node
1522
1522
  linkType: hard
1523
1523
 
@@ -1651,43 +1651,43 @@ __metadata:
1651
1651
  linkType: hard
1652
1652
 
1653
1653
  "tslib@npm:^2.0.0":
1654
- version: 2.8.1
1655
- resolution: "tslib@npm:2.8.1"
1656
- checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62
1654
+ version: 2.9.1
1655
+ resolution: "tslib@npm:2.9.1"
1656
+ checksum: 10c0/8ff46e7a4d19fa62c23483c89cf5ccc3906e742ef6e6d60bd3826b686143b300b4f6f04161cc1cf31a6b11fe70e1058ae4d4e4a108b5c68326d469684736a83c
1657
1657
  languageName: node
1658
1658
  linkType: hard
1659
1659
 
1660
- "twenty-client-sdk@npm:2.54.3":
1661
- version: 2.54.3
1662
- resolution: "twenty-client-sdk@npm:2.54.3"
1660
+ "twenty-client-sdk@npm:2.56.0":
1661
+ version: 2.56.0
1662
+ resolution: "twenty-client-sdk@npm:2.56.0"
1663
1663
  dependencies:
1664
1664
  "@genql/runtime": "npm:^2.10.0"
1665
1665
  esbuild: "npm:^0.28.1"
1666
1666
  graphql: "npm:^16.8.1"
1667
1667
  lodash: "npm:^4.17.21"
1668
1668
  prettier: "npm:^3.8.3"
1669
- checksum: 10c0/773feaa6c84fed4f592b62f388d7c30f46ac72c37886c1636602e07ecdebb5f195e01b6f581be38aed182a86d96b11159a583cb04d13cf475f6c1d31dfdcb20a
1669
+ checksum: 10c0/09d706a0a79a6c2218eb0477af021e06b0c61073d02c3c42f4a348d372c56876b7e421fd7dbee46f9c3523488802ac60cfd351d703b93d458bb3da117836b84b
1670
1670
  languageName: node
1671
1671
  linkType: hard
1672
1672
 
1673
- "twenty-sdk@npm:2.54.3":
1674
- version: 2.54.3
1675
- resolution: "twenty-sdk@npm:2.54.3"
1673
+ "twenty-sdk@npm:2.56.0":
1674
+ version: 2.56.0
1675
+ resolution: "twenty-sdk@npm:2.56.0"
1676
1676
  dependencies:
1677
1677
  "@sniptt/guards": "npm:^0.2.0"
1678
1678
  esbuild: "npm:^0.28.1"
1679
1679
  preact: "npm:^11.0.0"
1680
1680
  react: "npm:^19.2.0"
1681
1681
  react-dom: "npm:^19.2.0"
1682
- twenty-client-sdk: "npm:2.54.3"
1682
+ twenty-client-sdk: "npm:2.56.0"
1683
1683
  uuid: "npm:^13.0.2"
1684
- checksum: 10c0/6ec4d7fa10b5d66ee6447f7d74c7bed74c2bd551eb66487c05d0c840275b5bec61117074c711f0b993a7c9eaf02a65210e5a3ad3a9da99a2e1282add6c4cf1c7
1684
+ checksum: 10c0/a492196c4a059fc62b2fa2cd9686f932f36a096e262e9225df0c9bfe7b815e6c63e774a6b5a50cfa2f523fa44d207fd4f3aa9d30cc13dfbd8264562dc4404d2c
1685
1685
  languageName: node
1686
1686
  linkType: hard
1687
1687
 
1688
- "twenty-ui@npm:2.54.3":
1689
- version: 2.54.3
1690
- resolution: "twenty-ui@npm:2.54.3"
1688
+ "twenty-ui@npm:2.56.0":
1689
+ version: 2.56.0
1690
+ resolution: "twenty-ui@npm:2.56.0"
1691
1691
  dependencies:
1692
1692
  "@base-ui/react": "npm:^1.9.0"
1693
1693
  "@base-ui/utils": "npm:0.5.0"
@@ -1707,7 +1707,7 @@ __metadata:
1707
1707
  optional: true
1708
1708
  monaco-editor:
1709
1709
  optional: true
1710
- checksum: 10c0/58550cdbd78a4c7c5deb1ad08a62a7744f9bc065bc1be3b578f14307e00e0064fccce5c3f8e63553efb5f4a2b71b2d900f01af917b79c2ed53455a4d2d5307a1
1710
+ checksum: 10c0/24abbc0b2e2e7835f9f6ed855548b001dc268adc70a32e6eaded00a78d908762d20bce44eb878fd47a338fd84068fe9a7d0cbd08db5a80827b15a133e20e05f0
1711
1711
  languageName: node
1712
1712
  linkType: hard
1713
1713
 
@@ -1 +1 @@
1
- const e=require("./chunks/build--4zYt4wd.cjs"),t=require("./chunks/isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./chunks/constants-Cbb71hpl-CrSqydxj.cjs");var r=e.t(),i=5e3,a=new AbortController,o,s=e=>{if(n.i(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,r.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,r.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,r.isNonEmptyString)(e.appPath)||!n.i(e.target)||!(0,r.isNonEmptyString)(e.target.apiUrl)||!(0,r.isNonEmptyString)(e.target.workspaceId)||!n.i(e.applicationExport)||!n.i(e.applicationExport.application)||!(0,r.isNonEmptyString)(e.applicationExport.application.universalIdentifier)?void 0:{type:`pull`,appPath:e.appPath,target:{apiUrl:e.target.apiUrl,workspaceId:e.target.workspaceId},applicationExport:e.applicationExport};if(e.type===`extractTranslations`)return(0,r.isNonEmptyString)(e.appPath)&&(!t.t(e.locale)||(0,r.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,r.isNonEmptyString)(e.appPath)&&(0,r.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},c=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},l=async()=>{if(!t.t(o))return null;let{snapshotApi:e,buildId:n}=o;return o=void 0,e.releaseSourceSnapshot({buildId:n})},u=()=>{l().then(()=>process.exit(1),()=>process.exit(1))},d=e=>{if(!process.connected){u();return}process.send?.(e)},f=e=>{if(!(!n.i(e)||e.success!==!0||!n.i(e.data)))return(0,r.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},p=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let i=a.signal,s=await e.buildSourceSnapshot({appPath:n,signal:i}),c=f(s);return t.t(c)?r?(o={snapshotApi:e,buildId:c},{type:`result`,result:s,isSnapshotHeld:!0}):{type:`result`,result:s,release:await e.releaseSourceSnapshot({buildId:c}),isSnapshotHeld:!1}:{type:`result`,result:s,isSnapshotHeld:!1}},m=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,r.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,r.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&n.i(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{a.abort(),setTimeout(()=>process.exit(1),i),t.t(o)&&u()}),process.on(`message`,e=>{let n=s(e);if(!t.t(n)){c({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){a.abort();return}if(n.type===`release`){l().then(e=>c({type:`released`,release:e}),e=>c(m(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-CpAYRk5s.cjs")).then(async({pullSource:e})=>{c({type:`result`,result:await e({...n,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-Ds_ZZGnl.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>p({snapshotApi:{buildSourceSnapshot:e,releaseSourceSnapshot:t},appPath:n.appPath,holdSnapshot:n.holdSnapshot});if(!n.collectWatchInputs)return r();let{collectWatchInputs:i}=await Promise.resolve().then(()=>require("./chunks/collect-watch-inputs-Dn6g1cNu.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-BGVirGsR.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?d(e):c(e),e=>c(m(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-nkgv6qiA.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-BHy14v8o.cjs")).then(async({extractSourceTranslations:e})=>{c({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-BJyDykpG.cjs")).then(async({buildSourceManifest:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-BQ_YGISo.cjs")).then(async({readSourceIdentity:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-CL8nm0q9.cjs")).then(async({generateApplicationClient:e})=>{c({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}});
1
+ const e=require("./chunks/build--4zYt4wd.cjs"),t=require("./chunks/isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./chunks/constants-BVRtHFho-CGmbRR4M.cjs");var r=e.t(),i=5e3,a=new AbortController,o,s=e=>{if(n.i(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,r.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,r.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,r.isNonEmptyString)(e.appPath)||!n.i(e.target)||!(0,r.isNonEmptyString)(e.target.apiUrl)||!(0,r.isNonEmptyString)(e.target.workspaceId)||!n.i(e.applicationExport)||!n.i(e.applicationExport.application)||!(0,r.isNonEmptyString)(e.applicationExport.application.universalIdentifier)?void 0:{type:`pull`,appPath:e.appPath,target:{apiUrl:e.target.apiUrl,workspaceId:e.target.workspaceId},applicationExport:e.applicationExport};if(e.type===`extractTranslations`)return(0,r.isNonEmptyString)(e.appPath)&&(!t.t(e.locale)||(0,r.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,r.isNonEmptyString)(e.appPath)&&(0,r.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},c=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},l=async()=>{if(!t.t(o))return null;let{snapshotApi:e,buildId:n}=o;return o=void 0,e.releaseSourceSnapshot({buildId:n})},u=()=>{l().then(()=>process.exit(1),()=>process.exit(1))},d=e=>{if(!process.connected){u();return}process.send?.(e)},f=e=>{if(!(!n.i(e)||e.success!==!0||!n.i(e.data)))return(0,r.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},p=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let i=a.signal,s=await e.buildSourceSnapshot({appPath:n,signal:i}),c=f(s);return t.t(c)?r?(o={snapshotApi:e,buildId:c},{type:`result`,result:s,isSnapshotHeld:!0}):{type:`result`,result:s,release:await e.releaseSourceSnapshot({buildId:c}),isSnapshotHeld:!1}:{type:`result`,result:s,isSnapshotHeld:!1}},m=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,r.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,r.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&n.i(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{a.abort(),setTimeout(()=>process.exit(1),i),t.t(o)&&u()}),process.on(`message`,e=>{let n=s(e);if(!t.t(n)){c({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){a.abort();return}if(n.type===`release`){l().then(e=>c({type:`released`,release:e}),e=>c(m(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-DeVIgzVE.cjs")).then(async({pullSource:e})=>{c({type:`result`,result:await e({...n,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-CNIkoxN6.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>p({snapshotApi:{buildSourceSnapshot:e,releaseSourceSnapshot:t},appPath:n.appPath,holdSnapshot:n.holdSnapshot});if(!n.collectWatchInputs)return r();let{collectWatchInputs:i}=await Promise.resolve().then(()=>require("./chunks/collect-watch-inputs-Dn6g1cNu.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-DV3LeWK2.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?d(e):c(e),e=>c(m(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-rMuH9bYM.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-BUR0Rc6f.cjs")).then(async({extractSourceTranslations:e})=>{c({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-CWg4z3sT.cjs")).then(async({buildSourceManifest:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-CDv42KDj.cjs")).then(async({readSourceIdentity:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-B4yPRWWv.cjs")).then(async({generateApplicationClient:e})=>{c({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}});
@@ -0,0 +1,5 @@
1
+ const e=require("./build--4zYt4wd.cjs"),t=require("./utils-BZkF-gp5-DunD-YmD.cjs"),n=require("./isDefined-Dtu5EYqP-CJctgvfE.cjs"),r=require("./constants-BVRtHFho-CGmbRR4M.cjs"),i=require("./get-system-view-universal-identifier.util-Bq8_ovT3-CXfImcpX.cjs");var a={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},o;o||={};function s(e){if(!i.p(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}function c(e){return e instanceof Boolean||typeof e==`boolean`}function l(e){return e instanceof String||typeof e==`string`}function u(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&!Array.isArray(e)}var d=[`choice`,`score`,`boolean`],f=e=>new Set(e).size!==e.length,p=e=>n.t(e)&&(f((e.objectPermissions??[]).map(({objectUniversalIdentifier:e})=>e))||f((e.fieldPermissions??[]).map(({fieldUniversalIdentifier:e})=>e))),m=/^[a-zA-Z0-9_.-]{1,64}$/,h=e=>m.test(e),g=e.t(),_=r.ct({objectUniversalIdentifier:r.lt(),canReadObjectRecords:r.X().optional(),canUpdateObjectRecords:r.X().optional(),canSoftDeleteObjectRecords:r.X().optional(),canDestroyObjectRecords:r.X().optional()}),ee=r.ct({objectUniversalIdentifier:r.lt(),fieldUniversalIdentifier:r.lt(),canReadFieldValue:r.X().optional(),canUpdateFieldValue:r.X().optional()}),v=r.ct({canReadAllObjectRecords:r.X().optional(),canUpdateAllObjectRecords:r.X().optional(),canSoftDeleteAllObjectRecords:r.X().optional(),canDestroyAllObjectRecords:r.X().optional(),canUpdateAllSettings:r.X().optional(),canAccessAllTools:r.X().optional(),canAccessAllAgentChatChannels:r.X().optional(),objectPermissions:r.Y(_).optional(),fieldPermissions:r.Y(ee).optional(),permissionFlagUniversalIdentifiers:r.Y(r.lt()).optional()}).omit({canAccessAllAgentChatChannels:!0}),te=r.at({type:r.tt(`object`),properties:r.st(r.lt(),r.at({type:r.K([`string`,`number`,`boolean`]),description:r.lt().optional()})).refine(e=>Object.keys(e).every(h),{message:`Output field names can only contain letters, numbers, underscores, dots or hyphens (max 64 characters)`}),required:r.Y(r.lt()).optional(),additionalProperties:r.tt(!1).optional()}),y=r.Z(`type`,[r.at({type:r.tt(`text`)}),r.at({type:r.tt(`json`),schema:te})]),b=`trigger`,x=e=>{let t=[],n=``,r=!1,i=0;for(;i<e.length;){let a=e[i];if(a===`[`&&!r){n.length>0&&(t.push(n),n=``),r=!0,i++;continue}if(a===`]`&&r){t.push(n),n=``,r=!1,i++,i<e.length&&e[i]===`.`&&i++;continue}if(a===`.`&&!r){n.length>0&&(t.push(n),n=``),i++;continue}n+=a,i++}return n.length>0&&t.push(n),t},ne=/{{([^{}]+)}}/g;function*S(e){if((0,g.isString)(e)){for(let[,t]of e.matchAll(ne))n.t(t)&&(yield t);return}if((0,g.isObject)(e))for(let t of Object.values(e))yield*S(t)}var re=e=>[...S(e)],ie=(e,t)=>{let n=e.length+1,r=t.length+1,i=Array.from({length:n},()=>Array(r).fill(0));for(let e=0;e<n;e++)i[e][0]=e;for(let e=0;e<r;e++)i[0][e]=e;for(let a=1;a<n;a++){let n=i[a-1],o=i[a];for(let i=1;i<r;i++){let r=e[a-1]===t[i-1]?0:1;o[i]=Math.min(n[i]+1,o[i-1]+1,n[i-1]+r)}}return i[e.length][t.length]},ae=e=>{if(!n.t(e)||!u(e)||Array.isArray(e))return!1;let t=Object.values(e);return t.length!==0&&t.every(e=>n.t(e)&&u(e)&&c(e.isLeaf))},oe=(e,t=[])=>{let n=[];if(!(0,g.isObject)(e))return n;for(let[r,i]of Object.entries(e)){if(!(0,g.isObject)(i))continue;let e=[...t,r];n.push(e.join(`.`)),!i.isLeaf&&(0,g.isObject)(i.value)&&n.push(...oe(i.value,e))}return n},se=({schema:e,propertyPath:t})=>{let r=e;for(let e=0;e<t.length;e++){let i=t[e];if(!n.t(i))return;if(!(0,g.isObject)(r))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:[]};let a=r[i];if(!n.t(a))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:Object.keys(r)};if(a.isLeaf){let r=t[e+1];return n.t(r)?{validPrefix:t.slice(0,e+1),failedSegment:r,availableKeys:[]}:void 0}r=a.value}},C={found:!1},w=e=>r.i(e)&&c(e.isLeaf),T=e=>r.i(e)&&e._outputSchemaType===`RECORD`&&r.i(e.fields),ce=e=>r.i(e)&&!(`_outputSchemaType`in e)&&w(e.first)&&e.first.isLeaf===!1&&T(e.first.value)&&w(e.totalCount),le=e=>({found:!0,type:l(e.type)?e.type:void 0,label:l(e.label)?e.label:void 0}),ue=(e,t)=>t.length===0?le(e):me(e.value,t),de=(e,t)=>{for(let n=1;n<=t.length;n++){let r=e[t.slice(0,n).join(`.`)];if(w(r))return ue(r,t.slice(n))}return C},fe=(e,t)=>{let[n,...r]=t;if(n===`first`)return r.length===0?le(e.first):me(e.first.value,r);if(n===`all`||n===`totalCount`){let t=e[n];return r.length===0&&w(t)?le(t):C}return C},pe=(e,t)=>{let[i,...a]=t;if(!n.t(i))return C;let o=e[i];return w(o)?ue(o,a):n.t(o)?a.length===0?{found:!0}:r.i(o)?pe(o,a):C:C},me=(e,t)=>t.length===0||!r.i(e)?C:T(e)?de(e.fields,t):ce(e)?fe(e,t):pe(e,t),he=({schema:e,propertyPath:t})=>me(e,t),E=e=>{let t=[];for(let[i,a]of Object.entries(e))if(w(a)){if(t.push(i),a.isLeaf)continue;let e=a.value;if(T(e))for(let n of E(e.fields))t.push(`${i}.${n}`);else if(r.i(e))for(let n of E(e))t.push(`${i}.${n}`)}else if(n.t(a)&&(t.push(i),r.i(a)))for(let e of E(a))t.push(`${i}.${e}`);return t},ge=e=>{if(!r.i(e))return[];if(T(e))return E(e.fields);if(ce(e)){let t=[];if(w(e.first)){t.push(`first`);for(let n of ge(e.first.value))t.push(`first.${n}`)}return n.t(e.all)&&t.push(`all`),t.push(`totalCount`),t}return E(e)},_e=3,ve=e=>r.i(e)?e._outputSchemaType===`RECORD`||Object.values(e).some(e=>r.i(e)&&ve(e.value)):!1,D=(e,t)=>t.map(t=>({candidate:t,distance:ie(e,t)})).filter(({candidate:e,distance:t})=>t<=Math.ceil(e.length/2)).sort((e,t)=>e.distance-t.distance).slice(0,_e).map(({candidate:e})=>e),ye=({schema:e,propertyPath:t,referencedStepId:r})=>{if(!ae(e)||ve(e)){let n=ge(e);return D(t.join(`.`),n).map(e=>[r,e].join(`.`))}let i=se({schema:e,propertyPath:t});if(!n.t(i))return[];let a=D(i.failedSegment,i.availableKeys).map(e=>[r,...i.validPrefix,e].join(`.`));if((0,g.isNonEmptyArray)(a))return a;let o=oe(e);return D(t.join(`.`),o).map(e=>[r,e].join(`.`))},be=e=>{if(e.type!==`CODE`||!(0,g.isObject)(e.settings?.input))return e.settings?.input;if(`logicFunctionInput`in e.settings.input)return e.settings.input.logicFunctionInput},xe=({workflow:e,graph:t,stepsById:r})=>{let i=[],a=new Set(e.steps?.map(e=>e.id)??[]);for(let o of e.steps??[]){let s=re(be(o)),c=t.ancestorsByStepId.get(o.id)??new Set;for(let t of s){let s=x(t),l=s[0];if(!n.t(l)){i.push({severity:`error`,code:`VARIABLE_INVALID_PATH`,message:`Step "${o.name??o.id}" has a variable "{{${t}}}" with an invalid path. Variable references must start with a step ID, e.g. "{{stepId.property}}".`,stepId:o.id,path:t});continue}let u=l===b;if(!u&&!a.has(l)){i.push({severity:`error`,code:`VARIABLE_UNKNOWN_STEP`,message:`Step "${o.name??o.id}" references variable "{{${t}}}" from an unknown step "${l}".`,stepId:o.id,path:t});continue}let d=l===o.id;if(!u&&!d&&!c.has(l)){let e=r.get(l)?.name??l;i.push({severity:`error`,code:`VARIABLE_NOT_UPSTREAM`,message:`Step "${o.name??o.id}" references variable "{{${t}}}" from step "${e}", which does not run before it. Ensure step "${e}" is an ancestor (connected via nextStepIds chain from the trigger, before this step).`,stepId:o.id,path:t});continue}i.push(...Se({step:o,variable:t,pathSegments:s,referencedStepId:l,isTriggerReference:u,trigger:e.trigger,stepsById:r}))}}return i},Se=({step:e,variable:t,pathSegments:r,referencedStepId:i,isTriggerReference:a,trigger:o,stepsById:s})=>{let c=r.slice(1);if(c.length===0)return[];let l=a?o?.settings?.outputSchema:s.get(i)?.settings?.outputSchema,u=n.t(l)&&(0,g.isObject)(l)&&!Array.isArray(l)&&Object.keys(l).length===0;if(!n.t(l)||u)return[];if(!he({schema:l,propertyPath:c}).found){let r=ye({schema:l,propertyPath:c,referencedStepId:i}),a=we(l,i),o=(0,g.isNonEmptyArray)(r)?`Did you mean "{{${r[0]}}}"?${r.length>1?` Other options: ${r.slice(1).map(e=>`{{${e}}}`).join(`, `)}.`:``}`:(0,g.isNonEmptyArray)(a)?`Available paths: ${a.map(e=>`{{${e}}}`).join(`, `)}.`:void 0;return[{severity:`error`,code:`VARIABLE_PATH_NOT_FOUND`,message:`Step "${e.name??e.id}" references variable "{{${t}}}" but the path "${c.join(`.`)}" was not found in the output of step "${i}".`,stepId:e.id,path:t,...n.t(o)?{hint:o}:{},...(0,g.isNonEmptyArray)(r)?{suggestions:r}:{},...(0,g.isNonEmptyArray)(a)?{availablePaths:a}:{}}]}return[]},Ce=20,we=(e,t)=>ge(e).slice(0,Ce).map(e=>`${t}.${e}`),Te=256e3,Ee=[1e3,5e3,15e3],O=r.at({input:r.nt({}).describe(`Input data for the workflow action. Structure depends on the action type.`),outputSchema:r.nt({}).describe(`Schema defining the output data structure. This data can be referenced in subsequent steps using {{stepId.fieldName}}.`),errorHandlingOptions:r.at({retryOnFailure:r.at({value:r.ot(e=>typeof e==`boolean`?Number(e):e,r.it().int().min(0).max(Ee.length).describe(`How many times to retry the action if it fails, between 0 and ${Ee.length}. 0 disables retries.`))}),continueOnFailure:r.at({value:r.X().describe(`Whether to continue to the next step if this action fails.`)})})}),De={expectedOutputSchema:r.nt({}).optional().describe(`A sample output value declared by the user for steps whose output structure is only known at runtime.`)},k=r.at({code:r.lt().max(Te).optional().describe("The TypeScript source of the step. It must export `main` as an async arrow function, `export const main = async (params: { ... }) => { ... }`: params receives logicFunctionInput, its type declares the step inputs, and it returns an object."),logicFunctionId:r.lt().optional().describe("Deprecated: only set on steps created before inline code. Do NOT set this; write the source in `code` instead."),logicFunctionInput:r.st(r.lt(),r.J()).describe("Key-value map of input parameters passed to `main` at runtime.")});O.extend({input:k.refine(e=>(0,g.isNonEmptyString)(e.code)||(0,g.isNonEmptyString)(e.logicFunctionId),{message:"A CODE step needs a non-empty `code` (or, for legacy steps, a `logicFunctionId`)."}),...De});var Oe=O.extend({input:r.at({url:r.lt(),method:r.K([`GET`,`POST`,`PUT`,`PATCH`,`DELETE`]),headers:r.st(r.lt(),r.lt()).optional(),body:r.st(r.lt(),r.dt([r.lt(),r.it(),r.X(),r.q(),r.Y(r.dt([r.lt(),r.it(),r.X(),r.q()]))])).or(r.lt()).optional()}),...De}),ke=/^[a-zA-Z0-9_-]{1,64}$/,Ae=r.at({id:r.pt().describe(`Stable identifier for this criterion row.`),name:r.lt().describe(`Option name for a choice question, or the label of one score level.`),description:r.lt().optional().describe(`What the model should understand this option to mean.`)}),je=r.at({id:r.pt().describe(`Stable identifier for this question row.`),name:r.lt().regex(ke,`Answer name must be empty or contain 1 to 64 characters using only letters, digits, underscores and dashes`).or(r.tt(``)).describe(`Answer key for this question, made of letters, digits, underscores and dashes. Downstream steps read {{stepId.answers.<name>}}.`),type:r.K(d).describe(`choice picks one option, score grades an ordered rubric, boolean estimates the probability that a statement holds.`),instructions:r.lt().describe(`What the model should decide about the shared state.`),criteria:r.Y(Ae).describe(`Options for a choice question, or ordered levels (lowest first) for a score question. Empty for boolean.`)}),Me=O.extend({input:r.at({state:r.lt().describe(`The shared state every question is asked about. Supports variables.`),questions:r.Y(je)})}),Ne=O.extend({input:r.at({items:r.dt([r.Y(r.dt([r.lt(),r.it(),r.X(),r.q(),r.st(r.lt(),r.J()),r.J()])),r.lt()]).optional(),initialLoopStepIds:r.Y(r.lt()).optional(),shouldContinueOnIterationFailure:r.X().optional()})}),Pe=O.extend({input:r.at({delayType:r.K([`SCHEDULED_DATE`,`DURATION`]),scheduledDateTime:r.lt().nullable().optional(),duration:r.at({days:r.dt([r.it().min(0),r.lt()]).optional(),hours:r.dt([r.it().min(0),r.lt()]).optional(),minutes:r.dt([r.it().min(0),r.lt()]).optional(),seconds:r.dt([r.it().min(0),r.lt()]).optional()}).optional()})}),Fe=O.extend({input:r.at({eventName:r.lt().describe(`Event to wait for, in format objectName.action (e.g., "company.updated", "task.created", "person.deleted").`),recordId:r.lt().nullable().optional().describe(`Only resume for this record. Usually a variable such as {{trigger.properties.after.id}}. Leave empty to resume on any record.`),updatedFields:r.Y(r.lt()).nullable().optional().describe(`For update events, only resume when one of these fields changed.`),timeout:r.at({days:r.dt([r.it().min(0),r.lt()]).optional(),hours:r.dt([r.it().min(0),r.lt()]).optional(),minutes:r.dt([r.it().min(0),r.lt()]).optional()}).nullable().optional().describe(`Stop waiting after this duration. The step then succeeds with hasTimedOut set to true.`)})}),Ie=O.extend({input:r.at({})}),A=r.st(r.lt(),r.J()).describe(`Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
2
+ - Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.properties.after.id}}"}}
3
+ - Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
4
+ - Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`),Le=O.extend({input:r.at({objectName:r.lt().describe(`The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").`),objectRecord:A.describe(`The record data to create.`)})}),Re=O.extend({input:r.at({objectName:r.lt(),objectRecord:A,objectRecordId:r.lt(),fieldsToUpdate:r.Y(r.lt())})}),ze=O.extend({input:r.at({objectName:r.lt(),objectRecord:A})}),Be=O.extend({input:r.at({objectName:r.lt(),objectRecordId:r.lt()})}),Ve=r.at({id:r.lt(),logicalOperator:r.K(r.w),parentRecordFilterGroupId:r.lt().nullable().optional(),positionInRecordFilterGroup:r.it().nullable().optional()}),He=r.at({id:r.lt().optional(),fieldMetadataId:r.lt(),operand:r.K(r.D),value:r.lt().nullable().optional(),recordFilterGroupId:r.lt().nullable().optional(),positionInRecordFilterGroup:r.it().nullable().optional(),subFieldName:r.lt().nullable().optional(),relationTargetFieldMetadataId:r.lt().nullable().optional()}),j=r.lt().regex(/^{{[^{}]+}}$/,`Expected a workflow variable reference like {{stepId.path}}`),Ue=O.extend({input:r.at({objectName:r.lt(),limit:r.dt([r.it(),j]).optional(),offset:r.dt([r.it().int().nonnegative(),j]).optional(),filter:r.at({recordFilterGroups:r.Y(Ve).optional(),recordFilters:r.Y(He).optional()}).optional(),orderBy:r.at({recordSorts:r.Y(r.J()).optional(),gqlOperationOrderBy:r.Y(r.st(r.lt(),r.J())).optional()}).optional()})}),We=r.at({id:r.lt(),name:r.lt(),label:r.lt(),type:r.dt([r.tt(r.z.TEXT),r.tt(r.z.NUMBER),r.tt(r.z.DATE),r.tt(r.z.SELECT),r.tt(r.z.MULTI_SELECT),r.tt(`RECORD`)]),placeholder:r.lt().optional(),settings:r.st(r.lt(),r.J()).optional(),value:r.J().optional()}),Ge=O.extend({input:r.Y(We),instructions:r.lt().optional()}),M=r.at({id:r.lt(),logicalOperator:r.K(r.S),parentStepFilterGroupId:r.lt().optional(),positionInStepFilterGroup:r.it().optional()}),N=r.at({id:r.lt(),type:r.lt(),stepOutputKey:r.lt(),operand:r.K(r.D).or(r.K(r.v)),value:r.lt(),stepFilterGroupId:r.lt(),positionInStepFilterGroup:r.it().optional(),fieldMetadataId:r.lt().optional(),compositeFieldSubFieldName:r.lt().optional(),isFullRecord:r.X().optional()}),Ke=O.extend({input:r.at({stepFilterGroups:r.Y(M),stepFilters:r.Y(N)})}),qe=r.at({id:r.lt(),nextStepIds:r.Y(r.lt()),filterGroupId:r.lt().optional()}),Je=O.extend({input:r.at({stepFilterGroups:r.Y(M),stepFilters:r.Y(N),branches:r.Y(qe)})}),Ye=r.at({id:r.lt().refine(e=>t.d(e)),name:r.lt(),size:r.it(),type:r.lt(),createdAt:r.lt()}),Xe=r.Y(r.dt([Ye,j.describe(`A workflow variable reference resolving to files`)])),Ze=O.extend({input:r.at({connectedAccountId:r.lt(),fromHandle:r.lt().trim().optional(),recipients:r.at({to:r.lt().optional(),cc:r.lt().optional(),bcc:r.lt().optional()}),subject:r.lt().optional(),body:r.lt().optional().describe(`The email body as a serialized email document: JSON.stringify of {"type":"doc","attrs":{"schemaVersion":1},"content":[...]} with paragraph, heading, bulletList, orderedList, image, button, divider and html blocks. Use {{stepId.field}} for variables. To send a complete HTML email verbatim, including HTML produced by an earlier step such as {{stepId.html}}, make the body a single htmlDocument block ({"type":"htmlDocument","attrs":{"html":"..."}}): it is sent without the email layout and its variables are inserted as raw HTML, while an html block is embedded in the layout with escaped variables. HTML or plain text strings are rejected.`),files:Xe.optional(),inReplyTo:r.lt().trim().optional()})}),Qe=O.extend({input:r.at({connectedAccountId:r.lt(),title:r.lt(),description:r.lt().optional(),location:r.lt().optional(),startsAt:r.lt(),endsAt:r.lt(),isFullDay:r.X(),timeZone:r.lt().optional(),attendees:r.lt().optional(),sendInvitations:r.X(),addConferencing:r.X()})}),$e=r.K([`RUN`,`STEP`,`KEY`]),et=r.at({scope:$e,key:r.lt().optional()}),tt=r.at({humanInputInstructions:r.lt().optional(),conversation:et.optional()}),nt=r.at({enabled:r.X(),configuration:r.st(r.lt(),r.J()).optional()}),rt=r.at({webSearch:nt.optional(),twitterSearch:nt.optional()}),it=r.at({instructions:r.lt().optional(),modelId:r.lt().optional(),modelConfiguration:rt.optional(),scope:v.optional()}),at=O.extend({input:r.at({agentId:r.lt().optional(),...it.shape,prompt:r.lt().optional(),responseFormat:y.optional(),workspaceMemberId:r.lt().optional(),...tt.shape})}),ot=O.extend({input:r.at({workspaceMemberId:r.lt(),title:r.lt(),text:r.lt(),toolCall:r.at({toolName:r.lt(),arguments:r.st(r.lt(),r.J())}).optional(),conversation:et.optional()})}),st=r.K([`RANDOM`,`ROUND_ROBIN`,`LOAD_BALANCED`]);O.extend({input:r.at({objectName:r.lt(),strategy:st,recordIds:r.Y(r.lt()),loadBalance:r.at({objectNameSingular:r.lt(),fieldName:r.lt()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.t(e.loadBalance)&&t.addIssue({code:a.custom,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})});var ct={AGENT_STEP_HAS_INLINE_CONFIG:`A step running an agent takes its instructions, model and permissions from the agent. Remove the instructions, model and permissions set on the step, or remove its agent.`,GENERATE_STEP_HAS_CONVERSATION_CONFIG:`A step without an agent cannot ask humans or keep a conversation. Use an agent for this step, or remove its human input instructions and conversation setting.`,GENERATE_STEP_SCOPE_HAS_REPEATED_ENTRIES:`The permissions of a step without an agent list an object or field more than once. Keep a single entry for each.`},lt=(e,t)=>e.keyof().options.some(e=>{let r=t[e];return(0,g.isString)(r)?(0,g.isNonEmptyString)(r.trim()):n.t(r)}),ut=e=>!(0,g.isNonEmptyString)(e.agentId),dt=e=>ut(e)?[...lt(tt,e)?[`GENERATE_STEP_HAS_CONVERSATION_CONFIG`]:[],...p(e.scope)?[`GENERATE_STEP_SCOPE_HAS_REPEATED_ENTRIES`]:[]]:lt(it,e)?[`AGENT_STEP_HAS_INLINE_CONFIG`]:[],ft=r.at({name:r.lt().optional().describe(`Human-readable name for the trigger. Optional but recommended for clarity.`),type:r.K([`DATABASE_EVENT`,`MANUAL`,`CRON`,`WEBHOOK`]).describe(`Type of trigger. DATABASE_EVENT for record changes, MANUAL for user-initiated, CRON for scheduled, WEBHOOK for external calls.`),position:r.at({x:r.it(),y:r.it()}).optional().nullable().describe(`Position coordinates for the trigger in the workflow diagram. Use (0, 0) for the trigger step.`),nextStepIds:r.Y(r.lt()).optional().nullable().describe(`Array of step IDs that the trigger connects to. These are the first steps in the workflow.`)}),pt=ft.extend({type:r.tt(`CRON`),settings:r.Z(`type`,[r.at({type:r.tt(`DAYS`),schedule:r.at({day:r.it().min(1),hour:r.it().min(0).max(23),minute:r.it().min(0).max(59)}),outputSchema:r.nt({})}),r.at({type:r.tt(`HOURS`),schedule:r.at({hour:r.it().min(1),minute:r.it().min(0).max(59)}),outputSchema:r.nt({})}),r.at({type:r.tt(`MINUTES`),schedule:r.at({minute:r.it().min(1).max(60)}),outputSchema:r.nt({})}),r.at({type:r.tt(`CUSTOM`),pattern:r.lt(),outputSchema:r.nt({})})])}),mt=ft.extend({type:r.tt(`WEBHOOK`),settings:r.Z(`httpMethod`,[r.at({outputSchema:r.nt({}),httpMethod:r.tt(`GET`),authentication:r.tt(`API_KEY`).nullable()}),r.at({outputSchema:r.nt({}),expectedOutputSchema:r.nt({}).optional(),httpMethod:r.tt(`POST`),expectedBody:r.nt({}),authentication:r.tt(`API_KEY`).nullable()})])}),P=function(e){return e.CODE=`CODE`,e.LOGIC_FUNCTION=`LOGIC_FUNCTION`,e.SEND_EMAIL=`SEND_EMAIL`,e.SEND_CHAT_MESSAGE=`SEND_CHAT_MESSAGE`,e.DRAFT_EMAIL=`DRAFT_EMAIL`,e.CREATE_CALENDAR_EVENT=`CREATE_CALENDAR_EVENT`,e.CREATE_RECORD=`CREATE_RECORD`,e.UPDATE_RECORD=`UPDATE_RECORD`,e.DELETE_RECORD=`DELETE_RECORD`,e.UPSERT_RECORD=`UPSERT_RECORD`,e.FIND_RECORDS=`FIND_RECORDS`,e.PICK_RECORD=`PICK_RECORD`,e.FORM=`FORM`,e.FILTER=`FILTER`,e.IF_ELSE=`IF_ELSE`,e.HTTP_REQUEST=`HTTP_REQUEST`,e.AI_AGENT=`AI_AGENT`,e.CLASSIFY=`CLASSIFY`,e.ITERATOR=`ITERATOR`,e.EMPTY=`EMPTY`,e.DELAY=`DELAY`,e.WAIT_FOR_EVENT=`WAIT_FOR_EVENT`,e}({}),ht=e=>{let t=e.settings?.input;return e.type===P.IF_ELSE&&(0,g.isObject)(t)&&`branches`in t&&Array.isArray(t.branches)},gt=e=>{let t=e.settings?.input;return e.type===P.ITERATOR&&(0,g.isObject)(t)&&`initialLoopStepIds`in t&&(0,g.isNonEmptyArray)(t.initialLoopStepIds)},_t=e=>{let t=e.settings?.input;if(n.t(t)&&(0,g.isObject)(t))return t},vt=e=>{let t=new Set(e.nextStepIds??[]);if(ht(e))for(let n of e.settings.input.branches??[])for(let e of n?.nextStepIds??[])t.add(e);if(gt(e))for(let n of e.settings.input.initialLoopStepIds??[])t.add(n);return[...t]},yt=({trigger:e,steps:t})=>{let r=new Map,i=n.t(e?.nextStepIds)?e.nextStepIds.filter(n.t):[];r.set(b,i);for(let e of t??[])r.set(e.id,vt(e));let a=new Set,o=[b];for(;o.length>0;){let e=o.shift();if(!(!n.t(e)||a.has(e))){a.add(e);for(let t of r.get(e)??[])a.has(t)||o.push(t)}}return{childrenByStepId:r,reachableFromTrigger:a,ancestorsByStepId:bt(r)}},bt=e=>{let t=new Map;for(let[n,r]of e.entries())for(let e of r){let r=t.get(e)??new Set;r.add(n),t.set(e,r)}let n=new Map;for(let r of e.keys()){if(n.has(r))continue;let e=new Set,i=[...t.get(r)??[]];for(;i.length>0;){let n=i.shift();if(!e.has(n)){e.add(n);for(let r of t.get(n)??[])e.has(r)||i.push(r)}}n.set(r,e)}return n},xt=({workflow:e,graph:t})=>{let r=[],i=new Set,a=new Set,o=new Map((e.steps??[]).map(e=>[e.id,e])),s=(e,c=[],l)=>{let u=c[c.length-1];if(i.has(e)){if(e!==l&&u===e)return;r.push({severity:`error`,code:`WORKFLOW_CYCLE`,stepId:e,message:`Workflow contains a cycle at step ${e}`});return}let d=o.get(e),f=`${e}:${c.join(`,`)}`;if(!n.t(d)||a.has(f))return;i.add(e),gt(d)&&(d.settings.input.initialLoopStepIds??[]).forEach(t=>s(t,[...c,e],e));let p=d.type===P.ITERATOR?d.nextStepIds??[]:t.childrenByStepId.get(e)??[];n.t(u)&&p.length===0&&r.push({severity:`error`,code:`ITERATOR_MISSING_RETURN`,stepId:e,message:`Loop body step ${e} must return to iterator ${u}`}),p.forEach(t=>s(t,c,e)),i.delete(e),a.add(f)};return e.trigger?.nextStepIds?.forEach(e=>s(e)),r},St=({workflow:e,graph:r})=>{let i=[],a=e.steps??[],o=new Set(a.map(e=>e.id)),s=new Set;for(let e of a)s.has(e.id)&&i.push({severity:`error`,code:`DUPLICATE_STEP_ID`,message:`Duplicate step id "${e.id}". Every step id must be unique within the workflow.`,stepId:e.id}),s.add(e.id);let c=(e.trigger?.nextStepIds??[]).filter(n.t);t.r(a)&&c.length===0&&i.push({severity:`error`,code:`TRIGGER_HAS_NO_NEXT_STEP`,message:`The trigger is not connected to any step. The trigger must have a "nextStepIds" array pointing to the first step (e.g. nextStepIds: ["${a[0].id}"]). If you used edges, also set trigger.nextStepIds.`});for(let e of c)o.has(e)||i.push({severity:`error`,code:`DANGLING_REFERENCE`,message:`The trigger references a non-existent step "${e}".`});for(let e of a){for(let t of r.childrenByStepId.get(e.id)??[])o.has(t)||i.push({severity:`error`,code:`DANGLING_REFERENCE`,message:`Step "${e.name??e.id}" references a non-existent step "${t}".`,stepId:e.id});i.push(...Ct(e))}for(let e of a)r.reachableFromTrigger.has(e.id)||i.push({severity:`error`,code:`UNREACHABLE_STEP`,message:`Step "${e.name??e.id}" is not reachable from the trigger. Ensure a chain of nextStepIds connects the trigger to this step. Check that the preceding step includes this step's id ("${e.id}") in its nextStepIds array.`,stepId:e.id});return i},Ct=e=>{let t=[],r=_t(e);if(e.type===P.IF_ELSE){let i=r?.branches,a=Array.isArray(i)?i:[];a.length<2&&t.push({severity:`warning`,code:`IF_ELSE_INSUFFICIENT_BRANCHES`,message:`If/Else step "${e.name??e.id}" should have at least two branches (a condition branch and an else branch).`,stepId:e.id});let o=r?.stepFilterGroups,s=new Set((Array.isArray(o)?o:[]).filter(n.t).map(e=>e.id));for(let r of a){let i=r?.nextStepIds;(!Array.isArray(i)||i.length===0)&&t.push({severity:`error`,code:`IF_ELSE_BRANCH_HAS_NO_NEXT_STEP`,message:`A branch of If/Else step "${e.name??e.id}" is not connected to any step.`,stepId:e.id}),n.t(r?.filterGroupId)&&!s.has(r.filterGroupId)&&t.push({severity:`error`,code:`INVALID_STEP_PARAMS`,message:`A branch of If/Else step "${e.name??e.id}" references filter group "${r.filterGroupId}", which does not exist.`,stepId:e.id})}}if(e.type===P.ITERATOR){let n=r,i=n?.items,a=typeof i==`string`&&i.length>0||Array.isArray(i)&&i.length>0,o=n?.initialLoopStepIds,s=Array.isArray(o)&&o.length>0;a&&!s&&t.push({severity:`error`,code:`ITERATOR_MISSING_LOOP_BODY`,message:`Iterator step "${e.name??e.id}" has items to iterate over but no steps inside the loop.`,stepId:e.id})}return t};function wt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function F(e,...t){if(!wt(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function Tt(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Et(e,t){F(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function I(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Dt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function L(e,t){return e<<32-t|e>>>t}var Ot=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,kt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function At(e){if(F(e),Ot)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=kt[e[n]];return t}function jt(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function Mt(e){return typeof e==`string`&&(e=jt(e)),F(e),e}var Nt=class{};function Pt(e){let t=t=>e().update(Mt(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Ft(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}function It(e,t,n){return e&t^~e&n}function Lt(e,t,n){return e&t^e&n^t&n}var Rt=class extends Nt{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=Dt(this.buffer)}update(e){Tt(this),e=Mt(e),F(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=Dt(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Tt(this),Et(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,I(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;Ft(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=Dt(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen should be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},R=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),z=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),B=BigInt(2**32-1),zt=BigInt(32);function Bt(e,t=!1){return t?{h:Number(e&B),l:Number(e>>zt&B)}:{h:Number(e>>zt&B)|0,l:Number(e&B)|0}}function Vt(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=Bt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}var Ht=(e,t,n)=>e>>>n,Ut=(e,t,n)=>e<<32-n|t>>>n,V=(e,t,n)=>e>>>n|t<<32-n,H=(e,t,n)=>e<<32-n|t>>>n,U=(e,t,n)=>e<<64-n|t>>>n-32,W=(e,t,n)=>e>>>n-32|t<<64-n;function G(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}var Wt=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),Gt=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Kt=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),qt=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,Jt=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),Yt=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,Xt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),K=new Uint32Array(64),Zt=class extends Rt{constructor(e=32){super(64,e,8,!1),this.A=R[0]|0,this.B=R[1]|0,this.C=R[2]|0,this.D=R[3]|0,this.E=R[4]|0,this.F=R[5]|0,this.G=R[6]|0,this.H=R[7]|0}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)K[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=K[e-15],n=K[e-2],r=L(t,7)^L(t,18)^t>>>3;K[e]=(L(n,17)^L(n,19)^n>>>10)+K[e-7]+r+K[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=L(o,6)^L(o,11)^L(o,25),u=l+t+It(o,s,c)+Xt[e]+K[e]|0,d=(L(n,2)^L(n,13)^L(n,22))+Lt(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){I(K)}destroy(){this.set(0,0,0,0,0,0,0,0),I(this.buffer)}},Qt=Vt(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map(e=>BigInt(e))),$t=Qt[0],en=Qt[1],q=new Uint32Array(80),J=new Uint32Array(80),tn=class extends Rt{constructor(e=64){super(128,e,16,!1),this.Ah=z[0]|0,this.Al=z[1]|0,this.Bh=z[2]|0,this.Bl=z[3]|0,this.Ch=z[4]|0,this.Cl=z[5]|0,this.Dh=z[6]|0,this.Dl=z[7]|0,this.Eh=z[8]|0,this.El=z[9]|0,this.Fh=z[10]|0,this.Fl=z[11]|0,this.Gh=z[12]|0,this.Gl=z[13]|0,this.Hh=z[14]|0,this.Hl=z[15]|0}get(){let{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:p,Hh:m,Hl:h}=this;return[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h]}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.Ah=e|0,this.Al=t|0,this.Bh=n|0,this.Bl=r|0,this.Ch=i|0,this.Cl=a|0,this.Dh=o|0,this.Dl=s|0,this.Eh=c|0,this.El=l|0,this.Fh=u|0,this.Fl=d|0,this.Gh=f|0,this.Gl=p|0,this.Hh=m|0,this.Hl=h|0}process(e,t){for(let n=0;n<16;n++,t+=4)q[n]=e.getUint32(t),J[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=q[e-15]|0,n=J[e-15]|0,r=V(t,n,1)^V(t,n,8)^Ht(t,n,7),i=H(t,n,1)^H(t,n,8)^Ut(t,n,7),a=q[e-2]|0,o=J[e-2]|0,s=V(a,o,19)^U(a,o,61)^Ht(a,o,6),c=Kt(i,H(a,o,19)^W(a,o,61)^Ut(a,o,6),J[e-7],J[e-16]);q[e]=qt(c,r,s,q[e-7],q[e-16])|0,J[e]=c|0}let{Ah:n,Al:r,Bh:i,Bl:a,Ch:o,Cl:s,Dh:c,Dl:l,Eh:u,El:d,Fh:f,Fl:p,Gh:m,Gl:h,Hh:g,Hl:_}=this;for(let e=0;e<80;e++){let t=V(u,d,14)^V(u,d,18)^U(u,d,41),ee=H(u,d,14)^H(u,d,18)^W(u,d,41),v=u&f^~u&m,te=d&p^~d&h,y=Jt(_,ee,te,en[e],J[e]),b=Yt(y,g,t,v,$t[e],q[e]),x=y|0,ne=V(n,r,28)^U(n,r,34)^U(n,r,39),S=H(n,r,28)^W(n,r,34)^W(n,r,39),re=n&i^n&o^i&o,ie=r&a^r&s^a&s;g=m|0,_=h|0,m=f|0,h=p|0,f=u|0,p=d|0,{h:u,l:d}=G(c|0,l|0,b|0,x|0),c=o|0,l=s|0,o=i|0,s=a|0,i=n|0,a=r|0;let ae=Wt(x,S,ie);n=Gt(ae,b,ne,re),r=ae|0}({h:n,l:r}=G(this.Ah|0,this.Al|0,n|0,r|0)),{h:i,l:a}=G(this.Bh|0,this.Bl|0,i|0,a|0),{h:o,l:s}=G(this.Ch|0,this.Cl|0,o|0,s|0),{h:c,l}=G(this.Dh|0,this.Dl|0,c|0,l|0),{h:u,l:d}=G(this.Eh|0,this.El|0,u|0,d|0),{h:f,l:p}=G(this.Fh|0,this.Fl|0,f|0,p|0),{h:m,l:h}=G(this.Gh|0,this.Gl|0,m|0,h|0),{h:g,l:_}=G(this.Hh|0,this.Hl|0,g|0,_|0),this.set(n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_)}roundClean(){I(q,J)}destroy(){I(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},nn=Pt(()=>new Zt),rn=Pt(()=>new tn);r.u;var an=function(e){return e.OK=`OK`,e.SUCCESS=`SUCCESS`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.NEUTRAL=`NEUTRAL`,e.UNKNOWN=`UNKNOWN`,e}({});Object.values(an).filter(e=>e!==an.OK&&e!==an.UNKNOWN),r.z.TEXT,r.z.ARRAY,r.z.BOOLEAN,r.z.DATE,r.z.DATE_TIME,r.z.NUMBER,r.z.NUMERIC,r.z.RAW_JSON,r.z.RICH_TEXT,r.z.SELECT,r.z.MULTI_SELECT;var on=`dependencies/yarn.lock`,sn=`public`,cn=`front-component-shared-dependencies.mjs`;r.j.RECORD_PAGE,r.j.DASHBOARD;var ln={CALL_RECORDER:`8da4b8b5-5edf-4880-b51f-ab6e679ec617`,EXA:`2b7f4a2e-9c4b-4a11-b63c-2e5e7d3f5a9a`,FATHOM:`c5fb24b3-15b0-48fb-a9b5-f182ba231e6c`,GRANOLA:`ffcc3979-0ee6-4d7d-912b-c12997d9f0f4`,LAST_CONTACT:`66a504cc-0a75-410e-a43f-cdeae1db1522`,PEOPLE_DATA_LABS:`4a1178c1-3535-4a47-b592-231d3216b36f`,SLACK:`a8c47f21-3b9e-4d2a-8f61-9c0e7d4a2b51`,TEAMS:`5955f8fe-6724-4749-b770-b849d63d5330`};ln.SLACK,ln.TEAMS,ln.FATHOM;var un={js:`import { createRequire as __createRequire } from 'module';
5
+ const require = __createRequire(import.meta.url);`},dn=`.twenty/output`,fn=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,fieldUniversalIdentifier:n})=>i.u({entityNamespace:`fieldPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),pn=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,objectUniversalIdentifier:n})=>i.u({entityNamespace:`objectPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),mn=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t})=>i.t({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:r.j.RECORD_FORM});r.at({responseFormat:y.nullish(),scope:v.nullish()});var hn=({pageLayoutTabManifest:e,pageLayoutType:i})=>{let a=e.layoutMode??(i===r.j.STANDALONE_PAGE?r.C.VERTICAL_LIST:r.C.GRID),o=e.widgets??[],s=[];if(!Object.values(r.C).some(e=>e===a))return{status:`fail`,errors:[`Page layout tab "${e.title}" defines unsupported layoutMode "${a}". Expected GRID, VERTICAL_LIST or CANVAS.`]};for(let t of o){let i=[t.heightBehavior,r.i(t.position)&&`heightBehavior`in t.position?t.position.heightBehavior:void 0].filter(n.t);i.length>0&&a!==r.C.VERTICAL_LIST&&s.push(`Page layout widget "${t.title}" defines heightBehavior, but its parent tab "${e.title}" uses ${a}. heightBehavior is only supported for VERTICAL_LIST tabs.`);for(let e of i)Object.values(r.h).some(t=>t===e)||s.push(`Page layout widget "${t.title}" defines unsupported heightBehavior "${e}". Expected FIT_CONTENT or TAB_VIEWPORT.`)}if(s.length>0)return{status:`fail`,errors:s};let c={...e,layoutMode:a,widgets:o.map(({heightBehavior:e,position:i,gridPosition:o,...s},c)=>{if(n.t(i))return{...s,position:i.layoutMode===r.C.VERTICAL_LIST&&n.t(e)?{...i,heightBehavior:e}:i};if(n.t(o))return{...s,position:{layoutMode:r.C.GRID,...o}};switch(a){case r.C.GRID:return{...s,position:{layoutMode:a,row:0,column:0,rowSpan:r.l.default.h,columnSpan:r.l.default.w}};case r.C.VERTICAL_LIST:return{...s,position:{layoutMode:a,index:c,...n.t(e)?{heightBehavior:e}:{}}};case r.C.CANVAS:return{...s,position:{layoutMode:a}};default:return t.t(a)}})};for(let e of c.widgets)e.position.layoutMode!==a&&s.push(`Page layout widget "${e.title}" uses a ${e.position.layoutMode} position, but its parent tab "${c.title}" uses ${a}.`);if(a===r.C.VERTICAL_LIST){let e=c.widgets.filter(({type:e,position:n})=>n.layoutMode===r.C.VERTICAL_LIST&&t.i({widgetType:e,heightBehavior:n.heightBehavior})===r.h.TAB_VIEWPORT);e.length>1&&s.push(`Page layout tab "${c.title}" can contain only one TAB_VIEWPORT widget.`);let i=e.length===1?e[0]:void 0;n.t(i)&&c.widgets.some(e=>e!==i&&e.position.layoutMode===r.C.VERTICAL_LIST&&i.position.layoutMode===r.C.VERTICAL_LIST&&e.position.index>=i.position.index)&&s.push(`Page layout tab "${c.title}" must place its TAB_VIEWPORT widget last.`)}return s.length>0?{status:`fail`,errors:s}:{status:`success`,pageLayoutTab:c}},gn=[`canReadObjectRecords`,`canUpdateObjectRecords`,`canSoftDeleteObjectRecords`,`canDestroyObjectRecords`],_n=e=>At(rn(jt(e))).slice(0,32),vn=e=>_n(JSON.stringify(JSON.parse(e))),Y={canReadObjectRecords:`canReadAllObjectRecords`,canUpdateObjectRecords:`canUpdateAllObjectRecords`,canSoftDeleteObjectRecords:`canSoftDeleteAllObjectRecords`,canDestroyObjectRecords:`canDestroyAllObjectRecords`},yn=({role:e,objectUniversalIdentifier:t})=>{let n=e.objectPermissions?.find(e=>e.objectUniversalIdentifier===t);return{canReadObjectRecords:n?.canReadObjectRecords??e[Y.canReadObjectRecords]??!1,canUpdateObjectRecords:n?.canUpdateObjectRecords??e[Y.canUpdateObjectRecords]??!1,canSoftDeleteObjectRecords:n?.canSoftDeleteObjectRecords??e[Y.canSoftDeleteObjectRecords]??!1,canDestroyObjectRecords:n?.canDestroyObjectRecords??e[Y.canDestroyObjectRecords]??!1}},bn=e=>JSON.stringify(e,(e,t)=>r.i(t)?Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t))):t),xn=({groupsByUniversalIdentifier:e,predicateGroupUniversalIdentifier:t})=>{let r=[],i=new Set,a=t;for(;n.t(a)&&!i.has(a);){i.add(a);let t=e.get(a);if(!n.t(t))break;r.push(t.logicalOperator),a=t.parentPredicateGroupUniversalIdentifier}return r},Sn=({role:e,objectUniversalIdentifier:t})=>{let n=new Map((e.rowLevelPermissionPredicateGroups??[]).map(e=>[e.universalIdentifier,e]));return(e.rowLevelPermissionPredicates??[]).filter(e=>e.objectUniversalIdentifier===t).map(e=>bn({fieldUniversalIdentifier:e.fieldUniversalIdentifier,subFieldName:e.subFieldName??null,operand:e.operand,value:e.value??null,workspaceMemberFieldUniversalIdentifier:e.workspaceMemberFieldUniversalIdentifier??null,workspaceMemberSubFieldName:e.workspaceMemberSubFieldName??null,groupOperatorPath:xn({groupsByUniversalIdentifier:n,predicateGroupUniversalIdentifier:e.predicateGroupUniversalIdentifier})})).sort()},Cn=r.f.map(e=>r.r[e]),wn=({roleSignature:e,supersetSignature:t})=>e.length===t.length&&e.every((e,n)=>e===t[n]),Tn=({role:e,superset:t})=>[...gn.filter(n=>{let r=Y[n];return e[r]&&!t[r]}).map(e=>({type:`ALL_OBJECT_RECORDS`,action:e})),...e.canUpdateAllSettings&&!t.canUpdateAllSettings?[{type:`ALL_SETTINGS`}]:[],...e.canAccessAllTools&&!t.canAccessAllTools?[{type:`ALL_TOOLS`}]:[]],En=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>{let r=new Set([...Cn,...n]),i=new Set(t.permissionFlagUniversalIdentifiers??[]);return[...new Set(e.permissionFlagUniversalIdentifiers??[])].filter(e=>!(r.has(e)?t.canAccessAllTools:t.canUpdateAllSettings)&&!i.has(e)).map(e=>({type:`PERMISSION_FLAG`,permissionFlagUniversalIdentifier:e}))},Dn=({role:e,superset:t})=>[...new Set([...[...e.objectPermissions??[],...t.objectPermissions??[]].map(e=>e.objectUniversalIdentifier),...(t.rowLevelPermissionPredicates??[]).map(e=>e.objectUniversalIdentifier)])].flatMap(n=>{let r=yn({role:e,objectUniversalIdentifier:n}),i=yn({role:t,objectUniversalIdentifier:n}),a=gn.filter(e=>r[e]&&!i[e]).map(e=>({type:`OBJECT_RECORDS`,objectUniversalIdentifier:n,action:e})),o=gn.some(e=>r[e]),s=Sn({role:t,objectUniversalIdentifier:n}),c=Sn({role:e,objectUniversalIdentifier:n});return o&&s.length>0&&!wn({roleSignature:c,supersetSignature:s})?[...a,{type:`ROW_LEVEL_RESTRICTION`,objectUniversalIdentifier:n}]:a}),On=({role:e,superset:t})=>(t.fieldPermissions??[]).flatMap(t=>{let{objectUniversalIdentifier:n,fieldUniversalIdentifier:r}=t,i=yn({role:e,objectUniversalIdentifier:n}),a=e.fieldPermissions?.find(e=>e.objectUniversalIdentifier===n&&e.fieldUniversalIdentifier===r),o=t.canReadFieldValue===!1&&i.canReadObjectRecords&&a?.canReadFieldValue!==!1,s=t.canUpdateFieldValue===!1&&i.canUpdateObjectRecords&&a?.canUpdateFieldValue!==!1;return[...o?[{type:`FIELD_VALUE`,objectUniversalIdentifier:n,fieldUniversalIdentifier:r,action:`canReadFieldValue`}]:[],...s?[{type:`FIELD_VALUE`,objectUniversalIdentifier:n,fieldUniversalIdentifier:r,action:`canUpdateFieldValue`}]:[]]}),kn=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>[...Tn({role:e,superset:t}),...En({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n}),...Dn({role:e,superset:t}),...On({role:e,superset:t})],An=e=>i.p(e)&&s(e)>=4,jn=r.at({x:r.it(),y:r.it()}),Mn={universalIdentifier:r.pt(),name:r.lt().min(1),nextStepIds:r.Y(r.pt()),position:jn.nullable().optional(),outputSchema:r.st(r.lt(),r.ft()).optional(),expectedOutputSchema:r.st(r.lt(),r.ft()).optional(),errorHandlingOptions:O.shape.errorHandlingOptions.optional()},X=(e,t)=>r.ct({...Mn,type:r.tt(e),input:t}),Nn=r.nt({fieldMetadataUniversalIdentifier:r.pt(),fieldMetadataId:r.rt().optional()}),Z=N.omit({fieldMetadataId:!0}).extend({fieldMetadataUniversalIdentifier:r.pt().optional()}).strict(),Pn=He.omit({fieldMetadataId:!0,relationTargetFieldMetadataId:!0}).extend({fieldMetadataUniversalIdentifier:r.pt()}).strict(),Q={objectUniversalIdentifier:r.pt()},Fn={connectedAccountId:r.lt().optional(),connectedAccountHandle:r.lt().trim().min(1).optional()},In=(e,t)=>{n.t(e.connectedAccountId)===n.t(e.connectedAccountHandle)&&t.addIssue({code:`custom`,path:[`connectedAccountHandle`],message:`Set exactly one of connectedAccountId and connectedAccountHandle`})},Ln=Ze.shape.input.extend(Fn).superRefine(In),Rn=[r.ct({...Mn,type:r.tt(`LOGIC_FUNCTION`),logicFunctionUniversalIdentifier:r.pt(),input:r.st(r.lt(),r.ft())}),X(`CODE`,k.omit({logicFunctionId:!0}).extend({code:k.shape.code.unwrap().min(1)}).strict()),X(`HTTP_REQUEST`,Oe.shape.input),X(`CLASSIFY`,Me.shape.input),X(`ITERATOR`,Ne.shape.input),X(`DELAY`,Pe.shape.input),X(`WAIT_FOR_EVENT`,Fe.shape.input),X(`EMPTY`,Ie.shape.input),X(`CREATE_RECORD`,Le.shape.input.omit({objectName:!0}).extend(Q).strict()),X(`UPDATE_RECORD`,Re.shape.input.omit({objectName:!0}).extend(Q).strict()),X(`UPSERT_RECORD`,ze.shape.input.omit({objectName:!0}).extend(Q).strict()),X(`DELETE_RECORD`,Be.shape.input.omit({objectName:!0}).extend(Q).strict()),X(`FIND_RECORDS`,Ue.shape.input.omit({objectName:!0,filter:!0,orderBy:!0}).extend({...Q,filter:r.ct({recordFilterGroups:r.Y(Ve).optional(),recordFilters:r.Y(Pn).optional()}).optional(),orderBy:r.ct({recordSorts:r.Y(Nn.extend({direction:r.K([`ASC`,`DESC`]),subFieldName:r.lt().nullable().optional()})).optional()}).optional()}).strict()),X(`PICK_RECORD`,r.ct({...Q,strategy:st,recordIds:r.Y(r.lt()),loadBalance:r.ct({objectUniversalIdentifier:r.pt(),fieldUniversalIdentifier:r.pt()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.t(e.loadBalance)&&t.addIssue({code:`custom`,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})),X(`FILTER`,Ke.shape.input.extend({stepFilters:r.Y(Z)})),X(`IF_ELSE`,Je.shape.input.extend({stepFilters:r.Y(Z)})),X(`FORM`,r.Y(Ge.shape.input.element.extend({settings:r.st(r.lt(),r.ft()).optional()}).superRefine((e,t)=>{e.type===`RECORD`&&!r.pt().safeParse(e.settings?.objectUniversalIdentifier).success&&t.addIssue({code:`custom`,path:[`settings`,`objectUniversalIdentifier`],message:`Record picker fields require an object universal identifier`}),(e.type===`SELECT`||e.type===`MULTI_SELECT`)&&!r.pt().safeParse(e.settings?.selectedFieldUniversalIdentifier).success&&t.addIssue({code:`custom`,path:[`settings`,`selectedFieldUniversalIdentifier`],message:`Select fields require the universal identifier of the field whose options they offer`})}))),X(`SEND_EMAIL`,Ln),X(`DRAFT_EMAIL`,Ln),X(`CREATE_CALENDAR_EVENT`,Qe.shape.input.extend(Fn).superRefine(In)),X(`SEND_CHAT_MESSAGE`,ot.shape.input),X(`AI_AGENT`,at.shape.input.omit({agentId:!0}).extend({agentUniversalIdentifier:r.pt().optional()}).strict().superRefine((e,t)=>{for(let n of dt({...e,agentId:e.agentUniversalIdentifier}))t.addIssue({code:`custom`,path:[`agentUniversalIdentifier`],message:ct[n]})}))],zn=Rn.map(e=>e.shape.type.value),Bn=r.Z(`type`,Rn,{error:e=>e.code===`invalid_union`?`Unsupported step type. Application workflows support: ${zn.join(`, `)}`:void 0}),Vn=[`updated`,`upserted`],Hn=r.Z(`type`,[r.ct({type:r.tt(`GLOBAL`)}),r.ct({type:r.tt(`SINGLE_RECORD`),objectUniversalIdentifier:r.pt()}),r.ct({type:r.tt(`BULK_RECORDS`),objectUniversalIdentifier:r.pt()})]),[Un,Wn,Gn,Kn]=pt.shape.settings.options,qn=r.Z(`type`,[Un.omit({outputSchema:!0}).extend({schedule:Un.shape.schedule.strict()}).strict(),Wn.omit({outputSchema:!0}).extend({schedule:Wn.shape.schedule.strict()}).strict(),Gn.omit({outputSchema:!0}).extend({schedule:Gn.shape.schedule.strict()}).strict(),Kn.omit({outputSchema:!0}).strict()]),[Jn,Yn]=mt.shape.settings.options,Xn=r.Z(`httpMethod`,[Jn.omit({outputSchema:!0,authentication:!0}).strict(),Yn.omit({outputSchema:!0,expectedOutputSchema:!0,authentication:!0}).strict()]),$={universalIdentifier:r.pt().optional(),name:r.lt().min(1).optional(),nextStepIds:r.Y(r.pt()).min(1),position:jn.nullable().optional(),outputSchema:r.st(r.lt(),r.ft()).optional()},Zn=[r.ct({...$,type:r.tt(`MANUAL`),settings:r.ct({availability:Hn.optional(),icon:r.lt().optional(),isPinned:r.X().optional()}).superRefine((e,t)=>{!n.t(e.availability)&&(n.t(e.icon)||n.t(e.isPinned))&&t.addIssue({code:`custom`,path:[`availability`],message:`Set an availability for the icon and pin to show in the command menu`})}).optional()}),r.ct({...$,type:r.tt(`CRON`),settings:qn}),r.ct({...$,type:r.tt(`DATABASE_EVENT`),settings:r.ct({objectUniversalIdentifier:r.pt(),action:r.K([`created`,`updated`,`deleted`,`upserted`]),fieldUniversalIdentifiers:r.Y(r.pt()).optional(),filter:r.ct({stepFilterGroups:r.Y(M),stepFilters:r.Y(Z.extend({operand:r.K(r.D)}))}).optional()}).superRefine((e,r)=>{if(t.r(e.fieldUniversalIdentifiers)&&!Vn.includes(e.action)&&r.addIssue({code:`custom`,path:[`fieldUniversalIdentifiers`],message:`Watched fields only apply to ${Vn.join(` and `)} events`}),!n.t(e.filter))return;let i=new Map;e.filter.stepFilterGroups.forEach((e,t)=>{i.has(e.id)&&r.addIssue({code:`custom`,path:[`filter`,`stepFilterGroups`,t,`id`],message:`Filter group ${e.id} is declared more than once`}),i.set(e.id,e.parentStepFilterGroupId)}),e.filter.stepFilterGroups.forEach((e,t)=>{let a=e.parentStepFilterGroupId,o=[`filter`,`stepFilterGroups`,t,`parentStepFilterGroupId`];if(!n.t(a))return;if(!i.has(a)){r.addIssue({code:`custom`,path:o,message:`Filter group ${a} is not declared in stepFilterGroups`});return}let s=new Set([e.id]);for(let t=a;n.t(t);t=i.get(t)){if(s.has(t)){r.addIssue({code:`custom`,path:o,message:`Filter group ${e.id} is not reachable from a root group`});return}s.add(t)}}),e.filter.stepFilters.forEach((e,t)=>{i.has(e.stepFilterGroupId)||r.addIssue({code:`custom`,path:[`filter`,`stepFilters`,t,`stepFilterGroupId`],message:`Filter group ${e.stepFilterGroupId} is not declared in stepFilterGroups`})})})}),r.ct({...$,type:r.tt(`WEBHOOK`),settings:Xn})],Qn=Zn.map(e=>e.shape.type.value),$n=r.Z(`type`,Zn,{error:e=>e.code===`invalid_union`?`Unsupported trigger type. Application workflows support: ${Qn.join(`, `)}`:void 0});r.ct({universalIdentifier:r.pt(),name:r.lt().min(1),isSystem:r.X().optional(),version:r.ct({trigger:$n,steps:r.Y(Bn).min(1)})}).superRefine((e,t)=>{let{steps:r,trigger:i}=e.version,a=[e.universalIdentifier,i.universalIdentifier,...r.map(e=>e.universalIdentifier)].filter(n.t);new Set(a).size!==a.length&&t.addIssue({code:`custom`,message:`Workflow, trigger and steps must have distinct universal identifiers`});let o={trigger:{type:i.type,nextStepIds:i.nextStepIds},steps:r.map(e=>({...e,id:e.universalIdentifier,settings:{input:e.input}}))},s=yt(o);for(let e of[...St({workflow:o,graph:s}),...xt({workflow:o,graph:s}),...xe({workflow:o,graph:s,stepsById:new Map(o.steps.map(e=>[e.id,e]))})])e.severity===`error`&&t.addIssue({code:`custom`,message:e.message})}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return hn}});
@@ -1,2 +1,2 @@
1
- const e=require("./cli-error-CrUD8uMp.cjs"),t=require("./get-tooling-error-context-CZKTM7Q6.cjs"),n=require("./compile-application-translations-qdigcX2V.cjs"),r=require("./resolve-source-sdk-CyvER2l1.cjs");let i=require("esbuild");var a=async({appPath:a,signal:o})=>{let s=[],c=e=>{s.push({severity:`warning`,code:`BUILD_WARNING`,message:e})};try{o.throwIfAborted(),await r.t({appPath:a});let e=await n.r(a);if(o.throwIfAborted(),!e.success)return{success:!1,error:{code:`MANIFEST_BUILD_FAILED`,message:e.errors.join(`
1
+ const e=require("./cli-error-CrUD8uMp.cjs"),t=require("./get-tooling-error-context-CZKTM7Q6.cjs"),n=require("./compile-application-translations-BS7FQ7zb.cjs"),r=require("./resolve-source-sdk-DQnc0tSq.cjs");let i=require("esbuild");var a=async({appPath:a,signal:o})=>{let s=[],c=e=>{s.push({severity:`warning`,code:`BUILD_WARNING`,message:e})};try{o.throwIfAborted(),await r.t({appPath:a});let e=await n.r(a);if(o.throwIfAborted(),!e.success)return{success:!1,error:{code:`MANIFEST_BUILD_FAILED`,message:e.errors.join(`
2
2
  `)},diagnostics:e.errors.map(e=>({severity:`error`,code:`MANIFEST_BUILD_FAILED`,message:e}))};e.warnings.forEach(c);let t=await n.t({appPath:a,onWarning:c});return o.throwIfAborted(),{success:!0,data:{manifest:{...e.manifest,translations:t},filePaths:e.filePaths},diagnostics:s}}catch(n){return{success:!1,error:{code:o.aborted?`CANCELLED`:n instanceof e.t?n.code:`MANIFEST_BUILD_FAILED`,message:n instanceof Error?n.message:String(n),...t.t(n)},diagnostics:s}}finally{await(0,i.stop)()}};exports.buildSourceManifest=a;