twenty-sdk 2.13.0 → 2.15.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 (64) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +4 -0
  3. package/dist/AllIcons-DEGfvqso-DwtvkCyL.js +1 -0
  4. package/dist/{AllIcons-BwIoyggb-DpmEuQAR.mjs → AllIcons-DEGfvqso-PUvdkUZm.mjs} +491 -492
  5. package/dist/catalog-sync-C5Bb1KSh.js +1 -0
  6. package/dist/{catalog-sync-BfaTQFam.mjs → catalog-sync-DcpUieU5.mjs} +1 -1
  7. package/dist/cli/commands/dev/dev.d.ts +1 -0
  8. package/dist/cli/operations/index.d.ts +2 -0
  9. package/dist/cli/operations/server-start.d.ts +1 -0
  10. package/dist/cli/utilities/api/api-client.d.ts +3 -1
  11. package/dist/cli/utilities/api/api-response-type.d.ts +1 -0
  12. package/dist/cli/utilities/auth/reauth-helper.d.ts +2 -0
  13. package/dist/cli/utilities/server/docker-container.d.ts +1 -0
  14. package/dist/cli/utilities/version/get-engine-version-range.d.ts +1 -0
  15. package/dist/cli/utilities/version/resolve-highest-engine-version.d.ts +1 -0
  16. package/dist/cli.cjs +34 -34
  17. package/dist/cli.mjs +1705 -1700
  18. package/dist/define/index.cjs +11 -11
  19. package/dist/define/index.cjs.map +1 -1
  20. package/dist/define/index.d.ts +127 -7
  21. package/dist/define/index.mjs +36081 -36039
  22. package/dist/define/index.mjs.map +1 -1
  23. package/dist/front-component/index.cjs +1 -1
  24. package/dist/front-component/index.cjs.map +1 -1
  25. package/dist/front-component/index.d.ts +6 -3
  26. package/dist/front-component/index.mjs +8 -8
  27. package/dist/front-component/index.mjs.map +1 -1
  28. package/dist/front-component-renderer.cjs +1 -1
  29. package/dist/get-function-input-schema-GNk3NRLJ-DMgchWCN.js +1 -0
  30. package/dist/{get-function-input-schema-NI9y_bIk-LH_O2OgF.mjs → get-function-input-schema-GNk3NRLJ-oMYSgib9.mjs} +31 -21
  31. package/dist/icon-BSeT8K5G-Cuhg-Bz6.js +1 -0
  32. package/dist/icon-BSeT8K5G-WVhoiRKN.mjs +10144 -0
  33. package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +2 -0
  34. package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js.map +1 -0
  35. package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs +75 -0
  36. package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs.map +1 -0
  37. package/dist/logic-function/index.cjs +4 -4
  38. package/dist/logic-function/index.cjs.map +1 -1
  39. package/dist/logic-function/index.d.ts +18 -3
  40. package/dist/logic-function/index.mjs +143 -28
  41. package/dist/logic-function/index.mjs.map +1 -1
  42. package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs +7 -0
  43. package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs.map +1 -0
  44. package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js +2 -0
  45. package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js.map +1 -0
  46. package/dist/{login-oauth-BMTHndmD.mjs → login-Cm5IBGFm.mjs} +39521 -39320
  47. package/dist/login-LjERatsq.js +345 -0
  48. package/dist/operations.cjs +1 -1
  49. package/dist/operations.mjs +4 -4
  50. package/dist/ui/index.cjs +33 -6
  51. package/dist/ui/index.d.ts +18 -12
  52. package/dist/ui/index.mjs +20408 -1123
  53. package/dist/utils/index.cjs +1 -1
  54. package/dist/utils/index.cjs.map +1 -1
  55. package/dist/utils/index.d.ts +3 -1
  56. package/dist/utils/index.mjs +9 -8
  57. package/dist/utils/index.mjs.map +1 -1
  58. package/package.json +5 -3
  59. package/dist/AllIcons-BwIoyggb-Ck9DmOFs.js +0 -1
  60. package/dist/catalog-sync-MvJJHh7v.js +0 -1
  61. package/dist/display-Co0K-nTB-CPdyKmin.js +0 -83
  62. package/dist/display-Co0K-nTB-DIalVNdw.mjs +0 -54655
  63. package/dist/get-function-input-schema-NI9y_bIk-BZ2G7LIj.js +0 -1
  64. package/dist/login-oauth-DN2eTP67.js +0 -345
package/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ All notable changes to the [Twenty SDK](https://www.npmjs.com/package/twenty-sdk
4
4
 
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ### Changed
10
+
11
+ - **`twenty-client-sdk` should now be a dev dependency too.** Although app code imports it (`CoreApiClient`, `MetadataApiClient`, `RestApiClient`), Twenty provides it at runtime — logic functions get it from a generated SDK layer and front components resolve it from server-served modules — so the installed copy is only needed for typechecking and the deploy-time build. Newly scaffolded apps now place it under `devDependencies`. Moving it is recommended (not required: the server already strips it from the deployed runtime), and keeps the installed app leaner:
12
+
13
+ ```diff
14
+ "dependencies": {
15
+ - "twenty-client-sdk": "^2.13.0"
16
+ },
17
+ "devDependencies": {
18
+ + "twenty-client-sdk": "^2.13.0"
19
+ }
20
+ ```
21
+
22
+ `twenty build` now also emits a warning when `twenty-client-sdk` is still listed under `dependencies`.
23
+
7
24
  ## [2.8.0]
8
25
 
9
26
  ### Breaking Changes
package/README.md CHANGED
@@ -32,6 +32,10 @@ Full documentation is available at **[docs.twenty.com/developers/extend/apps](ht
32
32
  - [Building Apps](https://docs.twenty.com/developers/extend/apps/building) — entity definitions, API clients, testing, CLI reference
33
33
  - [Publishing](https://docs.twenty.com/developers/extend/apps/publishing) — deploy, npm publish, marketplace
34
34
 
35
+ Guides in this repository:
36
+
37
+ - [Logic function inputs](./docs/logic-function-inputs.md) — input schema inference, record-typed inputs, and the id contract
38
+
35
39
  ## Manual installation
36
40
 
37
41
  If you are adding `twenty-sdk` to an existing project instead of using `create-twenty-app`: