twenty-sdk 2.8.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/catalog-sync-BCebNxby.js +1 -0
  3. package/dist/catalog-sync-Zp1B_jdA.mjs +18 -0
  4. package/dist/cli/utilities/build/manifest/utils/validate-conditional-availability-usage.d.ts +1 -0
  5. package/dist/cli/utilities/build/manifest/utils/validate-package-json-dependencies.d.ts +1 -0
  6. package/dist/cli.cjs +61 -61
  7. package/dist/cli.mjs +1529 -1515
  8. package/dist/define/index.cjs +38 -16
  9. package/dist/define/index.cjs.map +1 -1
  10. package/dist/define/index.d.ts +691 -6
  11. package/dist/define/index.mjs +13487 -3478
  12. package/dist/define/index.mjs.map +1 -1
  13. package/dist/front-component/index.cjs +37 -15
  14. package/dist/front-component/index.cjs.map +1 -1
  15. package/dist/front-component/index.d.ts +1 -135
  16. package/dist/front-component/index.mjs +12833 -3490
  17. package/dist/front-component/index.mjs.map +1 -1
  18. package/dist/get-function-input-schema-DTlcRJz3-Dv2yR3dh.mjs +73 -0
  19. package/dist/get-function-input-schema-DTlcRJz3-dBL33k9U.js +1 -0
  20. package/dist/login-oauth-CR6NzLmb.js +340 -0
  21. package/dist/{login-oauth-DxrMUIpb.mjs → login-oauth-rznAUORX.mjs} +15029 -4882
  22. package/dist/operations.cjs +1 -1
  23. package/dist/operations.mjs +2 -2
  24. package/dist/ui/index.cjs +48 -26
  25. package/dist/ui/index.mjs +20852 -11479
  26. package/package.json +11 -9
  27. package/dist/catalog-sync-C3eVfUoF.mjs +0 -16
  28. package/dist/catalog-sync-CPVoL1dR.js +0 -1
  29. package/dist/get-function-input-schema-BZ7_XyUh-CTltddyp.mjs +0 -62
  30. package/dist/get-function-input-schema-BZ7_XyUh-CsGwFW9C.js +0 -1
  31. package/dist/login-oauth-Bjd38X4F.js +0 -298
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty-sdk",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "sideEffects": false,
5
5
  "bin": {
6
6
  "twenty": "dist/cli.cjs"
@@ -8,6 +8,7 @@
8
8
  "files": [
9
9
  "dist",
10
10
  "README.md",
11
+ "CHANGELOG.md",
11
12
  "package.json"
12
13
  ],
13
14
  "scripts": {
@@ -70,14 +71,12 @@
70
71
  },
71
72
  "license": "AGPL-3.0",
72
73
  "dependencies": {
73
- "@genql/cli": "^3.0.3",
74
74
  "@genql/runtime": "^2.10.0",
75
75
  "@sniptt/guards": "^0.2.0",
76
76
  "axios": "^1.13.5",
77
77
  "chalk": "^5.3.0",
78
78
  "chokidar": "^4.0.0",
79
79
  "commander": "^12.0.0",
80
- "dotenv": "^16.4.0",
81
80
  "esbuild": "^0.25.0",
82
81
  "graphql": "^16.8.1",
83
82
  "graphql-sse": "^2.5.4",
@@ -88,14 +87,12 @@
88
87
  "react": "^19.0.0",
89
88
  "react-dom": "^19.0.0",
90
89
  "tinyglobby": "^0.2.15",
91
- "twenty-client-sdk": "2.8.0",
92
- "typescript": "^5.9.2",
93
- "uuid": "^13.0.0",
94
- "vite": "^7.0.0",
95
- "vite-tsconfig-paths": "^4.2.1",
96
- "zod": "^4.1.11"
90
+ "twenty-client-sdk": "2.9.1",
91
+ "typescript": "^5.9.3",
92
+ "uuid": "^13.0.0"
97
93
  },
98
94
  "devDependencies": {
95
+ "@genql/cli": "^3.0.3",
99
96
  "@prettier/sync": "^0.5.2",
100
97
  "@types/inquirer": "^9.0.0",
101
98
  "@types/node": "^24.0.0",
@@ -110,7 +107,9 @@
110
107
  "tsx": "^4.7.0",
111
108
  "twenty-shared": "0.0.0",
112
109
  "twenty-ui": "0.0.0",
110
+ "vite": "^7.0.0",
113
111
  "vite-plugin-dts": "^4.5.4",
112
+ "vite-tsconfig-paths": "^4.2.1",
114
113
  "wait-on": "^7.2.0"
115
114
  },
116
115
  "engines": {
@@ -119,6 +118,9 @@
119
118
  },
120
119
  "typesVersions": {
121
120
  "*": {
121
+ "billing": [
122
+ "dist/billing/index.d.ts"
123
+ ],
122
124
  "define": [
123
125
  "dist/define/index.d.ts"
124
126
  ],
@@ -1,16 +0,0 @@
1
- import { C as o, A as a } from "./login-oauth-DxrMUIpb.mjs";
2
- import r from "chalk";
3
- class n {
4
- async execute(c) {
5
- c.remote && o.setActiveRemote(c.remote), console.log(r.blue("Syncing marketplace catalog..."));
6
- const e = await new a().syncMarketplaceCatalog();
7
- e.success || (console.error(
8
- r.red(
9
- `Catalog sync failed: ${e.error instanceof Error ? e.error.message : String(e.error)}`
10
- )
11
- ), process.exit(1)), console.log(r.green("✓ Marketplace catalog synced successfully"));
12
- }
13
- }
14
- export {
15
- n as CatalogSyncCommand
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-Bjd38X4F.js"),r=require("chalk"),l=e=>e&&e.__esModule?e:{default:e},t=l(r);class s{async execute(c){c.remote&&o.ConfigService.setActiveRemote(c.remote),console.log(t.default.blue("Syncing marketplace catalog..."));const a=await new o.ApiService().syncMarketplaceCatalog();a.success||(console.error(t.default.red(`Catalog sync failed: ${a.error instanceof Error?a.error.message:String(a.error)}`)),process.exit(1)),console.log(t.default.green("✓ Marketplace catalog synced successfully"))}}exports.CatalogSyncCommand=s;
@@ -1,62 +0,0 @@
1
- import { createSourceFile as p, ScriptTarget as l, SyntaxKind as t } from "typescript";
2
- import { o } from "./login-oauth-DxrMUIpb.mjs";
3
- const c = (r) => {
4
- switch (r.kind) {
5
- case t.NumberKeyword:
6
- return { type: "number" };
7
- case t.StringKeyword:
8
- return { type: "string" };
9
- case t.BooleanKeyword:
10
- return { type: "boolean" };
11
- case t.ArrayType:
12
- return {
13
- type: "array",
14
- items: c(r.elementType)
15
- };
16
- case t.ObjectKeyword:
17
- return { type: "object" };
18
- case t.TypeLiteral: {
19
- const n = {};
20
- return r.members.forEach((e) => {
21
- if (o(e.name) && o(e.type)) {
22
- const i = e.name.text;
23
- n[i] = c(e.type);
24
- }
25
- }), { type: "object", properties: n };
26
- }
27
- case t.UnionType: {
28
- const n = r, e = [];
29
- let i = !0;
30
- return n.types.forEach((a) => {
31
- if (a.kind === t.LiteralType) {
32
- const s = a.literal;
33
- s.kind === t.StringLiteral ? e.push(s.text) : i = !1;
34
- } else
35
- i = !1;
36
- }), i ? { type: "string", enum: e } : {};
37
- }
38
- default:
39
- return {};
40
- }
41
- }, u = (r, n) => r.parameters.reduce((e, i) => {
42
- const a = i.type;
43
- return o(a) ? [...e, c(a)] : [...e, {}];
44
- }, n), y = (r) => r.kind === t.FunctionDeclaration ? [r] : r.kind === t.VariableStatement ? r.declarationList.declarations.filter(
45
- (n) => o(n.initializer) && n.initializer.kind === t.ArrowFunction
46
- ).map((n) => n.initializer) : [], f = (r) => {
47
- const n = p(
48
- "temp.ts",
49
- r,
50
- l.ESNext,
51
- !0
52
- );
53
- let e = [];
54
- return n.forEachChild((i) => {
55
- (i.kind === t.FunctionDeclaration || i.kind === t.VariableStatement) && y(i).forEach((a) => {
56
- e = u(a, e);
57
- });
58
- }), e;
59
- };
60
- export {
61
- f as getFunctionInputSchema
62
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./login-oauth-Bjd38X4F.js"),c=n=>{switch(n.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:c(n.elementType)};case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const i={};return n.members.forEach(t=>{if(o.o(t.name)&&o.o(t.type)){const r=t.name.text;i[r]=c(t.type)}}),{type:"object",properties:i}}case e.SyntaxKind.UnionType:{const i=n,t=[];let r=!0;return i.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const y=a.literal;y.kind===e.SyntaxKind.StringLiteral?t.push(y.text):r=!1}else r=!1}),r?{type:"string",enum:t}:{}}default:return{}}},d=(n,i)=>n.parameters.reduce((t,r)=>{const a=r.type;return o.o(a)?[...t,c(a)]:[...t,{}]},i),s=n=>n.kind===e.SyntaxKind.FunctionDeclaration?[n]:n.kind===e.SyntaxKind.VariableStatement?n.declarationList.declarations.filter(i=>o.o(i.initializer)&&i.initializer.kind===e.SyntaxKind.ArrowFunction).map(i=>i.initializer):[],l=n=>{const i=e.createSourceFile("temp.ts",n,e.ScriptTarget.ESNext,!0);let t=[];return i.forEachChild(r=>{(r.kind===e.SyntaxKind.FunctionDeclaration||r.kind===e.SyntaxKind.VariableStatement)&&s(r).forEach(a=>{t=d(a,t)})}),t};exports.getFunctionInputSchema=l;