twenty 2.60.0 → 2.61.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 (84) hide show
  1. package/dist/app-template/yarn.lock +25 -25
  2. package/dist/app-worker.cjs +1 -1
  3. package/dist/chunks/{build-source-manifest-CiNlHV98.cjs → build-source-manifest-DQ5YF5PV.cjs} +1 -1
  4. package/dist/chunks/{build-source-snapshot-Dchjr_ga.cjs → build-source-snapshot-DIjGWX_5.cjs} +20 -20
  5. package/dist/chunks/{cli-version.constant-B200rijQ.cjs → cli-version.constant-Dn-WFWf8.cjs} +1 -1
  6. package/dist/chunks/collect-watch-inputs-Cj9epSJw.cjs +1 -0
  7. package/dist/chunks/compile-application-translations-CDykMbFf.cjs +58 -0
  8. package/dist/chunks/create-metadata-client-CrOsu4u3.cjs +6 -0
  9. package/dist/chunks/{create-rest-client-HbzXSfhZ.cjs → create-rest-client-D3ZXtAxc.cjs} +1 -1
  10. package/dist/chunks/{extract-manifest-from-file-CaWVLmLU.cjs → extract-manifest-from-file-B3pazFD1.cjs} +1 -1
  11. package/dist/chunks/{extract-source-translations-CBveJ4xT.cjs → extract-source-translations-b9c2CH4w.cjs} +1 -1
  12. package/dist/chunks/{fetch-metadata-inspection-yvVdh4oY.cjs → fetch-metadata-inspection-DN8am1j0.cjs} +1 -1
  13. package/dist/chunks/{fetch-signed-in-identity-B6fnxBHj.cjs → fetch-signed-in-identity-kgzejZg2.cjs} +1 -1
  14. package/dist/chunks/fetch-workspace-or-throw-BIu0K3A-.cjs +1 -0
  15. package/dist/chunks/fs-utils-BcNux7fF.cjs +2 -0
  16. package/dist/chunks/{get-client-generation-skip-reason-CFgiU52t.cjs → get-client-generation-skip-reason-C_oaO89K.cjs} +1 -1
  17. package/dist/chunks/global-flags.constant-JcdNC5G1.cjs +1 -0
  18. package/dist/chunks/is-exported-manifest-BHA_mGa6.cjs +1 -0
  19. package/dist/chunks/{is-valid-package-name-zAWZPNrj.cjs → is-valid-package-name-o_jWsuUX.cjs} +1 -1
  20. package/dist/chunks/parse-app-export-B9Ocghe1.cjs +1 -0
  21. package/dist/chunks/{pull-minimum-sdk-version.constant-BTfcyhwh.cjs → pull-minimum-sdk-version.constant-DOAFtDDD.cjs} +2 -2
  22. package/dist/chunks/pull-source-B5Hot5CI.cjs +1 -0
  23. package/dist/chunks/{read-app-identity-Cny6sAGs.cjs → read-app-identity-M47izSWp.cjs} +1 -1
  24. package/dist/chunks/{read-application-identifier-DcBW74TB.cjs → read-application-identifier-BlEwa2gR.cjs} +1 -1
  25. package/dist/chunks/{read-application-identity-BrtopaMa.cjs → read-application-identity-CYKNL1g5.cjs} +1 -1
  26. package/dist/chunks/{read-infer-deletion-option-D1HMBsfw.cjs → read-infer-deletion-option-DeyWsiCS.cjs} +1 -1
  27. package/dist/chunks/{read-source-identity-CnPDqB6X.cjs → read-source-identity-bo4jC2Dh.cjs} +1 -1
  28. package/dist/chunks/read-watch-input-stamp-DKJ-Plk2.cjs +1 -0
  29. package/dist/chunks/{record-pull-base-Dz4BldQf.cjs → record-pull-base-DKrQDDmc.cjs} +1 -1
  30. package/dist/chunks/{record-typecheck-config-inputs-U2RUjjp9.cjs → record-typecheck-config-inputs-BMV55iFx.cjs} +1 -1
  31. package/dist/chunks/{resolve-command-target-QjBwHpMj.cjs → resolve-command-target-B9QG8OZs.cjs} +1 -1
  32. package/dist/chunks/{resolve-project-typescript-DO4LrLr-.cjs → resolve-project-typescript-DjMUr6ks.cjs} +1 -1
  33. package/dist/chunks/{resolve-source-sdk-C4Hu045V.cjs → resolve-source-sdk-BDwffWHb.cjs} +1 -1
  34. package/dist/chunks/{run-app-add-command-b9sm20rn.cjs → run-app-add-command-De3cIhU0.cjs} +1 -1
  35. package/dist/chunks/{run-app-apply-command-CCsvdn3A.cjs → run-app-apply-command-BXVHKrW3.cjs} +2 -2
  36. package/dist/chunks/{run-app-build-command-Daxe8O14.cjs → run-app-build-command-BMwzOOov.cjs} +1 -1
  37. package/dist/chunks/run-app-dev-command-Bg4zIJnX.cjs +3 -0
  38. package/dist/chunks/{run-app-exec-command-BMhrv7YU.cjs → run-app-exec-command-BOhA0aZN.cjs} +1 -1
  39. package/dist/chunks/{run-app-generate-client-command-Z-2bRkaH.cjs → run-app-generate-client-command-B7p5M_hN.cjs} +1 -1
  40. package/dist/chunks/{run-app-init-command-B6npylwO.cjs → run-app-init-command-DJ0UipFh.cjs} +1 -1
  41. package/dist/chunks/{run-app-install-command-DqPQXj09.cjs → run-app-install-command-CsK8l0Ou.cjs} +1 -1
  42. package/dist/chunks/{run-app-logs-command-CaLIVesh.cjs → run-app-logs-command-COAdNMuL.cjs} +1 -1
  43. package/dist/chunks/{run-app-operation-D_zIxvuw.cjs → run-app-operation-B4JecUV7.cjs} +1 -1
  44. package/dist/chunks/{run-app-plan-command-pc6mp7th.cjs → run-app-plan-command-hASkfDaJ.cjs} +1 -1
  45. package/dist/chunks/{run-app-publish-command-CflX1x0o.cjs → run-app-publish-command-ClsjL5OP.cjs} +1 -1
  46. package/dist/chunks/{run-app-pull-command-PCMBNH6R.cjs → run-app-pull-command-BfHIuJ1m.cjs} +1 -1
  47. package/dist/chunks/{run-app-translations-extract-command-CGIFvpC1.cjs → run-app-translations-extract-command-DHIEEFXs.cjs} +1 -1
  48. package/dist/chunks/{run-app-typecheck-command-DnCMdagB.cjs → run-app-typecheck-command--4NoTac-.cjs} +1 -1
  49. package/dist/chunks/{run-app-uninstall-command-DWXEgVKe.cjs → run-app-uninstall-command-ClRoCRjv.cjs} +1 -1
  50. package/dist/chunks/{run-auth-login-command-DKCO9bot.cjs → run-auth-login-command-p9VHNoqZ.cjs} +1 -1
  51. package/dist/chunks/{run-auth-status-command-0vh-ENNj.cjs → run-auth-status-command-CdqOc2-Q.cjs} +1 -1
  52. package/dist/chunks/{run-cli-BG3itvCe.cjs → run-cli-CgBPkP_r.cjs} +3 -3
  53. package/dist/chunks/{run-commands-command-CJ7qNty3.cjs → run-commands-command-BF3y7Dz2.cjs} +1 -1
  54. package/dist/chunks/{run-data-export-command-DqyztEHe.cjs → run-data-export-command-ca_JYOnT.cjs} +1 -1
  55. package/dist/chunks/{run-data-get-command-D7_BdNBa.cjs → run-data-get-command-BZTsbTvb.cjs} +1 -1
  56. package/dist/chunks/{run-data-list-command-ZIpyFE04.cjs → run-data-list-command-UI5hngdt.cjs} +1 -1
  57. package/dist/chunks/{run-doctor-command-CgWSXl7H.cjs → run-doctor-command-B_bcpjAT.cjs} +2 -2
  58. package/dist/chunks/{run-metadata-field-describe-command-DZBqoC6c.cjs → run-metadata-field-describe-command-CH7Yob_y.cjs} +1 -1
  59. package/dist/chunks/{run-metadata-field-list-command-3pXf6DzX.cjs → run-metadata-field-list-command-BzxIj9tX.cjs} +1 -1
  60. package/dist/chunks/{run-metadata-object-describe-command-Dpmt4WVc.cjs → run-metadata-object-describe-command-BF9FzF06.cjs} +1 -1
  61. package/dist/chunks/{run-metadata-object-list-command-B2PTelCt.cjs → run-metadata-object-list-command-Tk_Fjfc5.cjs} +1 -1
  62. package/dist/chunks/{run-open-command-B4YhDwqh.cjs → run-open-command-BldBUk02.cjs} +1 -1
  63. package/dist/chunks/{run-version-command-YPMJadrD.cjs → run-version-command-B_6F7XYT.cjs} +1 -1
  64. package/dist/chunks/{sign-in-to-remote-again-D9amgIOZ.cjs → sign-in-to-remote-again-BqU_-38L.cjs} +1 -1
  65. package/dist/chunks/standard-object-fields.constant-CA16BdJ2.cjs +1 -0
  66. package/dist/chunks/{typecheck-application-8A504oUF.cjs → typecheck-application-CiGxmS69.cjs} +1 -1
  67. package/dist/cli.cjs +1 -1
  68. package/docs/commands.md +45 -20
  69. package/package.json +2 -2
  70. package/src/app/bundles/README.md +4 -5
  71. package/src/app/dev/README.md +13 -1
  72. package/src/app/pull/README.md +43 -26
  73. package/dist/chunks/collect-watch-inputs-DfWAkX1r.cjs +0 -1
  74. package/dist/chunks/compile-application-translations-roDnPf1t.cjs +0 -58
  75. package/dist/chunks/create-metadata-client-DVQbIGNu.cjs +0 -6
  76. package/dist/chunks/fetch-workspace-or-throw-C6tCV0YH.cjs +0 -1
  77. package/dist/chunks/fs-utils-DoSmCBu8.cjs +0 -2
  78. package/dist/chunks/global-flags.constant-Celofkx1.cjs +0 -1
  79. package/dist/chunks/is-exported-manifest-C4lO285q.cjs +0 -1
  80. package/dist/chunks/parse-app-export-BsxpQED7.cjs +0 -1
  81. package/dist/chunks/pull-source-CIsoJ2eR.cjs +0 -1
  82. package/dist/chunks/read-watch-input-stamp-BxeOb0vI.cjs +0 -1
  83. package/dist/chunks/run-app-dev-command-BPwltUcL.cjs +0 -2
  84. package/dist/chunks/standard-object-fields.constant-jQV_KO0f.cjs +0 -1
@@ -1 +0,0 @@
1
- var e={path:[`data`,`export`],description:`Export records to a CSV file with server-side permissions`,arguments:[{name:`object`,description:`Exact singular or plural API name`,required:!0}],options:[{flags:`--output <file>`,description:`Destination CSV file (required)`},{flags:`--fields <names>`,description:`Comma-separated field API names, in CSV order (default: active non-system fields)`},{flags:`--filter <expression>`,description:`REST filter expression, as in data list`},{flags:`--order-by <expression>`,description:`REST order_by expression, as in data list`},{flags:`--force`,description:`Replace an existing output file after a successful download`}],examples:[`twenty data export companies --output companies.csv`,`twenty data export companies --fields name,domainName,employees --filter 'employees[gte]:5000' --output large-companies.csv`,`twenty data export people --output people.csv --format ndjson`],outputModes:[`human`,`json`,`ndjson`],writes:!0,needsProject:!1,needsTarget:!0,requiredPermissions:[`EXPORT_CSV`],load:async()=>(await Promise.resolve().then(()=>require("./run-data-export-command-DqyztEHe.cjs"))).runDataExportCommand},t={path:[`local`,`start`],description:`Start the local Twenty development environment`,options:[{flags:`-p, --port <port>`,description:`HTTP port for a new instance (default: 2020, or 2021 with --test)`},{flags:`--test`,description:`Use the separate local test instance`}],arguments:[{name:`version`,description:`Twenty version or image tag (new instances: engines.twenty, then latest)`,required:!1}],examples:[`twenty local start`,`twenty local start 2.53.1 --test`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-start-command-B8N5Jgjd.cjs"))).runLocalStartCommand},n={path:[`local`,`stop`],description:`Stop the local environment, preserving its data`,options:[{flags:`--test`,description:`Use the separate local test instance`}],examples:[`twenty local stop`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-stop-command-D66F73fW.cjs"))).runLocalStopCommand},r={path:[`local`,`status`],description:`Show local environment status, URL and image`,options:[{flags:`--test`,description:`Use the separate local test instance`}],examples:[`twenty local status --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-status-command-BYxy0R9I.cjs"))).runLocalStatusCommand},i={path:[`local`,`logs`],description:`Stream local environment logs`,options:[{flags:`-n, --lines <lines>`,description:`Number of recent log lines (default: 50, maximum: 10000)`},{flags:`--no-follow`,description:`Print recent logs and exit`},{flags:`--test`,description:`Use the separate local test instance`}],examples:[`twenty local logs`,`twenty local logs --test --no-follow`],outputModes:[`human`,`ndjson`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-logs-command-COsSRk3f.cjs"))).runLocalLogsCommand},a={path:[`local`,`reset`],description:`Delete the local environment and all its data`,options:[{flags:`--yes`,description:`Delete the local environment and its data without asking`},{flags:`--test`,description:`Use the separate local test instance`}],examples:[`twenty local reset`,`twenty local reset --test --yes`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-reset-command-m0x-EiA6.cjs"))).runLocalResetCommand},o={path:[`local`,`upgrade`],description:`Upgrade the local environment, preserving its data volumes`,options:[{flags:`--test`,description:`Use the separate local test instance`}],arguments:[{name:`version`,description:`Twenty version or image tag (default: engines.twenty, then latest)`,required:!1}],examples:[`twenty local upgrade`,`twenty local upgrade 2.53.1 --test`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-local-upgrade-command-6P71bQw6.cjs"))).runLocalUpgradeCommand},s={path:[`app`,`install`],description:`Install a registered app package in the target workspace`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--universal-identifier <id>`,description:`Registered app universal identifier, works without a local project`}],examples:[`twenty app install --remote dev`,`twenty app install --path ./apps/billing --json`,`twenty app install --universal-identifier <id> --remote staging --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-install-command-DqPQXj09.cjs"))).runAppInstallCommand},c={path:[`app`,`publish`],description:`Build and publish the app to npm or a private Twenty registry`,options:[{flags:`--private`,description:`Publish to a Twenty server registry using --remote or the active target`},{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--tag <tag>`,description:`npm dist-tag, for example beta or next`}],examples:[`twenty app publish`,`twenty app publish --private --remote dev`,`twenty app publish --path ./apps/billing --tag beta --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-publish-command-CflX1x0o.cjs"))).runAppPublishCommand},l={path:[`app`,`dev`],description:`Watch app source, build complete snapshots and sync changes to the workspace`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--prune`,description:`Delete remote entities missing from the app source (the default, except for the workspace custom application)`},{flags:`--no-prune`,description:`Keep remote entities missing from the app source`},{flags:`--no-delete`,description:`Deprecated alias of --no-prune`,hidden:!0},{flags:`--create`,description:`Allow registering and installing an app with no registration`},{flags:`--yes`,description:`Allow object and field deletions without asking`}],examples:[`twenty app dev --remote dev`,`twenty app dev --create --no-prune`,`twenty app dev --format ndjson --no-prune`],outputModes:[`human`,`ndjson`],writes:!0,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`,`UPLOAD_FILE`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-dev-command-BPwltUcL.cjs"))).runAppDevCommand},u={path:[`app`,`add`],description:`Add an object, field, logic function, front component or validation rule to an app`,arguments:[{name:`entity`,description:`object, field, logic-function, front-component or validation-rule (prompted when omitted)`,required:!1}],options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--name <name>`,description:`Definition name; also determines the generated filename`},{flags:`--create-view`,description:`Create a table view for the new object`},{flags:`--create-navigation-menu-item`,description:`Create a navigation menu item for the new object`},{flags:`--create-page-layout`,description:`Create a record page layout and its fields view for the new object`},{flags:`--name-plural <name>`,description:`Plural API name (object)`},{flags:`--label <label>`,description:`Display label (object or field; default: derived from name)`},{flags:`--label-plural <label>`,description:`Plural display label (object; default: derived from plural name)`},{flags:`--type <type>`,description:`Field type, for example TEXT, NUMBER or RELATION (default: TEXT)`},{flags:`--object <uuid>`,description:`Parent object universal identifier (field or validation rule)`},{flags:`--description <text>`,description:`Field description`},{flags:`--target-object <uuid>`,description:`Target object universal identifier (relation field)`},{flags:`--target-field <uuid>`,description:`Target field universal identifier (relation field)`},{flags:`--relation-type <type>`,description:`ONE_TO_MANY or MANY_TO_ONE (relation field; default: ONE_TO_MANY)`},{flags:`--on-delete <action>`,description:`CASCADE, RESTRICT, SET_NULL, NO_ACTION or None (relation field; default: CASCADE)`}],examples:[`twenty app add`,`twenty app add object --name invoice --name-plural invoices --no-input`,`twenty app add object --name invoice --name-plural invoices --create-view --create-navigation-menu-item --create-page-layout --no-input`,`twenty app add field --name amount --type NUMBER --object <object-universal-identifier> --json`,`twenty app add logic-function --name send-invoice --no-input`,`twenty app add front-component --name invoice-panel --no-input`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-add-command-b9sm20rn.cjs"))).runAppAddCommand},d={path:[`app`,`exec`],description:`Execute a deployed app logic function as the signed-in user`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--name <name>`,description:`Exact deployed function name`},{flags:`--universal-identifier <id>`,description:`Function universal identifier`},{flags:`--post-install`,description:`Execute the post-install hook without installing the app`},{flags:`--pre-install`,description:`Execute the pre-install hook without installing the app`},{flags:`--uninstall-hook`,description:`Execute the uninstall hook without uninstalling the app`},{flags:`--payload <json>`,description:`JSON object, @file or - for stdin (default: {})`}],examples:[`twenty app exec --name add-numbers --remote dev`,`twenty app exec --name add-numbers --payload @payload.json --json`,`twenty app exec --post-install --payload '{}'`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`,`WORKFLOWS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-exec-command-BMhrv7YU.cjs"))).runAppExecCommand},f={path:[`app`,`generate-client`],description:`Regenerate the app's typed API client from the workspace schema, without building or syncing`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`}],examples:[`twenty app generate-client --remote dev`,`twenty app generate-client --path ./apps/billing --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-app-generate-client-command-Z-2bRkaH.cjs"))).runAppGenerateClientCommand},p={path:[`app`,`logs`],description:`Watch new logic-function logs from this app`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--name <name>`,description:`Filter all functions with this exact name within the app`},{flags:`--universal-identifier <id>`,description:`Filter one function by universal identifier`}],examples:[`twenty app logs --remote dev`,`twenty app logs --name add-numbers --remote dev`,`twenty app logs --format ndjson`],outputModes:[`human`,`ndjson`],writes:!1,needsProject:!0,needsTarget:!0,requiredPermissions:[`WORKFLOWS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-logs-command-CaLIVesh.cjs"))).runAppLogsCommand},m={path:[`app`,`apply`],description:`Build the app, preview the changes, then upload and sync it to the workspace`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--prune`,description:`Delete remote entities missing from the app source (the default, except for the workspace custom application)`},{flags:`--no-prune`,description:`Keep remote entities missing from the app source`},{flags:`--no-delete`,description:`Deprecated alias of --no-prune`,hidden:!0},{flags:`--create`,description:`Register the app and install it in the workspace if it has no registration yet`},{flags:`--yes`,description:`Apply object and field deletions without asking; does not change which entities are deleted`}],examples:[`twenty app apply --remote dev`,`twenty app apply --create --json`,`twenty app apply --no-prune`,`twenty app apply --prune`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`,`UPLOAD_FILE`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-apply-command-CCsvdn3A.cjs"))).runAppApplyCommand},h={path:[`app`,`build`],description:`Build the app with the CLI and report the artifacts`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`}],examples:[`twenty app build`,`twenty app build --path ./apps/billing --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!0,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-build-command-Daxe8O14.cjs"))).runAppBuildCommand},g={path:[`app`,`init`],description:`Create an app from the template bundled with this CLI, without installing anything`,arguments:[{name:`name`,description:`Package name of the app, for example my-app`,required:!0}],options:[{flags:`--path <directory>`,description:`Directory to create (default: ./<name>)`},{flags:`--display-name <name>`,description:`Name shown in Twenty (default: derived from the package name)`},{flags:`--description <text>`,description:`Description shown in Twenty`}],examples:[`twenty app init my-app`,`twenty app init billing --path ./apps/billing --display-name Billing --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-init-command-B6npylwO.cjs"))).runAppInitCommand},_={path:[`app`,`pull`],description:`Pull an app, or create a local project for the workspace custom app`,options:[{flags:`--path <directory>`,description:`App directory, or a new or empty directory for the workspace custom app`},{flags:`--yes`,description:`Create a missing project and install its dependencies without prompting`},{flags:`--verbose`,description:`List coverage details`}],examples:[`twenty app pull --remote dev`,`twenty app pull --path ./apps/billing`,`twenty app pull --path ./workspace-app --yes --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!0,requiredPermissions:[`APPLICATIONS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-pull-command-PCMBNH6R.cjs"))).runAppPullCommand},v={path:[`app`,`plan`],description:`Build the app and preview metadata changes without applying them`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--prune`,description:`Delete remote entities missing from the app source (the default, except for the workspace custom application)`},{flags:`--no-prune`,description:`Keep remote entities missing from the app source`},{flags:`--no-delete`,description:`Deprecated alias of --no-prune`,hidden:!0}],examples:[`twenty app plan --remote dev`,`twenty app plan --path ./apps/billing --no-prune --json`,`twenty app plan --prune`],outputModes:[`human`,`json`],writes:!1,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-plan-command-pc6mp7th.cjs"))).runAppPlanCommand},y={path:[`app`,`translations`,`extract`],description:`Extract app strings and update translation catalogs`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--locale <locale>`,description:`Create a target locale catalog if missing, for example fr-FR`}],examples:[`twenty app translations extract`,`twenty app translations extract --locale fr-FR`,`twenty app translations extract --path ./apps/billing --json`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-translations-extract-command-CGIFvpC1.cjs"))).runAppTranslationsExtractCommand},b={path:[`app`,`typecheck`],description:`Typecheck the app with its project TypeScript, without building`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`}],examples:[`twenty app typecheck`,`twenty app typecheck --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!0,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-app-typecheck-command-DnCMdagB.cjs"))).runAppTypecheckCommand},x={path:[`app`,`uninstall`],description:`Uninstall the app from the workspace, deleting its objects, fields and their data`,options:[{flags:`--path <directory>`,description:`App directory (default: the app containing the current folder)`},{flags:`--universal-identifier <id>`,description:`Uninstall the app with this universal identifier, works without a local project`},{flags:`--yes`,description:`Uninstall without asking`}],examples:[`twenty app uninstall --remote dev`,`twenty app uninstall --yes --json`,`twenty app uninstall --universal-identifier <id> --yes`],outputModes:[`human`,`json`],writes:!0,needsProject:!0,needsTarget:!0,requiredPermissions:[`APPLICATIONS`],load:async()=>(await Promise.resolve().then(()=>require("./run-app-uninstall-command-DWXEgVKe.cjs"))).runAppUninstallCommand},S={path:[`auth`,`login`],description:`Sign in with your browser or an API key, and save the remote`,options:[{flags:`--with-token`,description:`Read an API key from standard input`},{flags:`--url <url>`,description:`Twenty server URL, for example https://acme.twenty.com`},{flags:`--name <name>`,description:`Name of the remote to save (defaults to "default")`},{flags:`--use`,description:`Make this remote the default`},{flags:`--replace`,description:`Point an existing remote at a different URL`},{flags:`--proxy-header <header...>`,description:`Header for an authenticating proxy in front of the server, as "Name: value". Repeatable; saved on the remote`},{flags:`--proxy-header-command <command>`,description:`Shell command that prints proxy headers as "Name: value" lines, run when a request needs them; saved on the remote`}],examples:[`twenty auth login --url https://acme.twenty.com`,`twenty auth login --url https://acme.twenty.com --name prod --use`,`printf '%s' "$TWENTY_API_KEY" | twenty auth login --with-token --url https://acme.twenty.com --name prod --use`,`twenty auth login --with-token --remote prod < api-key.txt`,`twenty auth login --url https://twenty.example.com --proxy-header-command 'echo "cf-access-token: $(cloudflared access token -app=https://twenty.example.com)"'`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-auth-login-command-DKCO9bot.cjs"))).runAuthLoginCommand},C={path:[`auth`,`logout`],description:`Forget the credentials of a saved remote, keeping the remote`,examples:[`twenty auth logout --remote staging`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-auth-logout-command-hvi_HvpQ.cjs"))).runAuthLogoutCommand},w={path:[`auth`,`status`],description:`Show which workspace commands use and check its credentials`,outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-auth-status-command-0vh-ENNj.cjs"))).runAuthStatusCommand},T={path:[`auth`,`token`],description:`Print the credential commands send, for scripts`,examples:[`curl -H "Authorization: Bearer $(twenty auth token)" https://acme.twenty.com/rest/companies`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-auth-token-command-D4geJ-rx.cjs"))).runAuthTokenCommand},E={path:[`api`,`graphql`],description:`Send a GraphQL query or mutation`,options:[{flags:`--query <query>`,description:`GraphQL document: inline, @file.graphql, or - for standard input`,required:!0},{flags:`--variables <json>`,description:`Variables as a JSON object: inline, @file.json, or - for standard input`},{flags:`--metadata`,description:`Send to the metadata API instead of the core API`}],examples:[`twenty api graphql --query '{ companies(first: 2) { edges { node { name } } } }'`,`twenty api graphql --metadata --query '{ currentWorkspace { displayName } }'`,`twenty api graphql --query @create-company.graphql --variables @variables.json`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-api-graphql-command-ELrIPdM5.cjs"))).runApiGraphqlCommand},D={path:[`api`,`rest`],description:`Send a request to the REST API`,arguments:[{name:`path`,description:`Path under the API URL, for example /rest/companies`,required:!0}],options:[{flags:`-X, --method <method>`,description:`HTTP method, defaults to GET; required with --body`,choices:[`GET`,`POST`,`PATCH`,`PUT`,`DELETE`]},{flags:`--body <json>`,description:`Request body: JSON, @file.json, or - for standard input`}],examples:[`twenty api rest '/rest/companies?limit=5'`,`twenty api rest /rest/companies --method POST --body '{"name":"Linear"}'`,`twenty api rest /rest/companies/<id> --method PATCH --body @changes.json`],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-api-rest-command-COVnszcN.cjs"))).runApiRestCommand},O={WORKSPACE:`Workspace:`,APP:`App development:`,TOOLS:`Tools:`},k={path:[`commands`],description:`List the available commands`,helpGroup:O.TOOLS,outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-commands-command-CJ7qNty3.cjs"))).runCommandsCommand},A={path:[`data`,`get`],description:`Inspect a record by id`,arguments:[{name:`object`,description:`Exact singular or plural API name`,required:!0},{name:`id`,description:`Record id`,required:!0}],examples:[`twenty data get companies <id>`,`twenty data get people <id> --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-data-get-command-D7_BdNBa.cjs"))).runDataGetCommand},j={path:[`data`,`list`],description:`List records with REST filters and pagination`,arguments:[{name:`object`,description:`Exact singular or plural API name`,required:!0}],options:[{flags:`--filter <expression>`,description:`REST filter expression, passed through unchanged`},{flags:`--order-by <expression>`,description:`REST order_by expression, passed through unchanged`},{flags:`--fields <names>`,description:`Comma-separated human table columns; JSON and NDJSON retain full records`},{flags:`--limit <count>`,description:`Records per page, 1–200 (default: 50)`},{flags:`--cursor <cursor>`,description:`Start after this opaque REST cursor`},{flags:`--all`,description:`Read every remaining page, bounded unless --format ndjson is used`}],examples:[`twenty data list companies --limit 20`,`twenty data list companies --filter 'employees[gte]:5000' --order-by 'employees[DescNullsLast]'`,`twenty data list people --all --format ndjson`],outputModes:[`human`,`json`,`ndjson`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-data-list-command-ZIpyFE04.cjs"))).runDataListCommand},M={path:[`doctor`],description:`Diagnose CLI, app SDK and workspace connection problems`,helpGroup:O.TOOLS,options:[{flags:`--path <directory>`,description:`App directory to inspect`},{flags:`--offline`,description:`Skip network checks`}],examples:[`twenty doctor`,`twenty doctor --remote staging --path ./my-app --json`,`twenty doctor --offline`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-doctor-command-CgWSXl7H.cjs"))).runDoctorCommand},N={path:[`metadata`,`object`,`describe`],description:`Describe an object`,arguments:[{name:`object`,description:`Exact singular or plural API name`,required:!0}],examples:[`twenty metadata object describe companies`,`twenty metadata object describe person --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-metadata-object-describe-command-Dpmt4WVc.cjs"))).runMetadataObjectDescribeCommand},P={path:[`metadata`,`field`,`list`],description:`List fields and who owns each one`,arguments:[{name:`object`,description:`Exact singular or plural API name`,required:!0}],options:[{flags:`--all`,description:`Include system fields`}],examples:[`twenty metadata field list companies`,`twenty metadata field list companies --all --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-metadata-field-list-command-3pXf6DzX.cjs"))).runMetadataFieldListCommand},F={path:[`metadata`,`field`,`describe`],description:`Describe a field, its constraints, options and relations`,arguments:[{name:`object`,description:`Exact singular or plural object API name`,required:!0},{name:`field`,description:`Exact field API name, including system fields`,required:!0}],examples:[`twenty metadata field describe companies tier`,`twenty metadata field describe people company --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-metadata-field-describe-command-DZBqoC6c.cjs"))).runMetadataFieldDescribeCommand},I={path:[`metadata`,`object`,`list`],description:`List objects and who owns each one`,options:[{flags:`--all`,description:`Include system objects`}],examples:[`twenty metadata object list`,`twenty metadata object list --all --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-metadata-object-list-command-B2PTelCt.cjs"))).runMetadataObjectListCommand},L={path:[`open`],description:`Open the workspace in your browser`,helpGroup:O.WORKSPACE,arguments:[{name:`page`,description:`Page to open, for example settings/applications`,required:!1}],options:[{flags:`--url-only`,description:`Print the address instead of opening a browser`}],examples:[`twenty open`,`twenty open settings/applications`,`twenty open --remote staging --url-only --json`],outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!0,load:async()=>(await Promise.resolve().then(()=>require("./run-open-command-B4YhDwqh.cjs"))).runOpenCommand},R={path:[`remote`,`list`],description:`List saved remotes`,outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-remote-list-command-C2tZHRAT.cjs"))).runRemoteListCommand},z={path:[`remote`,`remove`],description:`Remove a saved remote and its credentials`,arguments:[{name:`name`,description:`Saved remote`,required:!0}],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-remote-remove-command-DgSQvjeN.cjs"))).runRemoteRemoveCommand},B={path:[`remote`,`rename`],description:`Rename a saved remote`,arguments:[{name:`current`,description:`Current name`,required:!0},{name:`new`,description:`New name`,required:!0}],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-remote-rename-command--37-GTRY.cjs"))).runRemoteRenameCommand},V={path:[`remote`,`use`],description:`Make a saved remote the default`,arguments:[{name:`name`,description:`Saved remote`,required:!0}],outputModes:[`human`,`json`],writes:!0,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-remote-use-command-B6obKSPB.cjs"))).runRemoteUseCommand},H={path:[`version`],description:`Print version information`,helpGroup:O.TOOLS,outputModes:[`human`,`json`],writes:!1,needsProject:!1,needsTarget:!1,load:async()=>(await Promise.resolve().then(()=>require("./run-version-command-YPMJadrD.cjs"))).runVersionCommand},U=[t,n,r,i,a,o,u,m,l,d,p,h,f,g,v,_,c,y,b,s,x,S,C,w,T,R,V,B,z,E,D,k,j,e,A,M,I,N,P,F,L,H],W=e=>e.path.join(` `),G={JSON:`--json`,FORMAT:`--format <format>`,REMOTE:`-r, --remote <name>`,NO_INPUT:`--no-input`,HELP:`-h, --help`,VERSION:`-v, --version`};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return G}});
@@ -1 +0,0 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isPlainObject-fJEJm71P.cjs"),r=require("./is-locale-catalog-T4W5NhnW.cjs");var i=e.t(),a={application:`application`,frontComponent:`frontComponents`,object:`objects`,field:`fields`,index:`indexes`,permissionFlag:`permissionFlags`,role:`roles`,view:`views`,viewField:`viewFields`,pageLayout:`pageLayouts`,pageLayoutTab:`pageLayoutTabs`,navigationMenuItem:`navigationMenuItems`,pageLayoutWidget:`pageLayoutWidgets`,workflow:`workflows`,skill:`skills`,agent:`agents`,validationRule:`validationRules`,relatedRecordPath:`relatedRecordPaths`},o=(e,r=[])=>!t.t(e)||(0,i.isArray)(e)&&e.every(e=>n.t(e)&&(0,i.isString)(e.universalIdentifier)&&r.every(t=>o(e[t],t===`tabs`?[`widgets`]:[]))),s=e=>n.t(e)&&n.t(e.application)&&(0,i.isString)(e.application.universalIdentifier)&&(!t.t(e.publicAssets)||(0,i.isArray)(e.publicAssets)&&e.publicAssets.every(e=>n.t(e)&&(0,i.isString)(e.filePath)))&&(!t.t(e.translations)||n.t(e.translations)&&Object.values(e.translations).every(r.t))&&Object.values(a).filter(e=>e!==`application`).every(t=>o(e[t],t===`objects`||t===`views`?[`fields`]:t===`pageLayouts`?[`tabs`]:t===`pageLayoutTabs`?[`widgets`]:[]))&&(!(0,i.isArray)(e.objects)||e.objects.every(e=>n.t(e)&&(0,i.isString)(e.nameSingular)));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
@@ -1 +0,0 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isPlainObject-fJEJm71P.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./isRestorableApplicationSourcePath-Du_zM55R.cjs"),a=require("./AssetDirectory-c_JEwMr2.cjs"),o=require("./is-same-universal-identifier-Bm_wb6Ez.cjs"),s=require("./is-exported-manifest-C4lO285q.cjs");let c=require("node:crypto");var l=e=>{if(!(e.endsWith(`.ts`)||e.endsWith(`.tsx`))||e.endsWith(`.d.ts`)||e.startsWith(`/`)||/^[a-z]:/i.test(e)||e.includes(`\\`))return!1;let t=[`..`,`.`,``,`node_modules`,`dist`,`.twenty`];return e.split(`/`).every(e=>!t.includes(e))},u=e.t(),d=e=>{if(!(0,u.isArray)(e))return!1;let t=new Set;return e.every(e=>!n.t(e)||!(0,u.isString)(e.filePath)||!i.t(e.filePath)||[`package.json`,`yarn.lock`].includes(e.filePath.toLowerCase())||!(0,u.isString)(e.checksum)||!/^[a-f0-9]{32}$/.test(e.checksum)||t.has(e.filePath.toLowerCase())?!1:(t.add(e.filePath.toLowerCase()),!0))},f=e=>e,p=e=>{try{return n.t(JSON.parse(e))}catch{return!1}},m=({value:e,frontComponents:o=[]})=>{if(!(0,u.isArray)(e))throw new r.t({code:`INVALID_RESPONSE`,message:`The exported files must be an array.`});let s=new Map;for(let e of o)if(t.t(e.sourceFiles)){if(!d(e.sourceFiles)||!e.sourceFiles.some(t=>t.filePath===e.sourceComponentPath))throw new r.t({code:`INVALID_RESPONSE`,message:`The server returned an invalid front component source inventory.`});for(let t of e.sourceFiles){if(s.has(t.filePath)&&s.get(t.filePath)!==t.checksum)throw new r.t({code:`INVALID_RESPONSE`,message:`Conflicting source checksums for ${t.filePath}.`});s.set(t.filePath,t.checksum)}}let f=[],m=new Set,h=new Map;for(let d of e){if(!n.t(d)||!(0,u.isString)(d.folder)||!(0,u.isString)(d.path)||!(0,u.isString)(d.content)||t.t(d.encoding)&&(d.encoding!==`base64`||d.folder!==i.r.Source))throw new r.t({code:`INVALID_RESPONSE`,message:`The server returned an invalid exported file.`});let e=d.folder===i.r.Source&&(s.has(d.path)||o.some(e=>e.sourceComponentPath===d.path)&&l(d.path)),g=d.folder===i.r.PublicAsset;if(!g&&!e&&(d.folder!==i.r.Dependencies||![`package.json`,`yarn.lock`].includes(d.path)))throw new r.t({code:`TOOLING_UNSUPPORTED`,message:`This CLI can only pull dependency files, public assets and declared front component sources. No local files were changed.`});if(g&&(!d.path.startsWith(`public/`)||d.path.includes(`\\`)||d.path.includes(`\0`)||d.path.split(`/`).some(e=>[``,`.`,`..`].includes(e))))throw new r.t({code:`INVALID_RESPONSE`,message:`The exported public asset ${d.path} must have a safe path under ${a.t}/.`});let _=g||d.encoding===`base64`?`base64`:`utf8`,v=Buffer.from(d.content,_);if(_===`base64`&&v.toString(`base64`)!==d.content)throw new r.t({code:`INVALID_RESPONSE`,message:`The exported file ${d.path} is not valid base64.`});if(m.has(d.path.toLowerCase()))throw new r.t({code:`INVALID_RESPONSE`,message:`The server exported ${d.path} more than once.`});if(d.path===`package.json`&&!p(d.content))throw new r.t({code:`INVALID_RESPONSE`,message:`The exported package.json must contain a JSON object.`});(e||g)&&h.set(d.path,(0,c.createHash)(`md5`).update(v).digest(`hex`)),m.add(d.path.toLowerCase()),f.push({folder:d.folder,path:d.path,content:d.content,...d.encoding===`base64`?{encoding:`base64`}:{}})}for(let[e,t]of s)if(h.get(e)!==t)throw new r.t({code:`INVALID_RESPONSE`,message:`Source file ${e} is missing or does not match its checksum. No local files were changed.`});return f},h=e=>n.t(e)&&(0,u.isString)(e.metadataName)&&(0,u.isString)(e.universalIdentifier)&&(0,u.isString)(e.status)&&((0,u.isString)(e.reason)||(0,u.isNull)(e.reason)),g=({value:e,universalIdentifier:t})=>{let i=e;if(!n.t(i)||!n.t(i.application)||!(0,u.isString)(i.application.universalIdentifier)||!o.t({value:i.application.universalIdentifier,universalIdentifier:t})||!(0,u.isString)(i.application.displayName)||!(0,u.isString)(i.application.sourceType)||!s.t(i.manifest)||!o.t({value:i.manifest.application.universalIdentifier,universalIdentifier:t})||!(0,u.isArray)(i.coverage)||!i.coverage.every(h)||!(0,u.isArray)(i.files))throw new r.t({code:`INVALID_RESPONSE`,message:`The server returned an export of ${t} that this CLI cannot read.`});return{application:{universalIdentifier:i.application.universalIdentifier,displayName:i.application.displayName,sourceType:i.application.sourceType},manifest:i.manifest,coverage:i.coverage,files:m({value:i.files,frontComponents:f(i.manifest).frontComponents??[]})}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return g}});
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./build--4zYt4wd.cjs"),n=require("./isDefined-CJctgvfE.cjs"),r=require("./isPlainObject-fJEJm71P.cjs"),i=require("./is-supported-locale-DUMI9QQ2.cjs"),a=require("./pull-minimum-sdk-version.constant-BTfcyhwh.cjs"),o=require("./isValidUniversalIdentifier-DymFerYs.cjs"),s=require("./kebab-case-B3kq7ANN.cjs"),c=require("./has-error-code-DsJeqbZq.cjs"),l=require("./fs-utils-DoSmCBu8.cjs"),u=require("./cli-error-CrUD8uMp.cjs"),d=require("./get-tooling-error-context-CZKTM7Q6.cjs"),f=require("./isRestorableApplicationSourcePath-Du_zM55R.cjs"),p=require("./locale-catalog-format-BD4XDEnl.cjs"),m=require("./parse-app-export-BsxpQED7.cjs"),h=require("./extract-manifest-from-file-CaWVLmLU.cjs"),g=require("./code-step-file-suffix.constant-B6vqrfcU.cjs"),_=require("./collect-translatable-strings-AWv41yIv.cjs"),v=require("./constants-Cf5-CwMu.cjs"),y=require("./assert-pull-paths-TFGZvzZO.cjs"),b=require("./is-locale-catalog-T4W5NhnW.cjs"),x=require("./is-exported-manifest-C4lO285q.cjs"),S=require("./create-pull-base-write-CX8xZhMz.cjs"),C=require("./print-typescript-value-BjYn0ZFT.cjs"),w=require("./read-application-identity-BrtopaMa.cjs");let T=require("node:fs/promises"),E=require("node:path"),D=require("node:module"),O=require("esbuild"),k=require("typescript");k=e.r(k);var A=t.t(),ee=async({appPath:e,manifest:t,files:r,reservedPaths:i,remoteSourceFingerprints:a={},sourceFingerprints:o={}})=>{let s=new Set((t.frontComponents??[]).map(e=>e.sourceComponentPath)),c=[],d={},p={},m=0;for(let t of r.filter(e=>e.folder===f.r.Source&&!s.has(e.path))){let r=Buffer.from(t.content,t.encoding===`base64`?`base64`:`utf8`),s=S.i(r),f=await l.i((0,E.join)(e,t.path))?await(0,T.readFile)((0,E.join)(e,t.path)):void 0;if(i.has(t.path.toLowerCase())||n.t(f)&&!f.equals(r)&&!n.t(a[t.path]??o[t.path])&&t.path!==`tsconfig.json`)throw new u.t({code:`CONFLICT`,message:`Cannot restore source ${t.path}: it is occupied by another local file or definition. No local files were changed.`});if(d[t.path]=s,f?.equals(r)){p[t.path]=s,m++;continue}if(n.t(f)&&(a[t.path]??o[t.path])===s){m++;continue}c.push({kind:`source`,universalIdentifier:`source/${t.path}`,relativePath:t.path,content:r,requiredSdkExports:[],isRegeneration:n.t(f)})}return{writes:c,fingerprints:d,unchangedSourceFingerprints:p,unchangedCount:m}},te=async({appPath:e,files:t,sourceFingerprints:r={},publicAssetFingerprints:i={}})=>{await y.t({appPath:e,relativePaths:t.map(({path:e})=>e)});let a=[],o={},s={};for(let{path:c,content:u}of t){let t=Buffer.from(u,`base64`),d=S.i(t);o[c]=d;let f=(0,E.join)(e,c),p=await l.i(f)?await(0,T.readFile)(f):void 0;if(!(n.t(p)&&(i[c]??r[c])===d)){if(p?.equals(t)){s[c]=d;continue}a.push({kind:`publicAsset`,universalIdentifier:`public-asset/${c}`,relativePath:c,content:t,requiredSdkExports:[],isRegeneration:n.t(p)})}}return{writes:a,fingerprints:o,unchangedSourceFingerprints:s,unchangedCount:t.length-a.length}},ne=async({appPath:e,manifest:t,baseManifest:r,files:i,scannedFiles:a,protectedIdentifiers:o,reservedPaths:s,remoteSourceFingerprints:c={},sourceFingerprints:d={}})=>{let p=[],m=[],h=0,g={},_={},v=new Set(s);for(let o of t.frontComponents??[]){let{universalIdentifier:t,sourceComponentPath:s}=o,m=i.find(e=>e.folder===f.r.Source&&e.path===s),y=a.find(e=>e.entityKey===`frontComponents`&&e.universalIdentifier?.toLowerCase()===t.toLowerCase());if(n.t(o.sourceFiles)&&n.t(y)&&y.relativePath.split(`\\`).join(`/`)!==s)throw new u.t({code:`CONFLICT`,message:`Front component ${t} moved locally. Restore it to ${s} before pulling its imported files.`});let b=(y?.relativePath??s).split(`\\`).join(`/`),x=b.toLowerCase(),C=await l.i((0,E.join)(e,b))?await(0,T.readFile)((0,E.join)(e,b),`utf8`):void 0;if(!n.t(m)||v.has(x)||n.t(C)&&!n.t(y))throw new u.t({code:`CONFLICT`,message:n.t(m)?`Cannot restore front component ${t}: ${b} is occupied by another local file or definition. No local files were changed.`:`Source for front component ${t} was not exported. No local files were changed.`});v.add(x);let w=Buffer.from(m.content,m.encoding===`base64`?`base64`:`utf8`).toString(`utf8`),D=S.i(w);g[s]=D,C===w&&(_[b]=D);let O=r?.frontComponents?.find(e=>e.universalIdentifier.toLowerCase()===t.toLowerCase()),k=(n.t(O)?c[O.sourceComponentPath]:void 0)??d[b];if(C===w||n.t(C)&&n.t(O)&&(n.t(k)?k===D:JSON.stringify(O)===JSON.stringify(o))){h++;continue}p.push({kind:`frontComponent`,universalIdentifier:t,relativePath:b,content:w,requiredSdkExports:[`defineFrontComponent`],isRegeneration:n.t(C)})}for(let e of r?.frontComponents??[]){if(o.has(e.universalIdentifier.toLowerCase())){let r=c[e.sourceComponentPath];if(!n.t(r)||t.frontComponents?.some(t=>t.universalIdentifier.toLowerCase()===e.universalIdentifier.toLowerCase()))continue;g[e.sourceComponentPath]=r;continue}let r=a.find(t=>t.entityKey===`frontComponents`&&t.universalIdentifier?.toLowerCase()===e.universalIdentifier.toLowerCase())?.relativePath.split(`\\`).join(`/`);n.t(r)&&!v.has(r.toLowerCase())&&m.push({universalIdentifier:e.universalIdentifier,relativePath:r})}return{writes:p,deletions:m,unchangedCount:h,fingerprints:g,unchangedSourceFingerprints:_}},j=({value:e,identifiers:t})=>{(0,A.isArray)(e)?e.forEach(e=>j({value:e,identifiers:t})):r.t(e)&&((0,A.isString)(e.universalIdentifier)&&t.add(e.universalIdentifier.toLowerCase()),Object.values(e).forEach(e=>j({value:e,identifiers:t})))},M=[`import { readFileSync } from 'node:fs';`,`import { join } from 'node:path';`],N=e=>E.posix.basename(e).replace(/(\.workflow)?\.tsx?$/,``),P=e=>E.posix.join(E.posix.dirname(e),N(e)),F=({folderPath:e,fileBaseName:t,universalIdentifier:r,localFileName:i,takenFileNames:a,isCodeStepPathAvailable:o})=>{let s=r.slice(0,8),c=t=>!a.has(t)&&o({relativePath:E.posix.join(e,t),stepUniversalIdentifier:r}),l=[`${t}${g.t}`,`${s}-${t}${g.t}`],u=`${s}-${t}-`,d=e=>l.includes(e)||e.startsWith(u)&&e.endsWith(`.code.ts`)&&/^([2-9]|[1-9]\d+)$/.test(e.slice(u.length,-8)),f=e=>(a.add(e),e);if(n.t(i)&&d(i)&&c(i))return f(i);let[p]=l;c(p)||(p=l[1]);for(let e=2;!c(p);e++)p=`${u}${e}${g.t}`;return f(p)},I=({config:e,workflowRelativePath:t,isCodeStepPathAvailable:i=()=>!0,localCodeStepPathByStepIdentifier:o})=>{if(!r.t(e)||!r.t(e.version)||!Array.isArray(e.version.steps))return{config:e,importStatements:[],codeStepFiles:[]};let s=N(t),c=P(t),l=new Set,u=[],d=e.version.steps.map(e=>{if(!r.t(e)||e.type!==`CODE`||!(0,A.isString)(e.universalIdentifier)||!r.t(e.input)||!(0,A.isString)(e.input.code))return e;let t=o?.get(e.universalIdentifier.toLowerCase()),d=F({folderPath:c,fileBaseName:a.o({segments:[(0,A.isString)(e.name)?e.name:null],universalIdentifier:e.universalIdentifier}),universalIdentifier:e.universalIdentifier,localFileName:n.t(t)&&E.posix.dirname(t)===c?E.posix.basename(t):void 0,takenFileNames:l,isCodeStepPathAvailable:i});return u.push({universalIdentifier:e.universalIdentifier,relativePath:E.posix.join(c,d),content:e.input.code}),{...e,input:{...e.input,code:C.r(`readFileSync(join(__dirname, ${C.t(s)}, ${C.t(d)}), 'utf8')`)}}});return u.length===0?{config:e,importStatements:[],codeStepFiles:u}:{config:{...e,version:{...e.version,steps:d}},importStatements:M,codeStepFiles:u}},L=async({manifest:e,frontComponentSourcePaths:t})=>{let r=[..._.t(e),...await _.n(t)],a=new Map(r.map(e=>[p.r(e.message,e.context),e]));return Object.entries(e.translations??{}).filter(e=>i.t(e[0])&&b.t(e[1])).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>{let r=[],i={};for(let[e,o]of Object.entries(t)){let t=a.get(e);n.t(t)?r.push({message:t.message,context:t.context,translation:o}):i[e]=o}return{locale:e,authored:p.t(r),compiled:i}})},R=e=>n.t(e)&&typeof e==`object`&&!Array.isArray(e),z=e=>`${JSON.stringify(e,null,2)}\n`,B=e=>{if(!n.t(e))return{};try{let t=JSON.parse(e);return n.t(t)&&typeof t==`object`?t:{}}catch{return{}}},V=({message:e,context:t})=>JSON.stringify([t??null,e]),re=({catalog:e,existingAuthoredContent:t,existingCompiledContent:n})=>{let r=new Set(p.n(e.authored).map(e=>p.r(e.message,e.context))),i=new Set(Object.keys(B(n)).filter(t=>!(t in e.compiled)&&r.has(t)));if(i.size===0)return null;let a=p.n(B(t)),o=new Set(a.map(V)),s=p.n(e.authored).filter(e=>i.has(p.r(e.message,e.context))&&!o.has(V(e)));return p.t([...a,...s])},H=e=>`${v.n}/${e}.json`,U=e=>`${v.t}/${e}.json`,W=async e=>await l.i(e)?await(0,T.readFile)(e,`utf8`):null,G=async({appPath:e,manifest:t,baseManifest:r,frontComponentSourcePaths:a})=>{let o=[],s=[],c={},u=t.translations;if(!R(u))return{writes:o,deletions:s,compiledEntryCountByLocale:c};let d=await L({manifest:t,frontComponentSourcePaths:a}),f=new Set(Object.keys(u)),p=R(r?.translations)?r.translations:{},m=u;for(let t of d){let{locale:r,authored:i,compiled:a}=t,l=Object.keys(a).length;l>0&&(c[r]=l);let u=H(r),d=U(r),f=await W((0,E.join)(e,u)),h=await W((0,E.join)(e,d)),g=r in p&&JSON.stringify(p[r])===JSON.stringify(m[r]),_=(Object.keys(i).length===0||n.t(f))&&(l===0||n.t(h)),v=g&&_?re({catalog:t,existingAuthoredContent:f,existingCompiledContent:h}):null;if(g&&_&&!n.t(v))continue;let y=[{relativePath:u,content:z(v??i),isWanted:Object.keys(v??i).length>0,existingContent:f},{relativePath:d,content:z(a),isWanted:l>0,existingContent:h}];for(let{relativePath:e,content:t,isWanted:i,existingContent:a}of y){let c=n.t(a);if(!i){c&&e===d&&s.push({universalIdentifier:r,relativePath:e});continue}a!==t&&o.push({kind:`translation`,requiredSdkExports:[],universalIdentifier:r,relativePath:e,content:t,isRegeneration:c})}}for(let[t,n]of Object.entries(p))if(!(f.has(t)||!i.t(t)||!b.t(n)))for(let n of[H(t),U(t)])await l.i((0,E.join)(e,n))&&s.push({universalIdentifier:t,relativePath:n});return{writes:o,deletions:s,compiledEntryCountByLocale:c}},K=({entity:e,relativePath:t,isCodeStepPathAvailable:n,localCodeStepPathByStepIdentifier:r})=>{if(e.kind!==`workflow`)return{...a.i({definer:e.definer,config:e.config,enumBindings:e.enumBindings}),codeStepFiles:[]};let{config:i,importStatements:o,codeStepFiles:s}=I({config:e.config,workflowRelativePath:t,isCodeStepPathAvailable:n,localCodeStepPathByStepIdentifier:r});return{...a.i({definer:e.definer,config:i,enumBindings:e.enumBindings,importStatements:o}),codeStepFiles:s}},ie=async({appPath:e,baseManifest:t,writes:r,deletions:i,frontComponentSourcePaths:o,sourceFingerprints:s,baseEntities:c,localCodeStepFilesByWorkflowPath:l})=>{if(!n.t(t))return[];let u=new Map(c.map(e=>[e.universalIdentifier,e])),d=await G({appPath:e,manifest:t,baseManifest:null,frontComponentSourcePaths:o}),f=new Map(d.writes.map(e=>[e.relativePath,e.content])),p=new Set(d.deletions.map(({relativePath:e})=>e)),m=new Map(c.flatMap(e=>e.kind===`workflow`?I({config:e.config,workflowRelativePath:``}).codeStepFiles.map(({universalIdentifier:e,content:t})=>[e.toLowerCase(),t]):[])),h=[...l.values()].flat(),g=new Map(h.map(({universalIdentifier:e,relativePath:t})=>[e.toLowerCase(),t])),_=new Map(h.flatMap(({universalIdentifier:e,relativePath:t})=>{let r=m.get(e.toLowerCase());return n.t(r)?[[t,r]]:[]})),v=({universalIdentifier:e,relativePath:t})=>{let r=u.get(e);if(n.t(r))return[K({entity:r,relativePath:t,localCodeStepPathByStepIdentifier:g}).content,a.i({definer:r.definer,config:r.config,enumBindings:r.enumBindings}).content];let i=_.get(t)??f.get(t);return n.t(i)?[i]:[]},y=[];for(let{universalIdentifier:t,relativePath:a}of[...r.filter(e=>e.isRegeneration),...i]){let r=s?.[a];if(n.t(r)){S.i(await(0,T.readFile)((0,E.join)(e,a)))!==r&&y.push({universalIdentifier:t,relativePath:a});continue}let i=v({universalIdentifier:t,relativePath:a});(p.has(a)||i.length>0&&!i.includes(await(0,T.readFile)((0,E.join)(e,a),`utf8`)))&&y.push({universalIdentifier:t,relativePath:a})}return y},q=e=>e.split(`\\`).join(`/`),J=({node:e,name:t})=>n.t(e)&&k.isIdentifier(e)&&e.text===t,Y=({objectLiteral:e,propertyName:t})=>e.properties.find(e=>k.isPropertyAssignment(e)&&!k.isComputedPropertyName(e.name)&&e.name.text===t)?.initializer,ae=e=>{if(!n.t(e)||!k.isCallExpression(e)||!J({node:e.expression,name:`readFileSync`}))return;let[t]=e.arguments;if(!n.t(t)||!k.isCallExpression(t)||!J({node:t.expression,name:`join`}))return;let[r,...i]=t.arguments;return J({node:r,name:`__dirname`})&&i.every(k.isStringLiteralLike)?i.map(e=>e.text):void 0},oe=({workflowPath:e,source:t})=>{let r=new Map,i=t=>{if(k.isObjectLiteralExpression(t)){let i=Y({objectLiteral:t,propertyName:`universalIdentifier`}),a=Y({objectLiteral:t,propertyName:`input`}),o=n.t(a)&&k.isObjectLiteralExpression(a)?ae(Y({objectLiteral:a,propertyName:`code`})):void 0;n.t(i)&&k.isStringLiteralLike(i)&&n.t(o)&&r.set(i.text.toLowerCase(),E.posix.join(E.posix.dirname(e),...o))}k.forEachChild(t,i)};return i(k.createSourceFile(e,t,k.ScriptTarget.Latest,!1)),r},se=async({appPath:e,scannedFiles:t,baseEntities:r})=>{let i=new Set(t.filter(e=>e.isReadable).map(e=>q(e.relativePath))),a=new Map(r.filter(e=>e.kind===`workflow`).map(e=>[e.universalIdentifier.toLowerCase(),e.config])),o=new Map;for(let r of t){if(r.entityKey!==`workflows`)continue;let t=q(r.relativePath),s=`${P(t)}/`,c=new Map,l=new Set,u=e=>e.startsWith(s)&&e.endsWith(`.code.ts`)&&i.has(e)&&!l.has(e),d=({stepIdentifier:e,relativePath:t})=>{c.set(e,t),l.add(t)};for(let[n,r]of oe({workflowPath:t,source:await(0,T.readFile)((0,E.join)(e,t),`utf8`)}))u(r)&&d({stepIdentifier:n,relativePath:r});let f=I({config:n.t(r.universalIdentifier)?a.get(r.universalIdentifier.toLowerCase()):void 0,workflowRelativePath:t,localCodeStepPathByStepIdentifier:c}).codeStepFiles;for(let{universalIdentifier:t,relativePath:n,content:r}of f){let i=t.toLowerCase();!c.has(i)&&u(n)&&await(0,T.readFile)((0,E.join)(e,n),`utf8`)===r&&d({stepIdentifier:i,relativePath:n})}o.set(t,[...c].map(([e,t])=>({universalIdentifier:e,relativePath:t})))}return o},ce=async({appPath:e,applicationExport:t,target:i,signal:a})=>{a.throwIfAborted();let o=S.n(i),s=m.n({value:t.files,frontComponents:m.r(t.manifest).frontComponents??[]});if(await y.t({appPath:e,relativePaths:[S.r,...s.map(e=>e.path)]}),!r.t(JSON.parse(await(0,T.readFile)((0,E.join)(e,`package.json`),`utf8`))))throw Error(`Pull requires a project with a package.json object.`);let c=await w.t({appPath:e,signal:a});if(n.t(c.application)&&c.application.universalIdentifier.toLowerCase()!==t.application.universalIdentifier.toLowerCase())throw Error(`This project declares application ${c.application.universalIdentifier}, but the export belongs to ${t.application.universalIdentifier}. Pull it into a different directory.`);return a.throwIfAborted(),{applicationExport:{...t,files:s},target:o}},le=({entities:e,unreconciledUniversalIdentifiers:t})=>e.map(e=>{if(e.kind!==`application`||!r.t(e.config)||!(0,A.isString)(e.config.defaultRoleUniversalIdentifier)||!t?.has(e.config.defaultRoleUniversalIdentifier.toLowerCase()))return e;let{defaultRoleUniversalIdentifier:n,...i}=e.config;return{...e,config:i}}),ue=({manifest:e,baseManifest:t,scannedFiles:r,unreconciledUniversalIdentifiers:i,systemPermissionFlag:o})=>{let s=new Map;for(let e of r)e.isReadable&&n.t(e.universalIdentifier)&&s.set(e.universalIdentifier.toLowerCase(),e);let{entities:c,skipped:l}=a.r({manifest:e,sourceFileByUniversalIdentifier:s,systemPermissionFlag:o});return{entities:c,baseEntities:le({entities:n.t(t)?a.r({manifest:t,sourceFileByUniversalIdentifier:s}).entities:[],unreconciledUniversalIdentifiers:i}),skipped:l}},de=({entities:e,baseEntities:t,protectedIdentifiers:r,writes:i,deletions:a,scannedFiles:o})=>{let s=new Set;j({value:t,identifiers:s});let c=new Map(o.map(e=>{let t=new Set;return j({value:e.config,identifiers:t}),[e.relativePath.split(`\\`).join(`/`),t]})),l=new Map(e.map(e=>[e.universalIdentifier.toLowerCase(),e.config])),u=new Map(t.map(e=>[e.universalIdentifier.toLowerCase(),e])),d=[...i.filter(e=>e.kind!==`translation`&&e.isRegeneration),...a.flatMap(e=>{let t=u.get(e.universalIdentifier.toLowerCase());return n.t(t)?[{...e,kind:t.kind}]:[]})],f=[],p=new Set,m=[],h;do{h=p.size;let e=new Map(c);for(let t of i){if(t.kind===`translation`||p.has(t.relativePath))continue;let n=new Set;j({value:l.get(t.universalIdentifier.toLowerCase()),identifiers:n}),e.set(t.relativePath,n)}for(let t of a)p.has(t.relativePath)||e.delete(t.relativePath);let t=new Set([...e.values()].flatMap(e=>[...e]));for(let e of d){if(p.has(e.relativePath)||e.kind===`translation`||e.kind===`dependency`||e.kind===`publicAsset`||e.kind===`source`)continue;let i=[...c.get(e.relativePath)??[]].find(e=>!t.has(e)&&(r.has(e)||!s.has(e)));if(n.t(i)){if(p.add(e.relativePath),e.kind===`workflow`){let t=new Set(c.get(e.relativePath));j({value:l.get(e.universalIdentifier.toLowerCase()),identifiers:t}),m.push({codeStepFolderPath:`${P(e.relativePath)}/`,identifiers:t})}f.push({kind:e.kind,universalIdentifier:e.universalIdentifier,reason:`preserving ${e.relativePath}, replacement would remove nested local definition ${i} without a confirmed remote deletion`})}}}while(p.size!==h);let g=({relativePath:e,universalIdentifier:t})=>p.has(e)||m.some(({codeStepFolderPath:n,identifiers:r})=>e.startsWith(n)&&r.has(t.toLowerCase()));return{writes:i.filter(e=>!g(e)),deletions:a.filter(e=>!g(e)),skipped:f}},fe=({manifest:e,baseManifest:t,unreconciledUniversalIdentifiers:i,protectedIdentifiers:a})=>{let o=e=>r.t(e)&&(0,A.isString)(e.universalIdentifier)?e.universalIdentifier.toLowerCase():void 0,s=(e,t)=>{let s=new Map(t.map(e=>[o(e),e])),l=e.filter(e=>{let t=o(e);return!n.t(t)||!i.has(t)}).map(e=>{let t=o(e),i=s.get(t);return!n.t(t)||!r.t(e)||!r.t(i)?e:c(e,i)}),u=new Set(l.map(o)),d=t.filter(e=>{let t=o(e);return n.t(t)&&!u.has(t)&&(i.has(t)||a.has(t))});return[...l,...d]},c=(e,t)=>{let n={...e};for(let r of new Set([...Object.keys(e),...Object.keys(t??{})])){let i=e[r],a=t?.[r];if(!(0,A.isArray)(i)&&!(0,A.isArray)(a))continue;let o=s((0,A.isArray)(i)?i:[],(0,A.isArray)(a)?a:[]);((0,A.isArray)(i)||o.length>0)&&(n[r]=o)}return n},l={...e,...c(e,t)};return n.t(t)&&i.has(e.application.universalIdentifier.toLowerCase())&&(l.application=t.application),l},pe=/^[0-9a-f]{64}$/,X=e=>r.t(e)&&Object.values(e).every(e=>(0,A.isString)(e)&&pe.test(e)),me=async({appPath:e,target:t,applicationUniversalIdentifier:i})=>{await y.t({appPath:e,relativePaths:[S.r]});let a=S.n(t);try{let t=JSON.parse(await(0,T.readFile)((0,E.join)(e,S.r),`utf8`));if(r.t(t)&&t.version===1)return{status:`unbound`,manifest:null};if(!r.t(t)||t.version!==2||!r.t(t.target)||!(0,A.isString)(t.target.apiUrl)||!(0,A.isString)(t.target.workspaceId)||!(0,A.isString)(t.applicationUniversalIdentifier)||!x.t(t.manifest)||t.applicationUniversalIdentifier.toLowerCase()!==t.manifest.application.universalIdentifier.toLowerCase()||n.t(t.unreconciledUniversalIdentifiers)&&(!(0,A.isArray)(t.unreconciledUniversalIdentifiers)||!t.unreconciledUniversalIdentifiers.every(e=>(0,A.isString)(e)&&o.t(e)))||n.t(t.sourceFingerprints)&&!X(t.sourceFingerprints)||n.t(t.publicAssetFingerprints)&&!X(t.publicAssetFingerprints)||n.t(t.remoteSourceFingerprints)&&!X(t.remoteSourceFingerprints)||n.t(t.dependencyFingerprints)&&!X(t.dependencyFingerprints))return{status:`unreadable`,manifest:null};let s=S.n({apiUrl:t.target.apiUrl,workspaceId:t.target.workspaceId});return s.apiUrl!==a.apiUrl||s.workspaceId!==a.workspaceId||t.applicationUniversalIdentifier.toLowerCase()!==i.toLowerCase()?{status:`other-target`,manifest:null}:{status:`used`,manifest:t.manifest,unreconciledUniversalIdentifiers:t.unreconciledUniversalIdentifiers?.filter(A.isString).map(e=>e.toLowerCase()),dependencyFingerprints:X(t.dependencyFingerprints)?t.dependencyFingerprints:void 0,publicAssetFingerprints:X(t.publicAssetFingerprints)?t.publicAssetFingerprints:void 0,remoteSourceFingerprints:X(t.remoteSourceFingerprints)?t.remoteSourceFingerprints:void 0,sourceFingerprints:X(t.sourceFingerprints)?t.sourceFingerprints:void 0}}catch(e){return{status:c.t(e,`ENOENT`)?`missing`:`unreadable`,manifest:null}}},he=({appPath:e,writes:t})=>{let r=new Set(t.flatMap(e=>e.requiredSdkExports));if(r.size===0)return;let i=(0,D.createRequire)((0,E.join)(e,`package.json`))(`twenty-sdk/define`),o=[...r].filter(e=>!n.t(i[e])).sort();if(o.length>0)throw new u.t({code:`SDK_SOURCE_UNSUPPORTED`,message:`The app's twenty-sdk cannot read the generated definitions. Missing exports: ${o.join(`, `)}.`,hint:`Upgrade the app to a compatible twenty-sdk version (${a.t} or later).`,details:{missingNames:o}})},ge=`.twenty/cli`,_e=async({appPath:e,writes:t,deletions:n})=>{let r=t.map(e=>e.relativePath);if(new Set(r).size!==r.length)throw Error(`Refusing to write: two entities resolved to the same file path`);let i=(0,E.resolve)(e);for(let t of[...r,...n.map(e=>e.relativePath)]){let n=(0,E.relative)(i,(0,E.resolve)(i,t));if(n.length===0||n===`..`||n.startsWith(`..${E.sep}`)||(0,E.isAbsolute)(n))throw Error(`Refusing to write: ${t} leaves the application directory`);let r=(0,E.join)(e,t);if(await l.i(r)&&(await(0,T.lstat)(r)).isDirectory())throw Error(`Refusing to write: ${t} is a directory, and pull never deletes a folder`)}},ve=async({appPath:e,backupDirectory:t,relativePath:n})=>{let r=(0,E.join)(e,n);if(!await l.i(r))return!1;let i=(0,E.join)(t,n);return await l.r((0,E.dirname)(i)),await l.t(r,i),!0},ye=async({appPath:e,backupDirectory:t,backedUpRelativePaths:n,writtenRelativePaths:r})=>{for(let t of r)await(0,T.rm)((0,E.join)(e,t),{force:!0});for(let r of n){let n=(0,E.join)(e,r);await l.r((0,E.dirname)(n)),await(0,T.rm)(n,{force:!0}),await l.t((0,E.join)(t,r),n)}},be=async({appPath:e,writes:t,deletions:n,finalWrite:r,signal:i})=>{let a=r?[...t,r]:t;i?.throwIfAborted(),await _e({appPath:e,writes:a,deletions:n});let o=(0,E.join)(e,ge);await l.r(o);let s=await(0,T.mkdtemp)((0,E.join)(o,`pull-staging-`)),c=await(0,T.mkdtemp)((0,E.join)(o,`pull-backup-`)),d=[],f=[];try{for(let e of a){let t=(0,E.join)(s,e.relativePath);await l.r((0,E.dirname)(t)),await(0,T.writeFile)(t,e.content,e===r?{mode:384}:void 0)}for(let t of[...a.map(e=>e.relativePath),...n.map(e=>e.relativePath)])await ve({appPath:e,backupDirectory:c,relativePath:t})&&d.push(t);i?.throwIfAborted();for(let n of t){let t=(0,E.join)(e,n.relativePath);await l.r((0,E.dirname)(t)),f.push(n.relativePath),await l.t((0,E.join)(s,n.relativePath),t)}for(let t of n)await(0,T.rm)((0,E.join)(e,t.relativePath),{force:!0});if(r){let t=(0,E.join)(e,r.relativePath);await l.r((0,E.dirname)(t)),f.push(r.relativePath),await l.t((0,E.join)(s,r.relativePath),t)}}catch(t){try{await ye({appPath:e,backupDirectory:c,backedUpRelativePaths:d,writtenRelativePaths:f.filter(e=>!d.includes(e))})}catch(e){throw await l.s(s).catch(()=>void 0),new u.t({code:`PULL_FAILED`,details:{outcome:`unknown`,backupDirectory:c},message:`Pull failed and could not restore every file it had replaced. The originals are kept in ${c}.\nOriginal failure: ${t instanceof Error?t.message:String(t)}\nRestore failure: ${e instanceof Error?e.message:String(e)}`})}throw await l.s(s),await l.s(c),i?.aborted&&Object.is(t,i.reason)?t:new u.t({code:`PULL_FAILED`,message:t instanceof Error?t.message:String(t),details:{outcome:`unchanged`}})}try{await l.s(s),await l.s(c)}catch(e){throw new u.t({code:`PULL_FAILED`,message:`Pull completed, but temporary files could not be removed: ${e instanceof Error?e.message:String(e)}`,details:{outcome:`pulled`,backupDirectory:c,stagingDirectory:s}})}},xe=[`nameSingular`,`name`,`label`,`title`],Se=e=>{let t={},i=[{value:e}];for(;i.length>0;){let e=i.pop();if(!n.t(e))break;let{value:a,parentLabel:o}=e;if(Array.isArray(a)){for(let e of[...a].reverse())i.push({value:e,parentLabel:o});continue}if(!r.t(a))continue;let s=xe.map(e=>a[e]).find(A.isNonEmptyString),c=n.t(s)&&n.t(o)?`${o}.${s}`:s??o;n.t(s)&&n.t(c)&&(0,A.isNonEmptyString)(a.universalIdentifier)&&(t[a.universalIdentifier]=c);for(let e of Object.values(a).reverse())i.push({value:e,parentLabel:c})}return t},Ce=e=>{let t=new Map;for(let n of e){let e=`${n.defaultFolder}/${n.fileBaseName}${n.fileSuffix}`,r=t.get(e)??[];r.push(n),t.set(e,r)}let r=new Map;for(let e of t.values()){if(e.length===1){r.set(e[0].universalIdentifier,e[0].fileBaseName);continue}let t=e.map(e=>n.t(e.parentName)?a.a(`${s.t(e.parentName)}-${e.fileBaseName}`):e.fileBaseName),i=new Map;for(let e of t)i.set(e,(i.get(e)??0)+1);e.forEach((e,n)=>{let o=t[n],s=i.get(o)===1;r.set(e.universalIdentifier,s?o:a.a(`${e.universalIdentifier.slice(0,8)}-${o}`))})}return r},Z=e=>e.toLowerCase(),Q=e=>e.split(`\\`).join(`/`),we=({scannedFiles:e,entityKey:t})=>{let n=new Map;for(let r of e){if(r.entityKey!==t)continue;let e=Q((0,E.dirname)(r.relativePath));n.set(e,(n.get(e)??0)+1)}return[...n.entries()].sort(([e,t],[n,r])=>r-t||e.localeCompare(n))[0]?.[0]??null},Te=({folder:e,fileBaseName:t,fileSuffix:n,universalIdentifier:r,takenRelativePaths:i})=>{let a=r.slice(0,8),o=[t,`${a}-${t}`,...Array.from({length:100},(e,n)=>`${a}-${t}-${n+2}`)];for(let t of o){let r=E.posix.join(e,`${t}${n}`);if(!i.has(Z(r)))return r}throw Error(`Could not find a free file name for ${r} in ${e}`)},Ee=({entity:e,applicationFile:t,scannedFileByUniversalIdentifier:n})=>e.kind===`application`?t:n.get(e.universalIdentifier.toLowerCase()),De=({entities:e,baseEntities:t,scannedFiles:r,workspaceUniversalIdentifiers:i,unreconciledUniversalIdentifiers:a,localCodeStepFilesByWorkflowPath:o})=>{let s=new Set(e.map(e=>e.universalIdentifier.toLowerCase())),c=new Map(t.map(e=>[e.universalIdentifier,JSON.stringify(e.config)])),l=Ce(e),u=new Map,d=r.find(e=>e.entityKey===`application`);for(let e of r)n.t(e.universalIdentifier)&&u.set(e.universalIdentifier.toLowerCase(),e);let f=[],p=[],m=new Set,h=new Set(r.map(e=>Z(Q(e.relativePath)))),g=new Set(h),_=[],v=new Set,y=e=>o?.get(e)??[];for(let t of e){let e=Ee({entity:t,applicationFile:d,scannedFileByUniversalIdentifier:u}),i=n.t(e)?Q(e.relativePath):void 0,o=we({scannedFiles:r,entityKey:x.n[t.kind]})??t.defaultFolder,b=l.get(t.universalIdentifier)??t.fileBaseName,S=i??Te({folder:o,fileBaseName:b,fileSuffix:t.fileSuffix,universalIdentifier:t.universalIdentifier,takenRelativePaths:g});m.add(S),g.add(Z(S)),v.add(Z(S));let C=c.get(t.universalIdentifier),w=new Set,T=new Set;j({value:e?.config,identifiers:w}),j({value:t.config,identifiers:T});let E=[...w].some(e=>!T.has(e)&&s.has(e));if(n.t(e)&&e.targetFunctionName===t.definer&&!E&&!a?.has(t.universalIdentifier.toLowerCase())&&n.t(C)&&C===JSON.stringify(t.config)){p.push(t);continue}let D=n.t(i)?y(i):[],O=new Map(D.map(e=>[e.universalIdentifier.toLowerCase(),Z(e.relativePath)])),{codeStepFiles:k,...A}=K({entity:t,relativePath:S,isCodeStepPathAvailable:({relativePath:e,stepUniversalIdentifier:t})=>{let n=Z(e);return!g.has(n)||!v.has(n)&&O.get(t.toLowerCase())===n}});f.push({kind:t.kind,universalIdentifier:t.universalIdentifier,relativePath:S,...A,isRegeneration:n.t(i)});for(let e of k){let n=Z(e.relativePath);f.push({kind:t.kind,...e,requiredSdkExports:[],isRegeneration:h.has(n)}),m.add(e.relativePath),g.add(n),v.add(n)}_.push(...D)}let b=[];for(let e of c.keys()){if(s.has(e.toLowerCase()))continue;let t=u.get(e.toLowerCase()),r=n.t(t)?Q(t.relativePath):void 0;!n.t(r)||m.has(r)||(b.push({universalIdentifier:e,relativePath:r}),i.has(e)||_.push(...y(r)))}let S=r.filter(e=>n.t(e.universalIdentifier)&&!s.has(e.universalIdentifier.toLowerCase())&&!c.has(e.universalIdentifier)&&!i.has(e.universalIdentifier)&&!m.has(Q(e.relativePath))).map(e=>Q(e.relativePath));return{writes:f,unchanged:p,deletions:b,codeStepFileDeletions:_.filter(e=>!m.has(e.relativePath)),localOnlyRelativePaths:S}},$=[`dependencies`,`devDependencies`,`peerDependencies`],Oe=({content:e,existingContent:t})=>{let n=JSON.parse(e),i=JSON.parse(t);if($.some(e=>{let t=n[e];return r.t(t)&&Object.hasOwn(t,`twenty-sdk`)}))return e;for(let e of $){let t=i[e];if(!r.t(t)||!(0,A.isString)(t[`twenty-sdk`]))continue;let a=n[e];return n[e]={...r.t(a)?a:{},"twenty-sdk":t[`twenty-sdk`]},`${JSON.stringify(n,null,2)}\n`}return e},ke=async({appPath:e,files:t,sourceFingerprints:r={},dependencyFingerprints:i={}})=>{let a=[],o={},s={};for(let{path:c,content:u}of t){let t=(0,E.join)(e,c),d=await l.i(t)?await(0,T.readFile)(t,`utf8`):void 0,f=S.i(u);if(o[c]=f,n.t(d)&&(i[c]??r[c])===f)continue;let p=c===`package.json`&&n.t(d)?Oe({content:u,existingContent:d}):u;if(d===p){s[c]=S.i(p);continue}a.push({kind:`dependency`,universalIdentifier:`dependencies/${c}`,relativePath:c,content:p,requiredSdkExports:[],isRegeneration:n.t(d)})}return{writes:a,fingerprints:o,unchangedSourceFingerprints:s,unchangedCount:t.length-a.length}},Ae=async({appPath:e,includeConfig:t=!1,signal:r})=>{r.throwIfAborted();let i=await h.i(e),a=[];for(let o of i){r.throwIfAborted();let i=(0,E.relative)(e,o),s;try{s=await(0,T.readFile)(o,`utf-8`)}catch{a.push({relativePath:i,entityKey:null,targetFunctionName:null,universalIdentifier:null,isReadable:!1});continue}let c=h.r({fileContent:s,filePath:o});if(!n.t(c)){a.push({relativePath:i,entityKey:null,targetFunctionName:null,universalIdentifier:null,isReadable:!0});continue}let l=h.n[c],d={},f=!0;try{d=(await h.t({appPath:e,filePath:o})).config}catch(e){if(e instanceof u.t&&e.code===`SDK_SOURCE_UNSUPPORTED`)throw e;d={},f=!1}a.push({relativePath:i,entityKey:l,targetFunctionName:c,universalIdentifier:(0,A.isString)(d.universalIdentifier)?d.universalIdentifier:null,isReadable:f,...t?{config:d}:{}})}return r.throwIfAborted(),a},je=({sourceFingerprints:e={},writes:t,deletions:n})=>{let r=new Set(n.map(e=>e.relativePath));return{...Object.fromEntries(Object.entries(e).filter(([e])=>!r.has(e))),...Object.fromEntries(t.map(e=>[e.relativePath,S.i(e.content)]))}},Me=async e=>{let{appPath:t,signal:r}=e;try{let{applicationExport:i,target:a}=await ce(e),o=m.r(i.manifest),s=await me({appPath:t,target:a,applicationUniversalIdentifier:i.application.universalIdentifier}),c=n.t(s.manifest)?m.r(s.manifest):null,l=await Ae({appPath:t,includeConfig:!0,signal:r}),u=new Set(s.unreconciledUniversalIdentifiers),{entities:d,baseEntities:h,skipped:g}=ue({manifest:o,baseManifest:c,scannedFiles:l,unreconciledUniversalIdentifiers:u,systemPermissionFlag:p.i(t)});r?.throwIfAborted();let _=new Set(i.coverage.map(e=>e.universalIdentifier)),v=await se({appPath:t,scannedFiles:l,baseEntities:h}),b=De({entities:d,baseEntities:h,scannedFiles:l,workspaceUniversalIdentifiers:_,unreconciledUniversalIdentifiers:u,localCodeStepFilesByWorkflowPath:v}),x=new Set;j({value:o,identifiers:x}),j({value:i.coverage,identifiers:x});let C=l.filter(e=>e.entityKey===`frontComponents`).map(e=>(0,E.join)(t,e.relativePath)),w=await G({appPath:t,manifest:o,baseManifest:c,frontComponentSourcePaths:C}),T=de({entities:d,baseEntities:h,protectedIdentifiers:x,writes:b.writes,deletions:[...b.deletions.filter(e=>!x.has(e.universalIdentifier.toLowerCase())),...b.codeStepFileDeletions],scannedFiles:l}),D=await ke({appPath:t,files:i.files.filter(e=>e.folder===f.r.Dependencies),sourceFingerprints:s.sourceFingerprints,dependencyFingerprints:s.dependencyFingerprints}),O=await te({appPath:t,files:i.files.filter(({folder:e})=>e===f.r.PublicAsset),sourceFingerprints:s.sourceFingerprints,publicAssetFingerprints:s.publicAssetFingerprints}),k=await ne({appPath:t,manifest:o,baseManifest:c,files:i.files,scannedFiles:l,protectedIdentifiers:x,remoteSourceFingerprints:s.remoteSourceFingerprints,sourceFingerprints:s.sourceFingerprints,reservedPaths:new Set([...T.writes,...w.writes,...D.writes,...O.writes].map(e=>e.relativePath.toLowerCase()))}),A=await ee({appPath:t,manifest:o,files:i.files,remoteSourceFingerprints:s.remoteSourceFingerprints,sourceFingerprints:s.sourceFingerprints,reservedPaths:new Set([...T.writes,...w.writes,...D.writes,...O.writes,...k.writes,...T.deletions].map(e=>e.relativePath.toLowerCase()))}),M=[...T.writes,...w.writes,...D.writes,...O.writes,...k.writes,...A.writes],N=[...T.deletions,...k.deletions,...w.deletions.filter(e=>n.t(c?.translations)&&e.universalIdentifier in c.translations)],P=[...g,...T.skipped],F=new Set(P.map(e=>e.universalIdentifier.toLowerCase())),I=S.t({target:a,manifest:fe({manifest:i.manifest,baseManifest:s.manifest,unreconciledUniversalIdentifiers:F,protectedIdentifiers:x}),unreconciledUniversalIdentifiers:[...F],remoteSourceFingerprints:{...k.fingerprints,...A.fingerprints},publicAssetFingerprints:{...s.publicAssetFingerprints,...O.fingerprints},dependencyFingerprints:{...s.dependencyFingerprints,...D.fingerprints},sourceFingerprints:je({sourceFingerprints:{...s.sourceFingerprints,...D.unchangedSourceFingerprints,...O.unchangedSourceFingerprints,...k.unchangedSourceFingerprints,...A.unchangedSourceFingerprints},writes:M,deletions:N})});await y.t({appPath:t,relativePaths:[...M.map(e=>e.relativePath),...N.map(e=>e.relativePath),I.relativePath]});let L=await ie({appPath:t,baseManifest:c,writes:M,deletions:N,frontComponentSourcePaths:C,baseEntities:h,localCodeStepFilesByWorkflowPath:v,sourceFingerprints:s.sourceFingerprints}),R=Se(o);return he({appPath:t,writes:M}),r?.throwIfAborted(),await be({appPath:t,writes:M,deletions:N,finalWrite:I,signal:r}),{success:!0,data:{application:{universalIdentifier:i.application.universalIdentifier,displayName:i.application.displayName},base:{status:s.status},writes:M.map(({content:e,requiredSdkExports:t,...n})=>n),deletions:N,overwrittenLocalChanges:L,unchangedCount:b.unchanged.length+D.unchangedCount+O.unchangedCount+k.unchangedCount+A.unchangedCount,localOnlyRelativePaths:b.localOnlyRelativePaths,unreadableRelativePaths:l.filter(e=>!e.isReadable).map(e=>e.relativePath),skipped:P,compiledTranslationEntryCountByLocale:w.compiledEntryCountByLocale,entityLabelByUniversalIdentifier:R},diagnostics:[]}}catch(e){return{success:!1,error:{code:r?.aborted&&Object.is(e,r.reason)?`CANCELLED`:e instanceof u.t?e.code:`PULL_FAILED`,message:e instanceof Error?e.message:String(e),...d.t(e),details:{outcome:`unchanged`,...e instanceof u.t?e.details:{}}},diagnostics:[]}}},Ne=async e=>{try{let t=e.applicationExport,n=r.t(t)&&r.t(t.application)&&(0,A.isString)(t.application.universalIdentifier)?t.application.universalIdentifier:``;return await Me({...e,applicationExport:m.t({value:t,universalIdentifier:n})})}finally{await(0,O.stop)()}};exports.pullSource=Ne;
@@ -1 +0,0 @@
1
- let e=require("node:path"),t=require("node:fs");var n=new Set([`node_modules`,`.git`,`.twenty`]),r=t=>t.split(e.sep).some(e=>n.has(e))||(0,e.basename)(t)===`.DS_Store`||/(?:~|\.sw[a-z]|\.tmp)$/.test((0,e.basename)(t)),i=({path:e,kind:n})=>{try{if(n===`directory`)return JSON.stringify((0,t.readdirSync)(e,{withFileTypes:!0}).filter(e=>!r(e.name)).map(e=>[e.name,e.isDirectory(),e.isFile(),e.isSymbolicLink()]).sort(([e],[t])=>String(e).localeCompare(String(t))));let i=(0,t.statSync)(e,{bigint:!0});return`${i.ino}:${i.size}:${i.mtimeNs}:${i.ctimeNs}`}catch{return null}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1,2 +0,0 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./get-client-sdk-package-path-2U3kDCRq.cjs"),r=require("./is-inside-directory-CymDrDJC.cjs"),i=require("./resolve-inside-sdk-DA7EQpf0.cjs"),a=require("./read-watch-input-stamp-BxeOb0vI.cjs"),o=require("./has-error-code-DsJeqbZq.cjs"),s=require("./fs-utils-DoSmCBu8.cjs"),c=require("./cli-error-CrUD8uMp.cjs"),l=require("./resolve-source-sdk-C4Hu045V.cjs"),u=require("./create-pull-base-write-CX8xZhMz.cjs"),d=require("./read-command-values-l5T9Lba4.cjs"),f=require("./style-BR52fK4V.cjs"),p=require("./to-worker-output-diagnostics-w1hZPfn0.cjs"),m=require("./resolve-app-project-B4IjfcM-.cjs"),h=require("./with-phase-details-CRqY0f3c.cjs"),g=require("./to-cli-error-4pSpVaW9.cjs"),_=require("./record-pull-base-Dz4BldQf.cjs"),v=require("./read-infer-deletion-option-D1HMBsfw.cjs"),y=require("./read-snapshot-file-Dxla2ete.cjs"),b=require("./create-tooling-failure-0Foyei1R.cjs"),x=require("./get-client-generation-skip-reason-CFgiU52t.cjs"),S=require("./format-progress-line-BoU0vHbc.cjs");let C=require("node:events"),w=require("node:crypto"),T=require("node:fs/promises"),E=require("node:path"),D=require("node:module"),O=require("node:timers/promises"),k=require("chokidar");var A=async({build:e,appPath:t,signal:n})=>{n.throwIfAborted();let r=y.a({build:e,appPath:t}),i=(0,E.join)(t,`.twenty`,`cli`,`snapshots`);await(0,T.mkdir)(i,{recursive:!0});let a=await(0,T.mkdtemp)((0,E.join)(i,`dev-`)),o=()=>(0,T.rm)(a,{recursive:!0,force:!0});try{for(let t of e.files){n.throwIfAborted();let e=await y.t({snapshotDirectory:r,artifact:t}),i=(0,E.join)(a,t.path);await(0,T.mkdir)((0,E.dirname)(i),{recursive:!0}),await(0,T.writeFile)(i,y.n(e),{flag:`wx`,signal:n})}return n.throwIfAborted(),{build:{...e,directory:a},release:o}}catch(e){throw await o(),e}},j=async({appPath:e,signal:n,updateWatchInputs:r,warn:i})=>{let a=await l.t({appPath:e,warn:i}),o=await _.n(e).catch(()=>void 0),s;try{let i=await p.n({request:{type:`bundleSnapshot`,appPath:e,holdSnapshot:!0,collectWatchInputs:!0},signal:n,useHeldSnapshot:async({result:t})=>{let r=p.s({value:t,parseData:p.a});r.success&&(s=await A({build:r.data,appPath:e,signal:n}))}});n.throwIfAborted();let l=p.s({value:i.result,parseData:p.a}),u=[...l.diagnostics,...p.t(i.output)];if(await r(i.watchInputs??[],l.success),!l.success)throw b.t({error:l.error,diagnostics:u,sdkVersion:a.version});if(!t.t(s))throw new c.t({code:`WORKER_FAILED`,message:`The build worker did not retain its dev snapshot.`});let d=i.release;if(!t.t(d)||!p.s({value:d,parseData:e=>e===null?{data:null}:void 0}).success)throw new c.t({code:`WORKER_FAILED`,message:`The build worker could not release its source snapshot. Stop and clean up .twenty/cli/snapshots before restarting dev.`});return{...s,contentHash:s.build.contentHash,tooling:a,diagnostics:u,sourceFingerprints:o}}catch(e){throw await s?.release(),e}},M=async e=>{let t=async e=>{try{return u.i(await(0,T.readFile)(e))}catch(e){if(o.t(e,`ENOENT`))return null;throw e}},n=[`dist/core.mjs`,`dist/core.cjs`],r=(0,E.join)(e,`dist/core/generated`);try{let t=await(0,T.readdir)(r,{recursive:!0,withFileTypes:!0});for(let r of t)(r.isFile()||r.isSymbolicLink())&&n.push((0,E.relative)(e,(0,E.join)(r.parentPath,r.name)))}catch(e){if(!o.t(e,`ENOENT`))throw e}return JSON.stringify(await Promise.all(n.sort().map(async n=>[n,await t((0,E.join)(e,n))])))},N=({appPath:e})=>{let r,a,o=()=>M(n.t({appPath:e}));return async({snapshot:s,applied:c,context:l,withBuildsPaused:u,invalidate:d})=>{let f=await x.t({appPath:e});if(t.t(f))return l.output.warn({code:`CLIENT_NOT_GENERATED`,message:f}),`skipped`;let p,m,v;try{p=await x.n({applicationUniversalIdentifier:c.acknowledgedUniversalIdentifier,context:l});let r=await(0,T.realpath)(n.t({appPath:e})),a=await(0,T.readFile)((0,E.join)(r,`package.json`)),s=i.t({resolveFromApp:(0,D.createRequire)((0,E.join)(r,`package.json`)).resolve,specifier:`twenty-client-sdk/generate`,sdkPath:r});if(!t.t(s))throw Error(`The installed twenty-client-sdk has no compatible generate entry point.`);m=(0,w.createHash)(`sha256`).update(p).update(r).update(a).update(await(0,T.readFile)(s)).digest(`hex`),v=await o()}catch(e){if(l.signal.aborted)throw h.t({error:g.t(e,l.signal),phase:`clientGeneration`,outcome:`applied`,completedPhases:c.completedPhases,hint:`The app was synced. Client generation had not started, so the previous typed API client was kept.`});return l.output.warn({code:`CLIENT_NOT_GENERATED`,message:`The app was synced, but its client inputs could not be fetched: ${g.t(e).message} The previous client was kept.`}),`skipped`}if(m===r&&v===a)return`unchanged`;let y=!1;try{await u(async()=>{l.signal.throwIfAborted(),y=!0,await x.i({appPath:e,schema:p,sdk:s.tooling,context:l}),r=m,a=await o(),c.completedPhases.push(`clientGeneration`),d()})}catch(e){throw y?_.r({error:e,phase:`clientGeneration`,applicationName:s.build.application.displayName,apiUrl:l.target.apiUrl,completedPhases:c.completedPhases,signal:l.signal}):h.t({error:g.t(e,l.signal),phase:`clientGeneration`,outcome:`applied`,completedPhases:c.completedPhases,hint:`The app was synced. Client generation had not started, so the previous typed API client was kept.`})}return`generated`}},P=e.t(),F=({message:e,code:t,percentage:n})=>(0,P.isNonEmptyString)(t)?f.s(e):S.t({message:e,percentage:n}),I=e=>{let t=[],n=Promise.resolve(),r=0;return{output:{...e.output,progress:e=>{t.length<32?t.push(e):r+=1},warn:e=>{t.length<32?t.push(e):r+=1}},emit:(i,a)=>{let o=t.splice(0);r>0&&(o.push({message:`${r} additional progress messages omitted.`}),r=0);let s=n.then(async()=>{if(a.throwIfAborted(),e.outputMode===`ndjson`)await e.output.event(`progress`,{...i,messages:o},a);else{let e=[...o.map(F),i.message].filter(e=>e.length>0).join(`
2
- `);process.stderr.write(`${e}\n`)||await(0,C.once)(process.stderr,`drain`,{signal:a})}});return n=s.catch(()=>void 0),s}}},L=async({signal:e,subscribe:n,build:r,apply:i,onSkipped:a,debounceMilliseconds:o=100})=>{let s=new AbortController,c,l=e=>{s.abort(e),f()},u=()=>l(e.reason),d=new Set,f=()=>{for(let e of d)e()},p=async e=>{for(;!e();)s.signal.throwIfAborted(),await new Promise(e=>{let t=()=>{d.delete(t),e()};d.add(t)});s.signal.throwIfAborted()},m=1,h=0,g,_=!1,v=!1,y=new AbortController,b,x=()=>{m+=1,y.abort(Error(`App changed while awaiting approval.`)),f()},S=async()=>{for(;!s.signal.aborted;){await p(()=>!v&&m!==h);let n=m;if(await(0,O.setTimeout)(o,void 0,{signal:s.signal}),n!==m||v)continue;h=n,_=!0;let i;try{t.t(g)&&(await g.snapshot.release(),g=void 0),i=await r(n,AbortSignal.any([e,s.signal])),t.t(i)&&(n!==m||s.signal.aborted?(await i.release(),await a(n,`superseded`)):g={snapshot:i,revision:n})}finally{_=!1,f()}}},C=async()=>{for(;!s.signal.aborted;){await p(()=>t.t(g)&&g.revision===m);let n=g;if(t.t(n)){g=void 0,y=new AbortController;try{if(n.snapshot.contentHash===b){await a(n.revision,`unchanged`);continue}b=await i(n.snapshot,{revision:n.revision,signal:AbortSignal.any([e,s.signal]),revisionSignal:AbortSignal.any([e,s.signal,y.signal]),invalidate:x,withBuildsPaused:async e=>{v=!0;try{return await p(()=>!_),await e()}finally{v=!1,f()}}})?n.snapshot.contentHash:void 0}finally{await n.snapshot.release()}}}};e.addEventListener(`abort`,u,{once:!0});let w;try{e.throwIfAborted(),w=await n(x,l);let r=[S().catch(n=>{!e.aborted&&!t.t(c)&&(c=n),l(n)}),C().catch(e=>{c=e,l(e)})];if(await Promise.all(r),t.t(c))throw c;s.signal.throwIfAborted()}finally{l(e.reason),e.removeEventListener(`abort`,u);try{await w?.()}finally{await g?.snapshot.release()}}},R=(e,t)=>new Promise((n,r)=>{let i=()=>{e.off(`ready`,a),e.off(`error`,o),t.removeEventListener(`abort`,s)},a=()=>{i(),n()},o=e=>{i(),r(e)},s=()=>{i(),r(t.reason)};e.once(`ready`,a),e.once(`error`,o),t.addEventListener(`abort`,s,{once:!0}),t.aborted&&s()}),z=async({appPath:e,signal:t,onChange:n,onError:i})=>{e=await(0,T.realpath)(e);let o=(0,k.watch)(e,{ignoreInitial:!0,followSymlinks:!1,ignored:t=>(0,E.relative)(e,t).split(E.sep)[0]===`dist`||a.n((0,E.relative)(e,t)),atomic:!0}).on(`all`,n).on(`error`,i),c,l=[],u=async()=>{await Promise.all([o.close(),c?.close()])};try{await R(o,t)}catch(e){throw await u(),e}return{close:u,update:async(o,u)=>{u&&(l=o);let d=[...l,...o].filter(t=>t.path!==e&&!r.t({filePath:t.path,directory:e})),f=new Set(d.filter(e=>e.kind===`directory`).map(e=>e.path)),p=new Set(d.filter(e=>e.kind===`file`).map(e=>e.path)),m=new Set,h=new Set;for(let e of d){let t=(0,E.dirname)(e.path);for(;!s.a(t)&&(0,E.dirname)(t)!==t;)h.add(t),t=(0,E.dirname)(t);m.add(t)}let g=e=>[...f].some(t=>{let n=(0,E.relative)(t,e);return n.length>0&&n!==`..`&&!n.includes(E.sep)}),_=[...new Set([...d.map(e=>e.path),...m])].filter(s.a),v=c;if(_.length>0){let e=(0,k.watch)(_,{ignoreInitial:!0,followSymlinks:!1,depth:0,atomic:!0,ignored:e=>{let t=(0,E.resolve)(e);return a.n(e)||!(m.has(t)||f.has(t)||h.has(t)||p.has(t)||g(t))}}).on(`all`,(e,t)=>{let r=(0,E.resolve)(t);(p.has(r)||e!==`change`&&(g(r)||f.has(r)||h.has(r)))&&n()}).on(`error`,i);c=e;try{await R(e,t)}catch(e){throw await v?.close(),e}}else c=void 0;await v?.close(),o.some(e=>a.t(e)!==e.stamp)&&n()}}},B=async e=>{let n=v.t(e),r=await m.t({explicitPath:d.i(e.options,`path`),workingDirectory:process.cwd()}),{output:i,emit:a}=I(e),o=N({appPath:r.path}),s,l=!1;throw await L({signal:e.signal,subscribe:async(t,n)=>{s=await z({appPath:r.path,signal:e.signal,onChange:t,onError:n});try{await a({kind:`watch-ready`,message:`Watching ${r.path}. Syncing to ${e.target.apiUrl}. Press Ctrl+C to stop.`,appPath:r.path},e.signal)}catch(e){throw await s.close(),e}return s.close},build:async(t,n)=>{await a({kind:`build-start`,message:`Building app…`,revision:t},n);try{let e=await j({appPath:r.path,signal:n,updateWatchInputs:s.update,warn:e=>{l||(l=!0,i.warn(e))}});try{return await a({kind:`build-success`,message:`Built ${e.build.application.displayName}.`,revision:t,buildId:e.build.buildId,contentHash:e.contentHash,diagnostics:e.diagnostics},n),e}catch(t){throw await e.release(),t}}catch(r){n.throwIfAborted();let o=g.t(r);if(o.code===`WORKER_FAILED`)throw new c.t({code:o.code,message:o.message,details:o.details,hint:`Fix the worker failure, then restart twenty app dev. A worker killed while building may leave folders in .twenty/cli/snapshots; remove abandoned snapshots only after stopping all dev/apply sessions for this app.`});if(![`TYPECHECK_FAILED`,`BUILD_FAILED`,`SDK_NOT_INSTALLED`,`SDK_SOURCE_UNSUPPORTED`,`TYPESCRIPT_NOT_INSTALLED`].includes(o.code))throw r;let s=o.details?.diagnostics;if(e.outputMode===`human`&&Array.isArray(s))for(let e of s.filter(p.i))i.progress({message:p.c(e)});await a({kind:`build-failure`,message:`${o.message} Waiting for source changes.`,revision:t,error:{code:o.code,message:o.message,details:o.details}},n);return}},apply:async(s,c)=>{let{revision:l,signal:u}=c,f={...e,output:i,signal:u},p=!1;await a({kind:`sync-start`,message:`Planning changes…`,revision:l,buildId:s.build.buildId},u);let m;try{m=await _.i({build:s.build,appPath:r.path,context:f,inferDeletionFromMissingEntities:n,isCreationApproved:d.t(e.options,`create`),isDeletionApproved:d.t(e.options,`yes`),approvalSignal:c.revisionSignal,flushProgress:()=>a({kind:`sync-progress`,message:``,revision:l},u),beforeWrite:()=>{p||c.revisionSignal.throwIfAborted(),p=!0}})}catch(e){if(u.aborted)throw e;let t=g.t(e);if(c.revisionSignal.aborted&&t.details?.phase===`confirmation`)return await a({kind:`sync-superseded`,message:`Source changed; a fresh plan is queued.`,revision:l,details:t.details},u),!1;if([`AUTH_REQUIRED`,`PERMISSION_DENIED`].includes(t.code))throw e;return await a({kind:`sync-failure`,message:`${t.message} A new source edit will request a fresh plan.`,revision:l,error:{code:t.code,message:t.message,hint:t.hint,details:t.details}},u),!1}try{await _.t({appPath:r.path,universalIdentifier:m.acknowledgedUniversalIdentifier,sourceFingerprints:s.sourceFingerprints,context:f})===`recorded`&&m.completedPhases.push(`pullBase`)}catch(t){throw _.r({error:t,phase:`pullBase`,applicationName:s.build.application.displayName,apiUrl:e.target.apiUrl,completedPhases:m.completedPhases,signal:u})}let h=await o({snapshot:s,applied:m,context:f,withBuildsPaused:c.withBuildsPaused,invalidate:c.invalidate});return t.t(m.appliedActions)||i.warn({code:`SYNC_REPORT_UNAVAILABLE`,message:`The sync succeeded, but the server did not return a readable list of changes.`}),await a({kind:`sync-success`,message:`Synced ${s.build.application.displayName}. Watching for changes…`,revision:l,buildId:s.build.buildId,contentHash:s.contentHash,completedPhases:m.completedPhases,clientGeneration:h,actions:m.appliedActions??null},u),!0},onSkipped:(t,n)=>a({kind:`build-skipped`,message:n===`unchanged`?`Build unchanged since the last acknowledged sync.`:`Source changed during the build; rebuilding…`,revision:t,reason:n},e.signal)}),new c.t({code:`INTERNAL_ERROR`,message:`The dev session stopped unexpectedly.`})};exports.runAppDevCommand=B;
@@ -1 +0,0 @@
1
- const e=require("./isDefined-CJctgvfE.cjs"),t=require("./get-field-universal-identifier.util-d1401qKf.cjs"),n=require("./TwentyStandardApplicationUniversalIdentifier-Cm4vo0D3.cjs");var r=function(e){return e.VIEW=`VIEW`,e.IFRAME=`IFRAME`,e.FIELD=`FIELD`,e.FIELDS=`FIELDS`,e.GRAPH=`GRAPH`,e.STANDALONE_RICH_TEXT=`STANDALONE_RICH_TEXT`,e.TIMELINE=`TIMELINE`,e.TASKS=`TASKS`,e.NOTES=`NOTES`,e.FILES=`FILES`,e.EMAILS=`EMAILS`,e.CALENDAR=`CALENDAR`,e.FIELD_RICH_TEXT=`FIELD_RICH_TEXT`,e.WORKFLOW=`WORKFLOW`,e.WORKFLOW_VERSION=`WORKFLOW_VERSION`,e.WORKFLOW_RUN=`WORKFLOW_RUN`,e.FRONT_COMPONENT=`FRONT_COMPONENT`,e.RECORD_TABLE=`RECORD_TABLE`,e.EMAIL_THREAD=`EMAIL_THREAD`,e.CALL_RECORDING_SUMMARY=`CALL_RECORDING_SUMMARY`,e.CALL_RECORDING_TRANSCRIPT=`CALL_RECORDING_TRANSCRIPT`,e.MESSAGE_CAMPAIGN_BODY=`MESSAGE_CAMPAIGN_BODY`,e.MESSAGE_CAMPAIGN_DETAILS=`MESSAGE_CAMPAIGN_DETAILS`,e.FORM_FIELD=`FORM_FIELD`,e.CHAT_THREADS=`CHAT_THREADS`,e.CHAT=`CHAT`,e}({}),i=function(e){return e.IS=`IS`,e.IS_NOT_NULL=`IS_NOT_NULL`,e.IS_NOT=`IS_NOT`,e.LESS_THAN_OR_EQUAL=`LESS_THAN_OR_EQUAL`,e.GREATER_THAN_OR_EQUAL=`GREATER_THAN_OR_EQUAL`,e.IS_BEFORE=`IS_BEFORE`,e.IS_AFTER=`IS_AFTER`,e.CONTAINS=`CONTAINS`,e.DOES_NOT_CONTAIN=`DOES_NOT_CONTAIN`,e.IS_EMPTY=`IS_EMPTY`,e.IS_NOT_EMPTY=`IS_NOT_EMPTY`,e.IS_RELATIVE=`IS_RELATIVE`,e.IS_IN_PAST=`IS_IN_PAST`,e.IS_IN_FUTURE=`IS_IN_FUTURE`,e.IS_TODAY=`IS_TODAY`,e.VECTOR_SEARCH=`VECTOR_SEARCH`,e}({}),a=function(e){return e.GRID=`GRID`,e.VERTICAL_LIST=`VERTICAL_LIST`,e.CANVAS=`CANVAS`,e}({}),o=function(e){return e.RECORD_INDEX=`RECORD_INDEX`,e.RECORD_PAGE=`RECORD_PAGE`,e.DASHBOARD=`DASHBOARD`,e.STANDALONE_PAGE=`STANDALONE_PAGE`,e.RECORD_FORM=`RECORD_FORM`,e}({}),s=({applicationUniversalIdentifier:n,roleUniversalIdentifier:r,fieldUniversalIdentifier:i,rowLevelPermissionPredicateGroupUniversalIdentifier:a})=>t.n({entityNamespace:`fieldPermission`,value:[r,i,...e.t(a)?[a]:[]].join(`:`),applicationUniversalIdentifier:n}),c=({applicationUniversalIdentifier:e,roleUniversalIdentifier:n,objectUniversalIdentifier:r})=>t.n({entityNamespace:`objectPermission`,value:`${n}:${r}`,applicationUniversalIdentifier:e}),l=({applicationUniversalIdentifier:e,objectUniversalIdentifier:n,relationTargetObjectUniversalIdentifier:r})=>t.n({entityNamespace:`fieldMetadata`,value:`${n}:systemRelation:${r}`,applicationUniversalIdentifier:e}),u={INDEX:`INDEX`,FIELDS_WIDGET:`FIELDS_WIDGET`},d=({objectMetadataApplicationUniversalIdentifier:e,objectUniversalIdentifier:n,viewKey:r})=>t.n({entityNamespace:`view`,value:`${n}:${r}`,applicationUniversalIdentifier:e}),f={API_KEYS_AND_WEBHOOKS:`beb99803-9a0e-588d-9c4b-3dd14d9cdf21`,WORKSPACE:`86a58859-a539-5fa8-ba18-a6aaddc811b6`,WORKSPACE_MEMBERS:`ec342166-2df7-53e7-aa9b-64992d6cb35f`,ROLES:`80f1e5ab-484c-5660-a5a1-0ee7413d8190`,DATA_MODEL:`f0c08013-3c9a-5489-bd45-a641fe5f085d`,SECURITY:`4a8b6016-1d3d-5c94-bbe8-a74c5f32335a`,WORKFLOWS:`6189e7bd-4051-5752-b6b1-5f31358fbaf1`,IMPERSONATE:`dd2274d1-bbd5-551d-bcf2-3147539cef11`,SSO_BYPASS:`2e9cfdc0-4669-58ab-b241-b6c3c14d96df`,APPLICATIONS:`9faa55f7-2606-566b-9e1d-aefbedbd0136`,MARKETPLACE_APPS:`3a37e2f5-d3e4-56d6-b541-adf0237468ff`,LAYOUTS:`458d1ee5-ba12-5f4e-9d17-6f8c11fcd7fd`,BILLING:`24b66701-ed97-51e4-aa63-794e1b31414c`,AI_SETTINGS:`e8cc4a30-c120-5925-8f5d-73d6a2247fee`,AI:`1c7f09a7-367d-568b-a0e8-c274eccd6ee3`,VIEWS:`c68354c4-535d-53a9-848a-e3a6774b5fb8`,UPLOAD_FILE:`dc6931a9-44bd-5164-a983-3db5db837f54`,DOWNLOAD_FILE:`6edf252f-228e-5e2f-9706-7bab7a796fd3`,SEND_EMAIL_TOOL:`19f382a8-689d-5792-a18c-737f0ce9025f`,CREATE_CALENDAR_EVENT_TOOL:`5b8c104e-24d3-4e89-986b-1d9208df6cf4`,HTTP_REQUEST_TOOL:`1bf49cf1-bb8f-5eb9-809a-5f34ea79fc6a`,CODE_INTERPRETER_TOOL:`11f31c3a-7042-54b7-a2dd-ae31dd9e9fa2`,IMPORT_CSV:`c4912536-a4db-5af9-85ac-be2919c24c5e`,EXPORT_CSV:`88efced9-ca6d-5316-a695-f1b9158e7370`,CONNECTED_ACCOUNTS:`e5f63b2d-5369-5df6-8f32-a8bd9e79e653`,PROFILE_INFORMATION:`7c13f23f-78d8-5e7d-8963-a7c8772fb4e8`},p={agentChatThread:`fab0fff8-0c90-4116-9bb0-7dbc07392633`,agentChatThreadTarget:`9f2a5bf4-3a57-4e61-b561-eaf5a5b86973`,agentChatThreadParticipant:`a043622a-48ef-426f-b55d-3fdcf4ae52f2`,agentTurn:`63697477-8606-415e-86cb-be078d7fcf7e`,agentMessage:`62d0354c-3b99-4769-b0f5-4e2651c2ca7d`,agentMessagePart:`214bacb0-df89-494e-be42-e5b11c99cff6`,agentMessageReaction:`7d34e524-cbaf-4a53-b021-eb0313397f22`,campaignDelivery:`0c76066d-26f7-4f57-b0bd-0eb61465fb1a`,messageSuppression:`41410724-723c-48ab-8312-9b85131b4d84`,timelineActivity:`20202020-6736-4337-b5c4-8b39fae325a5`,attachment:`20202020-bd3d-4c60-8dca-571c71d4447a`,blocklist:`20202020-0408-4f38-b8a8-4d5e3e26e24d`,calendarChannelEventAssociation:`20202020-491b-4aaa-9825-afd1bae6ae00`,calendarEvent:`20202020-8f1d-4eef-9f85-0d1965e27221`,calendarEventTarget:`6a9b9656-3e23-4234-94a4-b913c5dde668`,calendarEventParticipant:`20202020-a1c3-47a6-9732-27e5b1e8436d`,callRecording:`ce19efb9-710f-45b2-b141-473abbeea60b`,noteTarget:`20202020-fff0-4b44-be82-bda313884400`,taskTarget:`20202020-5a9a-44e8-95df-771cd06d0fb1`,person:`20202020-e674-48e5-a542-72570eee7213`,recordShare:`fecdb92c-d150-4544-81f8-f1158d18a7a2`,accessGroup:`47f4ed44-4312-467f-b6f5-787f91037a1d`,company:`20202020-b374-4779-a561-80086cb2e17f`,opportunity:`20202020-9549-49dd-b2b2-883999db8938`,note:`20202020-0b00-45cd-b6f6-6cd806fc6804`,task:`20202020-1ba1-48ba-bc83-ef7e5990ed10`,workflow:`20202020-62be-406c-b9ca-8caa50d51392`,workflowAutomatedTrigger:`20202020-3319-4234-a34c-7f3b9d2e4d1f`,workflowVersion:`20202020-d65d-4ab9-9344-d77bfb376a3d`,workflowRun:`20202020-4e28-4e95-a9d7-6c00874f843c`,workspaceMember:`20202020-3319-4234-a34c-82d5c0e881a6`,dashboard:`20202020-3840-4b6d-9425-0c5188b05ca8`,message:`20202020-3f6b-4425-80ab-e468899ab4b2`,messageChannelMessageAssociation:`20202020-ad1e-4127-bccb-d83ae04d2ccb`,messageChannelMessageAssociationMessageFolder:`20202020-a1b0-40b0-8ab0-5b6c7d8e9f0a`,messageList:`826561ea-4816-411c-baa0-eec5e6ca8866`,messageListMember:`27773d24-8ce3-40f8-aa6c-1f590f2c08d2`,messageCampaign:`238acb94-dd4c-4036-bc55-19b99d821efd`,shortLink:`22c96608-d1b1-49a2-b328-3e738d61d82d`,messageParticipant:`20202020-a433-4456-aa2d-fd9cb26b774a`,messageThread:`20202020-849a-4c3e-84f5-a25a7d802271`,messageThreadTarget:`378ad1b0-592d-4084-80ee-86fef44725b9`},m=[`id`,`createdAt`,`updatedAt`,`deletedAt`,`createdBy`,`updatedBy`,`position`,`searchVector`],h=e=>Object.fromEntries(m.map(r=>[r,{universalIdentifier:t.t({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:e,name:r})}])),g=e=>{let{id:t,createdAt:n,updatedAt:r,deletedAt:i}=h(e);return{id:t,createdAt:n,updatedAt:r,deletedAt:i}},_={agentChatThread:{...g(p.agentChatThread),archivedAt:{universalIdentifier:`b42eaf6f-240f-41ef-af61-51d5ac9cde7d`},workspaceMember:{universalIdentifier:`6f3ed3b5-0642-4a2a-9558-98376adb60f4`},title:{universalIdentifier:`9283c05e-127c-46ec-82e9-6424a7c0a2f1`},conversationType:{universalIdentifier:`66f93c2f-ae10-4c1a-8510-355a521f7899`},directMessageFirstWorkspaceMemberId:{universalIdentifier:`dd7e093b-06af-47f3-a246-57ae2de33244`},directMessageSecondWorkspaceMemberId:{universalIdentifier:`730c7491-35fa-4bce-90e1-29901e08eba3`},isAssistantParticipant:{universalIdentifier:`d901f5bc-23ba-48ac-9103-145da4b76afe`},totalInputTokens:{universalIdentifier:`2705f4af-24b8-4660-a8a8-8eff689298d1`},totalOutputTokens:{universalIdentifier:`77790c9c-0e91-4142-8482-d70576b8093b`},contextWindowTokens:{universalIdentifier:`c58dc0b0-bd0e-4ee2-8a80-615a2d8fc7c8`},conversationSize:{universalIdentifier:`f34617ff-a0de-4116-a5ad-7cfd1d0c6d5a`},totalInputCredits:{universalIdentifier:`3c0a9aa3-01b8-4191-bce4-dc9e77e2fe7a`},totalOutputCredits:{universalIdentifier:`40b2f6e5-eced-44f7-b391-0278ea7df7ef`},totalCacheReadTokens:{universalIdentifier:`494abfc8-d2f6-452c-913e-1f55d148f47f`},totalCacheCreationTokens:{universalIdentifier:`68bdb978-5ccb-4f64-9df2-8203b100c76a`},activeStreamId:{universalIdentifier:`bcead20f-75b3-45be-92b9-ea7ec4bddfcd`},pendingQuestionMessageId:{universalIdentifier:`51a9b421-7d90-4a59-9712-036ea9721e65`},turns:{universalIdentifier:`d5c88fbc-d318-4ee1-b70a-751a925bef5b`},messages:{universalIdentifier:`5c851a60-e5d9-4b1e-9926-c2eab6fc9e62`},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.agentChatThread,relationTargetObjectUniversalIdentifier:p.attachment})},recordTargets:{universalIdentifier:`5b37eceb-2992-4d27-9897-14af3e3ce9b2`},participants:{universalIdentifier:`2ede85e4-216b-4308-8556-b045971414e7`},assignee:{universalIdentifier:`e77858ef-4b01-4a32-b921-8b88b1fd3020`},channelId:{universalIdentifier:`5a3f55ff-a486-4a69-a673-7873deb306bd`},channelArchivedAt:{universalIdentifier:`ec6f5b94-277e-4f06-85f9-08d724518eda`},channelSnoozedUntil:{universalIdentifier:`6d2963a4-7266-42b9-8d76-a06c3f2b7520`},lastActivityAt:{universalIdentifier:`b3847509-8e98-4038-88de-dd891767d6fc`},lastMessageText:{universalIdentifier:`1c16eaef-172b-4778-b14b-f302bc6021e4`},lastMessageSenderWorkspaceMemberId:{universalIdentifier:`5c3611a7-7324-472e-9b43-4c7779e5e7cf`},writerWorkspaceMemberIds:{universalIdentifier:`c8fe2406-ad9c-4274-aeb5-9beb74d4b353`}},agentChatThreadParticipant:{...g(p.agentChatThreadParticipant),thread:{universalIdentifier:`7d0282a5-11ce-4da8-a165-30909ffdf383`},workspaceMember:{universalIdentifier:`4345764d-878b-4a3a-b1c9-822378f868e6`},lastReadAt:{universalIdentifier:`7e3a8319-c127-4c4f-add4-6feac37ea555`},archivedAt:{universalIdentifier:`ee092c9d-f27e-4fbc-8dad-9ec950936216`},snoozedUntil:{universalIdentifier:`65bc5785-877d-4363-b65c-95175ba20fd0`},isSubscribed:{universalIdentifier:`146b1d5e-6603-4493-944b-c3bd2817569b`},lastMentionedAt:{universalIdentifier:`52a54602-633f-496a-966a-9a70437fa887`},mentionsResolvedAt:{universalIdentifier:`12c0b0c8-86b2-48e5-8e2f-56a9eb9162c4`}},agentChatThreadTarget:{target:{universalIdentifier:`2c4cc537-39a2-4df9-81a1-dda26eb19658`},...g(p.agentChatThreadTarget),thread:{universalIdentifier:`54664c16-3c3d-4d5e-904c-59e1b3707cfb`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.agentChatThreadTarget,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.agentChatThreadTarget,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.agentChatThreadTarget,relationTargetObjectUniversalIdentifier:p.opportunity})}},agentTurn:{...g(p.agentTurn),agentId:{universalIdentifier:`4ac55a9a-95e8-4fd9-8c03-47ee3b618ae7`},thread:{universalIdentifier:`4e9b4f1f-c1bb-42d0-bb38-eb2b2f830e64`},messages:{universalIdentifier:`737c3559-ea1a-4269-aea4-e672b17afbb1`},status:{universalIdentifier:`c17a4d49-f4f5-40e2-b084-11c5c4bae431`},error:{universalIdentifier:`b0ed90f6-5953-4c85-aff8-407a28ec8cc7`},startedAt:{universalIdentifier:`578977d7-b0d9-48d1-83f7-29ad6215a6f0`},endedAt:{universalIdentifier:`2b13f528-738b-402c-a033-7bbb0cce73a4`},modelId:{universalIdentifier:`b1e1c27b-03dc-40b1-8052-4474c15b8233`},inputTokens:{universalIdentifier:`0e419986-4255-4858-b252-e6a161d55f58`},outputTokens:{universalIdentifier:`3e7f5fb8-f9cf-45b2-b1a7-b36c1e8ff2fd`},cacheReadTokens:{universalIdentifier:`c2bcbbf5-81ce-4679-8f08-f6a3cc00569c`},cacheCreationTokens:{universalIdentifier:`4d9feae2-2a80-43b2-965d-8ad40f129503`},inputCredits:{universalIdentifier:`740456a7-c0be-4bc9-8429-52dc3e3a3707`},outputCredits:{universalIdentifier:`1ca5da82-b797-43a8-a2ee-d1a062a24ca5`},createdBy:{universalIdentifier:`c3d5e8a2-fde8-452d-a74d-04436aaf17bc`}},agentMessage:{...g(p.agentMessage),agentId:{universalIdentifier:`880a91ad-4ab1-4067-87f6-970a53aa2234`},senderWorkspaceMember:{universalIdentifier:`69bea8e1-451d-4c3c-9d34-505b5a67e06e`},senderApplicationId:{universalIdentifier:`d204d45a-6ccc-40cb-8281-b6ed635c247b`},role:{universalIdentifier:`5dc985f3-edad-4ebf-9844-b34ca686855b`},status:{universalIdentifier:`3845ccfa-9394-4cb9-a75c-4ca704414b83`},processedAt:{universalIdentifier:`b1a72274-095e-41f6-95d3-e5b407ff3f0b`},thread:{universalIdentifier:`48ea202f-ed6d-4ad9-8c9b-71a419b96237`},turn:{universalIdentifier:`b36513fc-ffaf-4e99-8686-b1aefca70b76`},parts:{universalIdentifier:`017e4930-118d-4624-8ce4-4e574f89f86d`},reactions:{universalIdentifier:`945e1e83-af08-45c9-8d6c-fb49f1e4a21c`}},agentMessageReaction:{...g(p.agentMessageReaction),message:{universalIdentifier:`18fec29f-89bd-4f33-8b80-f7a83a9a2e31`},workspaceMember:{universalIdentifier:`77265b6b-b634-426a-8972-8601947ca6ad`},agentId:{universalIdentifier:`08851641-cb7e-442c-a698-145ade9dd611`},emoji:{universalIdentifier:`88eeecdd-08a7-4744-bdd1-86b7f4a14394`}},agentMessagePart:{...g(p.agentMessagePart),orderIndex:{universalIdentifier:`d2b3e277-380c-4133-977d-f23f8092aebc`},type:{universalIdentifier:`16a59a7f-dc43-4483-84be-19c8ffd6c7a7`},textContent:{universalIdentifier:`d66ed60a-6c09-4427-a62a-1735e31b02de`},reasoningContent:{universalIdentifier:`34c24bb6-a34a-4373-b8b3-8be22fea3325`},toolName:{universalIdentifier:`ed705120-349b-4fce-afd4-15b8cab0df07`},toolCallId:{universalIdentifier:`151b6115-7071-4a1b-920d-43818907c69b`},toolInput:{universalIdentifier:`14476bb3-8b73-4428-b138-37bd7931e1d6`},toolOutput:{universalIdentifier:`5fe8ca78-52ab-466f-8fe7-cbfa618c5463`},state:{universalIdentifier:`6fa1fb8e-2335-4b48-838b-dd227958cab2`},providerExecuted:{universalIdentifier:`cbfee5eb-748e-4296-88be-ddc13393d88d`},errorMessage:{universalIdentifier:`f910bb7a-d1f8-4893-ad97-40342af62c21`},errorDetails:{universalIdentifier:`b9e6f2cf-b2ce-44fe-9507-d47805582654`},sourceUrlSourceId:{universalIdentifier:`cb66237e-f48a-4858-a882-2330978dcfdc`},sourceUrlUrl:{universalIdentifier:`31a94d35-03f2-41b7-aa2b-5615f286d2bb`},sourceUrlTitle:{universalIdentifier:`ad17f626-17fc-45e0-a09f-a61790a0f906`},sourceDocumentSourceId:{universalIdentifier:`a2afae35-4e3e-4fe5-bc96-9bb654adb810`},sourceDocumentMediaType:{universalIdentifier:`44a4e4f9-d005-493d-9832-3a217730eaf8`},sourceDocumentTitle:{universalIdentifier:`2951cfaa-d05e-47be-af17-c7af4685e4c0`},sourceDocumentFilename:{universalIdentifier:`2cdea0b3-0a4d-4fa8-b713-c0fbf0e0a2d4`},fileFilename:{universalIdentifier:`e908f82c-88d0-477b-a5f2-1798fc4090b8`},fileId:{universalIdentifier:`060b366e-bb3d-40b5-83e6-166629a40444`},providerMetadata:{universalIdentifier:`689d988e-3883-4ab6-9cf3-c36a3002f865`},message:{universalIdentifier:`efd41407-a49d-4a3a-97b4-94fd180e7652`}},campaignDelivery:{...g(p.campaignDelivery),campaignId:{universalIdentifier:`5b3b48cd-71ec-4ff6-bd4f-8ea99965d611`},personId:{universalIdentifier:`d12ac3bc-7d2c-4317-9c80-663e58ffbea2`},recipientEmail:{universalIdentifier:`28e61664-054b-4b41-b33b-d06b2fc7618f`},state:{universalIdentifier:`668eb863-852e-4846-b3f6-f74fc5d25cf9`},skipReason:{universalIdentifier:`86e995b9-467f-4570-a8f8-a647772e0944`},failureReason:{universalIdentifier:`5a080f14-de17-41a8-a2d7-e9287628db30`},claimToken:{universalIdentifier:`66b78eb0-7a53-4ad6-929a-156183490eb3`},claimExpiresAt:{universalIdentifier:`ba84a4ba-65ca-43dd-b72c-4b0f2f5b2f44`},providerMessageId:{universalIdentifier:`a560bd1a-716b-4fc3-b931-a34ff46bca6f`},sentAt:{universalIdentifier:`c4db7935-d927-49bd-80bd-01a6f39685a4`},deliveredAt:{universalIdentifier:`2cba1c4e-df5c-496d-8d0d-9f43fc371b5f`},bouncedAt:{universalIdentifier:`c3db41d4-3c48-4110-b3b3-a68cb82a1a78`},complainedAt:{universalIdentifier:`322301c5-62d6-428a-bc33-89f8eee75a47`},rejectedAt:{universalIdentifier:`de3599c8-d91b-42fb-a76f-34cd1826dd04`},renderingFailedAt:{universalIdentifier:`eca2b84e-a8d0-4641-bf16-48005e1826bd`}},messageSuppression:{...g(p.messageSuppression),emailAddress:{universalIdentifier:`d44cd615-c3ff-4ac5-a0cc-bfbda700df8e`},reason:{universalIdentifier:`2829a0be-f463-423c-810f-abf7b7a38454`},source:{universalIdentifier:`c0111315-babb-44ab-b4bb-8393ca7a4f98`},providerEventId:{universalIdentifier:`4959b0da-3ce2-42f7-8cc0-36fd20799a20`},unsubscribeTopicId:{universalIdentifier:`42c74315-d6d3-47f7-8f72-d7d40e41cc84`}},timelineActivity:{target:{universalIdentifier:`20202020-9a2b-4c3d-a4e5-f6a7b8c9d0e1`},...h(p.timelineActivity),timelineActivityTypeId:{universalIdentifier:`20202020-e5f8-4839-9dcf-781e260624ee`},timelineActivityTypeSnapshot:{universalIdentifier:`20202020-e006-493a-9b07-f2a768a204ca`},happensAt:{universalIdentifier:`20202020-9526-4993-b339-c4318c4d39f0`},properties:{universalIdentifier:`20202020-f142-4b04-b91b-6a2b4af3bf11`},workspaceMember:{universalIdentifier:`20202020-af23-4479-9a30-868edc474b36`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.opportunity})},targetTask:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.task})},targetNote:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.note})},targetWorkflowRun:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.workflowRun})},targetDashboard:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.dashboard})},targetMessageList:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.messageList})},targetMessageCampaign:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.timelineActivity,relationTargetObjectUniversalIdentifier:p.messageCampaign})},linkedRecordCachedName:{universalIdentifier:`20202020-cfdb-4bef-bbce-a29f41230934`},linkedRecordId:{universalIdentifier:`20202020-2e0e-48c0-b445-ee6c1e61687d`},linkedObjectMetadataId:{universalIdentifier:`20202020-c595-449d-9f89-562758c9ee69`}},attachment:{target:{universalIdentifier:`20202020-f634-435d-ab8d-e1168b375c69`},...h(p.attachment),name:{universalIdentifier:`20202020-87a5-48f8-bbf7-ade388825a57`},file:{universalIdentifier:`20202020-15db-460e-8166-c7b5d87ad4be`},fullPath:{universalIdentifier:`20202020-0d19-453d-8e8d-fbcda8ca3747`},fileCategory:{universalIdentifier:`20202020-8c3f-4d9e-9a1b-2e5f7a8c9d0e`},targetTask:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.task})},targetNote:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.note})},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.opportunity})},targetDashboard:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.dashboard})},targetAgentChatThread:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.agentChatThread})},targetMessage:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.attachment,relationTargetObjectUniversalIdentifier:p.message})}},blocklist:{...h(p.blocklist),handle:{universalIdentifier:`20202020-eef3-44ed-aa32-4641d7fd4a3e`},scope:{universalIdentifier:`20202020-1a5f-4c9e-9b3e-7d2a6f4c8e11`},workspaceMember:{universalIdentifier:`20202020-548d-4084-a947-fa20a39f7c06`}},calendarChannelEventAssociation:{...h(p.calendarChannelEventAssociation),calendarChannelId:{universalIdentifier:`20202020-93ee-4da4-8d58-0282c4a9cb7d`},calendarEvent:{universalIdentifier:`20202020-5aa5-437e-bb86-f42d457783e3`},eventExternalId:{universalIdentifier:`20202020-9ec8-48bb-b279-21d0734a75a1`},recurringEventExternalId:{universalIdentifier:`20202020-c58f-4c69-9bf8-9518fa31aa50`}},calendarEventParticipant:{...h(p.calendarEventParticipant),calendarEvent:{universalIdentifier:`20202020-fe3a-401c-b889-af4f4657a861`},handle:{universalIdentifier:`20202020-8692-4580-8210-9e09cbd031a7`},displayName:{universalIdentifier:`20202020-ee1e-4f9f-8ac1-5c0b2f69691e`},isOrganizer:{universalIdentifier:`20202020-66e7-4e00-9e06-d06c92650580`},responseStatus:{universalIdentifier:`20202020-cec0-4be8-8fba-c366abc23147`},person:{universalIdentifier:`20202020-5761-4842-8186-e1898ef93966`},workspaceMember:{universalIdentifier:`20202020-20e4-4591-93ed-aeb17a4dcbd2`}},calendarEvent:{...h(p.calendarEvent),title:{universalIdentifier:`20202020-080e-49d1-b21d-9702a7e2525c`},isCanceled:{universalIdentifier:`20202020-335b-4e04-b470-43b84b64863c`},isFullDay:{universalIdentifier:`20202020-551c-402c-bb6d-dfe9efe86bcb`},startsAt:{universalIdentifier:`20202020-2c57-4c75-93c5-2ac950a6ed67`},endsAt:{universalIdentifier:`20202020-2554-4ee1-a617-17907f6bab21`},externalCreatedAt:{universalIdentifier:`20202020-9f03-4058-a898-346c62181599`},externalUpdatedAt:{universalIdentifier:`20202020-b355-4c18-8825-ef42c8a5a755`},description:{universalIdentifier:`20202020-52c4-4266-a98f-e90af0b4d271`},location:{universalIdentifier:`20202020-641a-4ffe-960d-c3c186d95b17`},iCalUid:{universalIdentifier:`20202020-f24b-45f4-b6a3-d2f9fcb98714`},conferenceSolution:{universalIdentifier:`20202020-1c3f-4b5a-b526-5411a82179eb`},conferenceLink:{universalIdentifier:`20202020-35da-43ef-9ca0-e936e9dc237b`},calendarChannelEventAssociations:{universalIdentifier:`20202020-bdf8-4572-a2cc-ecbb6bcc3a02`},calendarEventParticipants:{universalIdentifier:`20202020-e07e-4ccb-88f5-6f3d00458eec`},calendarEventTargets:{universalIdentifier:`2b4a0785-3462-485f-b1a8-79ebb2078eab`},callRecordings:{universalIdentifier:`48d6d151-18e2-4111-b405-d85fb9d860d8`}},calendarEventTarget:{target:{universalIdentifier:`676e9f68-7b5c-41e6-b46d-2fb9527b7051`},...h(p.calendarEventTarget),calendarEvent:{universalIdentifier:`a47824b0-0e64-4c1f-bbad-ce45209d119b`},isAutomaticallyAssigned:{universalIdentifier:`b6374fed-9cf2-49ef-b45a-1d6814c16264`},isManuallyAssigned:{universalIdentifier:`6afbd5b8-25b5-4c04-82e5-281e6f90f453`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.calendarEventTarget,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.calendarEventTarget,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.calendarEventTarget,relationTargetObjectUniversalIdentifier:p.opportunity})}},callRecording:{...h(p.callRecording),title:{universalIdentifier:`4cff8863-a1d1-45fd-a370-4eb6aa1f2a5b`},status:{universalIdentifier:`3e617680-d93e-4309-a54f-90f69528bfd7`},recordingRequestStatus:{universalIdentifier:`7fd681c9-244c-4e98-8939-7b175d472638`},applicationId:{universalIdentifier:`24ec1239-1240-42cb-8a2d-302632378e09`},externalBotId:{universalIdentifier:`0a2da128-9bcc-488b-bc31-65318c41bdf9`},externalRecordingId:{universalIdentifier:`6d17fb71-324b-4625-a5be-b3580607e2c7`},startedAt:{universalIdentifier:`6c56c23f-1987-410a-860a-df3b2b3f9a33`},endedAt:{universalIdentifier:`7a38a9cf-8424-4d6e-b80a-6883d3c662ef`},video:{universalIdentifier:`bb9523d3-457e-4f4b-8c79-27a77afb87da`},audio:{universalIdentifier:`2eafc2d0-8fec-430c-a939-65ca5fbc0f08`},transcript:{universalIdentifier:`27b86d68-57d1-4607-aca0-191896b1ad43`},summary:{universalIdentifier:`adb0f472-756b-4d3f-b21e-ea32bf73a5e4`},calendarEvent:{universalIdentifier:`49e64b28-bd98-4775-80ea-4781bdd45e35`}},company:{...h(p.company),name:{universalIdentifier:`20202020-4d99-4e2e-a84c-4a27837b1ece`},domainName:{universalIdentifier:`20202020-0c28-43d8-8ba5-3659924d3489`},address:{universalIdentifier:`20202020-c5ce-4adc-b7b6-9c0979fc55e7`},linkedinLink:{universalIdentifier:`20202020-ebeb-4beb-b9ad-6848036fb451`},annualRevenue:{universalIdentifier:`60f533b7-2166-4071-a767-ceb0286822fd`},people:{universalIdentifier:`20202020-3213-4ddf-9494-6422bcff8d7c`},accountOwner:{universalIdentifier:`20202020-95b8-4e10-9881-edb5d4765f9d`},taskTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.taskTarget})},noteTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.noteTarget})},agentChatThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.agentChatThreadTarget})},calendarEventTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.calendarEventTarget})},messageThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.messageThreadTarget})},opportunities:{universalIdentifier:`20202020-add3-4658-8e23-d70dccb6d0ec`},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.attachment})},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.company,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},dashboard:{...h(p.dashboard),title:{universalIdentifier:`20202020-20ee-4091-95dc-44b57eda3a89`},pageLayoutId:{universalIdentifier:`20202020-bb53-4648-aa36-1d9d54e6f7f2`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.dashboard,relationTargetObjectUniversalIdentifier:p.timelineActivity})},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.dashboard,relationTargetObjectUniversalIdentifier:p.attachment})}},messageCampaign:{...h(p.messageCampaign),name:{universalIdentifier:`dc8bca0e-37c4-4b78-814d-2e91124274e3`},subject:{universalIdentifier:`7251544c-b07a-4f0d-9d0a-48514367f230`},bodyTemplate:{universalIdentifier:`b3a69d08-31ca-4a8d-8359-5ca462899342`},fromAddress:{universalIdentifier:`91e1a33c-c1ff-411a-b720-9085e13c05db`},status:{universalIdentifier:`c7117256-3de6-48e1-87df-c99c32bad610`},scheduledAt:{universalIdentifier:`0b281092-f5a5-4dd6-969b-5229f6620071`},sentAt:{universalIdentifier:`e2315b4f-9edf-4df2-96b9-961e76368671`},sentCount:{universalIdentifier:`2f333d2b-37b8-4ddc-ad0d-c07c6ce066ad`},deliveredCount:{universalIdentifier:`f4ee1d33-7379-42fe-ad63-e023449baea6`},failedCount:{universalIdentifier:`d373fcd7-b1ce-4c77-8031-a5785c475028`},bouncedCount:{universalIdentifier:`20d884a9-34dd-4667-8ecb-ceec224258e2`},complainedCount:{universalIdentifier:`82842cfa-f12a-4bab-bbde-b2cf587d0406`},skippedCount:{universalIdentifier:`a1f4c6d2-5e8b-4a37-9c60-31b7f0d2a984`},uniqueClickCount:{universalIdentifier:`d9a4e1c6-5b3f-4e0a-9c8d-4f7b9a3e6c12`},clickRate:{universalIdentifier:`7999aebc-51f4-4b93-9925-717db707c703`},uniqueOpenCount:{universalIdentifier:`865d188f-3178-4173-a986-80d01a8c7147`},openRate:{universalIdentifier:`77529a55-d723-4c91-9df7-0190fd760e93`},unsubscribeTopicId:{universalIdentifier:`0648e7ad-1769-4ff6-a4d5-72da79ef169c`},list:{universalIdentifier:`cb24dcdf-f0e8-4c71-8cff-70b714e86530`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.messageCampaign,relationTargetObjectUniversalIdentifier:p.timelineActivity})},messages:{universalIdentifier:`e5a177a7-512b-4778-928e-69777a528f7c`},recipients:{universalIdentifier:`05a3271c-5b91-493c-8f30-2d27b31d019e`}},messageList:{...h(p.messageList),name:{universalIdentifier:`69b9ed8b-7b26-4108-894f-05700ef7e8ee`},description:{universalIdentifier:`2484463a-12e0-411e-9586-81892bd7721c`},members:{universalIdentifier:`92df3493-91cf-4665-8587-1b08917d299b`},campaigns:{universalIdentifier:`e098d838-31ab-4812-91a8-f055f45a6832`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.messageList,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},messageListMember:{...h(p.messageListMember),person:{universalIdentifier:`34288425-8805-42fb-8b98-ee13d09be3d3`},list:{universalIdentifier:`d5402005-e8f9-4fbe-8696-b6723cd85018`}},messageChannelMessageAssociation:{...h(p.messageChannelMessageAssociation),messageChannelId:{universalIdentifier:`20202020-b658-408f-bd46-3bd2d15d7e52`},message:{universalIdentifier:`20202020-da5d-4ac5-8743-342ab0a0336b`},messageExternalId:{universalIdentifier:`20202020-37d6-438f-b6fd-6503596c8f34`},messageThread:{universalIdentifier:`20202020-fac8-42a8-94dd-44dbc920ae16`},messageThreadExternalId:{universalIdentifier:`20202020-35fb-421e-afa0-0b8e8f7f9018`},direction:{universalIdentifier:`75c9b0f7-9e76-44d4-a2f9-47051e61eec7`},messageFolders:{universalIdentifier:`9bfc9da7-ae2d-44fd-9563-ede90c5d6222`}},messageChannelMessageAssociationMessageFolder:{...h(p.messageChannelMessageAssociationMessageFolder),messageChannelMessageAssociation:{universalIdentifier:`7411cfa3-4fd9-4b90-a636-940015fd7243`},messageFolderId:{universalIdentifier:`b3369d31-3856-4a7a-b007-ee353918127c`}},messageParticipant:{...h(p.messageParticipant),message:{universalIdentifier:`20202020-985b-429a-9db9-9e55f4898a2a`},role:{universalIdentifier:`20202020-65d1-42f4-8729-c9ec1f52aecd`},handle:{universalIdentifier:`20202020-2456-464e-b422-b965a4db4a0b`},displayName:{universalIdentifier:`20202020-36dd-4a4f-ac02-228425be9fac`},person:{universalIdentifier:`20202020-249d-4e0f-82cd-1b9df5cd3da2`},workspaceMember:{universalIdentifier:`20202020-77a7-4845-99ed-1bcbb478be6f`},messageCampaign:{universalIdentifier:`5bc768db-919f-41da-8c43-df08084d526f`}},messageThread:{...h(p.messageThread),messages:{universalIdentifier:`20202020-3115-404f-aade-e1154b28e35a`},messageChannelMessageAssociations:{universalIdentifier:`20202020-314e-40a4-906d-a5d5d6c285f6`},subject:{universalIdentifier:`a8ddbf8c-1137-45d1-b89e-5ffbd83f67c8`},messageThreadTargets:{universalIdentifier:`8d7c8b17-b835-4082-96bd-de704c491d49`}},messageThreadTarget:{target:{universalIdentifier:`e85e853d-c26e-41b3-bec0-7afc4bdbc2f7`},...h(p.messageThreadTarget),messageThread:{universalIdentifier:`23ca09e6-149d-452f-bed7-a4aad24d1314`},isAutomaticallyAssigned:{universalIdentifier:`04403730-e960-415a-8790-f0c0f82f3477`},isManuallyAssigned:{universalIdentifier:`16efa36f-d195-42e9-959f-6928164f2395`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.messageThreadTarget,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.messageThreadTarget,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.messageThreadTarget,relationTargetObjectUniversalIdentifier:p.opportunity})}},message:{...h(p.message),headerMessageId:{universalIdentifier:`20202020-72b5-416d-aed8-b55609067d01`},messageThread:{universalIdentifier:`20202020-30f2-4ccd-9f5c-e41bb9d26214`},subject:{universalIdentifier:`20202020-52d1-4036-b9ae-84bd722bb37a`},text:{universalIdentifier:`20202020-d2ee-4e7e-89de-9a0a9044a143`},receivedAt:{universalIdentifier:`20202020-140a-4a2a-9f86-f13b6a979afc`},messageParticipants:{universalIdentifier:`20202020-7cff-4a74-b63c-73228448cbd9`},messageChannelMessageAssociations:{universalIdentifier:`20202020-3cef-43a3-82c6-50e7cfbc9ae4`},messageCampaign:{universalIdentifier:`77cff00b-a0ba-48d6-80de-0d5ccf14e45b`},isDraft:{universalIdentifier:`20202020-4d3a-4b6e-9c1f-2a5e7b9d0c34`},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.message,relationTargetObjectUniversalIdentifier:p.attachment})}},note:{...h(p.note),title:{universalIdentifier:`20202020-faeb-4c76-8ba6-ccbb0b4a965f`},bodyV2:{universalIdentifier:`20202020-a7bb-4d94-be51-8f25181502c8`},noteTargets:{universalIdentifier:`20202020-1f25-43fe-8b00-af212fdde823`},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.note,relationTargetObjectUniversalIdentifier:p.attachment})},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.note,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},noteTarget:{target:{universalIdentifier:`20202020-f635-435d-ab8d-e1168b375c70`},...h(p.noteTarget),note:{universalIdentifier:`20202020-57f3-4f50-9599-fc0f671df003`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.noteTarget,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.noteTarget,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.noteTarget,relationTargetObjectUniversalIdentifier:p.opportunity})}},opportunity:{...h(p.opportunity),name:{universalIdentifier:`20202020-8609-4f65-a2d9-44009eb422b5`},amount:{universalIdentifier:`20202020-583e-4642-8533-db761d5fa82f`},closeDate:{universalIdentifier:`20202020-527e-44d6-b1ac-c4158d307b97`},stage:{universalIdentifier:`20202020-6f76-477d-8551-28cd65b2b4b9`},pointOfContact:{universalIdentifier:`20202020-8dfb-42fc-92b6-01afb759ed16`},company:{universalIdentifier:`20202020-cbac-457e-b565-adece5fc815f`},owner:{universalIdentifier:`20202020-be7e-4d1e-8e19-3d5c7c4b9f2a`},taskTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.taskTarget})},noteTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.noteTarget})},agentChatThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.agentChatThreadTarget})},calendarEventTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.calendarEventTarget})},messageThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.messageThreadTarget})},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.attachment})},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.opportunity,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},person:{...h(p.person),name:{universalIdentifier:`20202020-3875-44d5-8c33-a6239011cab8`},emails:{universalIdentifier:`20202020-3c51-43fa-8b6e-af39e29368ab`},linkedinLink:{universalIdentifier:`20202020-f1af-48f7-893b-2007a73dd508`},jobTitle:{universalIdentifier:`20202020-b0d0-415a-bef9-640a26dacd9b`},phones:{universalIdentifier:`20202020-0638-448e-8825-439134618022`},avatarUrl:{universalIdentifier:`20202020-b8a6-40df-961c-373dc5d2ec21`},avatarFile:{universalIdentifier:`20202020-a7c9-4e3d-8f1b-2d5a6b7c8e9f`},company:{universalIdentifier:`20202020-e2f3-448e-b34c-2d625f0025fd`},pointOfContactForOpportunities:{universalIdentifier:`20202020-911b-4a7d-b67b-918aa9a5b33a`},taskTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.taskTarget})},noteTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.noteTarget})},agentChatThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.agentChatThreadTarget})},calendarEventTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.calendarEventTarget})},messageThreadTargets:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.messageThreadTarget})},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.attachment})},messageParticipants:{universalIdentifier:`20202020-498e-4c61-8158-fa04f0638334`},calendarEventParticipants:{universalIdentifier:`20202020-52ee-45e9-a702-b64b3753e3a9`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.person,relationTargetObjectUniversalIdentifier:p.timelineActivity})},listMemberships:{universalIdentifier:`8b8d1be0-4c94-4413-a2c9-c7ede205a81d`}},accessGroup:{...h(p.accessGroup),objectMetadataId:{universalIdentifier:`a1e1a495-ed2e-4e8d-8814-6ef0d1e484d0`},roleId:{universalIdentifier:`0f8c81b0-6d46-4593-97cb-97216de930ff`},rowLevelPermissionPredicateGroupId:{universalIdentifier:`03f12114-2b40-4dc0-9963-6c2e059bc4b3`},memberFieldValues:{universalIdentifier:`a0d519f8-cc6b-4bb5-b107-89213d683705`},groupHash:{universalIdentifier:`04687cce-1268-4774-b47e-04076a152630`}},recordShare:{...h(p.recordShare),recordId:{universalIdentifier:`01edb657-6339-475c-b581-784a0c3e0509`},objectMetadataId:{universalIdentifier:`504cec47-6aae-4e5b-85fd-1581b62602e3`},principalId:{universalIdentifier:`c1849ee2-1d2a-409e-800d-16fc16621257`},principalType:{universalIdentifier:`556161f6-1a01-478e-8f01-acc413102e44`},accessLevel:{universalIdentifier:`943b9926-9620-43de-8a46-8ebfee74dea3`},rowCause:{universalIdentifier:`be27640e-f739-4d07-8979-dba4526e406a`},sourceId:{universalIdentifier:`534a2244-9feb-4d21-afd9-c9a20052b300`}},shortLink:{...h(p.shortLink),authoredTemplateUrl:{universalIdentifier:`6f588340-ddff-4113-984b-c37c045d496c`},resolvedDestinationUrl:{universalIdentifier:`5ba068eb-0594-4945-9183-7174a37a9406`},templateAndResolvedUrlHash:{universalIdentifier:`175f7743-b027-4374-b577-6503679d00fc`}},task:{...h(p.task),title:{universalIdentifier:`20202020-b386-4cb7-aa5a-08d4a4d92680`},bodyV2:{universalIdentifier:`20202020-4aa0-4ae8-898d-7df0afd47ab1`},dueAt:{universalIdentifier:`20202020-fd99-40da-951b-4cb9a352fce3`},status:{universalIdentifier:`20202020-70bc-48f9-89c5-6aa730b151e0`},taskTargets:{universalIdentifier:`20202020-de9c-4d0e-a452-713d4a3e5fc7`},attachments:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.task,relationTargetObjectUniversalIdentifier:p.attachment})},assignee:{universalIdentifier:`20202020-065a-4f42-a906-e20422c1753f`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.task,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},taskTarget:{target:{universalIdentifier:`20202020-f636-435d-ab8d-e1168b375c71`},...h(p.taskTarget),task:{universalIdentifier:`20202020-e881-457a-8758-74aaef4ae78a`},targetPerson:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.taskTarget,relationTargetObjectUniversalIdentifier:p.person})},targetCompany:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.taskTarget,relationTargetObjectUniversalIdentifier:p.company})},targetOpportunity:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.taskTarget,relationTargetObjectUniversalIdentifier:p.opportunity})}},workflowRun:{...h(p.workflowRun),name:{universalIdentifier:`20202020-b840-4253-aef9-4e5013694587`},enqueuedAt:{universalIdentifier:`20202020-f1e3-4de1-a461-b5c4fdbc861d`},startedAt:{universalIdentifier:`20202020-a234-4e2d-bd15-85bcea6bb183`},endedAt:{universalIdentifier:`20202020-e1c1-4b6b-bbbd-b2beaf2e159e`},status:{universalIdentifier:`20202020-6b3e-4f9c-8c2b-2e5b8e6d6f3b`},state:{universalIdentifier:`20202020-611f-45f3-9cde-d64927e8ec57`},stepLogs:{universalIdentifier:`20202020-7c4e-4e1a-8fc1-1e3a55d6c2a1`},coreWorkflowId:{universalIdentifier:`e07d8ac0-6b6e-4685-81fa-50d82ae7f880`},coreWorkflowVersionId:{universalIdentifier:`58e3f476-425d-4c66-b391-779d0412e107`},timelineActivities:{universalIdentifier:l({applicationUniversalIdentifier:n.t,objectUniversalIdentifier:p.workflowRun,relationTargetObjectUniversalIdentifier:p.timelineActivity})}},workspaceMember:{...h(p.workspaceMember),name:{universalIdentifier:`20202020-e914-43a6-9c26-3603c59065f4`},colorScheme:{universalIdentifier:`20202020-66bc-47f2-adac-f2ef7c598b63`},uiScale:{universalIdentifier:`20202020-1581-4bfb-b87d-58fa9cd5b817`},openRecordIn:{universalIdentifier:`20202020-1b16-419d-9323-6f3ea850e5d9`},locale:{universalIdentifier:`20202020-402e-4695-b169-794fa015afbe`},avatarUrl:{universalIdentifier:`20202020-0ced-4c4f-a376-c98a966af3f6`},userEmail:{universalIdentifier:`20202020-4c5f-4e09-bebc-9e624e21ecf4`},jobTitle:{universalIdentifier:`20202020-4dd4-4619-826e-08f6c06b374d`},userId:{universalIdentifier:`20202020-75a9-4dfc-bf25-2e4b43e89820`},assignedTasks:{universalIdentifier:`20202020-61dc-4a1c-99e8-38ebf8d2bbeb`},ownedOpportunities:{universalIdentifier:`20202020-9e4d-4b3a-8c1f-6d7e8f9a0b1c`},accountOwnerForCompanies:{universalIdentifier:`20202020-dc29-4bd4-a3c1-29eafa324bee`},messageParticipants:{universalIdentifier:`20202020-8f99-48bc-a5eb-edd33dd54188`},blocklist:{universalIdentifier:`20202020-6cb2-4161-9f29-a4b7f1283859`},calendarEventParticipants:{universalIdentifier:`20202020-0dbc-4841-9ce1-3e793b5b3512`},timelineActivities:{universalIdentifier:`20202020-e15b-47b8-94fe-8200e3c66615`},agentMessages:{universalIdentifier:`211b2717-450a-4f5f-808f-39695c819319`},agentChatThreads:{universalIdentifier:`fbaf92a6-44ae-4b6d-9d10-2c15d84eaea1`},agentChatThreadParticipants:{universalIdentifier:`d1de909f-a0eb-4e94-8903-abec012864c9`},agentMessageReactions:{universalIdentifier:`9242d7b0-bb3a-4bb6-a830-5e84e722c684`},assignedAgentChatThreads:{universalIdentifier:`a89c46f5-cdb7-40e9-9a87-a8ecf0818c3c`},timeZone:{universalIdentifier:`20202020-2d33-4c21-a86e-5943b050dd54`},dateFormat:{universalIdentifier:`20202020-af13-4e11-b1e7-b8cf5ea13dc0`},timeFormat:{universalIdentifier:`20202020-8acb-4cf8-a851-a6ed443c8d81`},calendarStartDay:{universalIdentifier:`20202020-1ecc-4562-84c9-ff3a2f6cce85`},numberFormat:{universalIdentifier:`20202020-7f40-4e7f-b126-11c0eda6b141`}}};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return i}});