twenty 2.50.0 → 2.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/app-template/package.json +1 -1
  2. package/dist/app-template/yarn.lock +143 -96
  3. package/dist/app-worker.cjs +1 -1
  4. package/dist/chunks/application-DOWikeQt.cjs +5 -0
  5. package/dist/chunks/{build-pull-entities-DUmEo3aj.cjs → build-pull-entities-ShVsLh_s.cjs} +2 -2
  6. package/dist/chunks/{build-source-manifest-BeFnnS85.cjs → build-source-manifest-BmZlsY97.cjs} +1 -1
  7. package/dist/chunks/{build-source-snapshot-Cqb4LMAC.cjs → build-source-snapshot-BWbLS2F3.cjs} +19 -19
  8. package/dist/chunks/cli-version.constant-DGQXQw_V.cjs +1 -0
  9. package/dist/chunks/{collect-translatable-strings-D9iJWM3B.cjs → collect-translatable-strings-DWRZN9zQ.cjs} +1 -1
  10. package/dist/chunks/{collect-watch-inputs-CSE6DsGE.cjs → collect-watch-inputs-CS4oNP1F.cjs} +1 -1
  11. package/dist/chunks/{compile-application-translations-eYLVYoTD.cjs → compile-application-translations-DS6jGOV4.cjs} +1 -1
  12. package/dist/chunks/{constants-BAi8jZf9-C7iTUxcn.cjs → constants-D-caeNc5-9rDzSg5B.cjs} +1 -1
  13. package/dist/chunks/{convert-to-label-DB0PYecG.cjs → convert-to-label-hx-g0Lvj.cjs} +1 -1
  14. package/dist/chunks/{create-http-status-error-CCASIoUs.cjs → create-http-status-error-E0DUDIUP.cjs} +1 -1
  15. package/dist/chunks/create-metadata-client-9IF8ArjT.cjs +6 -0
  16. package/dist/chunks/{create-pull-base-write-Lh9yrY5q.cjs → create-pull-base-write-JW3ZTnaC.cjs} +1 -1
  17. package/dist/chunks/{create-rest-client-C-uI61ur.cjs → create-rest-client-PU2Uyfnb.cjs} +1 -1
  18. package/dist/chunks/{extract-manifest-from-file-yeNBn6po.cjs → extract-manifest-from-file-nrU-X7g7.cjs} +1 -1
  19. package/dist/chunks/{extract-source-translations-CZW5S9vg.cjs → extract-source-translations-DeVUs6Xz.cjs} +1 -1
  20. package/dist/chunks/{fetch-metadata-inspection-CHOmOnq5.cjs → fetch-metadata-inspection-CeqzcB_x.cjs} +1 -1
  21. package/dist/chunks/{fetch-signed-in-identity-BSx-tgUO.cjs → fetch-signed-in-identity-B49Tf79K.cjs} +1 -1
  22. package/dist/chunks/{fetch-workspace-id-Bg2V_cma.cjs → fetch-workspace-id-CsvJDu8b.cjs} +1 -1
  23. package/dist/chunks/format-body-CyNgSGIx.cjs +1 -0
  24. package/dist/chunks/{format-data-value-Dcn0aNoJ.cjs → format-data-value-kug8Yjt2.cjs} +1 -1
  25. package/dist/chunks/{format-metadata-fields-BpiTZFjv.cjs → format-metadata-fields-BTukrGn9.cjs} +1 -1
  26. package/dist/chunks/{format-metadata-owner-c6wBFmq7.cjs → format-metadata-owner-CsQXOj_P.cjs} +1 -1
  27. package/dist/chunks/format-progress-line-DhMnjGkz.cjs +1 -0
  28. package/dist/chunks/{generate-application-client-9tS8r18c.cjs → generate-application-client-B3Fen9_7.cjs} +1 -1
  29. package/dist/chunks/{get-app-plan-summary-DOhqg3eL.cjs → get-app-plan-summary-C-CQdNrh.cjs} +2 -2
  30. package/dist/chunks/{get-client-generation-skip-reason-D3_AAZQP.cjs → get-client-generation-skip-reason-BVkBgZWQ.cjs} +1 -1
  31. package/dist/chunks/{get-function-input-schema-GNk3NRLJ-BvvX155j.cjs → get-function-input-schema-GNk3NRLJ-DTFC8CbW.cjs} +1 -1
  32. package/dist/chunks/{global-flags.constant-DaR1vQnA.cjs → global-flags.constant-CRom3uiZ.cjs} +1 -1
  33. package/dist/chunks/is-access-token-expiring-DT6D8bMy.cjs +1 -0
  34. package/dist/chunks/{is-application-not-found-error-DxO-ftTG.cjs → is-application-not-found-error-Cja7iQrL.cjs} +1 -1
  35. package/dist/chunks/{is-exported-manifest-Cq0Sjj23.cjs → is-exported-manifest-DnQNK9XY.cjs} +1 -1
  36. package/dist/chunks/is-locale-catalog-CUFLOiRx.cjs +1 -0
  37. package/dist/chunks/is-supported-locale-xFJcoWeE.cjs +1 -0
  38. package/dist/chunks/{locale-catalog-format-DwZh0gOt.cjs → locale-catalog-format-CgKjHqcW.cjs} +2 -2
  39. package/dist/chunks/metadata-DkXpEhJh.cjs +1 -0
  40. package/dist/chunks/{metadata-page.constant-CX7U7xM8.cjs → metadata-page.constant-CxWuBtP5.cjs} +1 -1
  41. package/dist/chunks/{parse-api-url-BeUTFxSv.cjs → parse-api-url-CFCz3xUA.cjs} +1 -1
  42. package/dist/chunks/{parse-app-export-CaLKxant.cjs → parse-app-export-DFV_KqHM.cjs} +1 -1
  43. package/dist/chunks/parse-extraction-locale-C7Gdd3Oa.cjs +1 -0
  44. package/dist/chunks/{parse-graphql-response-DSSJWiGu.cjs → parse-graphql-response-BcKxw_s9.cjs} +1 -1
  45. package/dist/chunks/{parse-json-input-BOUh0Y2U.cjs → parse-json-input-CO-KP4XZ.cjs} +1 -1
  46. package/dist/chunks/{print-typescript-value-BU2EWXuF.cjs → print-typescript-value-D5kLR9wo.cjs} +1 -1
  47. package/dist/chunks/{pull-source-DqAHeLk7.cjs → pull-source-BKm8k5WI.cjs} +1 -1
  48. package/dist/chunks/{read-app-identity-CdFKlGlw.cjs → read-app-identity-dWB3NG6p.cjs} +1 -1
  49. package/dist/chunks/{read-application-identifier-Cckd5Pm1.cjs → read-application-identifier-BlkRhC8j.cjs} +1 -1
  50. package/dist/chunks/{read-application-identity-B8iACpb4.cjs → read-application-identity-DgEOK9zh.cjs} +1 -1
  51. package/dist/chunks/{read-config-DYzGn3dk.cjs → read-config-Qwl4pAO8.cjs} +1 -1
  52. package/dist/chunks/read-json-object-BXZs97qz.cjs +1 -0
  53. package/dist/chunks/{read-snapshot-file-CQ_tHUot.cjs → read-snapshot-file-CxPJh0Bk.cjs} +1 -1
  54. package/dist/chunks/{read-source-identity-SwqTRFjJ.cjs → read-source-identity-BM-MsOjA.cjs} +1 -1
  55. package/dist/chunks/{record-pull-base-CH-q0A8T.cjs → record-pull-base-DwoMDnXm.cjs} +1 -1
  56. package/dist/chunks/{record-typecheck-config-inputs-DWzR6mUU.cjs → record-typecheck-config-inputs-CmF0bbqm.cjs} +1 -1
  57. package/dist/chunks/{request-oauth-tokens-XMt_yPua.cjs → request-oauth-tokens-QdDt7j8i.cjs} +1 -1
  58. package/dist/chunks/{resolve-app-project-Dc5KpCDh.cjs → resolve-app-project-B0KRR-xp.cjs} +1 -1
  59. package/dist/chunks/{resolve-command-target-Dv9k9ic2.cjs → resolve-command-target-BWCnYRCn.cjs} +1 -1
  60. package/dist/chunks/{resolve-inside-sdk-BK6jFT6V.cjs → resolve-inside-sdk-DiEOTO12.cjs} +1 -1
  61. package/dist/chunks/{resolve-metadata-object-Dlprkb-X.cjs → resolve-metadata-object-BSDYVuzQ.cjs} +1 -1
  62. package/dist/chunks/{resolve-project-typescript-BWyUXLJM.cjs → resolve-project-typescript-vMtmufcP.cjs} +1 -1
  63. package/dist/chunks/{resolve-request-url-B6KNhoFa.cjs → resolve-request-url-BvOe0vYd.cjs} +1 -1
  64. package/dist/chunks/{resolve-source-sdk-C0_F9oUQ.cjs → resolve-source-sdk-CU1wk4bl.cjs} +1 -1
  65. package/dist/chunks/{run-api-graphql-command-CVdIic7q.cjs → run-api-graphql-command-Df2FAGpA.cjs} +1 -1
  66. package/dist/chunks/{run-api-rest-command-DgF7Vh0j.cjs → run-api-rest-command-2YvvMh8h.cjs} +1 -1
  67. package/dist/chunks/{run-app-add-command-4wAkXDW2.cjs → run-app-add-command-wpCH-Lp9.cjs} +5 -5
  68. package/dist/chunks/{run-app-apply-command-DOPPX88t.cjs → run-app-apply-command-CPocg1Xz.cjs} +2 -2
  69. package/dist/chunks/{run-app-build-command-VoObCeD2.cjs → run-app-build-command-DSGpIZBT.cjs} +1 -1
  70. package/dist/chunks/{run-app-dev-command-DqY3qjVy.cjs → run-app-dev-command-BOAYsAKr.cjs} +2 -2
  71. package/dist/chunks/{run-app-exec-command-CasOptA2.cjs → run-app-exec-command-Fwi80y3g.cjs} +2 -2
  72. package/dist/chunks/{run-app-generate-client-command-BdOjFITA.cjs → run-app-generate-client-command-DidOpqNE.cjs} +1 -1
  73. package/dist/chunks/{run-app-init-command-DFNSImQ4.cjs → run-app-init-command-DRFYqMMh.cjs} +2 -2
  74. package/dist/chunks/{run-app-install-command-DDkBjstj.cjs → run-app-install-command-DPt8PzUS.cjs} +1 -1
  75. package/dist/chunks/{run-app-logs-command-DPOtBKPs.cjs → run-app-logs-command-C-9ZyGau.cjs} +3 -3
  76. package/dist/chunks/{run-app-operation-Dt8_tKmi.cjs → run-app-operation-Cw5M8v43.cjs} +1 -1
  77. package/dist/chunks/{run-app-plan-command-CusqLQ3f.cjs → run-app-plan-command-CT1SlcdX.cjs} +1 -1
  78. package/dist/chunks/{run-app-publish-command-COhfOFpj.cjs → run-app-publish-command-DiIlqdTg.cjs} +2 -2
  79. package/dist/chunks/{run-app-pull-command-C9GHMbgF.cjs → run-app-pull-command-r_NjC_Rk.cjs} +2 -2
  80. package/dist/chunks/{run-app-translations-extract-command-DWEinGqX.cjs → run-app-translations-extract-command-Ba66GX7e.cjs} +1 -1
  81. package/dist/chunks/{run-app-typecheck-command-CGrsPEx6.cjs → run-app-typecheck-command-MAxB7Yg3.cjs} +1 -1
  82. package/dist/chunks/{run-app-uninstall-command-i7a4Jem9.cjs → run-app-uninstall-command-BzYSsL5a.cjs} +1 -1
  83. package/dist/chunks/{run-auth-login-command-DaXPK5wd.cjs → run-auth-login-command-Cb3bITQj.cjs} +1 -1
  84. package/dist/chunks/{run-auth-logout-command-W7tRzWph.cjs → run-auth-logout-command-iC22soKN.cjs} +1 -1
  85. package/dist/chunks/{run-auth-status-command-B0dAwETL.cjs → run-auth-status-command-C0rdb747.cjs} +1 -1
  86. package/dist/chunks/{run-cli-CAoDm_W8.cjs → run-cli-CuxXyb__.cjs} +7 -7
  87. package/dist/chunks/{run-commands-command-ZjKeKGKY.cjs → run-commands-command-D0P3mHHz.cjs} +1 -1
  88. package/dist/chunks/{run-data-get-command-B77up-s7.cjs → run-data-get-command-D7czgisf.cjs} +1 -1
  89. package/dist/chunks/{run-data-list-command-RwomiIPV.cjs → run-data-list-command-CUp_FN_I.cjs} +1 -1
  90. package/dist/chunks/{run-doctor-command-vxHdUzhC.cjs → run-doctor-command-ClisEoI5.cjs} +2 -2
  91. package/dist/chunks/{run-metadata-field-describe-command-B_NgZ7Ms.cjs → run-metadata-field-describe-command-7xrRVRwr.cjs} +1 -1
  92. package/dist/chunks/{run-metadata-field-list-command-BGYdnELQ.cjs → run-metadata-field-list-command-CpIUXOmy.cjs} +1 -1
  93. package/dist/chunks/{run-metadata-object-describe-command-J85iBAkc.cjs → run-metadata-object-describe-command--cIPFkWW.cjs} +1 -1
  94. package/dist/chunks/{run-metadata-object-list-command-Bql6RG8g.cjs → run-metadata-object-list-command-CQ1jcSJc.cjs} +1 -1
  95. package/dist/chunks/{run-open-command-BNX-l7r7.cjs → run-open-command-DLe3PYqB.cjs} +1 -1
  96. package/dist/chunks/{run-remote-list-command-D6aUDed3.cjs → run-remote-list-command-DV-Ruk98.cjs} +1 -1
  97. package/dist/chunks/{run-remote-remove-command-D0Mb9tkZ.cjs → run-remote-remove-command-C1JeH5mK.cjs} +1 -1
  98. package/dist/chunks/{run-remote-rename-command-BgjOFYNE.cjs → run-remote-rename-command-CCVu4hEw.cjs} +1 -1
  99. package/dist/chunks/{run-remote-use-command-zGfFYq-A.cjs → run-remote-use-command-BvqWgEsP.cjs} +1 -1
  100. package/dist/chunks/{run-version-command-DwZTxHuu.cjs → run-version-command-DdKb9JL0.cjs} +1 -1
  101. package/dist/chunks/{select-target-CKoOXLSW.cjs → select-target-DZlm8j62.cjs} +1 -1
  102. package/dist/chunks/{sign-in-to-remote-again-BhpxdF8v.cjs → sign-in-to-remote-again-WEIeFaAT.cjs} +1 -1
  103. package/dist/chunks/{sign-in-with-browser-BrB5btVu.cjs → sign-in-with-browser-BUvT_awm.cjs} +1 -1
  104. package/dist/chunks/to-public-target-bNT50le0.cjs +1 -0
  105. package/dist/chunks/{to-worker-output-diagnostics-eE_POlPf.cjs → to-worker-output-diagnostics-BzdY4Z2V.cjs} +1 -1
  106. package/dist/chunks/{typecheck-application-P6akOoSs.cjs → typecheck-application-dVtzoMDg.cjs} +2 -2
  107. package/dist/chunks/{update-config-BNB8Mkee.cjs → update-config-CnB7lDVC.cjs} +1 -1
  108. package/dist/chunks/{utils-D6KY4-gU-rSlFwrTC.cjs → utils-CvvLHbc4-CKDJ1YgX.cjs} +20 -17
  109. package/dist/chunks/{write-config-atomically-eVpizD-t.cjs → write-config-atomically-DkRUfbw0.cjs} +1 -1
  110. package/dist/cli.cjs +1 -1
  111. package/package.json +2 -2
  112. package/dist/chunks/application-C02vC9wC.cjs +0 -5
  113. package/dist/chunks/cli-version.constant-jQjsWsAO.cjs +0 -1
  114. package/dist/chunks/create-metadata-client-DsTAacZG.cjs +0 -6
  115. package/dist/chunks/format-body-DqhC3QLB.cjs +0 -1
  116. package/dist/chunks/format-progress-line-CeE356w0.cjs +0 -1
  117. package/dist/chunks/is-access-token-expiring-jLfrOp26.cjs +0 -1
  118. package/dist/chunks/is-locale-catalog-DjsopIs-.cjs +0 -1
  119. package/dist/chunks/is-supported-locale-CdAUON0G.cjs +0 -1
  120. package/dist/chunks/metadata-Dojezbdo.cjs +0 -1
  121. package/dist/chunks/parse-extraction-locale-DMjUY8zC.cjs +0 -1
  122. package/dist/chunks/read-json-object-VckLNpsj.cjs +0 -1
  123. package/dist/chunks/to-public-target-DYS-Zlyh.cjs +0 -1
@@ -8,7 +8,7 @@
8
8
  "yarn": ">=4.0.2"
9
9
  },
10
10
  "keywords": [],
11
- "packageManager": "yarn@4.13.0",
11
+ "packageManager": "yarn@4.18.1",
12
12
  "scripts": {
13
13
  "twenty": "twenty",
14
14
  "lint": "oxlint -c .oxlintrc.json .",
@@ -2,7 +2,7 @@
2
2
  # Manual changes might be lost - proceed with caution!
3
3
 
4
4
  __metadata:
5
- version: 8
5
+ version: 10
6
6
  cacheKey: 10c0
7
7
 
8
8
  "@alcalzone/ansi-tokenize@npm:^0.2.4":
@@ -289,6 +289,20 @@ __metadata:
289
289
  languageName: node
290
290
  linkType: hard
291
291
 
292
+ "@floating-ui/react@npm:^0.27.15":
293
+ version: 0.27.20
294
+ resolution: "@floating-ui/react@npm:0.27.20"
295
+ dependencies:
296
+ "@floating-ui/react-dom": "npm:^2.1.9"
297
+ "@floating-ui/utils": "npm:^0.2.12"
298
+ tabbable: "npm:^6.0.0"
299
+ peerDependencies:
300
+ react: ">=17.0.0"
301
+ react-dom: ">=17.0.0"
302
+ checksum: 10c0/5ebeb4c877128e9a274692849ceb2103b370441626e97ade38c25db5d94371dd7274292eda05208cc5d1c92c594a59595a1909799c2ac8ff44f9e651a4fe55b3
303
+ languageName: node
304
+ linkType: hard
305
+
292
306
  "@floating-ui/utils@npm:^0.2.12":
293
307
  version: 0.2.12
294
308
  resolution: "@floating-ui/utils@npm:0.2.12"
@@ -568,12 +582,12 @@ __metadata:
568
582
  languageName: node
569
583
  linkType: hard
570
584
 
571
- "@inquirer/checkbox@npm:^5.2.6":
572
- version: 5.2.6
573
- resolution: "@inquirer/checkbox@npm:5.2.6"
585
+ "@inquirer/checkbox@npm:^5.2.7":
586
+ version: 5.2.7
587
+ resolution: "@inquirer/checkbox@npm:5.2.7"
574
588
  dependencies:
575
589
  "@inquirer/ansi": "npm:^2.0.9"
576
- "@inquirer/core": "npm:^12.0.4"
590
+ "@inquirer/core": "npm:^12.0.5"
577
591
  "@inquirer/figures": "npm:^2.0.9"
578
592
  "@inquirer/type": "npm:4.2.0"
579
593
  peerDependencies:
@@ -581,28 +595,28 @@ __metadata:
581
595
  peerDependenciesMeta:
582
596
  "@types/node":
583
597
  optional: true
584
- checksum: 10c0/f20b92800df57b33e601e94b3e4ae75d260c0fd870001c1b4204350fc5b825474d120048e7cbb8a32f4f75cc59df712985ea10cf00daa8ed8a91abbbe2451661
598
+ checksum: 10c0/efc27b46f67eb540ecead420593947f441fe89ebd10ecdf64b48ba6b99318ff3ce9b542426649c230767166a50221fca0ebb21f61f2e419f7a049371810c0855
585
599
  languageName: node
586
600
  linkType: hard
587
601
 
588
- "@inquirer/confirm@npm:^6.3.3":
589
- version: 6.3.3
590
- resolution: "@inquirer/confirm@npm:6.3.3"
602
+ "@inquirer/confirm@npm:^6.3.4":
603
+ version: 6.3.4
604
+ resolution: "@inquirer/confirm@npm:6.3.4"
591
605
  dependencies:
592
- "@inquirer/core": "npm:^12.0.4"
606
+ "@inquirer/core": "npm:^12.0.5"
593
607
  "@inquirer/type": "npm:4.2.0"
594
608
  peerDependencies:
595
609
  "@types/node": ">=18"
596
610
  peerDependenciesMeta:
597
611
  "@types/node":
598
612
  optional: true
599
- checksum: 10c0/432a1edf3bcc80de43ca23102cf9fa31f8f5c3e1d53f980ff11730d105e13a3e40b2c31a1d15f02326c96acfcb4a7e1c442c747736f122dcbd6679b1a87f1a13
613
+ checksum: 10c0/ede30ef4371b5b2b1f1bcf7efa2c7e057a12671a17a487847e5044c02c59eb0d3947bdeb0566e4d15814247973025c7ea66af4f22d4b53cb7d45122d12203922
600
614
  languageName: node
601
615
  linkType: hard
602
616
 
603
- "@inquirer/core@npm:^12.0.4":
604
- version: 12.0.4
605
- resolution: "@inquirer/core@npm:12.0.4"
617
+ "@inquirer/core@npm:^12.0.5":
618
+ version: 12.0.5
619
+ resolution: "@inquirer/core@npm:12.0.5"
606
620
  dependencies:
607
621
  "@inquirer/ansi": "npm:^2.0.9"
608
622
  "@inquirer/figures": "npm:^2.0.9"
@@ -616,15 +630,15 @@ __metadata:
616
630
  peerDependenciesMeta:
617
631
  "@types/node":
618
632
  optional: true
619
- checksum: 10c0/b39b358725d623fea6a29ed96b9632649ca45ddc5a31dec6b2f42f593418152200b400f8d847cc2118e6881169c22278043b44fd4971c74ed6779fea773b7129
633
+ checksum: 10c0/6ba9cbfe00e6021d54690cdb446a538c8c807df06ceabc475a71ba41ee1476c14203a0c198a31dbe07a9d8e36e8b4c0946f38a66e6cd57813c86d71858894cd8
620
634
  languageName: node
621
635
  linkType: hard
622
636
 
623
- "@inquirer/editor@npm:^5.3.4":
624
- version: 5.3.4
625
- resolution: "@inquirer/editor@npm:5.3.4"
637
+ "@inquirer/editor@npm:^5.3.5":
638
+ version: 5.3.5
639
+ resolution: "@inquirer/editor@npm:5.3.5"
626
640
  dependencies:
627
- "@inquirer/core": "npm:^12.0.4"
641
+ "@inquirer/core": "npm:^12.0.5"
628
642
  "@inquirer/external-editor": "npm:^3.0.6"
629
643
  "@inquirer/type": "npm:4.2.0"
630
644
  peerDependencies:
@@ -632,22 +646,22 @@ __metadata:
632
646
  peerDependenciesMeta:
633
647
  "@types/node":
634
648
  optional: true
635
- checksum: 10c0/9adbfb9ed2b11d6fa11162852e5076879275ceb9f21e5a84ae2888e07153202545d1b0a28a6254163b0a5dcd0c72982a8219446a07c1b551daf6b97513ac6739
649
+ checksum: 10c0/01e6bfce54c391c95229d51d21d7a94094c1915015870334043a6d7e48d69e059007f48ea90e0ad72e91b9ab71b0e1dd871e6be628cf9d7b9a3e8272a8871946
636
650
  languageName: node
637
651
  linkType: hard
638
652
 
639
- "@inquirer/expand@npm:^5.1.6":
640
- version: 5.1.6
641
- resolution: "@inquirer/expand@npm:5.1.6"
653
+ "@inquirer/expand@npm:^5.1.7":
654
+ version: 5.1.7
655
+ resolution: "@inquirer/expand@npm:5.1.7"
642
656
  dependencies:
643
- "@inquirer/core": "npm:^12.0.4"
657
+ "@inquirer/core": "npm:^12.0.5"
644
658
  "@inquirer/type": "npm:4.2.0"
645
659
  peerDependencies:
646
660
  "@types/node": ">=18"
647
661
  peerDependenciesMeta:
648
662
  "@types/node":
649
663
  optional: true
650
- checksum: 10c0/c67b79b5266d6a47eab4a766bb92c129afa830f050343aafc22724676e438e49484e083654024375763985e538ee4a7855e11834860f0c97f60dddc4f517d31b
664
+ checksum: 10c0/ae0f8e342801e0b658f00d4ec42c0be391977446b5e3974eab2893cfe662f0421742cbcaee4c9833d7602ee62d119f574764d3592f0217cf6efdba335de25253
651
665
  languageName: node
652
666
  linkType: hard
653
667
 
@@ -673,95 +687,95 @@ __metadata:
673
687
  languageName: node
674
688
  linkType: hard
675
689
 
676
- "@inquirer/input@npm:^5.1.7":
677
- version: 5.1.7
678
- resolution: "@inquirer/input@npm:5.1.7"
690
+ "@inquirer/input@npm:^5.1.8":
691
+ version: 5.1.8
692
+ resolution: "@inquirer/input@npm:5.1.8"
679
693
  dependencies:
680
- "@inquirer/core": "npm:^12.0.4"
694
+ "@inquirer/core": "npm:^12.0.5"
681
695
  "@inquirer/type": "npm:4.2.0"
682
696
  peerDependencies:
683
697
  "@types/node": ">=18"
684
698
  peerDependenciesMeta:
685
699
  "@types/node":
686
700
  optional: true
687
- checksum: 10c0/29f35215dac71e98206af5df575cff847392f519731bf94f7f7bc5b341dcf3a67df7b72ce8d045c0cab7e5318e4aa1b4bafa15bc6595198fe411711cb0fd9340
701
+ checksum: 10c0/2602117aa079b1081d561520c83dad3d3b7a5b90250de5e716b06cdda44a93eb93751216db4ccf73de2f6f6a9bc6d73e18a14f895bb2062ce88b8a4e53295445
688
702
  languageName: node
689
703
  linkType: hard
690
704
 
691
- "@inquirer/number@npm:^4.2.4":
692
- version: 4.2.4
693
- resolution: "@inquirer/number@npm:4.2.4"
705
+ "@inquirer/number@npm:^4.2.5":
706
+ version: 4.2.5
707
+ resolution: "@inquirer/number@npm:4.2.5"
694
708
  dependencies:
695
- "@inquirer/core": "npm:^12.0.4"
709
+ "@inquirer/core": "npm:^12.0.5"
696
710
  "@inquirer/type": "npm:4.2.0"
697
711
  peerDependencies:
698
712
  "@types/node": ">=18"
699
713
  peerDependenciesMeta:
700
714
  "@types/node":
701
715
  optional: true
702
- checksum: 10c0/499638b80b68f85bf09f031fd85a7c7b5387aa8bb2ebd3fd62f0f499a5f3fec9974bea159eb112da20a00fb437c1146d1612900af8ed203495d82c9d1997af42
716
+ checksum: 10c0/01d800d09f0812085683187ede7ee788286fda104af87701480c6bf4e362b8788c3a0b9dc6d5dcff371c753f42708e27cbabaceb5dec3609f89ea78edeffdd84
703
717
  languageName: node
704
718
  linkType: hard
705
719
 
706
- "@inquirer/password@npm:^5.2.3":
707
- version: 5.2.3
708
- resolution: "@inquirer/password@npm:5.2.3"
720
+ "@inquirer/password@npm:^5.2.4":
721
+ version: 5.2.4
722
+ resolution: "@inquirer/password@npm:5.2.4"
709
723
  dependencies:
710
724
  "@inquirer/ansi": "npm:^2.0.9"
711
- "@inquirer/core": "npm:^12.0.4"
725
+ "@inquirer/core": "npm:^12.0.5"
712
726
  "@inquirer/type": "npm:4.2.0"
713
727
  peerDependencies:
714
728
  "@types/node": ">=18"
715
729
  peerDependenciesMeta:
716
730
  "@types/node":
717
731
  optional: true
718
- checksum: 10c0/27e18e232f4e1b093232dc1781e7aacab7c6e69d0a87f9ab1bfe1ac507b0a2b5349bdc6a38b437fd8a287533d63f4cc9b6035ff9db1b96e72ac09aa40740b946
732
+ checksum: 10c0/dab39df167c8da455eaab4882a70f25f51547eae412ae7c7a4ce7cae3262318d00d5deca48597db10d6e62446ff8822fccaaf95c6b80796552681bca0e040bfe
719
733
  languageName: node
720
734
  linkType: hard
721
735
 
722
- "@inquirer/prompts@npm:^8.7.3":
723
- version: 8.7.3
724
- resolution: "@inquirer/prompts@npm:8.7.3"
736
+ "@inquirer/prompts@npm:^8.7.4":
737
+ version: 8.7.4
738
+ resolution: "@inquirer/prompts@npm:8.7.4"
725
739
  dependencies:
726
- "@inquirer/checkbox": "npm:^5.2.6"
727
- "@inquirer/confirm": "npm:^6.3.3"
728
- "@inquirer/editor": "npm:^5.3.4"
729
- "@inquirer/expand": "npm:^5.1.6"
730
- "@inquirer/input": "npm:^5.1.7"
731
- "@inquirer/number": "npm:^4.2.4"
732
- "@inquirer/password": "npm:^5.2.3"
733
- "@inquirer/rawlist": "npm:^5.3.6"
734
- "@inquirer/search": "npm:^4.3.4"
735
- "@inquirer/select": "npm:^5.2.6"
740
+ "@inquirer/checkbox": "npm:^5.2.7"
741
+ "@inquirer/confirm": "npm:^6.3.4"
742
+ "@inquirer/editor": "npm:^5.3.5"
743
+ "@inquirer/expand": "npm:^5.1.7"
744
+ "@inquirer/input": "npm:^5.1.8"
745
+ "@inquirer/number": "npm:^4.2.5"
746
+ "@inquirer/password": "npm:^5.2.4"
747
+ "@inquirer/rawlist": "npm:^5.3.7"
748
+ "@inquirer/search": "npm:^4.3.5"
749
+ "@inquirer/select": "npm:^5.2.7"
736
750
  peerDependencies:
737
751
  "@types/node": ">=18"
738
752
  peerDependenciesMeta:
739
753
  "@types/node":
740
754
  optional: true
741
- checksum: 10c0/7cc743e993c92768f9319429503e247c1c8f31a392ceb0b80e75a749b49a88b7f283bc418e0f82c3b68626d9607b8102fbf36517befde309d1d3cbe9dceff183
755
+ checksum: 10c0/fbee632baae2de6494c27e54ba3ed5543a1fbb5dd4a56b25cc903bad36d600e305a587ee25757d8d9687f85618876e31830505defea25a26f95db0e264e35798
742
756
  languageName: node
743
757
  linkType: hard
744
758
 
745
- "@inquirer/rawlist@npm:^5.3.6":
746
- version: 5.3.6
747
- resolution: "@inquirer/rawlist@npm:5.3.6"
759
+ "@inquirer/rawlist@npm:^5.3.7":
760
+ version: 5.3.7
761
+ resolution: "@inquirer/rawlist@npm:5.3.7"
748
762
  dependencies:
749
- "@inquirer/core": "npm:^12.0.4"
763
+ "@inquirer/core": "npm:^12.0.5"
750
764
  "@inquirer/type": "npm:4.2.0"
751
765
  peerDependencies:
752
766
  "@types/node": ">=18"
753
767
  peerDependenciesMeta:
754
768
  "@types/node":
755
769
  optional: true
756
- checksum: 10c0/1c95c1242af4ae33a3feebd732258a977e775090c1715cb7995cc6d1990f531f059cdade0c5359bf10a9bc06a72a13d424fac5c50248ca02e1652f43569876df
770
+ checksum: 10c0/16c03b7bbaf4b86389f6c351e98d800c889136ec8c6cd1a9f781f2064dd7240a72aa9e2f3a917bed65a3937df9d8c75993b36c8830bfde5e1ec20e16313c1ced
757
771
  languageName: node
758
772
  linkType: hard
759
773
 
760
- "@inquirer/search@npm:^4.3.4":
761
- version: 4.3.4
762
- resolution: "@inquirer/search@npm:4.3.4"
774
+ "@inquirer/search@npm:^4.3.5":
775
+ version: 4.3.5
776
+ resolution: "@inquirer/search@npm:4.3.5"
763
777
  dependencies:
764
- "@inquirer/core": "npm:^12.0.4"
778
+ "@inquirer/core": "npm:^12.0.5"
765
779
  "@inquirer/figures": "npm:^2.0.9"
766
780
  "@inquirer/type": "npm:4.2.0"
767
781
  peerDependencies:
@@ -769,16 +783,16 @@ __metadata:
769
783
  peerDependenciesMeta:
770
784
  "@types/node":
771
785
  optional: true
772
- checksum: 10c0/d64ad8ca968172cc277409f48a5296f4673a0f97d78f6036de71660717ac8bc830a73ca12a65b87eb0877e9f81691dff323aad1f19e1e62fa56b3e9f28e98e75
786
+ checksum: 10c0/ef1d3f9f3127c67acce10e63b3a29a5b53d193c9f0eee27117e461f06c62d2c5cfed01e57af5597530fc014d80127ce56dabe99350e0f460e738f57b752e3dd7
773
787
  languageName: node
774
788
  linkType: hard
775
789
 
776
- "@inquirer/select@npm:^5.2.6":
777
- version: 5.2.6
778
- resolution: "@inquirer/select@npm:5.2.6"
790
+ "@inquirer/select@npm:^5.2.7":
791
+ version: 5.2.7
792
+ resolution: "@inquirer/select@npm:5.2.7"
779
793
  dependencies:
780
794
  "@inquirer/ansi": "npm:^2.0.9"
781
- "@inquirer/core": "npm:^12.0.4"
795
+ "@inquirer/core": "npm:^12.0.5"
782
796
  "@inquirer/figures": "npm:^2.0.9"
783
797
  "@inquirer/type": "npm:4.2.0"
784
798
  peerDependencies:
@@ -786,7 +800,7 @@ __metadata:
786
800
  peerDependenciesMeta:
787
801
  "@types/node":
788
802
  optional: true
789
- checksum: 10c0/e968035c0934eddd6b28e70377eb281f836f74ec9ad0487978de5048813c0cc555ceb1281d23e112b12d3400cc061b017b4269f331a6cd1233ab1062765a3d3e
803
+ checksum: 10c0/ddb9ae8f9cce41656594258500e92ac5357e8def0e544f2559bd6e09e7b751aa8e807d7563bb6364b18a21d13c2997d3ca9b150fcc6dd1e412c2a607cd306dd3
790
804
  languageName: node
791
805
  linkType: hard
792
806
 
@@ -1265,9 +1279,9 @@ __metadata:
1265
1279
  oxlint: "npm:^0.16.0"
1266
1280
  react: "npm:^19.0.0"
1267
1281
  react-dom: "npm:^19.0.0"
1268
- twenty-client-sdk: "npm:2.50.0"
1269
- twenty-sdk: "npm:2.50.0"
1270
- twenty-ui: "npm:2.50.0"
1282
+ twenty-client-sdk: "npm:2.51.1"
1283
+ twenty-sdk: "npm:2.51.1"
1284
+ twenty-ui: "npm:2.51.1"
1271
1285
  typescript: "npm:^5.9.3"
1272
1286
  vite-tsconfig-paths: "npm:^4.2.1"
1273
1287
  vitest: "npm:^4.0.0"
@@ -1507,6 +1521,13 @@ __metadata:
1507
1521
  languageName: node
1508
1522
  linkType: hard
1509
1523
 
1524
+ "date-fns@npm:^4.1.0":
1525
+ version: 4.4.0
1526
+ resolution: "date-fns@npm:4.4.0"
1527
+ checksum: 10c0/988f0a13db183f5dfc85c36bbb6847a9c135a9225888bbea4005876ec15539a8613c21a07370a4e7ea543918d5a1cafb423c528b42cdbbde5fdfddb178126b21
1528
+ languageName: node
1529
+ linkType: hard
1530
+
1510
1531
  "debug@npm:4, debug@npm:^4.1.1":
1511
1532
  version: 4.4.3
1512
1533
  resolution: "debug@npm:4.4.3"
@@ -2016,12 +2037,12 @@ __metadata:
2016
2037
  linkType: hard
2017
2038
 
2018
2039
  "inquirer@npm:^14.0.0":
2019
- version: 14.2.3
2020
- resolution: "inquirer@npm:14.2.3"
2040
+ version: 14.2.4
2041
+ resolution: "inquirer@npm:14.2.4"
2021
2042
  dependencies:
2022
2043
  "@inquirer/ansi": "npm:^2.0.9"
2023
- "@inquirer/core": "npm:^12.0.4"
2024
- "@inquirer/prompts": "npm:^8.7.3"
2044
+ "@inquirer/core": "npm:^12.0.5"
2045
+ "@inquirer/prompts": "npm:^8.7.4"
2025
2046
  "@inquirer/type": "npm:4.2.0"
2026
2047
  mute-stream: "npm:^3.0.0"
2027
2048
  run-async: "npm:^4.0.6"
@@ -2030,7 +2051,7 @@ __metadata:
2030
2051
  peerDependenciesMeta:
2031
2052
  "@types/node":
2032
2053
  optional: true
2033
- checksum: 10c0/82255f18a7cca1970d5e7366f097a5b6f7d96c78472f14d5208674bf3e81e3b26e11f71cebda7a03dd1904268a8b6db60d5442ac960c3c534f16a3f8eb8ea757
2054
+ checksum: 10c0/33dc3831104f60666988fa7cef839fd17de0f5eac4b4cd4d43068f23b07baa2828bda1ec0412bcca1c5ec51c4d6a361505b6bcfe9d038d32979da03f837ab193
2034
2055
  languageName: node
2035
2056
  linkType: hard
2036
2057
 
@@ -2414,13 +2435,13 @@ __metadata:
2414
2435
  linkType: hard
2415
2436
 
2416
2437
  "postcss@npm:^8.5.29":
2417
- version: 8.5.30
2418
- resolution: "postcss@npm:8.5.30"
2438
+ version: 8.5.31
2439
+ resolution: "postcss@npm:8.5.31"
2419
2440
  dependencies:
2420
2441
  nanoid: "npm:^3.3.20"
2421
2442
  picocolors: "npm:^1.1.1"
2422
2443
  source-map-js: "npm:^1.2.2"
2423
- checksum: 10c0/219cdc50ba3f2b6d0f8b779c4939514cb9d9f53cc9eb92dae1a06f2d6eb910b2ce339a3ee93e7c893b89e50241509fd92c04f0639af1cdf41a1e13983a476029
2444
+ checksum: 10c0/52f94c6655f86f568a803ce9c8eb3c749e109cc711d26644c4cde953b30c1b947a2f25af3b9453de68584ac655572f46ed8e830b8ab2f21dd226b3f640992e00
2424
2445
  languageName: node
2425
2446
  linkType: hard
2426
2447
 
@@ -2459,6 +2480,24 @@ __metadata:
2459
2480
  languageName: node
2460
2481
  linkType: hard
2461
2482
 
2483
+ "react-datepicker@npm:^9.1.0":
2484
+ version: 9.1.0
2485
+ resolution: "react-datepicker@npm:9.1.0"
2486
+ dependencies:
2487
+ "@floating-ui/react": "npm:^0.27.15"
2488
+ clsx: "npm:^2.1.1"
2489
+ date-fns: "npm:^4.1.0"
2490
+ peerDependencies:
2491
+ date-fns-tz: ^3.0.0
2492
+ react: ^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc
2493
+ react-dom: ^16.9.0 || ^17 || ^18 || ^19 || ^19.0.0-rc
2494
+ peerDependenciesMeta:
2495
+ date-fns-tz:
2496
+ optional: true
2497
+ checksum: 10c0/43b58b08f9e4f289a31f2a2dbd0e246e396ad44ebfea4ed8d1393de2a6bded2dad9c2002cfcf70dfbe51aabf5f886b12b1aae8463c5bc35d67b1b22733a8a0f9
2498
+ languageName: node
2499
+ linkType: hard
2500
+
2462
2501
  "react-dom@npm:^19.0.0, react-dom@npm:^19.2.0":
2463
2502
  version: 19.3.1
2464
2503
  resolution: "react-dom@npm:19.3.1"
@@ -2819,6 +2858,13 @@ __metadata:
2819
2858
  languageName: node
2820
2859
  linkType: hard
2821
2860
 
2861
+ "tabbable@npm:^6.0.0":
2862
+ version: 6.5.0
2863
+ resolution: "tabbable@npm:6.5.0"
2864
+ checksum: 10c0/7d778af05a3093800265831198cad9d0024f3d65cdd4405007490f7430b42ff4e80060b4679f45281fb96ddbddc5fb895e8ea36e3ebdc811051e14acc9c7c02c
2865
+ languageName: node
2866
+ linkType: hard
2867
+
2822
2868
  "tagged-tag@npm:^1.0.0":
2823
2869
  version: 1.0.0
2824
2870
  resolution: "tagged-tag@npm:1.0.0"
@@ -2912,22 +2958,22 @@ __metadata:
2912
2958
  languageName: node
2913
2959
  linkType: hard
2914
2960
 
2915
- "twenty-client-sdk@npm:2.50.0":
2916
- version: 2.50.0
2917
- resolution: "twenty-client-sdk@npm:2.50.0"
2961
+ "twenty-client-sdk@npm:2.51.1":
2962
+ version: 2.51.1
2963
+ resolution: "twenty-client-sdk@npm:2.51.1"
2918
2964
  dependencies:
2919
2965
  "@genql/runtime": "npm:^2.10.0"
2920
2966
  esbuild: "npm:^0.28.1"
2921
2967
  graphql: "npm:^16.8.1"
2922
2968
  lodash: "npm:^4.17.21"
2923
2969
  prettier: "npm:^3.8.3"
2924
- checksum: 10c0/d1a545e9f986747dcf30efbb37dbf8a6a0da773a2c91ef83cc04cf7c4a90767d7bfbb223dacc293e7f5f8fdcfe431c67690d838ff9553eb24dec0c897d75dd66
2970
+ checksum: 10c0/9e271c43448286fde8aac9502bcf11b58f0a885f398af8075ab92889d79d57f17a6c56663acb41a4c383d7026d331e974792a765963973617fc2da05494ddf22
2925
2971
  languageName: node
2926
2972
  linkType: hard
2927
2973
 
2928
- "twenty-sdk@npm:2.50.0":
2929
- version: 2.50.0
2930
- resolution: "twenty-sdk@npm:2.50.0"
2974
+ "twenty-sdk@npm:2.51.1":
2975
+ version: 2.51.1
2976
+ resolution: "twenty-sdk@npm:2.51.1"
2931
2977
  dependencies:
2932
2978
  "@sniptt/guards": "npm:^0.2.0"
2933
2979
  axios: "npm:^1.16.0"
@@ -2946,24 +2992,25 @@ __metadata:
2946
2992
  semver: "npm:7.6.3"
2947
2993
  sharp: "npm:^0.35.5"
2948
2994
  tinyglobby: "npm:^0.2.15"
2949
- twenty-client-sdk: "npm:2.50.0"
2995
+ twenty-client-sdk: "npm:2.51.1"
2950
2996
  typescript: "npm:^5.9.3"
2951
2997
  uuid: "npm:^13.0.2"
2952
2998
  bin:
2953
2999
  twenty: dist/cli.cjs
2954
- checksum: 10c0/82238005a797f009f615bce730e0fb7066c76e673e3153332a0d3b6cf5a4fb5794c8e2140e698c4b8004e683483082371d74dea8d21a7f8b8959823d90376152
3000
+ checksum: 10c0/d5a8915ec8e54c2d063d47eeb4b31fe531230a3e6c98bf54997891b93731a363656013042e996d13dbf5fc373fc64a642b5b73eee13523856ca2d822654eb2cf
2955
3001
  languageName: node
2956
3002
  linkType: hard
2957
3003
 
2958
- "twenty-ui@npm:2.50.0":
2959
- version: 2.50.0
2960
- resolution: "twenty-ui@npm:2.50.0"
3004
+ "twenty-ui@npm:2.51.1":
3005
+ version: 2.51.1
3006
+ resolution: "twenty-ui@npm:2.51.1"
2961
3007
  dependencies:
2962
3008
  "@base-ui/react": "npm:^1.9.0"
2963
3009
  "@base-ui/utils": "npm:0.5.0"
2964
3010
  "@sniptt/guards": "npm:^0.2.0"
2965
3011
  "@tabler/icons-react": "npm:^3.31.0"
2966
3012
  clsx: "npm:^2.1.1"
3013
+ react-datepicker: "npm:^9.1.0"
2967
3014
  type-fest: "npm:^4.10.1"
2968
3015
  zod: "npm:^4.1.11"
2969
3016
  peerDependencies:
@@ -2976,7 +3023,7 @@ __metadata:
2976
3023
  optional: true
2977
3024
  monaco-editor:
2978
3025
  optional: true
2979
- checksum: 10c0/00d89bc173cab13eeee4666ce2608dd8590d94428453d9fcfb2df5f9c3057adbe306df4a50a2b9fa2f76de3353384503d1679cbf3492a32afac5ddca2a49cc73
3026
+ checksum: 10c0/483d907aa7b16dfac0d6021e3161e422b4e9e4535987d240e5391b370ac90fbc02e00dadd8b6098ae1106425cfcfdd88e92da3dce58ee40304d4350df65f9519
2980
3027
  languageName: node
2981
3028
  linkType: hard
2982
3029
 
@@ -3031,9 +3078,9 @@ __metadata:
3031
3078
  linkType: hard
3032
3079
 
3033
3080
  "undici@npm:^8.4.1":
3034
- version: 8.12.2
3035
- resolution: "undici@npm:8.12.2"
3036
- checksum: 10c0/25b0e0a69585b2b2e2678fdcd07942bbe15b14c6686d496712b0ee37ce15753af90ab7335ee42c8e65ec60b72bf3a21adc72bbabf86c1eaca74f27a3779532de
3081
+ version: 8.12.3
3082
+ resolution: "undici@npm:8.12.3"
3083
+ checksum: 10c0/714919e62b4160eea195fb35c7f5c4907235741e47bfde8a014ac58f6d24df13434e23400d7f48e2c455fd2b259d27f07fce514f04a5b4e99936ba62cbc4bb71
3037
3084
  languageName: node
3038
3085
  linkType: hard
3039
3086
 
@@ -1 +1 @@
1
- const e=require("./chunks/build-CX6FBrbu.cjs"),t=require("./chunks/constants-BAi8jZf9-C7iTUxcn.cjs");var n=e.t(),r=5e3,i=new AbortController,a,o=e=>{if(t.v(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,n.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,n.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,n.isNonEmptyString)(e.appPath)||!t.v(e.target)||!(0,n.isNonEmptyString)(e.target.apiUrl)||!(0,n.isNonEmptyString)(e.target.workspaceId)||!t.v(e.applicationExport)||!t.v(e.applicationExport.application)||!(0,n.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,n.isNonEmptyString)(e.appPath)&&(!t.Vt(e.locale)||(0,n.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,n.isNonEmptyString)(e.appPath)&&(0,n.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},s=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},c=async()=>{if(!t.Vt(a))return null;let{snapshotApi:e,buildId:n}=a;return a=void 0,e.releaseSourceSnapshot({buildId:n})},l=()=>{c().then(()=>process.exit(1),()=>process.exit(1))},u=e=>{if(!process.connected){l();return}process.send?.(e)},d=e=>{if(!(!t.v(e)||e.success!==!0||!t.v(e.data)))return(0,n.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},f=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let o=i.signal,s=await e.buildSourceSnapshot({appPath:n,signal:o}),c=d(s);return t.Vt(c)?r?(a={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}},p=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,n.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,n.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&t.v(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{i.abort(),setTimeout(()=>process.exit(1),r),t.Vt(a)&&l()}),process.on(`message`,e=>{let n=o(e);if(!t.Vt(n)){s({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){i.abort();return}if(n.type===`release`){c().then(e=>s({type:`released`,release:e}),e=>s(p(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-DqAHeLk7.cjs")).then(async({pullSource:e})=>{s({type:`result`,result:await e({...n,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-Cqb4LMAC.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>f({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-CSE6DsGE.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-DWzR6mUU.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?u(e):s(e),e=>s(p(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-P6akOoSs.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-CZW5S9vg.cjs")).then(async({extractSourceTranslations:e})=>{s({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-BeFnnS85.cjs")).then(async({buildSourceManifest:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-SwqTRFjJ.cjs")).then(async({readSourceIdentity:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-9tS8r18c.cjs")).then(async({generateApplicationClient:e})=>{s({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}});
1
+ const e=require("./chunks/build-CX6FBrbu.cjs"),t=require("./chunks/constants-D-caeNc5-9rDzSg5B.cjs");var n=e.t(),r=5e3,i=new AbortController,a,o=e=>{if(t.u(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,n.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,n.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,n.isNonEmptyString)(e.appPath)||!t.u(e.target)||!(0,n.isNonEmptyString)(e.target.apiUrl)||!(0,n.isNonEmptyString)(e.target.workspaceId)||!t.u(e.applicationExport)||!t.u(e.applicationExport.application)||!(0,n.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,n.isNonEmptyString)(e.appPath)&&(!t.Ut(e.locale)||(0,n.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,n.isNonEmptyString)(e.appPath)&&(0,n.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},s=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},c=async()=>{if(!t.Ut(a))return null;let{snapshotApi:e,buildId:n}=a;return a=void 0,e.releaseSourceSnapshot({buildId:n})},l=()=>{c().then(()=>process.exit(1),()=>process.exit(1))},u=e=>{if(!process.connected){l();return}process.send?.(e)},d=e=>{if(!(!t.u(e)||e.success!==!0||!t.u(e.data)))return(0,n.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},f=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let o=i.signal,s=await e.buildSourceSnapshot({appPath:n,signal:o}),c=d(s);return t.Ut(c)?r?(a={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}},p=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,n.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,n.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&t.u(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{i.abort(),setTimeout(()=>process.exit(1),r),t.Ut(a)&&l()}),process.on(`message`,e=>{let n=o(e);if(!t.Ut(n)){s({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){i.abort();return}if(n.type===`release`){c().then(e=>s({type:`released`,release:e}),e=>s(p(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-BKm8k5WI.cjs")).then(async({pullSource:e})=>{s({type:`result`,result:await e({...n,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-BWbLS2F3.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>f({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-CS4oNP1F.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-CmF0bbqm.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?u(e):s(e),e=>s(p(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-dVtzoMDg.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-DeVUs6Xz.cjs")).then(async({extractSourceTranslations:e})=>{s({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-BmZlsY97.cjs")).then(async({buildSourceManifest:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-BM-MsOjA.cjs")).then(async({readSourceIdentity:e})=>{s({type:`result`,result:await e({appPath:n.appPath,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-B3Fen9_7.cjs")).then(async({generateApplicationClient:e})=>{s({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:i.signal}),isSnapshotHeld:!1})}).catch(e=>s(p(e)));return}});
@@ -0,0 +1,5 @@
1
+ const e=require("./build-CX6FBrbu.cjs"),t=require("./utils-CvvLHbc4-CKDJ1YgX.cjs"),n=require("./constants-D-caeNc5-9rDzSg5B.cjs");function r(e){if(!n.gt(e))throw TypeError(`Invalid UUID`);let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}function i(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}var a=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,o=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function s(e,t,a,o,s,c){let l=typeof a==`string`?i(a):a,u=typeof o==`string`?r(o):o;if(typeof o==`string`&&(o=r(o)),o?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=t(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return n.ht(d)}function c(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function l(e,t){return e<<t|e>>>32-t}function u(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,a=Math.ceil(i/16),o=Array(a);for(let t=0;t<a;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];o[t]=n}o[a-1][14]=(e.length-1)*8/2**32,o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<a;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=o[e][t];for(let e=16;e<80;++e)r[e]=l(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],a=n[1],s=n[2],u=n[3],d=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=l(i,5)+c(n,a,s,u)+d+t[n]+r[e]>>>0;d=u,u=s,s=l(a,30)>>>0,a=i,i=o}n[0]=n[0]+i>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+u>>>0,n[4]=n[4]+d>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function d(e,t,n,r){return s(80,u,e,t,n,r)}d.DNS=a,d.URL=o;function f(e){if(!n.gt(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}function p(e){return e instanceof Boolean||typeof e==`boolean`}function m(e){return e instanceof String||typeof e==`string`}function ee(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&!Array.isArray(e)}var te=[`choice`,`score`,`boolean`],ne=/^[a-zA-Z0-9_.-]{1,64}$/,re=e=>ne.test(e),h=e.t(),g=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}({}),_=`trigger`,ie=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},ae=/{{([^{}]+)}}/g;function*v(e){if((0,h.isString)(e)){for(let[,t]of e.matchAll(ae))n.Ut(t)&&(yield t);return}if((0,h.isObject)(e))for(let t of Object.values(e))yield*v(t)}var oe=e=>[...v(e)],se=(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]},ce=e=>{if(!n.Ut(e)||!ee(e)||Array.isArray(e))return!1;let t=Object.values(e);return t.length===0?!1:t.every(e=>n.Ut(e)&&ee(e)&&p(e.isLeaf))},y=(e,t=[])=>{let n=[];if(!(0,h.isObject)(e))return n;for(let[r,i]of Object.entries(e)){if(!(0,h.isObject)(i))continue;let e=[...t,r];n.push(e.join(`.`)),!i.isLeaf&&(0,h.isObject)(i.value)&&n.push(...y(i.value,e))}return n},le=({schema:e,propertyPath:t})=>{let r=e;for(let e=0;e<t.length;e++){let i=t[e];if(!n.Ut(i))return;if(!(0,h.isObject)(r))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:[]};let a=r[i];if(!n.Ut(a))return{validPrefix:t.slice(0,e),failedSegment:i,availableKeys:Object.keys(r)};if(a.isLeaf){let r=t[e+1];return n.Ut(r)?{validPrefix:t.slice(0,e+1),failedSegment:r,availableKeys:[]}:void 0}r=a.value}},b={found:!1},x=e=>n.u(e)&&p(e.isLeaf),S=e=>n.u(e)&&e._outputSchemaType===`RECORD`&&n.u(e.fields),C=e=>n.u(e)&&!(`_outputSchemaType`in e)&&x(e.first)&&e.first.isLeaf===!1&&S(e.first.value)&&x(e.totalCount),w=e=>({found:!0,type:m(e.type)?e.type:void 0,label:m(e.label)?e.label:void 0}),ue=(e,t)=>t.length===0?w(e):T(e.value,t),de=(e,t)=>{for(let n=1;n<=t.length;n++){let r=e[t.slice(0,n).join(`.`)];if(x(r))return ue(r,t.slice(n))}return b},fe=(e,t)=>{let[n,...r]=t;if(n===`first`)return r.length===0?w(e.first):T(e.first.value,r);if(n===`all`||n===`totalCount`){let t=e[n];return r.length===0&&x(t)?w(t):b}return b},pe=(e,t)=>{let[r,...i]=t;if(!n.Ut(r))return b;let a=e[r];return x(a)?ue(a,i):n.Ut(a)?i.length===0?{found:!0}:n.u(a)?pe(a,i):b:b},T=(e,t)=>t.length===0||!n.u(e)?b:S(e)?de(e.fields,t):C(e)?fe(e,t):pe(e,t),me=({schema:e,propertyPath:t})=>T(e,t),E=e=>{let t=[];for(let[r,i]of Object.entries(e))if(x(i)){if(t.push(r),i.isLeaf)continue;let e=i.value;if(S(e))for(let n of E(e.fields))t.push(`${r}.${n}`);else if(n.u(e))for(let n of E(e))t.push(`${r}.${n}`)}else if(n.Ut(i)&&(t.push(r),n.u(i)))for(let e of E(i))t.push(`${r}.${e}`);return t},D=e=>{if(!n.u(e))return[];if(S(e))return E(e.fields);if(C(e)){let t=[];if(x(e.first)){t.push(`first`);for(let n of D(e.first.value))t.push(`first.${n}`)}return n.Ut(e.all)&&t.push(`all`),t.push(`totalCount`),t}return E(e)},he=3,O=e=>n.u(e)?e._outputSchemaType===`RECORD`?!0:Object.values(e).some(e=>n.u(e)&&O(e.value)):!1,k=(e,t)=>t.map(t=>({candidate:t,distance:se(e,t)})).filter(({candidate:e,distance:t})=>t<=Math.ceil(e.length/2)).sort((e,t)=>e.distance-t.distance).slice(0,he).map(({candidate:e})=>e),ge=({schema:e,propertyPath:t,referencedStepId:r})=>{if(!ce(e)||O(e)){let n=D(e);return k(t.join(`.`),n).map(e=>[r,e].join(`.`))}let i=le({schema:e,propertyPath:t});if(!n.Ut(i))return[];let a=k(i.failedSegment,i.availableKeys).map(e=>[r,...i.validPrefix,e].join(`.`));if((0,h.isNonEmptyArray)(a))return a;let o=y(e);return k(t.join(`.`),o).map(e=>[r,e].join(`.`))},_e=({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=oe(o.settings?.input),c=t.ancestorsByStepId.get(o.id)??new Set;for(let t of s){let s=ie(t),l=s[0];if(!n.Ut(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===_;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(...ve({step:o,variable:t,pathSegments:s,referencedStepId:l,isTriggerReference:u,trigger:e.trigger,stepsById:r}))}}return i},ve=({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.Ut(l)&&(0,h.isObject)(l)&&!Array.isArray(l)&&Object.keys(l).length===0;if(!n.Ut(l)||u)return[];if(!me({schema:l,propertyPath:c}).found){let r=ge({schema:l,propertyPath:c,referencedStepId:i}),a=be(l,i),o=(0,h.isNonEmptyArray)(r)?`Did you mean "{{${r[0]}}}"?${r.length>1?` Other options: ${r.slice(1).map(e=>`{{${e}}}`).join(`, `)}.`:``}`:(0,h.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.Ut(o)?{hint:o}:{},...(0,h.isNonEmptyArray)(r)?{suggestions:r}:{},...(0,h.isNonEmptyArray)(a)?{availablePaths:a}:{}}]}return[]},ye=20,be=(e,t)=>D(e).slice(0,ye).map(e=>`${t}.${e}`),xe=n.Nt({type:n.kt(`object`),properties:n.Ft(n.Lt(),n.Nt({type:n.bt([`string`,`number`,`boolean`]),description:n.Lt().optional()})).refine(e=>Object.keys(e).every(re),{message:`Output field names can only contain letters, numbers, underscores, dots or hyphens (max 64 characters)`}),required:n.Ct(n.Lt()).optional(),additionalProperties:n.kt(!1).optional()}),Se=n.Tt(`type`,[n.Nt({type:n.kt(`text`)}),n.Nt({type:n.kt(`json`),schema:xe})]),A=[1e3,5e3,15e3],j=n.Nt({input:n.At({}).describe(`Input data for the workflow action. Structure depends on the action type.`),outputSchema:n.At({}).describe(`Schema defining the output data structure. This data can be referenced in subsequent steps using {{stepId.fieldName}}.`),errorHandlingOptions:n.Nt({retryOnFailure:n.Nt({value:n.Pt(e=>typeof e==`boolean`?Number(e):e,n.Mt().int().min(0).max(A.length).describe(`How many times to retry the action if it fails, between 0 and ${A.length}. 0 disables retries.`))}),continueOnFailure:n.Nt({value:n.wt().describe(`Whether to continue to the next step if this action fails.`)})})}),Ce={expectedOutputSchema:n.At({}).optional().describe(`A sample output value declared by the user for steps whose output structure is only known at runtime.`)},we=j.extend({input:n.Nt({url:n.Lt(),method:n.bt([`GET`,`POST`,`PUT`,`PATCH`,`DELETE`]),headers:n.Ft(n.Lt(),n.Lt()).optional(),body:n.Ft(n.Lt(),n.Rt([n.Lt(),n.Mt(),n.wt(),n.xt(),n.Ct(n.Rt([n.Lt(),n.Mt(),n.wt(),n.xt()]))])).or(n.Lt()).optional()}),...Ce}),Te=/^[a-zA-Z0-9_-]{1,64}$/,Ee=n.Nt({id:n.Bt().describe(`Stable identifier for this criterion row.`),name:n.Lt().describe(`Option name for a choice question, or the label of one score level.`),description:n.Lt().optional().describe(`What the model should understand this option to mean.`)}),De=n.Nt({id:n.Bt().describe(`Stable identifier for this question row.`),name:n.Lt().regex(Te,`Answer name must be empty or contain 1 to 64 characters using only letters, digits, underscores and dashes`).or(n.kt(``)).describe(`Answer key for this question, made of letters, digits, underscores and dashes. Downstream steps read {{stepId.answers.<name>}}.`),type:n.bt(te).describe(`choice picks one option, score grades an ordered rubric, boolean estimates the probability that a statement holds.`),instructions:n.Lt().describe(`What the model should decide about the shared state.`),criteria:n.Ct(Ee).describe(`Options for a choice question, or ordered levels (lowest first) for a score question. Empty for boolean.`)}),Oe=j.extend({input:n.Nt({state:n.Lt().describe(`The shared state every question is asked about. Supports variables.`),questions:n.Ct(De)})}),ke=j.extend({input:n.Nt({items:n.Rt([n.Ct(n.Rt([n.Lt(),n.Mt(),n.wt(),n.xt(),n.Ft(n.Lt(),n.St()),n.St()])),n.Lt()]).optional(),initialLoopStepIds:n.Ct(n.Lt()).optional(),shouldContinueOnIterationFailure:n.wt().optional()})}),Ae=j.extend({input:n.Nt({delayType:n.bt([`SCHEDULED_DATE`,`DURATION`]),scheduledDateTime:n.Lt().nullable().optional(),duration:n.Nt({days:n.Rt([n.Mt().min(0),n.Lt()]).optional(),hours:n.Rt([n.Mt().min(0),n.Lt()]).optional(),minutes:n.Rt([n.Mt().min(0),n.Lt()]).optional(),seconds:n.Rt([n.Mt().min(0),n.Lt()]).optional()}).optional()})}),je=j.extend({input:n.Nt({eventName:n.Lt().describe(`Event to wait for, in format objectName.action (e.g., "company.updated", "task.created", "person.deleted").`),recordId:n.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:n.Ct(n.Lt()).nullable().optional().describe(`For update events, only resume when one of these fields changed.`),timeout:n.Nt({days:n.Rt([n.Mt().min(0),n.Lt()]).optional(),hours:n.Rt([n.Mt().min(0),n.Lt()]).optional(),minutes:n.Rt([n.Mt().min(0),n.Lt()]).optional()}).nullable().optional().describe(`Stop waiting after this duration. The step then succeeds with hasTimedOut set to true.`)})}),Me=j.extend({input:n.Nt({})}),M=n.Ft(n.Lt(),n.St()).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}}"}}`),Ne=j.extend({input:n.Nt({objectName:n.Lt().describe(`The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").`),objectRecord:M.describe(`The record data to create.`)})}),Pe=j.extend({input:n.Nt({objectName:n.Lt(),objectRecord:M,objectRecordId:n.Lt(),fieldsToUpdate:n.Ct(n.Lt())})}),Fe=j.extend({input:n.Nt({objectName:n.Lt(),objectRecord:M})}),Ie=j.extend({input:n.Nt({objectName:n.Lt(),objectRecordId:n.Lt()})}),N=n.Nt({id:n.Lt(),logicalOperator:n.bt(n.dt),parentRecordFilterGroupId:n.Lt().nullable().optional(),positionInRecordFilterGroup:n.Mt().nullable().optional()}),P=n.Nt({id:n.Lt().optional(),fieldMetadataId:n.Lt(),operand:n.bt(n.B),value:n.Lt().nullable().optional(),recordFilterGroupId:n.Lt().nullable().optional(),positionInRecordFilterGroup:n.Mt().nullable().optional(),subFieldName:n.Lt().nullable().optional(),relationTargetFieldMetadataId:n.Lt().nullable().optional()}),F=n.Lt().regex(/^{{[^{}]+}}$/,`Expected a workflow variable reference like {{stepId.path}}`),Le=j.extend({input:n.Nt({objectName:n.Lt(),limit:n.Rt([n.Mt(),F]).optional(),offset:n.Rt([n.Mt().int().nonnegative(),F]).optional(),filter:n.Nt({recordFilterGroups:n.Ct(N).optional(),recordFilters:n.Ct(P).optional()}).optional(),orderBy:n.Nt({recordSorts:n.Ct(n.St()).optional(),gqlOperationOrderBy:n.Ct(n.Ft(n.Lt(),n.St())).optional()}).optional()})}),Re=n.Nt({id:n.Lt(),name:n.Lt(),label:n.Lt(),type:n.Rt([n.kt(n.ct.TEXT),n.kt(n.ct.NUMBER),n.kt(n.ct.DATE),n.kt(n.ct.SELECT),n.kt(n.ct.MULTI_SELECT),n.kt(`RECORD`)]),placeholder:n.Lt().optional(),settings:n.Ft(n.Lt(),n.St()).optional(),value:n.St().optional()}),ze=j.extend({input:n.Ct(Re),instructions:n.Lt().optional()}),I=n.Nt({id:n.Lt(),logicalOperator:n.bt(n.V),parentStepFilterGroupId:n.Lt().optional(),positionInStepFilterGroup:n.Mt().optional()}),L=n.Nt({id:n.Lt(),type:n.Lt(),stepOutputKey:n.Lt(),operand:n.bt(n.B).or(n.bt(n.J)),value:n.Lt(),stepFilterGroupId:n.Lt(),positionInStepFilterGroup:n.Mt().optional(),fieldMetadataId:n.Lt().optional(),compositeFieldSubFieldName:n.Lt().optional()}),Be=j.extend({input:n.Nt({stepFilterGroups:n.Ct(I),stepFilters:n.Ct(L)})}),Ve=n.Nt({id:n.Lt(),nextStepIds:n.Ct(n.Lt()),filterGroupId:n.Lt().optional()}),He=j.extend({input:n.Nt({stepFilterGroups:n.Ct(I),stepFilters:n.Ct(L),branches:n.Ct(Ve)})}),R=n.bt([`RANDOM`,`ROUND_ROBIN`,`LOAD_BALANCED`]);j.extend({input:n.Nt({objectName:n.Lt(),strategy:R,recordIds:n.Ct(n.Lt()),loadBalance:n.Nt({objectNameSingular:n.Lt(),fieldName:n.Lt()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.Ut(e.loadBalance)&&t.addIssue({code:n.yt.custom,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})});var z=n.Nt({name:n.Lt().optional().describe(`Human-readable name for the trigger. Optional but recommended for clarity.`),type:n.bt([`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:n.Nt({x:n.Mt(),y:n.Mt()}).optional().nullable().describe(`Position coordinates for the trigger in the workflow diagram. Use (0, 0) for the trigger step.`),nextStepIds:n.Ct(n.Lt()).optional().nullable().describe(`Array of step IDs that the trigger connects to. These are the first steps in the workflow.`)}),Ue=z.extend({type:n.kt(`CRON`),settings:n.Tt(`type`,[n.Nt({type:n.kt(`DAYS`),schedule:n.Nt({day:n.Mt().min(1),hour:n.Mt().min(0).max(23),minute:n.Mt().min(0).max(59)}),outputSchema:n.At({})}),n.Nt({type:n.kt(`HOURS`),schedule:n.Nt({hour:n.Mt().min(1),minute:n.Mt().min(0).max(59)}),outputSchema:n.At({})}),n.Nt({type:n.kt(`MINUTES`),schedule:n.Nt({minute:n.Mt().min(1).max(60)}),outputSchema:n.At({})}),n.Nt({type:n.kt(`CUSTOM`),pattern:n.Lt(),outputSchema:n.At({})})])}),We=z.extend({type:n.kt(`WEBHOOK`),settings:n.Tt(`httpMethod`,[n.Nt({outputSchema:n.At({}),httpMethod:n.kt(`GET`),authentication:n.kt(`API_KEY`).nullable()}),n.Nt({outputSchema:n.At({}),expectedOutputSchema:n.At({}).optional(),httpMethod:n.kt(`POST`),expectedBody:n.At({}),authentication:n.kt(`API_KEY`).nullable()})])}),Ge=e=>{let t=e.settings?.input;return e.type===g.IF_ELSE&&(0,h.isObject)(t)&&`branches`in t&&Array.isArray(t.branches)},B=e=>{let t=e.settings?.input;return e.type===g.ITERATOR&&(0,h.isObject)(t)&&`initialLoopStepIds`in t&&(0,h.isNonEmptyArray)(t.initialLoopStepIds)},Ke=e=>{let t=e.settings?.input;if(n.Ut(t)&&(0,h.isObject)(t))return t},qe=e=>{let t=new Set(e.nextStepIds??[]);if(Ge(e))for(let n of e.settings.input.branches??[])for(let e of n?.nextStepIds??[])t.add(e);if(B(e))for(let n of e.settings.input.initialLoopStepIds??[])t.add(n);return[...t]},Je=({trigger:e,steps:t})=>{let r=new Map,i=n.Ut(e?.nextStepIds)?e.nextStepIds.filter(n.Ut):[];r.set(_,i);for(let e of t??[])r.set(e.id,qe(e));let a=new Set,o=[_];for(;o.length>0;){let e=o.shift();if(!(!n.Ut(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:Ye(r)}},Ye=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},Xe=({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.Ut(d)||a.has(f))return;i.add(e),B(d)&&(d.settings.input.initialLoopStepIds??[]).forEach(t=>s(t,[...c,e],e));let p=d.type===g.ITERATOR?d.nextStepIds??[]:t.childrenByStepId.get(e)??[];n.Ut(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},Ze=({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.Ut);t.n(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(...Qe(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},Qe=e=>{let t=[],r=Ke(e);if(e.type===g.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.Ut).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.Ut(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===g.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},$e=`20202020-64aa-4b6f-b003-9c74b97cee20`,V=({entityNamespace:e,value:t,applicationUniversalIdentifier:n})=>d(`${e}:${t}`,n),et=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n})=>V({entityNamespace:`fieldMetadata`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),H=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n})=>V({entityNamespace:`pageLayout`,value:t?`${t}:${n}`:n,applicationUniversalIdentifier:e}),tt=({objectMetadataApplicationUniversalIdentifier:e,pageLayoutUniversalIdentifier:t,title:n})=>V({entityNamespace:`pageLayoutTab`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),nt=({objectMetadataApplicationUniversalIdentifier:e,pageLayoutTabUniversalIdentifier:t,title:n})=>V({entityNamespace:`pageLayoutWidget`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),rt=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t})=>H({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n.Q.RECORD_PAGE}),it=({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,relationTargetObjectUniversalIdentifier:n})=>V({entityNamespace:`fieldMetadata`,value:`${t}:systemRelation:${n}`,applicationUniversalIdentifier:e}),at=({objectMetadataApplicationUniversalIdentifier:e,viewUniversalIdentifier:t,name:n})=>V({entityNamespace:`viewFieldGroup`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),ot=({fieldMetadataApplicationUniversalIdentifier:e,viewUniversalIdentifier:t,fieldMetadataUniversalIdentifier:n})=>V({entityNamespace:`viewField`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),st={INDEX:`INDEX`,FIELDS_WIDGET:`FIELDS_WIDGET`},ct=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t,viewKey:n})=>V({entityNamespace:`view`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),U=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(U).filter(e=>e!==U.OK&&e!==U.UNKNOWN),n.ct.TEXT,n.ct.ARRAY,n.ct.BOOLEAN,n.ct.DATE,n.ct.DATE_TIME,n.ct.NUMBER,n.ct.NUMERIC,n.ct.RAW_JSON,n.ct.RICH_TEXT,n.ct.SELECT,n.ct.MULTI_SELECT,g.SEND_EMAIL,g.DRAFT_EMAIL,g.CREATE_CALENDAR_EVENT;var lt=`public`,ut=`front-component-shared-dependencies.mjs`,dt=`twenty:front-component-shared-dependencies`;n.Q.RECORD_PAGE,n.Q.DASHBOARD;var ft={js:`import { createRequire as __createRequire } from 'module';
5
+ const require = __createRequire(import.meta.url);`},pt=`.twenty/output`,mt=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,fieldUniversalIdentifier:n})=>V({entityNamespace:`fieldPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),ht=({applicationUniversalIdentifier:e,roleUniversalIdentifier:t,objectUniversalIdentifier:n})=>V({entityNamespace:`objectPermission`,value:`${t}:${n}`,applicationUniversalIdentifier:e}),gt=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:t})=>H({applicationUniversalIdentifier:e,objectUniversalIdentifier:t,name:n.Q.RECORD_FORM}),_t=({pageLayoutTabManifest:e,pageLayoutType:r})=>{let i=e.layoutMode??(r===n.Q.STANDALONE_PAGE?n.ft.VERTICAL_LIST:n.ft.GRID),a=e.widgets??[],o=[];if(!Object.values(n.ft).some(e=>e===i))return{status:`fail`,errors:[`Page layout tab "${e.title}" defines unsupported layoutMode "${i}". Expected GRID, VERTICAL_LIST or CANVAS.`]};for(let t of a){let r=[t.heightBehavior,n.u(t.position)&&`heightBehavior`in t.position?t.position.heightBehavior:void 0].filter(n.Ut);r.length>0&&i!==n.ft.VERTICAL_LIST&&o.push(`Page layout widget "${t.title}" defines heightBehavior, but its parent tab "${e.title}" uses ${i}. heightBehavior is only supported for VERTICAL_LIST tabs.`);for(let e of r)Object.values(n.G).some(t=>t===e)||o.push(`Page layout widget "${t.title}" defines unsupported heightBehavior "${e}". Expected FIT_CONTENT or TAB_VIEWPORT.`)}if(o.length>0)return{status:`fail`,errors:o};let s={...e,layoutMode:i,widgets:a.map(({heightBehavior:e,position:r,gridPosition:a,...o},s)=>{if(n.Ut(r))return{...o,position:r.layoutMode===n.ft.VERTICAL_LIST&&n.Ut(e)?{...r,heightBehavior:e}:r};if(n.Ut(a))return{...o,position:{layoutMode:n.ft.GRID,...a}};switch(i){case n.ft.GRID:return{...o,position:{layoutMode:i,row:0,column:0,rowSpan:n.v.default.h,columnSpan:n.v.default.w}};case n.ft.VERTICAL_LIST:return{...o,position:{layoutMode:i,index:s,...n.Ut(e)?{heightBehavior:e}:{}}};case n.ft.CANVAS:return{...o,position:{layoutMode:i}};default:return t.t(i)}})};for(let e of s.widgets)e.position.layoutMode!==i&&o.push(`Page layout widget "${e.title}" uses a ${e.position.layoutMode} position, but its parent tab "${s.title}" uses ${i}.`);if(i===n.ft.VERTICAL_LIST){let e=s.widgets.filter(({type:e,position:r})=>r.layoutMode===n.ft.VERTICAL_LIST&&t.a({widgetType:e,heightBehavior:r.heightBehavior})===n.G.TAB_VIEWPORT);e.length>1&&o.push(`Page layout tab "${s.title}" can contain only one TAB_VIEWPORT widget.`);let r=e.length===1?e[0]:void 0;n.Ut(r)&&s.widgets.some(e=>e!==r&&e.position.layoutMode===n.ft.VERTICAL_LIST&&r.position.layoutMode===n.ft.VERTICAL_LIST&&e.position.index>=r.position.index)&&o.push(`Page layout tab "${s.title}" must place its TAB_VIEWPORT widget last.`)}return o.length>0?{status:`fail`,errors:o}:{status:`success`,pageLayoutTab:s}},W=[`canReadObjectRecords`,`canUpdateObjectRecords`,`canSoftDeleteObjectRecords`,`canDestroyObjectRecords`],G={canReadObjectRecords:`canReadAllObjectRecords`,canUpdateObjectRecords:`canUpdateAllObjectRecords`,canSoftDeleteObjectRecords:`canSoftDeleteAllObjectRecords`,canDestroyObjectRecords:`canDestroyAllObjectRecords`},K=({role:e,objectUniversalIdentifier:t})=>{let n=e.objectPermissions?.find(e=>e.objectUniversalIdentifier===t);return{canReadObjectRecords:n?.canReadObjectRecords??e[G.canReadObjectRecords]??!1,canUpdateObjectRecords:n?.canUpdateObjectRecords??e[G.canUpdateObjectRecords]??!1,canSoftDeleteObjectRecords:n?.canSoftDeleteObjectRecords??e[G.canSoftDeleteObjectRecords]??!1,canDestroyObjectRecords:n?.canDestroyObjectRecords??e[G.canDestroyObjectRecords]??!1}},vt=e=>JSON.stringify(e,(e,t)=>n.u(t)?Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t))):t),yt=({groupsByUniversalIdentifier:e,predicateGroupUniversalIdentifier:t})=>{let r=[],i=new Set,a=t;for(;n.Ut(a)&&!i.has(a);){i.add(a);let t=e.get(a);if(!n.Ut(t))break;r.push(t.logicalOperator),a=t.parentPredicateGroupUniversalIdentifier}return r},q=({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=>vt({fieldUniversalIdentifier:e.fieldUniversalIdentifier,subFieldName:e.subFieldName??null,operand:e.operand,value:e.value??null,workspaceMemberFieldUniversalIdentifier:e.workspaceMemberFieldUniversalIdentifier??null,workspaceMemberSubFieldName:e.workspaceMemberSubFieldName??null,groupOperatorPath:yt({groupsByUniversalIdentifier:n,predicateGroupUniversalIdentifier:e.predicateGroupUniversalIdentifier})})).sort()},bt=n.l.map(e=>n.S[e]),xt=({roleSignature:e,supersetSignature:t})=>e.length===t.length&&e.every((e,n)=>e===t[n]),St=({role:e,superset:t})=>[...W.filter(n=>{let r=G[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`}]:[]],Ct=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>{let r=new Set([...bt,...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}))},wt=({role:e,superset:t})=>[...new Set([...[...e.objectPermissions??[],...t.objectPermissions??[]].map(e=>e.objectUniversalIdentifier),...(t.rowLevelPermissionPredicates??[]).map(e=>e.objectUniversalIdentifier)])].flatMap(n=>{let r=K({role:e,objectUniversalIdentifier:n}),i=K({role:t,objectUniversalIdentifier:n}),a=W.filter(e=>r[e]&&!i[e]).map(e=>({type:`OBJECT_RECORDS`,objectUniversalIdentifier:n,action:e})),o=W.some(e=>r[e]),s=q({role:t,objectUniversalIdentifier:n}),c=q({role:e,objectUniversalIdentifier:n});return o&&s.length>0&&!xt({roleSignature:c,supersetSignature:s})?[...a,{type:`ROW_LEVEL_RESTRICTION`,objectUniversalIdentifier:n}]:a}),Tt=({role:e,superset:t})=>(t.fieldPermissions??[]).flatMap(t=>{let{objectUniversalIdentifier:n,fieldUniversalIdentifier:r}=t,i=K({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`}]:[]]}),Et=({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n})=>[...St({role:e,superset:t}),...Ct({role:e,superset:t,toolPermissionFlagUniversalIdentifiers:n}),...wt({role:e,superset:t}),...Tt({role:e,superset:t})],Dt=e=>n.gt(e)&&f(e)>=4,J={universalIdentifier:n.Bt(),name:n.Lt().min(1),nextStepIds:n.Ct(n.Bt()),position:n.Nt({x:n.Mt(),y:n.Mt()}).optional(),outputSchema:n.Ft(n.Lt(),n.zt()).optional(),expectedOutputSchema:n.Ft(n.Lt(),n.zt()).optional(),errorHandlingOptions:j.shape.errorHandlingOptions.optional()},Y=(e,t)=>n.It({...J,type:n.kt(e),input:t}),Ot=n.At({fieldMetadataUniversalIdentifier:n.Bt(),fieldMetadataId:n.jt().optional()}),X=L.omit({fieldMetadataId:!0}).extend({fieldMetadataUniversalIdentifier:n.Bt().optional()}).strict(),kt=P.omit({fieldMetadataId:!0,relationTargetFieldMetadataId:!0}).extend({fieldMetadataUniversalIdentifier:n.Bt()}).strict(),Z={objectUniversalIdentifier:n.Bt()},At=[n.It({...J,type:n.kt(`LOGIC_FUNCTION`),logicFunctionUniversalIdentifier:n.Bt(),input:n.Ft(n.Lt(),n.zt())}),Y(`HTTP_REQUEST`,we.shape.input),Y(`CLASSIFY`,Oe.shape.input),Y(`ITERATOR`,ke.shape.input),Y(`DELAY`,Ae.shape.input),Y(`WAIT_FOR_EVENT`,je.shape.input),Y(`EMPTY`,Me.shape.input),Y(`CREATE_RECORD`,Ne.shape.input.omit({objectName:!0}).extend(Z).strict()),Y(`UPDATE_RECORD`,Pe.shape.input.omit({objectName:!0}).extend(Z).strict()),Y(`UPSERT_RECORD`,Fe.shape.input.omit({objectName:!0}).extend(Z).strict()),Y(`DELETE_RECORD`,Ie.shape.input.omit({objectName:!0}).extend(Z).strict()),Y(`FIND_RECORDS`,Le.shape.input.omit({objectName:!0,filter:!0,orderBy:!0}).extend({...Z,filter:n.It({recordFilterGroups:n.Ct(N).optional(),recordFilters:n.Ct(kt).optional()}).optional(),orderBy:n.It({recordSorts:n.Ct(Ot.extend({direction:n.bt([`ASC`,`DESC`]),subFieldName:n.Lt().nullable().optional()})).optional()}).optional()}).strict()),Y(`PICK_RECORD`,n.It({...Z,strategy:R,recordIds:n.Ct(n.Lt()),loadBalance:n.It({objectUniversalIdentifier:n.Bt(),fieldUniversalIdentifier:n.Bt()}).optional()}).superRefine((e,t)=>{e.strategy===`LOAD_BALANCED`&&!n.Ut(e.loadBalance)&&t.addIssue({code:`custom`,path:[`loadBalance`],message:`loadBalance is required when strategy is LOAD_BALANCED`})})),Y(`FILTER`,Be.shape.input.extend({stepFilters:n.Ct(X)})),Y(`IF_ELSE`,He.shape.input.extend({stepFilters:n.Ct(X)})),Y(`FORM`,n.Ct(ze.shape.input.element.extend({settings:n.Ft(n.Lt(),n.zt()).optional()}).superRefine((e,t)=>{e.type===`RECORD`&&!n.Bt().safeParse(e.settings?.objectUniversalIdentifier).success&&t.addIssue({code:`custom`,path:[`settings`,`objectUniversalIdentifier`],message:`Record picker fields require an object universal identifier`})}))),Y(`AI_AGENT`,n.It({agentUniversalIdentifier:n.Bt(),prompt:n.Lt(),responseFormat:Se.optional()}))],jt=At.map(e=>e.shape.type.value),Mt=n.Tt(`type`,At,{error:e=>e.code===`invalid_union`?`Unsupported step type. Application workflows support: ${jt.join(`, `)}`:void 0}),Nt=[`updated`,`upserted`],Pt=n.Tt(`type`,[n.It({type:n.kt(`GLOBAL`)}),n.It({type:n.kt(`SINGLE_RECORD`),objectUniversalIdentifier:n.Bt()}),n.It({type:n.kt(`BULK_RECORDS`),objectUniversalIdentifier:n.Bt()})]),[Q,Ft,It,Lt]=Ue.shape.settings.options,Rt=n.Tt(`type`,[Q.omit({outputSchema:!0}).extend({schedule:Q.shape.schedule.strict()}).strict(),Ft.omit({outputSchema:!0}).extend({schedule:Ft.shape.schedule.strict()}).strict(),It.omit({outputSchema:!0}).extend({schedule:It.shape.schedule.strict()}).strict(),Lt.omit({outputSchema:!0}).strict()]),[zt,Bt]=We.shape.settings.options,Vt=n.Tt(`httpMethod`,[zt.omit({outputSchema:!0,authentication:!0}).strict(),Bt.omit({outputSchema:!0,expectedOutputSchema:!0,authentication:!0}).strict()]),$=[n.It({universalIdentifier:n.Bt(),type:n.kt(`MANUAL`),nextStepIds:n.Ct(n.Bt()).min(1),settings:n.It({availability:Pt.optional(),icon:n.Lt().optional(),isPinned:n.wt().optional()}).superRefine((e,t)=>{!n.Ut(e.availability)&&(n.Ut(e.icon)||n.Ut(e.isPinned))&&t.addIssue({code:`custom`,path:[`availability`],message:`Set an availability for the icon and pin to show in the command menu`})}).optional()}),n.It({universalIdentifier:n.Bt(),type:n.kt(`CRON`),nextStepIds:n.Ct(n.Bt()).min(1),settings:Rt}),n.It({universalIdentifier:n.Bt(),type:n.kt(`DATABASE_EVENT`),nextStepIds:n.Ct(n.Bt()).min(1),settings:n.It({objectUniversalIdentifier:n.Bt(),action:n.bt([`created`,`updated`,`deleted`,`upserted`]),fieldUniversalIdentifiers:n.Ct(n.Bt()).optional(),filter:n.It({stepFilterGroups:n.Ct(I),stepFilters:n.Ct(X.extend({operand:n.bt(n.B)}))}).optional()}).superRefine((e,r)=>{if(t.n(e.fieldUniversalIdentifiers)&&!Nt.includes(e.action)&&r.addIssue({code:`custom`,path:[`fieldUniversalIdentifiers`],message:`Watched fields only apply to ${Nt.join(` and `)} events`}),!n.Ut(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.Ut(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.Ut(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`})})})}),n.It({universalIdentifier:n.Bt(),type:n.kt(`WEBHOOK`),nextStepIds:n.Ct(n.Bt()).min(1),settings:Vt})],Ht=$.map(e=>e.shape.type.value),Ut=n.Tt(`type`,$,{error:e=>e.code===`invalid_union`?`Unsupported trigger type. Application workflows support: ${Ht.join(`, `)}`:void 0});n.It({universalIdentifier:n.Bt(),name:n.Lt().min(1),version:n.It({trigger:Ut,steps:n.Ct(Mt).min(1)})}).superRefine((e,t)=>{let{steps:n,trigger:r}=e.version,i=[e.universalIdentifier,r.universalIdentifier,...n.map(e=>e.universalIdentifier)];new Set(i).size!==i.length&&t.addIssue({code:`custom`,message:`Workflow, trigger and steps must have distinct universal identifiers`});let a={trigger:{type:r.type,nextStepIds:r.nextStepIds},steps:n.map(e=>({...e,id:e.universalIdentifier,settings:{input:e.input}}))},o=Je(a);for(let e of[...Ze({workflow:a,graph:o}),...Xe({workflow:a,graph:o}),..._e({workflow:a,graph:o,stepsById:new Map(a.steps.map(e=>[e.id,e]))})])e.severity===`error`&&t.addIssue({code:`custom`,message:e.message})}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return ct}});