Skip to content

The open alternative to Salesforce, designed for AI.

Refactor twenty client sdk provisioning for logic function and front-component (#18544)

Paul Rastoin4ea2e3236617
diff --git a/.github/actions/spawn-twenty-docker-image/action.yaml b/.github/actions/spawn-twenty-docker-image/action.yaml
index 53e311d3d58..b0e268ca5ec 100644
--- a/.github/actions/spawn-twenty-docker-image/action.yaml
+++ b/.github/actions/spawn-twenty-docker-image/action.yaml
@@ -3,12 +3,13 @@ description: >
Starts a full Twenty instance (server, worker, database, redis) using Docker
Compose. The server is available at http://localhost:3000 for subsequent steps
in the caller's job.
- Pulls the specified semver image tag from Docker Hub.
+ Accepts "latest" (pulls the latest Docker Hub image, checks out main) or a
+ semver tag (e.g., v0.40.0).
Designed to be consumed from external repositories (e.g., twenty-app).
inputs:
twenty-version:
- description: 'Twenty Docker Hub image tag as semver (e.g., v0.40.0, v1.0.0).'
+ description: 'Twenty Docker Hub image tag — either "latest" or a semver tag (e.g., v0.40.0).'
required: true
twenty-repository:
description: 'Twenty repository to checkout docker compose files from.'
@@ -30,12 +31,19 @@ outputs:
runs:
using: 'composite'
steps:
- - name: Validate version
+ - name: Resolve version
+ id: resolve
shell: bash
run: |
VERSION="${{ inputs.twenty-version }}"
- if ! echo "$VERSION" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
- echo "::error::twenty-version must be a semver tag (e.g., v0.40.0). Got: '$VERSION'"
+ if [ "$VERSION" = "latest" ]; then
+ echo "docker-tag=latest" >> "$GITHUB_OUTPUT"
+ echo "git-ref=main" >> "$GITHUB_OUTPUT"
+ elif echo "$VERSION" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
+ echo "docker-tag=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "git-ref=$VERSION" >> "$GITHUB_OUTPUT"
+ else
+ echo "::error::twenty-version must be \"latest\" or a semver tag (e.g., v0.40.0). Got: '$VERSION'"
exit 1
fi
@@ -43,7 +51,7 @@ runs:
uses: actions/checkout@v4
with:
repository: ${{ inputs.twenty-repository }}
- ref: ${{ inputs.twenty-version }}
+ ref: ${{ steps.resolve.outputs.git-ref }}
token: ${{ inputs.github-token }}
sparse-checkout: |
packages/twenty-docker
@@ -56,7 +64,7 @@ runs:
run: |
cp .env.example .env
echo "" >> .env
- echo "TAG=${{ inputs.twenty-version }}" >> .env
+ echo "TAG=${{ steps.resolve.outputs.docker-tag }}" >> .env
echo "APP_SECRET=replace_me_with_a_random_string" >> .env
echo "SERVER_URL=http://localhost:3000" >> .env
diff --git a/.github/verdaccio-config.yaml b/.github/verdaccio-config.yaml
index 99bbc93460c..6c74a4c3f46 100644
--- a/.github/verdaccio-config.yaml
+++ b/.github/verdaccio-config.yaml
@@ -10,6 +10,9 @@ packages:
'twenty-sdk':
access: $all
publish: $all
+ 'twenty-client-sdk':
+ access: $all
+ publish: $all
'create-twenty-app':
access: $all
publish: $all
diff --git a/.github/workflows/ci-create-app-e2e.yaml b/.github/workflows/ci-create-app-e2e.yaml
index c8bd18fe262..796afccc237 100644
--- a/.github/workflows/ci-create-app-e2e.yaml
+++ b/.github/workflows/ci-create-app-e2e.yaml
@@ -21,10 +21,12 @@ jobs:
files: |
packages/create-twenty-app/**
packages/twenty-sdk/**
+ packages/twenty-client-sdk/**
packages/twenty-shared/**
packages/twenty-server/**
!packages/create-twenty-app/package.json
!packages/twenty-sdk/package.json
+ !packages/twenty-client-sdk/package.json
!packages/twenty-shared/package.json
!packages/twenty-server/package.json
create-app-e2e:
@@ -64,11 +66,12 @@ jobs:
run: |
CI_VERSION="0.0.0-ci.$(date +%s)"
echo "CI_VERSION=$CI_VERSION" >> $GITHUB_ENV
- npx nx run-many -t set-local-version -p twenty-sdk create-twenty-app --releaseVersion=$CI_VERSION
+ npx nx run-many -t set-local-version -p twenty-sdk twenty-client-sdk create-twenty-app --releaseVersion=$CI_VERSION
- name: Build packages
run: |
npx nx build twenty-sdk
+ npx nx build twenty-client-sdk
npx nx build create-twenty-app
- name: Install and start Verdaccio
@@ -88,7 +91,7 @@ jobs:
run: |
npm set //localhost:4873/:_authToken "ci-auth-token"
- for pkg in twenty-sdk create-twenty-app; do
+ for pkg in twenty-sdk twenty-client-sdk create-twenty-app; do
cd packages/$pkg
npm publish --registry http://localhost:4873 --tag ci
cd ../..
@@ -153,11 +156,15 @@ jobs:
cd /tmp/e2e-test-workspace/test-app
npx --no-install twenty remote add --token $SEED_API_KEY --url http://localhost:3000
- - name: Build scaffolded app
+ - name: Deploy scaffolded app
run: |
cd /tmp/e2e-test-workspace/test-app
- npx --no-install twenty build
- test -d .twenty/output
+ npx --no-install twenty deploy
+
+ - name: Install scaffolded app
+ run: |
+ cd /tmp/e2e-test-workspace/test-app
+ npx --no-install twenty install
- name: Execute hello-world logic function
run: |
@@ -166,6 +173,13 @@ jobs:
echo "$EXEC_OUTPUT"
echo "$EXEC_OUTPUT" | grep -q "Hello, World!"
+ - name: Execute create-hello-world-company logic function
+ run: |
+ cd /tmp/e2e-test-workspace/test-app
+ EXEC_OUTPUT=$(npx --no-install twenty exec --functionName create-hello-world-company)
+ echo "$EXEC_OUTPUT"
+ echo "$EXEC_OUTPUT" | grep -q "Created company"
+
- name: Run scaffolded app integration test
env:
TWENTY_API_URL: http://localhost:3000
diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml
index 06011978edf..77f69aefec6 100644
--- a/.github/workflows/ci-server.yaml
+++ b/.github/workflows/ci-server.yaml
@@ -25,7 +25,7 @@ jobs:
packages/twenty-server/**
packages/twenty-front/src/generated/**
packages/twenty-front/src/generated-metadata/**
- packages/twenty-sdk/src/clients/generated/metadata/**
+ packages/twenty-client-sdk/**
packages/twenty-emails/**
packages/twenty-shared/**
@@ -177,14 +177,14 @@ jobs:
HAS_ERRORS=true
fi
- npx nx run twenty-sdk:generate-metadata-client
+ npx nx run twenty-client-sdk:generate-metadata-client
- if ! git diff --quiet -- packages/twenty-sdk/src/clients/generated/metadata; then
- echo "::error::SDK metadata client changes detected. Please run 'npx nx run twenty-sdk:generate-metadata-client' and commit the changes."
+ if ! git diff --quiet -- packages/twenty-client-sdk/src/metadata/generated; then
+ echo "::error::SDK metadata client changes detected. Please run 'npx nx run twenty-client-sdk:generate-metadata-client' and commit the changes."
echo ""
echo "The following SDK metadata client changes were detected:"
echo "==================================================="
- git diff -- packages/twenty-sdk/src/clients/generated/metadata
+ git diff -- packages/twenty-client-sdk/src/metadata/generated
echo "==================================================="
echo ""
HAS_ERRORS=true
diff --git a/package.json b/package.json
index 3dad76cb167..ab15ca6e1f6 100644
--- a/package.json
+++ b/package.json
@@ -207,6 +207,7 @@
"packages/twenty-e2e-testing",
"packages/twenty-shared",
"packages/twenty-sdk",
+ "packages/twenty-client-sdk",
"packages/twenty-apps",
"packages/twenty-cli",
"packages/create-twenty-app",
diff --git a/packages/create-twenty-app/README.md b/packages/create-twenty-app/README.md
index 488618aefff..c16152d03f5 100644
--- a/packages/create-twenty-app/README.md
+++ b/packages/create-twenty-app/README.md
@@ -44,6 +44,7 @@ yarn twenty server start # Start local Twenty server
yarn twenty remote add --local # Authenticate via OAuth
# Start dev mode: watches, builds, and syncs local changes to your workspace
+# (also auto-generates typed CoreApiClient — MetadataApiClient ships pre-built — both available via `twenty-client-sdk`)
yarn twenty dev
# Watch your application's function logs
@@ -135,7 +136,7 @@ npx create-twenty-app@latest my-app --port 3000
- Use `yarn twenty remote add --local` to authenticate with your Twenty workspace via OAuth.
- Explore the generated project and add your first entity with `yarn twenty add` (logic functions, front components, objects, roles, views, navigation menu items, skills).
- Use `yarn twenty dev` while you iterate — it watches, builds, and syncs changes to your workspace in real time.
-- `CoreApiClient` (for workspace data via `/graphql`) is auto-generated by `yarn twenty dev`. `MetadataApiClient` (for workspace configuration and file uploads via `/metadata`) ships pre-built with the SDK. Both are available via `import { CoreApiClient, MetadataApiClient } from 'twenty-sdk/clients'`.
+- `CoreApiClient` is auto-generated by `yarn twenty dev`. `MetadataApiClient` (for workspace configuration and file uploads via `/metadata`) ships pre-built with the SDK. Both are available via `import { CoreApiClient } from 'twenty-client-sdk/core'` and `import { MetadataApiClient } from 'twenty-client-sdk/metadata'`.
## Build and publish your application
diff --git a/packages/create-twenty-app/src/utils/__tests__/app-template.spec.ts b/packages/create-twenty-app/src/utils/__tests__/app-template.spec.ts
index c70b2aca9e5..a8feb44ae83 100644
--- a/packages/create-twenty-app/src/utils/__tests__/app-template.spec.ts
+++ b/packages/create-twenty-app/src/utils/__tests__/app-template.spec.ts
@@ -106,6 +106,9 @@ describe('copyBaseApplicationProject', () => {
expect(packageJson.devDependencies['twenty-sdk']).toBe(
createTwentyAppPackageJson.version,
);
+ expect(packageJson.devDependencies['twenty-client-sdk']).toBe(
+ createTwentyAppPackageJson.version,
+ );
expect(packageJson.scripts['twenty']).toBe('twenty');
});
@@ -362,11 +365,21 @@ describe('copyBaseApplicationProject', () => {
join(srcPath, 'logic-functions', 'hello-world.ts'),
),
).toBe(true);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'logic-functions', 'create-hello-world-company.ts'),
+ ),
+ ).toBe(true);
expect(
await fs.pathExists(
join(srcPath, 'front-components', 'hello-world.tsx'),
),
).toBe(true);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'page-layouts', 'example-record-page-layout.ts'),
+ ),
+ ).toBe(true);
expect(
await fs.pathExists(join(srcPath, 'views', 'example-view.ts')),
).toBe(true);
@@ -448,11 +461,21 @@ describe('copyBaseApplicationProject', () => {
join(srcPath, 'logic-functions', 'hello-world.ts'),
),
).toBe(false);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'logic-functions', 'create-hello-world-company.ts'),
+ ),
+ ).toBe(false);
expect(
await fs.pathExists(
join(srcPath, 'front-components', 'hello-world.tsx'),
),
).toBe(false);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'page-layouts', 'example-record-page-layout.ts'),
+ ),
+ ).toBe(false);
expect(
await fs.pathExists(join(srcPath, 'views', 'example-view.ts')),
).toBe(false);
@@ -480,7 +503,7 @@ describe('copyBaseApplicationProject', () => {
});
describe('selective examples', () => {
- it('should create only front component when only that option is enabled', async () => {
+ it('should create front component and page layout when only front component option is enabled', async () => {
await copyBaseApplicationProject({
appName: 'my-test-app',
appDisplayName: 'My Test App',
@@ -506,6 +529,11 @@ describe('copyBaseApplicationProject', () => {
join(srcPath, 'front-components', 'hello-world.tsx'),
),
).toBe(true);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'page-layouts', 'example-record-page-layout.ts'),
+ ),
+ ).toBe(true);
expect(
await fs.pathExists(join(srcPath, 'objects', 'example-object.ts')),
).toBe(false);
@@ -545,6 +573,11 @@ describe('copyBaseApplicationProject', () => {
join(srcPath, 'logic-functions', 'hello-world.ts'),
),
).toBe(true);
+ expect(
+ await fs.pathExists(
+ join(srcPath, 'logic-functions', 'create-hello-world-company.ts'),
+ ),
+ ).toBe(true);
expect(
await fs.pathExists(join(srcPath, 'objects', 'example-object.ts')),
).toBe(false);
diff --git a/packages/create-twenty-app/src/utils/__tests__/test-template.spec.ts b/packages/create-twenty-app/src/utils/__tests__/test-template.spec.ts
index 0c45baea498..64920f9f95c 100644
--- a/packages/create-twenty-app/src/utils/__tests__/test-template.spec.ts
+++ b/packages/create-twenty-app/src/utils/__tests__/test-template.spec.ts
@@ -47,15 +47,17 @@ describe('scaffoldIntegrationTest', () => {
const content = await fs.readFile(testPath, 'utf8');
expect(content).toContain(
- "import { appBuild, appUninstall } from 'twenty-sdk/cli'",
+ "import { appBuild, appDeploy, appInstall, appUninstall } from 'twenty-sdk/cli'",
);
expect(content).toContain(
- "import { MetadataApiClient } from 'twenty-sdk/clients'",
+ "import { MetadataApiClient } from 'twenty-client-sdk/metadata'",
);
expect(content).toContain(
"import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/application-config'",
);
expect(content).toContain('appBuild');
+ expect(content).toContain('appDeploy');
+ expect(content).toContain('appInstall');
expect(content).toContain('appUninstall');
expect(content).toContain('new MetadataApiClient()');
expect(content).toContain('findManyApplications');
@@ -136,7 +138,7 @@ describe('scaffoldIntegrationTest', () => {
expect(content).toContain('yarn install --immutable');
expect(content).toContain('yarn test');
expect(content).toContain('TWENTY_API_URL');
- expect(content).toContain('TWENTY_TEST_API_KEY');
+ expect(content).toContain('TWENTY_API_KEY');
});
});
diff --git a/packages/create-twenty-app/src/utils/app-template.ts b/packages/create-twenty-app/src/utils/app-template.ts
index 98f5cc7ef98..572108afc61 100644
--- a/packages/create-twenty-app/src/utils/app-template.ts
+++ b/packages/create-twenty-app/src/utils/app-template.ts
@@ -34,6 +34,8 @@ export const copyBaseApplicationProject = async ({
await createGitignore(appDirectory);
+ await createNvmrc(appDirectory);
+
await createPublicAssetDirectory(appDirectory);
const sourceFolderPath = join(appDirectory, SRC_FOLDER);
@@ -69,6 +71,12 @@ export const copyBaseApplicationProject = async ({
fileFolder: 'logic-functions',
fileName: 'hello-world.ts',
});
+
+ await createCreateCompanyFunction({
+ appDirectory: sourceFolderPath,
+ fileFolder: 'logic-functions',
+ fileName: 'create-hello-world-company.ts',
+ });
}
if (exampleOptions.includeExampleFrontComponent) {
@@ -77,6 +85,12 @@ export const copyBaseApplicationProject = async ({
fileFolder: 'front-components',
fileName: 'hello-world.tsx',
});
+
+ await createExamplePageLayout({
+ appDirectory: sourceFolderPath,
+ fileFolder: 'page-layouts',
+ fileName: 'example-record-page-layout.ts',
+ });
}
if (exampleOptions.includeExampleView) {
@@ -186,6 +200,10 @@ yarn-error.log*
await fs.writeFile(join(appDirectory, '.gitignore'), gitignoreContent);
};
+const createNvmrc = async (appDirectory: string) => {
+ await fs.writeFile(join(appDirectory, '.nvmrc'), '24.5.0\n');
+};
+
const createDefaultRoleConfig = async ({
displayName,
appDirectory,
@@ -230,19 +248,59 @@ const createDefaultFrontComponent = async ({
}) => {
const universalIdentifier = v4();
- const content = `import { defineFrontComponent } from 'twenty-sdk';
+ const content = `import { useEffect, useState } from 'react';
+import { CoreApiClient, CoreSchema } from 'twenty-client-sdk/core';
+import { defineFrontComponent } from 'twenty-sdk';
+
+export const HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
+ '${universalIdentifier}';
export const HelloWorld = () => {
+ const client = new CoreApiClient();
+ const [data, setData] = useState<
+ Pick<CoreSchema.Company, 'name' | 'id'> | undefined
+ >(undefined);
+
+ useEffect(() => {
+ const fetchData = async () => {
+ const response = await client.query({
+ company: {
+ name: true,
+ id: true,
+ __args: {
+ filter: {
+ position: {
+ eq: 1,
+ },
+ },
+ },
+ },
+ });
+
+ setData(response.company);
+ };
+
+ fetchData();
+ }, []);
+
return (
<div style={{ padding: '20px', fontFamily: 'sans-serif' }}>
<h1>Hello, World!</h1>
<p>This is your first front component.</p>
+ {data ? (
+ <div>
+ <p>Company name: {data.name}</p>
+ <p>Company id: {data.id}</p>
+ </div>
+ ) : (
+ <p>Company not found</p>
+ )}
</div>
);
};
export default defineFrontComponent({
- universalIdentifier: '${universalIdentifier}',
+ universalIdentifier: HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
name: 'hello-world-front-component',
description: 'A sample front component',
component: HelloWorld,
@@ -253,6 +311,56 @@ export default defineFrontComponent({
await fs.writeFile(join(appDirectory, fileFolder ?? '', fileName), content);
};
+const createExamplePageLayout = async ({
+ appDirectory,
+ fileFolder,
+ fileName,
+}: {
+ appDirectory: string;
+ fileFolder?: string;
+ fileName: string;
+}) => {
+ const pageLayoutUniversalIdentifier = v4();
+ const tabUniversalIdentifier = v4();
+ const widgetUniversalIdentifier = v4();
+
+ const content = `import { EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER } from 'src/objects/example-object';
+import { HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/front-components/hello-world';
+import { definePageLayout, PageLayoutTabLayoutMode } from 'twenty-sdk';
+
+export default definePageLayout({
+ universalIdentifier: '${pageLayoutUniversalIdentifier}',
+ name: 'Example Record Page',
+ type: 'RECORD_PAGE',
+ objectUniversalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
+ tabs: [
+ {
+ universalIdentifier: '${tabUniversalIdentifier}',
+ title: 'Hello World',
+ position: 50,
+ icon: 'IconWorld',
+ layoutMode: PageLayoutTabLayoutMode.CANVAS,
+ widgets: [
+ {
+ universalIdentifier: '${widgetUniversalIdentifier}',
+ title: 'Hello World',
+ type: 'FRONT_COMPONENT',
+ configuration: {
+ configurationType: 'FRONT_COMPONENT',
+ frontComponentUniversalIdentifier:
+ HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ },
+ },
+ ],
+ },
+ ],
+});
+`;
+
+ await fs.ensureDir(join(appDirectory, fileFolder ?? ''));
+ await fs.writeFile(join(appDirectory, fileFolder ?? '', fileName), content);
+};
+
const createDefaultFunction = async ({
appDirectory,
fileFolder,
@@ -288,6 +396,58 @@ export default defineLogicFunction({
await fs.writeFile(join(appDirectory, fileFolder ?? '', fileName), content);
};
+const createCreateCompanyFunction = async ({
+ appDirectory,
+ fileFolder,
+ fileName,
+}: {
+ appDirectory: string;
+ fileFolder?: string;
+ fileName: string;
+}) => {
+ const universalIdentifier = v4();
+
+ const content = `import { CoreApiClient } from 'twenty-client-sdk/core';
+import { defineLogicFunction } from 'twenty-sdk';
+
+const handler = async (): Promise<{ message: string }> => {
+ const client = new CoreApiClient();
+
+ const { createCompany } = await client.mutation({
+ createCompany: {
+ __args: {
+ data: {
+ name: 'Hello World',
+ },
+ },
+ id: true,
+ name: true,
+ },
+ });
+
+ return {
+ message: \`Created company "\${createCompany?.name}" with id \${createCompany?.id}\`,
+ };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: '${universalIdentifier}',
+ name: 'create-hello-world-company',
+ description: 'Creates a company called Hello World',
+ timeoutSeconds: 5,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/create-hello-world-company',
+ httpMethod: 'POST',
+ isAuthRequired: true,
+ },
+});
+`;
+
+ await fs.ensureDir(join(appDirectory, fileFolder ?? ''));
+ await fs.writeFile(join(appDirectory, fileFolder ?? '', fileName), content);
+};
+
const createDefaultPreInstallFunction = async ({
appDirectory,
fileFolder,
@@ -615,6 +775,7 @@ const createPackageJson = async ({
'react-dom': '^19.0.0',
oxlint: '^0.16.0',
'twenty-sdk': createTwentyAppPackageJson.version,
+ 'twenty-client-sdk': createTwentyAppPackageJson.version,
};
if (includeExampleIntegrationTest) {
diff --git a/packages/create-twenty-app/src/utils/test-template.ts b/packages/create-twenty-app/src/utils/test-template.ts
index 46bd85d4505..0ea50c8b421 100644
--- a/packages/create-twenty-app/src/utils/test-template.ts
+++ b/packages/create-twenty-app/src/utils/test-template.ts
@@ -149,18 +149,17 @@ const createIntegrationTest = async ({
fileName: string;
}) => {
const content = `import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/application-config';
-import { appBuild, appUninstall } from 'twenty-sdk/cli';
-import { MetadataApiClient } from 'twenty-sdk/clients';
+import { appBuild, appDeploy, appInstall, appUninstall } from 'twenty-sdk/cli';
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
const APP_PATH = process.cwd();
describe('App installation', () => {
- let appInstalled = false;
-
beforeAll(async () => {
const buildResult = await appBuild({
appPath: APP_PATH,
+ tarball: true,
onProgress: (message: string) => console.log(\`[build] \${message}\`),
});
@@ -170,14 +169,27 @@ describe('App installation', () => {
);
}
- appInstalled = true;
- });
+ const deployResult = await appDeploy({
+ tarballPath: buildResult.data.tarballPath!,
+ onProgress: (message: string) => console.log(\`[deploy] \${message}\`),
+ });
- afterAll(async () => {
- if (!appInstalled) {
- return;
+ if (!deployResult.success) {
+ throw new Error(
+ \`Deploy failed: \${deployResult.error?.message ?? 'Unknown error'}\`,
+ );
}
+ const installResult = await appInstall({ appPath: APP_PATH });
+
+ if (!installResult.success) {
+ throw new Error(
+ \`Install failed: \${installResult.error?.message ?? 'Unknown error'}\`,
+ );
+ }
+ });
+
+ afterAll(async () => {
const uninstallResult = await appUninstall({ appPath: APP_PATH });
if (!uninstallResult.success) {
@@ -257,7 +269,7 @@ jobs:
run: yarn test
env:
TWENTY_API_URL: \${{ steps.twenty.outputs.server-url }}
- TWENTY_TEST_API_KEY: \${{ steps.twenty.outputs.access-token }}
+ TWENTY_API_KEY: \${{ steps.twenty.outputs.access-token }}
`;
const workflowDir = join(appDirectory, '.github', 'workflows');
diff --git a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.ts b/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.ts
index 6a21a9efdf9..e9fb6565c8b 100644
--- a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.ts
+++ b/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardCategoryField.ts
@@ -3,7 +3,7 @@ import { POST_CARD_UNIVERSAL_IDENTIFIER } from '../objects/post-card.object';
export default defineField({
objectUniversalIdentifier: POST_CARD_UNIVERSAL_IDENTIFIER,
- universalIdentifier: '8b9c0d1e-2f3a-4b5c-6d7e-8f9a0b1c2d3e',
+ universalIdentifier: 'b602dbd9-e511-49ce-b6d3-b697218dc69c',
type: FieldType.SELECT,
name: 'category',
label: 'Category',
diff --git a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.ts b/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.ts
index 94d924865aa..f3f3ad98b02 100644
--- a/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.ts
+++ b/packages/twenty-apps/fixtures/postcard-app/src/fields/postCardNumber.field.ts
@@ -3,7 +3,7 @@ import { POST_CARD_UNIVERSAL_IDENTIFIER } from '../objects/post-card.object';
export default defineField({
objectUniversalIdentifier: POST_CARD_UNIVERSAL_IDENTIFIER,
- universalIdentifier: '7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d',
+ universalIdentifier: '7b57bd63-5a4c-46ca-9d52-42c8f02d1df6',
type: FieldType.NUMBER,
name: 'priority',
label: 'Priority',
diff --git a/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts b/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts
index e636f782a0f..5febca5faa5 100644
--- a/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts
+++ b/packages/twenty-apps/fixtures/postcard-app/src/objects/recipient.object.ts
@@ -25,8 +25,8 @@ export default defineObject({
{
universalIdentifier: 'd3a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d',
type: FieldType.ADDRESS,
- label: 'Address',
- name: 'address',
+ label: 'Mailing Address',
+ name: 'mailingAddress',
icon: 'IconHome',
},
],
diff --git a/packages/twenty-apps/hello-world/.github/workflows/ci.yml b/packages/twenty-apps/hello-world/.github/workflows/ci.yml
new file mode 100644
index 00000000000..92bd0e994f9
--- /dev/null
+++ b/packages/twenty-apps/hello-world/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request: {}
+
+env:
+ TWENTY_VERSION: latest
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Spawn Twenty instance
+ id: twenty
+ uses: twentyhq/twenty/.github/actions/spawn-twenty-docker-image@main
+ with:
+ twenty-version: ${{ env.TWENTY_VERSION }}
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Enable Corepack
+ run: corepack enable
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: '.nvmrc'
+ cache: 'yarn'
+
+ - name: Install dependencies
+ run: yarn install --immutable
+
+ - name: Run integration tests
+ run: yarn test
+ env:
+ TWENTY_API_URL: ${{ steps.twenty.outputs.server-url }}
+ TWENTY_API_KEY: ${{ steps.twenty.outputs.access-token }}
diff --git a/packages/twenty-apps/hello-world/LLMS.md b/packages/twenty-apps/hello-world/LLMS.md
index c08c2475f18..b165db0d146 100644
--- a/packages/twenty-apps/hello-world/LLMS.md
+++ b/packages/twenty-apps/hello-world/LLMS.md
@@ -4,6 +4,7 @@
- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-sdk/src/app-seeds/rich-app
## UUID requirement
+
- All generated UUIDs must be valid UUID v4.
## Common Pitfalls
diff --git a/packages/twenty-apps/hello-world/package.json b/packages/twenty-apps/hello-world/package.json
index 8c9e233820d..f896e9ba264 100644
--- a/packages/twenty-apps/hello-world/package.json
+++ b/packages/twenty-apps/hello-world/package.json
@@ -20,7 +20,8 @@
"@types/react": "^18.2.0",
"oxlint": "^0.16.0",
"react": "^18.2.0",
- "twenty-sdk": "0.6.4",
+ "twenty-client-sdk": "portal:../../twenty-client-sdk",
+ "twenty-sdk": "portal:../../twenty-sdk",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^3.1.1"
diff --git a/packages/twenty-apps/hello-world/src/__tests__/app-install.integration-test.ts b/packages/twenty-apps/hello-world/src/__tests__/app-install.integration-test.ts
index 8f6945211cb..58002036a4b 100644
--- a/packages/twenty-apps/hello-world/src/__tests__/app-install.integration-test.ts
+++ b/packages/twenty-apps/hello-world/src/__tests__/app-install.integration-test.ts
@@ -1,16 +1,15 @@
import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/application-config';
-import { appBuild, appUninstall } from 'twenty-sdk/cli';
-import { MetadataApiClient } from 'twenty-sdk/clients';
+import { appBuild, appDeploy, appInstall, appUninstall } from 'twenty-sdk/cli';
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
const APP_PATH = process.cwd();
describe('App installation', () => {
- let appInstalled = false;
-
beforeAll(async () => {
const buildResult = await appBuild({
appPath: APP_PATH,
+ tarball: true,
onProgress: (message: string) => console.log(`[build] ${message}`),
});
@@ -20,14 +19,27 @@ describe('App installation', () => {
);
}
- appInstalled = true;
- });
+ const deployResult = await appDeploy({
+ tarballPath: buildResult.data.tarballPath!,
+ onProgress: (message: string) => console.log(`[deploy] ${message}`),
+ });
- afterAll(async () => {
- if (!appInstalled) {
- return;
+ if (!deployResult.success) {
+ throw new Error(
+ `Deploy failed: ${deployResult.error?.message ?? 'Unknown error'}`,
+ );
}
+ const installResult = await appInstall({ appPath: APP_PATH });
+
+ if (!installResult.success) {
+ throw new Error(
+ `Install failed: ${installResult.error?.message ?? 'Unknown error'}`,
+ );
+ }
+ });
+
+ afterAll(async () => {
const uninstallResult = await appUninstall({ appPath: APP_PATH });
if (!uninstallResult.success) {
diff --git a/packages/twenty-apps/hello-world/src/agents/example-agent.ts b/packages/twenty-apps/hello-world/src/agents/example-agent.ts
new file mode 100644
index 00000000000..5fbec3c5e29
--- /dev/null
+++ b/packages/twenty-apps/hello-world/src/agents/example-agent.ts
@@ -0,0 +1,13 @@
+import { defineAgent } from 'twenty-sdk';
+
+export const EXAMPLE_AGENT_UNIVERSAL_IDENTIFIER =
+ '110bebc2-f116-46b6-a35d-61e91c3c0a43';
+
+export default defineAgent({
+ universalIdentifier: EXAMPLE_AGENT_UNIVERSAL_IDENTIFIER,
+ name: 'example-agent',
+ label: 'Example Agent',
+ description: 'A sample AI agent for your application',
+ icon: 'IconRobot',
+ prompt: 'You are a helpful assistant. Help users with their questions and tasks.',
+});
diff --git a/packages/twenty-apps/hello-world/src/application-config.ts b/packages/twenty-apps/hello-world/src/application-config.ts
index 7956f15e771..d2a71554dd1 100644
--- a/packages/twenty-apps/hello-world/src/application-config.ts
+++ b/packages/twenty-apps/hello-world/src/application-config.ts
@@ -2,7 +2,7 @@ import { defineApplication } from 'twenty-sdk';
import { DEFAULT_ROLE_UNIVERSAL_IDENTIFIER } from 'src/roles/default-role';
export const APPLICATION_UNIVERSAL_IDENTIFIER =
- '6563e091-9f5b-4026-a3ea-7e3b3d09e218';
+ 'bb1decf6-dee5-43ef-b881-9799f97b02a8';
export default defineApplication({
universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
diff --git a/packages/twenty-apps/hello-world/src/fields/example-field.ts b/packages/twenty-apps/hello-world/src/fields/example-field.ts
index 4500aa2950f..2c99c57b040 100644
--- a/packages/twenty-apps/hello-world/src/fields/example-field.ts
+++ b/packages/twenty-apps/hello-world/src/fields/example-field.ts
@@ -3,7 +3,7 @@ import { EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER } from 'src/objects/example-object'
export default defineField({
objectUniversalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
- universalIdentifier: '770d32c2-cf12-4ab2-b66d-73f92dc239b5',
+ universalIdentifier: 'be08a7c6-2586-4d91-9fa7-0a44e6eae30c',
type: FieldType.NUMBER,
name: 'priority',
label: 'Priority',
diff --git a/packages/twenty-apps/hello-world/src/front-components/hello-world.tsx b/packages/twenty-apps/hello-world/src/front-components/hello-world.tsx
index bde03498ae0..ab0246e9fd0 100644
--- a/packages/twenty-apps/hello-world/src/front-components/hello-world.tsx
+++ b/packages/twenty-apps/hello-world/src/front-components/hello-world.tsx
@@ -1,16 +1,56 @@
+import { useEffect, useState } from 'react';
+import { CoreApiClient, CoreSchema } from 'twenty-client-sdk/core';
import { defineFrontComponent } from 'twenty-sdk';
+export const HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
+ '7a758f23-5e7d-497d-98c9-7ca8d6c085b0';
+
export const HelloWorld = () => {
+ const client = new CoreApiClient();
+ const [data, setData] = useState<
+ Pick<CoreSchema.Company, 'name' | 'id'> | undefined
+ >(undefined);
+
+ useEffect(() => {
+ const fetchData = async () => {
+ const response = await client.query({
+ company: {
+ name: true,
+ id: true,
+ __args: {
+ filter: {
+ position: {
+ eq: 1,
+ },
+ },
+ },
+ },
+ });
+
+ setData(response.company);
+ };
+
+ fetchData();
+ }, []);
+
return (
<div style={{ padding: '20px', fontFamily: 'sans-serif' }}>
<h1>Hello, World!</h1>
<p>This is your first front component.</p>
+ {data ? (
+ <div>
+ <p>Company name: {data.name}</p>
+ <p>Company id: {data.id}</p>
+ </div>
+ ) : (
+ <p>Company not found</p>
+ )}
</div>
);
};
export default defineFrontComponent({
- universalIdentifier: 'd371f098-5b2c-42f0-898d-94459f1ee337',
+ universalIdentifier: HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
name: 'hello-world-front-component',
description: 'A sample front component',
component: HelloWorld,
diff --git a/packages/twenty-apps/hello-world/src/logic-functions/create-hello-world-company.ts b/packages/twenty-apps/hello-world/src/logic-functions/create-hello-world-company.ts
new file mode 100644
index 00000000000..4388f3c03cb
--- /dev/null
+++ b/packages/twenty-apps/hello-world/src/logic-functions/create-hello-world-company.ts
@@ -0,0 +1,35 @@
+import { CoreApiClient } from 'twenty-client-sdk/core';
+import { defineLogicFunction } from 'twenty-sdk';
+
+const handler = async (): Promise<{ message: string }> => {
+ const client = new CoreApiClient();
+
+ const { createCompany } = await client.mutation({
+ createCompany: {
+ __args: {
+ data: {
+ name: 'Hello World',
+ },
+ },
+ id: true,
+ name: true,
+ },
+ });
+
+ return {
+ message: `Created company "${createCompany?.name}" with id ${createCompany?.id}`,
+ };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: '94abaa53-d265-4fa4-ae52-1d7ea711ecf2',
+ name: 'create-hello-world-company',
+ description: 'Creates a company called Hello World',
+ timeoutSeconds: 5,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/create-hello-world-company',
+ httpMethod: 'POST',
+ isAuthRequired: true,
+ },
+});
diff --git a/packages/twenty-apps/hello-world/src/logic-functions/hello-world.ts b/packages/twenty-apps/hello-world/src/logic-functions/hello-world.ts
index 13add55a3c9..f1f4eea31b8 100644
--- a/packages/twenty-apps/hello-world/src/logic-functions/hello-world.ts
+++ b/packages/twenty-apps/hello-world/src/logic-functions/hello-world.ts
@@ -5,7 +5,7 @@ const handler = async (): Promise<{ message: string }> => {
};
export default defineLogicFunction({
- universalIdentifier: '2baa26eb-9aaf-4856-a4f4-30d6fd6480ee',
+ universalIdentifier: 'b05e4b30-72d4-4d7f-8091-32e037b601da',
name: 'hello-world-logic-function',
description: 'A simple logic function',
timeoutSeconds: 5,
diff --git a/packages/twenty-apps/hello-world/src/logic-functions/post-install.ts b/packages/twenty-apps/hello-world/src/logic-functions/post-install.ts
index a058c8fd5ed..daa29efbe2b 100644
--- a/packages/twenty-apps/hello-world/src/logic-functions/post-install.ts
+++ b/packages/twenty-apps/hello-world/src/logic-functions/post-install.ts
@@ -5,7 +5,7 @@ const handler = async (payload: InstallLogicFunctionPayload): Promise<void> => {
};
export default definePostInstallLogicFunction({
- universalIdentifier: '7a3f4684-51db-494d-833b-a747a3b90507',
+ universalIdentifier: '8c726dcc-1709-4eac-aa8b-f99960a9ec1b',
name: 'post-install',
description: 'Runs after installation to set up the application.',
timeoutSeconds: 300,
diff --git a/packages/twenty-apps/hello-world/src/logic-functions/pre-install.ts b/packages/twenty-apps/hello-world/src/logic-functions/pre-install.ts
index 0a9890c3083..ddae8236ac1 100644
--- a/packages/twenty-apps/hello-world/src/logic-functions/pre-install.ts
+++ b/packages/twenty-apps/hello-world/src/logic-functions/pre-install.ts
@@ -5,7 +5,7 @@ const handler = async (payload: InstallLogicFunctionPayload): Promise<void> => {
};
export default definePreInstallLogicFunction({
- universalIdentifier: '1272ffdb-8e2f-492c-ab37-66c2b97e9c23',
+ universalIdentifier: 'f8ad4b09-6a12-4b12-a52a-3472d3a78dc7',
name: 'pre-install',
description: 'Runs before installation to prepare the application.',
timeoutSeconds: 300,
diff --git a/packages/twenty-apps/hello-world/src/navigation-menu-items/example-navigation-menu-item.ts b/packages/twenty-apps/hello-world/src/navigation-menu-items/example-navigation-menu-item.ts
index 57d10fae8dc..3c28e92f5d0 100644
--- a/packages/twenty-apps/hello-world/src/navigation-menu-items/example-navigation-menu-item.ts
+++ b/packages/twenty-apps/hello-world/src/navigation-menu-items/example-navigation-menu-item.ts
@@ -3,7 +3,7 @@ import { NavigationMenuItemType } from 'twenty-shared/types';
import { EXAMPLE_VIEW_UNIVERSAL_IDENTIFIER } from 'src/views/example-view';
export default defineNavigationMenuItem({
- universalIdentifier: '10f90627-e9c2-44b7-9742-bed77e3d1b17',
+ universalIdentifier: '9327db91-afa1-41b6-bd9d-2b51a26efb4c',
name: 'example-navigation-menu-item',
icon: 'IconList',
color: 'blue',
diff --git a/packages/twenty-apps/hello-world/src/objects/example-object.ts b/packages/twenty-apps/hello-world/src/objects/example-object.ts
index 33b358ab240..1284bb2a35b 100644
--- a/packages/twenty-apps/hello-world/src/objects/example-object.ts
+++ b/packages/twenty-apps/hello-world/src/objects/example-object.ts
@@ -1,10 +1,10 @@
import { defineObject, FieldType } from 'twenty-sdk';
export const EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER =
- 'dfd43356-39b3-4b55-b4a7-279bec689928';
+ '47fd9bd9-392b-4d9f-9091-9a91b1edf519';
export const NAME_FIELD_UNIVERSAL_IDENTIFIER =
- 'd2d7f6cd-33f6-456f-bf00-17adeca926ba';
+ '2d9ff841-cf8e-44ec-ad8e-468455f7eebd';
export default defineObject({
universalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
diff --git a/packages/twenty-apps/hello-world/src/page-layouts/example-record-page-layout.ts b/packages/twenty-apps/hello-world/src/page-layouts/example-record-page-layout.ts
new file mode 100644
index 00000000000..726242c6aa2
--- /dev/null
+++ b/packages/twenty-apps/hello-world/src/page-layouts/example-record-page-layout.ts
@@ -0,0 +1,31 @@
+import { EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER } from 'src/objects/example-object';
+import { HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/front-components/hello-world';
+import { definePageLayout, PageLayoutTabLayoutMode } from 'twenty-sdk';
+
+export default definePageLayout({
+ universalIdentifier: '203aeb94-6701-46d6-9af1-be2bbcc9e134',
+ name: 'Example Record Page',
+ type: 'RECORD_PAGE',
+ objectUniversalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
+ tabs: [
+ {
+ universalIdentifier: '6ed26b60-a51d-4ad7-86dd-1c04c7f3cac5',
+ title: 'Hello World',
+ position: 50,
+ icon: 'IconWorld',
+ layoutMode: PageLayoutTabLayoutMode.CANVAS,
+ widgets: [
+ {
+ universalIdentifier: 'aa4234e0-2e5f-4c02-a96a-573449e2351d',
+ title: 'Hello World',
+ type: 'FRONT_COMPONENT',
+ configuration: {
+ configurationType: 'FRONT_COMPONENT',
+ frontComponentUniversalIdentifier:
+ HELLO_WORLD_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ },
+ },
+ ],
+ },
+ ],
+});
diff --git a/packages/twenty-apps/hello-world/src/roles/default-role.ts b/packages/twenty-apps/hello-world/src/roles/default-role.ts
index 721b630d4c7..583eea4c749 100644
--- a/packages/twenty-apps/hello-world/src/roles/default-role.ts
+++ b/packages/twenty-apps/hello-world/src/roles/default-role.ts
@@ -1,7 +1,7 @@
import { defineRole } from 'twenty-sdk';
export const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =
- '9238bc7b-d38f-4a1c-9d19-31ab7bc67a2f';
+ 'c38f4d11-760c-4d5c-89ed-e569c28b7b70';
export default defineRole({
universalIdentifier: DEFAULT_ROLE_UNIVERSAL_IDENTIFIER,
diff --git a/packages/twenty-apps/hello-world/src/skills/example-skill.ts b/packages/twenty-apps/hello-world/src/skills/example-skill.ts
index b8f942a4668..640e54a2cdd 100644
--- a/packages/twenty-apps/hello-world/src/skills/example-skill.ts
+++ b/packages/twenty-apps/hello-world/src/skills/example-skill.ts
@@ -1,7 +1,7 @@
import { defineSkill } from 'twenty-sdk';
export const EXAMPLE_SKILL_UNIVERSAL_IDENTIFIER =
- 'd0940029-9d3c-40be-903a-52d65393028f';
+ '90cf9144-4811-4653-93a2-9a6780fe6aac';
export default defineSkill({
universalIdentifier: EXAMPLE_SKILL_UNIVERSAL_IDENTIFIER,
diff --git a/packages/twenty-apps/hello-world/src/views/example-view.ts b/packages/twenty-apps/hello-world/src/views/example-view.ts
index 5326d89769b..7f18513a2c8 100644
--- a/packages/twenty-apps/hello-world/src/views/example-view.ts
+++ b/packages/twenty-apps/hello-world/src/views/example-view.ts
@@ -1,7 +1,7 @@
import { defineView, ViewKey } from 'twenty-sdk';
import { EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER, NAME_FIELD_UNIVERSAL_IDENTIFIER } from 'src/objects/example-object';
-export const EXAMPLE_VIEW_UNIVERSAL_IDENTIFIER = 'e004df40-29f3-47ba-b39d-d3a5c444367a';
+export const EXAMPLE_VIEW_UNIVERSAL_IDENTIFIER = '965e3776-b966-4be8-83f7-6cd3bce5e1bd';
export default defineView({
universalIdentifier: EXAMPLE_VIEW_UNIVERSAL_IDENTIFIER,
@@ -12,7 +12,7 @@ export default defineView({
position: 0,
fields: [
{
- universalIdentifier: '496c40c2-5766-419c-93bf-20fdad3f34bb',
+ universalIdentifier: 'f926bdb7-6af7-4683-9a09-adbca56c29f0',
fieldMetadataUniversalIdentifier: NAME_FIELD_UNIVERSAL_IDENTIFIER,
position: 0,
isVisible: true,
diff --git a/packages/twenty-apps/hello-world/yarn.lock b/packages/twenty-apps/hello-world/yarn.lock
index f7ae21d9ce2..571eb2ec244 100644
--- a/packages/twenty-apps/hello-world/yarn.lock
+++ b/packages/twenty-apps/hello-world/yarn.lock
@@ -352,9 +352,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/aix-ppc64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/aix-ppc64@npm:0.27.3"
+"@esbuild/aix-ppc64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/aix-ppc64@npm:0.27.4"
conditions: os=aix & cpu=ppc64
languageName: node
linkType: hard
@@ -366,9 +366,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/android-arm64@npm:0.27.3"
+"@esbuild/android-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/android-arm64@npm:0.27.4"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
@@ -380,9 +380,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-arm@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/android-arm@npm:0.27.3"
+"@esbuild/android-arm@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/android-arm@npm:0.27.4"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
@@ -394,9 +394,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/android-x64@npm:0.27.3"
+"@esbuild/android-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/android-x64@npm:0.27.4"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
@@ -408,9 +408,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/darwin-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/darwin-arm64@npm:0.27.3"
+"@esbuild/darwin-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/darwin-arm64@npm:0.27.4"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
@@ -422,9 +422,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/darwin-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/darwin-x64@npm:0.27.3"
+"@esbuild/darwin-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/darwin-x64@npm:0.27.4"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
@@ -436,9 +436,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/freebsd-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/freebsd-arm64@npm:0.27.3"
+"@esbuild/freebsd-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/freebsd-arm64@npm:0.27.4"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
@@ -450,9 +450,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/freebsd-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/freebsd-x64@npm:0.27.3"
+"@esbuild/freebsd-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/freebsd-x64@npm:0.27.4"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
@@ -464,9 +464,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-arm64@npm:0.27.3"
+"@esbuild/linux-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-arm64@npm:0.27.4"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
@@ -478,9 +478,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-arm@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-arm@npm:0.27.3"
+"@esbuild/linux-arm@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-arm@npm:0.27.4"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
@@ -492,9 +492,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-ia32@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-ia32@npm:0.27.3"
+"@esbuild/linux-ia32@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-ia32@npm:0.27.4"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
@@ -506,9 +506,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-loong64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-loong64@npm:0.27.3"
+"@esbuild/linux-loong64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-loong64@npm:0.27.4"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
@@ -520,9 +520,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-mips64el@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-mips64el@npm:0.27.3"
+"@esbuild/linux-mips64el@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-mips64el@npm:0.27.4"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
@@ -534,9 +534,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-ppc64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-ppc64@npm:0.27.3"
+"@esbuild/linux-ppc64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-ppc64@npm:0.27.4"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
@@ -548,9 +548,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-riscv64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-riscv64@npm:0.27.3"
+"@esbuild/linux-riscv64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-riscv64@npm:0.27.4"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
@@ -562,9 +562,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-s390x@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-s390x@npm:0.27.3"
+"@esbuild/linux-s390x@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-s390x@npm:0.27.4"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
@@ -576,9 +576,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/linux-x64@npm:0.27.3"
+"@esbuild/linux-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/linux-x64@npm:0.27.4"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
@@ -590,9 +590,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/netbsd-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/netbsd-arm64@npm:0.27.3"
+"@esbuild/netbsd-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/netbsd-arm64@npm:0.27.4"
conditions: os=netbsd & cpu=arm64
languageName: node
linkType: hard
@@ -604,9 +604,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/netbsd-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/netbsd-x64@npm:0.27.3"
+"@esbuild/netbsd-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/netbsd-x64@npm:0.27.4"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
@@ -618,9 +618,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/openbsd-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/openbsd-arm64@npm:0.27.3"
+"@esbuild/openbsd-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/openbsd-arm64@npm:0.27.4"
conditions: os=openbsd & cpu=arm64
languageName: node
linkType: hard
@@ -632,9 +632,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/openbsd-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/openbsd-x64@npm:0.27.3"
+"@esbuild/openbsd-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/openbsd-x64@npm:0.27.4"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
@@ -646,9 +646,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/openharmony-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/openharmony-arm64@npm:0.27.3"
+"@esbuild/openharmony-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/openharmony-arm64@npm:0.27.4"
conditions: os=openharmony & cpu=arm64
languageName: node
linkType: hard
@@ -660,9 +660,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/sunos-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/sunos-x64@npm:0.27.3"
+"@esbuild/sunos-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/sunos-x64@npm:0.27.4"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
@@ -674,9 +674,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-arm64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/win32-arm64@npm:0.27.3"
+"@esbuild/win32-arm64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/win32-arm64@npm:0.27.4"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
@@ -688,9 +688,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-ia32@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/win32-ia32@npm:0.27.3"
+"@esbuild/win32-ia32@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/win32-ia32@npm:0.27.4"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
@@ -702,9 +702,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-x64@npm:0.27.3":
- version: 0.27.3
- resolution: "@esbuild/win32-x64@npm:0.27.3"
+"@esbuild/win32-x64@npm:0.27.4":
+ version: 0.27.4
+ resolution: "@esbuild/win32-x64@npm:0.27.4"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
@@ -1541,11 +1541,11 @@ __metadata:
linkType: hard
"@types/node@npm:*":
- version: 25.3.5
- resolution: "@types/node@npm:25.3.5"
+ version: 25.5.0
+ resolution: "@types/node@npm:25.5.0"
dependencies:
undici-types: "npm:~7.18.0"
- checksum: 10c0/4cf0834a6f6933bf0aca6afead117ae3db3b8f02a5f7187a24f871db0fb9344e5e46573ba387bc53b7505e1e219c4c535cbe67221ced95bb5ad98573223b19d0
+ checksum: 10c0/70c508165b6758c4f88d4f91abca526c3985eee1985503d4c2bd994dbaf588e52ac57e571160f18f117d76e963570ac82bd20e743c18987e82564312b3b62119
languageName: node
linkType: hard
@@ -3408,35 +3408,35 @@ __metadata:
linkType: hard
"esbuild@npm:^0.27.0":
- version: 0.27.3
- resolution: "esbuild@npm:0.27.3"
- dependencies:
- "@esbuild/aix-ppc64": "npm:0.27.3"
- "@esbuild/android-arm": "npm:0.27.3"
- "@esbuild/android-arm64": "npm:0.27.3"
- "@esbuild/android-x64": "npm:0.27.3"
- "@esbuild/darwin-arm64": "npm:0.27.3"
- "@esbuild/darwin-x64": "npm:0.27.3"
- "@esbuild/freebsd-arm64": "npm:0.27.3"
- "@esbuild/freebsd-x64": "npm:0.27.3"
- "@esbuild/linux-arm": "npm:0.27.3"
- "@esbuild/linux-arm64": "npm:0.27.3"
- "@esbuild/linux-ia32": "npm:0.27.3"
- "@esbuild/linux-loong64": "npm:0.27.3"
- "@esbuild/linux-mips64el": "npm:0.27.3"
- "@esbuild/linux-ppc64": "npm:0.27.3"
- "@esbuild/linux-riscv64": "npm:0.27.3"
- "@esbuild/linux-s390x": "npm:0.27.3"
- "@esbuild/linux-x64": "npm:0.27.3"
- "@esbuild/netbsd-arm64": "npm:0.27.3"
- "@esbuild/netbsd-x64": "npm:0.27.3"
- "@esbuild/openbsd-arm64": "npm:0.27.3"
- "@esbuild/openbsd-x64": "npm:0.27.3"
- "@esbuild/openharmony-arm64": "npm:0.27.3"
- "@esbuild/sunos-x64": "npm:0.27.3"
- "@esbuild/win32-arm64": "npm:0.27.3"
- "@esbuild/win32-ia32": "npm:0.27.3"
- "@esbuild/win32-x64": "npm:0.27.3"
+ version: 0.27.4
+ resolution: "esbuild@npm:0.27.4"
+ dependencies:
+ "@esbuild/aix-ppc64": "npm:0.27.4"
+ "@esbuild/android-arm": "npm:0.27.4"
+ "@esbuild/android-arm64": "npm:0.27.4"
+ "@esbuild/android-x64": "npm:0.27.4"
+ "@esbuild/darwin-arm64": "npm:0.27.4"
+ "@esbuild/darwin-x64": "npm:0.27.4"
+ "@esbuild/freebsd-arm64": "npm:0.27.4"
+ "@esbuild/freebsd-x64": "npm:0.27.4"
+ "@esbuild/linux-arm": "npm:0.27.4"
+ "@esbuild/linux-arm64": "npm:0.27.4"
+ "@esbuild/linux-ia32": "npm:0.27.4"
+ "@esbuild/linux-loong64": "npm:0.27.4"
+ "@esbuild/linux-mips64el": "npm:0.27.4"
+ "@esbuild/linux-ppc64": "npm:0.27.4"
+ "@esbuild/linux-riscv64": "npm:0.27.4"
+ "@esbuild/linux-s390x": "npm:0.27.4"
+ "@esbuild/linux-x64": "npm:0.27.4"
+ "@esbuild/netbsd-arm64": "npm:0.27.4"
+ "@esbuild/netbsd-x64": "npm:0.27.4"
+ "@esbuild/openbsd-arm64": "npm:0.27.4"
+ "@esbuild/openbsd-x64": "npm:0.27.4"
+ "@esbuild/openharmony-arm64": "npm:0.27.4"
+ "@esbuild/sunos-x64": "npm:0.27.4"
+ "@esbuild/win32-arm64": "npm:0.27.4"
+ "@esbuild/win32-ia32": "npm:0.27.4"
+ "@esbuild/win32-x64": "npm:0.27.4"
dependenciesMeta:
"@esbuild/aix-ppc64":
optional: true
@@ -3492,7 +3492,7 @@ __metadata:
optional: true
bin:
esbuild: bin/esbuild
- checksum: 10c0/fdc3f87a3f08b3ef98362f37377136c389a0d180fda4b8d073b26ba930cf245521db0a368f119cc7624bc619248fff1439f5811f062d853576f8ffa3df8ee5f1
+ checksum: 10c0/2a1c2bcccda279f2afd72a7f8259860cb4483b32453d17878e1ecb4ac416b9e7c1001e7aa0a25ba4c29c1e250a3ceaae5d8bb72a119815bc8db4e9b5f5321490
languageName: node
linkType: hard
@@ -3906,6 +3906,7 @@ __metadata:
"@types/react": "npm:^18.2.0"
oxlint: "npm:^0.16.0"
react: "npm:^18.2.0"
+ twenty-client-sdk: "portal:../../twenty-client-sdk"
twenty-sdk: "portal:../../twenty-sdk"
typescript: "npm:^5.9.3"
vite-tsconfig-paths: "npm:^4.2.1"
@@ -4952,9 +4953,9 @@ __metadata:
linkType: hard
"preact@npm:^10.28.3":
- version: 10.28.4
- resolution: "preact@npm:10.28.4"
- checksum: 10c0/712384e92d6c676c8f4c230eab81329a66acfecf700390aebfe5fc46168fa3686345d47f2292068dcc0a6d86425a3d9a3d743730e356e867a8402442afb989db
+ version: 10.29.0
+ resolution: "preact@npm:10.29.0"
+ checksum: 10c0/d111381e5b48335e3a797a03adb83521cf5e9bdf880570fb2eff4fe9da9c82e6dedcbdf54538b1ed8f60bf813a0df0f4891b03dc32140ad93f8f720a8812dd5c
languageName: node
linkType: hard
@@ -5750,6 +5751,17 @@ __metadata:
languageName: node
linkType: hard
+"twenty-client-sdk@portal:../../twenty-client-sdk::locator=hello-world%40workspace%3A.":
+ version: 0.0.0-use.local
+ resolution: "twenty-client-sdk@portal:../../twenty-client-sdk::locator=hello-world%40workspace%3A."
+ dependencies:
+ "@genql/cli": "npm:^3.0.3"
+ "@genql/runtime": "npm:^2.10.0"
+ esbuild: "npm:^0.25.0"
+ graphql: "npm:^16.8.1"
+ languageName: node
+ linkType: soft
+
"twenty-sdk@portal:../../twenty-sdk::locator=hello-world%40workspace%3A.":
version: 0.0.0-use.local
resolution: "twenty-sdk@portal:../../twenty-sdk::locator=hello-world%40workspace%3A."
diff --git a/packages/twenty-client-sdk/.oxlintrc.json b/packages/twenty-client-sdk/.oxlintrc.json
new file mode 100644
index 00000000000..88218016ce4
--- /dev/null
+++ b/packages/twenty-client-sdk/.oxlintrc.json
@@ -0,0 +1,47 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["typescript", "import", "unicorn"],
+ "categories": {
+ "correctness": "off"
+ },
+ "ignorePatterns": ["node_modules", "dist", "generated"],
+ "rules": {
+ "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
+ "no-console": "off",
+ "no-control-regex": "off",
+ "no-debugger": "error",
+ "no-duplicate-imports": "error",
+ "no-undef": "off",
+ "no-unused-vars": "off",
+ "no-redeclare": "off",
+ "import/no-duplicates": "error",
+ "typescript/no-redeclare": "error",
+ "typescript/ban-ts-comment": "error",
+ "typescript/consistent-type-imports": [
+ "error",
+ {
+ "prefer": "type-imports",
+ "fixStyle": "inline-type-imports"
+ }
+ ],
+ "typescript/explicit-function-return-type": "off",
+ "typescript/explicit-module-boundary-types": "off",
+ "typescript/no-empty-object-type": [
+ "error",
+ {
+ "allowInterfaces": "with-single-extends"
+ }
+ ],
+ "typescript/no-empty-function": "off",
+ "typescript/no-explicit-any": "off",
+ "typescript/no-unused-vars": [
+ "warn",
+ {
+ "vars": "all",
+ "varsIgnorePattern": "^_",
+ "args": "after-used",
+ "argsIgnorePattern": "^_"
+ }
+ ]
+ }
+}
diff --git a/packages/twenty-client-sdk/.prettierignore b/packages/twenty-client-sdk/.prettierignore
new file mode 100644
index 00000000000..562ebe0503a
--- /dev/null
+++ b/packages/twenty-client-sdk/.prettierignore
@@ -0,0 +1,2 @@
+dist
+generated
diff --git a/packages/twenty-client-sdk/package.json b/packages/twenty-client-sdk/package.json
new file mode 100644
index 00000000000..4bad290a9ab
--- /dev/null
+++ b/packages/twenty-client-sdk/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "twenty-client-sdk",
+ "version": "0.7.0-canary.0",
+ "sideEffects": false,
+ "license": "AGPL-3.0",
+ "scripts": {
+ "build": "npx rimraf dist && npx vite build && tsgo -p tsconfig.lib.json --declaration --emitDeclarationOnly --noEmit false --outDir dist --rootDir src && npx tsc-alias -p tsconfig.lib.json --outDir dist"
+ },
+ "exports": {
+ "./core": {
+ "types": "./dist/core/index.d.ts",
+ "import": "./dist/core.mjs",
+ "require": "./dist/core.cjs"
+ },
+ "./metadata": {
+ "types": "./dist/metadata/index.d.ts",
+ "import": "./dist/metadata.mjs",
+ "require": "./dist/metadata.cjs"
+ },
+ "./generate": {
+ "types": "./dist/generate/index.d.ts",
+ "import": "./dist/generate.mjs",
+ "require": "./dist/generate.cjs"
+ }
+ },
+ "typesVersions": {
+ "*": {
+ "core": [
+ "dist/core/index.d.ts"
+ ],
+ "metadata": [
+ "dist/metadata/index.d.ts"
+ ],
+ "generate": [
+ "dist/generate/index.d.ts"
+ ]
+ }
+ },
+ "files": [
+ "dist"
+ ],
+ "dependencies": {
+ "@genql/cli": "^3.0.3",
+ "@genql/runtime": "^2.10.0",
+ "esbuild": "^0.25.0",
+ "graphql": "^16.8.1"
+ },
+ "devDependencies": {
+ "twenty-shared": "workspace:*",
+ "typescript": "^5.9.2",
+ "vite": "^7.0.0",
+ "vite-plugin-dts": "^4.5.4",
+ "vite-tsconfig-paths": "^4.2.1",
+ "vitest": "^4.0.18"
+ },
+ "engines": {
+ "node": "^24.5.0",
+ "yarn": "^4.0.2"
+ }
+}
diff --git a/packages/twenty-client-sdk/project.json b/packages/twenty-client-sdk/project.json
new file mode 100644
index 00000000000..93498eae204
--- /dev/null
+++ b/packages/twenty-client-sdk/project.json
@@ -0,0 +1,44 @@
+{
+ "name": "twenty-client-sdk",
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
+ "sourceRoot": "packages/twenty-client-sdk/src",
+ "projectType": "library",
+ "tags": ["scope:sdk"],
+ "targets": {
+ "build": {
+ "executor": "nx:run-commands",
+ "cache": true,
+ "inputs": ["production", "^production"],
+ "dependsOn": ["^build"],
+ "outputs": ["{projectRoot}/dist"],
+ "options": {
+ "cwd": "{projectRoot}",
+ "commands": [
+ "npx rimraf dist && npx vite build",
+ "tsgo -p tsconfig.lib.json --declaration --emitDeclarationOnly --noEmit false --outDir dist --rootDir src && npx tsc-alias -p tsconfig.lib.json --outDir dist"
+ ],
+ "parallel": false
+ }
+ },
+ "generate-metadata-client": {
+ "executor": "nx:run-commands",
+ "cache": false,
+ "dependsOn": ["^build"],
+ "outputs": ["{projectRoot}/src/metadata/generated"],
+ "options": {
+ "cwd": "packages/twenty-client-sdk",
+ "command": "tsx scripts/generate-metadata-client.ts"
+ }
+ },
+ "test": {
+ "executor": "@nx/vitest:test",
+ "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
+ "options": {
+ "config": "{projectRoot}/vitest.config.ts"
+ }
+ },
+ "set-local-version": {},
+ "typecheck": {},
+ "lint": {}
+ }
+}
diff --git a/packages/twenty-client-sdk/scripts/generate-metadata-client.ts b/packages/twenty-client-sdk/scripts/generate-metadata-client.ts
new file mode 100644
index 00000000000..dd32c773cca
--- /dev/null
+++ b/packages/twenty-client-sdk/scripts/generate-metadata-client.ts
@@ -0,0 +1,65 @@
+import { readFile } from 'node:fs/promises';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+import { getIntrospectionQuery, buildClientSchema, printSchema } from 'graphql';
+
+import { generateMetadataClient } from '../src/generate/generate-metadata-client';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+const TEMPLATE_PATH = path.resolve(
+ __dirname,
+ '..',
+ 'src',
+ 'generate',
+ 'twenty-client-template.ts',
+);
+
+const introspectSchema = async (url: string): Promise<string> => {
+ const response = await fetch(url, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ query: getIntrospectionQuery() }),
+ });
+
+ const json = await response.json();
+
+ if (json.errors) {
+ throw new Error(
+ `GraphQL introspection errors: ${JSON.stringify(json.errors)}`,
+ );
+ }
+
+ return printSchema(buildClientSchema(json.data));
+};
+
+const main = async () => {
+ const serverUrl = process.env.TWENTY_API_URL ?? 'http://localhost:3000';
+
+ const schema = await introspectSchema(`${serverUrl}/metadata`);
+
+ const clientWrapperTemplateSource = await readFile(TEMPLATE_PATH, 'utf-8');
+
+ const outputPath = path.resolve(
+ __dirname,
+ '..',
+ 'src',
+ 'metadata',
+ 'generated',
+ );
+
+ await generateMetadataClient({
+ schema,
+ outputPath,
+ clientWrapperTemplateSource,
+ });
+
+ console.log(`Metadata client generated at ${outputPath}`);
+};
+
+main().catch((error) => {
+ console.error('Failed to generate metadata client:', error);
+ process.exit(1);
+});
diff --git a/packages/twenty-client-sdk/src/core/generated/index.ts b/packages/twenty-client-sdk/src/core/generated/index.ts
new file mode 100644
index 00000000000..c93d2f984ab
--- /dev/null
+++ b/packages/twenty-client-sdk/src/core/generated/index.ts
@@ -0,0 +1,10 @@
+// Stub — replaced at runtime by the generated client when the app
+// is installed on a Twenty instance or during `twenty app:dev`.
+export class CoreApiClient {
+ constructor() {
+ throw new Error(
+ 'CoreApiClient was not generated. ' +
+ 'Install this app on a Twenty instance or run `twenty app:dev`.',
+ );
+ }
+}
diff --git a/packages/twenty-sdk/src/clients/generated/core/schema.ts b/packages/twenty-client-sdk/src/core/generated/schema.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/core/schema.ts
rename to packages/twenty-client-sdk/src/core/generated/schema.ts
diff --git a/packages/twenty-client-sdk/src/core/index.ts b/packages/twenty-client-sdk/src/core/index.ts
new file mode 100644
index 00000000000..ed87e42b198
--- /dev/null
+++ b/packages/twenty-client-sdk/src/core/index.ts
@@ -0,0 +1,2 @@
+export { CoreApiClient } from './generated/index';
+export * as CoreSchema from './generated/schema';
diff --git a/packages/twenty-sdk/src/cli/utilities/client/__tests__/clientServiceGeneratedClientAuth.test.ts b/packages/twenty-client-sdk/src/generate/__tests__/client-wrapper-auth.test.ts
similarity index 88%
rename from packages/twenty-sdk/src/cli/utilities/client/__tests__/clientServiceGeneratedClientAuth.test.ts
rename to packages/twenty-client-sdk/src/generate/__tests__/client-wrapper-auth.test.ts
index 9bf73875e0c..d85ce69b2c0 100644
--- a/packages/twenty-sdk/src/cli/utilities/client/__tests__/clientServiceGeneratedClientAuth.test.ts
+++ b/packages/twenty-client-sdk/src/generate/__tests__/client-wrapper-auth.test.ts
@@ -1,8 +1,10 @@
-import { transform } from 'esbuild';
-import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises';
+import { readFileSync } from 'node:fs';
+import { mkdtemp, rm, writeFile } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { pathToFileURL } from 'node:url';
+
+import { transform } from 'esbuild';
import {
afterAll,
beforeAll,
@@ -13,17 +15,12 @@ import {
vi,
} from 'vitest';
-vi.mock('@/cli/constants/clients-dir', () => ({
- CLIENTS_GENERATED_DIR: 'src/clients/generated',
-}));
-
-vi.mock('twenty-shared/application', () => ({
- DEFAULT_APP_ACCESS_TOKEN_NAME: 'TWENTY_APP_ACCESS_TOKEN',
- DEFAULT_API_KEY_NAME: 'TWENTY_API_KEY',
- DEFAULT_API_URL_NAME: 'TWENTY_API_URL',
-}));
+import { buildClientWrapperSource } from '../client-wrapper';
-import { ClientService } from '@/cli/utilities/client/client-service';
+const twentyClientTemplateSource = readFileSync(
+ join(__dirname, '..', 'twenty-client-template.ts'),
+ 'utf-8',
+);
type TwentyClassType = new (options?: {
url?: string;
@@ -110,59 +107,33 @@ const getAuthorizationHeaderValue = (requestInit: RequestInit | undefined) => {
return new Headers(requestInit?.headers).get('Authorization');
};
-describe('ClientService generated Twenty auth behavior', () => {
- let temporaryGeneratedClientDirectory: string;
+describe('Generated client wrapper auth behavior', () => {
+ let temporaryDir: string;
let TwentyClass: TwentyClassType;
beforeAll(async () => {
- temporaryGeneratedClientDirectory = await mkdtemp(
- join(tmpdir(), 'twenty-generated-client-'),
- );
-
- const temporaryGeneratedIndexTsPath = join(
- temporaryGeneratedClientDirectory,
- 'index.ts',
- );
+ temporaryDir = await mkdtemp(join(tmpdir(), 'twenty-generated-client-'));
- await writeFile(temporaryGeneratedIndexTsPath, stubGeneratedIndexSource);
-
- const clientService = new ClientService();
- await (
- clientService as unknown as {
- injectClientWrapper: (
- output: string,
- options: {
- apiClientName: string;
- defaultUrl: string;
- includeUploadFile: boolean;
- },
- ) => Promise<void>;
- }
- ).injectClientWrapper(temporaryGeneratedClientDirectory, {
+ const wrapperSource = buildClientWrapperSource(twentyClientTemplateSource, {
apiClientName: 'MetadataApiClient',
defaultUrl: '`${process.env.TWENTY_API_URL}/metadata`',
includeUploadFile: true,
});
- const generatedIndexContent = await readFile(
- temporaryGeneratedIndexTsPath,
- 'utf-8',
- );
+ const fullSource = stubGeneratedIndexSource + wrapperSource;
- const transpiledModule = await transform(generatedIndexContent, {
+ const transpiledModule = await transform(fullSource, {
loader: 'ts',
format: 'esm',
target: 'es2022',
});
- const temporaryGeneratedIndexMjsPath = join(
- temporaryGeneratedClientDirectory,
- 'index.mjs',
- );
- await writeFile(temporaryGeneratedIndexMjsPath, transpiledModule.code);
+ const outputPath = join(temporaryDir, 'index.mjs');
+
+ await writeFile(outputPath, transpiledModule.code);
const generatedModule = await import(
- `${pathToFileURL(temporaryGeneratedIndexMjsPath).href}?t=${Date.now()}`
+ `${pathToFileURL(outputPath).href}?t=${Date.now()}`
);
TwentyClass = generatedModule.MetadataApiClient as TwentyClassType;
@@ -176,11 +147,8 @@ describe('ClientService generated Twenty auth behavior', () => {
});
afterAll(async () => {
- if (temporaryGeneratedClientDirectory) {
- await rm(temporaryGeneratedClientDirectory, {
- recursive: true,
- force: true,
- });
+ if (temporaryDir) {
+ await rm(temporaryDir, { recursive: true, force: true });
}
});
@@ -303,6 +271,7 @@ describe('ClientService generated Twenty auth behavior', () => {
.fn<() => Promise<string>>()
.mockImplementation(async () => {
await Promise.resolve();
+
return 'fresh-token';
});
diff --git a/packages/twenty-client-sdk/src/generate/client-wrapper.ts b/packages/twenty-client-sdk/src/generate/client-wrapper.ts
new file mode 100644
index 00000000000..232f8587cb4
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/client-wrapper.ts
@@ -0,0 +1,51 @@
+type ClientWrapperOptions = {
+ apiClientName: string;
+ defaultUrl: string;
+ includeUploadFile: boolean;
+};
+
+const STRIPPED_TYPES_START = '// __STRIPPED_DURING_INJECTION_START__';
+const STRIPPED_TYPES_END = '// __STRIPPED_DURING_INJECTION_END__';
+const UPLOAD_FILE_START = '// __UPLOAD_FILE_START__';
+const UPLOAD_FILE_END = '// __UPLOAD_FILE_END__';
+
+const escapeRegExp = (value: string): string =>
+ value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+
+export const buildClientWrapperSource = (
+ templateSource: string,
+ options: ClientWrapperOptions,
+): string => {
+ let source = templateSource;
+
+ source = source.replace(
+ new RegExp(
+ `${escapeRegExp(STRIPPED_TYPES_START)}[\\s\\S]*?${escapeRegExp(STRIPPED_TYPES_END)}\\n?`,
+ ),
+ '',
+ );
+
+ source = source.replace("'__TWENTY_DEFAULT_URL__'", options.defaultUrl);
+
+ source = source.replace(/TwentyGeneratedClient/g, options.apiClientName);
+
+ if (!options.includeUploadFile) {
+ source = source.replace(
+ new RegExp(
+ `\\s*${escapeRegExp(UPLOAD_FILE_START)}[\\s\\S]*?${escapeRegExp(UPLOAD_FILE_END)}\\n?`,
+ ),
+ '\n',
+ );
+ } else {
+ source = source.replace(
+ new RegExp(`\\s*${escapeRegExp(UPLOAD_FILE_START)}\\n`),
+ '\n',
+ );
+ source = source.replace(
+ new RegExp(`\\s*${escapeRegExp(UPLOAD_FILE_END)}\\n`),
+ '\n',
+ );
+ }
+
+ return `\n// ${options.apiClientName} (auto-injected by twenty-client-sdk)\n${source}`;
+};
diff --git a/packages/twenty-client-sdk/src/generate/fs-utils.ts b/packages/twenty-client-sdk/src/generate/fs-utils.ts
new file mode 100644
index 00000000000..150c5c10ec1
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/fs-utils.ts
@@ -0,0 +1,41 @@
+import { cp, mkdir, readdir, rename as fsRename, rm } from 'node:fs/promises';
+import { join } from 'node:path';
+
+export const ensureDir = (dirPath: string) =>
+ mkdir(dirPath, { recursive: true });
+
+export const emptyDir = async (dirPath: string): Promise<void> => {
+ let entries: string[];
+
+ try {
+ entries = await readdir(dirPath);
+ } catch (error: unknown) {
+ if (error instanceof Error && 'code' in error && error.code === 'ENOENT') {
+ await mkdir(dirPath, { recursive: true });
+ return;
+ }
+ throw error;
+ }
+
+ await Promise.all(
+ entries.map((entry) =>
+ rm(join(dirPath, entry), { recursive: true, force: true }),
+ ),
+ );
+};
+
+export const move = async (src: string, dest: string): Promise<void> => {
+ try {
+ await fsRename(src, dest);
+ } catch (error: unknown) {
+ if (error instanceof Error && 'code' in error && error.code === 'EXDEV') {
+ await cp(src, dest, { recursive: true });
+ await rm(src, { recursive: true, force: true });
+ } else {
+ throw error;
+ }
+ }
+};
+
+export const remove = (filePath: string) =>
+ rm(filePath, { recursive: true, force: true });
diff --git a/packages/twenty-client-sdk/src/generate/generate-core-client.ts b/packages/twenty-client-sdk/src/generate/generate-core-client.ts
new file mode 100644
index 00000000000..c2d46e2c24c
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/generate-core-client.ts
@@ -0,0 +1,122 @@
+import { appendFile, copyFile, writeFile } from 'node:fs/promises';
+import { join } from 'node:path';
+
+import { generate } from '@genql/cli';
+import { build } from 'esbuild';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
+
+import { buildClientWrapperSource } from './client-wrapper';
+import { emptyDir, ensureDir, move, remove } from './fs-utils';
+import twentyClientTemplateSource from './twenty-client-template.ts?raw';
+
+const COMMON_SCALAR_TYPES = {
+ DateTime: 'string',
+ JSON: 'Record<string, unknown>',
+ UUID: 'string',
+};
+
+export const GENERATED_CORE_DIR = 'core/generated';
+
+// Generates the core API client from a GraphQL schema string.
+// Produces both TypeScript source and compiled ESM/CJS bundles.
+export const generateCoreClientFromSchema = async ({
+ schema,
+ outputPath,
+ clientWrapperTemplateSource,
+}: {
+ schema: string;
+ outputPath: string;
+ clientWrapperTemplateSource?: string;
+}): Promise<void> => {
+ const templateSource =
+ clientWrapperTemplateSource ?? twentyClientTemplateSource;
+ const tempPath = `${outputPath}.tmp`;
+
+ await ensureDir(tempPath);
+ await emptyDir(tempPath);
+
+ try {
+ await generate({
+ schema,
+ output: tempPath,
+ scalarTypes: COMMON_SCALAR_TYPES,
+ });
+
+ const clientContent = buildClientWrapperSource(templateSource, {
+ apiClientName: 'CoreApiClient',
+ defaultUrl: `\`\${process.env.${DEFAULT_API_URL_NAME}}/graphql\``,
+ includeUploadFile: true,
+ });
+
+ await appendFile(join(tempPath, 'index.ts'), clientContent);
+
+ await remove(outputPath);
+ await move(tempPath, outputPath);
+
+ await compileGeneratedClient(outputPath);
+ } catch (error) {
+ await remove(tempPath);
+ throw error;
+ }
+};
+
+// Generates the core client and replaces the pre-built stub inside
+// an installed twenty-client-sdk package (dist/core.mjs and dist/core.cjs).
+// Generated source files are kept in dist/generated-core/ for consumers
+// that need the raw .ts files (e.g. the app:dev upload step).
+export const replaceCoreClient = async ({
+ packageRoot,
+ schema,
+}: {
+ packageRoot: string;
+ schema: string;
+}): Promise<void> => {
+ const generatedPath = join(packageRoot, 'dist', GENERATED_CORE_DIR);
+
+ await generateCoreClientFromSchema({ schema, outputPath: generatedPath });
+
+ await copyFile(
+ join(generatedPath, 'index.mjs'),
+ join(packageRoot, 'dist', 'core.mjs'),
+ );
+ await copyFile(
+ join(generatedPath, 'index.cjs'),
+ join(packageRoot, 'dist', 'core.cjs'),
+ );
+};
+
+const compileGeneratedClient = async (generatedDir: string): Promise<void> => {
+ const entryPoint = join(generatedDir, 'index.ts');
+ const outfile = join(generatedDir, 'index.mjs');
+
+ await build({
+ entryPoints: [entryPoint],
+ outfile,
+ bundle: true,
+ format: 'esm',
+ platform: 'node',
+ target: 'node18',
+ sourcemap: false,
+ minify: false,
+ });
+
+ await build({
+ entryPoints: [entryPoint],
+ outfile: join(generatedDir, 'index.cjs'),
+ bundle: true,
+ format: 'cjs',
+ platform: 'node',
+ target: 'node18',
+ sourcemap: false,
+ minify: false,
+ });
+
+ await writeFile(
+ join(generatedDir, 'package.json'),
+ JSON.stringify(
+ { type: 'module', main: 'index.mjs', module: 'index.mjs' },
+ null,
+ 2,
+ ),
+ );
+};
diff --git a/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts b/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts
new file mode 100644
index 00000000000..9e3d0de3f82
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts
@@ -0,0 +1,48 @@
+import { appendFile } from 'node:fs/promises';
+import { join } from 'node:path';
+
+import { generate } from '@genql/cli';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
+
+import { buildClientWrapperSource } from './client-wrapper';
+import { emptyDir, ensureDir } from './fs-utils';
+import twentyClientTemplateSource from './twenty-client-template.ts?raw';
+
+const COMMON_SCALAR_TYPES = {
+ DateTime: 'string',
+ JSON: 'Record<string, unknown>',
+ UUID: 'string',
+};
+
+export const generateMetadataClient = async ({
+ schema,
+ outputPath,
+ clientWrapperTemplateSource,
+}: {
+ schema: string;
+ outputPath: string;
+ clientWrapperTemplateSource?: string;
+}): Promise<void> => {
+ const templateSource =
+ clientWrapperTemplateSource ?? twentyClientTemplateSource;
+
+ await ensureDir(outputPath);
+ await emptyDir(outputPath);
+
+ await generate({
+ schema,
+ output: outputPath,
+ scalarTypes: {
+ ...COMMON_SCALAR_TYPES,
+ Upload: 'File',
+ },
+ });
+
+ const clientContent = buildClientWrapperSource(templateSource, {
+ apiClientName: 'MetadataApiClient',
+ defaultUrl: `\`\${process.env.${DEFAULT_API_URL_NAME}}/metadata\``,
+ includeUploadFile: true,
+ });
+
+ await appendFile(join(outputPath, 'index.ts'), clientContent);
+};
diff --git a/packages/twenty-client-sdk/src/generate/index.ts b/packages/twenty-client-sdk/src/generate/index.ts
new file mode 100644
index 00000000000..86490f44199
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/index.ts
@@ -0,0 +1,6 @@
+export {
+ GENERATED_CORE_DIR,
+ generateCoreClientFromSchema,
+ replaceCoreClient,
+} from './generate-core-client';
+export { generateMetadataClient } from './generate-metadata-client';
diff --git a/packages/twenty-client-sdk/src/generate/raw-imports.d.ts b/packages/twenty-client-sdk/src/generate/raw-imports.d.ts
new file mode 100644
index 00000000000..e13e7701299
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/raw-imports.d.ts
@@ -0,0 +1,4 @@
+declare module '*.ts?raw' {
+ const content: string;
+ export default content;
+}
diff --git a/packages/twenty-client-sdk/src/generate/twenty-client-template.ts b/packages/twenty-client-sdk/src/generate/twenty-client-template.ts
new file mode 100644
index 00000000000..936157d9775
--- /dev/null
+++ b/packages/twenty-client-sdk/src/generate/twenty-client-template.ts
@@ -0,0 +1,434 @@
+// Ambient type stubs for the genql-generated code this template gets
+// injected into. They enable full typecheck/lint on this file.
+// __STRIPPED_DURING_INJECTION_START__
+type QueryGenqlSelection = Record<string, unknown>;
+type MutationGenqlSelection = Record<string, unknown>;
+type GraphqlOperation = Record<string, unknown>;
+
+type ClientOptions = {
+ url?: string;
+ headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
+ fetcher?: (
+ operation: GraphqlOperation | GraphqlOperation[],
+ ) => Promise<unknown>;
+ fetch?: typeof globalThis.fetch;
+ batch?: unknown;
+};
+
+type Client = {
+ query: (
+ request: QueryGenqlSelection & { __name?: string },
+ ) => Promise<unknown>;
+ mutation: (
+ request: MutationGenqlSelection & { __name?: string },
+ ) => Promise<unknown>;
+};
+
+declare function createClient(options: ClientOptions): Client;
+
+declare class GenqlError extends Error {
+ constructor(errors: unknown, data: unknown);
+}
+// __STRIPPED_DURING_INJECTION_END__
+
+const APP_ACCESS_TOKEN_ENV_KEY = 'TWENTY_APP_ACCESS_TOKEN';
+const API_KEY_ENV_KEY = 'TWENTY_API_KEY';
+
+type TwentyGeneratedClientOptions = ClientOptions;
+
+type ProcessEnvironment = Record<string, string | undefined>;
+
+type GraphqlErrorPayloadEntry = {
+ message?: string;
+ extensions?: { code?: string };
+};
+
+type GraphqlResponsePayload = {
+ data?: Record<string, unknown>;
+ errors?: GraphqlErrorPayloadEntry[];
+};
+
+type GraphqlResponse = {
+ status: number;
+ statusText: string;
+ payload: GraphqlResponsePayload | null;
+ rawBody: string;
+};
+
+const getProcessEnvironment = (): ProcessEnvironment => {
+ const processObject = (
+ globalThis as { process?: { env?: ProcessEnvironment } }
+ ).process;
+
+ return processObject?.env ?? {};
+};
+
+const getTokenFromAuthorizationHeader = (
+ authorizationHeader: string | undefined,
+): string | null => {
+ if (typeof authorizationHeader !== 'string') {
+ return null;
+ }
+
+ const trimmedAuthorizationHeader = authorizationHeader.trim();
+
+ if (trimmedAuthorizationHeader.length === 0) {
+ return null;
+ }
+
+ if (trimmedAuthorizationHeader === 'Bearer') {
+ return null;
+ }
+
+ if (trimmedAuthorizationHeader.startsWith('Bearer ')) {
+ return trimmedAuthorizationHeader.slice('Bearer '.length).trim();
+ }
+
+ return trimmedAuthorizationHeader;
+};
+
+const getTokenFromHeaders = (
+ headers: HeadersInit | undefined,
+): string | null => {
+ if (!headers) {
+ return null;
+ }
+
+ if (headers instanceof Headers) {
+ return getTokenFromAuthorizationHeader(
+ headers.get('Authorization') ?? undefined,
+ );
+ }
+
+ if (Array.isArray(headers)) {
+ const matchedAuthorizationHeader = headers.find(
+ ([headerName]) => headerName.toLowerCase() === 'authorization',
+ );
+
+ return getTokenFromAuthorizationHeader(matchedAuthorizationHeader?.[1]);
+ }
+
+ const headersRecord = headers as Record<string, string | undefined>;
+
+ return getTokenFromAuthorizationHeader(
+ headersRecord.Authorization ?? headersRecord.authorization,
+ );
+};
+
+const hasAuthenticationErrorInGraphqlPayload = (
+ payload: GraphqlResponsePayload | null,
+): boolean => {
+ if (!payload?.errors) {
+ return false;
+ }
+
+ return payload.errors.some((graphqlError) => {
+ return (
+ graphqlError.extensions?.code === 'UNAUTHENTICATED' ||
+ graphqlError.message?.toLowerCase() === 'unauthorized'
+ );
+ });
+};
+
+const defaultOptions: TwentyGeneratedClientOptions = {
+ url: '__TWENTY_DEFAULT_URL__',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+};
+
+export class TwentyGeneratedClient {
+ private client: Client;
+ private url: string;
+ private requestOptions: RequestInit;
+ private headers: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
+ private fetchImplementation: typeof globalThis.fetch | null;
+ private authorizationToken: string | null;
+ private refreshAccessTokenPromise: Promise<string | null> | null = null;
+
+ constructor(options?: TwentyGeneratedClientOptions) {
+ const merged: TwentyGeneratedClientOptions = {
+ ...defaultOptions,
+ ...options,
+ };
+
+ const {
+ url,
+ headers,
+ fetch: customFetchImplementation,
+ fetcher: _fetcher,
+ batch: _batch,
+ ...requestOptions
+ } = merged;
+
+ this.url = url ?? '';
+ this.requestOptions = requestOptions;
+ this.headers = headers ?? {};
+ this.fetchImplementation =
+ customFetchImplementation ?? globalThis.fetch ?? null;
+
+ const processEnvironment = getProcessEnvironment();
+ const tokenFromHeaders = getTokenFromHeaders(
+ typeof headers === 'function' ? undefined : headers,
+ );
+
+ // Priority: explicit header > app access token > api key (legacy).
+ this.authorizationToken =
+ tokenFromHeaders ??
+ processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] ??
+ processEnvironment[API_KEY_ENV_KEY] ??
+ null;
+
+ this.client = createClient({
+ ...merged,
+ headers: undefined,
+ fetcher: async (operation) =>
+ this.executeGraphqlRequestWithOptionalRefresh({
+ operation,
+ }),
+ });
+ }
+
+ query<R extends QueryGenqlSelection>(request: R & { __name?: string }) {
+ return this.client.query(request);
+ }
+
+ mutation<R extends MutationGenqlSelection>(request: R & { __name?: string }) {
+ return this.client.mutation(request);
+ }
+
+ // __UPLOAD_FILE_START__
+ async uploadFile(
+ fileBuffer: Buffer,
+ filename: string,
+ contentType: string = 'application/octet-stream',
+ fieldMetadataUniversalIdentifier: string,
+ ): Promise<{
+ id: string;
+ path: string;
+ size: number;
+ createdAt: string;
+ url: string;
+ }> {
+ const form = new FormData();
+
+ form.append(
+ 'operations',
+ JSON.stringify({
+ query: `mutation UploadFilesFieldFileByUniversalIdentifier($file: Upload!, $fieldMetadataUniversalIdentifier: String!) {
+ uploadFilesFieldFileByUniversalIdentifier(file: $file, fieldMetadataUniversalIdentifier: $fieldMetadataUniversalIdentifier) { id path size createdAt url }
+ }`,
+ variables: {
+ file: null,
+ fieldMetadataUniversalIdentifier,
+ },
+ }),
+ );
+ form.append('map', JSON.stringify({ '0': ['variables.file'] }));
+ form.append(
+ '0',
+ new Blob([fileBuffer as BlobPart], { type: contentType }),
+ filename,
+ );
+
+ const result = await this.executeGraphqlRequestWithOptionalRefresh({
+ operation: form,
+ headers: {},
+ requestInit: {
+ method: 'POST',
+ },
+ });
+
+ if (result.errors) {
+ throw new GenqlError(result.errors, result.data);
+ }
+
+ const data = result.data as Record<string, unknown>;
+
+ return data.uploadFilesFieldFileByUniversalIdentifier as {
+ id: string;
+ path: string;
+ size: number;
+ createdAt: string;
+ url: string;
+ };
+ }
+ // __UPLOAD_FILE_END__
+
+ private async executeGraphqlRequestWithOptionalRefresh({
+ operation,
+ headers,
+ requestInit,
+ }: {
+ operation: GraphqlOperation | GraphqlOperation[] | FormData;
+ headers?: HeadersInit;
+ requestInit?: RequestInit;
+ }) {
+ const firstResponse = await this.executeGraphqlRequest({
+ operation,
+ headers,
+ requestInit,
+ token: this.authorizationToken,
+ });
+
+ if (this.shouldRefreshToken(firstResponse)) {
+ const refreshedAccessToken = await this.requestRefreshedAccessToken();
+
+ if (refreshedAccessToken) {
+ const retryResponse = await this.executeGraphqlRequest({
+ operation,
+ headers,
+ requestInit,
+ token: refreshedAccessToken,
+ });
+
+ return this.assertResponseIsSuccessful(retryResponse);
+ }
+ }
+
+ return this.assertResponseIsSuccessful(firstResponse);
+ }
+
+ private async executeGraphqlRequest({
+ operation,
+ headers,
+ requestInit,
+ token,
+ }: {
+ operation: GraphqlOperation | GraphqlOperation[] | FormData;
+ headers?: HeadersInit;
+ requestInit?: RequestInit;
+ token: string | null;
+ }): Promise<GraphqlResponse> {
+ if (!this.fetchImplementation) {
+ throw new Error(
+ 'Global `fetch` function is not available, ' +
+ 'pass a fetch implementation to the Twenty client',
+ );
+ }
+
+ const resolvedHeaders = await this.resolveHeaders();
+ const requestHeaders = new Headers(resolvedHeaders);
+
+ if (headers) {
+ new Headers(headers).forEach((value, key) =>
+ requestHeaders.set(key, value),
+ );
+ }
+
+ if (operation instanceof FormData) {
+ requestHeaders.delete('Content-Type');
+ } else {
+ requestHeaders.set('Content-Type', 'application/json');
+ }
+
+ if (token) {
+ requestHeaders.set('Authorization', `Bearer ${token}`);
+ } else {
+ requestHeaders.delete('Authorization');
+ }
+
+ const response = await this.fetchImplementation.call(globalThis, this.url, {
+ ...this.requestOptions,
+ ...requestInit,
+ method: requestInit?.method ?? 'POST',
+ headers: requestHeaders,
+ body:
+ operation instanceof FormData ? operation : JSON.stringify(operation),
+ });
+
+ const rawBody = await response.text();
+ let payload: GraphqlResponsePayload | null = null;
+
+ if (rawBody.trim().length > 0) {
+ try {
+ payload = JSON.parse(rawBody) as GraphqlResponsePayload;
+ } catch {
+ payload = null;
+ }
+ }
+
+ return {
+ status: response.status,
+ statusText: response.statusText,
+ payload,
+ rawBody,
+ };
+ }
+
+ private async resolveHeaders(): Promise<HeadersInit> {
+ if (typeof this.headers === 'function') {
+ return (await this.headers()) ?? {};
+ }
+
+ return this.headers ?? {};
+ }
+
+ private shouldRefreshToken(response: GraphqlResponse): boolean {
+ if (response.status === 401) {
+ return true;
+ }
+
+ return hasAuthenticationErrorInGraphqlPayload(response.payload);
+ }
+
+ private assertResponseIsSuccessful(response: GraphqlResponse) {
+ if (response.status < 200 || response.status >= 300) {
+ throw new Error(`${response.statusText}: ${response.rawBody}`);
+ }
+
+ if (response.payload === null) {
+ throw new Error('Invalid JSON response');
+ }
+
+ return response.payload;
+ }
+
+ private async requestRefreshedAccessToken(): Promise<string | null> {
+ const refreshAccessTokenFunction = (
+ globalThis as {
+ frontComponentHostCommunicationApi?: {
+ requestAccessTokenRefresh?: () => Promise<string>;
+ };
+ }
+ ).frontComponentHostCommunicationApi?.requestAccessTokenRefresh;
+
+ if (typeof refreshAccessTokenFunction !== 'function') {
+ return null;
+ }
+
+ if (!this.refreshAccessTokenPromise) {
+ this.refreshAccessTokenPromise = refreshAccessTokenFunction()
+ .then((refreshedAccessToken) => {
+ if (
+ typeof refreshedAccessToken !== 'string' ||
+ refreshedAccessToken.length === 0
+ ) {
+ return null;
+ }
+
+ this.setAuthorizationToken(refreshedAccessToken);
+
+ return refreshedAccessToken;
+ })
+ .catch((refreshError: unknown) => {
+ console.error('Twenty client: token refresh failed', refreshError);
+
+ return null;
+ })
+ .finally(() => {
+ this.refreshAccessTokenPromise = null;
+ });
+ }
+
+ return this.refreshAccessTokenPromise;
+ }
+
+ private setAuthorizationToken(token: string) {
+ this.authorizationToken = token;
+
+ const processEnvironment = getProcessEnvironment();
+
+ processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] = token;
+ }
+}
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/index.ts b/packages/twenty-client-sdk/src/metadata/generated/index.ts
similarity index 99%
rename from packages/twenty-sdk/src/clients/generated/metadata/index.ts
rename to packages/twenty-client-sdk/src/metadata/generated/index.ts
index 52c63ce6903..695fccc606b 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/index.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/index.ts
@@ -78,7 +78,7 @@ export const generateSubscriptionOp: (
)
}
-// MetadataApiClient (auto-injected by twenty-sdk)
+// MetadataApiClient (auto-injected by twenty-client-sdk)
// Ambient type stubs for the genql-generated code this template gets
// injected into. They enable full typecheck/lint on this file.
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/batcher.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/batcher.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/batcher.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/batcher.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/createClient.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/createClient.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/createClient.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/createClient.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/error.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/error.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/error.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/error.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/fetcher.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/fetcher.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/fetcher.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/fetcher.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/generateGraphqlOperation.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/generateGraphqlOperation.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/generateGraphqlOperation.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/generateGraphqlOperation.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/index.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/index.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/index.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/index.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/linkTypeMap.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/linkTypeMap.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/linkTypeMap.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/linkTypeMap.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/typeSelection.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/typeSelection.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/typeSelection.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/typeSelection.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/runtime/types.ts b/packages/twenty-client-sdk/src/metadata/generated/runtime/types.ts
similarity index 100%
rename from packages/twenty-sdk/src/clients/generated/metadata/runtime/types.ts
rename to packages/twenty-client-sdk/src/metadata/generated/runtime/types.ts
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
similarity index 99%
rename from packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
rename to packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 49608a7fa1a..21714aafe02 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -1458,115 +1458,123 @@ type SendInvitations {
result: [WorkspaceInvitation!]!
}
-type ResendEmailVerificationToken {
- success: Boolean!
+type RecordIdentifier {
+ id: UUID!
+ labelIdentifier: String!
+ imageIdentifier: String
}
-type WorkspaceUrls {
- customUrl: String
- subdomainUrl: String!
+type NavigationMenuItem {
+ id: UUID!
+ userWorkspaceId: UUID
+ targetRecordId: UUID
+ targetObjectMetadataId: UUID
+ viewId: UUID
+ type: NavigationMenuItemType!
+ name: String
+ link: String
+ icon: String
+ color: String
+ folderId: UUID
+ position: Float!
+ applicationId: UUID
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ targetRecordIdentifier: RecordIdentifier
}
-type SSOConnection {
- type: IdentityProviderType!
- id: UUID!
- issuer: String!
- name: String!
- status: SSOIdentityProviderStatus!
+enum NavigationMenuItemType {
+ VIEW
+ FOLDER
+ LINK
+ OBJECT
+ RECORD
}
-enum IdentityProviderType {
- OIDC
- SAML
+type ObjectRecordEventProperties {
+ updatedFields: [String!]
+ before: JSON
+ after: JSON
+ diff: JSON
}
-enum SSOIdentityProviderStatus {
- Active
- Inactive
- Error
+type MetadataEvent {
+ type: MetadataEventAction!
+ metadataName: String!
+ recordId: String!
+ properties: ObjectRecordEventProperties!
+ updatedCollectionHash: String
}
-type AvailableWorkspace {
- id: UUID!
- displayName: String
- loginToken: String
- personalInviteToken: String
- inviteHash: String
- workspaceUrls: WorkspaceUrls!
- logo: String
- sso: [SSOConnection!]!
+"""Metadata Event Action"""
+enum MetadataEventAction {
+ CREATED
+ UPDATED
+ DELETED
}
-type AvailableWorkspaces {
- availableWorkspacesForSignIn: [AvailableWorkspace!]!
- availableWorkspacesForSignUp: [AvailableWorkspace!]!
+type ObjectRecordEvent {
+ action: DatabaseEventAction!
+ objectNameSingular: String!
+ recordId: String!
+ userId: String
+ workspaceMemberId: String
+ properties: ObjectRecordEventProperties!
}
-type DeletedWorkspaceMember {
- id: UUID!
- name: FullName!
- userEmail: String!
- avatarUrl: String
- userWorkspaceId: UUID
+"""Database Event Action"""
+enum DatabaseEventAction {
+ CREATED
+ UPDATED
+ DELETED
+ DESTROYED
+ RESTORED
+ UPSERTED
}
-type BillingEntitlement {
- key: BillingEntitlementKey!
- value: Boolean!
+type ObjectRecordEventWithQueryIds {
+ queryIds: [String!]!
+ objectRecordEvent: ObjectRecordEvent!
}
-enum BillingEntitlementKey {
- SSO
- CUSTOM_DOMAIN
- RLS
- AUDIT_LOGS
+type EventSubscription {
+ eventStreamId: String!
+ objectRecordEventsWithQueryIds: [ObjectRecordEventWithQueryIds!]!
+ metadataEvents: [MetadataEvent!]!
}
-type DomainRecord {
- validationType: String!
- type: String!
- status: String!
- key: String!
- value: String!
+type LogicFunctionExecutionResult {
+ """Execution result in JSON format"""
+ data: JSON
+
+ """Execution Logs"""
+ logs: String!
+
+ """Execution duration in milliseconds"""
+ duration: Float!
+
+ """Execution status"""
+ status: LogicFunctionExecutionStatus!
+
+ """Execution error in JSON format"""
+ error: JSON
}
-type DomainValidRecords {
- id: UUID!
- domain: String!
- records: [DomainRecord!]!
+"""Status of the logic function execution"""
+enum LogicFunctionExecutionStatus {
+ IDLE
+ SUCCESS
+ ERROR
}
-type FeatureFlag {
- key: FeatureFlagKey!
- value: Boolean!
+type BillingTrialPeriod {
+ duration: Float!
+ isCreditCardRequired: Boolean!
}
-enum FeatureFlagKey {
- IS_UNIQUE_INDEXES_ENABLED
- IS_JSON_FILTER_ENABLED
- IS_AI_ENABLED
- IS_APPLICATION_ENABLED
- IS_MARKETPLACE_ENABLED
- IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED
- IS_PUBLIC_DOMAIN_ENABLED
- IS_EMAILING_DOMAIN_ENABLED
- IS_DASHBOARD_V2_ENABLED
- IS_ATTACHMENT_MIGRATED
- IS_NOTE_TARGET_MIGRATED
- IS_TASK_TARGET_MIGRATED
- IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED
- IS_JUNCTION_RELATIONS_ENABLED
- IS_COMMAND_MENU_ITEM_ENABLED
- IS_NAVIGATION_MENU_ITEM_ENABLED
- IS_DATE_TIME_WHOLE_DAY_FILTER_ENABLED
- IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED
- IS_DRAFT_EMAIL_ENABLED
- IS_USAGE_ANALYTICS_ENABLED
- IS_RICH_TEXT_V1_MIGRATED
- IS_DIRECT_GRAPHQL_EXECUTION_ENABLED
- IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED
- IS_CONNECTED_ACCOUNT_MIGRATED
- IS_GRAPHQL_QUERY_TIMING_ENABLED
+type WorkspaceUrls {
+ customUrl: String
+ subdomainUrl: String!
}
type SSOIdentityProvider {
@@ -1577,6 +1585,17 @@ type SSOIdentityProvider {
issuer: String!
}
+enum IdentityProviderType {
+ OIDC
+ SAML
+}
+
+enum SSOIdentityProviderStatus {
+ Active
+ Inactive
+ Error
+}
+
type AuthProviders {
sso: [SSOIdentityProvider!]!
google: Boolean!
@@ -1600,1552 +1619,1548 @@ type PublicWorkspaceData {
workspaceUrls: WorkspaceUrls!
}
-type IndexEdge {
- """The node containing the Index"""
- node: Index!
-
- """Cursor for this node."""
- cursor: ConnectionCursor!
+type NativeModelCapabilities {
+ webSearch: Boolean
+ twitterSearch: Boolean
}
-type PageInfo {
- """true if paging forward and there are more records."""
- hasNextPage: Boolean
-
- """true if paging backwards and there are more records."""
- hasPreviousPage: Boolean
-
- """The cursor of the first returned record."""
- startCursor: ConnectionCursor
-
- """The cursor of the last returned record."""
- endCursor: ConnectionCursor
+type ClientAIModelConfig {
+ modelId: String!
+ label: String!
+ modelFamily: ModelFamily
+ modelFamilyLabel: String
+ sdkPackage: String
+ inputCostPerMillionTokensInCredits: Float!
+ outputCostPerMillionTokensInCredits: Float!
+ nativeCapabilities: NativeModelCapabilities
+ isDeprecated: Boolean
+ isRecommended: Boolean
+ providerName: String
+ dataResidency: String
}
-type IndexConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [IndexEdge!]!
+enum ModelFamily {
+ GPT
+ CLAUDE
+ GEMINI
+ MISTRAL
+ GROK
}
-type IndexFieldEdge {
- """The node containing the IndexField"""
- node: IndexField!
-
- """Cursor for this node."""
- cursor: ConnectionCursor!
+type AdminAIModelConfig {
+ modelId: String!
+ label: String!
+ modelFamily: ModelFamily
+ modelFamilyLabel: String
+ sdkPackage: String
+ isAvailable: Boolean!
+ isAdminEnabled: Boolean!
+ isDeprecated: Boolean
+ isRecommended: Boolean
+ contextWindowTokens: Float
+ maxOutputTokens: Float
+ inputCostPerMillionTokens: Float
+ outputCostPerMillionTokens: Float
+ providerName: String
+ providerLabel: String
+ name: String
+ dataResidency: String
}
-type IndexIndexFieldMetadatasConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [IndexFieldEdge!]!
+type AdminAIModels {
+ models: [AdminAIModelConfig!]!
+ defaultSmartModelId: String
+ defaultFastModelId: String
}
-type ObjectEdge {
- """The node containing the Object"""
- node: Object!
-
- """Cursor for this node."""
- cursor: ConnectionCursor!
+type Billing {
+ isBillingEnabled: Boolean!
+ billingUrl: String
+ trialPeriods: [BillingTrialPeriod!]!
}
-type IndexObjectMetadataConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [ObjectEdge!]!
+type Support {
+ supportDriver: SupportDriver!
+ supportFrontChatId: String
}
-type ObjectRecordCount {
- objectNamePlural: String!
- totalCount: Int!
+enum SupportDriver {
+ NONE
+ FRONT
}
-type ObjectConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [ObjectEdge!]!
+type Sentry {
+ environment: String
+ release: String
+ dsn: String
}
-type ObjectIndexMetadatasConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [IndexEdge!]!
+type Captcha {
+ provider: CaptchaDriverType
+ siteKey: String
}
-type FieldEdge {
- """The node containing the Field"""
- node: Field!
-
- """Cursor for this node."""
- cursor: ConnectionCursor!
+enum CaptchaDriverType {
+ GOOGLE_RECAPTCHA
+ TURNSTILE
}
-type ObjectFieldsConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [FieldEdge!]!
+type ApiConfig {
+ mutationMaximumAffectedRecords: Float!
}
-type UpsertRowLevelPermissionPredicatesResult {
- predicates: [RowLevelPermissionPredicate!]!
- predicateGroups: [RowLevelPermissionPredicateGroup!]!
+type PublicFeatureFlagMetadata {
+ label: String!
+ description: String!
+ imagePath: String
}
-type VersionDistributionEntry {
- version: String!
- count: Int!
+type PublicFeatureFlag {
+ key: FeatureFlagKey!
+ metadata: PublicFeatureFlagMetadata!
}
-type ApplicationRegistrationStats {
- activeInstalls: Int!
- mostInstalledVersion: String
- versionDistribution: [VersionDistributionEntry!]!
+enum FeatureFlagKey {
+ IS_UNIQUE_INDEXES_ENABLED
+ IS_JSON_FILTER_ENABLED
+ IS_AI_ENABLED
+ IS_APPLICATION_ENABLED
+ IS_MARKETPLACE_ENABLED
+ IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED
+ IS_PUBLIC_DOMAIN_ENABLED
+ IS_EMAILING_DOMAIN_ENABLED
+ IS_DASHBOARD_V2_ENABLED
+ IS_ATTACHMENT_MIGRATED
+ IS_NOTE_TARGET_MIGRATED
+ IS_TASK_TARGET_MIGRATED
+ IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED
+ IS_JUNCTION_RELATIONS_ENABLED
+ IS_COMMAND_MENU_ITEM_ENABLED
+ IS_NAVIGATION_MENU_ITEM_ENABLED
+ IS_DATE_TIME_WHOLE_DAY_FILTER_ENABLED
+ IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED
+ IS_DRAFT_EMAIL_ENABLED
+ IS_USAGE_ANALYTICS_ENABLED
+ IS_RICH_TEXT_V1_MIGRATED
+ IS_DIRECT_GRAPHQL_EXECUTION_ENABLED
+ IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED
+ IS_CONNECTED_ACCOUNT_MIGRATED
+ IS_GRAPHQL_QUERY_TIMING_ENABLED
}
-type CreateApplicationRegistration {
- applicationRegistration: ApplicationRegistration!
- clientSecret: String!
+type ClientConfig {
+ appVersion: String
+ authProviders: AuthProviders!
+ billing: Billing!
+ aiModels: [ClientAIModelConfig!]!
+ signInPrefilled: Boolean!
+ isMultiWorkspaceEnabled: Boolean!
+ isEmailVerificationRequired: Boolean!
+ defaultSubdomain: String
+ frontDomain: String!
+ analyticsEnabled: Boolean!
+ support: Support!
+ isAttachmentPreviewEnabled: Boolean!
+ sentry: Sentry!
+ captcha: Captcha!
+ api: ApiConfig!
+ canManageFeatureFlags: Boolean!
+ publicFeatureFlags: [PublicFeatureFlag!]!
+ isMicrosoftMessagingEnabled: Boolean!
+ isMicrosoftCalendarEnabled: Boolean!
+ isGoogleMessagingEnabled: Boolean!
+ isGoogleCalendarEnabled: Boolean!
+ isConfigVariablesInDbEnabled: Boolean!
+ isImapSmtpCaldavEnabled: Boolean!
+ allowRequestsToTwentyIcons: Boolean!
+ calendarBookingPageId: String
+ isCloudflareIntegrationEnabled: Boolean!
+ isClickHouseConfigured: Boolean!
}
-type PublicApplicationRegistration {
- id: UUID!
+type ConfigVariable {
name: String!
- logoUrl: String
- websiteUrl: String
- oAuthScopes: [String!]!
+ description: String!
+ value: JSON
+ isSensitive: Boolean!
+ source: ConfigSource!
+ isEnvOnly: Boolean!
+ type: ConfigVariableType!
+ options: JSON
}
-type RotateClientSecret {
- clientSecret: String!
+enum ConfigSource {
+ ENVIRONMENT
+ DATABASE
+ DEFAULT
}
-type Relation {
- type: RelationType!
- sourceObjectMetadata: Object!
- targetObjectMetadata: Object!
- sourceFieldMetadata: Field!
- targetFieldMetadata: Field!
+enum ConfigVariableType {
+ BOOLEAN
+ NUMBER
+ ARRAY
+ STRING
+ ENUM
+ JSON
}
-"""Relation type"""
-enum RelationType {
- ONE_TO_MANY
- MANY_TO_ONE
+type ConfigVariablesGroupData {
+ variables: [ConfigVariable!]!
+ name: ConfigVariablesGroup!
+ description: String!
+ isHiddenOnLoad: Boolean!
}
-type FieldConnection {
- """Paging information"""
- pageInfo: PageInfo!
-
- """Array of edges."""
- edges: [FieldEdge!]!
+enum ConfigVariablesGroup {
+ SERVER_CONFIG
+ RATE_LIMITING
+ STORAGE_CONFIG
+ GOOGLE_AUTH
+ MICROSOFT_AUTH
+ EMAIL_SETTINGS
+ LOGGING
+ ADVANCED_SETTINGS
+ BILLING_CONFIG
+ CAPTCHA_CONFIG
+ CLOUDFLARE_CONFIG
+ LLM
+ LOGIC_FUNCTION_CONFIG
+ CODE_INTERPRETER_CONFIG
+ SSL
+ SUPPORT_CHAT_CONFIG
+ ANALYTICS_CONFIG
+ TOKENS_DURATION
+ AWS_SES_SETTINGS
}
-type DeleteSso {
- identityProviderId: UUID!
+type ConfigVariables {
+ groups: [ConfigVariablesGroupData!]!
}
-type EditSso {
- id: UUID!
- type: IdentityProviderType!
- issuer: String!
- name: String!
- status: SSOIdentityProviderStatus!
+type JobOperationResult {
+ jobId: String!
+ success: Boolean!
+ error: String
}
-type WorkspaceNameAndId {
- displayName: String
- id: UUID!
+type DeleteJobsResponse {
+ deletedCount: Int!
+ results: [JobOperationResult!]!
}
-type FindAvailableSSOIDP {
- type: IdentityProviderType!
- id: UUID!
- issuer: String!
+type QueueJob {
+ id: String!
name: String!
- status: SSOIdentityProviderStatus!
- workspace: WorkspaceNameAndId!
+ data: JSON
+ state: JobState!
+ timestamp: Float
+ failedReason: String
+ processedOn: Float
+ finishedOn: Float
+ attemptsMade: Float!
+ returnValue: JSON
+ logs: [String!]
+ stackTrace: [String!]
}
-type SetupSso {
- id: UUID!
- type: IdentityProviderType!
- issuer: String!
- name: String!
- status: SSOIdentityProviderStatus!
-}
-
-type DeleteTwoFactorAuthenticationMethod {
- """Boolean that confirms query was dispatched"""
- success: Boolean!
+"""Job state in the queue"""
+enum JobState {
+ COMPLETED
+ FAILED
+ ACTIVE
+ WAITING
+ DELAYED
+ PRIORITIZED
+ WAITING_CHILDREN
}
-type InitiateTwoFactorAuthenticationProvisioning {
- uri: String!
+type QueueRetentionConfig {
+ completedMaxAge: Float!
+ completedMaxCount: Float!
+ failedMaxAge: Float!
+ failedMaxCount: Float!
}
-type VerifyTwoFactorAuthenticationMethod {
- success: Boolean!
+type QueueJobsResponse {
+ jobs: [QueueJob!]!
+ count: Float!
+ totalCount: Float!
+ hasMore: Boolean!
+ retentionConfig: QueueRetentionConfig!
}
-type AuthorizeApp {
- redirectUrl: String!
+type RetryJobsResponse {
+ retriedCount: Int!
+ results: [JobOperationResult!]!
}
-type AuthToken {
- token: String!
- expiresAt: DateTime!
+type SystemHealthService {
+ id: HealthIndicatorId!
+ label: String!
+ status: AdminPanelHealthServiceStatus!
}
-type AuthTokenPair {
- accessOrWorkspaceAgnosticToken: AuthToken!
- refreshToken: AuthToken!
+enum HealthIndicatorId {
+ database
+ redis
+ worker
+ connectedAccount
+ app
}
-type AvailableWorkspacesAndAccessTokens {
- tokens: AuthTokenPair!
- availableWorkspaces: AvailableWorkspaces!
+enum AdminPanelHealthServiceStatus {
+ OPERATIONAL
+ OUTAGE
}
-type EmailPasswordResetLink {
- """Boolean that confirms query was dispatched"""
- success: Boolean!
+type SystemHealth {
+ services: [SystemHealthService!]!
}
-type GetAuthorizationUrlForSSO {
- authorizationURL: String!
- type: String!
- id: UUID!
+type FeatureFlag {
+ key: FeatureFlagKey!
+ value: Boolean!
}
-type InvalidatePassword {
- """Boolean that confirms query was dispatched"""
- success: Boolean!
+type UserInfo {
+ id: UUID!
+ email: String!
+ firstName: String
+ lastName: String
}
-type WorkspaceUrlsAndId {
- workspaceUrls: WorkspaceUrls!
+type WorkspaceInfo {
id: UUID!
+ name: String!
+ allowImpersonation: Boolean!
+ logo: String
+ totalUsers: Float!
+ workspaceUrls: WorkspaceUrls!
+ users: [UserInfo!]!
+ featureFlags: [FeatureFlag!]!
}
-type SignUp {
- loginToken: AuthToken!
- workspace: WorkspaceUrlsAndId!
+type UserLookup {
+ user: UserInfo!
+ workspaces: [WorkspaceInfo!]!
}
-type TransientToken {
- transientToken: AuthToken!
+type VersionInfo {
+ currentVersion: String
+ latestVersion: String!
}
-type ValidatePasswordResetToken {
- id: UUID!
- email: String!
- hasPassword: Boolean!
+type AdminPanelWorkerQueueHealth {
+ id: String!
+ queueName: String!
+ status: AdminPanelHealthServiceStatus!
}
-type VerifyEmailAndGetLoginToken {
- loginToken: AuthToken!
- workspaceUrls: WorkspaceUrls!
+type AdminPanelHealthServiceData {
+ id: HealthIndicatorId!
+ label: String!
+ description: String!
+ status: AdminPanelHealthServiceStatus!
+ errorMessage: String
+ details: String
+ queues: [AdminPanelWorkerQueueHealth!]
}
-type ApiKeyToken {
- token: String!
+type ModelsDevModelSuggestion {
+ modelId: String!
+ name: String!
+ inputCostPerMillionTokens: Float!
+ outputCostPerMillionTokens: Float!
+ cachedInputCostPerMillionTokens: Float
+ cacheCreationCostPerMillionTokens: Float
+ contextWindowTokens: Float!
+ maxOutputTokens: Float!
+ modalities: [String!]!
+ supportsReasoning: Boolean!
}
-type AuthTokens {
- tokens: AuthTokenPair!
+type ModelsDevProviderSuggestion {
+ id: String!
+ modelCount: Float!
+ npm: String!
}
-type LoginToken {
- loginToken: AuthToken!
+type QueueMetricsDataPoint {
+ x: Float!
+ y: Float!
}
-type CheckUserExist {
- exists: Boolean!
- availableWorkspacesCount: Float!
- isEmailVerified: Boolean!
+type QueueMetricsSeries {
+ id: String!
+ data: [QueueMetricsDataPoint!]!
}
-type WorkspaceInviteHashValid {
- isValid: Boolean!
+type WorkerQueueMetrics {
+ failed: Float!
+ completed: Float!
+ waiting: Float!
+ active: Float!
+ delayed: Float!
+ failureRate: Float!
+ failedData: [Float!]
+ completedData: [Float!]
}
-type RecordIdentifier {
- id: UUID!
- labelIdentifier: String!
- imageIdentifier: String
+type QueueMetricsData {
+ queueName: String!
+ workers: Float!
+ timeRange: QueueMetricsTimeRange!
+ details: WorkerQueueMetrics
+ data: [QueueMetricsSeries!]!
}
-type NavigationMenuItem {
- id: UUID!
- userWorkspaceId: UUID
- targetRecordId: UUID
- targetObjectMetadataId: UUID
- viewId: UUID
- type: NavigationMenuItemType!
- name: String
- link: String
- icon: String
- color: String
- folderId: UUID
- position: Float!
- applicationId: UUID
- createdAt: DateTime!
- updatedAt: DateTime!
- targetRecordIdentifier: RecordIdentifier
+enum QueueMetricsTimeRange {
+ SevenDays
+ OneDay
+ TwelveHours
+ FourHours
+ OneHour
}
-enum NavigationMenuItemType {
- VIEW
- FOLDER
- LINK
- OBJECT
- RECORD
+type VersionDistributionEntry {
+ version: String!
+ count: Int!
}
-type ObjectRecordEventProperties {
- updatedFields: [String!]
- before: JSON
- after: JSON
- diff: JSON
+type ApplicationRegistrationStats {
+ activeInstalls: Int!
+ mostInstalledVersion: String
+ versionDistribution: [VersionDistributionEntry!]!
}
-type MetadataEvent {
- type: MetadataEventAction!
- metadataName: String!
- recordId: String!
- properties: ObjectRecordEventProperties!
- updatedCollectionHash: String
+type CreateApplicationRegistration {
+ applicationRegistration: ApplicationRegistration!
+ clientSecret: String!
}
-"""Metadata Event Action"""
-enum MetadataEventAction {
- CREATED
- UPDATED
- DELETED
+type PublicApplicationRegistration {
+ id: UUID!
+ name: String!
+ logoUrl: String
+ websiteUrl: String
+ oAuthScopes: [String!]!
}
-type ObjectRecordEvent {
- action: DatabaseEventAction!
- objectNameSingular: String!
- recordId: String!
- userId: String
- workspaceMemberId: String
- properties: ObjectRecordEventProperties!
+type RotateClientSecret {
+ clientSecret: String!
}
-"""Database Event Action"""
-enum DatabaseEventAction {
- CREATED
- UPDATED
- DELETED
- DESTROYED
- RESTORED
- UPSERTED
+type ResendEmailVerificationToken {
+ success: Boolean!
}
-type ObjectRecordEventWithQueryIds {
- queryIds: [String!]!
- objectRecordEvent: ObjectRecordEvent!
+type DeleteSso {
+ identityProviderId: UUID!
}
-type EventSubscription {
- eventStreamId: String!
- objectRecordEventsWithQueryIds: [ObjectRecordEventWithQueryIds!]!
- metadataEvents: [MetadataEvent!]!
-}
-
-type LogicFunctionExecutionResult {
- """Execution result in JSON format"""
- data: JSON
-
- """Execution Logs"""
- logs: String!
-
- """Execution duration in milliseconds"""
- duration: Float!
-
- """Execution status"""
- status: LogicFunctionExecutionStatus!
-
- """Execution error in JSON format"""
- error: JSON
+type EditSso {
+ id: UUID!
+ type: IdentityProviderType!
+ issuer: String!
+ name: String!
+ status: SSOIdentityProviderStatus!
}
-"""Status of the logic function execution"""
-enum LogicFunctionExecutionStatus {
- IDLE
- SUCCESS
- ERROR
+type WorkspaceNameAndId {
+ displayName: String
+ id: UUID!
}
-type LogicFunctionLogs {
- """Execution Logs"""
- logs: String!
+type FindAvailableSSOIDP {
+ type: IdentityProviderType!
+ id: UUID!
+ issuer: String!
+ name: String!
+ status: SSOIdentityProviderStatus!
+ workspace: WorkspaceNameAndId!
}
-type ToolIndexEntry {
+type SetupSso {
+ id: UUID!
+ type: IdentityProviderType!
+ issuer: String!
name: String!
- description: String!
- category: String!
- objectName: String
- inputSchema: JSON
+ status: SSOIdentityProviderStatus!
}
-type AgentMessagePart {
+type SSOConnection {
+ type: IdentityProviderType!
id: UUID!
- messageId: UUID!
- orderIndex: Int!
- type: String!
- textContent: String
- reasoningContent: String
- toolName: String
- toolCallId: String
- toolInput: JSON
- toolOutput: JSON
- state: String
- errorMessage: String
- errorDetails: JSON
- sourceUrlSourceId: String
- sourceUrlUrl: String
- sourceUrlTitle: String
- sourceDocumentSourceId: String
- sourceDocumentMediaType: String
- sourceDocumentTitle: String
- sourceDocumentFilename: String
- fileMediaType: String
- fileFilename: String
- fileId: UUID
- fileUrl: String
- providerMetadata: JSON
- createdAt: DateTime!
+ issuer: String!
+ name: String!
+ status: SSOIdentityProviderStatus!
}
-type Skill {
+type AvailableWorkspace {
id: UUID!
- name: String!
- label: String!
- icon: String
- description: String
- content: String!
- isCustom: Boolean!
- isActive: Boolean!
- applicationId: UUID
- createdAt: DateTime!
- updatedAt: DateTime!
+ displayName: String
+ loginToken: String
+ personalInviteToken: String
+ inviteHash: String
+ workspaceUrls: WorkspaceUrls!
+ logo: String
+ sso: [SSOConnection!]!
}
-type ApplicationTokenPair {
- applicationAccessToken: AuthToken!
- applicationRefreshToken: AuthToken!
+type AvailableWorkspaces {
+ availableWorkspacesForSignIn: [AvailableWorkspace!]!
+ availableWorkspacesForSignUp: [AvailableWorkspace!]!
}
-type FrontComponent {
+type DeletedWorkspaceMember {
id: UUID!
- name: String!
- description: String
- sourceComponentPath: String!
- builtComponentPath: String!
- componentName: String!
- builtComponentChecksum: String!
- universalIdentifier: UUID
- applicationId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
- isHeadless: Boolean!
- applicationTokenPair: ApplicationTokenPair
+ name: FullName!
+ userEmail: String!
+ avatarUrl: String
+ userWorkspaceId: UUID
}
-type CommandMenuItem {
- id: UUID!
- workflowVersionId: UUID
- frontComponentId: UUID
- frontComponent: FrontComponent
- engineComponentKey: EngineComponentKey!
- label: String!
- icon: String
- shortLabel: String
- position: Float!
- isPinned: Boolean!
- availabilityType: CommandMenuItemAvailabilityType!
- hotKeys: [String!]
- conditionalAvailabilityExpression: String
- availabilityObjectMetadataId: UUID
- applicationId: UUID
- createdAt: DateTime!
- updatedAt: DateTime!
+type BillingEntitlement {
+ key: BillingEntitlementKey!
+ value: Boolean!
}
-enum EngineComponentKey {
- NAVIGATE_TO_NEXT_RECORD
- NAVIGATE_TO_PREVIOUS_RECORD
- CREATE_NEW_RECORD
- DELETE_SINGLE_RECORD
- DELETE_MULTIPLE_RECORDS
- RESTORE_SINGLE_RECORD
- RESTORE_MULTIPLE_RECORDS
- DESTROY_SINGLE_RECORD
- DESTROY_MULTIPLE_RECORDS
- ADD_TO_FAVORITES
- REMOVE_FROM_FAVORITES
- EXPORT_NOTE_TO_PDF
- EXPORT_FROM_RECORD_INDEX
- EXPORT_FROM_RECORD_SHOW
- UPDATE_MULTIPLE_RECORDS
- MERGE_MULTIPLE_RECORDS
- EXPORT_MULTIPLE_RECORDS
- IMPORT_RECORDS
- EXPORT_VIEW
- SEE_DELETED_RECORDS
- CREATE_NEW_VIEW
- HIDE_DELETED_RECORDS
- GO_TO_PEOPLE
- GO_TO_COMPANIES
- GO_TO_DASHBOARDS
- GO_TO_OPPORTUNITIES
- GO_TO_SETTINGS
- GO_TO_TASKS
- GO_TO_NOTES
- EDIT_RECORD_PAGE_LAYOUT
- EDIT_DASHBOARD_LAYOUT
- SAVE_DASHBOARD_LAYOUT
- CANCEL_DASHBOARD_LAYOUT
- DUPLICATE_DASHBOARD
- GO_TO_WORKFLOWS
- ACTIVATE_WORKFLOW
- DEACTIVATE_WORKFLOW
- DISCARD_DRAFT_WORKFLOW
- TEST_WORKFLOW
- SEE_ACTIVE_VERSION_WORKFLOW
- SEE_RUNS_WORKFLOW
- SEE_VERSIONS_WORKFLOW
- ADD_NODE_WORKFLOW
- TIDY_UP_WORKFLOW
- DUPLICATE_WORKFLOW
- GO_TO_RUNS
- SEE_VERSION_WORKFLOW_RUN
- SEE_WORKFLOW_WORKFLOW_RUN
- STOP_WORKFLOW_RUN
- SEE_RUNS_WORKFLOW_VERSION
- SEE_WORKFLOW_WORKFLOW_VERSION
- USE_AS_DRAFT_WORKFLOW_VERSION
- SEE_VERSIONS_WORKFLOW_VERSION
- SEARCH_RECORDS
- SEARCH_RECORDS_FALLBACK
- ASK_AI
- VIEW_PREVIOUS_AI_CHATS
- TRIGGER_WORKFLOW_VERSION
- FRONT_COMPONENT_RENDERER
+enum BillingEntitlementKey {
+ SSO
+ CUSTOM_DOMAIN
+ RLS
+ AUDIT_LOGS
}
-enum CommandMenuItemAvailabilityType {
- GLOBAL
- RECORD_SELECTION
- FALLBACK
+type DomainRecord {
+ validationType: String!
+ type: String!
+ status: String!
+ key: String!
+ value: String!
}
-type AgentChatThread {
+type DomainValidRecords {
id: UUID!
- title: String
- totalInputTokens: Int!
- totalOutputTokens: Int!
- contextWindowTokens: Int
- conversationSize: Int!
- totalInputCredits: Float!
- totalOutputCredits: Float!
- createdAt: DateTime!
- updatedAt: DateTime!
+ domain: String!
+ records: [DomainRecord!]!
}
-type AgentMessage {
- id: UUID!
- threadId: UUID!
- turnId: UUID!
- agentId: UUID
- role: String!
- parts: [AgentMessagePart!]!
- createdAt: DateTime!
+type IndexEdge {
+ """The node containing the Index"""
+ node: Index!
+
+ """Cursor for this node."""
+ cursor: ConnectionCursor!
}
-type AISystemPromptSection {
- title: String!
- content: String!
- estimatedTokenCount: Int!
+type PageInfo {
+ """true if paging forward and there are more records."""
+ hasNextPage: Boolean
+
+ """true if paging backwards and there are more records."""
+ hasPreviousPage: Boolean
+
+ """The cursor of the first returned record."""
+ startCursor: ConnectionCursor
+
+ """The cursor of the last returned record."""
+ endCursor: ConnectionCursor
}
-type AISystemPromptPreview {
- sections: [AISystemPromptSection!]!
- estimatedTokenCount: Int!
+type IndexConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [IndexEdge!]!
}
-type AgentChatThreadEdge {
- """The node containing the AgentChatThread"""
- node: AgentChatThread!
+type IndexFieldEdge {
+ """The node containing the IndexField"""
+ node: IndexField!
"""Cursor for this node."""
cursor: ConnectionCursor!
}
-type AgentChatThreadConnection {
+type IndexIndexFieldMetadatasConnection {
"""Paging information"""
pageInfo: PageInfo!
"""Array of edges."""
- edges: [AgentChatThreadEdge!]!
+ edges: [IndexFieldEdge!]!
}
-type AgentTurnEvaluation {
- id: UUID!
- turnId: UUID!
- score: Int!
- comment: String
- createdAt: DateTime!
+type ObjectEdge {
+ """The node containing the Object"""
+ node: Object!
+
+ """Cursor for this node."""
+ cursor: ConnectionCursor!
}
-type AgentTurn {
- id: UUID!
- threadId: UUID!
- agentId: UUID
- evaluations: [AgentTurnEvaluation!]!
- messages: [AgentMessage!]!
- createdAt: DateTime!
+type IndexObjectMetadataConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [ObjectEdge!]!
}
-type CalendarChannel {
- id: UUID!
- handle: String!
- syncStatus: CalendarChannelSyncStatus!
- syncStage: CalendarChannelSyncStage!
- visibility: CalendarChannelVisibility!
- isContactAutoCreationEnabled: Boolean!
- contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy!
- isSyncEnabled: Boolean!
- syncedAt: DateTime
- syncStageStartedAt: DateTime
- throttleFailureCount: Float!
- connectedAccountId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
+type ObjectRecordCount {
+ objectNamePlural: String!
+ totalCount: Int!
}
-enum CalendarChannelSyncStatus {
- NOT_SYNCED
- ONGOING
- ACTIVE
- FAILED_INSUFFICIENT_PERMISSIONS
- FAILED_UNKNOWN
+type ObjectConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [ObjectEdge!]!
}
-enum CalendarChannelSyncStage {
- PENDING_CONFIGURATION
- CALENDAR_EVENT_LIST_FETCH_PENDING
- CALENDAR_EVENT_LIST_FETCH_SCHEDULED
- CALENDAR_EVENT_LIST_FETCH_ONGOING
- CALENDAR_EVENTS_IMPORT_PENDING
- CALENDAR_EVENTS_IMPORT_SCHEDULED
- CALENDAR_EVENTS_IMPORT_ONGOING
- FAILED
+type ObjectIndexMetadatasConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [IndexEdge!]!
}
-enum CalendarChannelVisibility {
- METADATA
- SHARE_EVERYTHING
+type FieldEdge {
+ """The node containing the Field"""
+ node: Field!
+
+ """Cursor for this node."""
+ cursor: ConnectionCursor!
}
-enum CalendarChannelContactAutoCreationPolicy {
- AS_PARTICIPANT_AND_ORGANIZER
- AS_PARTICIPANT
- AS_ORGANIZER
- NONE
+type ObjectFieldsConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [FieldEdge!]!
}
-type ConnectedAccountDTO {
- id: UUID!
- handle: String!
- provider: String!
- lastCredentialsRefreshedAt: DateTime
- authFailedAt: DateTime
- handleAliases: [String!]
- scopes: [String!]
- lastSignedInAt: DateTime
- userWorkspaceId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
+type UpsertRowLevelPermissionPredicatesResult {
+ predicates: [RowLevelPermissionPredicate!]!
+ predicateGroups: [RowLevelPermissionPredicateGroup!]!
}
-type MessageChannel {
- id: UUID!
- visibility: MessageChannelVisibility!
- handle: String!
- type: MessageChannelType!
- isContactAutoCreationEnabled: Boolean!
- contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy!
- messageFolderImportPolicy: MessageFolderImportPolicy!
- excludeNonProfessionalEmails: Boolean!
- excludeGroupEmails: Boolean!
- pendingGroupEmailsAction: MessageChannelPendingGroupEmailsAction!
- isSyncEnabled: Boolean!
- syncedAt: DateTime
- syncStatus: MessageChannelSyncStatus!
- syncStage: MessageChannelSyncStage!
- syncStageStartedAt: DateTime
- throttleFailureCount: Float!
- throttleRetryAfter: DateTime
- connectedAccountId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
+type Relation {
+ type: RelationType!
+ sourceObjectMetadata: Object!
+ targetObjectMetadata: Object!
+ sourceFieldMetadata: Field!
+ targetFieldMetadata: Field!
+}
+
+"""Relation type"""
+enum RelationType {
+ ONE_TO_MANY
+ MANY_TO_ONE
+}
+
+type FieldConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
+
+ """Array of edges."""
+ edges: [FieldEdge!]!
+}
+
+type DeleteTwoFactorAuthenticationMethod {
+ """Boolean that confirms query was dispatched"""
+ success: Boolean!
}
-enum MessageChannelVisibility {
- METADATA
- SUBJECT
- SHARE_EVERYTHING
+type InitiateTwoFactorAuthenticationProvisioning {
+ uri: String!
}
-enum MessageChannelType {
- EMAIL
- SMS
+type VerifyTwoFactorAuthenticationMethod {
+ success: Boolean!
}
-enum MessageChannelContactAutoCreationPolicy {
- SENT_AND_RECEIVED
- SENT
- NONE
+type AuthorizeApp {
+ redirectUrl: String!
}
-enum MessageFolderImportPolicy {
- ALL_FOLDERS
- SELECTED_FOLDERS
+type AuthToken {
+ token: String!
+ expiresAt: DateTime!
}
-enum MessageChannelPendingGroupEmailsAction {
- GROUP_EMAILS_DELETION
- GROUP_EMAILS_IMPORT
- NONE
+type AuthTokenPair {
+ accessOrWorkspaceAgnosticToken: AuthToken!
+ refreshToken: AuthToken!
}
-enum MessageChannelSyncStatus {
- NOT_SYNCED
- ONGOING
- ACTIVE
- FAILED_INSUFFICIENT_PERMISSIONS
- FAILED_UNKNOWN
+type AvailableWorkspacesAndAccessTokens {
+ tokens: AuthTokenPair!
+ availableWorkspaces: AvailableWorkspaces!
}
-enum MessageChannelSyncStage {
- PENDING_CONFIGURATION
- MESSAGE_LIST_FETCH_PENDING
- MESSAGE_LIST_FETCH_SCHEDULED
- MESSAGE_LIST_FETCH_ONGOING
- MESSAGES_IMPORT_PENDING
- MESSAGES_IMPORT_SCHEDULED
- MESSAGES_IMPORT_ONGOING
- FAILED
+type EmailPasswordResetLink {
+ """Boolean that confirms query was dispatched"""
+ success: Boolean!
}
-type MessageFolder {
+type GetAuthorizationUrlForSSO {
+ authorizationURL: String!
+ type: String!
id: UUID!
- name: String
- isSentFolder: Boolean!
- isSynced: Boolean!
- parentFolderId: UUID
- externalId: String
- pendingSyncAction: MessageFolderPendingSyncAction!
- messageChannelId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
}
-enum MessageFolderPendingSyncAction {
- FOLDER_DELETION
- NONE
+type InvalidatePassword {
+ """Boolean that confirms query was dispatched"""
+ success: Boolean!
}
-type CollectionHash {
- collectionName: AllMetadataName!
- hash: String!
+type WorkspaceUrlsAndId {
+ workspaceUrls: WorkspaceUrls!
+ id: UUID!
}
-enum AllMetadataName {
- fieldMetadata
- objectMetadata
- view
- viewField
- viewFieldGroup
- viewGroup
- viewSort
- rowLevelPermissionPredicate
- rowLevelPermissionPredicateGroup
- viewFilterGroup
- index
- logicFunction
- viewFilter
- role
- roleTarget
- agent
- skill
- pageLayout
- pageLayoutWidget
- pageLayoutTab
- commandMenuItem
- navigationMenuItem
- permissionFlag
- objectPermission
- frontComponent
- webhook
+type SignUp {
+ loginToken: AuthToken!
+ workspace: WorkspaceUrlsAndId!
}
-type MinimalObjectMetadata {
- id: UUID!
- nameSingular: String!
- namePlural: String!
- labelSingular: String!
- labelPlural: String!
- icon: String
- color: String
- isCustom: Boolean!
- isActive: Boolean!
- isSystem: Boolean!
- isRemote: Boolean!
+type TransientToken {
+ transientToken: AuthToken!
}
-type MinimalView {
+type ValidatePasswordResetToken {
id: UUID!
- type: ViewType!
- key: ViewKey
- objectMetadataId: UUID!
+ email: String!
+ hasPassword: Boolean!
}
-type MinimalMetadata {
- objectMetadataItems: [MinimalObjectMetadata!]!
- views: [MinimalView!]!
- collectionHashes: [CollectionHash!]!
+type VerifyEmailAndGetLoginToken {
+ loginToken: AuthToken!
+ workspaceUrls: WorkspaceUrls!
}
-type Webhook {
- id: UUID!
- targetUrl: String!
- operations: [String!]!
- description: String
- secret: String!
- applicationId: UUID!
- createdAt: DateTime!
- updatedAt: DateTime!
- deletedAt: DateTime
+type ApiKeyToken {
+ token: String!
}
-type BillingTrialPeriod {
- duration: Float!
- isCreditCardRequired: Boolean!
+type AuthTokens {
+ tokens: AuthTokenPair!
}
-type NativeModelCapabilities {
- webSearch: Boolean
- twitterSearch: Boolean
+type LoginToken {
+ loginToken: AuthToken!
}
-type ClientAIModelConfig {
- modelId: String!
- label: String!
- modelFamily: ModelFamily
- modelFamilyLabel: String
- sdkPackage: String
- inputCostPerMillionTokensInCredits: Float!
- outputCostPerMillionTokensInCredits: Float!
- nativeCapabilities: NativeModelCapabilities
- isDeprecated: Boolean
- isRecommended: Boolean
- providerName: String
- dataResidency: String
+type CheckUserExist {
+ exists: Boolean!
+ availableWorkspacesCount: Float!
+ isEmailVerified: Boolean!
}
-enum ModelFamily {
- GPT
- CLAUDE
- GEMINI
- MISTRAL
- GROK
+type WorkspaceInviteHashValid {
+ isValid: Boolean!
}
-type AdminAIModelConfig {
- modelId: String!
- label: String!
- modelFamily: ModelFamily
- modelFamilyLabel: String
- sdkPackage: String
- isAvailable: Boolean!
- isAdminEnabled: Boolean!
- isDeprecated: Boolean
- isRecommended: Boolean
- contextWindowTokens: Float
- maxOutputTokens: Float
- inputCostPerMillionTokens: Float
- outputCostPerMillionTokens: Float
- providerName: String
- providerLabel: String
- name: String
- dataResidency: String
+type Impersonate {
+ loginToken: AuthToken!
+ workspace: WorkspaceUrlsAndId!
}
-type AdminAIModels {
- models: [AdminAIModelConfig!]!
- defaultSmartModelId: String
- defaultFastModelId: String
+type DevelopmentApplication {
+ id: String!
+ universalIdentifier: String!
}
-type Billing {
- isBillingEnabled: Boolean!
- billingUrl: String
- trialPeriods: [BillingTrialPeriod!]!
+type WorkspaceMigration {
+ applicationUniversalIdentifier: String!
+ actions: JSON!
}
-type Support {
- supportDriver: SupportDriver!
- supportFrontChatId: String
+type ApplicationTokenPair {
+ applicationAccessToken: AuthToken!
+ applicationRefreshToken: AuthToken!
}
-enum SupportDriver {
- NONE
- FRONT
+type File {
+ id: UUID!
+ path: String!
+ size: Float!
+ createdAt: DateTime!
}
-type Sentry {
- environment: String
- release: String
- dsn: String
+type MarketplaceAppField {
+ name: String!
+ type: String!
+ label: String!
+ description: String
+ icon: String
+ objectUniversalIdentifier: String
+ universalIdentifier: String
}
-type Captcha {
- provider: CaptchaDriverType
- siteKey: String
+type MarketplaceAppObject {
+ universalIdentifier: String!
+ nameSingular: String!
+ namePlural: String!
+ labelSingular: String!
+ labelPlural: String!
+ description: String
+ icon: String
+ fields: [MarketplaceAppField!]!
}
-enum CaptchaDriverType {
- GOOGLE_RECAPTCHA
- TURNSTILE
+type MarketplaceAppLogicFunction {
+ name: String!
+ description: String
+ timeoutSeconds: Int
}
-type ApiConfig {
- mutationMaximumAffectedRecords: Float!
+type MarketplaceAppFrontComponent {
+ name: String!
+ description: String
}
-type PublicFeatureFlagMetadata {
- label: String!
- description: String!
- imagePath: String
+type MarketplaceAppRoleObjectPermission {
+ objectUniversalIdentifier: String!
+ canReadObjectRecords: Boolean
+ canUpdateObjectRecords: Boolean
+ canSoftDeleteObjectRecords: Boolean
+ canDestroyObjectRecords: Boolean
}
-type PublicFeatureFlag {
- key: FeatureFlagKey!
- metadata: PublicFeatureFlagMetadata!
+type MarketplaceAppRoleFieldPermission {
+ objectUniversalIdentifier: String!
+ fieldUniversalIdentifier: String!
+ canReadFieldValue: Boolean
+ canUpdateFieldValue: Boolean
}
-type ClientConfig {
- appVersion: String
- authProviders: AuthProviders!
- billing: Billing!
- aiModels: [ClientAIModelConfig!]!
- signInPrefilled: Boolean!
- isMultiWorkspaceEnabled: Boolean!
- isEmailVerificationRequired: Boolean!
- defaultSubdomain: String
- frontDomain: String!
- analyticsEnabled: Boolean!
- support: Support!
- isAttachmentPreviewEnabled: Boolean!
- sentry: Sentry!
- captcha: Captcha!
- api: ApiConfig!
- canManageFeatureFlags: Boolean!
- publicFeatureFlags: [PublicFeatureFlag!]!
- isMicrosoftMessagingEnabled: Boolean!
- isMicrosoftCalendarEnabled: Boolean!
- isGoogleMessagingEnabled: Boolean!
- isGoogleCalendarEnabled: Boolean!
- isConfigVariablesInDbEnabled: Boolean!
- isImapSmtpCaldavEnabled: Boolean!
- allowRequestsToTwentyIcons: Boolean!
- calendarBookingPageId: String
- isCloudflareIntegrationEnabled: Boolean!
- isClickHouseConfigured: Boolean!
+type MarketplaceAppDefaultRole {
+ id: String!
+ label: String!
+ description: String
+ canReadAllObjectRecords: Boolean!
+ canUpdateAllObjectRecords: Boolean!
+ canSoftDeleteAllObjectRecords: Boolean!
+ canDestroyAllObjectRecords: Boolean!
+ canUpdateAllSettings: Boolean!
+ canAccessAllTools: Boolean!
+ objectPermissions: [MarketplaceAppRoleObjectPermission!]!
+ fieldPermissions: [MarketplaceAppRoleFieldPermission!]!
+ permissionFlags: [String!]!
}
-type ConfigVariable {
+type MarketplaceApp {
+ id: String!
name: String!
description: String!
- value: JSON
- isSensitive: Boolean!
- source: ConfigSource!
- isEnvOnly: Boolean!
- type: ConfigVariableType!
- options: JSON
+ icon: String!
+ version: String!
+ author: String!
+ category: String!
+ logo: String
+ screenshots: [String!]!
+ aboutDescription: String!
+ providers: [String!]!
+ websiteUrl: String
+ termsUrl: String
+ objects: [MarketplaceAppObject!]!
+ fields: [MarketplaceAppField!]!
+ logicFunctions: [MarketplaceAppLogicFunction!]!
+ frontComponents: [MarketplaceAppFrontComponent!]!
+ defaultRole: MarketplaceAppDefaultRole
+ sourcePackage: String
+ isFeatured: Boolean!
}
-enum ConfigSource {
- ENVIRONMENT
- DATABASE
- DEFAULT
+type PublicDomain {
+ id: UUID!
+ domain: String!
+ isValidated: Boolean!
+ createdAt: DateTime!
}
-enum ConfigVariableType {
- BOOLEAN
- NUMBER
- ARRAY
- STRING
- ENUM
- JSON
+type VerificationRecord {
+ type: String!
+ key: String!
+ value: String!
+ priority: Float
}
-type ConfigVariablesGroupData {
- variables: [ConfigVariable!]!
- name: ConfigVariablesGroup!
- description: String!
- isHiddenOnLoad: Boolean!
+type EmailingDomain {
+ id: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ domain: String!
+ driver: EmailingDomainDriver!
+ status: EmailingDomainStatus!
+ verificationRecords: [VerificationRecord!]
+ verifiedAt: DateTime
}
-enum ConfigVariablesGroup {
- SERVER_CONFIG
- RATE_LIMITING
- STORAGE_CONFIG
- GOOGLE_AUTH
- MICROSOFT_AUTH
- EMAIL_SETTINGS
- LOGGING
- ADVANCED_SETTINGS
- BILLING_CONFIG
- CAPTCHA_CONFIG
- CLOUDFLARE_CONFIG
- LLM
- LOGIC_FUNCTION_CONFIG
- CODE_INTERPRETER_CONFIG
- SSL
- SUPPORT_CHAT_CONFIG
- ANALYTICS_CONFIG
- TOKENS_DURATION
- AWS_SES_SETTINGS
+enum EmailingDomainDriver {
+ AWS_SES
}
-type ConfigVariables {
- groups: [ConfigVariablesGroupData!]!
+enum EmailingDomainStatus {
+ PENDING
+ VERIFIED
+ FAILED
+ TEMPORARY_FAILURE
}
-type JobOperationResult {
- jobId: String!
- success: Boolean!
- error: String
+type AutocompleteResult {
+ text: String!
+ placeId: String!
}
-type DeleteJobsResponse {
- deletedCount: Int!
- results: [JobOperationResult!]!
+type Location {
+ lat: Float
+ lng: Float
}
-type QueueJob {
- id: String!
- name: String!
- data: JSON
- state: JobState!
- timestamp: Float
- failedReason: String
- processedOn: Float
- finishedOn: Float
- attemptsMade: Float!
- returnValue: JSON
- logs: [String!]
- stackTrace: [String!]
+type PlaceDetailsResult {
+ state: String
+ postcode: String
+ city: String
+ country: String
+ location: Location
}
-"""Job state in the queue"""
-enum JobState {
- COMPLETED
- FAILED
- ACTIVE
- WAITING
- DELAYED
- PRIORITIZED
- WAITING_CHILDREN
+type ConnectionParametersOutput {
+ host: String!
+ port: Float!
+ username: String
+ password: String!
+ secure: Boolean
}
-type QueueRetentionConfig {
- completedMaxAge: Float!
- completedMaxCount: Float!
- failedMaxAge: Float!
- failedMaxCount: Float!
+type ImapSmtpCaldavConnectionParameters {
+ IMAP: ConnectionParametersOutput
+ SMTP: ConnectionParametersOutput
+ CALDAV: ConnectionParametersOutput
}
-type QueueJobsResponse {
- jobs: [QueueJob!]!
- count: Float!
- totalCount: Float!
- hasMore: Boolean!
- retentionConfig: QueueRetentionConfig!
+type ConnectedImapSmtpCaldavAccount {
+ id: UUID!
+ handle: String!
+ provider: String!
+ accountOwnerId: UUID!
+ connectionParameters: ImapSmtpCaldavConnectionParameters
}
-type RetryJobsResponse {
- retriedCount: Int!
- results: [JobOperationResult!]!
+type ImapSmtpCaldavConnectionSuccess {
+ success: Boolean!
+ connectedAccountId: String!
}
-type SystemHealthService {
- id: HealthIndicatorId!
- label: String!
- status: AdminPanelHealthServiceStatus!
+type PostgresCredentials {
+ id: UUID!
+ user: String!
+ password: String!
+ workspaceId: UUID!
}
-enum HealthIndicatorId {
- database
- redis
- worker
- connectedAccount
- app
+type UsageBreakdownItem {
+ key: String!
+ label: String
+ creditsUsed: Float!
+}
+
+type UsageTimeSeries {
+ date: String!
+ creditsUsed: Float!
}
-enum AdminPanelHealthServiceStatus {
- OPERATIONAL
- OUTAGE
+type UsageUserDaily {
+ userWorkspaceId: String!
+ dailyUsage: [UsageTimeSeries!]!
}
-type SystemHealth {
- services: [SystemHealthService!]!
+type UsageAnalytics {
+ usageByUser: [UsageBreakdownItem!]!
+ usageByOperationType: [UsageBreakdownItem!]!
+ timeSeries: [UsageTimeSeries!]!
+ periodStart: DateTime!
+ periodEnd: DateTime!
+ userDailyUsage: UsageUserDaily
}
-type UserInfo {
- id: UUID!
- email: String!
- firstName: String
- lastName: String
+type LogicFunctionLogs {
+ """Execution Logs"""
+ logs: String!
}
-type WorkspaceInfo {
+type FrontComponent {
id: UUID!
name: String!
- allowImpersonation: Boolean!
- logo: String
- totalUsers: Float!
- workspaceUrls: WorkspaceUrls!
- users: [UserInfo!]!
- featureFlags: [FeatureFlag!]!
-}
-
-type UserLookup {
- user: UserInfo!
- workspaces: [WorkspaceInfo!]!
+ description: String
+ sourceComponentPath: String!
+ builtComponentPath: String!
+ componentName: String!
+ builtComponentChecksum: String!
+ universalIdentifier: UUID
+ applicationId: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ isHeadless: Boolean!
+ usesSdkClient: Boolean!
+ applicationTokenPair: ApplicationTokenPair
}
-type VersionInfo {
- currentVersion: String
- latestVersion: String!
+type CommandMenuItem {
+ id: UUID!
+ workflowVersionId: UUID
+ frontComponentId: UUID
+ frontComponent: FrontComponent
+ engineComponentKey: EngineComponentKey!
+ label: String!
+ icon: String
+ shortLabel: String
+ position: Float!
+ isPinned: Boolean!
+ availabilityType: CommandMenuItemAvailabilityType!
+ hotKeys: [String!]
+ conditionalAvailabilityExpression: String
+ availabilityObjectMetadataId: UUID
+ applicationId: UUID
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type AdminPanelWorkerQueueHealth {
- id: String!
- queueName: String!
- status: AdminPanelHealthServiceStatus!
+enum EngineComponentKey {
+ NAVIGATE_TO_NEXT_RECORD
+ NAVIGATE_TO_PREVIOUS_RECORD
+ CREATE_NEW_RECORD
+ DELETE_SINGLE_RECORD
+ DELETE_MULTIPLE_RECORDS
+ RESTORE_SINGLE_RECORD
+ RESTORE_MULTIPLE_RECORDS
+ DESTROY_SINGLE_RECORD
+ DESTROY_MULTIPLE_RECORDS
+ ADD_TO_FAVORITES
+ REMOVE_FROM_FAVORITES
+ EXPORT_NOTE_TO_PDF
+ EXPORT_FROM_RECORD_INDEX
+ EXPORT_FROM_RECORD_SHOW
+ UPDATE_MULTIPLE_RECORDS
+ MERGE_MULTIPLE_RECORDS
+ EXPORT_MULTIPLE_RECORDS
+ IMPORT_RECORDS
+ EXPORT_VIEW
+ SEE_DELETED_RECORDS
+ CREATE_NEW_VIEW
+ HIDE_DELETED_RECORDS
+ GO_TO_PEOPLE
+ GO_TO_COMPANIES
+ GO_TO_DASHBOARDS
+ GO_TO_OPPORTUNITIES
+ GO_TO_SETTINGS
+ GO_TO_TASKS
+ GO_TO_NOTES
+ EDIT_RECORD_PAGE_LAYOUT
+ EDIT_DASHBOARD_LAYOUT
+ SAVE_DASHBOARD_LAYOUT
+ CANCEL_DASHBOARD_LAYOUT
+ DUPLICATE_DASHBOARD
+ GO_TO_WORKFLOWS
+ ACTIVATE_WORKFLOW
+ DEACTIVATE_WORKFLOW
+ DISCARD_DRAFT_WORKFLOW
+ TEST_WORKFLOW
+ SEE_ACTIVE_VERSION_WORKFLOW
+ SEE_RUNS_WORKFLOW
+ SEE_VERSIONS_WORKFLOW
+ ADD_NODE_WORKFLOW
+ TIDY_UP_WORKFLOW
+ DUPLICATE_WORKFLOW
+ GO_TO_RUNS
+ SEE_VERSION_WORKFLOW_RUN
+ SEE_WORKFLOW_WORKFLOW_RUN
+ STOP_WORKFLOW_RUN
+ SEE_RUNS_WORKFLOW_VERSION
+ SEE_WORKFLOW_WORKFLOW_VERSION
+ USE_AS_DRAFT_WORKFLOW_VERSION
+ SEE_VERSIONS_WORKFLOW_VERSION
+ SEARCH_RECORDS
+ SEARCH_RECORDS_FALLBACK
+ ASK_AI
+ VIEW_PREVIOUS_AI_CHATS
+ TRIGGER_WORKFLOW_VERSION
+ FRONT_COMPONENT_RENDERER
}
-type AdminPanelHealthServiceData {
- id: HealthIndicatorId!
- label: String!
- description: String!
- status: AdminPanelHealthServiceStatus!
- errorMessage: String
- details: String
- queues: [AdminPanelWorkerQueueHealth!]
+enum CommandMenuItemAvailabilityType {
+ GLOBAL
+ RECORD_SELECTION
+ FALLBACK
}
-type ModelsDevModelSuggestion {
- modelId: String!
+type ToolIndexEntry {
name: String!
- inputCostPerMillionTokens: Float!
- outputCostPerMillionTokens: Float!
- cachedInputCostPerMillionTokens: Float
- cacheCreationCostPerMillionTokens: Float
- contextWindowTokens: Float!
- maxOutputTokens: Float!
- modalities: [String!]!
- supportsReasoning: Boolean!
+ description: String!
+ category: String!
+ objectName: String
+ inputSchema: JSON
}
-type ModelsDevProviderSuggestion {
- id: String!
- modelCount: Float!
- npm: String!
+type AgentMessagePart {
+ id: UUID!
+ messageId: UUID!
+ orderIndex: Int!
+ type: String!
+ textContent: String
+ reasoningContent: String
+ toolName: String
+ toolCallId: String
+ toolInput: JSON
+ toolOutput: JSON
+ state: String
+ errorMessage: String
+ errorDetails: JSON
+ sourceUrlSourceId: String
+ sourceUrlUrl: String
+ sourceUrlTitle: String
+ sourceDocumentSourceId: String
+ sourceDocumentMediaType: String
+ sourceDocumentTitle: String
+ sourceDocumentFilename: String
+ fileMediaType: String
+ fileFilename: String
+ fileId: UUID
+ fileUrl: String
+ providerMetadata: JSON
+ createdAt: DateTime!
}
-type QueueMetricsDataPoint {
- x: Float!
- y: Float!
+type ChannelSyncSuccess {
+ success: Boolean!
}
-type QueueMetricsSeries {
- id: String!
- data: [QueueMetricsDataPoint!]!
+type BarChartSeries {
+ key: String!
+ label: String!
}
-type WorkerQueueMetrics {
- failed: Float!
- completed: Float!
- waiting: Float!
- active: Float!
- delayed: Float!
- failureRate: Float!
- failedData: [Float!]
- completedData: [Float!]
+type BarChartData {
+ data: [JSON!]!
+ indexBy: String!
+ keys: [String!]!
+ series: [BarChartSeries!]!
+ xAxisLabel: String!
+ yAxisLabel: String!
+ showLegend: Boolean!
+ showDataLabels: Boolean!
+ layout: BarChartLayout!
+ groupMode: BarChartGroupMode!
+ hasTooManyGroups: Boolean!
+ formattedToRawLookup: JSON!
}
-type QueueMetricsData {
- queueName: String!
- workers: Float!
- timeRange: QueueMetricsTimeRange!
- details: WorkerQueueMetrics
- data: [QueueMetricsSeries!]!
+type LineChartDataPoint {
+ x: String!
+ y: Float!
}
-enum QueueMetricsTimeRange {
- SevenDays
- OneDay
- TwelveHours
- FourHours
- OneHour
+type LineChartSeries {
+ id: String!
+ label: String!
+ data: [LineChartDataPoint!]!
}
-type Impersonate {
- loginToken: AuthToken!
- workspace: WorkspaceUrlsAndId!
+type LineChartData {
+ series: [LineChartSeries!]!
+ xAxisLabel: String!
+ yAxisLabel: String!
+ showLegend: Boolean!
+ showDataLabels: Boolean!
+ hasTooManyGroups: Boolean!
+ formattedToRawLookup: JSON!
}
-type DevelopmentApplication {
+type PieChartDataItem {
id: String!
- universalIdentifier: String!
+ value: Float!
}
-type WorkspaceMigration {
- applicationUniversalIdentifier: String!
- actions: JSON!
+type PieChartData {
+ data: [PieChartDataItem!]!
+ showLegend: Boolean!
+ showDataLabels: Boolean!
+ showCenterMetric: Boolean!
+ hasTooManyGroups: Boolean!
+ formattedToRawLookup: JSON!
}
-type File {
+type DuplicatedDashboard {
id: UUID!
- path: String!
- size: Float!
- createdAt: DateTime!
+ title: String
+ pageLayoutId: UUID
+ position: Float!
+ createdAt: String!
+ updatedAt: String!
}
-type MarketplaceAppField {
- name: String!
- type: String!
- label: String!
- description: String
- icon: String
- objectUniversalIdentifier: String
- universalIdentifier: String
+type EventLogRecord {
+ event: String!
+ timestamp: DateTime!
+ userId: String
+ properties: JSON
+ recordId: String
+ objectMetadataId: String
+ isCustom: Boolean
}
-type MarketplaceAppObject {
- universalIdentifier: String!
- nameSingular: String!
- namePlural: String!
- labelSingular: String!
- labelPlural: String!
- description: String
- icon: String
- fields: [MarketplaceAppField!]!
+type EventLogPageInfo {
+ endCursor: String
+ hasNextPage: Boolean!
}
-type MarketplaceAppLogicFunction {
- name: String!
- description: String
- timeoutSeconds: Int
+type EventLogQueryResult {
+ records: [EventLogRecord!]!
+ totalCount: Int!
+ pageInfo: EventLogPageInfo!
}
-type MarketplaceAppFrontComponent {
+type Skill {
+ id: UUID!
name: String!
+ label: String!
+ icon: String
description: String
+ content: String!
+ isCustom: Boolean!
+ isActive: Boolean!
+ applicationId: UUID
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type MarketplaceAppRoleObjectPermission {
- objectUniversalIdentifier: String!
- canReadObjectRecords: Boolean
- canUpdateObjectRecords: Boolean
- canSoftDeleteObjectRecords: Boolean
- canDestroyObjectRecords: Boolean
+type AgentChatThread {
+ id: UUID!
+ title: String
+ totalInputTokens: Int!
+ totalOutputTokens: Int!
+ contextWindowTokens: Int
+ conversationSize: Int!
+ totalInputCredits: Float!
+ totalOutputCredits: Float!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type MarketplaceAppRoleFieldPermission {
- objectUniversalIdentifier: String!
- fieldUniversalIdentifier: String!
- canReadFieldValue: Boolean
- canUpdateFieldValue: Boolean
+type AgentMessage {
+ id: UUID!
+ threadId: UUID!
+ turnId: UUID!
+ agentId: UUID
+ role: String!
+ parts: [AgentMessagePart!]!
+ createdAt: DateTime!
}
-type MarketplaceAppDefaultRole {
- id: String!
- label: String!
- description: String
- canReadAllObjectRecords: Boolean!
- canUpdateAllObjectRecords: Boolean!
- canSoftDeleteAllObjectRecords: Boolean!
- canDestroyAllObjectRecords: Boolean!
- canUpdateAllSettings: Boolean!
- canAccessAllTools: Boolean!
- objectPermissions: [MarketplaceAppRoleObjectPermission!]!
- fieldPermissions: [MarketplaceAppRoleFieldPermission!]!
- permissionFlags: [String!]!
+type AISystemPromptSection {
+ title: String!
+ content: String!
+ estimatedTokenCount: Int!
}
-type MarketplaceApp {
- id: String!
- name: String!
- description: String!
- icon: String!
- version: String!
- author: String!
- category: String!
- logo: String
- screenshots: [String!]!
- aboutDescription: String!
- providers: [String!]!
- websiteUrl: String
- termsUrl: String
- objects: [MarketplaceAppObject!]!
- fields: [MarketplaceAppField!]!
- logicFunctions: [MarketplaceAppLogicFunction!]!
- frontComponents: [MarketplaceAppFrontComponent!]!
- defaultRole: MarketplaceAppDefaultRole
- sourcePackage: String
- isFeatured: Boolean!
+type AISystemPromptPreview {
+ sections: [AISystemPromptSection!]!
+ estimatedTokenCount: Int!
}
-type UsageBreakdownItem {
- key: String!
- label: String
- creditsUsed: Float!
-}
+type AgentChatThreadEdge {
+ """The node containing the AgentChatThread"""
+ node: AgentChatThread!
-type UsageTimeSeries {
- date: String!
- creditsUsed: Float!
+ """Cursor for this node."""
+ cursor: ConnectionCursor!
}
-type UsageUserDaily {
- userWorkspaceId: String!
- dailyUsage: [UsageTimeSeries!]!
-}
+type AgentChatThreadConnection {
+ """Paging information"""
+ pageInfo: PageInfo!
-type UsageAnalytics {
- usageByUser: [UsageBreakdownItem!]!
- usageByOperationType: [UsageBreakdownItem!]!
- timeSeries: [UsageTimeSeries!]!
- periodStart: DateTime!
- periodEnd: DateTime!
- userDailyUsage: UsageUserDaily
+ """Array of edges."""
+ edges: [AgentChatThreadEdge!]!
}
-type PublicDomain {
+type AgentTurnEvaluation {
id: UUID!
- domain: String!
- isValidated: Boolean!
+ turnId: UUID!
+ score: Int!
+ comment: String
createdAt: DateTime!
}
-type VerificationRecord {
- type: String!
- key: String!
- value: String!
- priority: Float
+type AgentTurn {
+ id: UUID!
+ threadId: UUID!
+ agentId: UUID
+ evaluations: [AgentTurnEvaluation!]!
+ messages: [AgentMessage!]!
+ createdAt: DateTime!
}
-type EmailingDomain {
+type CalendarChannel {
id: UUID!
+ handle: String!
+ syncStatus: CalendarChannelSyncStatus!
+ syncStage: CalendarChannelSyncStage!
+ visibility: CalendarChannelVisibility!
+ isContactAutoCreationEnabled: Boolean!
+ contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy!
+ isSyncEnabled: Boolean!
+ syncedAt: DateTime
+ syncStageStartedAt: DateTime
+ throttleFailureCount: Float!
+ connectedAccountId: UUID!
createdAt: DateTime!
updatedAt: DateTime!
- domain: String!
- driver: EmailingDomainDriver!
- status: EmailingDomainStatus!
- verificationRecords: [VerificationRecord!]
- verifiedAt: DateTime
}
-enum EmailingDomainDriver {
- AWS_SES
+enum CalendarChannelSyncStatus {
+ NOT_SYNCED
+ ONGOING
+ ACTIVE
+ FAILED_INSUFFICIENT_PERMISSIONS
+ FAILED_UNKNOWN
}
-enum EmailingDomainStatus {
- PENDING
- VERIFIED
+enum CalendarChannelSyncStage {
+ PENDING_CONFIGURATION
+ CALENDAR_EVENT_LIST_FETCH_PENDING
+ CALENDAR_EVENT_LIST_FETCH_SCHEDULED
+ CALENDAR_EVENT_LIST_FETCH_ONGOING
+ CALENDAR_EVENTS_IMPORT_PENDING
+ CALENDAR_EVENTS_IMPORT_SCHEDULED
+ CALENDAR_EVENTS_IMPORT_ONGOING
FAILED
- TEMPORARY_FAILURE
-}
-
-type AutocompleteResult {
- text: String!
- placeId: String!
-}
-
-type Location {
- lat: Float
- lng: Float
}
-type PlaceDetailsResult {
- state: String
- postcode: String
- city: String
- country: String
- location: Location
+enum CalendarChannelVisibility {
+ METADATA
+ SHARE_EVERYTHING
}
-type ConnectionParametersOutput {
- host: String!
- port: Float!
- username: String
- password: String!
- secure: Boolean
+enum CalendarChannelContactAutoCreationPolicy {
+ AS_PARTICIPANT_AND_ORGANIZER
+ AS_PARTICIPANT
+ AS_ORGANIZER
+ NONE
}
-type ImapSmtpCaldavConnectionParameters {
- IMAP: ConnectionParametersOutput
- SMTP: ConnectionParametersOutput
- CALDAV: ConnectionParametersOutput
+type ConnectedAccountDTO {
+ id: UUID!
+ handle: String!
+ provider: String!
+ lastCredentialsRefreshedAt: DateTime
+ authFailedAt: DateTime
+ handleAliases: [String!]
+ scopes: [String!]
+ lastSignedInAt: DateTime
+ userWorkspaceId: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type ConnectedImapSmtpCaldavAccount {
+type MessageChannel {
id: UUID!
+ visibility: MessageChannelVisibility!
handle: String!
- provider: String!
- accountOwnerId: UUID!
- connectionParameters: ImapSmtpCaldavConnectionParameters
+ type: MessageChannelType!
+ isContactAutoCreationEnabled: Boolean!
+ contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy!
+ messageFolderImportPolicy: MessageFolderImportPolicy!
+ excludeNonProfessionalEmails: Boolean!
+ excludeGroupEmails: Boolean!
+ pendingGroupEmailsAction: MessageChannelPendingGroupEmailsAction!
+ isSyncEnabled: Boolean!
+ syncedAt: DateTime
+ syncStatus: MessageChannelSyncStatus!
+ syncStage: MessageChannelSyncStage!
+ syncStageStartedAt: DateTime
+ throttleFailureCount: Float!
+ throttleRetryAfter: DateTime
+ connectedAccountId: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type ImapSmtpCaldavConnectionSuccess {
- success: Boolean!
- connectedAccountId: String!
+enum MessageChannelVisibility {
+ METADATA
+ SUBJECT
+ SHARE_EVERYTHING
}
-type PostgresCredentials {
- id: UUID!
- user: String!
- password: String!
- workspaceId: UUID!
+enum MessageChannelType {
+ EMAIL
+ SMS
}
-type ChannelSyncSuccess {
- success: Boolean!
+enum MessageChannelContactAutoCreationPolicy {
+ SENT_AND_RECEIVED
+ SENT
+ NONE
}
-type BarChartSeries {
- key: String!
- label: String!
+enum MessageFolderImportPolicy {
+ ALL_FOLDERS
+ SELECTED_FOLDERS
}
-type BarChartData {
- data: [JSON!]!
- indexBy: String!
- keys: [String!]!
- series: [BarChartSeries!]!
- xAxisLabel: String!
- yAxisLabel: String!
- showLegend: Boolean!
- showDataLabels: Boolean!
- layout: BarChartLayout!
- groupMode: BarChartGroupMode!
- hasTooManyGroups: Boolean!
- formattedToRawLookup: JSON!
+enum MessageChannelPendingGroupEmailsAction {
+ GROUP_EMAILS_DELETION
+ GROUP_EMAILS_IMPORT
+ NONE
}
-type LineChartDataPoint {
- x: String!
- y: Float!
+enum MessageChannelSyncStatus {
+ NOT_SYNCED
+ ONGOING
+ ACTIVE
+ FAILED_INSUFFICIENT_PERMISSIONS
+ FAILED_UNKNOWN
}
-type LineChartSeries {
- id: String!
- label: String!
- data: [LineChartDataPoint!]!
+enum MessageChannelSyncStage {
+ PENDING_CONFIGURATION
+ MESSAGE_LIST_FETCH_PENDING
+ MESSAGE_LIST_FETCH_SCHEDULED
+ MESSAGE_LIST_FETCH_ONGOING
+ MESSAGES_IMPORT_PENDING
+ MESSAGES_IMPORT_SCHEDULED
+ MESSAGES_IMPORT_ONGOING
+ FAILED
}
-type LineChartData {
- series: [LineChartSeries!]!
- xAxisLabel: String!
- yAxisLabel: String!
- showLegend: Boolean!
- showDataLabels: Boolean!
- hasTooManyGroups: Boolean!
- formattedToRawLookup: JSON!
+type MessageFolder {
+ id: UUID!
+ name: String
+ isSentFolder: Boolean!
+ isSynced: Boolean!
+ parentFolderId: UUID
+ externalId: String
+ pendingSyncAction: MessageFolderPendingSyncAction!
+ messageChannelId: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
-type PieChartDataItem {
- id: String!
- value: Float!
+enum MessageFolderPendingSyncAction {
+ FOLDER_DELETION
+ NONE
}
-type PieChartData {
- data: [PieChartDataItem!]!
- showLegend: Boolean!
- showDataLabels: Boolean!
- showCenterMetric: Boolean!
- hasTooManyGroups: Boolean!
- formattedToRawLookup: JSON!
+type CollectionHash {
+ collectionName: AllMetadataName!
+ hash: String!
}
-type DuplicatedDashboard {
+enum AllMetadataName {
+ fieldMetadata
+ objectMetadata
+ view
+ viewField
+ viewFieldGroup
+ viewGroup
+ viewSort
+ rowLevelPermissionPredicate
+ rowLevelPermissionPredicateGroup
+ viewFilterGroup
+ index
+ logicFunction
+ viewFilter
+ role
+ roleTarget
+ agent
+ skill
+ pageLayout
+ pageLayoutWidget
+ pageLayoutTab
+ commandMenuItem
+ navigationMenuItem
+ permissionFlag
+ objectPermission
+ frontComponent
+ webhook
+}
+
+type MinimalObjectMetadata {
id: UUID!
- title: String
- pageLayoutId: UUID
- position: Float!
- createdAt: String!
- updatedAt: String!
+ nameSingular: String!
+ namePlural: String!
+ labelSingular: String!
+ labelPlural: String!
+ icon: String
+ color: String
+ isCustom: Boolean!
+ isActive: Boolean!
+ isSystem: Boolean!
+ isRemote: Boolean!
}
-type EventLogRecord {
- event: String!
- timestamp: DateTime!
- userId: String
- properties: JSON
- recordId: String
- objectMetadataId: String
- isCustom: Boolean
+type MinimalView {
+ id: UUID!
+ type: ViewType!
+ key: ViewKey
+ objectMetadataId: UUID!
}
-type EventLogPageInfo {
- endCursor: String
- hasNextPage: Boolean!
+type MinimalMetadata {
+ objectMetadataItems: [MinimalObjectMetadata!]!
+ views: [MinimalView!]!
+ collectionHashes: [CollectionHash!]!
}
-type EventLogQueryResult {
- records: [EventLogRecord!]!
- totalCount: Int!
- pageInfo: EventLogPageInfo!
+type Webhook {
+ id: UUID!
+ targetUrl: String!
+ operations: [String!]!
+ description: String
+ secret: String!
+ applicationId: UUID!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ deletedAt: DateTime
}
type Query {
navigationMenuItems: [NavigationMenuItem!]!
navigationMenuItem(id: UUID!): NavigationMenuItem
- getPageLayoutWidgets(pageLayoutTabId: String!): [PageLayoutWidget!]!
- getPageLayoutWidget(id: String!): PageLayoutWidget!
- getPageLayoutTabs(pageLayoutId: String!): [PageLayoutTab!]!
- getPageLayoutTab(id: String!): PageLayoutTab!
- getPageLayouts(objectMetadataId: String, pageLayoutType: PageLayoutType): [PageLayout!]!
- getPageLayout(id: String!): PageLayout
+ getViewFilterGroups(viewId: String): [ViewFilterGroup!]!
+ getViewFilterGroup(id: String!): ViewFilterGroup
+ getViewFilters(viewId: String): [ViewFilter!]!
+ getViewFilter(id: String!): ViewFilter
getViews(objectMetadataId: String, viewTypes: [ViewType!]): [View!]!
getView(id: String!): View
getViewSorts(viewId: String): [ViewSort!]!
getViewSort(id: String!): ViewSort
getViewFieldGroups(viewId: String!): [ViewFieldGroup!]!
getViewFieldGroup(id: String!): ViewFieldGroup
+ apiKeys: [ApiKey!]!
+ apiKey(input: GetApiKeyInput!): ApiKey
+ enterprisePortalSession(returnUrlPath: String): String
+ enterpriseCheckoutSession(billingInterval: String): String
+ enterpriseSubscriptionStatus: EnterpriseSubscriptionStatusDTO
+ billingPortalSession(returnUrlPath: String): BillingSession!
+ listPlans: [BillingPlan!]!
+ getMeteredProductsUsage: [BillingMeteredProductUsage!]!
+ findWorkspaceInvitations: [WorkspaceInvitation!]!
+ getApprovedAccessDomains: [ApprovedAccessDomain!]!
+ getPageLayoutTabs(pageLayoutId: String!): [PageLayoutTab!]!
+ getPageLayoutTab(id: String!): PageLayoutTab!
+ getPageLayouts(objectMetadataId: String, pageLayoutType: PageLayoutType): [PageLayout!]!
+ getPageLayout(id: String!): PageLayout
+ getPageLayoutWidgets(pageLayoutTabId: String!): [PageLayoutWidget!]!
+ getPageLayoutWidget(id: String!): PageLayoutWidget!
findOneLogicFunction(input: LogicFunctionIdInput!): LogicFunction!
findManyLogicFunctions: [LogicFunction!]!
getAvailablePackages(input: LogicFunctionIdInput!): JSON!
@@ -3179,19 +3194,9 @@ type Query {
"""Specify to filter the records returned."""
filter: IndexFilter! = {}
): IndexConnection!
- findManyAgents: [Agent!]!
- findOneAgent(input: AgentIdInput!): Agent!
- billingPortalSession(returnUrlPath: String): BillingSession!
- listPlans: [BillingPlan!]!
- getMeteredProductsUsage: [BillingMeteredProductUsage!]!
- enterprisePortalSession(returnUrlPath: String): String
- enterpriseCheckoutSession(billingInterval: String): String
- enterpriseSubscriptionStatus: EnterpriseSubscriptionStatusDTO
+ findManyAgents: [Agent!]!
+ findOneAgent(input: AgentIdInput!): Agent!
getRoles: [Role!]!
- findWorkspaceInvitations: [WorkspaceInvitation!]!
- getApprovedAccessDomains: [ApprovedAccessDomain!]!
- apiKeys: [ApiKey!]!
- apiKey(input: GetApiKeyInput!): ApiKey
getToolIndex: [ToolIndexEntry!]!
getToolInputSchema(toolName: String!): JSON
field(
@@ -3207,25 +3212,6 @@ type Query {
): FieldConnection!
getViewGroups(viewId: String): [ViewGroup!]!
getViewGroup(id: String!): ViewGroup
- getViewFilters(viewId: String): [ViewFilter!]!
- getViewFilter(id: String!): ViewFilter
- getViewFilterGroups(viewId: String): [ViewFilterGroup!]!
- getViewFilterGroup(id: String!): ViewFilterGroup
- currentUser: User!
- currentWorkspace: Workspace!
- getPublicWorkspaceDataByDomain(origin: String): PublicWorkspaceData!
- findApplicationRegistrationByClientId(clientId: String!): PublicApplicationRegistration
- findApplicationRegistrationByUniversalIdentifier(universalIdentifier: String!): ApplicationRegistration
- findManyApplicationRegistrations: [ApplicationRegistration!]!
- findOneApplicationRegistration(id: String!): ApplicationRegistration!
- findApplicationRegistrationStats(id: String!): ApplicationRegistrationStats!
- findApplicationRegistrationVariables(applicationRegistrationId: String!): [ApplicationRegistrationVariable!]!
- applicationRegistrationTarballUrl(id: String!): String
- checkUserExists(email: String!, captchaToken: String): CheckUserExist!
- checkWorkspaceInviteHashIsValid(inviteHash: String!): WorkspaceInviteHashValid!
- findWorkspaceFromInviteHash(inviteHash: String!): Workspace!
- validatePasswordResetToken(passwordResetToken: String!): ValidatePasswordResetToken!
- getSSOIdentityProviders: [FindAvailableSSOIDP!]!
myMessageFolders(messageChannelId: UUID): [MessageFolder!]!
myMessageChannels(connectedAccountId: UUID): [MessageChannel!]!
myConnectedAccounts: [ConnectedAccountDTO!]!
@@ -3254,6 +3240,21 @@ type Query {
pieChartData(input: PieChartDataInput!): PieChartData!
lineChartData(input: LineChartDataInput!): LineChartData!
barChartData(input: BarChartDataInput!): BarChartData!
+ checkUserExists(email: String!, captchaToken: String): CheckUserExist!
+ checkWorkspaceInviteHashIsValid(inviteHash: String!): WorkspaceInviteHashValid!
+ findWorkspaceFromInviteHash(inviteHash: String!): Workspace!
+ validatePasswordResetToken(passwordResetToken: String!): ValidatePasswordResetToken!
+ findApplicationRegistrationByClientId(clientId: String!): PublicApplicationRegistration
+ findApplicationRegistrationByUniversalIdentifier(universalIdentifier: String!): ApplicationRegistration
+ findManyApplicationRegistrations: [ApplicationRegistration!]!
+ findOneApplicationRegistration(id: String!): ApplicationRegistration!
+ findApplicationRegistrationStats(id: String!): ApplicationRegistrationStats!
+ findApplicationRegistrationVariables(applicationRegistrationId: String!): [ApplicationRegistrationVariable!]!
+ applicationRegistrationTarballUrl(id: String!): String
+ currentUser: User!
+ currentWorkspace: Workspace!
+ getPublicWorkspaceDataByDomain(origin: String): PublicWorkspaceData!
+ getSSOIdentityProviders: [FindAvailableSSOIDP!]!
getConnectedImapSmtpCaldavAccount(id: UUID!): ConnectedImapSmtpCaldavAccount!
getAutoCompleteAddress(address: String!, token: String!, country: String, isFieldCity: Boolean): [AutocompleteResult!]!
getAddressDetails(placeId: String!, token: String!): PlaceDetailsResult!
@@ -3279,6 +3280,10 @@ type Query {
getUsageAnalytics(input: UsageAnalyticsInput): UsageAnalytics!
}
+input GetApiKeyInput {
+ id: UUID!
+}
+
input LogicFunctionIdInput {
"""The id of the function."""
id: ID!
@@ -3289,10 +3294,6 @@ input AgentIdInput {
id: UUID!
}
-input GetApiKeyInput {
- id: UUID!
-}
-
input AgentChatThreadFilter {
and: [AgentChatThreadFilter!]
or: [AgentChatThreadFilter!]
@@ -3403,18 +3404,14 @@ type Mutation {
uploadWorkspaceMemberProfilePicture(file: Upload!): FileWithSignedUrl!
uploadFilesFieldFile(file: Upload!, fieldMetadataId: String!): FileWithSignedUrl!
uploadFilesFieldFileByUniversalIdentifier(file: Upload!, fieldMetadataUniversalIdentifier: String!): FileWithSignedUrl!
- createObjectEvent(event: String!, recordId: UUID!, objectMetadataId: UUID!, properties: JSON): Analytics!
- trackAnalytics(type: AnalyticsType!, name: String, event: String, properties: JSON): Analytics!
- createPageLayoutWidget(input: CreatePageLayoutWidgetInput!): PageLayoutWidget!
- updatePageLayoutWidget(id: String!, input: UpdatePageLayoutWidgetInput!): PageLayoutWidget!
- destroyPageLayoutWidget(id: String!): Boolean!
- createPageLayoutTab(input: CreatePageLayoutTabInput!): PageLayoutTab!
- updatePageLayoutTab(id: String!, input: UpdatePageLayoutTabInput!): PageLayoutTab!
- destroyPageLayoutTab(id: String!): Boolean!
- createPageLayout(input: CreatePageLayoutInput!): PageLayout!
- updatePageLayout(id: String!, input: UpdatePageLayoutInput!): PageLayout!
- destroyPageLayout(id: String!): Boolean!
- updatePageLayoutWithTabsAndWidgets(id: String!, input: UpdatePageLayoutWithTabsInput!): PageLayout!
+ createViewFilterGroup(input: CreateViewFilterGroupInput!): ViewFilterGroup!
+ updateViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): ViewFilterGroup!
+ deleteViewFilterGroup(id: String!): Boolean!
+ destroyViewFilterGroup(id: String!): Boolean!
+ createViewFilter(input: CreateViewFilterInput!): ViewFilter!
+ updateViewFilter(input: UpdateViewFilterInput!): ViewFilter!
+ deleteViewFilter(input: DeleteViewFilterInput!): ViewFilter!
+ destroyViewFilter(input: DestroyViewFilterInput!): ViewFilter!
createView(input: CreateViewInput!): View!
updateView(id: String!, input: UpdateViewInput!): View!
deleteView(id: String!): Boolean!
@@ -3429,6 +3426,40 @@ type Mutation {
deleteViewFieldGroup(input: DeleteViewFieldGroupInput!): ViewFieldGroup!
destroyViewFieldGroup(input: DestroyViewFieldGroupInput!): ViewFieldGroup!
upsertFieldsWidget(input: UpsertFieldsWidgetInput!): View!
+ createApiKey(input: CreateApiKeyInput!): ApiKey!
+ updateApiKey(input: UpdateApiKeyInput!): ApiKey
+ revokeApiKey(input: RevokeApiKeyInput!): ApiKey
+ assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!
+ createObjectEvent(event: String!, recordId: UUID!, objectMetadataId: UUID!, properties: JSON): Analytics!
+ trackAnalytics(type: AnalyticsType!, name: String, event: String, properties: JSON): Analytics!
+ refreshEnterpriseValidityToken: Boolean!
+ setEnterpriseKey(enterpriseKey: String!): EnterpriseLicenseInfoDTO!
+ skipSyncEmailOnboardingStep: OnboardingStepSuccess!
+ skipBookOnboardingStep: OnboardingStepSuccess!
+ checkoutSession(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String): BillingSession!
+ switchSubscriptionInterval: BillingUpdate!
+ switchBillingPlan: BillingUpdate!
+ cancelSwitchBillingPlan: BillingUpdate!
+ cancelSwitchBillingInterval: BillingUpdate!
+ setMeteredSubscriptionPrice(priceId: String!): BillingUpdate!
+ endSubscriptionTrialPeriod: BillingEndTrialPeriod!
+ cancelSwitchMeteredPrice: BillingUpdate!
+ deleteWorkspaceInvitation(appTokenId: String!): String!
+ resendWorkspaceInvitation(appTokenId: String!): SendInvitations!
+ sendInvitations(emails: [String!]!, roleId: UUID): SendInvitations!
+ createApprovedAccessDomain(input: CreateApprovedAccessDomainInput!): ApprovedAccessDomain!
+ deleteApprovedAccessDomain(input: DeleteApprovedAccessDomainInput!): Boolean!
+ validateApprovedAccessDomain(input: ValidateApprovedAccessDomainInput!): ApprovedAccessDomain!
+ createPageLayoutTab(input: CreatePageLayoutTabInput!): PageLayoutTab!
+ updatePageLayoutTab(id: String!, input: UpdatePageLayoutTabInput!): PageLayoutTab!
+ destroyPageLayoutTab(id: String!): Boolean!
+ createPageLayout(input: CreatePageLayoutInput!): PageLayout!
+ updatePageLayout(id: String!, input: UpdatePageLayoutInput!): PageLayout!
+ destroyPageLayout(id: String!): Boolean!
+ updatePageLayoutWithTabsAndWidgets(id: String!, input: UpdatePageLayoutWithTabsInput!): PageLayout!
+ createPageLayoutWidget(input: CreatePageLayoutWidgetInput!): PageLayoutWidget!
+ updatePageLayoutWidget(id: String!, input: UpdatePageLayoutWidgetInput!): PageLayoutWidget!
+ destroyPageLayoutWidget(id: String!): Boolean!
deleteOneLogicFunction(input: LogicFunctionIdInput!): LogicFunction!
createOneLogicFunction(input: CreateLogicFunctionFromSourceInput!): LogicFunction!
executeOneLogicFunction(input: ExecuteOneLogicFunctionInput!): LogicFunctionExecutionResult!
@@ -3450,16 +3481,6 @@ type Mutation {
createOneAgent(input: CreateAgentInput!): Agent!
updateOneAgent(input: UpdateAgentInput!): Agent!
deleteOneAgent(input: AgentIdInput!): Agent!
- checkoutSession(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String): BillingSession!
- switchSubscriptionInterval: BillingUpdate!
- switchBillingPlan: BillingUpdate!
- cancelSwitchBillingPlan: BillingUpdate!
- cancelSwitchBillingInterval: BillingUpdate!
- setMeteredSubscriptionPrice(priceId: String!): BillingUpdate!
- endSubscriptionTrialPeriod: BillingEndTrialPeriod!
- cancelSwitchMeteredPrice: BillingUpdate!
- refreshEnterpriseValidityToken: Boolean!
- setEnterpriseKey(enterpriseKey: String!): EnterpriseLicenseInfoDTO!
updateWorkspaceMemberRole(workspaceMemberId: UUID!, roleId: UUID!): WorkspaceMember!
createOneRole(createRoleInput: CreateRoleInput!): Role!
updateOneRole(updateRoleInput: UpdateRoleInput!): Role!
@@ -3470,18 +3491,6 @@ type Mutation {
upsertRowLevelPermissionPredicates(input: UpsertRowLevelPermissionPredicatesInput!): UpsertRowLevelPermissionPredicatesResult!
assignRoleToAgent(agentId: UUID!, roleId: UUID!): Boolean!
removeRoleFromAgent(agentId: UUID!): Boolean!
- skipSyncEmailOnboardingStep: OnboardingStepSuccess!
- skipBookOnboardingStep: OnboardingStepSuccess!
- deleteWorkspaceInvitation(appTokenId: String!): String!
- resendWorkspaceInvitation(appTokenId: String!): SendInvitations!
- sendInvitations(emails: [String!]!, roleId: UUID): SendInvitations!
- createApprovedAccessDomain(input: CreateApprovedAccessDomainInput!): ApprovedAccessDomain!
- deleteApprovedAccessDomain(input: DeleteApprovedAccessDomainInput!): Boolean!
- validateApprovedAccessDomain(input: ValidateApprovedAccessDomainInput!): ApprovedAccessDomain!
- createApiKey(input: CreateApiKeyInput!): ApiKey!
- updateApiKey(input: UpdateApiKeyInput!): ApiKey
- revokeApiKey(input: RevokeApiKeyInput!): ApiKey
- assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!
createOneField(input: CreateOneFieldMetadataInput!): Field!
updateOneField(input: UpdateOneFieldMetadataInput!): Field!
deleteOneField(input: DeleteOneFieldInput!): Field!
@@ -3490,31 +3499,23 @@ type Mutation {
updateViewGroup(input: UpdateViewGroupInput!): ViewGroup!
deleteViewGroup(input: DeleteViewGroupInput!): ViewGroup!
destroyViewGroup(input: DestroyViewGroupInput!): ViewGroup!
- createViewFilter(input: CreateViewFilterInput!): ViewFilter!
- updateViewFilter(input: UpdateViewFilterInput!): ViewFilter!
- deleteViewFilter(input: DeleteViewFilterInput!): ViewFilter!
- destroyViewFilter(input: DestroyViewFilterInput!): ViewFilter!
- createViewFilterGroup(input: CreateViewFilterGroupInput!): ViewFilterGroup!
- updateViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): ViewFilterGroup!
- deleteViewFilterGroup(id: String!): Boolean!
- destroyViewFilterGroup(id: String!): Boolean!
- deleteUser: User!
- deleteUserFromWorkspace(workspaceMemberIdToDelete: String!): UserWorkspace!
- updateUserEmail(newEmail: String!, verifyEmailRedirectPath: String): Boolean!
- resendEmailVerificationToken(email: String!, origin: String!): ResendEmailVerificationToken!
- activateWorkspace(data: ActivateWorkspaceInput!): Workspace!
- updateWorkspace(data: UpdateWorkspaceInput!): Workspace!
- deleteCurrentWorkspace: Workspace!
- checkCustomDomainValidRecords: DomainValidRecords
- createApplicationRegistration(input: CreateApplicationRegistrationInput!): CreateApplicationRegistration!
- updateApplicationRegistration(input: UpdateApplicationRegistrationInput!): ApplicationRegistration!
- deleteApplicationRegistration(id: String!): Boolean!
- rotateApplicationRegistrationClientSecret(id: String!): RotateClientSecret!
- createApplicationRegistrationVariable(input: CreateApplicationRegistrationVariableInput!): ApplicationRegistrationVariable!
- updateApplicationRegistrationVariable(input: UpdateApplicationRegistrationVariableInput!): ApplicationRegistrationVariable!
- deleteApplicationRegistrationVariable(id: String!): Boolean!
- uploadAppTarball(file: Upload!, universalIdentifier: String): ApplicationRegistration!
- transferApplicationRegistrationOwnership(applicationRegistrationId: String!, targetWorkspaceSubdomain: String!): ApplicationRegistration!
+ updateMessageFolder(input: UpdateMessageFolderInput!): MessageFolder!
+ updateMessageFolders(input: UpdateMessageFoldersInput!): [MessageFolder!]!
+ updateMessageChannel(input: UpdateMessageChannelInput!): MessageChannel!
+ deleteConnectedAccount(id: UUID!): ConnectedAccountDTO!
+ updateCalendarChannel(input: UpdateCalendarChannelInput!): CalendarChannel!
+ createWebhook(input: CreateWebhookInput!): Webhook!
+ updateWebhook(input: UpdateWebhookInput!): Webhook!
+ deleteWebhook(id: UUID!): Webhook!
+ createChatThread: AgentChatThread!
+ createSkill(input: CreateSkillInput!): Skill!
+ updateSkill(input: UpdateSkillInput!): Skill!
+ deleteSkill(id: UUID!): Skill!
+ activateSkill(id: UUID!): Skill!
+ deactivateSkill(id: UUID!): Skill!
+ evaluateAgentTurn(turnId: UUID!): AgentTurnEvaluation!
+ runEvaluationInput(agentId: UUID!, input: String!): AgentTurn!
+ duplicateDashboard(id: UUID!): DuplicatedDashboard!
getAuthorizationUrlForSSO(input: GetAuthorizationUrlForSSOInput!): GetAuthorizationUrlForSSO!
getLoginTokenFromCredentials(email: String!, password: String!, captchaToken: String, locale: String, verifyEmailRedirectPath: String, origin: String!): LoginToken!
signIn(email: String!, password: String!, captchaToken: String, locale: String, verifyEmailRedirectPath: String): AvailableWorkspacesAndAccessTokens!
@@ -3531,31 +3532,31 @@ type Mutation {
generateApiKeyToken(apiKeyId: UUID!, expiresAt: String!): ApiKeyToken!
emailPasswordResetLink(email: String!, workspaceId: UUID): EmailPasswordResetLink!
updatePasswordViaResetToken(passwordResetToken: String!, newPassword: String!): InvalidatePassword!
+ createApplicationRegistration(input: CreateApplicationRegistrationInput!): CreateApplicationRegistration!
+ updateApplicationRegistration(input: UpdateApplicationRegistrationInput!): ApplicationRegistration!
+ deleteApplicationRegistration(id: String!): Boolean!
+ rotateApplicationRegistrationClientSecret(id: String!): RotateClientSecret!
+ createApplicationRegistrationVariable(input: CreateApplicationRegistrationVariableInput!): ApplicationRegistrationVariable!
+ updateApplicationRegistrationVariable(input: UpdateApplicationRegistrationVariableInput!): ApplicationRegistrationVariable!
+ deleteApplicationRegistrationVariable(id: String!): Boolean!
+ uploadAppTarball(file: Upload!, universalIdentifier: String): ApplicationRegistration!
+ transferApplicationRegistrationOwnership(applicationRegistrationId: String!, targetWorkspaceSubdomain: String!): ApplicationRegistration!
initiateOTPProvisioning(loginToken: String!, origin: String!): InitiateTwoFactorAuthenticationProvisioning!
initiateOTPProvisioningForAuthenticatedUser: InitiateTwoFactorAuthenticationProvisioning!
deleteTwoFactorAuthenticationMethod(twoFactorAuthenticationMethodId: UUID!): DeleteTwoFactorAuthenticationMethod!
verifyTwoFactorAuthenticationMethodForAuthenticatedUser(otp: String!): VerifyTwoFactorAuthenticationMethod!
+ deleteUser: User!
+ deleteUserFromWorkspace(workspaceMemberIdToDelete: String!): UserWorkspace!
+ updateUserEmail(newEmail: String!, verifyEmailRedirectPath: String): Boolean!
+ resendEmailVerificationToken(email: String!, origin: String!): ResendEmailVerificationToken!
+ activateWorkspace(data: ActivateWorkspaceInput!): Workspace!
+ updateWorkspace(data: UpdateWorkspaceInput!): Workspace!
+ deleteCurrentWorkspace: Workspace!
+ checkCustomDomainValidRecords: DomainValidRecords
createOIDCIdentityProvider(input: SetupOIDCSsoInput!): SetupSso!
createSAMLIdentityProvider(input: SetupSAMLSsoInput!): SetupSso!
deleteSSOIdentityProvider(input: DeleteSsoInput!): DeleteSso!
editSSOIdentityProvider(input: EditSsoInput!): EditSso!
- updateMessageFolder(input: UpdateMessageFolderInput!): MessageFolder!
- updateMessageFolders(input: UpdateMessageFoldersInput!): [MessageFolder!]!
- updateMessageChannel(input: UpdateMessageChannelInput!): MessageChannel!
- deleteConnectedAccount(id: UUID!): ConnectedAccountDTO!
- updateCalendarChannel(input: UpdateCalendarChannelInput!): CalendarChannel!
- createWebhook(input: CreateWebhookInput!): Webhook!
- updateWebhook(input: UpdateWebhookInput!): Webhook!
- deleteWebhook(id: UUID!): Webhook!
- createChatThread: AgentChatThread!
- createSkill(input: CreateSkillInput!): Skill!
- updateSkill(input: UpdateSkillInput!): Skill!
- deleteSkill(id: UUID!): Skill!
- activateSkill(id: UUID!): Skill!
- deactivateSkill(id: UUID!): Skill!
- evaluateAgentTurn(turnId: UUID!): AgentTurnEvaluation!
- runEvaluationInput(agentId: UUID!, input: String!): AgentTurn!
- duplicateDashboard(id: UUID!): DuplicatedDashboard!
impersonate(userId: UUID!, workspaceId: UUID!): Impersonate!
startChannelSync(connectedAccountId: UUID!): ChannelSyncSuccess!
saveImapSmtpCaldavAccount(accountOwnerId: UUID!, handle: String!, connectionParameters: EmailAccountConnectionParameters!, id: UUID): ImapSmtpCaldavConnectionSuccess!
@@ -3616,116 +3617,84 @@ input CreateNavigationMenuItemInput {
type: NavigationMenuItemType!
name: String
link: String
- icon: String
- color: String
- folderId: UUID
- position: Float
-}
-
-input UpdateOneNavigationMenuItemInput {
- """The id of the record to update"""
- id: UUID!
-
- """The record to update"""
- update: UpdateNavigationMenuItemInput!
-}
-
-input UpdateNavigationMenuItemInput {
- folderId: UUID
- position: Float
- name: String
- link: String
- icon: String
- color: String
-}
-
-"""The `Upload` scalar type represents a file upload."""
-scalar Upload
-
-enum AnalyticsType {
- PAGEVIEW
- TRACK
-}
-
-input CreatePageLayoutWidgetInput {
- pageLayoutTabId: UUID!
- title: String!
- type: WidgetType!
- objectMetadataId: UUID
- gridPosition: GridPositionInput!
- position: JSON
- configuration: JSON!
-}
-
-input GridPositionInput {
- row: Float!
- column: Float!
- rowSpan: Float!
- columnSpan: Float!
-}
-
-input UpdatePageLayoutWidgetInput {
- title: String
- type: WidgetType
- objectMetadataId: UUID
- gridPosition: GridPositionInput
- position: JSON
- configuration: JSON
- conditionalDisplay: JSON
+ icon: String
+ color: String
+ folderId: UUID
+ position: Float
}
-input CreatePageLayoutTabInput {
- title: String!
- position: Float
- pageLayoutId: UUID!
- layoutMode: PageLayoutTabLayoutMode = GRID
+input UpdateOneNavigationMenuItemInput {
+ """The id of the record to update"""
+ id: UUID!
+
+ """The record to update"""
+ update: UpdateNavigationMenuItemInput!
}
-input UpdatePageLayoutTabInput {
- title: String
+input UpdateNavigationMenuItemInput {
+ folderId: UUID
position: Float
+ name: String
+ link: String
icon: String
- layoutMode: PageLayoutTabLayoutMode
+ color: String
}
-input CreatePageLayoutInput {
- name: String!
- type: PageLayoutType = RECORD_PAGE
- objectMetadataId: UUID
+"""The `Upload` scalar type represents a file upload."""
+scalar Upload
+
+input CreateViewFilterGroupInput {
+ id: UUID
+ parentViewFilterGroupId: UUID
+ logicalOperator: ViewFilterGroupLogicalOperator = AND
+ positionInViewFilterGroup: Float
+ viewId: UUID!
}
-input UpdatePageLayoutInput {
- name: String
- type: PageLayoutType
- objectMetadataId: UUID
+input UpdateViewFilterGroupInput {
+ id: UUID
+ parentViewFilterGroupId: UUID
+ logicalOperator: ViewFilterGroupLogicalOperator = AND
+ positionInViewFilterGroup: Float
+ viewId: UUID
}
-input UpdatePageLayoutWithTabsInput {
- name: String!
- type: PageLayoutType!
- objectMetadataId: UUID
- tabs: [UpdatePageLayoutTabWithWidgetsInput!]!
+input CreateViewFilterInput {
+ id: UUID
+ fieldMetadataId: UUID!
+ operand: ViewFilterOperand = CONTAINS
+ value: JSON!
+ viewFilterGroupId: UUID
+ positionInViewFilterGroup: Float
+ subFieldName: String
+ viewId: UUID!
}
-input UpdatePageLayoutTabWithWidgetsInput {
+input UpdateViewFilterInput {
+ """The id of the view filter to update"""
id: UUID!
- title: String!
- position: Float!
- icon: String
- layoutMode: PageLayoutTabLayoutMode = GRID
- widgets: [UpdatePageLayoutWidgetWithIdInput!]!
+
+ """The view filter to update"""
+ update: UpdateViewFilterInputUpdates!
}
-input UpdatePageLayoutWidgetWithIdInput {
+input UpdateViewFilterInputUpdates {
+ fieldMetadataId: UUID
+ operand: ViewFilterOperand
+ value: JSON
+ viewFilterGroupId: UUID
+ positionInViewFilterGroup: Float
+ subFieldName: String
+}
+
+input DeleteViewFilterInput {
+ """The id of the view filter to delete."""
+ id: UUID!
+}
+
+input DestroyViewFilterInput {
+ """The id of the view filter to destroy."""
id: UUID!
- pageLayoutTabId: UUID!
- title: String!
- type: WidgetType!
- objectMetadataId: UUID
- gridPosition: GridPositionInput!
- position: JSON
- configuration: JSON
- conditionalDisplay: JSON
}
input CreateViewInput {
@@ -3858,6 +3827,124 @@ input UpsertFieldsWidgetFieldInput {
position: Float!
}
+input CreateApiKeyInput {
+ name: String!
+ expiresAt: String!
+ revokedAt: String
+ roleId: UUID!
+}
+
+input UpdateApiKeyInput {
+ id: UUID!
+ name: String
+ expiresAt: String
+ revokedAt: String
+}
+
+input RevokeApiKeyInput {
+ id: UUID!
+}
+
+enum AnalyticsType {
+ PAGEVIEW
+ TRACK
+}
+
+input CreateApprovedAccessDomainInput {
+ domain: String!
+ email: String!
+}
+
+input DeleteApprovedAccessDomainInput {
+ id: UUID!
+}
+
+input ValidateApprovedAccessDomainInput {
+ validationToken: String!
+ approvedAccessDomainId: UUID!
+}
+
+input CreatePageLayoutTabInput {
+ title: String!
+ position: Float
+ pageLayoutId: UUID!
+ layoutMode: PageLayoutTabLayoutMode = GRID
+}
+
+input UpdatePageLayoutTabInput {
+ title: String
+ position: Float
+ icon: String
+ layoutMode: PageLayoutTabLayoutMode
+}
+
+input CreatePageLayoutInput {
+ name: String!
+ type: PageLayoutType = RECORD_PAGE
+ objectMetadataId: UUID
+}
+
+input UpdatePageLayoutInput {
+ name: String
+ type: PageLayoutType
+ objectMetadataId: UUID
+}
+
+input UpdatePageLayoutWithTabsInput {
+ name: String!
+ type: PageLayoutType!
+ objectMetadataId: UUID
+ tabs: [UpdatePageLayoutTabWithWidgetsInput!]!
+}
+
+input UpdatePageLayoutTabWithWidgetsInput {
+ id: UUID!
+ title: String!
+ position: Float!
+ icon: String
+ layoutMode: PageLayoutTabLayoutMode = GRID
+ widgets: [UpdatePageLayoutWidgetWithIdInput!]!
+}
+
+input UpdatePageLayoutWidgetWithIdInput {
+ id: UUID!
+ pageLayoutTabId: UUID!
+ title: String!
+ type: WidgetType!
+ objectMetadataId: UUID
+ gridPosition: GridPositionInput!
+ position: JSON
+ configuration: JSON
+ conditionalDisplay: JSON
+}
+
+input GridPositionInput {
+ row: Float!
+ column: Float!
+ rowSpan: Float!
+ columnSpan: Float!
+}
+
+input CreatePageLayoutWidgetInput {
+ pageLayoutTabId: UUID!
+ title: String!
+ type: WidgetType!
+ objectMetadataId: UUID
+ gridPosition: GridPositionInput!
+ position: JSON
+ configuration: JSON!
+}
+
+input UpdatePageLayoutWidgetInput {
+ title: String
+ type: WidgetType
+ objectMetadataId: UUID
+ gridPosition: GridPositionInput
+ position: JSON
+ configuration: JSON
+ conditionalDisplay: JSON
+}
+
input CreateLogicFunctionFromSourceInput {
id: UUID
universalIdentifier: UUID
@@ -4144,52 +4231,20 @@ input RowLevelPermissionPredicateInput {
id: UUID
fieldMetadataId: UUID!
operand: RowLevelPermissionPredicateOperand!
- value: JSON
- subFieldName: String
- workspaceMemberFieldMetadataId: String
- workspaceMemberSubFieldName: String
- rowLevelPermissionPredicateGroupId: UUID
- positionInRowLevelPermissionPredicateGroup: Float
-}
-
-input RowLevelPermissionPredicateGroupInput {
- id: UUID
- objectMetadataId: UUID!
- parentRowLevelPermissionPredicateGroupId: UUID
- logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator!
- positionInRowLevelPermissionPredicateGroup: Float
-}
-
-input CreateApprovedAccessDomainInput {
- domain: String!
- email: String!
-}
-
-input DeleteApprovedAccessDomainInput {
- id: UUID!
-}
-
-input ValidateApprovedAccessDomainInput {
- validationToken: String!
- approvedAccessDomainId: UUID!
-}
-
-input CreateApiKeyInput {
- name: String!
- expiresAt: String!
- revokedAt: String
- roleId: UUID!
-}
-
-input UpdateApiKeyInput {
- id: UUID!
- name: String
- expiresAt: String
- revokedAt: String
+ value: JSON
+ subFieldName: String
+ workspaceMemberFieldMetadataId: String
+ workspaceMemberSubFieldName: String
+ rowLevelPermissionPredicateGroupId: UUID
+ positionInRowLevelPermissionPredicateGroup: Float
}
-input RevokeApiKeyInput {
- id: UUID!
+input RowLevelPermissionPredicateGroupInput {
+ id: UUID
+ objectMetadataId: UUID!
+ parentRowLevelPermissionPredicateGroupId: UUID
+ logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator!
+ positionInRowLevelPermissionPredicateGroup: Float
}
input CreateOneFieldMetadataInput {
@@ -4283,88 +4338,92 @@ input DestroyViewGroupInput {
id: UUID!
}
-input CreateViewFilterInput {
- id: UUID
- fieldMetadataId: UUID!
- operand: ViewFilterOperand = CONTAINS
- value: JSON!
- viewFilterGroupId: UUID
- positionInViewFilterGroup: Float
- subFieldName: String
- viewId: UUID!
-}
-
-input UpdateViewFilterInput {
- """The id of the view filter to update"""
+input UpdateMessageFolderInput {
id: UUID!
+ update: UpdateMessageFolderInputUpdates!
+}
- """The view filter to update"""
- update: UpdateViewFilterInputUpdates!
+input UpdateMessageFolderInputUpdates {
+ isSynced: Boolean
}
-input UpdateViewFilterInputUpdates {
- fieldMetadataId: UUID
- operand: ViewFilterOperand
- value: JSON
- viewFilterGroupId: UUID
- positionInViewFilterGroup: Float
- subFieldName: String
+input UpdateMessageFoldersInput {
+ ids: [UUID!]!
+ update: UpdateMessageFolderInputUpdates!
}
-input DeleteViewFilterInput {
- """The id of the view filter to delete."""
+input UpdateMessageChannelInput {
id: UUID!
+ update: UpdateMessageChannelInputUpdates!
}
-input DestroyViewFilterInput {
- """The id of the view filter to destroy."""
+input UpdateMessageChannelInputUpdates {
+ visibility: MessageChannelVisibility
+ isContactAutoCreationEnabled: Boolean
+ contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy
+ messageFolderImportPolicy: MessageFolderImportPolicy
+ isSyncEnabled: Boolean
+ excludeNonProfessionalEmails: Boolean
+ excludeGroupEmails: Boolean
+}
+
+input UpdateCalendarChannelInput {
id: UUID!
+ update: UpdateCalendarChannelInputUpdates!
}
-input CreateViewFilterGroupInput {
+input UpdateCalendarChannelInputUpdates {
+ visibility: CalendarChannelVisibility
+ isContactAutoCreationEnabled: Boolean
+ contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy
+ isSyncEnabled: Boolean
+}
+
+input CreateWebhookInput {
id: UUID
- parentViewFilterGroupId: UUID
- logicalOperator: ViewFilterGroupLogicalOperator = AND
- positionInViewFilterGroup: Float
- viewId: UUID!
+ targetUrl: String!
+ operations: [String!]!
+ description: String
+ secret: String
}
-input UpdateViewFilterGroupInput {
+input UpdateWebhookInput {
+ """The id of the webhook to update"""
+ id: UUID!
+
+ """The webhook fields to update"""
+ update: UpdateWebhookInputUpdates!
+}
+
+input UpdateWebhookInputUpdates {
+ targetUrl: String
+ operations: [String!]
+ description: String
+ secret: String
+}
+
+input CreateSkillInput {
id: UUID
- parentViewFilterGroupId: UUID
- logicalOperator: ViewFilterGroupLogicalOperator = AND
- positionInViewFilterGroup: Float
- viewId: UUID
+ name: String!
+ label: String!
+ icon: String
+ description: String
+ content: String!
}
-input ActivateWorkspaceInput {
- displayName: String
+input UpdateSkillInput {
+ id: UUID!
+ name: String
+ label: String
+ icon: String
+ description: String
+ content: String
+ isActive: Boolean
}
-input UpdateWorkspaceInput {
- subdomain: String
- customDomain: String
- displayName: String
- logo: String
- inviteHash: String
- isPublicInviteLinkEnabled: Boolean
- allowImpersonation: Boolean
- isGoogleAuthEnabled: Boolean
- isMicrosoftAuthEnabled: Boolean
- isPasswordAuthEnabled: Boolean
- isGoogleAuthBypassEnabled: Boolean
- isMicrosoftAuthBypassEnabled: Boolean
- isPasswordAuthBypassEnabled: Boolean
- defaultRoleId: UUID
- isTwoFactorAuthenticationEnforced: Boolean
- trashRetentionDays: Float
- eventLogRetentionDays: Float
- fastModel: String
- smartModel: String
- aiAdditionalInstructions: String
- editableProfileFields: [String!]
- enabledAiModelIds: [String!]
- useRecommendedModels: Boolean
+input GetAuthorizationUrlForSSOInput {
+ identityProviderId: UUID!
+ workspaceInviteHash: String
}
input CreateApplicationRegistrationInput {
@@ -4414,9 +4473,34 @@ input UpdateApplicationRegistrationVariablePayload {
description: String
}
-input GetAuthorizationUrlForSSOInput {
- identityProviderId: UUID!
- workspaceInviteHash: String
+input ActivateWorkspaceInput {
+ displayName: String
+}
+
+input UpdateWorkspaceInput {
+ subdomain: String
+ customDomain: String
+ displayName: String
+ logo: String
+ inviteHash: String
+ isPublicInviteLinkEnabled: Boolean
+ allowImpersonation: Boolean
+ isGoogleAuthEnabled: Boolean
+ isMicrosoftAuthEnabled: Boolean
+ isPasswordAuthEnabled: Boolean
+ isGoogleAuthBypassEnabled: Boolean
+ isMicrosoftAuthBypassEnabled: Boolean
+ isPasswordAuthBypassEnabled: Boolean
+ defaultRoleId: UUID
+ isTwoFactorAuthenticationEnforced: Boolean
+ trashRetentionDays: Float
+ eventLogRetentionDays: Float
+ fastModel: String
+ smartModel: String
+ aiAdditionalInstructions: String
+ editableProfileFields: [String!]
+ enabledAiModelIds: [String!]
+ useRecommendedModels: Boolean
}
input SetupOIDCSsoInput {
@@ -4444,89 +4528,6 @@ input EditSsoInput {
status: SSOIdentityProviderStatus!
}
-input UpdateMessageFolderInput {
- id: UUID!
- update: UpdateMessageFolderInputUpdates!
-}
-
-input UpdateMessageFolderInputUpdates {
- isSynced: Boolean
-}
-
-input UpdateMessageFoldersInput {
- ids: [UUID!]!
- update: UpdateMessageFolderInputUpdates!
-}
-
-input UpdateMessageChannelInput {
- id: UUID!
- update: UpdateMessageChannelInputUpdates!
-}
-
-input UpdateMessageChannelInputUpdates {
- visibility: MessageChannelVisibility
- isContactAutoCreationEnabled: Boolean
- contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy
- messageFolderImportPolicy: MessageFolderImportPolicy
- isSyncEnabled: Boolean
- excludeNonProfessionalEmails: Boolean
- excludeGroupEmails: Boolean
-}
-
-input UpdateCalendarChannelInput {
- id: UUID!
- update: UpdateCalendarChannelInputUpdates!
-}
-
-input UpdateCalendarChannelInputUpdates {
- visibility: CalendarChannelVisibility
- isContactAutoCreationEnabled: Boolean
- contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy
- isSyncEnabled: Boolean
-}
-
-input CreateWebhookInput {
- id: UUID
- targetUrl: String!
- operations: [String!]!
- description: String
- secret: String
-}
-
-input UpdateWebhookInput {
- """The id of the webhook to update"""
- id: UUID!
-
- """The webhook fields to update"""
- update: UpdateWebhookInputUpdates!
-}
-
-input UpdateWebhookInputUpdates {
- targetUrl: String
- operations: [String!]
- description: String
- secret: String
-}
-
-input CreateSkillInput {
- id: UUID
- name: String!
- label: String!
- icon: String
- description: String
- content: String!
-}
-
-input UpdateSkillInput {
- id: UUID!
- name: String
- label: String
- icon: String
- description: String
- content: String
- isActive: Boolean
-}
-
input EmailAccountConnectionParameters {
IMAP: ConnectionParameters
SMTP: ConnectionParameters
@@ -4592,6 +4593,7 @@ enum FileFolder {
Dependencies
Workflow
AppTarball
+ GeneratedSdkClient
}
type Subscription {
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
similarity index 99%
rename from packages/twenty-sdk/src/clients/generated/metadata/schema.ts
rename to packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 3e1c5f2a363..73ad7970dd6 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -1181,89 +1181,113 @@ export interface SendInvitations {
__typename: 'SendInvitations'
}
-export interface ResendEmailVerificationToken {
- success: Scalars['Boolean']
- __typename: 'ResendEmailVerificationToken'
+export interface RecordIdentifier {
+ id: Scalars['UUID']
+ labelIdentifier: Scalars['String']
+ imageIdentifier?: Scalars['String']
+ __typename: 'RecordIdentifier'
}
-export interface WorkspaceUrls {
- customUrl?: Scalars['String']
- subdomainUrl: Scalars['String']
- __typename: 'WorkspaceUrls'
+export interface NavigationMenuItem {
+ id: Scalars['UUID']
+ userWorkspaceId?: Scalars['UUID']
+ targetRecordId?: Scalars['UUID']
+ targetObjectMetadataId?: Scalars['UUID']
+ viewId?: Scalars['UUID']
+ type: NavigationMenuItemType
+ name?: Scalars['String']
+ link?: Scalars['String']
+ icon?: Scalars['String']
+ color?: Scalars['String']
+ folderId?: Scalars['UUID']
+ position: Scalars['Float']
+ applicationId?: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ targetRecordIdentifier?: RecordIdentifier
+ __typename: 'NavigationMenuItem'
}
-export interface SSOConnection {
- type: IdentityProviderType
- id: Scalars['UUID']
- issuer: Scalars['String']
- name: Scalars['String']
- status: SSOIdentityProviderStatus
- __typename: 'SSOConnection'
+export type NavigationMenuItemType = 'VIEW' | 'FOLDER' | 'LINK' | 'OBJECT' | 'RECORD'
+
+export interface ObjectRecordEventProperties {
+ updatedFields?: Scalars['String'][]
+ before?: Scalars['JSON']
+ after?: Scalars['JSON']
+ diff?: Scalars['JSON']
+ __typename: 'ObjectRecordEventProperties'
}
-export type IdentityProviderType = 'OIDC' | 'SAML'
+export interface MetadataEvent {
+ type: MetadataEventAction
+ metadataName: Scalars['String']
+ recordId: Scalars['String']
+ properties: ObjectRecordEventProperties
+ updatedCollectionHash?: Scalars['String']
+ __typename: 'MetadataEvent'
+}
-export type SSOIdentityProviderStatus = 'Active' | 'Inactive' | 'Error'
-export interface AvailableWorkspace {
- id: Scalars['UUID']
- displayName?: Scalars['String']
- loginToken?: Scalars['String']
- personalInviteToken?: Scalars['String']
- inviteHash?: Scalars['String']
- workspaceUrls: WorkspaceUrls
- logo?: Scalars['String']
- sso: SSOConnection[]
- __typename: 'AvailableWorkspace'
+/** Metadata Event Action */
+export type MetadataEventAction = 'CREATED' | 'UPDATED' | 'DELETED'
+
+export interface ObjectRecordEvent {
+ action: DatabaseEventAction
+ objectNameSingular: Scalars['String']
+ recordId: Scalars['String']
+ userId?: Scalars['String']
+ workspaceMemberId?: Scalars['String']
+ properties: ObjectRecordEventProperties
+ __typename: 'ObjectRecordEvent'
}
-export interface AvailableWorkspaces {
- availableWorkspacesForSignIn: AvailableWorkspace[]
- availableWorkspacesForSignUp: AvailableWorkspace[]
- __typename: 'AvailableWorkspaces'
+
+/** Database Event Action */
+export type DatabaseEventAction = 'CREATED' | 'UPDATED' | 'DELETED' | 'DESTROYED' | 'RESTORED' | 'UPSERTED'
+
+export interface ObjectRecordEventWithQueryIds {
+ queryIds: Scalars['String'][]
+ objectRecordEvent: ObjectRecordEvent
+ __typename: 'ObjectRecordEventWithQueryIds'
}
-export interface DeletedWorkspaceMember {
- id: Scalars['UUID']
- name: FullName
- userEmail: Scalars['String']
- avatarUrl?: Scalars['String']
- userWorkspaceId?: Scalars['UUID']
- __typename: 'DeletedWorkspaceMember'
+export interface EventSubscription {
+ eventStreamId: Scalars['String']
+ objectRecordEventsWithQueryIds: ObjectRecordEventWithQueryIds[]
+ metadataEvents: MetadataEvent[]
+ __typename: 'EventSubscription'
}
-export interface BillingEntitlement {
- key: BillingEntitlementKey
- value: Scalars['Boolean']
- __typename: 'BillingEntitlement'
+export interface LogicFunctionExecutionResult {
+ /** Execution result in JSON format */
+ data?: Scalars['JSON']
+ /** Execution Logs */
+ logs: Scalars['String']
+ /** Execution duration in milliseconds */
+ duration: Scalars['Float']
+ /** Execution status */
+ status: LogicFunctionExecutionStatus
+ /** Execution error in JSON format */
+ error?: Scalars['JSON']
+ __typename: 'LogicFunctionExecutionResult'
}
-export type BillingEntitlementKey = 'SSO' | 'CUSTOM_DOMAIN' | 'RLS' | 'AUDIT_LOGS'
-export interface DomainRecord {
- validationType: Scalars['String']
- type: Scalars['String']
- status: Scalars['String']
- key: Scalars['String']
- value: Scalars['String']
- __typename: 'DomainRecord'
-}
+/** Status of the logic function execution */
+export type LogicFunctionExecutionStatus = 'IDLE' | 'SUCCESS' | 'ERROR'
-export interface DomainValidRecords {
- id: Scalars['UUID']
- domain: Scalars['String']
- records: DomainRecord[]
- __typename: 'DomainValidRecords'
+export interface BillingTrialPeriod {
+ duration: Scalars['Float']
+ isCreditCardRequired: Scalars['Boolean']
+ __typename: 'BillingTrialPeriod'
}
-export interface FeatureFlag {
- key: FeatureFlagKey
- value: Scalars['Boolean']
- __typename: 'FeatureFlag'
+export interface WorkspaceUrls {
+ customUrl?: Scalars['String']
+ subdomainUrl: Scalars['String']
+ __typename: 'WorkspaceUrls'
}
-export type FeatureFlagKey = 'IS_UNIQUE_INDEXES_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_AI_ENABLED' | 'IS_APPLICATION_ENABLED' | 'IS_MARKETPLACE_ENABLED' | 'IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED' | 'IS_PUBLIC_DOMAIN_ENABLED' | 'IS_EMAILING_DOMAIN_ENABLED' | 'IS_DASHBOARD_V2_ENABLED' | 'IS_ATTACHMENT_MIGRATED' | 'IS_NOTE_TARGET_MIGRATED' | 'IS_TASK_TARGET_MIGRATED' | 'IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED' | 'IS_JUNCTION_RELATIONS_ENABLED' | 'IS_COMMAND_MENU_ITEM_ENABLED' | 'IS_NAVIGATION_MENU_ITEM_ENABLED' | 'IS_DATE_TIME_WHOLE_DAY_FILTER_ENABLED' | 'IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED' | 'IS_DRAFT_EMAIL_ENABLED' | 'IS_USAGE_ANALYTICS_ENABLED' | 'IS_RICH_TEXT_V1_MIGRATED' | 'IS_DIRECT_GRAPHQL_EXECUTION_ENABLED' | 'IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED' | 'IS_CONNECTED_ACCOUNT_MIGRATED' | 'IS_GRAPHQL_QUERY_TIMING_ENABLED'
-
export interface SSOIdentityProvider {
id: Scalars['UUID']
name: Scalars['String']
@@ -1273,6 +1297,10 @@ export interface SSOIdentityProvider {
__typename: 'SSOIdentityProvider'
}
+export type IdentityProviderType = 'OIDC' | 'SAML'
+
+export type SSOIdentityProviderStatus = 'Active' | 'Inactive' | 'Error'
+
export interface AuthProviders {
sso: SSOIdentityProvider[]
google: Scalars['Boolean']
@@ -1299,1442 +1327,1429 @@ export interface PublicWorkspaceData {
__typename: 'PublicWorkspaceData'
}
-export interface IndexEdge {
- /** The node containing the Index */
- node: Index
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']
- __typename: 'IndexEdge'
+export interface NativeModelCapabilities {
+ webSearch?: Scalars['Boolean']
+ twitterSearch?: Scalars['Boolean']
+ __typename: 'NativeModelCapabilities'
}
-export interface PageInfo {
- /** true if paging forward and there are more records. */
- hasNextPage?: Scalars['Boolean']
- /** true if paging backwards and there are more records. */
- hasPreviousPage?: Scalars['Boolean']
- /** The cursor of the first returned record. */
- startCursor?: Scalars['ConnectionCursor']
- /** The cursor of the last returned record. */
- endCursor?: Scalars['ConnectionCursor']
- __typename: 'PageInfo'
+export interface ClientAIModelConfig {
+ modelId: Scalars['String']
+ label: Scalars['String']
+ modelFamily?: ModelFamily
+ modelFamilyLabel?: Scalars['String']
+ sdkPackage?: Scalars['String']
+ inputCostPerMillionTokensInCredits: Scalars['Float']
+ outputCostPerMillionTokensInCredits: Scalars['Float']
+ nativeCapabilities?: NativeModelCapabilities
+ isDeprecated?: Scalars['Boolean']
+ isRecommended?: Scalars['Boolean']
+ providerName?: Scalars['String']
+ dataResidency?: Scalars['String']
+ __typename: 'ClientAIModelConfig'
}
-export interface IndexConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: IndexEdge[]
- __typename: 'IndexConnection'
-}
+export type ModelFamily = 'GPT' | 'CLAUDE' | 'GEMINI' | 'MISTRAL' | 'GROK'
-export interface IndexFieldEdge {
- /** The node containing the IndexField */
- node: IndexField
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']
- __typename: 'IndexFieldEdge'
+export interface AdminAIModelConfig {
+ modelId: Scalars['String']
+ label: Scalars['String']
+ modelFamily?: ModelFamily
+ modelFamilyLabel?: Scalars['String']
+ sdkPackage?: Scalars['String']
+ isAvailable: Scalars['Boolean']
+ isAdminEnabled: Scalars['Boolean']
+ isDeprecated?: Scalars['Boolean']
+ isRecommended?: Scalars['Boolean']
+ contextWindowTokens?: Scalars['Float']
+ maxOutputTokens?: Scalars['Float']
+ inputCostPerMillionTokens?: Scalars['Float']
+ outputCostPerMillionTokens?: Scalars['Float']
+ providerName?: Scalars['String']
+ providerLabel?: Scalars['String']
+ name?: Scalars['String']
+ dataResidency?: Scalars['String']
+ __typename: 'AdminAIModelConfig'
}
-export interface IndexIndexFieldMetadatasConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: IndexFieldEdge[]
- __typename: 'IndexIndexFieldMetadatasConnection'
+export interface AdminAIModels {
+ models: AdminAIModelConfig[]
+ defaultSmartModelId?: Scalars['String']
+ defaultFastModelId?: Scalars['String']
+ __typename: 'AdminAIModels'
}
-export interface ObjectEdge {
- /** The node containing the Object */
- node: Object
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']
- __typename: 'ObjectEdge'
+export interface Billing {
+ isBillingEnabled: Scalars['Boolean']
+ billingUrl?: Scalars['String']
+ trialPeriods: BillingTrialPeriod[]
+ __typename: 'Billing'
}
-export interface IndexObjectMetadataConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: ObjectEdge[]
- __typename: 'IndexObjectMetadataConnection'
+export interface Support {
+ supportDriver: SupportDriver
+ supportFrontChatId?: Scalars['String']
+ __typename: 'Support'
}
-export interface ObjectRecordCount {
- objectNamePlural: Scalars['String']
- totalCount: Scalars['Int']
- __typename: 'ObjectRecordCount'
-}
+export type SupportDriver = 'NONE' | 'FRONT'
-export interface ObjectConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: ObjectEdge[]
- __typename: 'ObjectConnection'
+export interface Sentry {
+ environment?: Scalars['String']
+ release?: Scalars['String']
+ dsn?: Scalars['String']
+ __typename: 'Sentry'
}
-export interface ObjectIndexMetadatasConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: IndexEdge[]
- __typename: 'ObjectIndexMetadatasConnection'
+export interface Captcha {
+ provider?: CaptchaDriverType
+ siteKey?: Scalars['String']
+ __typename: 'Captcha'
}
-export interface FieldEdge {
- /** The node containing the Field */
- node: Field
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor']
- __typename: 'FieldEdge'
-}
+export type CaptchaDriverType = 'GOOGLE_RECAPTCHA' | 'TURNSTILE'
-export interface ObjectFieldsConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: FieldEdge[]
- __typename: 'ObjectFieldsConnection'
+export interface ApiConfig {
+ mutationMaximumAffectedRecords: Scalars['Float']
+ __typename: 'ApiConfig'
}
-export interface UpsertRowLevelPermissionPredicatesResult {
- predicates: RowLevelPermissionPredicate[]
- predicateGroups: RowLevelPermissionPredicateGroup[]
- __typename: 'UpsertRowLevelPermissionPredicatesResult'
+export interface PublicFeatureFlagMetadata {
+ label: Scalars['String']
+ description: Scalars['String']
+ imagePath?: Scalars['String']
+ __typename: 'PublicFeatureFlagMetadata'
}
-export interface VersionDistributionEntry {
- version: Scalars['String']
- count: Scalars['Int']
- __typename: 'VersionDistributionEntry'
+export interface PublicFeatureFlag {
+ key: FeatureFlagKey
+ metadata: PublicFeatureFlagMetadata
+ __typename: 'PublicFeatureFlag'
}
-export interface ApplicationRegistrationStats {
- activeInstalls: Scalars['Int']
- mostInstalledVersion?: Scalars['String']
- versionDistribution: VersionDistributionEntry[]
- __typename: 'ApplicationRegistrationStats'
-}
+export type FeatureFlagKey = 'IS_UNIQUE_INDEXES_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_AI_ENABLED' | 'IS_APPLICATION_ENABLED' | 'IS_MARKETPLACE_ENABLED' | 'IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED' | 'IS_PUBLIC_DOMAIN_ENABLED' | 'IS_EMAILING_DOMAIN_ENABLED' | 'IS_DASHBOARD_V2_ENABLED' | 'IS_ATTACHMENT_MIGRATED' | 'IS_NOTE_TARGET_MIGRATED' | 'IS_TASK_TARGET_MIGRATED' | 'IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED' | 'IS_JUNCTION_RELATIONS_ENABLED' | 'IS_COMMAND_MENU_ITEM_ENABLED' | 'IS_NAVIGATION_MENU_ITEM_ENABLED' | 'IS_DATE_TIME_WHOLE_DAY_FILTER_ENABLED' | 'IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED' | 'IS_DRAFT_EMAIL_ENABLED' | 'IS_USAGE_ANALYTICS_ENABLED' | 'IS_RICH_TEXT_V1_MIGRATED' | 'IS_DIRECT_GRAPHQL_EXECUTION_ENABLED' | 'IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED' | 'IS_CONNECTED_ACCOUNT_MIGRATED' | 'IS_GRAPHQL_QUERY_TIMING_ENABLED'
-export interface CreateApplicationRegistration {
- applicationRegistration: ApplicationRegistration
- clientSecret: Scalars['String']
- __typename: 'CreateApplicationRegistration'
+export interface ClientConfig {
+ appVersion?: Scalars['String']
+ authProviders: AuthProviders
+ billing: Billing
+ aiModels: ClientAIModelConfig[]
+ signInPrefilled: Scalars['Boolean']
+ isMultiWorkspaceEnabled: Scalars['Boolean']
+ isEmailVerificationRequired: Scalars['Boolean']
+ defaultSubdomain?: Scalars['String']
+ frontDomain: Scalars['String']
+ analyticsEnabled: Scalars['Boolean']
+ support: Support
+ isAttachmentPreviewEnabled: Scalars['Boolean']
+ sentry: Sentry
+ captcha: Captcha
+ api: ApiConfig
+ canManageFeatureFlags: Scalars['Boolean']
+ publicFeatureFlags: PublicFeatureFlag[]
+ isMicrosoftMessagingEnabled: Scalars['Boolean']
+ isMicrosoftCalendarEnabled: Scalars['Boolean']
+ isGoogleMessagingEnabled: Scalars['Boolean']
+ isGoogleCalendarEnabled: Scalars['Boolean']
+ isConfigVariablesInDbEnabled: Scalars['Boolean']
+ isImapSmtpCaldavEnabled: Scalars['Boolean']
+ allowRequestsToTwentyIcons: Scalars['Boolean']
+ calendarBookingPageId?: Scalars['String']
+ isCloudflareIntegrationEnabled: Scalars['Boolean']
+ isClickHouseConfigured: Scalars['Boolean']
+ __typename: 'ClientConfig'
}
-export interface PublicApplicationRegistration {
- id: Scalars['UUID']
+export interface ConfigVariable {
name: Scalars['String']
- logoUrl?: Scalars['String']
- websiteUrl?: Scalars['String']
- oAuthScopes: Scalars['String'][]
- __typename: 'PublicApplicationRegistration'
+ description: Scalars['String']
+ value?: Scalars['JSON']
+ isSensitive: Scalars['Boolean']
+ source: ConfigSource
+ isEnvOnly: Scalars['Boolean']
+ type: ConfigVariableType
+ options?: Scalars['JSON']
+ __typename: 'ConfigVariable'
}
-export interface RotateClientSecret {
- clientSecret: Scalars['String']
- __typename: 'RotateClientSecret'
-}
+export type ConfigSource = 'ENVIRONMENT' | 'DATABASE' | 'DEFAULT'
-export interface Relation {
- type: RelationType
- sourceObjectMetadata: Object
- targetObjectMetadata: Object
- sourceFieldMetadata: Field
- targetFieldMetadata: Field
- __typename: 'Relation'
+export type ConfigVariableType = 'BOOLEAN' | 'NUMBER' | 'ARRAY' | 'STRING' | 'ENUM' | 'JSON'
+
+export interface ConfigVariablesGroupData {
+ variables: ConfigVariable[]
+ name: ConfigVariablesGroup
+ description: Scalars['String']
+ isHiddenOnLoad: Scalars['Boolean']
+ __typename: 'ConfigVariablesGroupData'
}
+export type ConfigVariablesGroup = 'SERVER_CONFIG' | 'RATE_LIMITING' | 'STORAGE_CONFIG' | 'GOOGLE_AUTH' | 'MICROSOFT_AUTH' | 'EMAIL_SETTINGS' | 'LOGGING' | 'ADVANCED_SETTINGS' | 'BILLING_CONFIG' | 'CAPTCHA_CONFIG' | 'CLOUDFLARE_CONFIG' | 'LLM' | 'LOGIC_FUNCTION_CONFIG' | 'CODE_INTERPRETER_CONFIG' | 'SSL' | 'SUPPORT_CHAT_CONFIG' | 'ANALYTICS_CONFIG' | 'TOKENS_DURATION' | 'AWS_SES_SETTINGS'
-/** Relation type */
-export type RelationType = 'ONE_TO_MANY' | 'MANY_TO_ONE'
+export interface ConfigVariables {
+ groups: ConfigVariablesGroupData[]
+ __typename: 'ConfigVariables'
+}
-export interface FieldConnection {
- /** Paging information */
- pageInfo: PageInfo
- /** Array of edges. */
- edges: FieldEdge[]
- __typename: 'FieldConnection'
+export interface JobOperationResult {
+ jobId: Scalars['String']
+ success: Scalars['Boolean']
+ error?: Scalars['String']
+ __typename: 'JobOperationResult'
}
-export interface DeleteSso {
- identityProviderId: Scalars['UUID']
- __typename: 'DeleteSso'
+export interface DeleteJobsResponse {
+ deletedCount: Scalars['Int']
+ results: JobOperationResult[]
+ __typename: 'DeleteJobsResponse'
}
-export interface EditSso {
- id: Scalars['UUID']
- type: IdentityProviderType
- issuer: Scalars['String']
+export interface QueueJob {
+ id: Scalars['String']
name: Scalars['String']
- status: SSOIdentityProviderStatus
- __typename: 'EditSso'
+ data?: Scalars['JSON']
+ state: JobState
+ timestamp?: Scalars['Float']
+ failedReason?: Scalars['String']
+ processedOn?: Scalars['Float']
+ finishedOn?: Scalars['Float']
+ attemptsMade: Scalars['Float']
+ returnValue?: Scalars['JSON']
+ logs?: Scalars['String'][]
+ stackTrace?: Scalars['String'][]
+ __typename: 'QueueJob'
}
-export interface WorkspaceNameAndId {
- displayName?: Scalars['String']
- id: Scalars['UUID']
- __typename: 'WorkspaceNameAndId'
-}
-export interface FindAvailableSSOIDP {
- type: IdentityProviderType
- id: Scalars['UUID']
- issuer: Scalars['String']
- name: Scalars['String']
- status: SSOIdentityProviderStatus
- workspace: WorkspaceNameAndId
- __typename: 'FindAvailableSSOIDP'
-}
+/** Job state in the queue */
+export type JobState = 'COMPLETED' | 'FAILED' | 'ACTIVE' | 'WAITING' | 'DELAYED' | 'PRIORITIZED' | 'WAITING_CHILDREN'
-export interface SetupSso {
- id: Scalars['UUID']
- type: IdentityProviderType
- issuer: Scalars['String']
- name: Scalars['String']
- status: SSOIdentityProviderStatus
- __typename: 'SetupSso'
+export interface QueueRetentionConfig {
+ completedMaxAge: Scalars['Float']
+ completedMaxCount: Scalars['Float']
+ failedMaxAge: Scalars['Float']
+ failedMaxCount: Scalars['Float']
+ __typename: 'QueueRetentionConfig'
}
-export interface DeleteTwoFactorAuthenticationMethod {
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean']
- __typename: 'DeleteTwoFactorAuthenticationMethod'
+export interface QueueJobsResponse {
+ jobs: QueueJob[]
+ count: Scalars['Float']
+ totalCount: Scalars['Float']
+ hasMore: Scalars['Boolean']
+ retentionConfig: QueueRetentionConfig
+ __typename: 'QueueJobsResponse'
}
-export interface InitiateTwoFactorAuthenticationProvisioning {
- uri: Scalars['String']
- __typename: 'InitiateTwoFactorAuthenticationProvisioning'
+export interface RetryJobsResponse {
+ retriedCount: Scalars['Int']
+ results: JobOperationResult[]
+ __typename: 'RetryJobsResponse'
}
-export interface VerifyTwoFactorAuthenticationMethod {
- success: Scalars['Boolean']
- __typename: 'VerifyTwoFactorAuthenticationMethod'
+export interface SystemHealthService {
+ id: HealthIndicatorId
+ label: Scalars['String']
+ status: AdminPanelHealthServiceStatus
+ __typename: 'SystemHealthService'
}
-export interface AuthorizeApp {
- redirectUrl: Scalars['String']
- __typename: 'AuthorizeApp'
-}
+export type HealthIndicatorId = 'database' | 'redis' | 'worker' | 'connectedAccount' | 'app'
-export interface AuthToken {
- token: Scalars['String']
- expiresAt: Scalars['DateTime']
- __typename: 'AuthToken'
-}
+export type AdminPanelHealthServiceStatus = 'OPERATIONAL' | 'OUTAGE'
-export interface AuthTokenPair {
- accessOrWorkspaceAgnosticToken: AuthToken
- refreshToken: AuthToken
- __typename: 'AuthTokenPair'
+export interface SystemHealth {
+ services: SystemHealthService[]
+ __typename: 'SystemHealth'
}
-export interface AvailableWorkspacesAndAccessTokens {
- tokens: AuthTokenPair
- availableWorkspaces: AvailableWorkspaces
- __typename: 'AvailableWorkspacesAndAccessTokens'
+export interface FeatureFlag {
+ key: FeatureFlagKey
+ value: Scalars['Boolean']
+ __typename: 'FeatureFlag'
}
-export interface EmailPasswordResetLink {
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean']
- __typename: 'EmailPasswordResetLink'
+export interface UserInfo {
+ id: Scalars['UUID']
+ email: Scalars['String']
+ firstName?: Scalars['String']
+ lastName?: Scalars['String']
+ __typename: 'UserInfo'
}
-export interface GetAuthorizationUrlForSSO {
- authorizationURL: Scalars['String']
- type: Scalars['String']
+export interface WorkspaceInfo {
id: Scalars['UUID']
- __typename: 'GetAuthorizationUrlForSSO'
+ name: Scalars['String']
+ allowImpersonation: Scalars['Boolean']
+ logo?: Scalars['String']
+ totalUsers: Scalars['Float']
+ workspaceUrls: WorkspaceUrls
+ users: UserInfo[]
+ featureFlags: FeatureFlag[]
+ __typename: 'WorkspaceInfo'
}
-export interface InvalidatePassword {
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean']
- __typename: 'InvalidatePassword'
+export interface UserLookup {
+ user: UserInfo
+ workspaces: WorkspaceInfo[]
+ __typename: 'UserLookup'
}
-export interface WorkspaceUrlsAndId {
- workspaceUrls: WorkspaceUrls
- id: Scalars['UUID']
- __typename: 'WorkspaceUrlsAndId'
+export interface VersionInfo {
+ currentVersion?: Scalars['String']
+ latestVersion: Scalars['String']
+ __typename: 'VersionInfo'
}
-export interface SignUp {
- loginToken: AuthToken
- workspace: WorkspaceUrlsAndId
- __typename: 'SignUp'
+export interface AdminPanelWorkerQueueHealth {
+ id: Scalars['String']
+ queueName: Scalars['String']
+ status: AdminPanelHealthServiceStatus
+ __typename: 'AdminPanelWorkerQueueHealth'
}
-export interface TransientToken {
- transientToken: AuthToken
- __typename: 'TransientToken'
+export interface AdminPanelHealthServiceData {
+ id: HealthIndicatorId
+ label: Scalars['String']
+ description: Scalars['String']
+ status: AdminPanelHealthServiceStatus
+ errorMessage?: Scalars['String']
+ details?: Scalars['String']
+ queues?: AdminPanelWorkerQueueHealth[]
+ __typename: 'AdminPanelHealthServiceData'
}
-export interface ValidatePasswordResetToken {
- id: Scalars['UUID']
- email: Scalars['String']
- hasPassword: Scalars['Boolean']
- __typename: 'ValidatePasswordResetToken'
+export interface ModelsDevModelSuggestion {
+ modelId: Scalars['String']
+ name: Scalars['String']
+ inputCostPerMillionTokens: Scalars['Float']
+ outputCostPerMillionTokens: Scalars['Float']
+ cachedInputCostPerMillionTokens?: Scalars['Float']
+ cacheCreationCostPerMillionTokens?: Scalars['Float']
+ contextWindowTokens: Scalars['Float']
+ maxOutputTokens: Scalars['Float']
+ modalities: Scalars['String'][]
+ supportsReasoning: Scalars['Boolean']
+ __typename: 'ModelsDevModelSuggestion'
}
-export interface VerifyEmailAndGetLoginToken {
- loginToken: AuthToken
- workspaceUrls: WorkspaceUrls
- __typename: 'VerifyEmailAndGetLoginToken'
+export interface ModelsDevProviderSuggestion {
+ id: Scalars['String']
+ modelCount: Scalars['Float']
+ npm: Scalars['String']
+ __typename: 'ModelsDevProviderSuggestion'
}
-export interface ApiKeyToken {
- token: Scalars['String']
- __typename: 'ApiKeyToken'
+export interface QueueMetricsDataPoint {
+ x: Scalars['Float']
+ y: Scalars['Float']
+ __typename: 'QueueMetricsDataPoint'
}
-export interface AuthTokens {
- tokens: AuthTokenPair
- __typename: 'AuthTokens'
+export interface QueueMetricsSeries {
+ id: Scalars['String']
+ data: QueueMetricsDataPoint[]
+ __typename: 'QueueMetricsSeries'
}
-export interface LoginToken {
- loginToken: AuthToken
- __typename: 'LoginToken'
+export interface WorkerQueueMetrics {
+ failed: Scalars['Float']
+ completed: Scalars['Float']
+ waiting: Scalars['Float']
+ active: Scalars['Float']
+ delayed: Scalars['Float']
+ failureRate: Scalars['Float']
+ failedData?: Scalars['Float'][]
+ completedData?: Scalars['Float'][]
+ __typename: 'WorkerQueueMetrics'
}
-export interface CheckUserExist {
- exists: Scalars['Boolean']
- availableWorkspacesCount: Scalars['Float']
- isEmailVerified: Scalars['Boolean']
- __typename: 'CheckUserExist'
+export interface QueueMetricsData {
+ queueName: Scalars['String']
+ workers: Scalars['Float']
+ timeRange: QueueMetricsTimeRange
+ details?: WorkerQueueMetrics
+ data: QueueMetricsSeries[]
+ __typename: 'QueueMetricsData'
}
-export interface WorkspaceInviteHashValid {
- isValid: Scalars['Boolean']
- __typename: 'WorkspaceInviteHashValid'
-}
+export type QueueMetricsTimeRange = 'SevenDays' | 'OneDay' | 'TwelveHours' | 'FourHours' | 'OneHour'
-export interface RecordIdentifier {
- id: Scalars['UUID']
- labelIdentifier: Scalars['String']
- imageIdentifier?: Scalars['String']
- __typename: 'RecordIdentifier'
+export interface VersionDistributionEntry {
+ version: Scalars['String']
+ count: Scalars['Int']
+ __typename: 'VersionDistributionEntry'
}
-export interface NavigationMenuItem {
- id: Scalars['UUID']
- userWorkspaceId?: Scalars['UUID']
- targetRecordId?: Scalars['UUID']
- targetObjectMetadataId?: Scalars['UUID']
- viewId?: Scalars['UUID']
- type: NavigationMenuItemType
- name?: Scalars['String']
- link?: Scalars['String']
- icon?: Scalars['String']
- color?: Scalars['String']
- folderId?: Scalars['UUID']
- position: Scalars['Float']
- applicationId?: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- targetRecordIdentifier?: RecordIdentifier
- __typename: 'NavigationMenuItem'
+export interface ApplicationRegistrationStats {
+ activeInstalls: Scalars['Int']
+ mostInstalledVersion?: Scalars['String']
+ versionDistribution: VersionDistributionEntry[]
+ __typename: 'ApplicationRegistrationStats'
}
-export type NavigationMenuItemType = 'VIEW' | 'FOLDER' | 'LINK' | 'OBJECT' | 'RECORD'
-
-export interface ObjectRecordEventProperties {
- updatedFields?: Scalars['String'][]
- before?: Scalars['JSON']
- after?: Scalars['JSON']
- diff?: Scalars['JSON']
- __typename: 'ObjectRecordEventProperties'
+export interface CreateApplicationRegistration {
+ applicationRegistration: ApplicationRegistration
+ clientSecret: Scalars['String']
+ __typename: 'CreateApplicationRegistration'
}
-export interface MetadataEvent {
- type: MetadataEventAction
- metadataName: Scalars['String']
- recordId: Scalars['String']
- properties: ObjectRecordEventProperties
- updatedCollectionHash?: Scalars['String']
- __typename: 'MetadataEvent'
+export interface PublicApplicationRegistration {
+ id: Scalars['UUID']
+ name: Scalars['String']
+ logoUrl?: Scalars['String']
+ websiteUrl?: Scalars['String']
+ oAuthScopes: Scalars['String'][]
+ __typename: 'PublicApplicationRegistration'
}
-
-/** Metadata Event Action */
-export type MetadataEventAction = 'CREATED' | 'UPDATED' | 'DELETED'
-
-export interface ObjectRecordEvent {
- action: DatabaseEventAction
- objectNameSingular: Scalars['String']
- recordId: Scalars['String']
- userId?: Scalars['String']
- workspaceMemberId?: Scalars['String']
- properties: ObjectRecordEventProperties
- __typename: 'ObjectRecordEvent'
+export interface RotateClientSecret {
+ clientSecret: Scalars['String']
+ __typename: 'RotateClientSecret'
}
-
-/** Database Event Action */
-export type DatabaseEventAction = 'CREATED' | 'UPDATED' | 'DELETED' | 'DESTROYED' | 'RESTORED' | 'UPSERTED'
-
-export interface ObjectRecordEventWithQueryIds {
- queryIds: Scalars['String'][]
- objectRecordEvent: ObjectRecordEvent
- __typename: 'ObjectRecordEventWithQueryIds'
+export interface ResendEmailVerificationToken {
+ success: Scalars['Boolean']
+ __typename: 'ResendEmailVerificationToken'
}
-export interface EventSubscription {
- eventStreamId: Scalars['String']
- objectRecordEventsWithQueryIds: ObjectRecordEventWithQueryIds[]
- metadataEvents: MetadataEvent[]
- __typename: 'EventSubscription'
+export interface DeleteSso {
+ identityProviderId: Scalars['UUID']
+ __typename: 'DeleteSso'
}
-export interface LogicFunctionExecutionResult {
- /** Execution result in JSON format */
- data?: Scalars['JSON']
- /** Execution Logs */
- logs: Scalars['String']
- /** Execution duration in milliseconds */
- duration: Scalars['Float']
- /** Execution status */
- status: LogicFunctionExecutionStatus
- /** Execution error in JSON format */
- error?: Scalars['JSON']
- __typename: 'LogicFunctionExecutionResult'
+export interface EditSso {
+ id: Scalars['UUID']
+ type: IdentityProviderType
+ issuer: Scalars['String']
+ name: Scalars['String']
+ status: SSOIdentityProviderStatus
+ __typename: 'EditSso'
}
-
-/** Status of the logic function execution */
-export type LogicFunctionExecutionStatus = 'IDLE' | 'SUCCESS' | 'ERROR'
-
-export interface LogicFunctionLogs {
- /** Execution Logs */
- logs: Scalars['String']
- __typename: 'LogicFunctionLogs'
+export interface WorkspaceNameAndId {
+ displayName?: Scalars['String']
+ id: Scalars['UUID']
+ __typename: 'WorkspaceNameAndId'
}
-export interface ToolIndexEntry {
+export interface FindAvailableSSOIDP {
+ type: IdentityProviderType
+ id: Scalars['UUID']
+ issuer: Scalars['String']
name: Scalars['String']
- description: Scalars['String']
- category: Scalars['String']
- objectName?: Scalars['String']
- inputSchema?: Scalars['JSON']
- __typename: 'ToolIndexEntry'
+ status: SSOIdentityProviderStatus
+ workspace: WorkspaceNameAndId
+ __typename: 'FindAvailableSSOIDP'
}
-export interface AgentMessagePart {
+export interface SetupSso {
id: Scalars['UUID']
- messageId: Scalars['UUID']
- orderIndex: Scalars['Int']
- type: Scalars['String']
- textContent?: Scalars['String']
- reasoningContent?: Scalars['String']
- toolName?: Scalars['String']
- toolCallId?: Scalars['String']
- toolInput?: Scalars['JSON']
- toolOutput?: Scalars['JSON']
- state?: Scalars['String']
- errorMessage?: Scalars['String']
- errorDetails?: Scalars['JSON']
- sourceUrlSourceId?: Scalars['String']
- sourceUrlUrl?: Scalars['String']
- sourceUrlTitle?: Scalars['String']
- sourceDocumentSourceId?: Scalars['String']
- sourceDocumentMediaType?: Scalars['String']
- sourceDocumentTitle?: Scalars['String']
- sourceDocumentFilename?: Scalars['String']
- fileMediaType?: Scalars['String']
- fileFilename?: Scalars['String']
- fileId?: Scalars['UUID']
- fileUrl?: Scalars['String']
- providerMetadata?: Scalars['JSON']
- createdAt: Scalars['DateTime']
- __typename: 'AgentMessagePart'
+ type: IdentityProviderType
+ issuer: Scalars['String']
+ name: Scalars['String']
+ status: SSOIdentityProviderStatus
+ __typename: 'SetupSso'
}
-export interface Skill {
+export interface SSOConnection {
+ type: IdentityProviderType
id: Scalars['UUID']
+ issuer: Scalars['String']
name: Scalars['String']
- label: Scalars['String']
- icon?: Scalars['String']
- description?: Scalars['String']
- content: Scalars['String']
- isCustom: Scalars['Boolean']
- isActive: Scalars['Boolean']
- applicationId?: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'Skill'
+ status: SSOIdentityProviderStatus
+ __typename: 'SSOConnection'
}
-export interface ApplicationTokenPair {
- applicationAccessToken: AuthToken
- applicationRefreshToken: AuthToken
- __typename: 'ApplicationTokenPair'
+export interface AvailableWorkspace {
+ id: Scalars['UUID']
+ displayName?: Scalars['String']
+ loginToken?: Scalars['String']
+ personalInviteToken?: Scalars['String']
+ inviteHash?: Scalars['String']
+ workspaceUrls: WorkspaceUrls
+ logo?: Scalars['String']
+ sso: SSOConnection[]
+ __typename: 'AvailableWorkspace'
}
-export interface FrontComponent {
- id: Scalars['UUID']
- name: Scalars['String']
- description?: Scalars['String']
- sourceComponentPath: Scalars['String']
- builtComponentPath: Scalars['String']
- componentName: Scalars['String']
- builtComponentChecksum: Scalars['String']
- universalIdentifier?: Scalars['UUID']
- applicationId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- isHeadless: Scalars['Boolean']
- applicationTokenPair?: ApplicationTokenPair
- __typename: 'FrontComponent'
+export interface AvailableWorkspaces {
+ availableWorkspacesForSignIn: AvailableWorkspace[]
+ availableWorkspacesForSignUp: AvailableWorkspace[]
+ __typename: 'AvailableWorkspaces'
}
-export interface CommandMenuItem {
+export interface DeletedWorkspaceMember {
id: Scalars['UUID']
- workflowVersionId?: Scalars['UUID']
- frontComponentId?: Scalars['UUID']
- frontComponent?: FrontComponent
- engineComponentKey: EngineComponentKey
- label: Scalars['String']
- icon?: Scalars['String']
- shortLabel?: Scalars['String']
- position: Scalars['Float']
- isPinned: Scalars['Boolean']
- availabilityType: CommandMenuItemAvailabilityType
- hotKeys?: Scalars['String'][]
- conditionalAvailabilityExpression?: Scalars['String']
- availabilityObjectMetadataId?: Scalars['UUID']
- applicationId?: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'CommandMenuItem'
+ name: FullName
+ userEmail: Scalars['String']
+ avatarUrl?: Scalars['String']
+ userWorkspaceId?: Scalars['UUID']
+ __typename: 'DeletedWorkspaceMember'
}
-export type EngineComponentKey = 'NAVIGATE_TO_NEXT_RECORD' | 'NAVIGATE_TO_PREVIOUS_RECORD' | 'CREATE_NEW_RECORD' | 'DELETE_SINGLE_RECORD' | 'DELETE_MULTIPLE_RECORDS' | 'RESTORE_SINGLE_RECORD' | 'RESTORE_MULTIPLE_RECORDS' | 'DESTROY_SINGLE_RECORD' | 'DESTROY_MULTIPLE_RECORDS' | 'ADD_TO_FAVORITES' | 'REMOVE_FROM_FAVORITES' | 'EXPORT_NOTE_TO_PDF' | 'EXPORT_FROM_RECORD_INDEX' | 'EXPORT_FROM_RECORD_SHOW' | 'UPDATE_MULTIPLE_RECORDS' | 'MERGE_MULTIPLE_RECORDS' | 'EXPORT_MULTIPLE_RECORDS' | 'IMPORT_RECORDS' | 'EXPORT_VIEW' | 'SEE_DELETED_RECORDS' | 'CREATE_NEW_VIEW' | 'HIDE_DELETED_RECORDS' | 'GO_TO_PEOPLE' | 'GO_TO_COMPANIES' | 'GO_TO_DASHBOARDS' | 'GO_TO_OPPORTUNITIES' | 'GO_TO_SETTINGS' | 'GO_TO_TASKS' | 'GO_TO_NOTES' | 'EDIT_RECORD_PAGE_LAYOUT' | 'EDIT_DASHBOARD_LAYOUT' | 'SAVE_DASHBOARD_LAYOUT' | 'CANCEL_DASHBOARD_LAYOUT' | 'DUPLICATE_DASHBOARD' | 'GO_TO_WORKFLOWS' | 'ACTIVATE_WORKFLOW' | 'DEACTIVATE_WORKFLOW' | 'DISCARD_DRAFT_WORKFLOW' | 'TEST_WORKFLOW' | 'SEE_ACTIVE_VERSION_WORKFLOW' | 'SEE_RUNS_WORKFLOW' | 'SEE_VERSIONS_WORKFLOW' | 'ADD_NODE_WORKFLOW' | 'TIDY_UP_WORKFLOW' | 'DUPLICATE_WORKFLOW' | 'GO_TO_RUNS' | 'SEE_VERSION_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_RUN' | 'STOP_WORKFLOW_RUN' | 'SEE_RUNS_WORKFLOW_VERSION' | 'SEE_WORKFLOW_WORKFLOW_VERSION' | 'USE_AS_DRAFT_WORKFLOW_VERSION' | 'SEE_VERSIONS_WORKFLOW_VERSION' | 'SEARCH_RECORDS' | 'SEARCH_RECORDS_FALLBACK' | 'ASK_AI' | 'VIEW_PREVIOUS_AI_CHATS' | 'TRIGGER_WORKFLOW_VERSION' | 'FRONT_COMPONENT_RENDERER'
+export interface BillingEntitlement {
+ key: BillingEntitlementKey
+ value: Scalars['Boolean']
+ __typename: 'BillingEntitlement'
+}
-export type CommandMenuItemAvailabilityType = 'GLOBAL' | 'RECORD_SELECTION' | 'FALLBACK'
+export type BillingEntitlementKey = 'SSO' | 'CUSTOM_DOMAIN' | 'RLS' | 'AUDIT_LOGS'
-export interface AgentChatThread {
- id: Scalars['UUID']
- title?: Scalars['String']
- totalInputTokens: Scalars['Int']
- totalOutputTokens: Scalars['Int']
- contextWindowTokens?: Scalars['Int']
- conversationSize: Scalars['Int']
- totalInputCredits: Scalars['Float']
- totalOutputCredits: Scalars['Float']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'AgentChatThread'
+export interface DomainRecord {
+ validationType: Scalars['String']
+ type: Scalars['String']
+ status: Scalars['String']
+ key: Scalars['String']
+ value: Scalars['String']
+ __typename: 'DomainRecord'
}
-export interface AgentMessage {
+export interface DomainValidRecords {
id: Scalars['UUID']
- threadId: Scalars['UUID']
- turnId: Scalars['UUID']
- agentId?: Scalars['UUID']
- role: Scalars['String']
- parts: AgentMessagePart[]
- createdAt: Scalars['DateTime']
- __typename: 'AgentMessage'
+ domain: Scalars['String']
+ records: DomainRecord[]
+ __typename: 'DomainValidRecords'
}
-export interface AISystemPromptSection {
- title: Scalars['String']
- content: Scalars['String']
- estimatedTokenCount: Scalars['Int']
- __typename: 'AISystemPromptSection'
+export interface IndexEdge {
+ /** The node containing the Index */
+ node: Index
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']
+ __typename: 'IndexEdge'
}
-export interface AISystemPromptPreview {
- sections: AISystemPromptSection[]
- estimatedTokenCount: Scalars['Int']
- __typename: 'AISystemPromptPreview'
+export interface PageInfo {
+ /** true if paging forward and there are more records. */
+ hasNextPage?: Scalars['Boolean']
+ /** true if paging backwards and there are more records. */
+ hasPreviousPage?: Scalars['Boolean']
+ /** The cursor of the first returned record. */
+ startCursor?: Scalars['ConnectionCursor']
+ /** The cursor of the last returned record. */
+ endCursor?: Scalars['ConnectionCursor']
+ __typename: 'PageInfo'
}
-export interface AgentChatThreadEdge {
- /** The node containing the AgentChatThread */
- node: AgentChatThread
+export interface IndexConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: IndexEdge[]
+ __typename: 'IndexConnection'
+}
+
+export interface IndexFieldEdge {
+ /** The node containing the IndexField */
+ node: IndexField
/** Cursor for this node. */
cursor: Scalars['ConnectionCursor']
- __typename: 'AgentChatThreadEdge'
+ __typename: 'IndexFieldEdge'
}
-export interface AgentChatThreadConnection {
+export interface IndexIndexFieldMetadatasConnection {
/** Paging information */
pageInfo: PageInfo
/** Array of edges. */
- edges: AgentChatThreadEdge[]
- __typename: 'AgentChatThreadConnection'
+ edges: IndexFieldEdge[]
+ __typename: 'IndexIndexFieldMetadatasConnection'
}
-export interface AgentTurnEvaluation {
- id: Scalars['UUID']
- turnId: Scalars['UUID']
- score: Scalars['Int']
- comment?: Scalars['String']
- createdAt: Scalars['DateTime']
- __typename: 'AgentTurnEvaluation'
+export interface ObjectEdge {
+ /** The node containing the Object */
+ node: Object
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']
+ __typename: 'ObjectEdge'
}
-export interface AgentTurn {
- id: Scalars['UUID']
- threadId: Scalars['UUID']
- agentId?: Scalars['UUID']
- evaluations: AgentTurnEvaluation[]
- messages: AgentMessage[]
- createdAt: Scalars['DateTime']
- __typename: 'AgentTurn'
+export interface IndexObjectMetadataConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: ObjectEdge[]
+ __typename: 'IndexObjectMetadataConnection'
}
-export interface CalendarChannel {
- id: Scalars['UUID']
- handle: Scalars['String']
- syncStatus: CalendarChannelSyncStatus
- syncStage: CalendarChannelSyncStage
- visibility: CalendarChannelVisibility
- isContactAutoCreationEnabled: Scalars['Boolean']
- contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy
- isSyncEnabled: Scalars['Boolean']
- syncedAt?: Scalars['DateTime']
- syncStageStartedAt?: Scalars['DateTime']
- throttleFailureCount: Scalars['Float']
- connectedAccountId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'CalendarChannel'
+export interface ObjectRecordCount {
+ objectNamePlural: Scalars['String']
+ totalCount: Scalars['Int']
+ __typename: 'ObjectRecordCount'
}
-export type CalendarChannelSyncStatus = 'NOT_SYNCED' | 'ONGOING' | 'ACTIVE' | 'FAILED_INSUFFICIENT_PERMISSIONS' | 'FAILED_UNKNOWN'
+export interface ObjectConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: ObjectEdge[]
+ __typename: 'ObjectConnection'
+}
-export type CalendarChannelSyncStage = 'PENDING_CONFIGURATION' | 'CALENDAR_EVENT_LIST_FETCH_PENDING' | 'CALENDAR_EVENT_LIST_FETCH_SCHEDULED' | 'CALENDAR_EVENT_LIST_FETCH_ONGOING' | 'CALENDAR_EVENTS_IMPORT_PENDING' | 'CALENDAR_EVENTS_IMPORT_SCHEDULED' | 'CALENDAR_EVENTS_IMPORT_ONGOING' | 'FAILED'
-
-export type CalendarChannelVisibility = 'METADATA' | 'SHARE_EVERYTHING'
+export interface ObjectIndexMetadatasConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: IndexEdge[]
+ __typename: 'ObjectIndexMetadatasConnection'
+}
-export type CalendarChannelContactAutoCreationPolicy = 'AS_PARTICIPANT_AND_ORGANIZER' | 'AS_PARTICIPANT' | 'AS_ORGANIZER' | 'NONE'
+export interface FieldEdge {
+ /** The node containing the Field */
+ node: Field
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']
+ __typename: 'FieldEdge'
+}
-export interface ConnectedAccountDTO {
- id: Scalars['UUID']
- handle: Scalars['String']
- provider: Scalars['String']
- lastCredentialsRefreshedAt?: Scalars['DateTime']
- authFailedAt?: Scalars['DateTime']
- handleAliases?: Scalars['String'][]
- scopes?: Scalars['String'][]
- lastSignedInAt?: Scalars['DateTime']
- userWorkspaceId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'ConnectedAccountDTO'
+export interface ObjectFieldsConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: FieldEdge[]
+ __typename: 'ObjectFieldsConnection'
}
-export interface MessageChannel {
- id: Scalars['UUID']
- visibility: MessageChannelVisibility
- handle: Scalars['String']
- type: MessageChannelType
- isContactAutoCreationEnabled: Scalars['Boolean']
- contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy
- messageFolderImportPolicy: MessageFolderImportPolicy
- excludeNonProfessionalEmails: Scalars['Boolean']
- excludeGroupEmails: Scalars['Boolean']
- pendingGroupEmailsAction: MessageChannelPendingGroupEmailsAction
- isSyncEnabled: Scalars['Boolean']
- syncedAt?: Scalars['DateTime']
- syncStatus: MessageChannelSyncStatus
- syncStage: MessageChannelSyncStage
- syncStageStartedAt?: Scalars['DateTime']
- throttleFailureCount: Scalars['Float']
- throttleRetryAfter?: Scalars['DateTime']
- connectedAccountId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'MessageChannel'
+export interface UpsertRowLevelPermissionPredicatesResult {
+ predicates: RowLevelPermissionPredicate[]
+ predicateGroups: RowLevelPermissionPredicateGroup[]
+ __typename: 'UpsertRowLevelPermissionPredicatesResult'
}
-export type MessageChannelVisibility = 'METADATA' | 'SUBJECT' | 'SHARE_EVERYTHING'
+export interface Relation {
+ type: RelationType
+ sourceObjectMetadata: Object
+ targetObjectMetadata: Object
+ sourceFieldMetadata: Field
+ targetFieldMetadata: Field
+ __typename: 'Relation'
+}
-export type MessageChannelType = 'EMAIL' | 'SMS'
-export type MessageChannelContactAutoCreationPolicy = 'SENT_AND_RECEIVED' | 'SENT' | 'NONE'
+/** Relation type */
+export type RelationType = 'ONE_TO_MANY' | 'MANY_TO_ONE'
-export type MessageFolderImportPolicy = 'ALL_FOLDERS' | 'SELECTED_FOLDERS'
+export interface FieldConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: FieldEdge[]
+ __typename: 'FieldConnection'
+}
-export type MessageChannelPendingGroupEmailsAction = 'GROUP_EMAILS_DELETION' | 'GROUP_EMAILS_IMPORT' | 'NONE'
+export interface DeleteTwoFactorAuthenticationMethod {
+ /** Boolean that confirms query was dispatched */
+ success: Scalars['Boolean']
+ __typename: 'DeleteTwoFactorAuthenticationMethod'
+}
-export type MessageChannelSyncStatus = 'NOT_SYNCED' | 'ONGOING' | 'ACTIVE' | 'FAILED_INSUFFICIENT_PERMISSIONS' | 'FAILED_UNKNOWN'
+export interface InitiateTwoFactorAuthenticationProvisioning {
+ uri: Scalars['String']
+ __typename: 'InitiateTwoFactorAuthenticationProvisioning'
+}
-export type MessageChannelSyncStage = 'PENDING_CONFIGURATION' | 'MESSAGE_LIST_FETCH_PENDING' | 'MESSAGE_LIST_FETCH_SCHEDULED' | 'MESSAGE_LIST_FETCH_ONGOING' | 'MESSAGES_IMPORT_PENDING' | 'MESSAGES_IMPORT_SCHEDULED' | 'MESSAGES_IMPORT_ONGOING' | 'FAILED'
+export interface VerifyTwoFactorAuthenticationMethod {
+ success: Scalars['Boolean']
+ __typename: 'VerifyTwoFactorAuthenticationMethod'
+}
-export interface MessageFolder {
- id: Scalars['UUID']
- name?: Scalars['String']
- isSentFolder: Scalars['Boolean']
- isSynced: Scalars['Boolean']
- parentFolderId?: Scalars['UUID']
- externalId?: Scalars['String']
- pendingSyncAction: MessageFolderPendingSyncAction
- messageChannelId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- __typename: 'MessageFolder'
+export interface AuthorizeApp {
+ redirectUrl: Scalars['String']
+ __typename: 'AuthorizeApp'
}
-export type MessageFolderPendingSyncAction = 'FOLDER_DELETION' | 'NONE'
+export interface AuthToken {
+ token: Scalars['String']
+ expiresAt: Scalars['DateTime']
+ __typename: 'AuthToken'
+}
-export interface CollectionHash {
- collectionName: AllMetadataName
- hash: Scalars['String']
- __typename: 'CollectionHash'
+export interface AuthTokenPair {
+ accessOrWorkspaceAgnosticToken: AuthToken
+ refreshToken: AuthToken
+ __typename: 'AuthTokenPair'
}
-export type AllMetadataName = 'fieldMetadata' | 'objectMetadata' | 'view' | 'viewField' | 'viewFieldGroup' | 'viewGroup' | 'viewSort' | 'rowLevelPermissionPredicate' | 'rowLevelPermissionPredicateGroup' | 'viewFilterGroup' | 'index' | 'logicFunction' | 'viewFilter' | 'role' | 'roleTarget' | 'agent' | 'skill' | 'pageLayout' | 'pageLayoutWidget' | 'pageLayoutTab' | 'commandMenuItem' | 'navigationMenuItem' | 'permissionFlag' | 'objectPermission' | 'frontComponent' | 'webhook'
+export interface AvailableWorkspacesAndAccessTokens {
+ tokens: AuthTokenPair
+ availableWorkspaces: AvailableWorkspaces
+ __typename: 'AvailableWorkspacesAndAccessTokens'
+}
-export interface MinimalObjectMetadata {
- id: Scalars['UUID']
- nameSingular: Scalars['String']
- namePlural: Scalars['String']
- labelSingular: Scalars['String']
- labelPlural: Scalars['String']
- icon?: Scalars['String']
- color?: Scalars['String']
- isCustom: Scalars['Boolean']
- isActive: Scalars['Boolean']
- isSystem: Scalars['Boolean']
- isRemote: Scalars['Boolean']
- __typename: 'MinimalObjectMetadata'
+export interface EmailPasswordResetLink {
+ /** Boolean that confirms query was dispatched */
+ success: Scalars['Boolean']
+ __typename: 'EmailPasswordResetLink'
}
-export interface MinimalView {
+export interface GetAuthorizationUrlForSSO {
+ authorizationURL: Scalars['String']
+ type: Scalars['String']
id: Scalars['UUID']
- type: ViewType
- key?: ViewKey
- objectMetadataId: Scalars['UUID']
- __typename: 'MinimalView'
+ __typename: 'GetAuthorizationUrlForSSO'
}
-export interface MinimalMetadata {
- objectMetadataItems: MinimalObjectMetadata[]
- views: MinimalView[]
- collectionHashes: CollectionHash[]
- __typename: 'MinimalMetadata'
+export interface InvalidatePassword {
+ /** Boolean that confirms query was dispatched */
+ success: Scalars['Boolean']
+ __typename: 'InvalidatePassword'
}
-export interface Webhook {
+export interface WorkspaceUrlsAndId {
+ workspaceUrls: WorkspaceUrls
id: Scalars['UUID']
- targetUrl: Scalars['String']
- operations: Scalars['String'][]
- description?: Scalars['String']
- secret: Scalars['String']
- applicationId: Scalars['UUID']
- createdAt: Scalars['DateTime']
- updatedAt: Scalars['DateTime']
- deletedAt?: Scalars['DateTime']
- __typename: 'Webhook'
+ __typename: 'WorkspaceUrlsAndId'
}
-export interface BillingTrialPeriod {
- duration: Scalars['Float']
- isCreditCardRequired: Scalars['Boolean']
- __typename: 'BillingTrialPeriod'
+export interface SignUp {
+ loginToken: AuthToken
+ workspace: WorkspaceUrlsAndId
+ __typename: 'SignUp'
}
-export interface NativeModelCapabilities {
- webSearch?: Scalars['Boolean']
- twitterSearch?: Scalars['Boolean']
- __typename: 'NativeModelCapabilities'
+export interface TransientToken {
+ transientToken: AuthToken
+ __typename: 'TransientToken'
}
-export interface ClientAIModelConfig {
- modelId: Scalars['String']
- label: Scalars['String']
- modelFamily?: ModelFamily
- modelFamilyLabel?: Scalars['String']
- sdkPackage?: Scalars['String']
- inputCostPerMillionTokensInCredits: Scalars['Float']
- outputCostPerMillionTokensInCredits: Scalars['Float']
- nativeCapabilities?: NativeModelCapabilities
- isDeprecated?: Scalars['Boolean']
- isRecommended?: Scalars['Boolean']
- providerName?: Scalars['String']
- dataResidency?: Scalars['String']
- __typename: 'ClientAIModelConfig'
+export interface ValidatePasswordResetToken {
+ id: Scalars['UUID']
+ email: Scalars['String']
+ hasPassword: Scalars['Boolean']
+ __typename: 'ValidatePasswordResetToken'
}
-export type ModelFamily = 'GPT' | 'CLAUDE' | 'GEMINI' | 'MISTRAL' | 'GROK'
+export interface VerifyEmailAndGetLoginToken {
+ loginToken: AuthToken
+ workspaceUrls: WorkspaceUrls
+ __typename: 'VerifyEmailAndGetLoginToken'
+}
-export interface AdminAIModelConfig {
- modelId: Scalars['String']
- label: Scalars['String']
- modelFamily?: ModelFamily
- modelFamilyLabel?: Scalars['String']
- sdkPackage?: Scalars['String']
- isAvailable: Scalars['Boolean']
- isAdminEnabled: Scalars['Boolean']
- isDeprecated?: Scalars['Boolean']
- isRecommended?: Scalars['Boolean']
- contextWindowTokens?: Scalars['Float']
- maxOutputTokens?: Scalars['Float']
- inputCostPerMillionTokens?: Scalars['Float']
- outputCostPerMillionTokens?: Scalars['Float']
- providerName?: Scalars['String']
- providerLabel?: Scalars['String']
- name?: Scalars['String']
- dataResidency?: Scalars['String']
- __typename: 'AdminAIModelConfig'
+export interface ApiKeyToken {
+ token: Scalars['String']
+ __typename: 'ApiKeyToken'
}
-export interface AdminAIModels {
- models: AdminAIModelConfig[]
- defaultSmartModelId?: Scalars['String']
- defaultFastModelId?: Scalars['String']
- __typename: 'AdminAIModels'
+export interface AuthTokens {
+ tokens: AuthTokenPair
+ __typename: 'AuthTokens'
}
-export interface Billing {
- isBillingEnabled: Scalars['Boolean']
- billingUrl?: Scalars['String']
- trialPeriods: BillingTrialPeriod[]
- __typename: 'Billing'
+export interface LoginToken {
+ loginToken: AuthToken
+ __typename: 'LoginToken'
}
-export interface Support {
- supportDriver: SupportDriver
- supportFrontChatId?: Scalars['String']
- __typename: 'Support'
+export interface CheckUserExist {
+ exists: Scalars['Boolean']
+ availableWorkspacesCount: Scalars['Float']
+ isEmailVerified: Scalars['Boolean']
+ __typename: 'CheckUserExist'
}
-export type SupportDriver = 'NONE' | 'FRONT'
-
-export interface Sentry {
- environment?: Scalars['String']
- release?: Scalars['String']
- dsn?: Scalars['String']
- __typename: 'Sentry'
+export interface WorkspaceInviteHashValid {
+ isValid: Scalars['Boolean']
+ __typename: 'WorkspaceInviteHashValid'
}
-export interface Captcha {
- provider?: CaptchaDriverType
- siteKey?: Scalars['String']
- __typename: 'Captcha'
+export interface Impersonate {
+ loginToken: AuthToken
+ workspace: WorkspaceUrlsAndId
+ __typename: 'Impersonate'
}
-export type CaptchaDriverType = 'GOOGLE_RECAPTCHA' | 'TURNSTILE'
-
-export interface ApiConfig {
- mutationMaximumAffectedRecords: Scalars['Float']
- __typename: 'ApiConfig'
+export interface DevelopmentApplication {
+ id: Scalars['String']
+ universalIdentifier: Scalars['String']
+ __typename: 'DevelopmentApplication'
}
-export interface PublicFeatureFlagMetadata {
- label: Scalars['String']
- description: Scalars['String']
- imagePath?: Scalars['String']
- __typename: 'PublicFeatureFlagMetadata'
+export interface WorkspaceMigration {
+ applicationUniversalIdentifier: Scalars['String']
+ actions: Scalars['JSON']
+ __typename: 'WorkspaceMigration'
}
-export interface PublicFeatureFlag {
- key: FeatureFlagKey
- metadata: PublicFeatureFlagMetadata
- __typename: 'PublicFeatureFlag'
+export interface ApplicationTokenPair {
+ applicationAccessToken: AuthToken
+ applicationRefreshToken: AuthToken
+ __typename: 'ApplicationTokenPair'
}
-export interface ClientConfig {
- appVersion?: Scalars['String']
- authProviders: AuthProviders
- billing: Billing
- aiModels: ClientAIModelConfig[]
- signInPrefilled: Scalars['Boolean']
- isMultiWorkspaceEnabled: Scalars['Boolean']
- isEmailVerificationRequired: Scalars['Boolean']
- defaultSubdomain?: Scalars['String']
- frontDomain: Scalars['String']
- analyticsEnabled: Scalars['Boolean']
- support: Support
- isAttachmentPreviewEnabled: Scalars['Boolean']
- sentry: Sentry
- captcha: Captcha
- api: ApiConfig
- canManageFeatureFlags: Scalars['Boolean']
- publicFeatureFlags: PublicFeatureFlag[]
- isMicrosoftMessagingEnabled: Scalars['Boolean']
- isMicrosoftCalendarEnabled: Scalars['Boolean']
- isGoogleMessagingEnabled: Scalars['Boolean']
- isGoogleCalendarEnabled: Scalars['Boolean']
- isConfigVariablesInDbEnabled: Scalars['Boolean']
- isImapSmtpCaldavEnabled: Scalars['Boolean']
- allowRequestsToTwentyIcons: Scalars['Boolean']
- calendarBookingPageId?: Scalars['String']
- isCloudflareIntegrationEnabled: Scalars['Boolean']
- isClickHouseConfigured: Scalars['Boolean']
- __typename: 'ClientConfig'
+export interface File {
+ id: Scalars['UUID']
+ path: Scalars['String']
+ size: Scalars['Float']
+ createdAt: Scalars['DateTime']
+ __typename: 'File'
}
-export interface ConfigVariable {
+export interface MarketplaceAppField {
name: Scalars['String']
- description: Scalars['String']
- value?: Scalars['JSON']
- isSensitive: Scalars['Boolean']
- source: ConfigSource
- isEnvOnly: Scalars['Boolean']
- type: ConfigVariableType
- options?: Scalars['JSON']
- __typename: 'ConfigVariable'
+ type: Scalars['String']
+ label: Scalars['String']
+ description?: Scalars['String']
+ icon?: Scalars['String']
+ objectUniversalIdentifier?: Scalars['String']
+ universalIdentifier?: Scalars['String']
+ __typename: 'MarketplaceAppField'
}
-export type ConfigSource = 'ENVIRONMENT' | 'DATABASE' | 'DEFAULT'
-
-export type ConfigVariableType = 'BOOLEAN' | 'NUMBER' | 'ARRAY' | 'STRING' | 'ENUM' | 'JSON'
+export interface MarketplaceAppObject {
+ universalIdentifier: Scalars['String']
+ nameSingular: Scalars['String']
+ namePlural: Scalars['String']
+ labelSingular: Scalars['String']
+ labelPlural: Scalars['String']
+ description?: Scalars['String']
+ icon?: Scalars['String']
+ fields: MarketplaceAppField[]
+ __typename: 'MarketplaceAppObject'
+}
-export interface ConfigVariablesGroupData {
- variables: ConfigVariable[]
- name: ConfigVariablesGroup
- description: Scalars['String']
- isHiddenOnLoad: Scalars['Boolean']
- __typename: 'ConfigVariablesGroupData'
+export interface MarketplaceAppLogicFunction {
+ name: Scalars['String']
+ description?: Scalars['String']
+ timeoutSeconds?: Scalars['Int']
+ __typename: 'MarketplaceAppLogicFunction'
}
-export type ConfigVariablesGroup = 'SERVER_CONFIG' | 'RATE_LIMITING' | 'STORAGE_CONFIG' | 'GOOGLE_AUTH' | 'MICROSOFT_AUTH' | 'EMAIL_SETTINGS' | 'LOGGING' | 'ADVANCED_SETTINGS' | 'BILLING_CONFIG' | 'CAPTCHA_CONFIG' | 'CLOUDFLARE_CONFIG' | 'LLM' | 'LOGIC_FUNCTION_CONFIG' | 'CODE_INTERPRETER_CONFIG' | 'SSL' | 'SUPPORT_CHAT_CONFIG' | 'ANALYTICS_CONFIG' | 'TOKENS_DURATION' | 'AWS_SES_SETTINGS'
+export interface MarketplaceAppFrontComponent {
+ name: Scalars['String']
+ description?: Scalars['String']
+ __typename: 'MarketplaceAppFrontComponent'
+}
-export interface ConfigVariables {
- groups: ConfigVariablesGroupData[]
- __typename: 'ConfigVariables'
+export interface MarketplaceAppRoleObjectPermission {
+ objectUniversalIdentifier: Scalars['String']
+ canReadObjectRecords?: Scalars['Boolean']
+ canUpdateObjectRecords?: Scalars['Boolean']
+ canSoftDeleteObjectRecords?: Scalars['Boolean']
+ canDestroyObjectRecords?: Scalars['Boolean']
+ __typename: 'MarketplaceAppRoleObjectPermission'
}
-export interface JobOperationResult {
- jobId: Scalars['String']
- success: Scalars['Boolean']
- error?: Scalars['String']
- __typename: 'JobOperationResult'
+export interface MarketplaceAppRoleFieldPermission {
+ objectUniversalIdentifier: Scalars['String']
+ fieldUniversalIdentifier: Scalars['String']
+ canReadFieldValue?: Scalars['Boolean']
+ canUpdateFieldValue?: Scalars['Boolean']
+ __typename: 'MarketplaceAppRoleFieldPermission'
}
-export interface DeleteJobsResponse {
- deletedCount: Scalars['Int']
- results: JobOperationResult[]
- __typename: 'DeleteJobsResponse'
+export interface MarketplaceAppDefaultRole {
+ id: Scalars['String']
+ label: Scalars['String']
+ description?: Scalars['String']
+ canReadAllObjectRecords: Scalars['Boolean']
+ canUpdateAllObjectRecords: Scalars['Boolean']
+ canSoftDeleteAllObjectRecords: Scalars['Boolean']
+ canDestroyAllObjectRecords: Scalars['Boolean']
+ canUpdateAllSettings: Scalars['Boolean']
+ canAccessAllTools: Scalars['Boolean']
+ objectPermissions: MarketplaceAppRoleObjectPermission[]
+ fieldPermissions: MarketplaceAppRoleFieldPermission[]
+ permissionFlags: Scalars['String'][]
+ __typename: 'MarketplaceAppDefaultRole'
}
-export interface QueueJob {
+export interface MarketplaceApp {
id: Scalars['String']
name: Scalars['String']
- data?: Scalars['JSON']
- state: JobState
- timestamp?: Scalars['Float']
- failedReason?: Scalars['String']
- processedOn?: Scalars['Float']
- finishedOn?: Scalars['Float']
- attemptsMade: Scalars['Float']
- returnValue?: Scalars['JSON']
- logs?: Scalars['String'][]
- stackTrace?: Scalars['String'][]
- __typename: 'QueueJob'
+ description: Scalars['String']
+ icon: Scalars['String']
+ version: Scalars['String']
+ author: Scalars['String']
+ category: Scalars['String']
+ logo?: Scalars['String']
+ screenshots: Scalars['String'][]
+ aboutDescription: Scalars['String']
+ providers: Scalars['String'][]
+ websiteUrl?: Scalars['String']
+ termsUrl?: Scalars['String']
+ objects: MarketplaceAppObject[]
+ fields: MarketplaceAppField[]
+ logicFunctions: MarketplaceAppLogicFunction[]
+ frontComponents: MarketplaceAppFrontComponent[]
+ defaultRole?: MarketplaceAppDefaultRole
+ sourcePackage?: Scalars['String']
+ isFeatured: Scalars['Boolean']
+ __typename: 'MarketplaceApp'
}
-
-/** Job state in the queue */
-export type JobState = 'COMPLETED' | 'FAILED' | 'ACTIVE' | 'WAITING' | 'DELAYED' | 'PRIORITIZED' | 'WAITING_CHILDREN'
-
-export interface QueueRetentionConfig {
- completedMaxAge: Scalars['Float']
- completedMaxCount: Scalars['Float']
- failedMaxAge: Scalars['Float']
- failedMaxCount: Scalars['Float']
- __typename: 'QueueRetentionConfig'
+export interface PublicDomain {
+ id: Scalars['UUID']
+ domain: Scalars['String']
+ isValidated: Scalars['Boolean']
+ createdAt: Scalars['DateTime']
+ __typename: 'PublicDomain'
}
-export interface QueueJobsResponse {
- jobs: QueueJob[]
- count: Scalars['Float']
- totalCount: Scalars['Float']
- hasMore: Scalars['Boolean']
- retentionConfig: QueueRetentionConfig
- __typename: 'QueueJobsResponse'
+export interface VerificationRecord {
+ type: Scalars['String']
+ key: Scalars['String']
+ value: Scalars['String']
+ priority?: Scalars['Float']
+ __typename: 'VerificationRecord'
}
-export interface RetryJobsResponse {
- retriedCount: Scalars['Int']
- results: JobOperationResult[]
- __typename: 'RetryJobsResponse'
+export interface EmailingDomain {
+ id: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ domain: Scalars['String']
+ driver: EmailingDomainDriver
+ status: EmailingDomainStatus
+ verificationRecords?: VerificationRecord[]
+ verifiedAt?: Scalars['DateTime']
+ __typename: 'EmailingDomain'
}
-export interface SystemHealthService {
- id: HealthIndicatorId
- label: Scalars['String']
- status: AdminPanelHealthServiceStatus
- __typename: 'SystemHealthService'
+export type EmailingDomainDriver = 'AWS_SES'
+
+export type EmailingDomainStatus = 'PENDING' | 'VERIFIED' | 'FAILED' | 'TEMPORARY_FAILURE'
+
+export interface AutocompleteResult {
+ text: Scalars['String']
+ placeId: Scalars['String']
+ __typename: 'AutocompleteResult'
}
-export type HealthIndicatorId = 'database' | 'redis' | 'worker' | 'connectedAccount' | 'app'
+export interface Location {
+ lat?: Scalars['Float']
+ lng?: Scalars['Float']
+ __typename: 'Location'
+}
-export type AdminPanelHealthServiceStatus = 'OPERATIONAL' | 'OUTAGE'
+export interface PlaceDetailsResult {
+ state?: Scalars['String']
+ postcode?: Scalars['String']
+ city?: Scalars['String']
+ country?: Scalars['String']
+ location?: Location
+ __typename: 'PlaceDetailsResult'
+}
-export interface SystemHealth {
- services: SystemHealthService[]
- __typename: 'SystemHealth'
+export interface ConnectionParametersOutput {
+ host: Scalars['String']
+ port: Scalars['Float']
+ username?: Scalars['String']
+ password: Scalars['String']
+ secure?: Scalars['Boolean']
+ __typename: 'ConnectionParametersOutput'
}
-export interface UserInfo {
- id: Scalars['UUID']
- email: Scalars['String']
- firstName?: Scalars['String']
- lastName?: Scalars['String']
- __typename: 'UserInfo'
+export interface ImapSmtpCaldavConnectionParameters {
+ IMAP?: ConnectionParametersOutput
+ SMTP?: ConnectionParametersOutput
+ CALDAV?: ConnectionParametersOutput
+ __typename: 'ImapSmtpCaldavConnectionParameters'
}
-export interface WorkspaceInfo {
+export interface ConnectedImapSmtpCaldavAccount {
id: Scalars['UUID']
- name: Scalars['String']
- allowImpersonation: Scalars['Boolean']
- logo?: Scalars['String']
- totalUsers: Scalars['Float']
- workspaceUrls: WorkspaceUrls
- users: UserInfo[]
- featureFlags: FeatureFlag[]
- __typename: 'WorkspaceInfo'
+ handle: Scalars['String']
+ provider: Scalars['String']
+ accountOwnerId: Scalars['UUID']
+ connectionParameters?: ImapSmtpCaldavConnectionParameters
+ __typename: 'ConnectedImapSmtpCaldavAccount'
}
-export interface UserLookup {
- user: UserInfo
- workspaces: WorkspaceInfo[]
- __typename: 'UserLookup'
+export interface ImapSmtpCaldavConnectionSuccess {
+ success: Scalars['Boolean']
+ connectedAccountId: Scalars['String']
+ __typename: 'ImapSmtpCaldavConnectionSuccess'
}
-export interface VersionInfo {
- currentVersion?: Scalars['String']
- latestVersion: Scalars['String']
- __typename: 'VersionInfo'
+export interface PostgresCredentials {
+ id: Scalars['UUID']
+ user: Scalars['String']
+ password: Scalars['String']
+ workspaceId: Scalars['UUID']
+ __typename: 'PostgresCredentials'
}
-export interface AdminPanelWorkerQueueHealth {
- id: Scalars['String']
- queueName: Scalars['String']
- status: AdminPanelHealthServiceStatus
- __typename: 'AdminPanelWorkerQueueHealth'
+export interface UsageBreakdownItem {
+ key: Scalars['String']
+ label?: Scalars['String']
+ creditsUsed: Scalars['Float']
+ __typename: 'UsageBreakdownItem'
}
-export interface AdminPanelHealthServiceData {
- id: HealthIndicatorId
- label: Scalars['String']
- description: Scalars['String']
- status: AdminPanelHealthServiceStatus
- errorMessage?: Scalars['String']
- details?: Scalars['String']
- queues?: AdminPanelWorkerQueueHealth[]
- __typename: 'AdminPanelHealthServiceData'
+export interface UsageTimeSeries {
+ date: Scalars['String']
+ creditsUsed: Scalars['Float']
+ __typename: 'UsageTimeSeries'
}
-export interface ModelsDevModelSuggestion {
- modelId: Scalars['String']
- name: Scalars['String']
- inputCostPerMillionTokens: Scalars['Float']
- outputCostPerMillionTokens: Scalars['Float']
- cachedInputCostPerMillionTokens?: Scalars['Float']
- cacheCreationCostPerMillionTokens?: Scalars['Float']
- contextWindowTokens: Scalars['Float']
- maxOutputTokens: Scalars['Float']
- modalities: Scalars['String'][]
- supportsReasoning: Scalars['Boolean']
- __typename: 'ModelsDevModelSuggestion'
+export interface UsageUserDaily {
+ userWorkspaceId: Scalars['String']
+ dailyUsage: UsageTimeSeries[]
+ __typename: 'UsageUserDaily'
}
-export interface ModelsDevProviderSuggestion {
- id: Scalars['String']
- modelCount: Scalars['Float']
- npm: Scalars['String']
- __typename: 'ModelsDevProviderSuggestion'
+export interface UsageAnalytics {
+ usageByUser: UsageBreakdownItem[]
+ usageByOperationType: UsageBreakdownItem[]
+ timeSeries: UsageTimeSeries[]
+ periodStart: Scalars['DateTime']
+ periodEnd: Scalars['DateTime']
+ userDailyUsage?: UsageUserDaily
+ __typename: 'UsageAnalytics'
}
-export interface QueueMetricsDataPoint {
- x: Scalars['Float']
- y: Scalars['Float']
- __typename: 'QueueMetricsDataPoint'
+export interface LogicFunctionLogs {
+ /** Execution Logs */
+ logs: Scalars['String']
+ __typename: 'LogicFunctionLogs'
}
-export interface QueueMetricsSeries {
- id: Scalars['String']
- data: QueueMetricsDataPoint[]
- __typename: 'QueueMetricsSeries'
+export interface FrontComponent {
+ id: Scalars['UUID']
+ name: Scalars['String']
+ description?: Scalars['String']
+ sourceComponentPath: Scalars['String']
+ builtComponentPath: Scalars['String']
+ componentName: Scalars['String']
+ builtComponentChecksum: Scalars['String']
+ universalIdentifier?: Scalars['UUID']
+ applicationId: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ isHeadless: Scalars['Boolean']
+ usesSdkClient: Scalars['Boolean']
+ applicationTokenPair?: ApplicationTokenPair
+ __typename: 'FrontComponent'
}
-export interface WorkerQueueMetrics {
- failed: Scalars['Float']
- completed: Scalars['Float']
- waiting: Scalars['Float']
- active: Scalars['Float']
- delayed: Scalars['Float']
- failureRate: Scalars['Float']
- failedData?: Scalars['Float'][]
- completedData?: Scalars['Float'][]
- __typename: 'WorkerQueueMetrics'
+export interface CommandMenuItem {
+ id: Scalars['UUID']
+ workflowVersionId?: Scalars['UUID']
+ frontComponentId?: Scalars['UUID']
+ frontComponent?: FrontComponent
+ engineComponentKey: EngineComponentKey
+ label: Scalars['String']
+ icon?: Scalars['String']
+ shortLabel?: Scalars['String']
+ position: Scalars['Float']
+ isPinned: Scalars['Boolean']
+ availabilityType: CommandMenuItemAvailabilityType
+ hotKeys?: Scalars['String'][]
+ conditionalAvailabilityExpression?: Scalars['String']
+ availabilityObjectMetadataId?: Scalars['UUID']
+ applicationId?: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'CommandMenuItem'
}
-export interface QueueMetricsData {
- queueName: Scalars['String']
- workers: Scalars['Float']
- timeRange: QueueMetricsTimeRange
- details?: WorkerQueueMetrics
- data: QueueMetricsSeries[]
- __typename: 'QueueMetricsData'
+export type EngineComponentKey = 'NAVIGATE_TO_NEXT_RECORD' | 'NAVIGATE_TO_PREVIOUS_RECORD' | 'CREATE_NEW_RECORD' | 'DELETE_SINGLE_RECORD' | 'DELETE_MULTIPLE_RECORDS' | 'RESTORE_SINGLE_RECORD' | 'RESTORE_MULTIPLE_RECORDS' | 'DESTROY_SINGLE_RECORD' | 'DESTROY_MULTIPLE_RECORDS' | 'ADD_TO_FAVORITES' | 'REMOVE_FROM_FAVORITES' | 'EXPORT_NOTE_TO_PDF' | 'EXPORT_FROM_RECORD_INDEX' | 'EXPORT_FROM_RECORD_SHOW' | 'UPDATE_MULTIPLE_RECORDS' | 'MERGE_MULTIPLE_RECORDS' | 'EXPORT_MULTIPLE_RECORDS' | 'IMPORT_RECORDS' | 'EXPORT_VIEW' | 'SEE_DELETED_RECORDS' | 'CREATE_NEW_VIEW' | 'HIDE_DELETED_RECORDS' | 'GO_TO_PEOPLE' | 'GO_TO_COMPANIES' | 'GO_TO_DASHBOARDS' | 'GO_TO_OPPORTUNITIES' | 'GO_TO_SETTINGS' | 'GO_TO_TASKS' | 'GO_TO_NOTES' | 'EDIT_RECORD_PAGE_LAYOUT' | 'EDIT_DASHBOARD_LAYOUT' | 'SAVE_DASHBOARD_LAYOUT' | 'CANCEL_DASHBOARD_LAYOUT' | 'DUPLICATE_DASHBOARD' | 'GO_TO_WORKFLOWS' | 'ACTIVATE_WORKFLOW' | 'DEACTIVATE_WORKFLOW' | 'DISCARD_DRAFT_WORKFLOW' | 'TEST_WORKFLOW' | 'SEE_ACTIVE_VERSION_WORKFLOW' | 'SEE_RUNS_WORKFLOW' | 'SEE_VERSIONS_WORKFLOW' | 'ADD_NODE_WORKFLOW' | 'TIDY_UP_WORKFLOW' | 'DUPLICATE_WORKFLOW' | 'GO_TO_RUNS' | 'SEE_VERSION_WORKFLOW_RUN' | 'SEE_WORKFLOW_WORKFLOW_RUN' | 'STOP_WORKFLOW_RUN' | 'SEE_RUNS_WORKFLOW_VERSION' | 'SEE_WORKFLOW_WORKFLOW_VERSION' | 'USE_AS_DRAFT_WORKFLOW_VERSION' | 'SEE_VERSIONS_WORKFLOW_VERSION' | 'SEARCH_RECORDS' | 'SEARCH_RECORDS_FALLBACK' | 'ASK_AI' | 'VIEW_PREVIOUS_AI_CHATS' | 'TRIGGER_WORKFLOW_VERSION' | 'FRONT_COMPONENT_RENDERER'
+
+export type CommandMenuItemAvailabilityType = 'GLOBAL' | 'RECORD_SELECTION' | 'FALLBACK'
+
+export interface ToolIndexEntry {
+ name: Scalars['String']
+ description: Scalars['String']
+ category: Scalars['String']
+ objectName?: Scalars['String']
+ inputSchema?: Scalars['JSON']
+ __typename: 'ToolIndexEntry'
}
-export type QueueMetricsTimeRange = 'SevenDays' | 'OneDay' | 'TwelveHours' | 'FourHours' | 'OneHour'
+export interface AgentMessagePart {
+ id: Scalars['UUID']
+ messageId: Scalars['UUID']
+ orderIndex: Scalars['Int']
+ type: Scalars['String']
+ textContent?: Scalars['String']
+ reasoningContent?: Scalars['String']
+ toolName?: Scalars['String']
+ toolCallId?: Scalars['String']
+ toolInput?: Scalars['JSON']
+ toolOutput?: Scalars['JSON']
+ state?: Scalars['String']
+ errorMessage?: Scalars['String']
+ errorDetails?: Scalars['JSON']
+ sourceUrlSourceId?: Scalars['String']
+ sourceUrlUrl?: Scalars['String']
+ sourceUrlTitle?: Scalars['String']
+ sourceDocumentSourceId?: Scalars['String']
+ sourceDocumentMediaType?: Scalars['String']
+ sourceDocumentTitle?: Scalars['String']
+ sourceDocumentFilename?: Scalars['String']
+ fileMediaType?: Scalars['String']
+ fileFilename?: Scalars['String']
+ fileId?: Scalars['UUID']
+ fileUrl?: Scalars['String']
+ providerMetadata?: Scalars['JSON']
+ createdAt: Scalars['DateTime']
+ __typename: 'AgentMessagePart'
+}
-export interface Impersonate {
- loginToken: AuthToken
- workspace: WorkspaceUrlsAndId
- __typename: 'Impersonate'
+export interface ChannelSyncSuccess {
+ success: Scalars['Boolean']
+ __typename: 'ChannelSyncSuccess'
}
-export interface DevelopmentApplication {
- id: Scalars['String']
- universalIdentifier: Scalars['String']
- __typename: 'DevelopmentApplication'
+export interface BarChartSeries {
+ key: Scalars['String']
+ label: Scalars['String']
+ __typename: 'BarChartSeries'
}
-export interface WorkspaceMigration {
- applicationUniversalIdentifier: Scalars['String']
- actions: Scalars['JSON']
- __typename: 'WorkspaceMigration'
+export interface BarChartData {
+ data: Scalars['JSON'][]
+ indexBy: Scalars['String']
+ keys: Scalars['String'][]
+ series: BarChartSeries[]
+ xAxisLabel: Scalars['String']
+ yAxisLabel: Scalars['String']
+ showLegend: Scalars['Boolean']
+ showDataLabels: Scalars['Boolean']
+ layout: BarChartLayout
+ groupMode: BarChartGroupMode
+ hasTooManyGroups: Scalars['Boolean']
+ formattedToRawLookup: Scalars['JSON']
+ __typename: 'BarChartData'
}
-export interface File {
- id: Scalars['UUID']
- path: Scalars['String']
- size: Scalars['Float']
- createdAt: Scalars['DateTime']
- __typename: 'File'
+export interface LineChartDataPoint {
+ x: Scalars['String']
+ y: Scalars['Float']
+ __typename: 'LineChartDataPoint'
}
-export interface MarketplaceAppField {
- name: Scalars['String']
- type: Scalars['String']
+export interface LineChartSeries {
+ id: Scalars['String']
label: Scalars['String']
- description?: Scalars['String']
- icon?: Scalars['String']
- objectUniversalIdentifier?: Scalars['String']
- universalIdentifier?: Scalars['String']
- __typename: 'MarketplaceAppField'
+ data: LineChartDataPoint[]
+ __typename: 'LineChartSeries'
}
-export interface MarketplaceAppObject {
- universalIdentifier: Scalars['String']
- nameSingular: Scalars['String']
- namePlural: Scalars['String']
- labelSingular: Scalars['String']
- labelPlural: Scalars['String']
- description?: Scalars['String']
- icon?: Scalars['String']
- fields: MarketplaceAppField[]
- __typename: 'MarketplaceAppObject'
+export interface LineChartData {
+ series: LineChartSeries[]
+ xAxisLabel: Scalars['String']
+ yAxisLabel: Scalars['String']
+ showLegend: Scalars['Boolean']
+ showDataLabels: Scalars['Boolean']
+ hasTooManyGroups: Scalars['Boolean']
+ formattedToRawLookup: Scalars['JSON']
+ __typename: 'LineChartData'
}
-export interface MarketplaceAppLogicFunction {
- name: Scalars['String']
- description?: Scalars['String']
- timeoutSeconds?: Scalars['Int']
- __typename: 'MarketplaceAppLogicFunction'
+export interface PieChartDataItem {
+ id: Scalars['String']
+ value: Scalars['Float']
+ __typename: 'PieChartDataItem'
}
-export interface MarketplaceAppFrontComponent {
- name: Scalars['String']
- description?: Scalars['String']
- __typename: 'MarketplaceAppFrontComponent'
+export interface PieChartData {
+ data: PieChartDataItem[]
+ showLegend: Scalars['Boolean']
+ showDataLabels: Scalars['Boolean']
+ showCenterMetric: Scalars['Boolean']
+ hasTooManyGroups: Scalars['Boolean']
+ formattedToRawLookup: Scalars['JSON']
+ __typename: 'PieChartData'
}
-export interface MarketplaceAppRoleObjectPermission {
- objectUniversalIdentifier: Scalars['String']
- canReadObjectRecords?: Scalars['Boolean']
- canUpdateObjectRecords?: Scalars['Boolean']
- canSoftDeleteObjectRecords?: Scalars['Boolean']
- canDestroyObjectRecords?: Scalars['Boolean']
- __typename: 'MarketplaceAppRoleObjectPermission'
+export interface DuplicatedDashboard {
+ id: Scalars['UUID']
+ title?: Scalars['String']
+ pageLayoutId?: Scalars['UUID']
+ position: Scalars['Float']
+ createdAt: Scalars['String']
+ updatedAt: Scalars['String']
+ __typename: 'DuplicatedDashboard'
+}
+
+export interface EventLogRecord {
+ event: Scalars['String']
+ timestamp: Scalars['DateTime']
+ userId?: Scalars['String']
+ properties?: Scalars['JSON']
+ recordId?: Scalars['String']
+ objectMetadataId?: Scalars['String']
+ isCustom?: Scalars['Boolean']
+ __typename: 'EventLogRecord'
+}
+
+export interface EventLogPageInfo {
+ endCursor?: Scalars['String']
+ hasNextPage: Scalars['Boolean']
+ __typename: 'EventLogPageInfo'
}
-export interface MarketplaceAppRoleFieldPermission {
- objectUniversalIdentifier: Scalars['String']
- fieldUniversalIdentifier: Scalars['String']
- canReadFieldValue?: Scalars['Boolean']
- canUpdateFieldValue?: Scalars['Boolean']
- __typename: 'MarketplaceAppRoleFieldPermission'
+export interface EventLogQueryResult {
+ records: EventLogRecord[]
+ totalCount: Scalars['Int']
+ pageInfo: EventLogPageInfo
+ __typename: 'EventLogQueryResult'
}
-export interface MarketplaceAppDefaultRole {
- id: Scalars['String']
+export interface Skill {
+ id: Scalars['UUID']
+ name: Scalars['String']
label: Scalars['String']
+ icon?: Scalars['String']
description?: Scalars['String']
- canReadAllObjectRecords: Scalars['Boolean']
- canUpdateAllObjectRecords: Scalars['Boolean']
- canSoftDeleteAllObjectRecords: Scalars['Boolean']
- canDestroyAllObjectRecords: Scalars['Boolean']
- canUpdateAllSettings: Scalars['Boolean']
- canAccessAllTools: Scalars['Boolean']
- objectPermissions: MarketplaceAppRoleObjectPermission[]
- fieldPermissions: MarketplaceAppRoleFieldPermission[]
- permissionFlags: Scalars['String'][]
- __typename: 'MarketplaceAppDefaultRole'
+ content: Scalars['String']
+ isCustom: Scalars['Boolean']
+ isActive: Scalars['Boolean']
+ applicationId?: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'Skill'
}
-export interface MarketplaceApp {
- id: Scalars['String']
- name: Scalars['String']
- description: Scalars['String']
- icon: Scalars['String']
- version: Scalars['String']
- author: Scalars['String']
- category: Scalars['String']
- logo?: Scalars['String']
- screenshots: Scalars['String'][]
- aboutDescription: Scalars['String']
- providers: Scalars['String'][]
- websiteUrl?: Scalars['String']
- termsUrl?: Scalars['String']
- objects: MarketplaceAppObject[]
- fields: MarketplaceAppField[]
- logicFunctions: MarketplaceAppLogicFunction[]
- frontComponents: MarketplaceAppFrontComponent[]
- defaultRole?: MarketplaceAppDefaultRole
- sourcePackage?: Scalars['String']
- isFeatured: Scalars['Boolean']
- __typename: 'MarketplaceApp'
+export interface AgentChatThread {
+ id: Scalars['UUID']
+ title?: Scalars['String']
+ totalInputTokens: Scalars['Int']
+ totalOutputTokens: Scalars['Int']
+ contextWindowTokens?: Scalars['Int']
+ conversationSize: Scalars['Int']
+ totalInputCredits: Scalars['Float']
+ totalOutputCredits: Scalars['Float']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'AgentChatThread'
}
-export interface UsageBreakdownItem {
- key: Scalars['String']
- label?: Scalars['String']
- creditsUsed: Scalars['Float']
- __typename: 'UsageBreakdownItem'
+export interface AgentMessage {
+ id: Scalars['UUID']
+ threadId: Scalars['UUID']
+ turnId: Scalars['UUID']
+ agentId?: Scalars['UUID']
+ role: Scalars['String']
+ parts: AgentMessagePart[]
+ createdAt: Scalars['DateTime']
+ __typename: 'AgentMessage'
}
-export interface UsageTimeSeries {
- date: Scalars['String']
- creditsUsed: Scalars['Float']
- __typename: 'UsageTimeSeries'
+export interface AISystemPromptSection {
+ title: Scalars['String']
+ content: Scalars['String']
+ estimatedTokenCount: Scalars['Int']
+ __typename: 'AISystemPromptSection'
}
-export interface UsageUserDaily {
- userWorkspaceId: Scalars['String']
- dailyUsage: UsageTimeSeries[]
- __typename: 'UsageUserDaily'
+export interface AISystemPromptPreview {
+ sections: AISystemPromptSection[]
+ estimatedTokenCount: Scalars['Int']
+ __typename: 'AISystemPromptPreview'
}
-export interface UsageAnalytics {
- usageByUser: UsageBreakdownItem[]
- usageByOperationType: UsageBreakdownItem[]
- timeSeries: UsageTimeSeries[]
- periodStart: Scalars['DateTime']
- periodEnd: Scalars['DateTime']
- userDailyUsage?: UsageUserDaily
- __typename: 'UsageAnalytics'
+export interface AgentChatThreadEdge {
+ /** The node containing the AgentChatThread */
+ node: AgentChatThread
+ /** Cursor for this node. */
+ cursor: Scalars['ConnectionCursor']
+ __typename: 'AgentChatThreadEdge'
}
-export interface PublicDomain {
+export interface AgentChatThreadConnection {
+ /** Paging information */
+ pageInfo: PageInfo
+ /** Array of edges. */
+ edges: AgentChatThreadEdge[]
+ __typename: 'AgentChatThreadConnection'
+}
+
+export interface AgentTurnEvaluation {
id: Scalars['UUID']
- domain: Scalars['String']
- isValidated: Scalars['Boolean']
+ turnId: Scalars['UUID']
+ score: Scalars['Int']
+ comment?: Scalars['String']
createdAt: Scalars['DateTime']
- __typename: 'PublicDomain'
+ __typename: 'AgentTurnEvaluation'
}
-export interface VerificationRecord {
- type: Scalars['String']
- key: Scalars['String']
- value: Scalars['String']
- priority?: Scalars['Float']
- __typename: 'VerificationRecord'
+export interface AgentTurn {
+ id: Scalars['UUID']
+ threadId: Scalars['UUID']
+ agentId?: Scalars['UUID']
+ evaluations: AgentTurnEvaluation[]
+ messages: AgentMessage[]
+ createdAt: Scalars['DateTime']
+ __typename: 'AgentTurn'
}
-export interface EmailingDomain {
+export interface CalendarChannel {
id: Scalars['UUID']
+ handle: Scalars['String']
+ syncStatus: CalendarChannelSyncStatus
+ syncStage: CalendarChannelSyncStage
+ visibility: CalendarChannelVisibility
+ isContactAutoCreationEnabled: Scalars['Boolean']
+ contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy
+ isSyncEnabled: Scalars['Boolean']
+ syncedAt?: Scalars['DateTime']
+ syncStageStartedAt?: Scalars['DateTime']
+ throttleFailureCount: Scalars['Float']
+ connectedAccountId: Scalars['UUID']
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
- domain: Scalars['String']
- driver: EmailingDomainDriver
- status: EmailingDomainStatus
- verificationRecords?: VerificationRecord[]
- verifiedAt?: Scalars['DateTime']
- __typename: 'EmailingDomain'
-}
-
-export type EmailingDomainDriver = 'AWS_SES'
-
-export type EmailingDomainStatus = 'PENDING' | 'VERIFIED' | 'FAILED' | 'TEMPORARY_FAILURE'
-
-export interface AutocompleteResult {
- text: Scalars['String']
- placeId: Scalars['String']
- __typename: 'AutocompleteResult'
+ __typename: 'CalendarChannel'
}
-export interface Location {
- lat?: Scalars['Float']
- lng?: Scalars['Float']
- __typename: 'Location'
-}
+export type CalendarChannelSyncStatus = 'NOT_SYNCED' | 'ONGOING' | 'ACTIVE' | 'FAILED_INSUFFICIENT_PERMISSIONS' | 'FAILED_UNKNOWN'
-export interface PlaceDetailsResult {
- state?: Scalars['String']
- postcode?: Scalars['String']
- city?: Scalars['String']
- country?: Scalars['String']
- location?: Location
- __typename: 'PlaceDetailsResult'
-}
+export type CalendarChannelSyncStage = 'PENDING_CONFIGURATION' | 'CALENDAR_EVENT_LIST_FETCH_PENDING' | 'CALENDAR_EVENT_LIST_FETCH_SCHEDULED' | 'CALENDAR_EVENT_LIST_FETCH_ONGOING' | 'CALENDAR_EVENTS_IMPORT_PENDING' | 'CALENDAR_EVENTS_IMPORT_SCHEDULED' | 'CALENDAR_EVENTS_IMPORT_ONGOING' | 'FAILED'
-export interface ConnectionParametersOutput {
- host: Scalars['String']
- port: Scalars['Float']
- username?: Scalars['String']
- password: Scalars['String']
- secure?: Scalars['Boolean']
- __typename: 'ConnectionParametersOutput'
-}
+export type CalendarChannelVisibility = 'METADATA' | 'SHARE_EVERYTHING'
-export interface ImapSmtpCaldavConnectionParameters {
- IMAP?: ConnectionParametersOutput
- SMTP?: ConnectionParametersOutput
- CALDAV?: ConnectionParametersOutput
- __typename: 'ImapSmtpCaldavConnectionParameters'
-}
+export type CalendarChannelContactAutoCreationPolicy = 'AS_PARTICIPANT_AND_ORGANIZER' | 'AS_PARTICIPANT' | 'AS_ORGANIZER' | 'NONE'
-export interface ConnectedImapSmtpCaldavAccount {
+export interface ConnectedAccountDTO {
id: Scalars['UUID']
handle: Scalars['String']
provider: Scalars['String']
- accountOwnerId: Scalars['UUID']
- connectionParameters?: ImapSmtpCaldavConnectionParameters
- __typename: 'ConnectedImapSmtpCaldavAccount'
-}
-
-export interface ImapSmtpCaldavConnectionSuccess {
- success: Scalars['Boolean']
- connectedAccountId: Scalars['String']
- __typename: 'ImapSmtpCaldavConnectionSuccess'
+ lastCredentialsRefreshedAt?: Scalars['DateTime']
+ authFailedAt?: Scalars['DateTime']
+ handleAliases?: Scalars['String'][]
+ scopes?: Scalars['String'][]
+ lastSignedInAt?: Scalars['DateTime']
+ userWorkspaceId: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'ConnectedAccountDTO'
}
-export interface PostgresCredentials {
+export interface MessageChannel {
id: Scalars['UUID']
- user: Scalars['String']
- password: Scalars['String']
- workspaceId: Scalars['UUID']
- __typename: 'PostgresCredentials'
+ visibility: MessageChannelVisibility
+ handle: Scalars['String']
+ type: MessageChannelType
+ isContactAutoCreationEnabled: Scalars['Boolean']
+ contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy
+ messageFolderImportPolicy: MessageFolderImportPolicy
+ excludeNonProfessionalEmails: Scalars['Boolean']
+ excludeGroupEmails: Scalars['Boolean']
+ pendingGroupEmailsAction: MessageChannelPendingGroupEmailsAction
+ isSyncEnabled: Scalars['Boolean']
+ syncedAt?: Scalars['DateTime']
+ syncStatus: MessageChannelSyncStatus
+ syncStage: MessageChannelSyncStage
+ syncStageStartedAt?: Scalars['DateTime']
+ throttleFailureCount: Scalars['Float']
+ throttleRetryAfter?: Scalars['DateTime']
+ connectedAccountId: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'MessageChannel'
}
-export interface ChannelSyncSuccess {
- success: Scalars['Boolean']
- __typename: 'ChannelSyncSuccess'
-}
+export type MessageChannelVisibility = 'METADATA' | 'SUBJECT' | 'SHARE_EVERYTHING'
+
+export type MessageChannelType = 'EMAIL' | 'SMS'
+
+export type MessageChannelContactAutoCreationPolicy = 'SENT_AND_RECEIVED' | 'SENT' | 'NONE'
-export interface BarChartSeries {
- key: Scalars['String']
- label: Scalars['String']
- __typename: 'BarChartSeries'
-}
+export type MessageFolderImportPolicy = 'ALL_FOLDERS' | 'SELECTED_FOLDERS'
-export interface BarChartData {
- data: Scalars['JSON'][]
- indexBy: Scalars['String']
- keys: Scalars['String'][]
- series: BarChartSeries[]
- xAxisLabel: Scalars['String']
- yAxisLabel: Scalars['String']
- showLegend: Scalars['Boolean']
- showDataLabels: Scalars['Boolean']
- layout: BarChartLayout
- groupMode: BarChartGroupMode
- hasTooManyGroups: Scalars['Boolean']
- formattedToRawLookup: Scalars['JSON']
- __typename: 'BarChartData'
-}
+export type MessageChannelPendingGroupEmailsAction = 'GROUP_EMAILS_DELETION' | 'GROUP_EMAILS_IMPORT' | 'NONE'
-export interface LineChartDataPoint {
- x: Scalars['String']
- y: Scalars['Float']
- __typename: 'LineChartDataPoint'
-}
+export type MessageChannelSyncStatus = 'NOT_SYNCED' | 'ONGOING' | 'ACTIVE' | 'FAILED_INSUFFICIENT_PERMISSIONS' | 'FAILED_UNKNOWN'
-export interface LineChartSeries {
- id: Scalars['String']
- label: Scalars['String']
- data: LineChartDataPoint[]
- __typename: 'LineChartSeries'
-}
+export type MessageChannelSyncStage = 'PENDING_CONFIGURATION' | 'MESSAGE_LIST_FETCH_PENDING' | 'MESSAGE_LIST_FETCH_SCHEDULED' | 'MESSAGE_LIST_FETCH_ONGOING' | 'MESSAGES_IMPORT_PENDING' | 'MESSAGES_IMPORT_SCHEDULED' | 'MESSAGES_IMPORT_ONGOING' | 'FAILED'
-export interface LineChartData {
- series: LineChartSeries[]
- xAxisLabel: Scalars['String']
- yAxisLabel: Scalars['String']
- showLegend: Scalars['Boolean']
- showDataLabels: Scalars['Boolean']
- hasTooManyGroups: Scalars['Boolean']
- formattedToRawLookup: Scalars['JSON']
- __typename: 'LineChartData'
+export interface MessageFolder {
+ id: Scalars['UUID']
+ name?: Scalars['String']
+ isSentFolder: Scalars['Boolean']
+ isSynced: Scalars['Boolean']
+ parentFolderId?: Scalars['UUID']
+ externalId?: Scalars['String']
+ pendingSyncAction: MessageFolderPendingSyncAction
+ messageChannelId: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'MessageFolder'
}
-export interface PieChartDataItem {
- id: Scalars['String']
- value: Scalars['Float']
- __typename: 'PieChartDataItem'
-}
+export type MessageFolderPendingSyncAction = 'FOLDER_DELETION' | 'NONE'
-export interface PieChartData {
- data: PieChartDataItem[]
- showLegend: Scalars['Boolean']
- showDataLabels: Scalars['Boolean']
- showCenterMetric: Scalars['Boolean']
- hasTooManyGroups: Scalars['Boolean']
- formattedToRawLookup: Scalars['JSON']
- __typename: 'PieChartData'
+export interface CollectionHash {
+ collectionName: AllMetadataName
+ hash: Scalars['String']
+ __typename: 'CollectionHash'
}
-export interface DuplicatedDashboard {
+export type AllMetadataName = 'fieldMetadata' | 'objectMetadata' | 'view' | 'viewField' | 'viewFieldGroup' | 'viewGroup' | 'viewSort' | 'rowLevelPermissionPredicate' | 'rowLevelPermissionPredicateGroup' | 'viewFilterGroup' | 'index' | 'logicFunction' | 'viewFilter' | 'role' | 'roleTarget' | 'agent' | 'skill' | 'pageLayout' | 'pageLayoutWidget' | 'pageLayoutTab' | 'commandMenuItem' | 'navigationMenuItem' | 'permissionFlag' | 'objectPermission' | 'frontComponent' | 'webhook'
+
+export interface MinimalObjectMetadata {
id: Scalars['UUID']
- title?: Scalars['String']
- pageLayoutId?: Scalars['UUID']
- position: Scalars['Float']
- createdAt: Scalars['String']
- updatedAt: Scalars['String']
- __typename: 'DuplicatedDashboard'
+ nameSingular: Scalars['String']
+ namePlural: Scalars['String']
+ labelSingular: Scalars['String']
+ labelPlural: Scalars['String']
+ icon?: Scalars['String']
+ color?: Scalars['String']
+ isCustom: Scalars['Boolean']
+ isActive: Scalars['Boolean']
+ isSystem: Scalars['Boolean']
+ isRemote: Scalars['Boolean']
+ __typename: 'MinimalObjectMetadata'
}
-export interface EventLogRecord {
- event: Scalars['String']
- timestamp: Scalars['DateTime']
- userId?: Scalars['String']
- properties?: Scalars['JSON']
- recordId?: Scalars['String']
- objectMetadataId?: Scalars['String']
- isCustom?: Scalars['Boolean']
- __typename: 'EventLogRecord'
+export interface MinimalView {
+ id: Scalars['UUID']
+ type: ViewType
+ key?: ViewKey
+ objectMetadataId: Scalars['UUID']
+ __typename: 'MinimalView'
}
-export interface EventLogPageInfo {
- endCursor?: Scalars['String']
- hasNextPage: Scalars['Boolean']
- __typename: 'EventLogPageInfo'
+export interface MinimalMetadata {
+ objectMetadataItems: MinimalObjectMetadata[]
+ views: MinimalView[]
+ collectionHashes: CollectionHash[]
+ __typename: 'MinimalMetadata'
}
-export interface EventLogQueryResult {
- records: EventLogRecord[]
- totalCount: Scalars['Int']
- pageInfo: EventLogPageInfo
- __typename: 'EventLogQueryResult'
+export interface Webhook {
+ id: Scalars['UUID']
+ targetUrl: Scalars['String']
+ operations: Scalars['String'][]
+ description?: Scalars['String']
+ secret: Scalars['String']
+ applicationId: Scalars['UUID']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ deletedAt?: Scalars['DateTime']
+ __typename: 'Webhook'
}
export interface Query {
navigationMenuItems: NavigationMenuItem[]
navigationMenuItem?: NavigationMenuItem
- getPageLayoutWidgets: PageLayoutWidget[]
- getPageLayoutWidget: PageLayoutWidget
- getPageLayoutTabs: PageLayoutTab[]
- getPageLayoutTab: PageLayoutTab
- getPageLayouts: PageLayout[]
- getPageLayout?: PageLayout
+ getViewFilterGroups: ViewFilterGroup[]
+ getViewFilterGroup?: ViewFilterGroup
+ getViewFilters: ViewFilter[]
+ getViewFilter?: ViewFilter
getViews: View[]
getView?: View
getViewSorts: ViewSort[]
getViewSort?: ViewSort
getViewFieldGroups: ViewFieldGroup[]
getViewFieldGroup?: ViewFieldGroup
+ apiKeys: ApiKey[]
+ apiKey?: ApiKey
+ enterprisePortalSession?: Scalars['String']
+ enterpriseCheckoutSession?: Scalars['String']
+ enterpriseSubscriptionStatus?: EnterpriseSubscriptionStatusDTO
+ billingPortalSession: BillingSession
+ listPlans: BillingPlan[]
+ getMeteredProductsUsage: BillingMeteredProductUsage[]
+ findWorkspaceInvitations: WorkspaceInvitation[]
+ getApprovedAccessDomains: ApprovedAccessDomain[]
+ getPageLayoutTabs: PageLayoutTab[]
+ getPageLayoutTab: PageLayoutTab
+ getPageLayouts: PageLayout[]
+ getPageLayout?: PageLayout
+ getPageLayoutWidgets: PageLayoutWidget[]
+ getPageLayoutWidget: PageLayoutWidget
findOneLogicFunction: LogicFunction
findManyLogicFunctions: LogicFunction[]
getAvailablePackages: Scalars['JSON']
@@ -2752,42 +2767,13 @@ export interface Query {
indexMetadatas: IndexConnection
findManyAgents: Agent[]
findOneAgent: Agent
- billingPortalSession: BillingSession
- listPlans: BillingPlan[]
- getMeteredProductsUsage: BillingMeteredProductUsage[]
- enterprisePortalSession?: Scalars['String']
- enterpriseCheckoutSession?: Scalars['String']
- enterpriseSubscriptionStatus?: EnterpriseSubscriptionStatusDTO
getRoles: Role[]
- findWorkspaceInvitations: WorkspaceInvitation[]
- getApprovedAccessDomains: ApprovedAccessDomain[]
- apiKeys: ApiKey[]
- apiKey?: ApiKey
getToolIndex: ToolIndexEntry[]
getToolInputSchema?: Scalars['JSON']
field: Field
fields: FieldConnection
getViewGroups: ViewGroup[]
getViewGroup?: ViewGroup
- getViewFilters: ViewFilter[]
- getViewFilter?: ViewFilter
- getViewFilterGroups: ViewFilterGroup[]
- getViewFilterGroup?: ViewFilterGroup
- currentUser: User
- currentWorkspace: Workspace
- getPublicWorkspaceDataByDomain: PublicWorkspaceData
- findApplicationRegistrationByClientId?: PublicApplicationRegistration
- findApplicationRegistrationByUniversalIdentifier?: ApplicationRegistration
- findManyApplicationRegistrations: ApplicationRegistration[]
- findOneApplicationRegistration: ApplicationRegistration
- findApplicationRegistrationStats: ApplicationRegistrationStats
- findApplicationRegistrationVariables: ApplicationRegistrationVariable[]
- applicationRegistrationTarballUrl?: Scalars['String']
- checkUserExists: CheckUserExist
- checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid
- findWorkspaceFromInviteHash: Workspace
- validatePasswordResetToken: ValidatePasswordResetToken
- getSSOIdentityProviders: FindAvailableSSOIDP[]
myMessageFolders: MessageFolder[]
myMessageChannels: MessageChannel[]
myConnectedAccounts: ConnectedAccountDTO[]
@@ -2807,6 +2793,21 @@ export interface Query {
pieChartData: PieChartData
lineChartData: LineChartData
barChartData: BarChartData
+ checkUserExists: CheckUserExist
+ checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid
+ findWorkspaceFromInviteHash: Workspace
+ validatePasswordResetToken: ValidatePasswordResetToken
+ findApplicationRegistrationByClientId?: PublicApplicationRegistration
+ findApplicationRegistrationByUniversalIdentifier?: ApplicationRegistration
+ findManyApplicationRegistrations: ApplicationRegistration[]
+ findOneApplicationRegistration: ApplicationRegistration
+ findApplicationRegistrationStats: ApplicationRegistrationStats
+ findApplicationRegistrationVariables: ApplicationRegistrationVariable[]
+ applicationRegistrationTarballUrl?: Scalars['String']
+ currentUser: User
+ currentWorkspace: Workspace
+ getPublicWorkspaceDataByDomain: PublicWorkspaceData
+ getSSOIdentityProviders: FindAvailableSSOIDP[]
getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount
getAutoCompleteAddress: AutocompleteResult[]
getAddressDetails: PlaceDetailsResult
@@ -2857,18 +2858,14 @@ export interface Mutation {
uploadWorkspaceMemberProfilePicture: FileWithSignedUrl
uploadFilesFieldFile: FileWithSignedUrl
uploadFilesFieldFileByUniversalIdentifier: FileWithSignedUrl
- createObjectEvent: Analytics
- trackAnalytics: Analytics
- createPageLayoutWidget: PageLayoutWidget
- updatePageLayoutWidget: PageLayoutWidget
- destroyPageLayoutWidget: Scalars['Boolean']
- createPageLayoutTab: PageLayoutTab
- updatePageLayoutTab: PageLayoutTab
- destroyPageLayoutTab: Scalars['Boolean']
- createPageLayout: PageLayout
- updatePageLayout: PageLayout
- destroyPageLayout: Scalars['Boolean']
- updatePageLayoutWithTabsAndWidgets: PageLayout
+ createViewFilterGroup: ViewFilterGroup
+ updateViewFilterGroup: ViewFilterGroup
+ deleteViewFilterGroup: Scalars['Boolean']
+ destroyViewFilterGroup: Scalars['Boolean']
+ createViewFilter: ViewFilter
+ updateViewFilter: ViewFilter
+ deleteViewFilter: ViewFilter
+ destroyViewFilter: ViewFilter
createView: View
updateView: View
deleteView: Scalars['Boolean']
@@ -2883,6 +2880,40 @@ export interface Mutation {
deleteViewFieldGroup: ViewFieldGroup
destroyViewFieldGroup: ViewFieldGroup
upsertFieldsWidget: View
+ createApiKey: ApiKey
+ updateApiKey?: ApiKey
+ revokeApiKey?: ApiKey
+ assignRoleToApiKey: Scalars['Boolean']
+ createObjectEvent: Analytics
+ trackAnalytics: Analytics
+ refreshEnterpriseValidityToken: Scalars['Boolean']
+ setEnterpriseKey: EnterpriseLicenseInfoDTO
+ skipSyncEmailOnboardingStep: OnboardingStepSuccess
+ skipBookOnboardingStep: OnboardingStepSuccess
+ checkoutSession: BillingSession
+ switchSubscriptionInterval: BillingUpdate
+ switchBillingPlan: BillingUpdate
+ cancelSwitchBillingPlan: BillingUpdate
+ cancelSwitchBillingInterval: BillingUpdate
+ setMeteredSubscriptionPrice: BillingUpdate
+ endSubscriptionTrialPeriod: BillingEndTrialPeriod
+ cancelSwitchMeteredPrice: BillingUpdate
+ deleteWorkspaceInvitation: Scalars['String']
+ resendWorkspaceInvitation: SendInvitations
+ sendInvitations: SendInvitations
+ createApprovedAccessDomain: ApprovedAccessDomain
+ deleteApprovedAccessDomain: Scalars['Boolean']
+ validateApprovedAccessDomain: ApprovedAccessDomain
+ createPageLayoutTab: PageLayoutTab
+ updatePageLayoutTab: PageLayoutTab
+ destroyPageLayoutTab: Scalars['Boolean']
+ createPageLayout: PageLayout
+ updatePageLayout: PageLayout
+ destroyPageLayout: Scalars['Boolean']
+ updatePageLayoutWithTabsAndWidgets: PageLayout
+ createPageLayoutWidget: PageLayoutWidget
+ updatePageLayoutWidget: PageLayoutWidget
+ destroyPageLayoutWidget: Scalars['Boolean']
deleteOneLogicFunction: LogicFunction
createOneLogicFunction: LogicFunction
executeOneLogicFunction: LogicFunctionExecutionResult
@@ -2904,16 +2935,6 @@ export interface Mutation {
createOneAgent: Agent
updateOneAgent: Agent
deleteOneAgent: Agent
- checkoutSession: BillingSession
- switchSubscriptionInterval: BillingUpdate
- switchBillingPlan: BillingUpdate
- cancelSwitchBillingPlan: BillingUpdate
- cancelSwitchBillingInterval: BillingUpdate
- setMeteredSubscriptionPrice: BillingUpdate
- endSubscriptionTrialPeriod: BillingEndTrialPeriod
- cancelSwitchMeteredPrice: BillingUpdate
- refreshEnterpriseValidityToken: Scalars['Boolean']
- setEnterpriseKey: EnterpriseLicenseInfoDTO
updateWorkspaceMemberRole: WorkspaceMember
createOneRole: Role
updateOneRole: Role
@@ -2924,18 +2945,6 @@ export interface Mutation {
upsertRowLevelPermissionPredicates: UpsertRowLevelPermissionPredicatesResult
assignRoleToAgent: Scalars['Boolean']
removeRoleFromAgent: Scalars['Boolean']
- skipSyncEmailOnboardingStep: OnboardingStepSuccess
- skipBookOnboardingStep: OnboardingStepSuccess
- deleteWorkspaceInvitation: Scalars['String']
- resendWorkspaceInvitation: SendInvitations
- sendInvitations: SendInvitations
- createApprovedAccessDomain: ApprovedAccessDomain
- deleteApprovedAccessDomain: Scalars['Boolean']
- validateApprovedAccessDomain: ApprovedAccessDomain
- createApiKey: ApiKey
- updateApiKey?: ApiKey
- revokeApiKey?: ApiKey
- assignRoleToApiKey: Scalars['Boolean']
createOneField: Field
updateOneField: Field
deleteOneField: Field
@@ -2944,31 +2953,23 @@ export interface Mutation {
updateViewGroup: ViewGroup
deleteViewGroup: ViewGroup
destroyViewGroup: ViewGroup
- createViewFilter: ViewFilter
- updateViewFilter: ViewFilter
- deleteViewFilter: ViewFilter
- destroyViewFilter: ViewFilter
- createViewFilterGroup: ViewFilterGroup
- updateViewFilterGroup: ViewFilterGroup
- deleteViewFilterGroup: Scalars['Boolean']
- destroyViewFilterGroup: Scalars['Boolean']
- deleteUser: User
- deleteUserFromWorkspace: UserWorkspace
- updateUserEmail: Scalars['Boolean']
- resendEmailVerificationToken: ResendEmailVerificationToken
- activateWorkspace: Workspace
- updateWorkspace: Workspace
- deleteCurrentWorkspace: Workspace
- checkCustomDomainValidRecords?: DomainValidRecords
- createApplicationRegistration: CreateApplicationRegistration
- updateApplicationRegistration: ApplicationRegistration
- deleteApplicationRegistration: Scalars['Boolean']
- rotateApplicationRegistrationClientSecret: RotateClientSecret
- createApplicationRegistrationVariable: ApplicationRegistrationVariable
- updateApplicationRegistrationVariable: ApplicationRegistrationVariable
- deleteApplicationRegistrationVariable: Scalars['Boolean']
- uploadAppTarball: ApplicationRegistration
- transferApplicationRegistrationOwnership: ApplicationRegistration
+ updateMessageFolder: MessageFolder
+ updateMessageFolders: MessageFolder[]
+ updateMessageChannel: MessageChannel
+ deleteConnectedAccount: ConnectedAccountDTO
+ updateCalendarChannel: CalendarChannel
+ createWebhook: Webhook
+ updateWebhook: Webhook
+ deleteWebhook: Webhook
+ createChatThread: AgentChatThread
+ createSkill: Skill
+ updateSkill: Skill
+ deleteSkill: Skill
+ activateSkill: Skill
+ deactivateSkill: Skill
+ evaluateAgentTurn: AgentTurnEvaluation
+ runEvaluationInput: AgentTurn
+ duplicateDashboard: DuplicatedDashboard
getAuthorizationUrlForSSO: GetAuthorizationUrlForSSO
getLoginTokenFromCredentials: LoginToken
signIn: AvailableWorkspacesAndAccessTokens
@@ -2985,31 +2986,31 @@ export interface Mutation {
generateApiKeyToken: ApiKeyToken
emailPasswordResetLink: EmailPasswordResetLink
updatePasswordViaResetToken: InvalidatePassword
+ createApplicationRegistration: CreateApplicationRegistration
+ updateApplicationRegistration: ApplicationRegistration
+ deleteApplicationRegistration: Scalars['Boolean']
+ rotateApplicationRegistrationClientSecret: RotateClientSecret
+ createApplicationRegistrationVariable: ApplicationRegistrationVariable
+ updateApplicationRegistrationVariable: ApplicationRegistrationVariable
+ deleteApplicationRegistrationVariable: Scalars['Boolean']
+ uploadAppTarball: ApplicationRegistration
+ transferApplicationRegistrationOwnership: ApplicationRegistration
initiateOTPProvisioning: InitiateTwoFactorAuthenticationProvisioning
initiateOTPProvisioningForAuthenticatedUser: InitiateTwoFactorAuthenticationProvisioning
deleteTwoFactorAuthenticationMethod: DeleteTwoFactorAuthenticationMethod
verifyTwoFactorAuthenticationMethodForAuthenticatedUser: VerifyTwoFactorAuthenticationMethod
+ deleteUser: User
+ deleteUserFromWorkspace: UserWorkspace
+ updateUserEmail: Scalars['Boolean']
+ resendEmailVerificationToken: ResendEmailVerificationToken
+ activateWorkspace: Workspace
+ updateWorkspace: Workspace
+ deleteCurrentWorkspace: Workspace
+ checkCustomDomainValidRecords?: DomainValidRecords
createOIDCIdentityProvider: SetupSso
createSAMLIdentityProvider: SetupSso
deleteSSOIdentityProvider: DeleteSso
editSSOIdentityProvider: EditSso
- updateMessageFolder: MessageFolder
- updateMessageFolders: MessageFolder[]
- updateMessageChannel: MessageChannel
- deleteConnectedAccount: ConnectedAccountDTO
- updateCalendarChannel: CalendarChannel
- createWebhook: Webhook
- updateWebhook: Webhook
- deleteWebhook: Webhook
- createChatThread: AgentChatThread
- createSkill: Skill
- updateSkill: Skill
- deleteSkill: Skill
- activateSkill: Skill
- deactivateSkill: Skill
- evaluateAgentTurn: AgentTurnEvaluation
- runEvaluationInput: AgentTurn
- duplicateDashboard: DuplicatedDashboard
impersonate: Impersonate
startChannelSync: ChannelSyncSuccess
saveImapSmtpCaldavAccount: ImapSmtpCaldavConnectionSuccess
@@ -3057,7 +3058,7 @@ export type AiModelRole = 'FAST' | 'SMART'
export type WorkspaceMigrationActionType = 'delete' | 'create' | 'update'
-export type FileFolder = 'ProfilePicture' | 'WorkspaceLogo' | 'Attachment' | 'PersonPicture' | 'CorePicture' | 'File' | 'AgentChat' | 'BuiltLogicFunction' | 'BuiltFrontComponent' | 'PublicAsset' | 'Source' | 'FilesField' | 'Dependencies' | 'Workflow' | 'AppTarball'
+export type FileFolder = 'ProfilePicture' | 'WorkspaceLogo' | 'Attachment' | 'PersonPicture' | 'CorePicture' | 'File' | 'AgentChat' | 'BuiltLogicFunction' | 'BuiltFrontComponent' | 'PublicAsset' | 'Source' | 'FilesField' | 'Dependencies' | 'Workflow' | 'AppTarball' | 'GeneratedSdkClient'
export interface Subscription {
onEventSubscription?: EventSubscription
@@ -4301,87 +4302,105 @@ export interface SendInvitationsGenqlSelection{
__scalar?: boolean | number
}
-export interface ResendEmailVerificationTokenGenqlSelection{
- success?: boolean | number
+export interface RecordIdentifierGenqlSelection{
+ id?: boolean | number
+ labelIdentifier?: boolean | number
+ imageIdentifier?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceUrlsGenqlSelection{
- customUrl?: boolean | number
- subdomainUrl?: boolean | number
+export interface NavigationMenuItemGenqlSelection{
+ id?: boolean | number
+ userWorkspaceId?: boolean | number
+ targetRecordId?: boolean | number
+ targetObjectMetadataId?: boolean | number
+ viewId?: boolean | number
+ type?: boolean | number
+ name?: boolean | number
+ link?: boolean | number
+ icon?: boolean | number
+ color?: boolean | number
+ folderId?: boolean | number
+ position?: boolean | number
+ applicationId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
+ targetRecordIdentifier?: RecordIdentifierGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SSOConnectionGenqlSelection{
- type?: boolean | number
- id?: boolean | number
- issuer?: boolean | number
- name?: boolean | number
- status?: boolean | number
+export interface ObjectRecordEventPropertiesGenqlSelection{
+ updatedFields?: boolean | number
+ before?: boolean | number
+ after?: boolean | number
+ diff?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AvailableWorkspaceGenqlSelection{
- id?: boolean | number
- displayName?: boolean | number
- loginToken?: boolean | number
- personalInviteToken?: boolean | number
- inviteHash?: boolean | number
- workspaceUrls?: WorkspaceUrlsGenqlSelection
- logo?: boolean | number
- sso?: SSOConnectionGenqlSelection
+export interface MetadataEventGenqlSelection{
+ type?: boolean | number
+ metadataName?: boolean | number
+ recordId?: boolean | number
+ properties?: ObjectRecordEventPropertiesGenqlSelection
+ updatedCollectionHash?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AvailableWorkspacesGenqlSelection{
- availableWorkspacesForSignIn?: AvailableWorkspaceGenqlSelection
- availableWorkspacesForSignUp?: AvailableWorkspaceGenqlSelection
+export interface ObjectRecordEventGenqlSelection{
+ action?: boolean | number
+ objectNameSingular?: boolean | number
+ recordId?: boolean | number
+ userId?: boolean | number
+ workspaceMemberId?: boolean | number
+ properties?: ObjectRecordEventPropertiesGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DeletedWorkspaceMemberGenqlSelection{
- id?: boolean | number
- name?: FullNameGenqlSelection
- userEmail?: boolean | number
- avatarUrl?: boolean | number
- userWorkspaceId?: boolean | number
+export interface ObjectRecordEventWithQueryIdsGenqlSelection{
+ queryIds?: boolean | number
+ objectRecordEvent?: ObjectRecordEventGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface BillingEntitlementGenqlSelection{
- key?: boolean | number
- value?: boolean | number
+export interface EventSubscriptionGenqlSelection{
+ eventStreamId?: boolean | number
+ objectRecordEventsWithQueryIds?: ObjectRecordEventWithQueryIdsGenqlSelection
+ metadataEvents?: MetadataEventGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DomainRecordGenqlSelection{
- validationType?: boolean | number
- type?: boolean | number
+export interface LogicFunctionExecutionResultGenqlSelection{
+ /** Execution result in JSON format */
+ data?: boolean | number
+ /** Execution Logs */
+ logs?: boolean | number
+ /** Execution duration in milliseconds */
+ duration?: boolean | number
+ /** Execution status */
status?: boolean | number
- key?: boolean | number
- value?: boolean | number
+ /** Execution error in JSON format */
+ error?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DomainValidRecordsGenqlSelection{
- id?: boolean | number
- domain?: boolean | number
- records?: DomainRecordGenqlSelection
+export interface BillingTrialPeriodGenqlSelection{
+ duration?: boolean | number
+ isCreditCardRequired?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FeatureFlagGenqlSelection{
- key?: boolean | number
- value?: boolean | number
+export interface WorkspaceUrlsGenqlSelection{
+ customUrl?: boolean | number
+ subdomainUrl?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
@@ -4425,1501 +4444,1484 @@ export interface PublicWorkspaceDataGenqlSelection{
__scalar?: boolean | number
}
-export interface IndexEdgeGenqlSelection{
- /** The node containing the Index */
- node?: IndexGenqlSelection
- /** Cursor for this node. */
- cursor?: boolean | number
+export interface NativeModelCapabilitiesGenqlSelection{
+ webSearch?: boolean | number
+ twitterSearch?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PageInfoGenqlSelection{
- /** true if paging forward and there are more records. */
- hasNextPage?: boolean | number
- /** true if paging backwards and there are more records. */
- hasPreviousPage?: boolean | number
- /** The cursor of the first returned record. */
- startCursor?: boolean | number
- /** The cursor of the last returned record. */
- endCursor?: boolean | number
+export interface ClientAIModelConfigGenqlSelection{
+ modelId?: boolean | number
+ label?: boolean | number
+ modelFamily?: boolean | number
+ modelFamilyLabel?: boolean | number
+ sdkPackage?: boolean | number
+ inputCostPerMillionTokensInCredits?: boolean | number
+ outputCostPerMillionTokensInCredits?: boolean | number
+ nativeCapabilities?: NativeModelCapabilitiesGenqlSelection
+ isDeprecated?: boolean | number
+ isRecommended?: boolean | number
+ providerName?: boolean | number
+ dataResidency?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface AdminAIModelConfigGenqlSelection{
+ modelId?: boolean | number
+ label?: boolean | number
+ modelFamily?: boolean | number
+ modelFamilyLabel?: boolean | number
+ sdkPackage?: boolean | number
+ isAvailable?: boolean | number
+ isAdminEnabled?: boolean | number
+ isDeprecated?: boolean | number
+ isRecommended?: boolean | number
+ contextWindowTokens?: boolean | number
+ maxOutputTokens?: boolean | number
+ inputCostPerMillionTokens?: boolean | number
+ outputCostPerMillionTokens?: boolean | number
+ providerName?: boolean | number
+ providerLabel?: boolean | number
+ name?: boolean | number
+ dataResidency?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface IndexConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: IndexEdgeGenqlSelection
+export interface AdminAIModelsGenqlSelection{
+ models?: AdminAIModelConfigGenqlSelection
+ defaultSmartModelId?: boolean | number
+ defaultFastModelId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface IndexFieldEdgeGenqlSelection{
- /** The node containing the IndexField */
- node?: IndexFieldGenqlSelection
- /** Cursor for this node. */
- cursor?: boolean | number
+export interface BillingGenqlSelection{
+ isBillingEnabled?: boolean | number
+ billingUrl?: boolean | number
+ trialPeriods?: BillingTrialPeriodGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface IndexIndexFieldMetadatasConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: IndexFieldEdgeGenqlSelection
+export interface SupportGenqlSelection{
+ supportDriver?: boolean | number
+ supportFrontChatId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectEdgeGenqlSelection{
- /** The node containing the Object */
- node?: ObjectGenqlSelection
- /** Cursor for this node. */
- cursor?: boolean | number
+export interface SentryGenqlSelection{
+ environment?: boolean | number
+ release?: boolean | number
+ dsn?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface IndexObjectMetadataConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: ObjectEdgeGenqlSelection
+export interface CaptchaGenqlSelection{
+ provider?: boolean | number
+ siteKey?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectRecordCountGenqlSelection{
- objectNamePlural?: boolean | number
- totalCount?: boolean | number
+export interface ApiConfigGenqlSelection{
+ mutationMaximumAffectedRecords?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: ObjectEdgeGenqlSelection
+export interface PublicFeatureFlagMetadataGenqlSelection{
+ label?: boolean | number
+ description?: boolean | number
+ imagePath?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectIndexMetadatasConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: IndexEdgeGenqlSelection
+export interface PublicFeatureFlagGenqlSelection{
+ key?: boolean | number
+ metadata?: PublicFeatureFlagMetadataGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FieldEdgeGenqlSelection{
- /** The node containing the Field */
- node?: FieldGenqlSelection
- /** Cursor for this node. */
- cursor?: boolean | number
+export interface ClientConfigGenqlSelection{
+ appVersion?: boolean | number
+ authProviders?: AuthProvidersGenqlSelection
+ billing?: BillingGenqlSelection
+ aiModels?: ClientAIModelConfigGenqlSelection
+ signInPrefilled?: boolean | number
+ isMultiWorkspaceEnabled?: boolean | number
+ isEmailVerificationRequired?: boolean | number
+ defaultSubdomain?: boolean | number
+ frontDomain?: boolean | number
+ analyticsEnabled?: boolean | number
+ support?: SupportGenqlSelection
+ isAttachmentPreviewEnabled?: boolean | number
+ sentry?: SentryGenqlSelection
+ captcha?: CaptchaGenqlSelection
+ api?: ApiConfigGenqlSelection
+ canManageFeatureFlags?: boolean | number
+ publicFeatureFlags?: PublicFeatureFlagGenqlSelection
+ isMicrosoftMessagingEnabled?: boolean | number
+ isMicrosoftCalendarEnabled?: boolean | number
+ isGoogleMessagingEnabled?: boolean | number
+ isGoogleCalendarEnabled?: boolean | number
+ isConfigVariablesInDbEnabled?: boolean | number
+ isImapSmtpCaldavEnabled?: boolean | number
+ allowRequestsToTwentyIcons?: boolean | number
+ calendarBookingPageId?: boolean | number
+ isCloudflareIntegrationEnabled?: boolean | number
+ isClickHouseConfigured?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectFieldsConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: FieldEdgeGenqlSelection
+export interface ConfigVariableGenqlSelection{
+ name?: boolean | number
+ description?: boolean | number
+ value?: boolean | number
+ isSensitive?: boolean | number
+ source?: boolean | number
+ isEnvOnly?: boolean | number
+ type?: boolean | number
+ options?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UpsertRowLevelPermissionPredicatesResultGenqlSelection{
- predicates?: RowLevelPermissionPredicateGenqlSelection
- predicateGroups?: RowLevelPermissionPredicateGroupGenqlSelection
+export interface ConfigVariablesGroupDataGenqlSelection{
+ variables?: ConfigVariableGenqlSelection
+ name?: boolean | number
+ description?: boolean | number
+ isHiddenOnLoad?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface VersionDistributionEntryGenqlSelection{
- version?: boolean | number
- count?: boolean | number
+export interface ConfigVariablesGenqlSelection{
+ groups?: ConfigVariablesGroupDataGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ApplicationRegistrationStatsGenqlSelection{
- activeInstalls?: boolean | number
- mostInstalledVersion?: boolean | number
- versionDistribution?: VersionDistributionEntryGenqlSelection
+export interface JobOperationResultGenqlSelection{
+ jobId?: boolean | number
+ success?: boolean | number
+ error?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CreateApplicationRegistrationGenqlSelection{
- applicationRegistration?: ApplicationRegistrationGenqlSelection
- clientSecret?: boolean | number
+export interface DeleteJobsResponseGenqlSelection{
+ deletedCount?: boolean | number
+ results?: JobOperationResultGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PublicApplicationRegistrationGenqlSelection{
+export interface QueueJobGenqlSelection{
id?: boolean | number
name?: boolean | number
- logoUrl?: boolean | number
- websiteUrl?: boolean | number
- oAuthScopes?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface RotateClientSecretGenqlSelection{
- clientSecret?: boolean | number
+ data?: boolean | number
+ state?: boolean | number
+ timestamp?: boolean | number
+ failedReason?: boolean | number
+ processedOn?: boolean | number
+ finishedOn?: boolean | number
+ attemptsMade?: boolean | number
+ returnValue?: boolean | number
+ logs?: boolean | number
+ stackTrace?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface RelationGenqlSelection{
- type?: boolean | number
- sourceObjectMetadata?: ObjectGenqlSelection
- targetObjectMetadata?: ObjectGenqlSelection
- sourceFieldMetadata?: FieldGenqlSelection
- targetFieldMetadata?: FieldGenqlSelection
+export interface QueueRetentionConfigGenqlSelection{
+ completedMaxAge?: boolean | number
+ completedMaxCount?: boolean | number
+ failedMaxAge?: boolean | number
+ failedMaxCount?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FieldConnectionGenqlSelection{
- /** Paging information */
- pageInfo?: PageInfoGenqlSelection
- /** Array of edges. */
- edges?: FieldEdgeGenqlSelection
+export interface QueueJobsResponseGenqlSelection{
+ jobs?: QueueJobGenqlSelection
+ count?: boolean | number
+ totalCount?: boolean | number
+ hasMore?: boolean | number
+ retentionConfig?: QueueRetentionConfigGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DeleteSsoGenqlSelection{
- identityProviderId?: boolean | number
+export interface RetryJobsResponseGenqlSelection{
+ retriedCount?: boolean | number
+ results?: JobOperationResultGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EditSsoGenqlSelection{
+export interface SystemHealthServiceGenqlSelection{
id?: boolean | number
- type?: boolean | number
- issuer?: boolean | number
- name?: boolean | number
+ label?: boolean | number
status?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceNameAndIdGenqlSelection{
- displayName?: boolean | number
- id?: boolean | number
+export interface SystemHealthGenqlSelection{
+ services?: SystemHealthServiceGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FindAvailableSSOIDPGenqlSelection{
- type?: boolean | number
- id?: boolean | number
- issuer?: boolean | number
- name?: boolean | number
- status?: boolean | number
- workspace?: WorkspaceNameAndIdGenqlSelection
+export interface FeatureFlagGenqlSelection{
+ key?: boolean | number
+ value?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SetupSsoGenqlSelection{
+export interface UserInfoGenqlSelection{
id?: boolean | number
- type?: boolean | number
- issuer?: boolean | number
- name?: boolean | number
- status?: boolean | number
+ email?: boolean | number
+ firstName?: boolean | number
+ lastName?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DeleteTwoFactorAuthenticationMethodGenqlSelection{
- /** Boolean that confirms query was dispatched */
- success?: boolean | number
+export interface WorkspaceInfoGenqlSelection{
+ id?: boolean | number
+ name?: boolean | number
+ allowImpersonation?: boolean | number
+ logo?: boolean | number
+ totalUsers?: boolean | number
+ workspaceUrls?: WorkspaceUrlsGenqlSelection
+ users?: UserInfoGenqlSelection
+ featureFlags?: FeatureFlagGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface InitiateTwoFactorAuthenticationProvisioningGenqlSelection{
- uri?: boolean | number
+export interface UserLookupGenqlSelection{
+ user?: UserInfoGenqlSelection
+ workspaces?: WorkspaceInfoGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface VerifyTwoFactorAuthenticationMethodGenqlSelection{
- success?: boolean | number
+export interface VersionInfoGenqlSelection{
+ currentVersion?: boolean | number
+ latestVersion?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AuthorizeAppGenqlSelection{
- redirectUrl?: boolean | number
+export interface AdminPanelWorkerQueueHealthGenqlSelection{
+ id?: boolean | number
+ queueName?: boolean | number
+ status?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AuthTokenGenqlSelection{
- token?: boolean | number
- expiresAt?: boolean | number
+export interface AdminPanelHealthServiceDataGenqlSelection{
+ id?: boolean | number
+ label?: boolean | number
+ description?: boolean | number
+ status?: boolean | number
+ errorMessage?: boolean | number
+ details?: boolean | number
+ queues?: AdminPanelWorkerQueueHealthGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AuthTokenPairGenqlSelection{
- accessOrWorkspaceAgnosticToken?: AuthTokenGenqlSelection
- refreshToken?: AuthTokenGenqlSelection
+export interface ModelsDevModelSuggestionGenqlSelection{
+ modelId?: boolean | number
+ name?: boolean | number
+ inputCostPerMillionTokens?: boolean | number
+ outputCostPerMillionTokens?: boolean | number
+ cachedInputCostPerMillionTokens?: boolean | number
+ cacheCreationCostPerMillionTokens?: boolean | number
+ contextWindowTokens?: boolean | number
+ maxOutputTokens?: boolean | number
+ modalities?: boolean | number
+ supportsReasoning?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AvailableWorkspacesAndAccessTokensGenqlSelection{
- tokens?: AuthTokenPairGenqlSelection
- availableWorkspaces?: AvailableWorkspacesGenqlSelection
+export interface ModelsDevProviderSuggestionGenqlSelection{
+ id?: boolean | number
+ modelCount?: boolean | number
+ npm?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EmailPasswordResetLinkGenqlSelection{
- /** Boolean that confirms query was dispatched */
- success?: boolean | number
+export interface QueueMetricsDataPointGenqlSelection{
+ x?: boolean | number
+ y?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface GetAuthorizationUrlForSSOGenqlSelection{
- authorizationURL?: boolean | number
- type?: boolean | number
+export interface QueueMetricsSeriesGenqlSelection{
id?: boolean | number
+ data?: QueueMetricsDataPointGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface InvalidatePasswordGenqlSelection{
- /** Boolean that confirms query was dispatched */
- success?: boolean | number
+export interface WorkerQueueMetricsGenqlSelection{
+ failed?: boolean | number
+ completed?: boolean | number
+ waiting?: boolean | number
+ active?: boolean | number
+ delayed?: boolean | number
+ failureRate?: boolean | number
+ failedData?: boolean | number
+ completedData?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceUrlsAndIdGenqlSelection{
- workspaceUrls?: WorkspaceUrlsGenqlSelection
- id?: boolean | number
+export interface QueueMetricsDataGenqlSelection{
+ queueName?: boolean | number
+ workers?: boolean | number
+ timeRange?: boolean | number
+ details?: WorkerQueueMetricsGenqlSelection
+ data?: QueueMetricsSeriesGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SignUpGenqlSelection{
- loginToken?: AuthTokenGenqlSelection
- workspace?: WorkspaceUrlsAndIdGenqlSelection
+export interface VersionDistributionEntryGenqlSelection{
+ version?: boolean | number
+ count?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface TransientTokenGenqlSelection{
- transientToken?: AuthTokenGenqlSelection
+export interface ApplicationRegistrationStatsGenqlSelection{
+ activeInstalls?: boolean | number
+ mostInstalledVersion?: boolean | number
+ versionDistribution?: VersionDistributionEntryGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ValidatePasswordResetTokenGenqlSelection{
- id?: boolean | number
- email?: boolean | number
- hasPassword?: boolean | number
+export interface CreateApplicationRegistrationGenqlSelection{
+ applicationRegistration?: ApplicationRegistrationGenqlSelection
+ clientSecret?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface VerifyEmailAndGetLoginTokenGenqlSelection{
- loginToken?: AuthTokenGenqlSelection
- workspaceUrls?: WorkspaceUrlsGenqlSelection
+export interface PublicApplicationRegistrationGenqlSelection{
+ id?: boolean | number
+ name?: boolean | number
+ logoUrl?: boolean | number
+ websiteUrl?: boolean | number
+ oAuthScopes?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ApiKeyTokenGenqlSelection{
- token?: boolean | number
+export interface RotateClientSecretGenqlSelection{
+ clientSecret?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AuthTokensGenqlSelection{
- tokens?: AuthTokenPairGenqlSelection
+export interface ResendEmailVerificationTokenGenqlSelection{
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LoginTokenGenqlSelection{
- loginToken?: AuthTokenGenqlSelection
+export interface DeleteSsoGenqlSelection{
+ identityProviderId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CheckUserExistGenqlSelection{
- exists?: boolean | number
- availableWorkspacesCount?: boolean | number
- isEmailVerified?: boolean | number
+export interface EditSsoGenqlSelection{
+ id?: boolean | number
+ type?: boolean | number
+ issuer?: boolean | number
+ name?: boolean | number
+ status?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceInviteHashValidGenqlSelection{
- isValid?: boolean | number
+export interface WorkspaceNameAndIdGenqlSelection{
+ displayName?: boolean | number
+ id?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface RecordIdentifierGenqlSelection{
+export interface FindAvailableSSOIDPGenqlSelection{
+ type?: boolean | number
id?: boolean | number
- labelIdentifier?: boolean | number
- imageIdentifier?: boolean | number
+ issuer?: boolean | number
+ name?: boolean | number
+ status?: boolean | number
+ workspace?: WorkspaceNameAndIdGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface NavigationMenuItemGenqlSelection{
+export interface SetupSsoGenqlSelection{
id?: boolean | number
- userWorkspaceId?: boolean | number
- targetRecordId?: boolean | number
- targetObjectMetadataId?: boolean | number
- viewId?: boolean | number
type?: boolean | number
+ issuer?: boolean | number
name?: boolean | number
- link?: boolean | number
- icon?: boolean | number
- color?: boolean | number
- folderId?: boolean | number
- position?: boolean | number
- applicationId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
- targetRecordIdentifier?: RecordIdentifierGenqlSelection
+ status?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectRecordEventPropertiesGenqlSelection{
- updatedFields?: boolean | number
- before?: boolean | number
- after?: boolean | number
- diff?: boolean | number
+export interface SSOConnectionGenqlSelection{
+ type?: boolean | number
+ id?: boolean | number
+ issuer?: boolean | number
+ name?: boolean | number
+ status?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MetadataEventGenqlSelection{
- type?: boolean | number
- metadataName?: boolean | number
- recordId?: boolean | number
- properties?: ObjectRecordEventPropertiesGenqlSelection
- updatedCollectionHash?: boolean | number
+export interface AvailableWorkspaceGenqlSelection{
+ id?: boolean | number
+ displayName?: boolean | number
+ loginToken?: boolean | number
+ personalInviteToken?: boolean | number
+ inviteHash?: boolean | number
+ workspaceUrls?: WorkspaceUrlsGenqlSelection
+ logo?: boolean | number
+ sso?: SSOConnectionGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectRecordEventGenqlSelection{
- action?: boolean | number
- objectNameSingular?: boolean | number
- recordId?: boolean | number
- userId?: boolean | number
- workspaceMemberId?: boolean | number
- properties?: ObjectRecordEventPropertiesGenqlSelection
+export interface AvailableWorkspacesGenqlSelection{
+ availableWorkspacesForSignIn?: AvailableWorkspaceGenqlSelection
+ availableWorkspacesForSignUp?: AvailableWorkspaceGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ObjectRecordEventWithQueryIdsGenqlSelection{
- queryIds?: boolean | number
- objectRecordEvent?: ObjectRecordEventGenqlSelection
+export interface DeletedWorkspaceMemberGenqlSelection{
+ id?: boolean | number
+ name?: FullNameGenqlSelection
+ userEmail?: boolean | number
+ avatarUrl?: boolean | number
+ userWorkspaceId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EventSubscriptionGenqlSelection{
- eventStreamId?: boolean | number
- objectRecordEventsWithQueryIds?: ObjectRecordEventWithQueryIdsGenqlSelection
- metadataEvents?: MetadataEventGenqlSelection
+export interface BillingEntitlementGenqlSelection{
+ key?: boolean | number
+ value?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LogicFunctionExecutionResultGenqlSelection{
- /** Execution result in JSON format */
- data?: boolean | number
- /** Execution Logs */
- logs?: boolean | number
- /** Execution duration in milliseconds */
- duration?: boolean | number
- /** Execution status */
+export interface DomainRecordGenqlSelection{
+ validationType?: boolean | number
+ type?: boolean | number
status?: boolean | number
- /** Execution error in JSON format */
- error?: boolean | number
+ key?: boolean | number
+ value?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LogicFunctionLogsGenqlSelection{
- /** Execution Logs */
- logs?: boolean | number
+export interface DomainValidRecordsGenqlSelection{
+ id?: boolean | number
+ domain?: boolean | number
+ records?: DomainRecordGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ToolIndexEntryGenqlSelection{
- name?: boolean | number
- description?: boolean | number
- category?: boolean | number
- objectName?: boolean | number
- inputSchema?: boolean | number
+export interface IndexEdgeGenqlSelection{
+ /** The node containing the Index */
+ node?: IndexGenqlSelection
+ /** Cursor for this node. */
+ cursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentMessagePartGenqlSelection{
- id?: boolean | number
- messageId?: boolean | number
- orderIndex?: boolean | number
- type?: boolean | number
- textContent?: boolean | number
- reasoningContent?: boolean | number
- toolName?: boolean | number
- toolCallId?: boolean | number
- toolInput?: boolean | number
- toolOutput?: boolean | number
- state?: boolean | number
- errorMessage?: boolean | number
- errorDetails?: boolean | number
- sourceUrlSourceId?: boolean | number
- sourceUrlUrl?: boolean | number
- sourceUrlTitle?: boolean | number
- sourceDocumentSourceId?: boolean | number
- sourceDocumentMediaType?: boolean | number
- sourceDocumentTitle?: boolean | number
- sourceDocumentFilename?: boolean | number
- fileMediaType?: boolean | number
- fileFilename?: boolean | number
- fileId?: boolean | number
- fileUrl?: boolean | number
- providerMetadata?: boolean | number
- createdAt?: boolean | number
+export interface PageInfoGenqlSelection{
+ /** true if paging forward and there are more records. */
+ hasNextPage?: boolean | number
+ /** true if paging backwards and there are more records. */
+ hasPreviousPage?: boolean | number
+ /** The cursor of the first returned record. */
+ startCursor?: boolean | number
+ /** The cursor of the last returned record. */
+ endCursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SkillGenqlSelection{
- id?: boolean | number
- name?: boolean | number
- label?: boolean | number
- icon?: boolean | number
- description?: boolean | number
- content?: boolean | number
- isCustom?: boolean | number
- isActive?: boolean | number
- applicationId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface IndexConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: IndexEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ApplicationTokenPairGenqlSelection{
- applicationAccessToken?: AuthTokenGenqlSelection
- applicationRefreshToken?: AuthTokenGenqlSelection
+export interface IndexFieldEdgeGenqlSelection{
+ /** The node containing the IndexField */
+ node?: IndexFieldGenqlSelection
+ /** Cursor for this node. */
+ cursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FrontComponentGenqlSelection{
- id?: boolean | number
- name?: boolean | number
- description?: boolean | number
- sourceComponentPath?: boolean | number
- builtComponentPath?: boolean | number
- componentName?: boolean | number
- builtComponentChecksum?: boolean | number
- universalIdentifier?: boolean | number
- applicationId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
- isHeadless?: boolean | number
- applicationTokenPair?: ApplicationTokenPairGenqlSelection
+export interface IndexIndexFieldMetadatasConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: IndexFieldEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CommandMenuItemGenqlSelection{
- id?: boolean | number
- workflowVersionId?: boolean | number
- frontComponentId?: boolean | number
- frontComponent?: FrontComponentGenqlSelection
- engineComponentKey?: boolean | number
- label?: boolean | number
- icon?: boolean | number
- shortLabel?: boolean | number
- position?: boolean | number
- isPinned?: boolean | number
- availabilityType?: boolean | number
- hotKeys?: boolean | number
- conditionalAvailabilityExpression?: boolean | number
- availabilityObjectMetadataId?: boolean | number
- applicationId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface ObjectEdgeGenqlSelection{
+ /** The node containing the Object */
+ node?: ObjectGenqlSelection
+ /** Cursor for this node. */
+ cursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentChatThreadGenqlSelection{
- id?: boolean | number
- title?: boolean | number
- totalInputTokens?: boolean | number
- totalOutputTokens?: boolean | number
- contextWindowTokens?: boolean | number
- conversationSize?: boolean | number
- totalInputCredits?: boolean | number
- totalOutputCredits?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface IndexObjectMetadataConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: ObjectEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentMessageGenqlSelection{
- id?: boolean | number
- threadId?: boolean | number
- turnId?: boolean | number
- agentId?: boolean | number
- role?: boolean | number
- parts?: AgentMessagePartGenqlSelection
- createdAt?: boolean | number
+export interface ObjectRecordCountGenqlSelection{
+ objectNamePlural?: boolean | number
+ totalCount?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AISystemPromptSectionGenqlSelection{
- title?: boolean | number
- content?: boolean | number
- estimatedTokenCount?: boolean | number
+export interface ObjectConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: ObjectEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AISystemPromptPreviewGenqlSelection{
- sections?: AISystemPromptSectionGenqlSelection
- estimatedTokenCount?: boolean | number
+export interface ObjectIndexMetadatasConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: IndexEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentChatThreadEdgeGenqlSelection{
- /** The node containing the AgentChatThread */
- node?: AgentChatThreadGenqlSelection
+export interface FieldEdgeGenqlSelection{
+ /** The node containing the Field */
+ node?: FieldGenqlSelection
/** Cursor for this node. */
cursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentChatThreadConnectionGenqlSelection{
+export interface ObjectFieldsConnectionGenqlSelection{
/** Paging information */
pageInfo?: PageInfoGenqlSelection
/** Array of edges. */
- edges?: AgentChatThreadEdgeGenqlSelection
+ edges?: FieldEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentTurnEvaluationGenqlSelection{
- id?: boolean | number
- turnId?: boolean | number
- score?: boolean | number
- comment?: boolean | number
- createdAt?: boolean | number
+export interface UpsertRowLevelPermissionPredicatesResultGenqlSelection{
+ predicates?: RowLevelPermissionPredicateGenqlSelection
+ predicateGroups?: RowLevelPermissionPredicateGroupGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AgentTurnGenqlSelection{
- id?: boolean | number
- threadId?: boolean | number
- agentId?: boolean | number
- evaluations?: AgentTurnEvaluationGenqlSelection
- messages?: AgentMessageGenqlSelection
- createdAt?: boolean | number
+export interface RelationGenqlSelection{
+ type?: boolean | number
+ sourceObjectMetadata?: ObjectGenqlSelection
+ targetObjectMetadata?: ObjectGenqlSelection
+ sourceFieldMetadata?: FieldGenqlSelection
+ targetFieldMetadata?: FieldGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CalendarChannelGenqlSelection{
- id?: boolean | number
- handle?: boolean | number
- syncStatus?: boolean | number
- syncStage?: boolean | number
- visibility?: boolean | number
- isContactAutoCreationEnabled?: boolean | number
- contactAutoCreationPolicy?: boolean | number
- isSyncEnabled?: boolean | number
- syncedAt?: boolean | number
- syncStageStartedAt?: boolean | number
- throttleFailureCount?: boolean | number
- connectedAccountId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface FieldConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: FieldEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ConnectedAccountDTOGenqlSelection{
- id?: boolean | number
- handle?: boolean | number
- provider?: boolean | number
- lastCredentialsRefreshedAt?: boolean | number
- authFailedAt?: boolean | number
- handleAliases?: boolean | number
- scopes?: boolean | number
- lastSignedInAt?: boolean | number
- userWorkspaceId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface DeleteTwoFactorAuthenticationMethodGenqlSelection{
+ /** Boolean that confirms query was dispatched */
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MessageChannelGenqlSelection{
- id?: boolean | number
- visibility?: boolean | number
- handle?: boolean | number
- type?: boolean | number
- isContactAutoCreationEnabled?: boolean | number
- contactAutoCreationPolicy?: boolean | number
- messageFolderImportPolicy?: boolean | number
- excludeNonProfessionalEmails?: boolean | number
- excludeGroupEmails?: boolean | number
- pendingGroupEmailsAction?: boolean | number
- isSyncEnabled?: boolean | number
- syncedAt?: boolean | number
- syncStatus?: boolean | number
- syncStage?: boolean | number
- syncStageStartedAt?: boolean | number
- throttleFailureCount?: boolean | number
- throttleRetryAfter?: boolean | number
- connectedAccountId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface InitiateTwoFactorAuthenticationProvisioningGenqlSelection{
+ uri?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MessageFolderGenqlSelection{
- id?: boolean | number
- name?: boolean | number
- isSentFolder?: boolean | number
- isSynced?: boolean | number
- parentFolderId?: boolean | number
- externalId?: boolean | number
- pendingSyncAction?: boolean | number
- messageChannelId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+export interface VerifyTwoFactorAuthenticationMethodGenqlSelection{
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CollectionHashGenqlSelection{
- collectionName?: boolean | number
- hash?: boolean | number
+export interface AuthorizeAppGenqlSelection{
+ redirectUrl?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MinimalObjectMetadataGenqlSelection{
- id?: boolean | number
- nameSingular?: boolean | number
- namePlural?: boolean | number
- labelSingular?: boolean | number
- labelPlural?: boolean | number
- icon?: boolean | number
- color?: boolean | number
- isCustom?: boolean | number
- isActive?: boolean | number
- isSystem?: boolean | number
- isRemote?: boolean | number
+export interface AuthTokenGenqlSelection{
+ token?: boolean | number
+ expiresAt?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface AuthTokenPairGenqlSelection{
+ accessOrWorkspaceAgnosticToken?: AuthTokenGenqlSelection
+ refreshToken?: AuthTokenGenqlSelection
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface AvailableWorkspacesAndAccessTokensGenqlSelection{
+ tokens?: AuthTokenPairGenqlSelection
+ availableWorkspaces?: AvailableWorkspacesGenqlSelection
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface EmailPasswordResetLinkGenqlSelection{
+ /** Boolean that confirms query was dispatched */
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MinimalViewGenqlSelection{
- id?: boolean | number
+export interface GetAuthorizationUrlForSSOGenqlSelection{
+ authorizationURL?: boolean | number
type?: boolean | number
- key?: boolean | number
- objectMetadataId?: boolean | number
+ id?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MinimalMetadataGenqlSelection{
- objectMetadataItems?: MinimalObjectMetadataGenqlSelection
- views?: MinimalViewGenqlSelection
- collectionHashes?: CollectionHashGenqlSelection
+export interface InvalidatePasswordGenqlSelection{
+ /** Boolean that confirms query was dispatched */
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WebhookGenqlSelection{
+export interface WorkspaceUrlsAndIdGenqlSelection{
+ workspaceUrls?: WorkspaceUrlsGenqlSelection
id?: boolean | number
- targetUrl?: boolean | number
- operations?: boolean | number
- description?: boolean | number
- secret?: boolean | number
- applicationId?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
- deletedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface BillingTrialPeriodGenqlSelection{
- duration?: boolean | number
- isCreditCardRequired?: boolean | number
+export interface SignUpGenqlSelection{
+ loginToken?: AuthTokenGenqlSelection
+ workspace?: WorkspaceUrlsAndIdGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface NativeModelCapabilitiesGenqlSelection{
- webSearch?: boolean | number
- twitterSearch?: boolean | number
+export interface TransientTokenGenqlSelection{
+ transientToken?: AuthTokenGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ClientAIModelConfigGenqlSelection{
- modelId?: boolean | number
- label?: boolean | number
- modelFamily?: boolean | number
- modelFamilyLabel?: boolean | number
- sdkPackage?: boolean | number
- inputCostPerMillionTokensInCredits?: boolean | number
- outputCostPerMillionTokensInCredits?: boolean | number
- nativeCapabilities?: NativeModelCapabilitiesGenqlSelection
- isDeprecated?: boolean | number
- isRecommended?: boolean | number
- providerName?: boolean | number
- dataResidency?: boolean | number
+export interface ValidatePasswordResetTokenGenqlSelection{
+ id?: boolean | number
+ email?: boolean | number
+ hasPassword?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AdminAIModelConfigGenqlSelection{
- modelId?: boolean | number
- label?: boolean | number
- modelFamily?: boolean | number
- modelFamilyLabel?: boolean | number
- sdkPackage?: boolean | number
- isAvailable?: boolean | number
- isAdminEnabled?: boolean | number
- isDeprecated?: boolean | number
- isRecommended?: boolean | number
- contextWindowTokens?: boolean | number
- maxOutputTokens?: boolean | number
- inputCostPerMillionTokens?: boolean | number
- outputCostPerMillionTokens?: boolean | number
- providerName?: boolean | number
- providerLabel?: boolean | number
- name?: boolean | number
- dataResidency?: boolean | number
+export interface VerifyEmailAndGetLoginTokenGenqlSelection{
+ loginToken?: AuthTokenGenqlSelection
+ workspaceUrls?: WorkspaceUrlsGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AdminAIModelsGenqlSelection{
- models?: AdminAIModelConfigGenqlSelection
- defaultSmartModelId?: boolean | number
- defaultFastModelId?: boolean | number
+export interface ApiKeyTokenGenqlSelection{
+ token?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface BillingGenqlSelection{
- isBillingEnabled?: boolean | number
- billingUrl?: boolean | number
- trialPeriods?: BillingTrialPeriodGenqlSelection
+export interface AuthTokensGenqlSelection{
+ tokens?: AuthTokenPairGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SupportGenqlSelection{
- supportDriver?: boolean | number
- supportFrontChatId?: boolean | number
+export interface LoginTokenGenqlSelection{
+ loginToken?: AuthTokenGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SentryGenqlSelection{
- environment?: boolean | number
- release?: boolean | number
- dsn?: boolean | number
+export interface CheckUserExistGenqlSelection{
+ exists?: boolean | number
+ availableWorkspacesCount?: boolean | number
+ isEmailVerified?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CaptchaGenqlSelection{
- provider?: boolean | number
- siteKey?: boolean | number
+export interface WorkspaceInviteHashValidGenqlSelection{
+ isValid?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ApiConfigGenqlSelection{
- mutationMaximumAffectedRecords?: boolean | number
+export interface ImpersonateGenqlSelection{
+ loginToken?: AuthTokenGenqlSelection
+ workspace?: WorkspaceUrlsAndIdGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PublicFeatureFlagMetadataGenqlSelection{
- label?: boolean | number
- description?: boolean | number
- imagePath?: boolean | number
+export interface DevelopmentApplicationGenqlSelection{
+ id?: boolean | number
+ universalIdentifier?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PublicFeatureFlagGenqlSelection{
- key?: boolean | number
- metadata?: PublicFeatureFlagMetadataGenqlSelection
+export interface WorkspaceMigrationGenqlSelection{
+ applicationUniversalIdentifier?: boolean | number
+ actions?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ClientConfigGenqlSelection{
- appVersion?: boolean | number
- authProviders?: AuthProvidersGenqlSelection
- billing?: BillingGenqlSelection
- aiModels?: ClientAIModelConfigGenqlSelection
- signInPrefilled?: boolean | number
- isMultiWorkspaceEnabled?: boolean | number
- isEmailVerificationRequired?: boolean | number
- defaultSubdomain?: boolean | number
- frontDomain?: boolean | number
- analyticsEnabled?: boolean | number
- support?: SupportGenqlSelection
- isAttachmentPreviewEnabled?: boolean | number
- sentry?: SentryGenqlSelection
- captcha?: CaptchaGenqlSelection
- api?: ApiConfigGenqlSelection
- canManageFeatureFlags?: boolean | number
- publicFeatureFlags?: PublicFeatureFlagGenqlSelection
- isMicrosoftMessagingEnabled?: boolean | number
- isMicrosoftCalendarEnabled?: boolean | number
- isGoogleMessagingEnabled?: boolean | number
- isGoogleCalendarEnabled?: boolean | number
- isConfigVariablesInDbEnabled?: boolean | number
- isImapSmtpCaldavEnabled?: boolean | number
- allowRequestsToTwentyIcons?: boolean | number
- calendarBookingPageId?: boolean | number
- isCloudflareIntegrationEnabled?: boolean | number
- isClickHouseConfigured?: boolean | number
+export interface ApplicationTokenPairGenqlSelection{
+ applicationAccessToken?: AuthTokenGenqlSelection
+ applicationRefreshToken?: AuthTokenGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ConfigVariableGenqlSelection{
- name?: boolean | number
- description?: boolean | number
- value?: boolean | number
- isSensitive?: boolean | number
- source?: boolean | number
- isEnvOnly?: boolean | number
- type?: boolean | number
- options?: boolean | number
+export interface FileGenqlSelection{
+ id?: boolean | number
+ path?: boolean | number
+ size?: boolean | number
+ createdAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ConfigVariablesGroupDataGenqlSelection{
- variables?: ConfigVariableGenqlSelection
+export interface MarketplaceAppFieldGenqlSelection{
name?: boolean | number
+ type?: boolean | number
+ label?: boolean | number
description?: boolean | number
- isHiddenOnLoad?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface ConfigVariablesGenqlSelection{
- groups?: ConfigVariablesGroupDataGenqlSelection
+ icon?: boolean | number
+ objectUniversalIdentifier?: boolean | number
+ universalIdentifier?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface JobOperationResultGenqlSelection{
- jobId?: boolean | number
- success?: boolean | number
- error?: boolean | number
+export interface MarketplaceAppObjectGenqlSelection{
+ universalIdentifier?: boolean | number
+ nameSingular?: boolean | number
+ namePlural?: boolean | number
+ labelSingular?: boolean | number
+ labelPlural?: boolean | number
+ description?: boolean | number
+ icon?: boolean | number
+ fields?: MarketplaceAppFieldGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DeleteJobsResponseGenqlSelection{
- deletedCount?: boolean | number
- results?: JobOperationResultGenqlSelection
+export interface MarketplaceAppLogicFunctionGenqlSelection{
+ name?: boolean | number
+ description?: boolean | number
+ timeoutSeconds?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueJobGenqlSelection{
- id?: boolean | number
+export interface MarketplaceAppFrontComponentGenqlSelection{
name?: boolean | number
- data?: boolean | number
- state?: boolean | number
- timestamp?: boolean | number
- failedReason?: boolean | number
- processedOn?: boolean | number
- finishedOn?: boolean | number
- attemptsMade?: boolean | number
- returnValue?: boolean | number
- logs?: boolean | number
- stackTrace?: boolean | number
+ description?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueRetentionConfigGenqlSelection{
- completedMaxAge?: boolean | number
- completedMaxCount?: boolean | number
- failedMaxAge?: boolean | number
- failedMaxCount?: boolean | number
+export interface MarketplaceAppRoleObjectPermissionGenqlSelection{
+ objectUniversalIdentifier?: boolean | number
+ canReadObjectRecords?: boolean | number
+ canUpdateObjectRecords?: boolean | number
+ canSoftDeleteObjectRecords?: boolean | number
+ canDestroyObjectRecords?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueJobsResponseGenqlSelection{
- jobs?: QueueJobGenqlSelection
- count?: boolean | number
- totalCount?: boolean | number
- hasMore?: boolean | number
- retentionConfig?: QueueRetentionConfigGenqlSelection
+export interface MarketplaceAppRoleFieldPermissionGenqlSelection{
+ objectUniversalIdentifier?: boolean | number
+ fieldUniversalIdentifier?: boolean | number
+ canReadFieldValue?: boolean | number
+ canUpdateFieldValue?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface RetryJobsResponseGenqlSelection{
- retriedCount?: boolean | number
- results?: JobOperationResultGenqlSelection
+export interface MarketplaceAppDefaultRoleGenqlSelection{
+ id?: boolean | number
+ label?: boolean | number
+ description?: boolean | number
+ canReadAllObjectRecords?: boolean | number
+ canUpdateAllObjectRecords?: boolean | number
+ canSoftDeleteAllObjectRecords?: boolean | number
+ canDestroyAllObjectRecords?: boolean | number
+ canUpdateAllSettings?: boolean | number
+ canAccessAllTools?: boolean | number
+ objectPermissions?: MarketplaceAppRoleObjectPermissionGenqlSelection
+ fieldPermissions?: MarketplaceAppRoleFieldPermissionGenqlSelection
+ permissionFlags?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SystemHealthServiceGenqlSelection{
+export interface MarketplaceAppGenqlSelection{
id?: boolean | number
- label?: boolean | number
- status?: boolean | number
+ name?: boolean | number
+ description?: boolean | number
+ icon?: boolean | number
+ version?: boolean | number
+ author?: boolean | number
+ category?: boolean | number
+ logo?: boolean | number
+ screenshots?: boolean | number
+ aboutDescription?: boolean | number
+ providers?: boolean | number
+ websiteUrl?: boolean | number
+ termsUrl?: boolean | number
+ objects?: MarketplaceAppObjectGenqlSelection
+ fields?: MarketplaceAppFieldGenqlSelection
+ logicFunctions?: MarketplaceAppLogicFunctionGenqlSelection
+ frontComponents?: MarketplaceAppFrontComponentGenqlSelection
+ defaultRole?: MarketplaceAppDefaultRoleGenqlSelection
+ sourcePackage?: boolean | number
+ isFeatured?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface SystemHealthGenqlSelection{
- services?: SystemHealthServiceGenqlSelection
+export interface PublicDomainGenqlSelection{
+ id?: boolean | number
+ domain?: boolean | number
+ isValidated?: boolean | number
+ createdAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UserInfoGenqlSelection{
- id?: boolean | number
- email?: boolean | number
- firstName?: boolean | number
- lastName?: boolean | number
+export interface VerificationRecordGenqlSelection{
+ type?: boolean | number
+ key?: boolean | number
+ value?: boolean | number
+ priority?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceInfoGenqlSelection{
+export interface EmailingDomainGenqlSelection{
id?: boolean | number
- name?: boolean | number
- allowImpersonation?: boolean | number
- logo?: boolean | number
- totalUsers?: boolean | number
- workspaceUrls?: WorkspaceUrlsGenqlSelection
- users?: UserInfoGenqlSelection
- featureFlags?: FeatureFlagGenqlSelection
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
+ domain?: boolean | number
+ driver?: boolean | number
+ status?: boolean | number
+ verificationRecords?: VerificationRecordGenqlSelection
+ verifiedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UserLookupGenqlSelection{
- user?: UserInfoGenqlSelection
- workspaces?: WorkspaceInfoGenqlSelection
+export interface AutocompleteResultGenqlSelection{
+ text?: boolean | number
+ placeId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface VersionInfoGenqlSelection{
- currentVersion?: boolean | number
- latestVersion?: boolean | number
+export interface LocationGenqlSelection{
+ lat?: boolean | number
+ lng?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AdminPanelWorkerQueueHealthGenqlSelection{
- id?: boolean | number
- queueName?: boolean | number
- status?: boolean | number
+export interface PlaceDetailsResultGenqlSelection{
+ state?: boolean | number
+ postcode?: boolean | number
+ city?: boolean | number
+ country?: boolean | number
+ location?: LocationGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AdminPanelHealthServiceDataGenqlSelection{
- id?: boolean | number
- label?: boolean | number
- description?: boolean | number
- status?: boolean | number
- errorMessage?: boolean | number
- details?: boolean | number
- queues?: AdminPanelWorkerQueueHealthGenqlSelection
+export interface ConnectionParametersOutputGenqlSelection{
+ host?: boolean | number
+ port?: boolean | number
+ username?: boolean | number
+ password?: boolean | number
+ secure?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ModelsDevModelSuggestionGenqlSelection{
- modelId?: boolean | number
- name?: boolean | number
- inputCostPerMillionTokens?: boolean | number
- outputCostPerMillionTokens?: boolean | number
- cachedInputCostPerMillionTokens?: boolean | number
- cacheCreationCostPerMillionTokens?: boolean | number
- contextWindowTokens?: boolean | number
- maxOutputTokens?: boolean | number
- modalities?: boolean | number
- supportsReasoning?: boolean | number
+export interface ImapSmtpCaldavConnectionParametersGenqlSelection{
+ IMAP?: ConnectionParametersOutputGenqlSelection
+ SMTP?: ConnectionParametersOutputGenqlSelection
+ CALDAV?: ConnectionParametersOutputGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ModelsDevProviderSuggestionGenqlSelection{
+export interface ConnectedImapSmtpCaldavAccountGenqlSelection{
id?: boolean | number
- modelCount?: boolean | number
- npm?: boolean | number
+ handle?: boolean | number
+ provider?: boolean | number
+ accountOwnerId?: boolean | number
+ connectionParameters?: ImapSmtpCaldavConnectionParametersGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueMetricsDataPointGenqlSelection{
- x?: boolean | number
- y?: boolean | number
+export interface ImapSmtpCaldavConnectionSuccessGenqlSelection{
+ success?: boolean | number
+ connectedAccountId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueMetricsSeriesGenqlSelection{
+export interface PostgresCredentialsGenqlSelection{
id?: boolean | number
- data?: QueueMetricsDataPointGenqlSelection
+ user?: boolean | number
+ password?: boolean | number
+ workspaceId?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkerQueueMetricsGenqlSelection{
- failed?: boolean | number
- completed?: boolean | number
- waiting?: boolean | number
- active?: boolean | number
- delayed?: boolean | number
- failureRate?: boolean | number
- failedData?: boolean | number
- completedData?: boolean | number
+export interface UsageBreakdownItemGenqlSelection{
+ key?: boolean | number
+ label?: boolean | number
+ creditsUsed?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface QueueMetricsDataGenqlSelection{
- queueName?: boolean | number
- workers?: boolean | number
- timeRange?: boolean | number
- details?: WorkerQueueMetricsGenqlSelection
- data?: QueueMetricsSeriesGenqlSelection
+export interface UsageTimeSeriesGenqlSelection{
+ date?: boolean | number
+ creditsUsed?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ImpersonateGenqlSelection{
- loginToken?: AuthTokenGenqlSelection
- workspace?: WorkspaceUrlsAndIdGenqlSelection
+export interface UsageUserDailyGenqlSelection{
+ userWorkspaceId?: boolean | number
+ dailyUsage?: UsageTimeSeriesGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DevelopmentApplicationGenqlSelection{
- id?: boolean | number
- universalIdentifier?: boolean | number
+export interface UsageAnalyticsGenqlSelection{
+ usageByUser?: UsageBreakdownItemGenqlSelection
+ usageByOperationType?: UsageBreakdownItemGenqlSelection
+ timeSeries?: UsageTimeSeriesGenqlSelection
+ periodStart?: boolean | number
+ periodEnd?: boolean | number
+ userDailyUsage?: UsageUserDailyGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface WorkspaceMigrationGenqlSelection{
- applicationUniversalIdentifier?: boolean | number
- actions?: boolean | number
+export interface LogicFunctionLogsGenqlSelection{
+ /** Execution Logs */
+ logs?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface FileGenqlSelection{
+export interface FrontComponentGenqlSelection{
id?: boolean | number
- path?: boolean | number
- size?: boolean | number
- createdAt?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface MarketplaceAppFieldGenqlSelection{
name?: boolean | number
- type?: boolean | number
- label?: boolean | number
description?: boolean | number
- icon?: boolean | number
- objectUniversalIdentifier?: boolean | number
+ sourceComponentPath?: boolean | number
+ builtComponentPath?: boolean | number
+ componentName?: boolean | number
+ builtComponentChecksum?: boolean | number
universalIdentifier?: boolean | number
+ applicationId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
+ isHeadless?: boolean | number
+ usesSdkClient?: boolean | number
+ applicationTokenPair?: ApplicationTokenPairGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MarketplaceAppObjectGenqlSelection{
- universalIdentifier?: boolean | number
- nameSingular?: boolean | number
- namePlural?: boolean | number
- labelSingular?: boolean | number
- labelPlural?: boolean | number
- description?: boolean | number
+export interface CommandMenuItemGenqlSelection{
+ id?: boolean | number
+ workflowVersionId?: boolean | number
+ frontComponentId?: boolean | number
+ frontComponent?: FrontComponentGenqlSelection
+ engineComponentKey?: boolean | number
+ label?: boolean | number
icon?: boolean | number
- fields?: MarketplaceAppFieldGenqlSelection
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface MarketplaceAppLogicFunctionGenqlSelection{
- name?: boolean | number
- description?: boolean | number
- timeoutSeconds?: boolean | number
+ shortLabel?: boolean | number
+ position?: boolean | number
+ isPinned?: boolean | number
+ availabilityType?: boolean | number
+ hotKeys?: boolean | number
+ conditionalAvailabilityExpression?: boolean | number
+ availabilityObjectMetadataId?: boolean | number
+ applicationId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MarketplaceAppFrontComponentGenqlSelection{
+export interface ToolIndexEntryGenqlSelection{
name?: boolean | number
description?: boolean | number
+ category?: boolean | number
+ objectName?: boolean | number
+ inputSchema?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MarketplaceAppRoleObjectPermissionGenqlSelection{
- objectUniversalIdentifier?: boolean | number
- canReadObjectRecords?: boolean | number
- canUpdateObjectRecords?: boolean | number
- canSoftDeleteObjectRecords?: boolean | number
- canDestroyObjectRecords?: boolean | number
+export interface AgentMessagePartGenqlSelection{
+ id?: boolean | number
+ messageId?: boolean | number
+ orderIndex?: boolean | number
+ type?: boolean | number
+ textContent?: boolean | number
+ reasoningContent?: boolean | number
+ toolName?: boolean | number
+ toolCallId?: boolean | number
+ toolInput?: boolean | number
+ toolOutput?: boolean | number
+ state?: boolean | number
+ errorMessage?: boolean | number
+ errorDetails?: boolean | number
+ sourceUrlSourceId?: boolean | number
+ sourceUrlUrl?: boolean | number
+ sourceUrlTitle?: boolean | number
+ sourceDocumentSourceId?: boolean | number
+ sourceDocumentMediaType?: boolean | number
+ sourceDocumentTitle?: boolean | number
+ sourceDocumentFilename?: boolean | number
+ fileMediaType?: boolean | number
+ fileFilename?: boolean | number
+ fileId?: boolean | number
+ fileUrl?: boolean | number
+ providerMetadata?: boolean | number
+ createdAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MarketplaceAppRoleFieldPermissionGenqlSelection{
- objectUniversalIdentifier?: boolean | number
- fieldUniversalIdentifier?: boolean | number
- canReadFieldValue?: boolean | number
- canUpdateFieldValue?: boolean | number
+export interface ChannelSyncSuccessGenqlSelection{
+ success?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface MarketplaceAppDefaultRoleGenqlSelection{
- id?: boolean | number
+export interface BarChartSeriesGenqlSelection{
+ key?: boolean | number
label?: boolean | number
- description?: boolean | number
- canReadAllObjectRecords?: boolean | number
- canUpdateAllObjectRecords?: boolean | number
- canSoftDeleteAllObjectRecords?: boolean | number
- canDestroyAllObjectRecords?: boolean | number
- canUpdateAllSettings?: boolean | number
- canAccessAllTools?: boolean | number
- objectPermissions?: MarketplaceAppRoleObjectPermissionGenqlSelection
- fieldPermissions?: MarketplaceAppRoleFieldPermissionGenqlSelection
- permissionFlags?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface MarketplaceAppGenqlSelection{
- id?: boolean | number
- name?: boolean | number
- description?: boolean | number
- icon?: boolean | number
- version?: boolean | number
- author?: boolean | number
- category?: boolean | number
- logo?: boolean | number
- screenshots?: boolean | number
- aboutDescription?: boolean | number
- providers?: boolean | number
- websiteUrl?: boolean | number
- termsUrl?: boolean | number
- objects?: MarketplaceAppObjectGenqlSelection
- fields?: MarketplaceAppFieldGenqlSelection
- logicFunctions?: MarketplaceAppLogicFunctionGenqlSelection
- frontComponents?: MarketplaceAppFrontComponentGenqlSelection
- defaultRole?: MarketplaceAppDefaultRoleGenqlSelection
- sourcePackage?: boolean | number
- isFeatured?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UsageBreakdownItemGenqlSelection{
- key?: boolean | number
- label?: boolean | number
- creditsUsed?: boolean | number
+export interface BarChartDataGenqlSelection{
+ data?: boolean | number
+ indexBy?: boolean | number
+ keys?: boolean | number
+ series?: BarChartSeriesGenqlSelection
+ xAxisLabel?: boolean | number
+ yAxisLabel?: boolean | number
+ showLegend?: boolean | number
+ showDataLabels?: boolean | number
+ layout?: boolean | number
+ groupMode?: boolean | number
+ hasTooManyGroups?: boolean | number
+ formattedToRawLookup?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UsageTimeSeriesGenqlSelection{
- date?: boolean | number
- creditsUsed?: boolean | number
+export interface LineChartDataPointGenqlSelection{
+ x?: boolean | number
+ y?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UsageUserDailyGenqlSelection{
- userWorkspaceId?: boolean | number
- dailyUsage?: UsageTimeSeriesGenqlSelection
+export interface LineChartSeriesGenqlSelection{
+ id?: boolean | number
+ label?: boolean | number
+ data?: LineChartDataPointGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface UsageAnalyticsGenqlSelection{
- usageByUser?: UsageBreakdownItemGenqlSelection
- usageByOperationType?: UsageBreakdownItemGenqlSelection
- timeSeries?: UsageTimeSeriesGenqlSelection
- periodStart?: boolean | number
- periodEnd?: boolean | number
- userDailyUsage?: UsageUserDailyGenqlSelection
+export interface LineChartDataGenqlSelection{
+ series?: LineChartSeriesGenqlSelection
+ xAxisLabel?: boolean | number
+ yAxisLabel?: boolean | number
+ showLegend?: boolean | number
+ showDataLabels?: boolean | number
+ hasTooManyGroups?: boolean | number
+ formattedToRawLookup?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PublicDomainGenqlSelection{
+export interface PieChartDataItemGenqlSelection{
id?: boolean | number
- domain?: boolean | number
- isValidated?: boolean | number
- createdAt?: boolean | number
+ value?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface VerificationRecordGenqlSelection{
- type?: boolean | number
- key?: boolean | number
- value?: boolean | number
- priority?: boolean | number
+export interface PieChartDataGenqlSelection{
+ data?: PieChartDataItemGenqlSelection
+ showLegend?: boolean | number
+ showDataLabels?: boolean | number
+ showCenterMetric?: boolean | number
+ hasTooManyGroups?: boolean | number
+ formattedToRawLookup?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EmailingDomainGenqlSelection{
+export interface DuplicatedDashboardGenqlSelection{
id?: boolean | number
+ title?: boolean | number
+ pageLayoutId?: boolean | number
+ position?: boolean | number
createdAt?: boolean | number
updatedAt?: boolean | number
- domain?: boolean | number
- driver?: boolean | number
- status?: boolean | number
- verificationRecords?: VerificationRecordGenqlSelection
- verifiedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface AutocompleteResultGenqlSelection{
- text?: boolean | number
- placeId?: boolean | number
+export interface EventLogRecordGenqlSelection{
+ event?: boolean | number
+ timestamp?: boolean | number
+ userId?: boolean | number
+ properties?: boolean | number
+ recordId?: boolean | number
+ objectMetadataId?: boolean | number
+ isCustom?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LocationGenqlSelection{
- lat?: boolean | number
- lng?: boolean | number
+export interface EventLogPageInfoGenqlSelection{
+ endCursor?: boolean | number
+ hasNextPage?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PlaceDetailsResultGenqlSelection{
- state?: boolean | number
- postcode?: boolean | number
- city?: boolean | number
- country?: boolean | number
- location?: LocationGenqlSelection
+export interface EventLogQueryResultGenqlSelection{
+ records?: EventLogRecordGenqlSelection
+ totalCount?: boolean | number
+ pageInfo?: EventLogPageInfoGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ConnectionParametersOutputGenqlSelection{
- host?: boolean | number
- port?: boolean | number
- username?: boolean | number
- password?: boolean | number
- secure?: boolean | number
+export interface SkillGenqlSelection{
+ id?: boolean | number
+ name?: boolean | number
+ label?: boolean | number
+ icon?: boolean | number
+ description?: boolean | number
+ content?: boolean | number
+ isCustom?: boolean | number
+ isActive?: boolean | number
+ applicationId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ImapSmtpCaldavConnectionParametersGenqlSelection{
- IMAP?: ConnectionParametersOutputGenqlSelection
- SMTP?: ConnectionParametersOutputGenqlSelection
- CALDAV?: ConnectionParametersOutputGenqlSelection
+export interface AgentChatThreadGenqlSelection{
+ id?: boolean | number
+ title?: boolean | number
+ totalInputTokens?: boolean | number
+ totalOutputTokens?: boolean | number
+ contextWindowTokens?: boolean | number
+ conversationSize?: boolean | number
+ totalInputCredits?: boolean | number
+ totalOutputCredits?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ConnectedImapSmtpCaldavAccountGenqlSelection{
+export interface AgentMessageGenqlSelection{
id?: boolean | number
- handle?: boolean | number
- provider?: boolean | number
- accountOwnerId?: boolean | number
- connectionParameters?: ImapSmtpCaldavConnectionParametersGenqlSelection
+ threadId?: boolean | number
+ turnId?: boolean | number
+ agentId?: boolean | number
+ role?: boolean | number
+ parts?: AgentMessagePartGenqlSelection
+ createdAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ImapSmtpCaldavConnectionSuccessGenqlSelection{
- success?: boolean | number
- connectedAccountId?: boolean | number
+export interface AISystemPromptSectionGenqlSelection{
+ title?: boolean | number
+ content?: boolean | number
+ estimatedTokenCount?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PostgresCredentialsGenqlSelection{
- id?: boolean | number
- user?: boolean | number
- password?: boolean | number
- workspaceId?: boolean | number
+export interface AISystemPromptPreviewGenqlSelection{
+ sections?: AISystemPromptSectionGenqlSelection
+ estimatedTokenCount?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface ChannelSyncSuccessGenqlSelection{
- success?: boolean | number
+export interface AgentChatThreadEdgeGenqlSelection{
+ /** The node containing the AgentChatThread */
+ node?: AgentChatThreadGenqlSelection
+ /** Cursor for this node. */
+ cursor?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface BarChartSeriesGenqlSelection{
- key?: boolean | number
- label?: boolean | number
+export interface AgentChatThreadConnectionGenqlSelection{
+ /** Paging information */
+ pageInfo?: PageInfoGenqlSelection
+ /** Array of edges. */
+ edges?: AgentChatThreadEdgeGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface BarChartDataGenqlSelection{
- data?: boolean | number
- indexBy?: boolean | number
- keys?: boolean | number
- series?: BarChartSeriesGenqlSelection
- xAxisLabel?: boolean | number
- yAxisLabel?: boolean | number
- showLegend?: boolean | number
- showDataLabels?: boolean | number
- layout?: boolean | number
- groupMode?: boolean | number
- hasTooManyGroups?: boolean | number
- formattedToRawLookup?: boolean | number
+export interface AgentTurnEvaluationGenqlSelection{
+ id?: boolean | number
+ turnId?: boolean | number
+ score?: boolean | number
+ comment?: boolean | number
+ createdAt?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface AgentTurnGenqlSelection{
+ id?: boolean | number
+ threadId?: boolean | number
+ agentId?: boolean | number
+ evaluations?: AgentTurnEvaluationGenqlSelection
+ messages?: AgentMessageGenqlSelection
+ createdAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LineChartDataPointGenqlSelection{
- x?: boolean | number
- y?: boolean | number
+export interface CalendarChannelGenqlSelection{
+ id?: boolean | number
+ handle?: boolean | number
+ syncStatus?: boolean | number
+ syncStage?: boolean | number
+ visibility?: boolean | number
+ isContactAutoCreationEnabled?: boolean | number
+ contactAutoCreationPolicy?: boolean | number
+ isSyncEnabled?: boolean | number
+ syncedAt?: boolean | number
+ syncStageStartedAt?: boolean | number
+ throttleFailureCount?: boolean | number
+ connectedAccountId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LineChartSeriesGenqlSelection{
+export interface ConnectedAccountDTOGenqlSelection{
id?: boolean | number
- label?: boolean | number
- data?: LineChartDataPointGenqlSelection
+ handle?: boolean | number
+ provider?: boolean | number
+ lastCredentialsRefreshedAt?: boolean | number
+ authFailedAt?: boolean | number
+ handleAliases?: boolean | number
+ scopes?: boolean | number
+ lastSignedInAt?: boolean | number
+ userWorkspaceId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface LineChartDataGenqlSelection{
- series?: LineChartSeriesGenqlSelection
- xAxisLabel?: boolean | number
- yAxisLabel?: boolean | number
- showLegend?: boolean | number
- showDataLabels?: boolean | number
- hasTooManyGroups?: boolean | number
- formattedToRawLookup?: boolean | number
+export interface MessageChannelGenqlSelection{
+ id?: boolean | number
+ visibility?: boolean | number
+ handle?: boolean | number
+ type?: boolean | number
+ isContactAutoCreationEnabled?: boolean | number
+ contactAutoCreationPolicy?: boolean | number
+ messageFolderImportPolicy?: boolean | number
+ excludeNonProfessionalEmails?: boolean | number
+ excludeGroupEmails?: boolean | number
+ pendingGroupEmailsAction?: boolean | number
+ isSyncEnabled?: boolean | number
+ syncedAt?: boolean | number
+ syncStatus?: boolean | number
+ syncStage?: boolean | number
+ syncStageStartedAt?: boolean | number
+ throttleFailureCount?: boolean | number
+ throttleRetryAfter?: boolean | number
+ connectedAccountId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PieChartDataItemGenqlSelection{
+export interface MessageFolderGenqlSelection{
id?: boolean | number
- value?: boolean | number
+ name?: boolean | number
+ isSentFolder?: boolean | number
+ isSynced?: boolean | number
+ parentFolderId?: boolean | number
+ externalId?: boolean | number
+ pendingSyncAction?: boolean | number
+ messageChannelId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface PieChartDataGenqlSelection{
- data?: PieChartDataItemGenqlSelection
- showLegend?: boolean | number
- showDataLabels?: boolean | number
- showCenterMetric?: boolean | number
- hasTooManyGroups?: boolean | number
- formattedToRawLookup?: boolean | number
+export interface CollectionHashGenqlSelection{
+ collectionName?: boolean | number
+ hash?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface DuplicatedDashboardGenqlSelection{
+export interface MinimalObjectMetadataGenqlSelection{
id?: boolean | number
- title?: boolean | number
- pageLayoutId?: boolean | number
- position?: boolean | number
- createdAt?: boolean | number
- updatedAt?: boolean | number
+ nameSingular?: boolean | number
+ namePlural?: boolean | number
+ labelSingular?: boolean | number
+ labelPlural?: boolean | number
+ icon?: boolean | number
+ color?: boolean | number
+ isCustom?: boolean | number
+ isActive?: boolean | number
+ isSystem?: boolean | number
+ isRemote?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EventLogRecordGenqlSelection{
- event?: boolean | number
- timestamp?: boolean | number
- userId?: boolean | number
- properties?: boolean | number
- recordId?: boolean | number
+export interface MinimalViewGenqlSelection{
+ id?: boolean | number
+ type?: boolean | number
+ key?: boolean | number
objectMetadataId?: boolean | number
- isCustom?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EventLogPageInfoGenqlSelection{
- endCursor?: boolean | number
- hasNextPage?: boolean | number
+export interface MinimalMetadataGenqlSelection{
+ objectMetadataItems?: MinimalObjectMetadataGenqlSelection
+ views?: MinimalViewGenqlSelection
+ collectionHashes?: CollectionHashGenqlSelection
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface EventLogQueryResultGenqlSelection{
- records?: EventLogRecordGenqlSelection
- totalCount?: boolean | number
- pageInfo?: EventLogPageInfoGenqlSelection
+export interface WebhookGenqlSelection{
+ id?: boolean | number
+ targetUrl?: boolean | number
+ operations?: boolean | number
+ description?: boolean | number
+ secret?: boolean | number
+ applicationId?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
+ deletedAt?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
@@ -5927,18 +5929,32 @@ export interface EventLogQueryResultGenqlSelection{
export interface QueryGenqlSelection{
navigationMenuItems?: NavigationMenuItemGenqlSelection
navigationMenuItem?: (NavigationMenuItemGenqlSelection & { __args: {id: Scalars['UUID']} })
- getPageLayoutWidgets?: (PageLayoutWidgetGenqlSelection & { __args: {pageLayoutTabId: Scalars['String']} })
- getPageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {id: Scalars['String']} })
- getPageLayoutTabs?: (PageLayoutTabGenqlSelection & { __args: {pageLayoutId: Scalars['String']} })
- getPageLayoutTab?: (PageLayoutTabGenqlSelection & { __args: {id: Scalars['String']} })
- getPageLayouts?: (PageLayoutGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), pageLayoutType?: (PageLayoutType | null)} })
- getPageLayout?: (PageLayoutGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFilterGroups?: (ViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFilters?: (ViewFilterGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewFilter?: (ViewFilterGenqlSelection & { __args: {id: Scalars['String']} })
getViews?: (ViewGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), viewTypes?: (ViewType[] | null)} })
getView?: (ViewGenqlSelection & { __args: {id: Scalars['String']} })
getViewSorts?: (ViewSortGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
getViewSort?: (ViewSortGenqlSelection & { __args: {id: Scalars['String']} })
getViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {viewId: Scalars['String']} })
getViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ apiKeys?: ApiKeyGenqlSelection
+ apiKey?: (ApiKeyGenqlSelection & { __args: {input: GetApiKeyInput} })
+ enterprisePortalSession?: { __args: {returnUrlPath?: (Scalars['String'] | null)} } | boolean | number
+ enterpriseCheckoutSession?: { __args: {billingInterval?: (Scalars['String'] | null)} } | boolean | number
+ enterpriseSubscriptionStatus?: EnterpriseSubscriptionStatusDTOGenqlSelection
+ billingPortalSession?: (BillingSessionGenqlSelection & { __args?: {returnUrlPath?: (Scalars['String'] | null)} })
+ listPlans?: BillingPlanGenqlSelection
+ getMeteredProductsUsage?: BillingMeteredProductUsageGenqlSelection
+ findWorkspaceInvitations?: WorkspaceInvitationGenqlSelection
+ getApprovedAccessDomains?: ApprovedAccessDomainGenqlSelection
+ getPageLayoutTabs?: (PageLayoutTabGenqlSelection & { __args: {pageLayoutId: Scalars['String']} })
+ getPageLayoutTab?: (PageLayoutTabGenqlSelection & { __args: {id: Scalars['String']} })
+ getPageLayouts?: (PageLayoutGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), pageLayoutType?: (PageLayoutType | null)} })
+ getPageLayout?: (PageLayoutGenqlSelection & { __args: {id: Scalars['String']} })
+ getPageLayoutWidgets?: (PageLayoutWidgetGenqlSelection & { __args: {pageLayoutTabId: Scalars['String']} })
+ getPageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {id: Scalars['String']} })
findOneLogicFunction?: (LogicFunctionGenqlSelection & { __args: {input: LogicFunctionIdInput} })
findManyLogicFunctions?: LogicFunctionGenqlSelection
getAvailablePackages?: { __args: {input: LogicFunctionIdInput} }
@@ -5968,17 +5984,7 @@ export interface QueryGenqlSelection{
filter: IndexFilter} })
findManyAgents?: AgentGenqlSelection
findOneAgent?: (AgentGenqlSelection & { __args: {input: AgentIdInput} })
- billingPortalSession?: (BillingSessionGenqlSelection & { __args?: {returnUrlPath?: (Scalars['String'] | null)} })
- listPlans?: BillingPlanGenqlSelection
- getMeteredProductsUsage?: BillingMeteredProductUsageGenqlSelection
- enterprisePortalSession?: { __args: {returnUrlPath?: (Scalars['String'] | null)} } | boolean | number
- enterpriseCheckoutSession?: { __args: {billingInterval?: (Scalars['String'] | null)} } | boolean | number
- enterpriseSubscriptionStatus?: EnterpriseSubscriptionStatusDTOGenqlSelection
getRoles?: RoleGenqlSelection
- findWorkspaceInvitations?: WorkspaceInvitationGenqlSelection
- getApprovedAccessDomains?: ApprovedAccessDomainGenqlSelection
- apiKeys?: ApiKeyGenqlSelection
- apiKey?: (ApiKeyGenqlSelection & { __args: {input: GetApiKeyInput} })
getToolIndex?: ToolIndexEntryGenqlSelection
getToolInputSchema?: { __args: {toolName: Scalars['String']} }
field?: (FieldGenqlSelection & { __args: {
@@ -5991,25 +5997,6 @@ export interface QueryGenqlSelection{
filter: FieldFilter} })
getViewGroups?: (ViewGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
getViewGroup?: (ViewGroupGenqlSelection & { __args: {id: Scalars['String']} })
- getViewFilters?: (ViewFilterGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getViewFilter?: (ViewFilterGenqlSelection & { __args: {id: Scalars['String']} })
- getViewFilterGroups?: (ViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
- currentUser?: UserGenqlSelection
- currentWorkspace?: WorkspaceGenqlSelection
- getPublicWorkspaceDataByDomain?: (PublicWorkspaceDataGenqlSelection & { __args?: {origin?: (Scalars['String'] | null)} })
- findApplicationRegistrationByClientId?: (PublicApplicationRegistrationGenqlSelection & { __args: {clientId: Scalars['String']} })
- findApplicationRegistrationByUniversalIdentifier?: (ApplicationRegistrationGenqlSelection & { __args: {universalIdentifier: Scalars['String']} })
- findManyApplicationRegistrations?: ApplicationRegistrationGenqlSelection
- findOneApplicationRegistration?: (ApplicationRegistrationGenqlSelection & { __args: {id: Scalars['String']} })
- findApplicationRegistrationStats?: (ApplicationRegistrationStatsGenqlSelection & { __args: {id: Scalars['String']} })
- findApplicationRegistrationVariables?: (ApplicationRegistrationVariableGenqlSelection & { __args: {applicationRegistrationId: Scalars['String']} })
- applicationRegistrationTarballUrl?: { __args: {id: Scalars['String']} }
- checkUserExists?: (CheckUserExistGenqlSelection & { __args: {email: Scalars['String'], captchaToken?: (Scalars['String'] | null)} })
- checkWorkspaceInviteHashIsValid?: (WorkspaceInviteHashValidGenqlSelection & { __args: {inviteHash: Scalars['String']} })
- findWorkspaceFromInviteHash?: (WorkspaceGenqlSelection & { __args: {inviteHash: Scalars['String']} })
- validatePasswordResetToken?: (ValidatePasswordResetTokenGenqlSelection & { __args: {passwordResetToken: Scalars['String']} })
- getSSOIdentityProviders?: FindAvailableSSOIDPGenqlSelection
myMessageFolders?: (MessageFolderGenqlSelection & { __args?: {messageChannelId?: (Scalars['UUID'] | null)} })
myMessageChannels?: (MessageChannelGenqlSelection & { __args?: {connectedAccountId?: (Scalars['UUID'] | null)} })
myConnectedAccounts?: ConnectedAccountDTOGenqlSelection
@@ -6035,6 +6022,21 @@ export interface QueryGenqlSelection{
pieChartData?: (PieChartDataGenqlSelection & { __args: {input: PieChartDataInput} })
lineChartData?: (LineChartDataGenqlSelection & { __args: {input: LineChartDataInput} })
barChartData?: (BarChartDataGenqlSelection & { __args: {input: BarChartDataInput} })
+ checkUserExists?: (CheckUserExistGenqlSelection & { __args: {email: Scalars['String'], captchaToken?: (Scalars['String'] | null)} })
+ checkWorkspaceInviteHashIsValid?: (WorkspaceInviteHashValidGenqlSelection & { __args: {inviteHash: Scalars['String']} })
+ findWorkspaceFromInviteHash?: (WorkspaceGenqlSelection & { __args: {inviteHash: Scalars['String']} })
+ validatePasswordResetToken?: (ValidatePasswordResetTokenGenqlSelection & { __args: {passwordResetToken: Scalars['String']} })
+ findApplicationRegistrationByClientId?: (PublicApplicationRegistrationGenqlSelection & { __args: {clientId: Scalars['String']} })
+ findApplicationRegistrationByUniversalIdentifier?: (ApplicationRegistrationGenqlSelection & { __args: {universalIdentifier: Scalars['String']} })
+ findManyApplicationRegistrations?: ApplicationRegistrationGenqlSelection
+ findOneApplicationRegistration?: (ApplicationRegistrationGenqlSelection & { __args: {id: Scalars['String']} })
+ findApplicationRegistrationStats?: (ApplicationRegistrationStatsGenqlSelection & { __args: {id: Scalars['String']} })
+ findApplicationRegistrationVariables?: (ApplicationRegistrationVariableGenqlSelection & { __args: {applicationRegistrationId: Scalars['String']} })
+ applicationRegistrationTarballUrl?: { __args: {id: Scalars['String']} }
+ currentUser?: UserGenqlSelection
+ currentWorkspace?: WorkspaceGenqlSelection
+ getPublicWorkspaceDataByDomain?: (PublicWorkspaceDataGenqlSelection & { __args?: {origin?: (Scalars['String'] | null)} })
+ getSSOIdentityProviders?: FindAvailableSSOIDPGenqlSelection
getConnectedImapSmtpCaldavAccount?: (ConnectedImapSmtpCaldavAccountGenqlSelection & { __args: {id: Scalars['UUID']} })
getAutoCompleteAddress?: (AutocompleteResultGenqlSelection & { __args: {address: Scalars['String'], token: Scalars['String'], country?: (Scalars['String'] | null), isFieldCity?: (Scalars['Boolean'] | null)} })
getAddressDetails?: (PlaceDetailsResultGenqlSelection & { __args: {placeId: Scalars['String'], token: Scalars['String']} })
@@ -6062,6 +6064,8 @@ export interface QueryGenqlSelection{
__scalar?: boolean | number
}
+export interface GetApiKeyInput {id: Scalars['UUID']}
+
export interface LogicFunctionIdInput {
/** The id of the function. */
id: Scalars['ID']}
@@ -6070,8 +6074,6 @@ export interface AgentIdInput {
/** The id of the agent. */
id: Scalars['UUID']}
-export interface GetApiKeyInput {id: Scalars['UUID']}
-
export interface AgentChatThreadFilter {and?: (AgentChatThreadFilter[] | null),or?: (AgentChatThreadFilter[] | null),id?: (UUIDFilterComparison | null),updatedAt?: (DateFieldComparison | null)}
export interface DateFieldComparison {is?: (Scalars['Boolean'] | null),isNot?: (Scalars['Boolean'] | null),eq?: (Scalars['DateTime'] | null),neq?: (Scalars['DateTime'] | null),gt?: (Scalars['DateTime'] | null),gte?: (Scalars['DateTime'] | null),lt?: (Scalars['DateTime'] | null),lte?: (Scalars['DateTime'] | null),in?: (Scalars['DateTime'][] | null),notIn?: (Scalars['DateTime'][] | null),between?: (DateFieldComparisonBetween | null),notBetween?: (DateFieldComparisonBetween | null)}
@@ -6106,11 +6108,52 @@ export interface MutationGenqlSelection{
uploadWorkspaceMemberProfilePicture?: (FileWithSignedUrlGenqlSelection & { __args: {file: Scalars['Upload']} })
uploadFilesFieldFile?: (FileWithSignedUrlGenqlSelection & { __args: {file: Scalars['Upload'], fieldMetadataId: Scalars['String']} })
uploadFilesFieldFileByUniversalIdentifier?: (FileWithSignedUrlGenqlSelection & { __args: {file: Scalars['Upload'], fieldMetadataUniversalIdentifier: Scalars['String']} })
+ createViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
+ updateViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
+ deleteViewFilterGroup?: { __args: {id: Scalars['String']} }
+ destroyViewFilterGroup?: { __args: {id: Scalars['String']} }
+ createViewFilter?: (ViewFilterGenqlSelection & { __args: {input: CreateViewFilterInput} })
+ updateViewFilter?: (ViewFilterGenqlSelection & { __args: {input: UpdateViewFilterInput} })
+ deleteViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DeleteViewFilterInput} })
+ destroyViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DestroyViewFilterInput} })
+ createView?: (ViewGenqlSelection & { __args: {input: CreateViewInput} })
+ updateView?: (ViewGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewInput} })
+ deleteView?: { __args: {id: Scalars['String']} }
+ destroyView?: { __args: {id: Scalars['String']} }
+ createViewSort?: (ViewSortGenqlSelection & { __args: {input: CreateViewSortInput} })
+ updateViewSort?: (ViewSortGenqlSelection & { __args: {input: UpdateViewSortInput} })
+ deleteViewSort?: { __args: {input: DeleteViewSortInput} }
+ destroyViewSort?: { __args: {input: DestroyViewSortInput} }
+ updateViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: UpdateViewFieldGroupInput} })
+ createViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: CreateViewFieldGroupInput} })
+ createManyViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {inputs: CreateViewFieldGroupInput[]} })
+ deleteViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DeleteViewFieldGroupInput} })
+ destroyViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DestroyViewFieldGroupInput} })
+ upsertFieldsWidget?: (ViewGenqlSelection & { __args: {input: UpsertFieldsWidgetInput} })
+ createApiKey?: (ApiKeyGenqlSelection & { __args: {input: CreateApiKeyInput} })
+ updateApiKey?: (ApiKeyGenqlSelection & { __args: {input: UpdateApiKeyInput} })
+ revokeApiKey?: (ApiKeyGenqlSelection & { __args: {input: RevokeApiKeyInput} })
+ assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }
createObjectEvent?: (AnalyticsGenqlSelection & { __args: {event: Scalars['String'], recordId: Scalars['UUID'], objectMetadataId: Scalars['UUID'], properties?: (Scalars['JSON'] | null)} })
trackAnalytics?: (AnalyticsGenqlSelection & { __args: {type: AnalyticsType, name?: (Scalars['String'] | null), event?: (Scalars['String'] | null), properties?: (Scalars['JSON'] | null)} })
- createPageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {input: CreatePageLayoutWidgetInput} })
- updatePageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {id: Scalars['String'], input: UpdatePageLayoutWidgetInput} })
- destroyPageLayoutWidget?: { __args: {id: Scalars['String']} }
+ refreshEnterpriseValidityToken?: boolean | number
+ setEnterpriseKey?: (EnterpriseLicenseInfoDTOGenqlSelection & { __args: {enterpriseKey: Scalars['String']} })
+ skipSyncEmailOnboardingStep?: OnboardingStepSuccessGenqlSelection
+ skipBookOnboardingStep?: OnboardingStepSuccessGenqlSelection
+ checkoutSession?: (BillingSessionGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null)} })
+ switchSubscriptionInterval?: BillingUpdateGenqlSelection
+ switchBillingPlan?: BillingUpdateGenqlSelection
+ cancelSwitchBillingPlan?: BillingUpdateGenqlSelection
+ cancelSwitchBillingInterval?: BillingUpdateGenqlSelection
+ setMeteredSubscriptionPrice?: (BillingUpdateGenqlSelection & { __args: {priceId: Scalars['String']} })
+ endSubscriptionTrialPeriod?: BillingEndTrialPeriodGenqlSelection
+ cancelSwitchMeteredPrice?: BillingUpdateGenqlSelection
+ deleteWorkspaceInvitation?: { __args: {appTokenId: Scalars['String']} }
+ resendWorkspaceInvitation?: (SendInvitationsGenqlSelection & { __args: {appTokenId: Scalars['String']} })
+ sendInvitations?: (SendInvitationsGenqlSelection & { __args: {emails: Scalars['String'][], roleId?: (Scalars['UUID'] | null)} })
+ createApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: CreateApprovedAccessDomainInput} })
+ deleteApprovedAccessDomain?: { __args: {input: DeleteApprovedAccessDomainInput} }
+ validateApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: ValidateApprovedAccessDomainInput} })
createPageLayoutTab?: (PageLayoutTabGenqlSelection & { __args: {input: CreatePageLayoutTabInput} })
updatePageLayoutTab?: (PageLayoutTabGenqlSelection & { __args: {id: Scalars['String'], input: UpdatePageLayoutTabInput} })
destroyPageLayoutTab?: { __args: {id: Scalars['String']} }
@@ -6118,20 +6161,9 @@ export interface MutationGenqlSelection{
updatePageLayout?: (PageLayoutGenqlSelection & { __args: {id: Scalars['String'], input: UpdatePageLayoutInput} })
destroyPageLayout?: { __args: {id: Scalars['String']} }
updatePageLayoutWithTabsAndWidgets?: (PageLayoutGenqlSelection & { __args: {id: Scalars['String'], input: UpdatePageLayoutWithTabsInput} })
- createView?: (ViewGenqlSelection & { __args: {input: CreateViewInput} })
- updateView?: (ViewGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewInput} })
- deleteView?: { __args: {id: Scalars['String']} }
- destroyView?: { __args: {id: Scalars['String']} }
- createViewSort?: (ViewSortGenqlSelection & { __args: {input: CreateViewSortInput} })
- updateViewSort?: (ViewSortGenqlSelection & { __args: {input: UpdateViewSortInput} })
- deleteViewSort?: { __args: {input: DeleteViewSortInput} }
- destroyViewSort?: { __args: {input: DestroyViewSortInput} }
- updateViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: UpdateViewFieldGroupInput} })
- createViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: CreateViewFieldGroupInput} })
- createManyViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {inputs: CreateViewFieldGroupInput[]} })
- deleteViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DeleteViewFieldGroupInput} })
- destroyViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DestroyViewFieldGroupInput} })
- upsertFieldsWidget?: (ViewGenqlSelection & { __args: {input: UpsertFieldsWidgetInput} })
+ createPageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {input: CreatePageLayoutWidgetInput} })
+ updatePageLayoutWidget?: (PageLayoutWidgetGenqlSelection & { __args: {id: Scalars['String'], input: UpdatePageLayoutWidgetInput} })
+ destroyPageLayoutWidget?: { __args: {id: Scalars['String']} }
deleteOneLogicFunction?: (LogicFunctionGenqlSelection & { __args: {input: LogicFunctionIdInput} })
createOneLogicFunction?: (LogicFunctionGenqlSelection & { __args: {input: CreateLogicFunctionFromSourceInput} })
executeOneLogicFunction?: (LogicFunctionExecutionResultGenqlSelection & { __args: {input: ExecuteOneLogicFunctionInput} })
@@ -6153,16 +6185,6 @@ export interface MutationGenqlSelection{
createOneAgent?: (AgentGenqlSelection & { __args: {input: CreateAgentInput} })
updateOneAgent?: (AgentGenqlSelection & { __args: {input: UpdateAgentInput} })
deleteOneAgent?: (AgentGenqlSelection & { __args: {input: AgentIdInput} })
- checkoutSession?: (BillingSessionGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null)} })
- switchSubscriptionInterval?: BillingUpdateGenqlSelection
- switchBillingPlan?: BillingUpdateGenqlSelection
- cancelSwitchBillingPlan?: BillingUpdateGenqlSelection
- cancelSwitchBillingInterval?: BillingUpdateGenqlSelection
- setMeteredSubscriptionPrice?: (BillingUpdateGenqlSelection & { __args: {priceId: Scalars['String']} })
- endSubscriptionTrialPeriod?: BillingEndTrialPeriodGenqlSelection
- cancelSwitchMeteredPrice?: BillingUpdateGenqlSelection
- refreshEnterpriseValidityToken?: boolean | number
- setEnterpriseKey?: (EnterpriseLicenseInfoDTOGenqlSelection & { __args: {enterpriseKey: Scalars['String']} })
updateWorkspaceMemberRole?: (WorkspaceMemberGenqlSelection & { __args: {workspaceMemberId: Scalars['UUID'], roleId: Scalars['UUID']} })
createOneRole?: (RoleGenqlSelection & { __args: {createRoleInput: CreateRoleInput} })
updateOneRole?: (RoleGenqlSelection & { __args: {updateRoleInput: UpdateRoleInput} })
@@ -6173,18 +6195,6 @@ export interface MutationGenqlSelection{
upsertRowLevelPermissionPredicates?: (UpsertRowLevelPermissionPredicatesResultGenqlSelection & { __args: {input: UpsertRowLevelPermissionPredicatesInput} })
assignRoleToAgent?: { __args: {agentId: Scalars['UUID'], roleId: Scalars['UUID']} }
removeRoleFromAgent?: { __args: {agentId: Scalars['UUID']} }
- skipSyncEmailOnboardingStep?: OnboardingStepSuccessGenqlSelection
- skipBookOnboardingStep?: OnboardingStepSuccessGenqlSelection
- deleteWorkspaceInvitation?: { __args: {appTokenId: Scalars['String']} }
- resendWorkspaceInvitation?: (SendInvitationsGenqlSelection & { __args: {appTokenId: Scalars['String']} })
- sendInvitations?: (SendInvitationsGenqlSelection & { __args: {emails: Scalars['String'][], roleId?: (Scalars['UUID'] | null)} })
- createApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: CreateApprovedAccessDomainInput} })
- deleteApprovedAccessDomain?: { __args: {input: DeleteApprovedAccessDomainInput} }
- validateApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: ValidateApprovedAccessDomainInput} })
- createApiKey?: (ApiKeyGenqlSelection & { __args: {input: CreateApiKeyInput} })
- updateApiKey?: (ApiKeyGenqlSelection & { __args: {input: UpdateApiKeyInput} })
- revokeApiKey?: (ApiKeyGenqlSelection & { __args: {input: RevokeApiKeyInput} })
- assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }
createOneField?: (FieldGenqlSelection & { __args: {input: CreateOneFieldMetadataInput} })
updateOneField?: (FieldGenqlSelection & { __args: {input: UpdateOneFieldMetadataInput} })
deleteOneField?: (FieldGenqlSelection & { __args: {input: DeleteOneFieldInput} })
@@ -6193,31 +6203,23 @@ export interface MutationGenqlSelection{
updateViewGroup?: (ViewGroupGenqlSelection & { __args: {input: UpdateViewGroupInput} })
deleteViewGroup?: (ViewGroupGenqlSelection & { __args: {input: DeleteViewGroupInput} })
destroyViewGroup?: (ViewGroupGenqlSelection & { __args: {input: DestroyViewGroupInput} })
- createViewFilter?: (ViewFilterGenqlSelection & { __args: {input: CreateViewFilterInput} })
- updateViewFilter?: (ViewFilterGenqlSelection & { __args: {input: UpdateViewFilterInput} })
- deleteViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DeleteViewFilterInput} })
- destroyViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DestroyViewFilterInput} })
- createViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
- updateViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
- deleteViewFilterGroup?: { __args: {id: Scalars['String']} }
- destroyViewFilterGroup?: { __args: {id: Scalars['String']} }
- deleteUser?: UserGenqlSelection
- deleteUserFromWorkspace?: (UserWorkspaceGenqlSelection & { __args: {workspaceMemberIdToDelete: Scalars['String']} })
- updateUserEmail?: { __args: {newEmail: Scalars['String'], verifyEmailRedirectPath?: (Scalars['String'] | null)} }
- resendEmailVerificationToken?: (ResendEmailVerificationTokenGenqlSelection & { __args: {email: Scalars['String'], origin: Scalars['String']} })
- activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })
- updateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: UpdateWorkspaceInput} })
- deleteCurrentWorkspace?: WorkspaceGenqlSelection
- checkCustomDomainValidRecords?: DomainValidRecordsGenqlSelection
- createApplicationRegistration?: (CreateApplicationRegistrationGenqlSelection & { __args: {input: CreateApplicationRegistrationInput} })
- updateApplicationRegistration?: (ApplicationRegistrationGenqlSelection & { __args: {input: UpdateApplicationRegistrationInput} })
- deleteApplicationRegistration?: { __args: {id: Scalars['String']} }
- rotateApplicationRegistrationClientSecret?: (RotateClientSecretGenqlSelection & { __args: {id: Scalars['String']} })
- createApplicationRegistrationVariable?: (ApplicationRegistrationVariableGenqlSelection & { __args: {input: CreateApplicationRegistrationVariableInput} })
- updateApplicationRegistrationVariable?: (ApplicationRegistrationVariableGenqlSelection & { __args: {input: UpdateApplicationRegistrationVariableInput} })
- deleteApplicationRegistrationVariable?: { __args: {id: Scalars['String']} }
- uploadAppTarball?: (ApplicationRegistrationGenqlSelection & { __args: {file: Scalars['Upload'], universalIdentifier?: (Scalars['String'] | null)} })
- transferApplicationRegistrationOwnership?: (ApplicationRegistrationGenqlSelection & { __args: {applicationRegistrationId: Scalars['String'], targetWorkspaceSubdomain: Scalars['String']} })
+ updateMessageFolder?: (MessageFolderGenqlSelection & { __args: {input: UpdateMessageFolderInput} })
+ updateMessageFolders?: (MessageFolderGenqlSelection & { __args: {input: UpdateMessageFoldersInput} })
+ updateMessageChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateMessageChannelInput} })
+ deleteConnectedAccount?: (ConnectedAccountDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
+ updateCalendarChannel?: (CalendarChannelGenqlSelection & { __args: {input: UpdateCalendarChannelInput} })
+ createWebhook?: (WebhookGenqlSelection & { __args: {input: CreateWebhookInput} })
+ updateWebhook?: (WebhookGenqlSelection & { __args: {input: UpdateWebhookInput} })
+ deleteWebhook?: (WebhookGenqlSelection & { __args: {id: Scalars['UUID']} })
+ createChatThread?: AgentChatThreadGenqlSelection
+ createSkill?: (SkillGenqlSelection & { __args: {input: CreateSkillInput} })
+ updateSkill?: (SkillGenqlSelection & { __args: {input: UpdateSkillInput} })
+ deleteSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
+ activateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
+ deactivateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
+ evaluateAgentTurn?: (AgentTurnEvaluationGenqlSelection & { __args: {turnId: Scalars['UUID']} })
+ runEvaluationInput?: (AgentTurnGenqlSelection & { __args: {agentId: Scalars['UUID'], input: Scalars['String']} })
+ duplicateDashboard?: (DuplicatedDashboardGenqlSelection & { __args: {id: Scalars['UUID']} })
getAuthorizationUrlForSSO?: (GetAuthorizationUrlForSSOGenqlSelection & { __args: {input: GetAuthorizationUrlForSSOInput} })
getLoginTokenFromCredentials?: (LoginTokenGenqlSelection & { __args: {email: Scalars['String'], password: Scalars['String'], captchaToken?: (Scalars['String'] | null), locale?: (Scalars['String'] | null), verifyEmailRedirectPath?: (Scalars['String'] | null), origin: Scalars['String']} })
signIn?: (AvailableWorkspacesAndAccessTokensGenqlSelection & { __args: {email: Scalars['String'], password: Scalars['String'], captchaToken?: (Scalars['String'] | null), locale?: (Scalars['String'] | null), verifyEmailRedirectPath?: (Scalars['String'] | null)} })
@@ -6234,31 +6236,31 @@ export interface MutationGenqlSelection{
generateApiKeyToken?: (ApiKeyTokenGenqlSelection & { __args: {apiKeyId: Scalars['UUID'], expiresAt: Scalars['String']} })
emailPasswordResetLink?: (EmailPasswordResetLinkGenqlSelection & { __args: {email: Scalars['String'], workspaceId?: (Scalars['UUID'] | null)} })
updatePasswordViaResetToken?: (InvalidatePasswordGenqlSelection & { __args: {passwordResetToken: Scalars['String'], newPassword: Scalars['String']} })
+ createApplicationRegistration?: (CreateApplicationRegistrationGenqlSelection & { __args: {input: CreateApplicationRegistrationInput} })
+ updateApplicationRegistration?: (ApplicationRegistrationGenqlSelection & { __args: {input: UpdateApplicationRegistrationInput} })
+ deleteApplicationRegistration?: { __args: {id: Scalars['String']} }
+ rotateApplicationRegistrationClientSecret?: (RotateClientSecretGenqlSelection & { __args: {id: Scalars['String']} })
+ createApplicationRegistrationVariable?: (ApplicationRegistrationVariableGenqlSelection & { __args: {input: CreateApplicationRegistrationVariableInput} })
+ updateApplicationRegistrationVariable?: (ApplicationRegistrationVariableGenqlSelection & { __args: {input: UpdateApplicationRegistrationVariableInput} })
+ deleteApplicationRegistrationVariable?: { __args: {id: Scalars['String']} }
+ uploadAppTarball?: (ApplicationRegistrationGenqlSelection & { __args: {file: Scalars['Upload'], universalIdentifier?: (Scalars['String'] | null)} })
+ transferApplicationRegistrationOwnership?: (ApplicationRegistrationGenqlSelection & { __args: {applicationRegistrationId: Scalars['String'], targetWorkspaceSubdomain: Scalars['String']} })
initiateOTPProvisioning?: (InitiateTwoFactorAuthenticationProvisioningGenqlSelection & { __args: {loginToken: Scalars['String'], origin: Scalars['String']} })
initiateOTPProvisioningForAuthenticatedUser?: InitiateTwoFactorAuthenticationProvisioningGenqlSelection
deleteTwoFactorAuthenticationMethod?: (DeleteTwoFactorAuthenticationMethodGenqlSelection & { __args: {twoFactorAuthenticationMethodId: Scalars['UUID']} })
verifyTwoFactorAuthenticationMethodForAuthenticatedUser?: (VerifyTwoFactorAuthenticationMethodGenqlSelection & { __args: {otp: Scalars['String']} })
+ deleteUser?: UserGenqlSelection
+ deleteUserFromWorkspace?: (UserWorkspaceGenqlSelection & { __args: {workspaceMemberIdToDelete: Scalars['String']} })
+ updateUserEmail?: { __args: {newEmail: Scalars['String'], verifyEmailRedirectPath?: (Scalars['String'] | null)} }
+ resendEmailVerificationToken?: (ResendEmailVerificationTokenGenqlSelection & { __args: {email: Scalars['String'], origin: Scalars['String']} })
+ activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })
+ updateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: UpdateWorkspaceInput} })
+ deleteCurrentWorkspace?: WorkspaceGenqlSelection
+ checkCustomDomainValidRecords?: DomainValidRecordsGenqlSelection
createOIDCIdentityProvider?: (SetupSsoGenqlSelection & { __args: {input: SetupOIDCSsoInput} })
createSAMLIdentityProvider?: (SetupSsoGenqlSelection & { __args: {input: SetupSAMLSsoInput} })
deleteSSOIdentityProvider?: (DeleteSsoGenqlSelection & { __args: {input: DeleteSsoInput} })
editSSOIdentityProvider?: (EditSsoGenqlSelection & { __args: {input: EditSsoInput} })
- updateMessageFolder?: (MessageFolderGenqlSelection & { __args: {input: UpdateMessageFolderInput} })
- updateMessageFolders?: (MessageFolderGenqlSelection & { __args: {input: UpdateMessageFoldersInput} })
- updateMessageChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateMessageChannelInput} })
- deleteConnectedAccount?: (ConnectedAccountDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
- updateCalendarChannel?: (CalendarChannelGenqlSelection & { __args: {input: UpdateCalendarChannelInput} })
- createWebhook?: (WebhookGenqlSelection & { __args: {input: CreateWebhookInput} })
- updateWebhook?: (WebhookGenqlSelection & { __args: {input: UpdateWebhookInput} })
- deleteWebhook?: (WebhookGenqlSelection & { __args: {id: Scalars['UUID']} })
- createChatThread?: AgentChatThreadGenqlSelection
- createSkill?: (SkillGenqlSelection & { __args: {input: CreateSkillInput} })
- updateSkill?: (SkillGenqlSelection & { __args: {input: UpdateSkillInput} })
- deleteSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
- activateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
- deactivateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
- evaluateAgentTurn?: (AgentTurnEvaluationGenqlSelection & { __args: {turnId: Scalars['UUID']} })
- runEvaluationInput?: (AgentTurnGenqlSelection & { __args: {agentId: Scalars['UUID'], input: Scalars['String']} })
- duplicateDashboard?: (DuplicatedDashboardGenqlSelection & { __args: {id: Scalars['UUID']} })
impersonate?: (ImpersonateGenqlSelection & { __args: {userId: Scalars['UUID'], workspaceId: Scalars['UUID']} })
startChannelSync?: (ChannelSyncSuccessGenqlSelection & { __args: {connectedAccountId: Scalars['UUID']} })
saveImapSmtpCaldavAccount?: (ImapSmtpCaldavConnectionSuccessGenqlSelection & { __args: {accountOwnerId: Scalars['UUID'], handle: Scalars['String'], connectionParameters: EmailAccountConnectionParameters, id?: (Scalars['UUID'] | null)} })
@@ -6315,25 +6317,27 @@ update: UpdateNavigationMenuItemInput}
export interface UpdateNavigationMenuItemInput {folderId?: (Scalars['UUID'] | null),position?: (Scalars['Float'] | null),name?: (Scalars['String'] | null),link?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),color?: (Scalars['String'] | null)}
-export interface CreatePageLayoutWidgetInput {pageLayoutTabId: Scalars['UUID'],title: Scalars['String'],type: WidgetType,objectMetadataId?: (Scalars['UUID'] | null),gridPosition: GridPositionInput,position?: (Scalars['JSON'] | null),configuration: Scalars['JSON']}
-
-export interface GridPositionInput {row: Scalars['Float'],column: Scalars['Float'],rowSpan: Scalars['Float'],columnSpan: Scalars['Float']}
-
-export interface UpdatePageLayoutWidgetInput {title?: (Scalars['String'] | null),type?: (WidgetType | null),objectMetadataId?: (Scalars['UUID'] | null),gridPosition?: (GridPositionInput | null),position?: (Scalars['JSON'] | null),configuration?: (Scalars['JSON'] | null),conditionalDisplay?: (Scalars['JSON'] | null)}
-
-export interface CreatePageLayoutTabInput {title: Scalars['String'],position?: (Scalars['Float'] | null),pageLayoutId: Scalars['UUID'],layoutMode?: (PageLayoutTabLayoutMode | null)}
+export interface CreateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId: Scalars['UUID']}
-export interface UpdatePageLayoutTabInput {title?: (Scalars['String'] | null),position?: (Scalars['Float'] | null),icon?: (Scalars['String'] | null),layoutMode?: (PageLayoutTabLayoutMode | null)}
+export interface UpdateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId?: (Scalars['UUID'] | null)}
-export interface CreatePageLayoutInput {name: Scalars['String'],type?: (PageLayoutType | null),objectMetadataId?: (Scalars['UUID'] | null)}
+export interface CreateViewFilterInput {id?: (Scalars['UUID'] | null),fieldMetadataId: Scalars['UUID'],operand?: (ViewFilterOperand | null),value: Scalars['JSON'],viewFilterGroupId?: (Scalars['UUID'] | null),positionInViewFilterGroup?: (Scalars['Float'] | null),subFieldName?: (Scalars['String'] | null),viewId: Scalars['UUID']}
-export interface UpdatePageLayoutInput {name?: (Scalars['String'] | null),type?: (PageLayoutType | null),objectMetadataId?: (Scalars['UUID'] | null)}
+export interface UpdateViewFilterInput {
+/** The id of the view filter to update */
+id: Scalars['UUID'],
+/** The view filter to update */
+update: UpdateViewFilterInputUpdates}
-export interface UpdatePageLayoutWithTabsInput {name: Scalars['String'],type: PageLayoutType,objectMetadataId?: (Scalars['UUID'] | null),tabs: UpdatePageLayoutTabWithWidgetsInput[]}
+export interface UpdateViewFilterInputUpdates {fieldMetadataId?: (Scalars['UUID'] | null),operand?: (ViewFilterOperand | null),value?: (Scalars['JSON'] | null),viewFilterGroupId?: (Scalars['UUID'] | null),positionInViewFilterGroup?: (Scalars['Float'] | null),subFieldName?: (Scalars['String'] | null)}
-export interface UpdatePageLayoutTabWithWidgetsInput {id: Scalars['UUID'],title: Scalars['String'],position: Scalars['Float'],icon?: (Scalars['String'] | null),layoutMode?: (PageLayoutTabLayoutMode | null),widgets: UpdatePageLayoutWidgetWithIdInput[]}
+export interface DeleteViewFilterInput {
+/** The id of the view filter to delete. */
+id: Scalars['UUID']}
-export interface UpdatePageLayoutWidgetWithIdInput {id: Scalars['UUID'],pageLayoutTabId: Scalars['UUID'],title: Scalars['String'],type: WidgetType,objectMetadataId?: (Scalars['UUID'] | null),gridPosition: GridPositionInput,position?: (Scalars['JSON'] | null),configuration?: (Scalars['JSON'] | null),conditionalDisplay?: (Scalars['JSON'] | null)}
+export interface DestroyViewFilterInput {
+/** The id of the view filter to destroy. */
+id: Scalars['UUID']}
export interface CreateViewInput {id?: (Scalars['UUID'] | null),name: Scalars['String'],objectMetadataId: Scalars['UUID'],type?: (ViewType | null),key?: (ViewKey | null),icon: Scalars['String'],position?: (Scalars['Float'] | null),isCompact?: (Scalars['Boolean'] | null),shouldHideEmptyGroups?: (Scalars['Boolean'] | null),openRecordIn?: (ViewOpenRecordIn | null),kanbanAggregateOperation?: (AggregateOperations | null),kanbanAggregateOperationFieldMetadataId?: (Scalars['UUID'] | null),anyFieldFilterValue?: (Scalars['String'] | null),calendarLayout?: (ViewCalendarLayout | null),calendarFieldMetadataId?: (Scalars['UUID'] | null),mainGroupByFieldMetadataId?: (Scalars['UUID'] | null),visibility?: (ViewVisibility | null)}
@@ -6389,6 +6393,38 @@ export interface UpsertFieldsWidgetFieldInput {
/** The id of the view field */
viewFieldId: Scalars['UUID'],isVisible: Scalars['Boolean'],position: Scalars['Float']}
+export interface CreateApiKeyInput {name: Scalars['String'],expiresAt: Scalars['String'],revokedAt?: (Scalars['String'] | null),roleId: Scalars['UUID']}
+
+export interface UpdateApiKeyInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),expiresAt?: (Scalars['String'] | null),revokedAt?: (Scalars['String'] | null)}
+
+export interface RevokeApiKeyInput {id: Scalars['UUID']}
+
+export interface CreateApprovedAccessDomainInput {domain: Scalars['String'],email: Scalars['String']}
+
+export interface DeleteApprovedAccessDomainInput {id: Scalars['UUID']}
+
+export interface ValidateApprovedAccessDomainInput {validationToken: Scalars['String'],approvedAccessDomainId: Scalars['UUID']}
+
+export interface CreatePageLayoutTabInput {title: Scalars['String'],position?: (Scalars['Float'] | null),pageLayoutId: Scalars['UUID'],layoutMode?: (PageLayoutTabLayoutMode | null)}
+
+export interface UpdatePageLayoutTabInput {title?: (Scalars['String'] | null),position?: (Scalars['Float'] | null),icon?: (Scalars['String'] | null),layoutMode?: (PageLayoutTabLayoutMode | null)}
+
+export interface CreatePageLayoutInput {name: Scalars['String'],type?: (PageLayoutType | null),objectMetadataId?: (Scalars['UUID'] | null)}
+
+export interface UpdatePageLayoutInput {name?: (Scalars['String'] | null),type?: (PageLayoutType | null),objectMetadataId?: (Scalars['UUID'] | null)}
+
+export interface UpdatePageLayoutWithTabsInput {name: Scalars['String'],type: PageLayoutType,objectMetadataId?: (Scalars['UUID'] | null),tabs: UpdatePageLayoutTabWithWidgetsInput[]}
+
+export interface UpdatePageLayoutTabWithWidgetsInput {id: Scalars['UUID'],title: Scalars['String'],position: Scalars['Float'],icon?: (Scalars['String'] | null),layoutMode?: (PageLayoutTabLayoutMode | null),widgets: UpdatePageLayoutWidgetWithIdInput[]}
+
+export interface UpdatePageLayoutWidgetWithIdInput {id: Scalars['UUID'],pageLayoutTabId: Scalars['UUID'],title: Scalars['String'],type: WidgetType,objectMetadataId?: (Scalars['UUID'] | null),gridPosition: GridPositionInput,position?: (Scalars['JSON'] | null),configuration?: (Scalars['JSON'] | null),conditionalDisplay?: (Scalars['JSON'] | null)}
+
+export interface GridPositionInput {row: Scalars['Float'],column: Scalars['Float'],rowSpan: Scalars['Float'],columnSpan: Scalars['Float']}
+
+export interface CreatePageLayoutWidgetInput {pageLayoutTabId: Scalars['UUID'],title: Scalars['String'],type: WidgetType,objectMetadataId?: (Scalars['UUID'] | null),gridPosition: GridPositionInput,position?: (Scalars['JSON'] | null),configuration: Scalars['JSON']}
+
+export interface UpdatePageLayoutWidgetInput {title?: (Scalars['String'] | null),type?: (WidgetType | null),objectMetadataId?: (Scalars['UUID'] | null),gridPosition?: (GridPositionInput | null),position?: (Scalars['JSON'] | null),configuration?: (Scalars['JSON'] | null),conditionalDisplay?: (Scalars['JSON'] | null)}
+
export interface CreateLogicFunctionFromSourceInput {id?: (Scalars['UUID'] | null),universalIdentifier?: (Scalars['UUID'] | null),name: Scalars['String'],description?: (Scalars['String'] | null),timeoutSeconds?: (Scalars['Float'] | null),toolInputSchema?: (Scalars['JSON'] | null),isTool?: (Scalars['Boolean'] | null),source?: (Scalars['JSON'] | null),cronTriggerSettings?: (Scalars['JSON'] | null),databaseEventTriggerSettings?: (Scalars['JSON'] | null),httpRouteTriggerSettings?: (Scalars['JSON'] | null)}
export interface ExecuteOneLogicFunctionInput {
@@ -6481,18 +6517,6 @@ export interface RowLevelPermissionPredicateInput {id?: (Scalars['UUID'] | null)
export interface RowLevelPermissionPredicateGroupInput {id?: (Scalars['UUID'] | null),objectMetadataId: Scalars['UUID'],parentRowLevelPermissionPredicateGroupId?: (Scalars['UUID'] | null),logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator,positionInRowLevelPermissionPredicateGroup?: (Scalars['Float'] | null)}
-export interface CreateApprovedAccessDomainInput {domain: Scalars['String'],email: Scalars['String']}
-
-export interface DeleteApprovedAccessDomainInput {id: Scalars['UUID']}
-
-export interface ValidateApprovedAccessDomainInput {validationToken: Scalars['String'],approvedAccessDomainId: Scalars['UUID']}
-
-export interface CreateApiKeyInput {name: Scalars['String'],expiresAt: Scalars['String'],revokedAt?: (Scalars['String'] | null),roleId: Scalars['UUID']}
-
-export interface UpdateApiKeyInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),expiresAt?: (Scalars['String'] | null),revokedAt?: (Scalars['String'] | null)}
-
-export interface RevokeApiKeyInput {id: Scalars['UUID']}
-
export interface CreateOneFieldMetadataInput {
/** The record to create */
field: CreateFieldInput}
@@ -6529,31 +6553,35 @@ export interface DestroyViewGroupInput {
/** The id of the view group to destroy. */
id: Scalars['UUID']}
-export interface CreateViewFilterInput {id?: (Scalars['UUID'] | null),fieldMetadataId: Scalars['UUID'],operand?: (ViewFilterOperand | null),value: Scalars['JSON'],viewFilterGroupId?: (Scalars['UUID'] | null),positionInViewFilterGroup?: (Scalars['Float'] | null),subFieldName?: (Scalars['String'] | null),viewId: Scalars['UUID']}
+export interface UpdateMessageFolderInput {id: Scalars['UUID'],update: UpdateMessageFolderInputUpdates}
-export interface UpdateViewFilterInput {
-/** The id of the view filter to update */
-id: Scalars['UUID'],
-/** The view filter to update */
-update: UpdateViewFilterInputUpdates}
+export interface UpdateMessageFolderInputUpdates {isSynced?: (Scalars['Boolean'] | null)}
-export interface UpdateViewFilterInputUpdates {fieldMetadataId?: (Scalars['UUID'] | null),operand?: (ViewFilterOperand | null),value?: (Scalars['JSON'] | null),viewFilterGroupId?: (Scalars['UUID'] | null),positionInViewFilterGroup?: (Scalars['Float'] | null),subFieldName?: (Scalars['String'] | null)}
+export interface UpdateMessageFoldersInput {ids: Scalars['UUID'][],update: UpdateMessageFolderInputUpdates}
-export interface DeleteViewFilterInput {
-/** The id of the view filter to delete. */
-id: Scalars['UUID']}
+export interface UpdateMessageChannelInput {id: Scalars['UUID'],update: UpdateMessageChannelInputUpdates}
-export interface DestroyViewFilterInput {
-/** The id of the view filter to destroy. */
-id: Scalars['UUID']}
+export interface UpdateMessageChannelInputUpdates {visibility?: (MessageChannelVisibility | null),isContactAutoCreationEnabled?: (Scalars['Boolean'] | null),contactAutoCreationPolicy?: (MessageChannelContactAutoCreationPolicy | null),messageFolderImportPolicy?: (MessageFolderImportPolicy | null),isSyncEnabled?: (Scalars['Boolean'] | null),excludeNonProfessionalEmails?: (Scalars['Boolean'] | null),excludeGroupEmails?: (Scalars['Boolean'] | null)}
-export interface CreateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId: Scalars['UUID']}
+export interface UpdateCalendarChannelInput {id: Scalars['UUID'],update: UpdateCalendarChannelInputUpdates}
-export interface UpdateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId?: (Scalars['UUID'] | null)}
+export interface UpdateCalendarChannelInputUpdates {visibility?: (CalendarChannelVisibility | null),isContactAutoCreationEnabled?: (Scalars['Boolean'] | null),contactAutoCreationPolicy?: (CalendarChannelContactAutoCreationPolicy | null),isSyncEnabled?: (Scalars['Boolean'] | null)}
-export interface ActivateWorkspaceInput {displayName?: (Scalars['String'] | null)}
+export interface CreateWebhookInput {id?: (Scalars['UUID'] | null),targetUrl: Scalars['String'],operations: Scalars['String'][],description?: (Scalars['String'] | null),secret?: (Scalars['String'] | null)}
-export interface UpdateWorkspaceInput {subdomain?: (Scalars['String'] | null),customDomain?: (Scalars['String'] | null),displayName?: (Scalars['String'] | null),logo?: (Scalars['String'] | null),inviteHash?: (Scalars['String'] | null),isPublicInviteLinkEnabled?: (Scalars['Boolean'] | null),allowImpersonation?: (Scalars['Boolean'] | null),isGoogleAuthEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthEnabled?: (Scalars['Boolean'] | null),isPasswordAuthEnabled?: (Scalars['Boolean'] | null),isGoogleAuthBypassEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthBypassEnabled?: (Scalars['Boolean'] | null),isPasswordAuthBypassEnabled?: (Scalars['Boolean'] | null),defaultRoleId?: (Scalars['UUID'] | null),isTwoFactorAuthenticationEnforced?: (Scalars['Boolean'] | null),trashRetentionDays?: (Scalars['Float'] | null),eventLogRetentionDays?: (Scalars['Float'] | null),fastModel?: (Scalars['String'] | null),smartModel?: (Scalars['String'] | null),aiAdditionalInstructions?: (Scalars['String'] | null),editableProfileFields?: (Scalars['String'][] | null),enabledAiModelIds?: (Scalars['String'][] | null),useRecommendedModels?: (Scalars['Boolean'] | null)}
+export interface UpdateWebhookInput {
+/** The id of the webhook to update */
+id: Scalars['UUID'],
+/** The webhook fields to update */
+update: UpdateWebhookInputUpdates}
+
+export interface UpdateWebhookInputUpdates {targetUrl?: (Scalars['String'] | null),operations?: (Scalars['String'][] | null),description?: (Scalars['String'] | null),secret?: (Scalars['String'] | null)}
+
+export interface CreateSkillInput {id?: (Scalars['UUID'] | null),name: Scalars['String'],label: Scalars['String'],icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),content: Scalars['String']}
+
+export interface UpdateSkillInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),label?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),content?: (Scalars['String'] | null),isActive?: (Scalars['Boolean'] | null)}
+
+export interface GetAuthorizationUrlForSSOInput {identityProviderId: Scalars['UUID'],workspaceInviteHash?: (Scalars['String'] | null)}
export interface CreateApplicationRegistrationInput {name: Scalars['String'],description?: (Scalars['String'] | null),logoUrl?: (Scalars['String'] | null),author?: (Scalars['String'] | null),universalIdentifier?: (Scalars['String'] | null),oAuthRedirectUris?: (Scalars['String'][] | null),oAuthScopes?: (Scalars['String'][] | null),websiteUrl?: (Scalars['String'] | null),termsUrl?: (Scalars['String'] | null)}
@@ -6567,43 +6595,17 @@ export interface UpdateApplicationRegistrationVariableInput {id: Scalars['String
export interface UpdateApplicationRegistrationVariablePayload {value?: (Scalars['String'] | null),description?: (Scalars['String'] | null)}
-export interface GetAuthorizationUrlForSSOInput {identityProviderId: Scalars['UUID'],workspaceInviteHash?: (Scalars['String'] | null)}
-
-export interface SetupOIDCSsoInput {name: Scalars['String'],issuer: Scalars['String'],clientID: Scalars['String'],clientSecret: Scalars['String']}
-
-export interface SetupSAMLSsoInput {name: Scalars['String'],issuer: Scalars['String'],id: Scalars['UUID'],ssoURL: Scalars['String'],certificate: Scalars['String'],fingerprint?: (Scalars['String'] | null)}
-
-export interface DeleteSsoInput {identityProviderId: Scalars['UUID']}
-
-export interface EditSsoInput {id: Scalars['UUID'],status: SSOIdentityProviderStatus}
-
-export interface UpdateMessageFolderInput {id: Scalars['UUID'],update: UpdateMessageFolderInputUpdates}
-
-export interface UpdateMessageFolderInputUpdates {isSynced?: (Scalars['Boolean'] | null)}
-
-export interface UpdateMessageFoldersInput {ids: Scalars['UUID'][],update: UpdateMessageFolderInputUpdates}
-
-export interface UpdateMessageChannelInput {id: Scalars['UUID'],update: UpdateMessageChannelInputUpdates}
-
-export interface UpdateMessageChannelInputUpdates {visibility?: (MessageChannelVisibility | null),isContactAutoCreationEnabled?: (Scalars['Boolean'] | null),contactAutoCreationPolicy?: (MessageChannelContactAutoCreationPolicy | null),messageFolderImportPolicy?: (MessageFolderImportPolicy | null),isSyncEnabled?: (Scalars['Boolean'] | null),excludeNonProfessionalEmails?: (Scalars['Boolean'] | null),excludeGroupEmails?: (Scalars['Boolean'] | null)}
-
-export interface UpdateCalendarChannelInput {id: Scalars['UUID'],update: UpdateCalendarChannelInputUpdates}
-
-export interface UpdateCalendarChannelInputUpdates {visibility?: (CalendarChannelVisibility | null),isContactAutoCreationEnabled?: (Scalars['Boolean'] | null),contactAutoCreationPolicy?: (CalendarChannelContactAutoCreationPolicy | null),isSyncEnabled?: (Scalars['Boolean'] | null)}
+export interface ActivateWorkspaceInput {displayName?: (Scalars['String'] | null)}
-export interface CreateWebhookInput {id?: (Scalars['UUID'] | null),targetUrl: Scalars['String'],operations: Scalars['String'][],description?: (Scalars['String'] | null),secret?: (Scalars['String'] | null)}
+export interface UpdateWorkspaceInput {subdomain?: (Scalars['String'] | null),customDomain?: (Scalars['String'] | null),displayName?: (Scalars['String'] | null),logo?: (Scalars['String'] | null),inviteHash?: (Scalars['String'] | null),isPublicInviteLinkEnabled?: (Scalars['Boolean'] | null),allowImpersonation?: (Scalars['Boolean'] | null),isGoogleAuthEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthEnabled?: (Scalars['Boolean'] | null),isPasswordAuthEnabled?: (Scalars['Boolean'] | null),isGoogleAuthBypassEnabled?: (Scalars['Boolean'] | null),isMicrosoftAuthBypassEnabled?: (Scalars['Boolean'] | null),isPasswordAuthBypassEnabled?: (Scalars['Boolean'] | null),defaultRoleId?: (Scalars['UUID'] | null),isTwoFactorAuthenticationEnforced?: (Scalars['Boolean'] | null),trashRetentionDays?: (Scalars['Float'] | null),eventLogRetentionDays?: (Scalars['Float'] | null),fastModel?: (Scalars['String'] | null),smartModel?: (Scalars['String'] | null),aiAdditionalInstructions?: (Scalars['String'] | null),editableProfileFields?: (Scalars['String'][] | null),enabledAiModelIds?: (Scalars['String'][] | null),useRecommendedModels?: (Scalars['Boolean'] | null)}
-export interface UpdateWebhookInput {
-/** The id of the webhook to update */
-id: Scalars['UUID'],
-/** The webhook fields to update */
-update: UpdateWebhookInputUpdates}
+export interface SetupOIDCSsoInput {name: Scalars['String'],issuer: Scalars['String'],clientID: Scalars['String'],clientSecret: Scalars['String']}
-export interface UpdateWebhookInputUpdates {targetUrl?: (Scalars['String'] | null),operations?: (Scalars['String'][] | null),description?: (Scalars['String'] | null),secret?: (Scalars['String'] | null)}
+export interface SetupSAMLSsoInput {name: Scalars['String'],issuer: Scalars['String'],id: Scalars['UUID'],ssoURL: Scalars['String'],certificate: Scalars['String'],fingerprint?: (Scalars['String'] | null)}
-export interface CreateSkillInput {id?: (Scalars['UUID'] | null),name: Scalars['String'],label: Scalars['String'],icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),content: Scalars['String']}
+export interface DeleteSsoInput {identityProviderId: Scalars['UUID']}
-export interface UpdateSkillInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),label?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),content?: (Scalars['String'] | null),isActive?: (Scalars['Boolean'] | null)}
+export interface EditSsoInput {id: Scalars['UUID'],status: SSOIdentityProviderStatus}
export interface EmailAccountConnectionParameters {IMAP?: (ConnectionParameters | null),SMTP?: (ConnectionParameters | null),CALDAV?: (ConnectionParameters | null)}
@@ -7375,1018 +7377,826 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const ResendEmailVerificationToken_possibleTypes: string[] = ['ResendEmailVerificationToken']
- export const isResendEmailVerificationToken = (obj?: { __typename?: any } | null): obj is ResendEmailVerificationToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isResendEmailVerificationToken"')
- return ResendEmailVerificationToken_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const WorkspaceUrls_possibleTypes: string[] = ['WorkspaceUrls']
- export const isWorkspaceUrls = (obj?: { __typename?: any } | null): obj is WorkspaceUrls => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceUrls"')
- return WorkspaceUrls_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const SSOConnection_possibleTypes: string[] = ['SSOConnection']
- export const isSSOConnection = (obj?: { __typename?: any } | null): obj is SSOConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSSOConnection"')
- return SSOConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const AvailableWorkspace_possibleTypes: string[] = ['AvailableWorkspace']
- export const isAvailableWorkspace = (obj?: { __typename?: any } | null): obj is AvailableWorkspace => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspace"')
- return AvailableWorkspace_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const AvailableWorkspaces_possibleTypes: string[] = ['AvailableWorkspaces']
- export const isAvailableWorkspaces = (obj?: { __typename?: any } | null): obj is AvailableWorkspaces => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspaces"')
- return AvailableWorkspaces_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const DeletedWorkspaceMember_possibleTypes: string[] = ['DeletedWorkspaceMember']
- export const isDeletedWorkspaceMember = (obj?: { __typename?: any } | null): obj is DeletedWorkspaceMember => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDeletedWorkspaceMember"')
- return DeletedWorkspaceMember_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const BillingEntitlement_possibleTypes: string[] = ['BillingEntitlement']
- export const isBillingEntitlement = (obj?: { __typename?: any } | null): obj is BillingEntitlement => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isBillingEntitlement"')
- return BillingEntitlement_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const DomainRecord_possibleTypes: string[] = ['DomainRecord']
- export const isDomainRecord = (obj?: { __typename?: any } | null): obj is DomainRecord => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDomainRecord"')
- return DomainRecord_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const DomainValidRecords_possibleTypes: string[] = ['DomainValidRecords']
- export const isDomainValidRecords = (obj?: { __typename?: any } | null): obj is DomainValidRecords => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDomainValidRecords"')
- return DomainValidRecords_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const FeatureFlag_possibleTypes: string[] = ['FeatureFlag']
- export const isFeatureFlag = (obj?: { __typename?: any } | null): obj is FeatureFlag => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isFeatureFlag"')
- return FeatureFlag_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const SSOIdentityProvider_possibleTypes: string[] = ['SSOIdentityProvider']
- export const isSSOIdentityProvider = (obj?: { __typename?: any } | null): obj is SSOIdentityProvider => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSSOIdentityProvider"')
- return SSOIdentityProvider_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const AuthProviders_possibleTypes: string[] = ['AuthProviders']
- export const isAuthProviders = (obj?: { __typename?: any } | null): obj is AuthProviders => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthProviders"')
- return AuthProviders_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const AuthBypassProviders_possibleTypes: string[] = ['AuthBypassProviders']
- export const isAuthBypassProviders = (obj?: { __typename?: any } | null): obj is AuthBypassProviders => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthBypassProviders"')
- return AuthBypassProviders_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const PublicWorkspaceData_possibleTypes: string[] = ['PublicWorkspaceData']
- export const isPublicWorkspaceData = (obj?: { __typename?: any } | null): obj is PublicWorkspaceData => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isPublicWorkspaceData"')
- return PublicWorkspaceData_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const IndexEdge_possibleTypes: string[] = ['IndexEdge']
- export const isIndexEdge = (obj?: { __typename?: any } | null): obj is IndexEdge => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isIndexEdge"')
- return IndexEdge_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const PageInfo_possibleTypes: string[] = ['PageInfo']
- export const isPageInfo = (obj?: { __typename?: any } | null): obj is PageInfo => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isPageInfo"')
- return PageInfo_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const IndexConnection_possibleTypes: string[] = ['IndexConnection']
- export const isIndexConnection = (obj?: { __typename?: any } | null): obj is IndexConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isIndexConnection"')
- return IndexConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const IndexFieldEdge_possibleTypes: string[] = ['IndexFieldEdge']
- export const isIndexFieldEdge = (obj?: { __typename?: any } | null): obj is IndexFieldEdge => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isIndexFieldEdge"')
- return IndexFieldEdge_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const IndexIndexFieldMetadatasConnection_possibleTypes: string[] = ['IndexIndexFieldMetadatasConnection']
- export const isIndexIndexFieldMetadatasConnection = (obj?: { __typename?: any } | null): obj is IndexIndexFieldMetadatasConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isIndexIndexFieldMetadatasConnection"')
- return IndexIndexFieldMetadatasConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const ObjectEdge_possibleTypes: string[] = ['ObjectEdge']
- export const isObjectEdge = (obj?: { __typename?: any } | null): obj is ObjectEdge => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectEdge"')
- return ObjectEdge_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const IndexObjectMetadataConnection_possibleTypes: string[] = ['IndexObjectMetadataConnection']
- export const isIndexObjectMetadataConnection = (obj?: { __typename?: any } | null): obj is IndexObjectMetadataConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isIndexObjectMetadataConnection"')
- return IndexObjectMetadataConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const ObjectRecordCount_possibleTypes: string[] = ['ObjectRecordCount']
- export const isObjectRecordCount = (obj?: { __typename?: any } | null): obj is ObjectRecordCount => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordCount"')
- return ObjectRecordCount_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const ObjectConnection_possibleTypes: string[] = ['ObjectConnection']
- export const isObjectConnection = (obj?: { __typename?: any } | null): obj is ObjectConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectConnection"')
- return ObjectConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const ObjectIndexMetadatasConnection_possibleTypes: string[] = ['ObjectIndexMetadatasConnection']
- export const isObjectIndexMetadatasConnection = (obj?: { __typename?: any } | null): obj is ObjectIndexMetadatasConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectIndexMetadatasConnection"')
- return ObjectIndexMetadatasConnection_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const FieldEdge_possibleTypes: string[] = ['FieldEdge']
- export const isFieldEdge = (obj?: { __typename?: any } | null): obj is FieldEdge => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isFieldEdge"')
- return FieldEdge_possibleTypes.includes(obj.__typename)
+ const RecordIdentifier_possibleTypes: string[] = ['RecordIdentifier']
+ export const isRecordIdentifier = (obj?: { __typename?: any } | null): obj is RecordIdentifier => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRecordIdentifier"')
+ return RecordIdentifier_possibleTypes.includes(obj.__typename)
}
- const ObjectFieldsConnection_possibleTypes: string[] = ['ObjectFieldsConnection']
- export const isObjectFieldsConnection = (obj?: { __typename?: any } | null): obj is ObjectFieldsConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectFieldsConnection"')
- return ObjectFieldsConnection_possibleTypes.includes(obj.__typename)
+ const NavigationMenuItem_possibleTypes: string[] = ['NavigationMenuItem']
+ export const isNavigationMenuItem = (obj?: { __typename?: any } | null): obj is NavigationMenuItem => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isNavigationMenuItem"')
+ return NavigationMenuItem_possibleTypes.includes(obj.__typename)
}
- const UpsertRowLevelPermissionPredicatesResult_possibleTypes: string[] = ['UpsertRowLevelPermissionPredicatesResult']
- export const isUpsertRowLevelPermissionPredicatesResult = (obj?: { __typename?: any } | null): obj is UpsertRowLevelPermissionPredicatesResult => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUpsertRowLevelPermissionPredicatesResult"')
- return UpsertRowLevelPermissionPredicatesResult_possibleTypes.includes(obj.__typename)
+ const ObjectRecordEventProperties_possibleTypes: string[] = ['ObjectRecordEventProperties']
+ export const isObjectRecordEventProperties = (obj?: { __typename?: any } | null): obj is ObjectRecordEventProperties => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEventProperties"')
+ return ObjectRecordEventProperties_possibleTypes.includes(obj.__typename)
}
- const VersionDistributionEntry_possibleTypes: string[] = ['VersionDistributionEntry']
- export const isVersionDistributionEntry = (obj?: { __typename?: any } | null): obj is VersionDistributionEntry => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isVersionDistributionEntry"')
- return VersionDistributionEntry_possibleTypes.includes(obj.__typename)
+ const MetadataEvent_possibleTypes: string[] = ['MetadataEvent']
+ export const isMetadataEvent = (obj?: { __typename?: any } | null): obj is MetadataEvent => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMetadataEvent"')
+ return MetadataEvent_possibleTypes.includes(obj.__typename)
}
- const ApplicationRegistrationStats_possibleTypes: string[] = ['ApplicationRegistrationStats']
- export const isApplicationRegistrationStats = (obj?: { __typename?: any } | null): obj is ApplicationRegistrationStats => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationRegistrationStats"')
- return ApplicationRegistrationStats_possibleTypes.includes(obj.__typename)
+ const ObjectRecordEvent_possibleTypes: string[] = ['ObjectRecordEvent']
+ export const isObjectRecordEvent = (obj?: { __typename?: any } | null): obj is ObjectRecordEvent => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEvent"')
+ return ObjectRecordEvent_possibleTypes.includes(obj.__typename)
}
- const CreateApplicationRegistration_possibleTypes: string[] = ['CreateApplicationRegistration']
- export const isCreateApplicationRegistration = (obj?: { __typename?: any } | null): obj is CreateApplicationRegistration => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCreateApplicationRegistration"')
- return CreateApplicationRegistration_possibleTypes.includes(obj.__typename)
+ const ObjectRecordEventWithQueryIds_possibleTypes: string[] = ['ObjectRecordEventWithQueryIds']
+ export const isObjectRecordEventWithQueryIds = (obj?: { __typename?: any } | null): obj is ObjectRecordEventWithQueryIds => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEventWithQueryIds"')
+ return ObjectRecordEventWithQueryIds_possibleTypes.includes(obj.__typename)
}
- const PublicApplicationRegistration_possibleTypes: string[] = ['PublicApplicationRegistration']
- export const isPublicApplicationRegistration = (obj?: { __typename?: any } | null): obj is PublicApplicationRegistration => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isPublicApplicationRegistration"')
- return PublicApplicationRegistration_possibleTypes.includes(obj.__typename)
+ const EventSubscription_possibleTypes: string[] = ['EventSubscription']
+ export const isEventSubscription = (obj?: { __typename?: any } | null): obj is EventSubscription => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isEventSubscription"')
+ return EventSubscription_possibleTypes.includes(obj.__typename)
}
- const RotateClientSecret_possibleTypes: string[] = ['RotateClientSecret']
- export const isRotateClientSecret = (obj?: { __typename?: any } | null): obj is RotateClientSecret => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isRotateClientSecret"')
- return RotateClientSecret_possibleTypes.includes(obj.__typename)
+ const LogicFunctionExecutionResult_possibleTypes: string[] = ['LogicFunctionExecutionResult']
+ export const isLogicFunctionExecutionResult = (obj?: { __typename?: any } | null): obj is LogicFunctionExecutionResult => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isLogicFunctionExecutionResult"')
+ return LogicFunctionExecutionResult_possibleTypes.includes(obj.__typename)
}
- const Relation_possibleTypes: string[] = ['Relation']
- export const isRelation = (obj?: { __typename?: any } | null): obj is Relation => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isRelation"')
- return Relation_possibleTypes.includes(obj.__typename)
+ const BillingTrialPeriod_possibleTypes: string[] = ['BillingTrialPeriod']
+ export const isBillingTrialPeriod = (obj?: { __typename?: any } | null): obj is BillingTrialPeriod => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isBillingTrialPeriod"')
+ return BillingTrialPeriod_possibleTypes.includes(obj.__typename)
}
- const FieldConnection_possibleTypes: string[] = ['FieldConnection']
- export const isFieldConnection = (obj?: { __typename?: any } | null): obj is FieldConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isFieldConnection"')
- return FieldConnection_possibleTypes.includes(obj.__typename)
+ const WorkspaceUrls_possibleTypes: string[] = ['WorkspaceUrls']
+ export const isWorkspaceUrls = (obj?: { __typename?: any } | null): obj is WorkspaceUrls => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceUrls"')
+ return WorkspaceUrls_possibleTypes.includes(obj.__typename)
}
- const DeleteSso_possibleTypes: string[] = ['DeleteSso']
- export const isDeleteSso = (obj?: { __typename?: any } | null): obj is DeleteSso => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteSso"')
- return DeleteSso_possibleTypes.includes(obj.__typename)
+ const SSOIdentityProvider_possibleTypes: string[] = ['SSOIdentityProvider']
+ export const isSSOIdentityProvider = (obj?: { __typename?: any } | null): obj is SSOIdentityProvider => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSSOIdentityProvider"')
+ return SSOIdentityProvider_possibleTypes.includes(obj.__typename)
}
- const EditSso_possibleTypes: string[] = ['EditSso']
- export const isEditSso = (obj?: { __typename?: any } | null): obj is EditSso => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isEditSso"')
- return EditSso_possibleTypes.includes(obj.__typename)
+ const AuthProviders_possibleTypes: string[] = ['AuthProviders']
+ export const isAuthProviders = (obj?: { __typename?: any } | null): obj is AuthProviders => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthProviders"')
+ return AuthProviders_possibleTypes.includes(obj.__typename)
}
- const WorkspaceNameAndId_possibleTypes: string[] = ['WorkspaceNameAndId']
- export const isWorkspaceNameAndId = (obj?: { __typename?: any } | null): obj is WorkspaceNameAndId => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceNameAndId"')
- return WorkspaceNameAndId_possibleTypes.includes(obj.__typename)
+ const AuthBypassProviders_possibleTypes: string[] = ['AuthBypassProviders']
+ export const isAuthBypassProviders = (obj?: { __typename?: any } | null): obj is AuthBypassProviders => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthBypassProviders"')
+ return AuthBypassProviders_possibleTypes.includes(obj.__typename)
}
- const FindAvailableSSOIDP_possibleTypes: string[] = ['FindAvailableSSOIDP']
- export const isFindAvailableSSOIDP = (obj?: { __typename?: any } | null): obj is FindAvailableSSOIDP => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isFindAvailableSSOIDP"')
- return FindAvailableSSOIDP_possibleTypes.includes(obj.__typename)
+ const PublicWorkspaceData_possibleTypes: string[] = ['PublicWorkspaceData']
+ export const isPublicWorkspaceData = (obj?: { __typename?: any } | null): obj is PublicWorkspaceData => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPublicWorkspaceData"')
+ return PublicWorkspaceData_possibleTypes.includes(obj.__typename)
}
- const SetupSso_possibleTypes: string[] = ['SetupSso']
- export const isSetupSso = (obj?: { __typename?: any } | null): obj is SetupSso => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSetupSso"')
- return SetupSso_possibleTypes.includes(obj.__typename)
+ const NativeModelCapabilities_possibleTypes: string[] = ['NativeModelCapabilities']
+ export const isNativeModelCapabilities = (obj?: { __typename?: any } | null): obj is NativeModelCapabilities => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isNativeModelCapabilities"')
+ return NativeModelCapabilities_possibleTypes.includes(obj.__typename)
}
- const DeleteTwoFactorAuthenticationMethod_possibleTypes: string[] = ['DeleteTwoFactorAuthenticationMethod']
- export const isDeleteTwoFactorAuthenticationMethod = (obj?: { __typename?: any } | null): obj is DeleteTwoFactorAuthenticationMethod => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteTwoFactorAuthenticationMethod"')
- return DeleteTwoFactorAuthenticationMethod_possibleTypes.includes(obj.__typename)
+ const ClientAIModelConfig_possibleTypes: string[] = ['ClientAIModelConfig']
+ export const isClientAIModelConfig = (obj?: { __typename?: any } | null): obj is ClientAIModelConfig => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isClientAIModelConfig"')
+ return ClientAIModelConfig_possibleTypes.includes(obj.__typename)
}
- const InitiateTwoFactorAuthenticationProvisioning_possibleTypes: string[] = ['InitiateTwoFactorAuthenticationProvisioning']
- export const isInitiateTwoFactorAuthenticationProvisioning = (obj?: { __typename?: any } | null): obj is InitiateTwoFactorAuthenticationProvisioning => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isInitiateTwoFactorAuthenticationProvisioning"')
- return InitiateTwoFactorAuthenticationProvisioning_possibleTypes.includes(obj.__typename)
+ const AdminAIModelConfig_possibleTypes: string[] = ['AdminAIModelConfig']
+ export const isAdminAIModelConfig = (obj?: { __typename?: any } | null): obj is AdminAIModelConfig => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAdminAIModelConfig"')
+ return AdminAIModelConfig_possibleTypes.includes(obj.__typename)
}
- const VerifyTwoFactorAuthenticationMethod_possibleTypes: string[] = ['VerifyTwoFactorAuthenticationMethod']
- export const isVerifyTwoFactorAuthenticationMethod = (obj?: { __typename?: any } | null): obj is VerifyTwoFactorAuthenticationMethod => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isVerifyTwoFactorAuthenticationMethod"')
- return VerifyTwoFactorAuthenticationMethod_possibleTypes.includes(obj.__typename)
+ const AdminAIModels_possibleTypes: string[] = ['AdminAIModels']
+ export const isAdminAIModels = (obj?: { __typename?: any } | null): obj is AdminAIModels => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAdminAIModels"')
+ return AdminAIModels_possibleTypes.includes(obj.__typename)
}
- const AuthorizeApp_possibleTypes: string[] = ['AuthorizeApp']
- export const isAuthorizeApp = (obj?: { __typename?: any } | null): obj is AuthorizeApp => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthorizeApp"')
- return AuthorizeApp_possibleTypes.includes(obj.__typename)
+ const Billing_possibleTypes: string[] = ['Billing']
+ export const isBilling = (obj?: { __typename?: any } | null): obj is Billing => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isBilling"')
+ return Billing_possibleTypes.includes(obj.__typename)
}
- const AuthToken_possibleTypes: string[] = ['AuthToken']
- export const isAuthToken = (obj?: { __typename?: any } | null): obj is AuthToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthToken"')
- return AuthToken_possibleTypes.includes(obj.__typename)
+ const Support_possibleTypes: string[] = ['Support']
+ export const isSupport = (obj?: { __typename?: any } | null): obj is Support => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSupport"')
+ return Support_possibleTypes.includes(obj.__typename)
}
- const AuthTokenPair_possibleTypes: string[] = ['AuthTokenPair']
- export const isAuthTokenPair = (obj?: { __typename?: any } | null): obj is AuthTokenPair => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthTokenPair"')
- return AuthTokenPair_possibleTypes.includes(obj.__typename)
+ const Sentry_possibleTypes: string[] = ['Sentry']
+ export const isSentry = (obj?: { __typename?: any } | null): obj is Sentry => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSentry"')
+ return Sentry_possibleTypes.includes(obj.__typename)
}
- const AvailableWorkspacesAndAccessTokens_possibleTypes: string[] = ['AvailableWorkspacesAndAccessTokens']
- export const isAvailableWorkspacesAndAccessTokens = (obj?: { __typename?: any } | null): obj is AvailableWorkspacesAndAccessTokens => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspacesAndAccessTokens"')
- return AvailableWorkspacesAndAccessTokens_possibleTypes.includes(obj.__typename)
+ const Captcha_possibleTypes: string[] = ['Captcha']
+ export const isCaptcha = (obj?: { __typename?: any } | null): obj is Captcha => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCaptcha"')
+ return Captcha_possibleTypes.includes(obj.__typename)
}
- const EmailPasswordResetLink_possibleTypes: string[] = ['EmailPasswordResetLink']
- export const isEmailPasswordResetLink = (obj?: { __typename?: any } | null): obj is EmailPasswordResetLink => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isEmailPasswordResetLink"')
- return EmailPasswordResetLink_possibleTypes.includes(obj.__typename)
+ const ApiConfig_possibleTypes: string[] = ['ApiConfig']
+ export const isApiConfig = (obj?: { __typename?: any } | null): obj is ApiConfig => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApiConfig"')
+ return ApiConfig_possibleTypes.includes(obj.__typename)
}
- const GetAuthorizationUrlForSSO_possibleTypes: string[] = ['GetAuthorizationUrlForSSO']
- export const isGetAuthorizationUrlForSSO = (obj?: { __typename?: any } | null): obj is GetAuthorizationUrlForSSO => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isGetAuthorizationUrlForSSO"')
- return GetAuthorizationUrlForSSO_possibleTypes.includes(obj.__typename)
+ const PublicFeatureFlagMetadata_possibleTypes: string[] = ['PublicFeatureFlagMetadata']
+ export const isPublicFeatureFlagMetadata = (obj?: { __typename?: any } | null): obj is PublicFeatureFlagMetadata => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPublicFeatureFlagMetadata"')
+ return PublicFeatureFlagMetadata_possibleTypes.includes(obj.__typename)
}
- const InvalidatePassword_possibleTypes: string[] = ['InvalidatePassword']
- export const isInvalidatePassword = (obj?: { __typename?: any } | null): obj is InvalidatePassword => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isInvalidatePassword"')
- return InvalidatePassword_possibleTypes.includes(obj.__typename)
+ const PublicFeatureFlag_possibleTypes: string[] = ['PublicFeatureFlag']
+ export const isPublicFeatureFlag = (obj?: { __typename?: any } | null): obj is PublicFeatureFlag => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPublicFeatureFlag"')
+ return PublicFeatureFlag_possibleTypes.includes(obj.__typename)
}
- const WorkspaceUrlsAndId_possibleTypes: string[] = ['WorkspaceUrlsAndId']
- export const isWorkspaceUrlsAndId = (obj?: { __typename?: any } | null): obj is WorkspaceUrlsAndId => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceUrlsAndId"')
- return WorkspaceUrlsAndId_possibleTypes.includes(obj.__typename)
+ const ClientConfig_possibleTypes: string[] = ['ClientConfig']
+ export const isClientConfig = (obj?: { __typename?: any } | null): obj is ClientConfig => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isClientConfig"')
+ return ClientConfig_possibleTypes.includes(obj.__typename)
}
- const SignUp_possibleTypes: string[] = ['SignUp']
- export const isSignUp = (obj?: { __typename?: any } | null): obj is SignUp => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSignUp"')
- return SignUp_possibleTypes.includes(obj.__typename)
+ const ConfigVariable_possibleTypes: string[] = ['ConfigVariable']
+ export const isConfigVariable = (obj?: { __typename?: any } | null): obj is ConfigVariable => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariable"')
+ return ConfigVariable_possibleTypes.includes(obj.__typename)
}
- const TransientToken_possibleTypes: string[] = ['TransientToken']
- export const isTransientToken = (obj?: { __typename?: any } | null): obj is TransientToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isTransientToken"')
- return TransientToken_possibleTypes.includes(obj.__typename)
+ const ConfigVariablesGroupData_possibleTypes: string[] = ['ConfigVariablesGroupData']
+ export const isConfigVariablesGroupData = (obj?: { __typename?: any } | null): obj is ConfigVariablesGroupData => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariablesGroupData"')
+ return ConfigVariablesGroupData_possibleTypes.includes(obj.__typename)
}
- const ValidatePasswordResetToken_possibleTypes: string[] = ['ValidatePasswordResetToken']
- export const isValidatePasswordResetToken = (obj?: { __typename?: any } | null): obj is ValidatePasswordResetToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isValidatePasswordResetToken"')
- return ValidatePasswordResetToken_possibleTypes.includes(obj.__typename)
+ const ConfigVariables_possibleTypes: string[] = ['ConfigVariables']
+ export const isConfigVariables = (obj?: { __typename?: any } | null): obj is ConfigVariables => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariables"')
+ return ConfigVariables_possibleTypes.includes(obj.__typename)
}
- const VerifyEmailAndGetLoginToken_possibleTypes: string[] = ['VerifyEmailAndGetLoginToken']
- export const isVerifyEmailAndGetLoginToken = (obj?: { __typename?: any } | null): obj is VerifyEmailAndGetLoginToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isVerifyEmailAndGetLoginToken"')
- return VerifyEmailAndGetLoginToken_possibleTypes.includes(obj.__typename)
+ const JobOperationResult_possibleTypes: string[] = ['JobOperationResult']
+ export const isJobOperationResult = (obj?: { __typename?: any } | null): obj is JobOperationResult => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isJobOperationResult"')
+ return JobOperationResult_possibleTypes.includes(obj.__typename)
}
- const ApiKeyToken_possibleTypes: string[] = ['ApiKeyToken']
- export const isApiKeyToken = (obj?: { __typename?: any } | null): obj is ApiKeyToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isApiKeyToken"')
- return ApiKeyToken_possibleTypes.includes(obj.__typename)
+ const DeleteJobsResponse_possibleTypes: string[] = ['DeleteJobsResponse']
+ export const isDeleteJobsResponse = (obj?: { __typename?: any } | null): obj is DeleteJobsResponse => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteJobsResponse"')
+ return DeleteJobsResponse_possibleTypes.includes(obj.__typename)
}
- const AuthTokens_possibleTypes: string[] = ['AuthTokens']
- export const isAuthTokens = (obj?: { __typename?: any } | null): obj is AuthTokens => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAuthTokens"')
- return AuthTokens_possibleTypes.includes(obj.__typename)
+ const QueueJob_possibleTypes: string[] = ['QueueJob']
+ export const isQueueJob = (obj?: { __typename?: any } | null): obj is QueueJob => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueJob"')
+ return QueueJob_possibleTypes.includes(obj.__typename)
}
- const LoginToken_possibleTypes: string[] = ['LoginToken']
- export const isLoginToken = (obj?: { __typename?: any } | null): obj is LoginToken => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isLoginToken"')
- return LoginToken_possibleTypes.includes(obj.__typename)
+ const QueueRetentionConfig_possibleTypes: string[] = ['QueueRetentionConfig']
+ export const isQueueRetentionConfig = (obj?: { __typename?: any } | null): obj is QueueRetentionConfig => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueRetentionConfig"')
+ return QueueRetentionConfig_possibleTypes.includes(obj.__typename)
}
- const CheckUserExist_possibleTypes: string[] = ['CheckUserExist']
- export const isCheckUserExist = (obj?: { __typename?: any } | null): obj is CheckUserExist => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCheckUserExist"')
- return CheckUserExist_possibleTypes.includes(obj.__typename)
+ const QueueJobsResponse_possibleTypes: string[] = ['QueueJobsResponse']
+ export const isQueueJobsResponse = (obj?: { __typename?: any } | null): obj is QueueJobsResponse => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueJobsResponse"')
+ return QueueJobsResponse_possibleTypes.includes(obj.__typename)
}
- const WorkspaceInviteHashValid_possibleTypes: string[] = ['WorkspaceInviteHashValid']
- export const isWorkspaceInviteHashValid = (obj?: { __typename?: any } | null): obj is WorkspaceInviteHashValid => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceInviteHashValid"')
- return WorkspaceInviteHashValid_possibleTypes.includes(obj.__typename)
+ const RetryJobsResponse_possibleTypes: string[] = ['RetryJobsResponse']
+ export const isRetryJobsResponse = (obj?: { __typename?: any } | null): obj is RetryJobsResponse => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRetryJobsResponse"')
+ return RetryJobsResponse_possibleTypes.includes(obj.__typename)
}
- const RecordIdentifier_possibleTypes: string[] = ['RecordIdentifier']
- export const isRecordIdentifier = (obj?: { __typename?: any } | null): obj is RecordIdentifier => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isRecordIdentifier"')
- return RecordIdentifier_possibleTypes.includes(obj.__typename)
+ const SystemHealthService_possibleTypes: string[] = ['SystemHealthService']
+ export const isSystemHealthService = (obj?: { __typename?: any } | null): obj is SystemHealthService => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSystemHealthService"')
+ return SystemHealthService_possibleTypes.includes(obj.__typename)
}
- const NavigationMenuItem_possibleTypes: string[] = ['NavigationMenuItem']
- export const isNavigationMenuItem = (obj?: { __typename?: any } | null): obj is NavigationMenuItem => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isNavigationMenuItem"')
- return NavigationMenuItem_possibleTypes.includes(obj.__typename)
+ const SystemHealth_possibleTypes: string[] = ['SystemHealth']
+ export const isSystemHealth = (obj?: { __typename?: any } | null): obj is SystemHealth => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSystemHealth"')
+ return SystemHealth_possibleTypes.includes(obj.__typename)
}
- const ObjectRecordEventProperties_possibleTypes: string[] = ['ObjectRecordEventProperties']
- export const isObjectRecordEventProperties = (obj?: { __typename?: any } | null): obj is ObjectRecordEventProperties => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEventProperties"')
- return ObjectRecordEventProperties_possibleTypes.includes(obj.__typename)
+ const FeatureFlag_possibleTypes: string[] = ['FeatureFlag']
+ export const isFeatureFlag = (obj?: { __typename?: any } | null): obj is FeatureFlag => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isFeatureFlag"')
+ return FeatureFlag_possibleTypes.includes(obj.__typename)
}
- const MetadataEvent_possibleTypes: string[] = ['MetadataEvent']
- export const isMetadataEvent = (obj?: { __typename?: any } | null): obj is MetadataEvent => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMetadataEvent"')
- return MetadataEvent_possibleTypes.includes(obj.__typename)
+ const UserInfo_possibleTypes: string[] = ['UserInfo']
+ export const isUserInfo = (obj?: { __typename?: any } | null): obj is UserInfo => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUserInfo"')
+ return UserInfo_possibleTypes.includes(obj.__typename)
}
- const ObjectRecordEvent_possibleTypes: string[] = ['ObjectRecordEvent']
- export const isObjectRecordEvent = (obj?: { __typename?: any } | null): obj is ObjectRecordEvent => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEvent"')
- return ObjectRecordEvent_possibleTypes.includes(obj.__typename)
+ const WorkspaceInfo_possibleTypes: string[] = ['WorkspaceInfo']
+ export const isWorkspaceInfo = (obj?: { __typename?: any } | null): obj is WorkspaceInfo => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceInfo"')
+ return WorkspaceInfo_possibleTypes.includes(obj.__typename)
}
- const ObjectRecordEventWithQueryIds_possibleTypes: string[] = ['ObjectRecordEventWithQueryIds']
- export const isObjectRecordEventWithQueryIds = (obj?: { __typename?: any } | null): obj is ObjectRecordEventWithQueryIds => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordEventWithQueryIds"')
- return ObjectRecordEventWithQueryIds_possibleTypes.includes(obj.__typename)
+ const UserLookup_possibleTypes: string[] = ['UserLookup']
+ export const isUserLookup = (obj?: { __typename?: any } | null): obj is UserLookup => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUserLookup"')
+ return UserLookup_possibleTypes.includes(obj.__typename)
}
- const EventSubscription_possibleTypes: string[] = ['EventSubscription']
- export const isEventSubscription = (obj?: { __typename?: any } | null): obj is EventSubscription => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isEventSubscription"')
- return EventSubscription_possibleTypes.includes(obj.__typename)
+ const VersionInfo_possibleTypes: string[] = ['VersionInfo']
+ export const isVersionInfo = (obj?: { __typename?: any } | null): obj is VersionInfo => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isVersionInfo"')
+ return VersionInfo_possibleTypes.includes(obj.__typename)
}
- const LogicFunctionExecutionResult_possibleTypes: string[] = ['LogicFunctionExecutionResult']
- export const isLogicFunctionExecutionResult = (obj?: { __typename?: any } | null): obj is LogicFunctionExecutionResult => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isLogicFunctionExecutionResult"')
- return LogicFunctionExecutionResult_possibleTypes.includes(obj.__typename)
+ const AdminPanelWorkerQueueHealth_possibleTypes: string[] = ['AdminPanelWorkerQueueHealth']
+ export const isAdminPanelWorkerQueueHealth = (obj?: { __typename?: any } | null): obj is AdminPanelWorkerQueueHealth => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAdminPanelWorkerQueueHealth"')
+ return AdminPanelWorkerQueueHealth_possibleTypes.includes(obj.__typename)
}
- const LogicFunctionLogs_possibleTypes: string[] = ['LogicFunctionLogs']
- export const isLogicFunctionLogs = (obj?: { __typename?: any } | null): obj is LogicFunctionLogs => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isLogicFunctionLogs"')
- return LogicFunctionLogs_possibleTypes.includes(obj.__typename)
+ const AdminPanelHealthServiceData_possibleTypes: string[] = ['AdminPanelHealthServiceData']
+ export const isAdminPanelHealthServiceData = (obj?: { __typename?: any } | null): obj is AdminPanelHealthServiceData => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAdminPanelHealthServiceData"')
+ return AdminPanelHealthServiceData_possibleTypes.includes(obj.__typename)
}
- const ToolIndexEntry_possibleTypes: string[] = ['ToolIndexEntry']
- export const isToolIndexEntry = (obj?: { __typename?: any } | null): obj is ToolIndexEntry => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isToolIndexEntry"')
- return ToolIndexEntry_possibleTypes.includes(obj.__typename)
+ const ModelsDevModelSuggestion_possibleTypes: string[] = ['ModelsDevModelSuggestion']
+ export const isModelsDevModelSuggestion = (obj?: { __typename?: any } | null): obj is ModelsDevModelSuggestion => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isModelsDevModelSuggestion"')
+ return ModelsDevModelSuggestion_possibleTypes.includes(obj.__typename)
}
- const AgentMessagePart_possibleTypes: string[] = ['AgentMessagePart']
- export const isAgentMessagePart = (obj?: { __typename?: any } | null): obj is AgentMessagePart => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentMessagePart"')
- return AgentMessagePart_possibleTypes.includes(obj.__typename)
+ const ModelsDevProviderSuggestion_possibleTypes: string[] = ['ModelsDevProviderSuggestion']
+ export const isModelsDevProviderSuggestion = (obj?: { __typename?: any } | null): obj is ModelsDevProviderSuggestion => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isModelsDevProviderSuggestion"')
+ return ModelsDevProviderSuggestion_possibleTypes.includes(obj.__typename)
}
- const Skill_possibleTypes: string[] = ['Skill']
- export const isSkill = (obj?: { __typename?: any } | null): obj is Skill => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSkill"')
- return Skill_possibleTypes.includes(obj.__typename)
+ const QueueMetricsDataPoint_possibleTypes: string[] = ['QueueMetricsDataPoint']
+ export const isQueueMetricsDataPoint = (obj?: { __typename?: any } | null): obj is QueueMetricsDataPoint => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsDataPoint"')
+ return QueueMetricsDataPoint_possibleTypes.includes(obj.__typename)
}
- const ApplicationTokenPair_possibleTypes: string[] = ['ApplicationTokenPair']
- export const isApplicationTokenPair = (obj?: { __typename?: any } | null): obj is ApplicationTokenPair => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationTokenPair"')
- return ApplicationTokenPair_possibleTypes.includes(obj.__typename)
+ const QueueMetricsSeries_possibleTypes: string[] = ['QueueMetricsSeries']
+ export const isQueueMetricsSeries = (obj?: { __typename?: any } | null): obj is QueueMetricsSeries => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsSeries"')
+ return QueueMetricsSeries_possibleTypes.includes(obj.__typename)
}
- const FrontComponent_possibleTypes: string[] = ['FrontComponent']
- export const isFrontComponent = (obj?: { __typename?: any } | null): obj is FrontComponent => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isFrontComponent"')
- return FrontComponent_possibleTypes.includes(obj.__typename)
+ const WorkerQueueMetrics_possibleTypes: string[] = ['WorkerQueueMetrics']
+ export const isWorkerQueueMetrics = (obj?: { __typename?: any } | null): obj is WorkerQueueMetrics => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkerQueueMetrics"')
+ return WorkerQueueMetrics_possibleTypes.includes(obj.__typename)
}
- const CommandMenuItem_possibleTypes: string[] = ['CommandMenuItem']
- export const isCommandMenuItem = (obj?: { __typename?: any } | null): obj is CommandMenuItem => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCommandMenuItem"')
- return CommandMenuItem_possibleTypes.includes(obj.__typename)
+ const QueueMetricsData_possibleTypes: string[] = ['QueueMetricsData']
+ export const isQueueMetricsData = (obj?: { __typename?: any } | null): obj is QueueMetricsData => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsData"')
+ return QueueMetricsData_possibleTypes.includes(obj.__typename)
}
- const AgentChatThread_possibleTypes: string[] = ['AgentChatThread']
- export const isAgentChatThread = (obj?: { __typename?: any } | null): obj is AgentChatThread => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThread"')
- return AgentChatThread_possibleTypes.includes(obj.__typename)
+ const VersionDistributionEntry_possibleTypes: string[] = ['VersionDistributionEntry']
+ export const isVersionDistributionEntry = (obj?: { __typename?: any } | null): obj is VersionDistributionEntry => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isVersionDistributionEntry"')
+ return VersionDistributionEntry_possibleTypes.includes(obj.__typename)
}
- const AgentMessage_possibleTypes: string[] = ['AgentMessage']
- export const isAgentMessage = (obj?: { __typename?: any } | null): obj is AgentMessage => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentMessage"')
- return AgentMessage_possibleTypes.includes(obj.__typename)
+ const ApplicationRegistrationStats_possibleTypes: string[] = ['ApplicationRegistrationStats']
+ export const isApplicationRegistrationStats = (obj?: { __typename?: any } | null): obj is ApplicationRegistrationStats => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationRegistrationStats"')
+ return ApplicationRegistrationStats_possibleTypes.includes(obj.__typename)
}
- const AISystemPromptSection_possibleTypes: string[] = ['AISystemPromptSection']
- export const isAISystemPromptSection = (obj?: { __typename?: any } | null): obj is AISystemPromptSection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAISystemPromptSection"')
- return AISystemPromptSection_possibleTypes.includes(obj.__typename)
+ const CreateApplicationRegistration_possibleTypes: string[] = ['CreateApplicationRegistration']
+ export const isCreateApplicationRegistration = (obj?: { __typename?: any } | null): obj is CreateApplicationRegistration => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCreateApplicationRegistration"')
+ return CreateApplicationRegistration_possibleTypes.includes(obj.__typename)
}
- const AISystemPromptPreview_possibleTypes: string[] = ['AISystemPromptPreview']
- export const isAISystemPromptPreview = (obj?: { __typename?: any } | null): obj is AISystemPromptPreview => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAISystemPromptPreview"')
- return AISystemPromptPreview_possibleTypes.includes(obj.__typename)
+ const PublicApplicationRegistration_possibleTypes: string[] = ['PublicApplicationRegistration']
+ export const isPublicApplicationRegistration = (obj?: { __typename?: any } | null): obj is PublicApplicationRegistration => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPublicApplicationRegistration"')
+ return PublicApplicationRegistration_possibleTypes.includes(obj.__typename)
}
- const AgentChatThreadEdge_possibleTypes: string[] = ['AgentChatThreadEdge']
- export const isAgentChatThreadEdge = (obj?: { __typename?: any } | null): obj is AgentChatThreadEdge => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThreadEdge"')
- return AgentChatThreadEdge_possibleTypes.includes(obj.__typename)
+ const RotateClientSecret_possibleTypes: string[] = ['RotateClientSecret']
+ export const isRotateClientSecret = (obj?: { __typename?: any } | null): obj is RotateClientSecret => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRotateClientSecret"')
+ return RotateClientSecret_possibleTypes.includes(obj.__typename)
}
- const AgentChatThreadConnection_possibleTypes: string[] = ['AgentChatThreadConnection']
- export const isAgentChatThreadConnection = (obj?: { __typename?: any } | null): obj is AgentChatThreadConnection => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThreadConnection"')
- return AgentChatThreadConnection_possibleTypes.includes(obj.__typename)
+ const ResendEmailVerificationToken_possibleTypes: string[] = ['ResendEmailVerificationToken']
+ export const isResendEmailVerificationToken = (obj?: { __typename?: any } | null): obj is ResendEmailVerificationToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isResendEmailVerificationToken"')
+ return ResendEmailVerificationToken_possibleTypes.includes(obj.__typename)
}
- const AgentTurnEvaluation_possibleTypes: string[] = ['AgentTurnEvaluation']
- export const isAgentTurnEvaluation = (obj?: { __typename?: any } | null): obj is AgentTurnEvaluation => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurnEvaluation"')
- return AgentTurnEvaluation_possibleTypes.includes(obj.__typename)
+ const DeleteSso_possibleTypes: string[] = ['DeleteSso']
+ export const isDeleteSso = (obj?: { __typename?: any } | null): obj is DeleteSso => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteSso"')
+ return DeleteSso_possibleTypes.includes(obj.__typename)
}
- const AgentTurn_possibleTypes: string[] = ['AgentTurn']
- export const isAgentTurn = (obj?: { __typename?: any } | null): obj is AgentTurn => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurn"')
- return AgentTurn_possibleTypes.includes(obj.__typename)
+ const EditSso_possibleTypes: string[] = ['EditSso']
+ export const isEditSso = (obj?: { __typename?: any } | null): obj is EditSso => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isEditSso"')
+ return EditSso_possibleTypes.includes(obj.__typename)
}
- const CalendarChannel_possibleTypes: string[] = ['CalendarChannel']
- export const isCalendarChannel = (obj?: { __typename?: any } | null): obj is CalendarChannel => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCalendarChannel"')
- return CalendarChannel_possibleTypes.includes(obj.__typename)
+ const WorkspaceNameAndId_possibleTypes: string[] = ['WorkspaceNameAndId']
+ export const isWorkspaceNameAndId = (obj?: { __typename?: any } | null): obj is WorkspaceNameAndId => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceNameAndId"')
+ return WorkspaceNameAndId_possibleTypes.includes(obj.__typename)
}
- const ConnectedAccountDTO_possibleTypes: string[] = ['ConnectedAccountDTO']
- export const isConnectedAccountDTO = (obj?: { __typename?: any } | null): obj is ConnectedAccountDTO => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isConnectedAccountDTO"')
- return ConnectedAccountDTO_possibleTypes.includes(obj.__typename)
+ const FindAvailableSSOIDP_possibleTypes: string[] = ['FindAvailableSSOIDP']
+ export const isFindAvailableSSOIDP = (obj?: { __typename?: any } | null): obj is FindAvailableSSOIDP => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isFindAvailableSSOIDP"')
+ return FindAvailableSSOIDP_possibleTypes.includes(obj.__typename)
}
- const MessageChannel_possibleTypes: string[] = ['MessageChannel']
- export const isMessageChannel = (obj?: { __typename?: any } | null): obj is MessageChannel => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMessageChannel"')
- return MessageChannel_possibleTypes.includes(obj.__typename)
+ const SetupSso_possibleTypes: string[] = ['SetupSso']
+ export const isSetupSso = (obj?: { __typename?: any } | null): obj is SetupSso => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSetupSso"')
+ return SetupSso_possibleTypes.includes(obj.__typename)
}
- const MessageFolder_possibleTypes: string[] = ['MessageFolder']
- export const isMessageFolder = (obj?: { __typename?: any } | null): obj is MessageFolder => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMessageFolder"')
- return MessageFolder_possibleTypes.includes(obj.__typename)
+ const SSOConnection_possibleTypes: string[] = ['SSOConnection']
+ export const isSSOConnection = (obj?: { __typename?: any } | null): obj is SSOConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSSOConnection"')
+ return SSOConnection_possibleTypes.includes(obj.__typename)
}
- const CollectionHash_possibleTypes: string[] = ['CollectionHash']
- export const isCollectionHash = (obj?: { __typename?: any } | null): obj is CollectionHash => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCollectionHash"')
- return CollectionHash_possibleTypes.includes(obj.__typename)
+ const AvailableWorkspace_possibleTypes: string[] = ['AvailableWorkspace']
+ export const isAvailableWorkspace = (obj?: { __typename?: any } | null): obj is AvailableWorkspace => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspace"')
+ return AvailableWorkspace_possibleTypes.includes(obj.__typename)
}
- const MinimalObjectMetadata_possibleTypes: string[] = ['MinimalObjectMetadata']
- export const isMinimalObjectMetadata = (obj?: { __typename?: any } | null): obj is MinimalObjectMetadata => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalObjectMetadata"')
- return MinimalObjectMetadata_possibleTypes.includes(obj.__typename)
+ const AvailableWorkspaces_possibleTypes: string[] = ['AvailableWorkspaces']
+ export const isAvailableWorkspaces = (obj?: { __typename?: any } | null): obj is AvailableWorkspaces => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspaces"')
+ return AvailableWorkspaces_possibleTypes.includes(obj.__typename)
}
- const MinimalView_possibleTypes: string[] = ['MinimalView']
- export const isMinimalView = (obj?: { __typename?: any } | null): obj is MinimalView => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalView"')
- return MinimalView_possibleTypes.includes(obj.__typename)
+ const DeletedWorkspaceMember_possibleTypes: string[] = ['DeletedWorkspaceMember']
+ export const isDeletedWorkspaceMember = (obj?: { __typename?: any } | null): obj is DeletedWorkspaceMember => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDeletedWorkspaceMember"')
+ return DeletedWorkspaceMember_possibleTypes.includes(obj.__typename)
}
- const MinimalMetadata_possibleTypes: string[] = ['MinimalMetadata']
- export const isMinimalMetadata = (obj?: { __typename?: any } | null): obj is MinimalMetadata => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalMetadata"')
- return MinimalMetadata_possibleTypes.includes(obj.__typename)
+ const BillingEntitlement_possibleTypes: string[] = ['BillingEntitlement']
+ export const isBillingEntitlement = (obj?: { __typename?: any } | null): obj is BillingEntitlement => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isBillingEntitlement"')
+ return BillingEntitlement_possibleTypes.includes(obj.__typename)
}
- const Webhook_possibleTypes: string[] = ['Webhook']
- export const isWebhook = (obj?: { __typename?: any } | null): obj is Webhook => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWebhook"')
- return Webhook_possibleTypes.includes(obj.__typename)
+ const DomainRecord_possibleTypes: string[] = ['DomainRecord']
+ export const isDomainRecord = (obj?: { __typename?: any } | null): obj is DomainRecord => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDomainRecord"')
+ return DomainRecord_possibleTypes.includes(obj.__typename)
}
- const BillingTrialPeriod_possibleTypes: string[] = ['BillingTrialPeriod']
- export const isBillingTrialPeriod = (obj?: { __typename?: any } | null): obj is BillingTrialPeriod => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isBillingTrialPeriod"')
- return BillingTrialPeriod_possibleTypes.includes(obj.__typename)
+ const DomainValidRecords_possibleTypes: string[] = ['DomainValidRecords']
+ export const isDomainValidRecords = (obj?: { __typename?: any } | null): obj is DomainValidRecords => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDomainValidRecords"')
+ return DomainValidRecords_possibleTypes.includes(obj.__typename)
}
- const NativeModelCapabilities_possibleTypes: string[] = ['NativeModelCapabilities']
- export const isNativeModelCapabilities = (obj?: { __typename?: any } | null): obj is NativeModelCapabilities => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isNativeModelCapabilities"')
- return NativeModelCapabilities_possibleTypes.includes(obj.__typename)
+ const IndexEdge_possibleTypes: string[] = ['IndexEdge']
+ export const isIndexEdge = (obj?: { __typename?: any } | null): obj is IndexEdge => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isIndexEdge"')
+ return IndexEdge_possibleTypes.includes(obj.__typename)
}
- const ClientAIModelConfig_possibleTypes: string[] = ['ClientAIModelConfig']
- export const isClientAIModelConfig = (obj?: { __typename?: any } | null): obj is ClientAIModelConfig => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isClientAIModelConfig"')
- return ClientAIModelConfig_possibleTypes.includes(obj.__typename)
+ const PageInfo_possibleTypes: string[] = ['PageInfo']
+ export const isPageInfo = (obj?: { __typename?: any } | null): obj is PageInfo => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPageInfo"')
+ return PageInfo_possibleTypes.includes(obj.__typename)
}
- const AdminAIModelConfig_possibleTypes: string[] = ['AdminAIModelConfig']
- export const isAdminAIModelConfig = (obj?: { __typename?: any } | null): obj is AdminAIModelConfig => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAdminAIModelConfig"')
- return AdminAIModelConfig_possibleTypes.includes(obj.__typename)
+ const IndexConnection_possibleTypes: string[] = ['IndexConnection']
+ export const isIndexConnection = (obj?: { __typename?: any } | null): obj is IndexConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isIndexConnection"')
+ return IndexConnection_possibleTypes.includes(obj.__typename)
}
- const AdminAIModels_possibleTypes: string[] = ['AdminAIModels']
- export const isAdminAIModels = (obj?: { __typename?: any } | null): obj is AdminAIModels => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAdminAIModels"')
- return AdminAIModels_possibleTypes.includes(obj.__typename)
+ const IndexFieldEdge_possibleTypes: string[] = ['IndexFieldEdge']
+ export const isIndexFieldEdge = (obj?: { __typename?: any } | null): obj is IndexFieldEdge => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isIndexFieldEdge"')
+ return IndexFieldEdge_possibleTypes.includes(obj.__typename)
}
- const Billing_possibleTypes: string[] = ['Billing']
- export const isBilling = (obj?: { __typename?: any } | null): obj is Billing => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isBilling"')
- return Billing_possibleTypes.includes(obj.__typename)
+ const IndexIndexFieldMetadatasConnection_possibleTypes: string[] = ['IndexIndexFieldMetadatasConnection']
+ export const isIndexIndexFieldMetadatasConnection = (obj?: { __typename?: any } | null): obj is IndexIndexFieldMetadatasConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isIndexIndexFieldMetadatasConnection"')
+ return IndexIndexFieldMetadatasConnection_possibleTypes.includes(obj.__typename)
}
- const Support_possibleTypes: string[] = ['Support']
- export const isSupport = (obj?: { __typename?: any } | null): obj is Support => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSupport"')
- return Support_possibleTypes.includes(obj.__typename)
+ const ObjectEdge_possibleTypes: string[] = ['ObjectEdge']
+ export const isObjectEdge = (obj?: { __typename?: any } | null): obj is ObjectEdge => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectEdge"')
+ return ObjectEdge_possibleTypes.includes(obj.__typename)
}
- const Sentry_possibleTypes: string[] = ['Sentry']
- export const isSentry = (obj?: { __typename?: any } | null): obj is Sentry => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSentry"')
- return Sentry_possibleTypes.includes(obj.__typename)
+ const IndexObjectMetadataConnection_possibleTypes: string[] = ['IndexObjectMetadataConnection']
+ export const isIndexObjectMetadataConnection = (obj?: { __typename?: any } | null): obj is IndexObjectMetadataConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isIndexObjectMetadataConnection"')
+ return IndexObjectMetadataConnection_possibleTypes.includes(obj.__typename)
}
- const Captcha_possibleTypes: string[] = ['Captcha']
- export const isCaptcha = (obj?: { __typename?: any } | null): obj is Captcha => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCaptcha"')
- return Captcha_possibleTypes.includes(obj.__typename)
+ const ObjectRecordCount_possibleTypes: string[] = ['ObjectRecordCount']
+ export const isObjectRecordCount = (obj?: { __typename?: any } | null): obj is ObjectRecordCount => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectRecordCount"')
+ return ObjectRecordCount_possibleTypes.includes(obj.__typename)
}
- const ApiConfig_possibleTypes: string[] = ['ApiConfig']
- export const isApiConfig = (obj?: { __typename?: any } | null): obj is ApiConfig => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isApiConfig"')
- return ApiConfig_possibleTypes.includes(obj.__typename)
+ const ObjectConnection_possibleTypes: string[] = ['ObjectConnection']
+ export const isObjectConnection = (obj?: { __typename?: any } | null): obj is ObjectConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectConnection"')
+ return ObjectConnection_possibleTypes.includes(obj.__typename)
}
- const PublicFeatureFlagMetadata_possibleTypes: string[] = ['PublicFeatureFlagMetadata']
- export const isPublicFeatureFlagMetadata = (obj?: { __typename?: any } | null): obj is PublicFeatureFlagMetadata => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isPublicFeatureFlagMetadata"')
- return PublicFeatureFlagMetadata_possibleTypes.includes(obj.__typename)
+ const ObjectIndexMetadatasConnection_possibleTypes: string[] = ['ObjectIndexMetadatasConnection']
+ export const isObjectIndexMetadatasConnection = (obj?: { __typename?: any } | null): obj is ObjectIndexMetadatasConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectIndexMetadatasConnection"')
+ return ObjectIndexMetadatasConnection_possibleTypes.includes(obj.__typename)
}
- const PublicFeatureFlag_possibleTypes: string[] = ['PublicFeatureFlag']
- export const isPublicFeatureFlag = (obj?: { __typename?: any } | null): obj is PublicFeatureFlag => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isPublicFeatureFlag"')
- return PublicFeatureFlag_possibleTypes.includes(obj.__typename)
+ const FieldEdge_possibleTypes: string[] = ['FieldEdge']
+ export const isFieldEdge = (obj?: { __typename?: any } | null): obj is FieldEdge => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isFieldEdge"')
+ return FieldEdge_possibleTypes.includes(obj.__typename)
}
- const ClientConfig_possibleTypes: string[] = ['ClientConfig']
- export const isClientConfig = (obj?: { __typename?: any } | null): obj is ClientConfig => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isClientConfig"')
- return ClientConfig_possibleTypes.includes(obj.__typename)
+ const ObjectFieldsConnection_possibleTypes: string[] = ['ObjectFieldsConnection']
+ export const isObjectFieldsConnection = (obj?: { __typename?: any } | null): obj is ObjectFieldsConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectFieldsConnection"')
+ return ObjectFieldsConnection_possibleTypes.includes(obj.__typename)
}
- const ConfigVariable_possibleTypes: string[] = ['ConfigVariable']
- export const isConfigVariable = (obj?: { __typename?: any } | null): obj is ConfigVariable => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariable"')
- return ConfigVariable_possibleTypes.includes(obj.__typename)
+ const UpsertRowLevelPermissionPredicatesResult_possibleTypes: string[] = ['UpsertRowLevelPermissionPredicatesResult']
+ export const isUpsertRowLevelPermissionPredicatesResult = (obj?: { __typename?: any } | null): obj is UpsertRowLevelPermissionPredicatesResult => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUpsertRowLevelPermissionPredicatesResult"')
+ return UpsertRowLevelPermissionPredicatesResult_possibleTypes.includes(obj.__typename)
}
- const ConfigVariablesGroupData_possibleTypes: string[] = ['ConfigVariablesGroupData']
- export const isConfigVariablesGroupData = (obj?: { __typename?: any } | null): obj is ConfigVariablesGroupData => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariablesGroupData"')
- return ConfigVariablesGroupData_possibleTypes.includes(obj.__typename)
+ const Relation_possibleTypes: string[] = ['Relation']
+ export const isRelation = (obj?: { __typename?: any } | null): obj is Relation => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRelation"')
+ return Relation_possibleTypes.includes(obj.__typename)
}
- const ConfigVariables_possibleTypes: string[] = ['ConfigVariables']
- export const isConfigVariables = (obj?: { __typename?: any } | null): obj is ConfigVariables => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isConfigVariables"')
- return ConfigVariables_possibleTypes.includes(obj.__typename)
+ const FieldConnection_possibleTypes: string[] = ['FieldConnection']
+ export const isFieldConnection = (obj?: { __typename?: any } | null): obj is FieldConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isFieldConnection"')
+ return FieldConnection_possibleTypes.includes(obj.__typename)
}
- const JobOperationResult_possibleTypes: string[] = ['JobOperationResult']
- export const isJobOperationResult = (obj?: { __typename?: any } | null): obj is JobOperationResult => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isJobOperationResult"')
- return JobOperationResult_possibleTypes.includes(obj.__typename)
+ const DeleteTwoFactorAuthenticationMethod_possibleTypes: string[] = ['DeleteTwoFactorAuthenticationMethod']
+ export const isDeleteTwoFactorAuthenticationMethod = (obj?: { __typename?: any } | null): obj is DeleteTwoFactorAuthenticationMethod => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteTwoFactorAuthenticationMethod"')
+ return DeleteTwoFactorAuthenticationMethod_possibleTypes.includes(obj.__typename)
}
- const DeleteJobsResponse_possibleTypes: string[] = ['DeleteJobsResponse']
- export const isDeleteJobsResponse = (obj?: { __typename?: any } | null): obj is DeleteJobsResponse => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isDeleteJobsResponse"')
- return DeleteJobsResponse_possibleTypes.includes(obj.__typename)
+ const InitiateTwoFactorAuthenticationProvisioning_possibleTypes: string[] = ['InitiateTwoFactorAuthenticationProvisioning']
+ export const isInitiateTwoFactorAuthenticationProvisioning = (obj?: { __typename?: any } | null): obj is InitiateTwoFactorAuthenticationProvisioning => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isInitiateTwoFactorAuthenticationProvisioning"')
+ return InitiateTwoFactorAuthenticationProvisioning_possibleTypes.includes(obj.__typename)
}
- const QueueJob_possibleTypes: string[] = ['QueueJob']
- export const isQueueJob = (obj?: { __typename?: any } | null): obj is QueueJob => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueJob"')
- return QueueJob_possibleTypes.includes(obj.__typename)
+ const VerifyTwoFactorAuthenticationMethod_possibleTypes: string[] = ['VerifyTwoFactorAuthenticationMethod']
+ export const isVerifyTwoFactorAuthenticationMethod = (obj?: { __typename?: any } | null): obj is VerifyTwoFactorAuthenticationMethod => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isVerifyTwoFactorAuthenticationMethod"')
+ return VerifyTwoFactorAuthenticationMethod_possibleTypes.includes(obj.__typename)
}
- const QueueRetentionConfig_possibleTypes: string[] = ['QueueRetentionConfig']
- export const isQueueRetentionConfig = (obj?: { __typename?: any } | null): obj is QueueRetentionConfig => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueRetentionConfig"')
- return QueueRetentionConfig_possibleTypes.includes(obj.__typename)
+ const AuthorizeApp_possibleTypes: string[] = ['AuthorizeApp']
+ export const isAuthorizeApp = (obj?: { __typename?: any } | null): obj is AuthorizeApp => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthorizeApp"')
+ return AuthorizeApp_possibleTypes.includes(obj.__typename)
}
- const QueueJobsResponse_possibleTypes: string[] = ['QueueJobsResponse']
- export const isQueueJobsResponse = (obj?: { __typename?: any } | null): obj is QueueJobsResponse => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueJobsResponse"')
- return QueueJobsResponse_possibleTypes.includes(obj.__typename)
+ const AuthToken_possibleTypes: string[] = ['AuthToken']
+ export const isAuthToken = (obj?: { __typename?: any } | null): obj is AuthToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthToken"')
+ return AuthToken_possibleTypes.includes(obj.__typename)
}
- const RetryJobsResponse_possibleTypes: string[] = ['RetryJobsResponse']
- export const isRetryJobsResponse = (obj?: { __typename?: any } | null): obj is RetryJobsResponse => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isRetryJobsResponse"')
- return RetryJobsResponse_possibleTypes.includes(obj.__typename)
+ const AuthTokenPair_possibleTypes: string[] = ['AuthTokenPair']
+ export const isAuthTokenPair = (obj?: { __typename?: any } | null): obj is AuthTokenPair => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthTokenPair"')
+ return AuthTokenPair_possibleTypes.includes(obj.__typename)
}
- const SystemHealthService_possibleTypes: string[] = ['SystemHealthService']
- export const isSystemHealthService = (obj?: { __typename?: any } | null): obj is SystemHealthService => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSystemHealthService"')
- return SystemHealthService_possibleTypes.includes(obj.__typename)
+ const AvailableWorkspacesAndAccessTokens_possibleTypes: string[] = ['AvailableWorkspacesAndAccessTokens']
+ export const isAvailableWorkspacesAndAccessTokens = (obj?: { __typename?: any } | null): obj is AvailableWorkspacesAndAccessTokens => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAvailableWorkspacesAndAccessTokens"')
+ return AvailableWorkspacesAndAccessTokens_possibleTypes.includes(obj.__typename)
}
- const SystemHealth_possibleTypes: string[] = ['SystemHealth']
- export const isSystemHealth = (obj?: { __typename?: any } | null): obj is SystemHealth => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isSystemHealth"')
- return SystemHealth_possibleTypes.includes(obj.__typename)
+ const EmailPasswordResetLink_possibleTypes: string[] = ['EmailPasswordResetLink']
+ export const isEmailPasswordResetLink = (obj?: { __typename?: any } | null): obj is EmailPasswordResetLink => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isEmailPasswordResetLink"')
+ return EmailPasswordResetLink_possibleTypes.includes(obj.__typename)
}
- const UserInfo_possibleTypes: string[] = ['UserInfo']
- export const isUserInfo = (obj?: { __typename?: any } | null): obj is UserInfo => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUserInfo"')
- return UserInfo_possibleTypes.includes(obj.__typename)
+ const GetAuthorizationUrlForSSO_possibleTypes: string[] = ['GetAuthorizationUrlForSSO']
+ export const isGetAuthorizationUrlForSSO = (obj?: { __typename?: any } | null): obj is GetAuthorizationUrlForSSO => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isGetAuthorizationUrlForSSO"')
+ return GetAuthorizationUrlForSSO_possibleTypes.includes(obj.__typename)
}
- const WorkspaceInfo_possibleTypes: string[] = ['WorkspaceInfo']
- export const isWorkspaceInfo = (obj?: { __typename?: any } | null): obj is WorkspaceInfo => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceInfo"')
- return WorkspaceInfo_possibleTypes.includes(obj.__typename)
+ const InvalidatePassword_possibleTypes: string[] = ['InvalidatePassword']
+ export const isInvalidatePassword = (obj?: { __typename?: any } | null): obj is InvalidatePassword => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isInvalidatePassword"')
+ return InvalidatePassword_possibleTypes.includes(obj.__typename)
}
- const UserLookup_possibleTypes: string[] = ['UserLookup']
- export const isUserLookup = (obj?: { __typename?: any } | null): obj is UserLookup => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUserLookup"')
- return UserLookup_possibleTypes.includes(obj.__typename)
+ const WorkspaceUrlsAndId_possibleTypes: string[] = ['WorkspaceUrlsAndId']
+ export const isWorkspaceUrlsAndId = (obj?: { __typename?: any } | null): obj is WorkspaceUrlsAndId => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceUrlsAndId"')
+ return WorkspaceUrlsAndId_possibleTypes.includes(obj.__typename)
}
- const VersionInfo_possibleTypes: string[] = ['VersionInfo']
- export const isVersionInfo = (obj?: { __typename?: any } | null): obj is VersionInfo => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isVersionInfo"')
- return VersionInfo_possibleTypes.includes(obj.__typename)
+ const SignUp_possibleTypes: string[] = ['SignUp']
+ export const isSignUp = (obj?: { __typename?: any } | null): obj is SignUp => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSignUp"')
+ return SignUp_possibleTypes.includes(obj.__typename)
}
- const AdminPanelWorkerQueueHealth_possibleTypes: string[] = ['AdminPanelWorkerQueueHealth']
- export const isAdminPanelWorkerQueueHealth = (obj?: { __typename?: any } | null): obj is AdminPanelWorkerQueueHealth => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAdminPanelWorkerQueueHealth"')
- return AdminPanelWorkerQueueHealth_possibleTypes.includes(obj.__typename)
+ const TransientToken_possibleTypes: string[] = ['TransientToken']
+ export const isTransientToken = (obj?: { __typename?: any } | null): obj is TransientToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTransientToken"')
+ return TransientToken_possibleTypes.includes(obj.__typename)
}
- const AdminPanelHealthServiceData_possibleTypes: string[] = ['AdminPanelHealthServiceData']
- export const isAdminPanelHealthServiceData = (obj?: { __typename?: any } | null): obj is AdminPanelHealthServiceData => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAdminPanelHealthServiceData"')
- return AdminPanelHealthServiceData_possibleTypes.includes(obj.__typename)
+ const ValidatePasswordResetToken_possibleTypes: string[] = ['ValidatePasswordResetToken']
+ export const isValidatePasswordResetToken = (obj?: { __typename?: any } | null): obj is ValidatePasswordResetToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isValidatePasswordResetToken"')
+ return ValidatePasswordResetToken_possibleTypes.includes(obj.__typename)
}
- const ModelsDevModelSuggestion_possibleTypes: string[] = ['ModelsDevModelSuggestion']
- export const isModelsDevModelSuggestion = (obj?: { __typename?: any } | null): obj is ModelsDevModelSuggestion => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isModelsDevModelSuggestion"')
- return ModelsDevModelSuggestion_possibleTypes.includes(obj.__typename)
+ const VerifyEmailAndGetLoginToken_possibleTypes: string[] = ['VerifyEmailAndGetLoginToken']
+ export const isVerifyEmailAndGetLoginToken = (obj?: { __typename?: any } | null): obj is VerifyEmailAndGetLoginToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isVerifyEmailAndGetLoginToken"')
+ return VerifyEmailAndGetLoginToken_possibleTypes.includes(obj.__typename)
}
- const ModelsDevProviderSuggestion_possibleTypes: string[] = ['ModelsDevProviderSuggestion']
- export const isModelsDevProviderSuggestion = (obj?: { __typename?: any } | null): obj is ModelsDevProviderSuggestion => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isModelsDevProviderSuggestion"')
- return ModelsDevProviderSuggestion_possibleTypes.includes(obj.__typename)
+ const ApiKeyToken_possibleTypes: string[] = ['ApiKeyToken']
+ export const isApiKeyToken = (obj?: { __typename?: any } | null): obj is ApiKeyToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApiKeyToken"')
+ return ApiKeyToken_possibleTypes.includes(obj.__typename)
}
- const QueueMetricsDataPoint_possibleTypes: string[] = ['QueueMetricsDataPoint']
- export const isQueueMetricsDataPoint = (obj?: { __typename?: any } | null): obj is QueueMetricsDataPoint => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsDataPoint"')
- return QueueMetricsDataPoint_possibleTypes.includes(obj.__typename)
+ const AuthTokens_possibleTypes: string[] = ['AuthTokens']
+ export const isAuthTokens = (obj?: { __typename?: any } | null): obj is AuthTokens => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAuthTokens"')
+ return AuthTokens_possibleTypes.includes(obj.__typename)
}
- const QueueMetricsSeries_possibleTypes: string[] = ['QueueMetricsSeries']
- export const isQueueMetricsSeries = (obj?: { __typename?: any } | null): obj is QueueMetricsSeries => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsSeries"')
- return QueueMetricsSeries_possibleTypes.includes(obj.__typename)
+ const LoginToken_possibleTypes: string[] = ['LoginToken']
+ export const isLoginToken = (obj?: { __typename?: any } | null): obj is LoginToken => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isLoginToken"')
+ return LoginToken_possibleTypes.includes(obj.__typename)
}
- const WorkerQueueMetrics_possibleTypes: string[] = ['WorkerQueueMetrics']
- export const isWorkerQueueMetrics = (obj?: { __typename?: any } | null): obj is WorkerQueueMetrics => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isWorkerQueueMetrics"')
- return WorkerQueueMetrics_possibleTypes.includes(obj.__typename)
+ const CheckUserExist_possibleTypes: string[] = ['CheckUserExist']
+ export const isCheckUserExist = (obj?: { __typename?: any } | null): obj is CheckUserExist => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCheckUserExist"')
+ return CheckUserExist_possibleTypes.includes(obj.__typename)
}
- const QueueMetricsData_possibleTypes: string[] = ['QueueMetricsData']
- export const isQueueMetricsData = (obj?: { __typename?: any } | null): obj is QueueMetricsData => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isQueueMetricsData"')
- return QueueMetricsData_possibleTypes.includes(obj.__typename)
+ const WorkspaceInviteHashValid_possibleTypes: string[] = ['WorkspaceInviteHashValid']
+ export const isWorkspaceInviteHashValid = (obj?: { __typename?: any } | null): obj is WorkspaceInviteHashValid => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceInviteHashValid"')
+ return WorkspaceInviteHashValid_possibleTypes.includes(obj.__typename)
}
@@ -8415,6 +8225,14 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const ApplicationTokenPair_possibleTypes: string[] = ['ApplicationTokenPair']
+ export const isApplicationTokenPair = (obj?: { __typename?: any } | null): obj is ApplicationTokenPair => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationTokenPair"')
+ return ApplicationTokenPair_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const File_possibleTypes: string[] = ['File']
export const isFile = (obj?: { __typename?: any } | null): obj is File => {
if (!obj?.__typename) throw new Error('__typename is missing in "isFile"')
@@ -8487,38 +8305,6 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const UsageBreakdownItem_possibleTypes: string[] = ['UsageBreakdownItem']
- export const isUsageBreakdownItem = (obj?: { __typename?: any } | null): obj is UsageBreakdownItem => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUsageBreakdownItem"')
- return UsageBreakdownItem_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const UsageTimeSeries_possibleTypes: string[] = ['UsageTimeSeries']
- export const isUsageTimeSeries = (obj?: { __typename?: any } | null): obj is UsageTimeSeries => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUsageTimeSeries"')
- return UsageTimeSeries_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const UsageUserDaily_possibleTypes: string[] = ['UsageUserDaily']
- export const isUsageUserDaily = (obj?: { __typename?: any } | null): obj is UsageUserDaily => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUsageUserDaily"')
- return UsageUserDaily_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const UsageAnalytics_possibleTypes: string[] = ['UsageAnalytics']
- export const isUsageAnalytics = (obj?: { __typename?: any } | null): obj is UsageAnalytics => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isUsageAnalytics"')
- return UsageAnalytics_possibleTypes.includes(obj.__typename)
- }
-
-
-
const PublicDomain_possibleTypes: string[] = ['PublicDomain']
export const isPublicDomain = (obj?: { __typename?: any } | null): obj is PublicDomain => {
if (!obj?.__typename) throw new Error('__typename is missing in "isPublicDomain"')
@@ -8607,6 +8393,78 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const UsageBreakdownItem_possibleTypes: string[] = ['UsageBreakdownItem']
+ export const isUsageBreakdownItem = (obj?: { __typename?: any } | null): obj is UsageBreakdownItem => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUsageBreakdownItem"')
+ return UsageBreakdownItem_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const UsageTimeSeries_possibleTypes: string[] = ['UsageTimeSeries']
+ export const isUsageTimeSeries = (obj?: { __typename?: any } | null): obj is UsageTimeSeries => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUsageTimeSeries"')
+ return UsageTimeSeries_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const UsageUserDaily_possibleTypes: string[] = ['UsageUserDaily']
+ export const isUsageUserDaily = (obj?: { __typename?: any } | null): obj is UsageUserDaily => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUsageUserDaily"')
+ return UsageUserDaily_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const UsageAnalytics_possibleTypes: string[] = ['UsageAnalytics']
+ export const isUsageAnalytics = (obj?: { __typename?: any } | null): obj is UsageAnalytics => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isUsageAnalytics"')
+ return UsageAnalytics_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const LogicFunctionLogs_possibleTypes: string[] = ['LogicFunctionLogs']
+ export const isLogicFunctionLogs = (obj?: { __typename?: any } | null): obj is LogicFunctionLogs => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isLogicFunctionLogs"')
+ return LogicFunctionLogs_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const FrontComponent_possibleTypes: string[] = ['FrontComponent']
+ export const isFrontComponent = (obj?: { __typename?: any } | null): obj is FrontComponent => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isFrontComponent"')
+ return FrontComponent_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const CommandMenuItem_possibleTypes: string[] = ['CommandMenuItem']
+ export const isCommandMenuItem = (obj?: { __typename?: any } | null): obj is CommandMenuItem => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCommandMenuItem"')
+ return CommandMenuItem_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const ToolIndexEntry_possibleTypes: string[] = ['ToolIndexEntry']
+ export const isToolIndexEntry = (obj?: { __typename?: any } | null): obj is ToolIndexEntry => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isToolIndexEntry"')
+ return ToolIndexEntry_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentMessagePart_possibleTypes: string[] = ['AgentMessagePart']
+ export const isAgentMessagePart = (obj?: { __typename?: any } | null): obj is AgentMessagePart => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentMessagePart"')
+ return AgentMessagePart_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const ChannelSyncSuccess_possibleTypes: string[] = ['ChannelSyncSuccess']
export const isChannelSyncSuccess = (obj?: { __typename?: any } | null): obj is ChannelSyncSuccess => {
if (!obj?.__typename) throw new Error('__typename is missing in "isChannelSyncSuccess"')
@@ -8703,6 +8561,150 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const Skill_possibleTypes: string[] = ['Skill']
+ export const isSkill = (obj?: { __typename?: any } | null): obj is Skill => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSkill"')
+ return Skill_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentChatThread_possibleTypes: string[] = ['AgentChatThread']
+ export const isAgentChatThread = (obj?: { __typename?: any } | null): obj is AgentChatThread => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThread"')
+ return AgentChatThread_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentMessage_possibleTypes: string[] = ['AgentMessage']
+ export const isAgentMessage = (obj?: { __typename?: any } | null): obj is AgentMessage => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentMessage"')
+ return AgentMessage_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AISystemPromptSection_possibleTypes: string[] = ['AISystemPromptSection']
+ export const isAISystemPromptSection = (obj?: { __typename?: any } | null): obj is AISystemPromptSection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAISystemPromptSection"')
+ return AISystemPromptSection_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AISystemPromptPreview_possibleTypes: string[] = ['AISystemPromptPreview']
+ export const isAISystemPromptPreview = (obj?: { __typename?: any } | null): obj is AISystemPromptPreview => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAISystemPromptPreview"')
+ return AISystemPromptPreview_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentChatThreadEdge_possibleTypes: string[] = ['AgentChatThreadEdge']
+ export const isAgentChatThreadEdge = (obj?: { __typename?: any } | null): obj is AgentChatThreadEdge => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThreadEdge"')
+ return AgentChatThreadEdge_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentChatThreadConnection_possibleTypes: string[] = ['AgentChatThreadConnection']
+ export const isAgentChatThreadConnection = (obj?: { __typename?: any } | null): obj is AgentChatThreadConnection => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentChatThreadConnection"')
+ return AgentChatThreadConnection_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentTurnEvaluation_possibleTypes: string[] = ['AgentTurnEvaluation']
+ export const isAgentTurnEvaluation = (obj?: { __typename?: any } | null): obj is AgentTurnEvaluation => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurnEvaluation"')
+ return AgentTurnEvaluation_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const AgentTurn_possibleTypes: string[] = ['AgentTurn']
+ export const isAgentTurn = (obj?: { __typename?: any } | null): obj is AgentTurn => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurn"')
+ return AgentTurn_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const CalendarChannel_possibleTypes: string[] = ['CalendarChannel']
+ export const isCalendarChannel = (obj?: { __typename?: any } | null): obj is CalendarChannel => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCalendarChannel"')
+ return CalendarChannel_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const ConnectedAccountDTO_possibleTypes: string[] = ['ConnectedAccountDTO']
+ export const isConnectedAccountDTO = (obj?: { __typename?: any } | null): obj is ConnectedAccountDTO => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isConnectedAccountDTO"')
+ return ConnectedAccountDTO_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const MessageChannel_possibleTypes: string[] = ['MessageChannel']
+ export const isMessageChannel = (obj?: { __typename?: any } | null): obj is MessageChannel => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMessageChannel"')
+ return MessageChannel_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const MessageFolder_possibleTypes: string[] = ['MessageFolder']
+ export const isMessageFolder = (obj?: { __typename?: any } | null): obj is MessageFolder => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMessageFolder"')
+ return MessageFolder_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const CollectionHash_possibleTypes: string[] = ['CollectionHash']
+ export const isCollectionHash = (obj?: { __typename?: any } | null): obj is CollectionHash => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCollectionHash"')
+ return CollectionHash_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const MinimalObjectMetadata_possibleTypes: string[] = ['MinimalObjectMetadata']
+ export const isMinimalObjectMetadata = (obj?: { __typename?: any } | null): obj is MinimalObjectMetadata => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalObjectMetadata"')
+ return MinimalObjectMetadata_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const MinimalView_possibleTypes: string[] = ['MinimalView']
+ export const isMinimalView = (obj?: { __typename?: any } | null): obj is MinimalView => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalView"')
+ return MinimalView_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const MinimalMetadata_possibleTypes: string[] = ['MinimalMetadata']
+ export const isMinimalMetadata = (obj?: { __typename?: any } | null): obj is MinimalMetadata => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMinimalMetadata"')
+ return MinimalMetadata_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const Webhook_possibleTypes: string[] = ['Webhook']
+ export const isWebhook = (obj?: { __typename?: any } | null): obj is Webhook => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWebhook"')
+ return Webhook_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const Query_possibleTypes: string[] = ['Query']
export const isQuery = (obj?: { __typename?: any } | null): obj is Query => {
if (!obj?.__typename) throw new Error('__typename is missing in "isQuery"')
@@ -9063,6 +9065,35 @@ export const enumSubscriptionStatus = {
Unpaid: 'Unpaid' as const
}
+export const enumNavigationMenuItemType = {
+ VIEW: 'VIEW' as const,
+ FOLDER: 'FOLDER' as const,
+ LINK: 'LINK' as const,
+ OBJECT: 'OBJECT' as const,
+ RECORD: 'RECORD' as const
+}
+
+export const enumMetadataEventAction = {
+ CREATED: 'CREATED' as const,
+ UPDATED: 'UPDATED' as const,
+ DELETED: 'DELETED' as const
+}
+
+export const enumDatabaseEventAction = {
+ CREATED: 'CREATED' as const,
+ UPDATED: 'UPDATED' as const,
+ DELETED: 'DELETED' as const,
+ DESTROYED: 'DESTROYED' as const,
+ RESTORED: 'RESTORED' as const,
+ UPSERTED: 'UPSERTED' as const
+}
+
+export const enumLogicFunctionExecutionStatus = {
+ IDLE: 'IDLE' as const,
+ SUCCESS: 'SUCCESS' as const,
+ ERROR: 'ERROR' as const
+}
+
export const enumIdentityProviderType = {
OIDC: 'OIDC' as const,
SAML: 'SAML' as const
@@ -9074,11 +9105,22 @@ export const enumSsoIdentityProviderStatus = {
Error: 'Error' as const
}
-export const enumBillingEntitlementKey = {
- SSO: 'SSO' as const,
- CUSTOM_DOMAIN: 'CUSTOM_DOMAIN' as const,
- RLS: 'RLS' as const,
- AUDIT_LOGS: 'AUDIT_LOGS' as const
+export const enumModelFamily = {
+ GPT: 'GPT' as const,
+ CLAUDE: 'CLAUDE' as const,
+ GEMINI: 'GEMINI' as const,
+ MISTRAL: 'MISTRAL' as const,
+ GROK: 'GROK' as const
+}
+
+export const enumSupportDriver = {
+ NONE: 'NONE' as const,
+ FRONT: 'FRONT' as const
+}
+
+export const enumCaptchaDriverType = {
+ GOOGLE_RECAPTCHA: 'GOOGLE_RECAPTCHA' as const,
+ TURNSTILE: 'TURNSTILE' as const
}
export const enumFeatureFlagKey = {
@@ -9109,38 +9151,95 @@ export const enumFeatureFlagKey = {
IS_GRAPHQL_QUERY_TIMING_ENABLED: 'IS_GRAPHQL_QUERY_TIMING_ENABLED' as const
}
-export const enumRelationType = {
- ONE_TO_MANY: 'ONE_TO_MANY' as const,
- MANY_TO_ONE: 'MANY_TO_ONE' as const
+export const enumConfigSource = {
+ ENVIRONMENT: 'ENVIRONMENT' as const,
+ DATABASE: 'DATABASE' as const,
+ DEFAULT: 'DEFAULT' as const
}
-export const enumNavigationMenuItemType = {
- VIEW: 'VIEW' as const,
- FOLDER: 'FOLDER' as const,
- LINK: 'LINK' as const,
- OBJECT: 'OBJECT' as const,
- RECORD: 'RECORD' as const
+export const enumConfigVariableType = {
+ BOOLEAN: 'BOOLEAN' as const,
+ NUMBER: 'NUMBER' as const,
+ ARRAY: 'ARRAY' as const,
+ STRING: 'STRING' as const,
+ ENUM: 'ENUM' as const,
+ JSON: 'JSON' as const
}
-export const enumMetadataEventAction = {
- CREATED: 'CREATED' as const,
- UPDATED: 'UPDATED' as const,
- DELETED: 'DELETED' as const
+export const enumConfigVariablesGroup = {
+ SERVER_CONFIG: 'SERVER_CONFIG' as const,
+ RATE_LIMITING: 'RATE_LIMITING' as const,
+ STORAGE_CONFIG: 'STORAGE_CONFIG' as const,
+ GOOGLE_AUTH: 'GOOGLE_AUTH' as const,
+ MICROSOFT_AUTH: 'MICROSOFT_AUTH' as const,
+ EMAIL_SETTINGS: 'EMAIL_SETTINGS' as const,
+ LOGGING: 'LOGGING' as const,
+ ADVANCED_SETTINGS: 'ADVANCED_SETTINGS' as const,
+ BILLING_CONFIG: 'BILLING_CONFIG' as const,
+ CAPTCHA_CONFIG: 'CAPTCHA_CONFIG' as const,
+ CLOUDFLARE_CONFIG: 'CLOUDFLARE_CONFIG' as const,
+ LLM: 'LLM' as const,
+ LOGIC_FUNCTION_CONFIG: 'LOGIC_FUNCTION_CONFIG' as const,
+ CODE_INTERPRETER_CONFIG: 'CODE_INTERPRETER_CONFIG' as const,
+ SSL: 'SSL' as const,
+ SUPPORT_CHAT_CONFIG: 'SUPPORT_CHAT_CONFIG' as const,
+ ANALYTICS_CONFIG: 'ANALYTICS_CONFIG' as const,
+ TOKENS_DURATION: 'TOKENS_DURATION' as const,
+ AWS_SES_SETTINGS: 'AWS_SES_SETTINGS' as const
}
-export const enumDatabaseEventAction = {
- CREATED: 'CREATED' as const,
- UPDATED: 'UPDATED' as const,
- DELETED: 'DELETED' as const,
- DESTROYED: 'DESTROYED' as const,
- RESTORED: 'RESTORED' as const,
- UPSERTED: 'UPSERTED' as const
+export const enumJobState = {
+ COMPLETED: 'COMPLETED' as const,
+ FAILED: 'FAILED' as const,
+ ACTIVE: 'ACTIVE' as const,
+ WAITING: 'WAITING' as const,
+ DELAYED: 'DELAYED' as const,
+ PRIORITIZED: 'PRIORITIZED' as const,
+ WAITING_CHILDREN: 'WAITING_CHILDREN' as const
}
-export const enumLogicFunctionExecutionStatus = {
- IDLE: 'IDLE' as const,
- SUCCESS: 'SUCCESS' as const,
- ERROR: 'ERROR' as const
+export const enumHealthIndicatorId = {
+ database: 'database' as const,
+ redis: 'redis' as const,
+ worker: 'worker' as const,
+ connectedAccount: 'connectedAccount' as const,
+ app: 'app' as const
+}
+
+export const enumAdminPanelHealthServiceStatus = {
+ OPERATIONAL: 'OPERATIONAL' as const,
+ OUTAGE: 'OUTAGE' as const
+}
+
+export const enumQueueMetricsTimeRange = {
+ SevenDays: 'SevenDays' as const,
+ OneDay: 'OneDay' as const,
+ TwelveHours: 'TwelveHours' as const,
+ FourHours: 'FourHours' as const,
+ OneHour: 'OneHour' as const
+}
+
+export const enumBillingEntitlementKey = {
+ SSO: 'SSO' as const,
+ CUSTOM_DOMAIN: 'CUSTOM_DOMAIN' as const,
+ RLS: 'RLS' as const,
+ AUDIT_LOGS: 'AUDIT_LOGS' as const
+}
+
+export const enumRelationType = {
+ ONE_TO_MANY: 'ONE_TO_MANY' as const,
+ MANY_TO_ONE: 'MANY_TO_ONE' as const
+}
+
+export const enumEmailingDomainDriver = {
+ AWS_SES: 'AWS_SES' as const
+}
+
+export const enumEmailingDomainStatus = {
+ PENDING: 'PENDING' as const,
+ VERIFIED: 'VERIFIED' as const,
+ FAILED: 'FAILED' as const,
+ TEMPORARY_FAILURE: 'TEMPORARY_FAILURE' as const
}
export const enumEngineComponentKey = {
@@ -9323,103 +9422,6 @@ export const enumAllMetadataName = {
webhook: 'webhook' as const
}
-export const enumModelFamily = {
- GPT: 'GPT' as const,
- CLAUDE: 'CLAUDE' as const,
- GEMINI: 'GEMINI' as const,
- MISTRAL: 'MISTRAL' as const,
- GROK: 'GROK' as const
-}
-
-export const enumSupportDriver = {
- NONE: 'NONE' as const,
- FRONT: 'FRONT' as const
-}
-
-export const enumCaptchaDriverType = {
- GOOGLE_RECAPTCHA: 'GOOGLE_RECAPTCHA' as const,
- TURNSTILE: 'TURNSTILE' as const
-}
-
-export const enumConfigSource = {
- ENVIRONMENT: 'ENVIRONMENT' as const,
- DATABASE: 'DATABASE' as const,
- DEFAULT: 'DEFAULT' as const
-}
-
-export const enumConfigVariableType = {
- BOOLEAN: 'BOOLEAN' as const,
- NUMBER: 'NUMBER' as const,
- ARRAY: 'ARRAY' as const,
- STRING: 'STRING' as const,
- ENUM: 'ENUM' as const,
- JSON: 'JSON' as const
-}
-
-export const enumConfigVariablesGroup = {
- SERVER_CONFIG: 'SERVER_CONFIG' as const,
- RATE_LIMITING: 'RATE_LIMITING' as const,
- STORAGE_CONFIG: 'STORAGE_CONFIG' as const,
- GOOGLE_AUTH: 'GOOGLE_AUTH' as const,
- MICROSOFT_AUTH: 'MICROSOFT_AUTH' as const,
- EMAIL_SETTINGS: 'EMAIL_SETTINGS' as const,
- LOGGING: 'LOGGING' as const,
- ADVANCED_SETTINGS: 'ADVANCED_SETTINGS' as const,
- BILLING_CONFIG: 'BILLING_CONFIG' as const,
- CAPTCHA_CONFIG: 'CAPTCHA_CONFIG' as const,
- CLOUDFLARE_CONFIG: 'CLOUDFLARE_CONFIG' as const,
- LLM: 'LLM' as const,
- LOGIC_FUNCTION_CONFIG: 'LOGIC_FUNCTION_CONFIG' as const,
- CODE_INTERPRETER_CONFIG: 'CODE_INTERPRETER_CONFIG' as const,
- SSL: 'SSL' as const,
- SUPPORT_CHAT_CONFIG: 'SUPPORT_CHAT_CONFIG' as const,
- ANALYTICS_CONFIG: 'ANALYTICS_CONFIG' as const,
- TOKENS_DURATION: 'TOKENS_DURATION' as const,
- AWS_SES_SETTINGS: 'AWS_SES_SETTINGS' as const
-}
-
-export const enumJobState = {
- COMPLETED: 'COMPLETED' as const,
- FAILED: 'FAILED' as const,
- ACTIVE: 'ACTIVE' as const,
- WAITING: 'WAITING' as const,
- DELAYED: 'DELAYED' as const,
- PRIORITIZED: 'PRIORITIZED' as const,
- WAITING_CHILDREN: 'WAITING_CHILDREN' as const
-}
-
-export const enumHealthIndicatorId = {
- database: 'database' as const,
- redis: 'redis' as const,
- worker: 'worker' as const,
- connectedAccount: 'connectedAccount' as const,
- app: 'app' as const
-}
-
-export const enumAdminPanelHealthServiceStatus = {
- OPERATIONAL: 'OPERATIONAL' as const,
- OUTAGE: 'OUTAGE' as const
-}
-
-export const enumQueueMetricsTimeRange = {
- SevenDays: 'SevenDays' as const,
- OneDay: 'OneDay' as const,
- TwelveHours: 'TwelveHours' as const,
- FourHours: 'FourHours' as const,
- OneHour: 'OneHour' as const
-}
-
-export const enumEmailingDomainDriver = {
- AWS_SES: 'AWS_SES' as const
-}
-
-export const enumEmailingDomainStatus = {
- PENDING: 'PENDING' as const,
- VERIFIED: 'VERIFIED' as const,
- FAILED: 'FAILED' as const,
- TEMPORARY_FAILURE: 'TEMPORARY_FAILURE' as const
-}
-
export const enumAgentChatThreadSortFields = {
id: 'id' as const,
updatedAt: 'updatedAt' as const
@@ -9473,5 +9475,6 @@ export const enumFileFolder = {
FilesField: 'FilesField' as const,
Dependencies: 'Dependencies' as const,
Workflow: 'Workflow' as const,
- AppTarball: 'AppTarball' as const
+ AppTarball: 'AppTarball' as const,
+ GeneratedSdkClient: 'GeneratedSdkClient' as const
}
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
similarity index 97%
rename from packages/twenty-sdk/src/clients/generated/metadata/types.ts
rename to packages/twenty-client-sdk/src/metadata/generated/types.ts
index 0f44e721b68..5b8d32848c4 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -44,49 +44,49 @@ export default {
121,
123,
131,
- 147,
- 148,
- 153,
- 157,
+ 146,
+ 149,
+ 151,
+ 155,
+ 159,
+ 160,
+ 166,
+ 171,
+ 174,
+ 178,
181,
+ 182,
+ 184,
+ 189,
+ 194,
+ 195,
210,
- 213,
- 215,
- 219,
227,
- 228,
- 238,
- 239,
- 240,
- 241,
244,
- 245,
- 246,
- 247,
- 248,
- 249,
- 250,
- 252,
- 254,
- 262,
- 267,
- 270,
- 276,
- 277,
- 279,
- 284,
- 289,
- 290,
- 304,
- 324,
+ 282,
+ 283,
+ 299,
+ 300,
325,
- 348,
+ 326,
+ 327,
+ 328,
+ 331,
+ 332,
+ 333,
+ 334,
+ 335,
+ 336,
+ 337,
+ 339,
+ 341,
+ 349,
355,
356,
357,
359,
372,
- 373,
+ 398,
482,
487,
488
@@ -793,10 +793,10 @@ export default {
3
],
"relation": [
- 180
+ 243
],
"morphRelations": [
- 180
+ 243
],
"object": [
46
@@ -855,7 +855,7 @@ export default {
36
],
"objectMetadata": [
- 168,
+ 236,
{
"paging": [
39,
@@ -868,7 +868,7 @@ export default {
}
],
"indexFieldMetadatas": [
- 166,
+ 234,
{
"paging": [
39,
@@ -1113,7 +1113,7 @@ export default {
37
],
"fields": [
- 173,
+ 241,
{
"paging": [
39,
@@ -1126,7 +1126,7 @@ export default {
}
],
"indexMetadatas": [
- 171,
+ 239,
{
"paging": [
39,
@@ -1698,7 +1698,7 @@ export default {
49
],
"featureFlags": [
- 156
+ 197
],
"billingSubscriptions": [
130
@@ -1707,7 +1707,7 @@ export default {
130
],
"billingEntitlements": [
- 152
+ 226
],
"hasValidEnterpriseKey": [
6
@@ -1719,7 +1719,7 @@ export default {
6
],
"workspaceUrls": [
- 145
+ 157
],
"workspaceCustomApplicationId": [
1
@@ -1811,7 +1811,7 @@ export default {
20
],
"deletedWorkspaceMembers": [
- 151
+ 225
],
"hasPassword": [
6
@@ -1823,7 +1823,7 @@ export default {
17
],
"availableWorkspaces": [
- 150
+ 224
],
"__typename": [
1
@@ -2989,165 +2989,204 @@ export default {
1
]
},
- "ResendEmailVerificationToken": {
- "success": [
- 6
+ "RecordIdentifier": {
+ "id": [
+ 3
],
- "__typename": [
- 1
- ]
- },
- "WorkspaceUrls": {
- "customUrl": [
+ "labelIdentifier": [
1
],
- "subdomainUrl": [
+ "imageIdentifier": [
1
],
"__typename": [
1
]
},
- "SSOConnection": {
- "type": [
- 147
- ],
+ "NavigationMenuItem": {
"id": [
3
],
- "issuer": [
- 1
+ "userWorkspaceId": [
+ 3
],
- "name": [
- 1
+ "targetRecordId": [
+ 3
],
- "status": [
- 148
+ "targetObjectMetadataId": [
+ 3
],
- "__typename": [
- 1
- ]
- },
- "IdentityProviderType": {},
- "SSOIdentityProviderStatus": {},
- "AvailableWorkspace": {
- "id": [
+ "viewId": [
3
],
- "displayName": [
+ "type": [
+ 146
+ ],
+ "name": [
1
],
- "loginToken": [
+ "link": [
1
],
- "personalInviteToken": [
+ "icon": [
1
],
- "inviteHash": [
+ "color": [
1
],
- "workspaceUrls": [
- 145
+ "folderId": [
+ 3
],
- "logo": [
+ "position": [
+ 11
+ ],
+ "applicationId": [
+ 3
+ ],
+ "createdAt": [
+ 4
+ ],
+ "updatedAt": [
+ 4
+ ],
+ "targetRecordIdentifier": [
+ 144
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "NavigationMenuItemType": {},
+ "ObjectRecordEventProperties": {
+ "updatedFields": [
1
],
- "sso": [
- 146
+ "before": [
+ 15
+ ],
+ "after": [
+ 15
+ ],
+ "diff": [
+ 15
],
"__typename": [
1
]
},
- "AvailableWorkspaces": {
- "availableWorkspacesForSignIn": [
+ "MetadataEvent": {
+ "type": [
149
],
- "availableWorkspacesForSignUp": [
- 149
+ "metadataName": [
+ 1
+ ],
+ "recordId": [
+ 1
+ ],
+ "properties": [
+ 147
+ ],
+ "updatedCollectionHash": [
+ 1
],
"__typename": [
1
]
},
- "DeletedWorkspaceMember": {
- "id": [
- 3
+ "MetadataEventAction": {},
+ "ObjectRecordEvent": {
+ "action": [
+ 151
],
- "name": [
- 19
+ "objectNameSingular": [
+ 1
],
- "userEmail": [
+ "recordId": [
1
],
- "avatarUrl": [
+ "userId": [
1
],
- "userWorkspaceId": [
- 3
+ "workspaceMemberId": [
+ 1
+ ],
+ "properties": [
+ 147
],
"__typename": [
1
]
},
- "BillingEntitlement": {
- "key": [
- 153
+ "DatabaseEventAction": {},
+ "ObjectRecordEventWithQueryIds": {
+ "queryIds": [
+ 1
],
- "value": [
- 6
+ "objectRecordEvent": [
+ 150
],
"__typename": [
1
]
},
- "BillingEntitlementKey": {},
- "DomainRecord": {
- "validationType": [
+ "EventSubscription": {
+ "eventStreamId": [
1
],
- "type": [
- 1
+ "objectRecordEventsWithQueryIds": [
+ 152
],
- "status": [
- 1
+ "metadataEvents": [
+ 148
],
- "key": [
+ "__typename": [
1
+ ]
+ },
+ "LogicFunctionExecutionResult": {
+ "data": [
+ 15
],
- "value": [
+ "logs": [
1
],
+ "duration": [
+ 11
+ ],
+ "status": [
+ 155
+ ],
+ "error": [
+ 15
+ ],
"__typename": [
1
]
},
- "DomainValidRecords": {
- "id": [
- 3
- ],
- "domain": [
- 1
+ "LogicFunctionExecutionStatus": {},
+ "BillingTrialPeriod": {
+ "duration": [
+ 11
],
- "records": [
- 154
+ "isCreditCardRequired": [
+ 6
],
"__typename": [
1
]
},
- "FeatureFlag": {
- "key": [
- 157
+ "WorkspaceUrls": {
+ "customUrl": [
+ 1
],
- "value": [
- 6
+ "subdomainUrl": [
+ 1
],
"__typename": [
1
]
},
- "FeatureFlagKey": {},
"SSOIdentityProvider": {
"id": [
3
@@ -3156,10 +3195,10 @@ export default {
1
],
"type": [
- 147
+ 159
],
"status": [
- 148
+ 160
],
"issuer": [
1
@@ -3168,6 +3207,8 @@ export default {
1
]
},
+ "IdentityProviderType": {},
+ "SSOIdentityProviderStatus": {},
"AuthProviders": {
"sso": [
158
@@ -3207,10 +3248,10 @@ export default {
3
],
"authProviders": [
- 159
+ 161
],
"authBypassProviders": [
- 160
+ 162
],
"logo": [
1
@@ -3219,1062 +3260,1087 @@ export default {
1
],
"workspaceUrls": [
- 145
+ 157
],
"__typename": [
1
]
},
- "IndexEdge": {
- "node": [
- 37
+ "NativeModelCapabilities": {
+ "webSearch": [
+ 6
],
- "cursor": [
- 40
+ "twitterSearch": [
+ 6
],
"__typename": [
1
]
},
- "PageInfo": {
- "hasNextPage": [
- 6
+ "ClientAIModelConfig": {
+ "modelId": [
+ 1
],
- "hasPreviousPage": [
- 6
+ "label": [
+ 1
],
- "startCursor": [
- 40
+ "modelFamily": [
+ 166
],
- "endCursor": [
- 40
+ "modelFamilyLabel": [
+ 1
],
- "__typename": [
+ "sdkPackage": [
1
- ]
- },
- "IndexConnection": {
- "pageInfo": [
- 163
],
- "edges": [
- 162
+ "inputCostPerMillionTokensInCredits": [
+ 11
],
- "__typename": [
- 1
- ]
- },
- "IndexFieldEdge": {
- "node": [
- 36
+ "outputCostPerMillionTokensInCredits": [
+ 11
],
- "cursor": [
- 40
+ "nativeCapabilities": [
+ 164
],
- "__typename": [
- 1
- ]
- },
- "IndexIndexFieldMetadatasConnection": {
- "pageInfo": [
- 163
+ "isDeprecated": [
+ 6
],
- "edges": [
- 165
+ "isRecommended": [
+ 6
],
- "__typename": [
+ "providerName": [
1
- ]
- },
- "ObjectEdge": {
- "node": [
- 46
],
- "cursor": [
- 40
+ "dataResidency": [
+ 1
],
"__typename": [
1
]
},
- "IndexObjectMetadataConnection": {
- "pageInfo": [
- 163
+ "ModelFamily": {},
+ "AdminAIModelConfig": {
+ "modelId": [
+ 1
],
- "edges": [
- 167
+ "label": [
+ 1
],
- "__typename": [
+ "modelFamily": [
+ 166
+ ],
+ "modelFamilyLabel": [
1
- ]
- },
- "ObjectRecordCount": {
- "objectNamePlural": [
+ ],
+ "sdkPackage": [
1
],
- "totalCount": [
- 21
+ "isAvailable": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "ObjectConnection": {
- "pageInfo": [
- 163
+ "isAdminEnabled": [
+ 6
],
- "edges": [
- 167
+ "isDeprecated": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "ObjectIndexMetadatasConnection": {
- "pageInfo": [
- 163
+ "isRecommended": [
+ 6
],
- "edges": [
- 162
+ "contextWindowTokens": [
+ 11
],
- "__typename": [
- 1
- ]
- },
- "FieldEdge": {
- "node": [
- 34
+ "maxOutputTokens": [
+ 11
],
- "cursor": [
- 40
+ "inputCostPerMillionTokens": [
+ 11
],
- "__typename": [
+ "outputCostPerMillionTokens": [
+ 11
+ ],
+ "providerName": [
1
- ]
- },
- "ObjectFieldsConnection": {
- "pageInfo": [
- 163
],
- "edges": [
- 172
+ "providerLabel": [
+ 1
],
- "__typename": [
+ "name": [
1
- ]
- },
- "UpsertRowLevelPermissionPredicatesResult": {
- "predicates": [
- 13
],
- "predicateGroups": [
- 10
+ "dataResidency": [
+ 1
],
"__typename": [
1
]
},
- "VersionDistributionEntry": {
- "version": [
+ "AdminAIModels": {
+ "models": [
+ 167
+ ],
+ "defaultSmartModelId": [
1
],
- "count": [
- 21
+ "defaultFastModelId": [
+ 1
],
"__typename": [
1
]
},
- "ApplicationRegistrationStats": {
- "activeInstalls": [
- 21
+ "Billing": {
+ "isBillingEnabled": [
+ 6
],
- "mostInstalledVersion": [
+ "billingUrl": [
1
],
- "versionDistribution": [
- 175
+ "trialPeriods": [
+ 156
],
"__typename": [
1
]
},
- "CreateApplicationRegistration": {
- "applicationRegistration": [
- 7
+ "Support": {
+ "supportDriver": [
+ 171
],
- "clientSecret": [
+ "supportFrontChatId": [
1
],
"__typename": [
1
]
},
- "PublicApplicationRegistration": {
- "id": [
- 3
- ],
- "name": [
- 1
- ],
- "logoUrl": [
+ "SupportDriver": {},
+ "Sentry": {
+ "environment": [
1
],
- "websiteUrl": [
+ "release": [
1
],
- "oAuthScopes": [
+ "dsn": [
1
],
"__typename": [
1
]
},
- "RotateClientSecret": {
- "clientSecret": [
- 1
+ "Captcha": {
+ "provider": [
+ 174
],
- "__typename": [
+ "siteKey": [
1
- ]
- },
- "Relation": {
- "type": [
- 181
- ],
- "sourceObjectMetadata": [
- 46
- ],
- "targetObjectMetadata": [
- 46
- ],
- "sourceFieldMetadata": [
- 34
- ],
- "targetFieldMetadata": [
- 34
],
"__typename": [
1
]
},
- "RelationType": {},
- "FieldConnection": {
- "pageInfo": [
- 163
- ],
- "edges": [
- 172
+ "CaptchaDriverType": {},
+ "ApiConfig": {
+ "mutationMaximumAffectedRecords": [
+ 11
],
"__typename": [
1
]
},
- "DeleteSso": {
- "identityProviderId": [
- 3
- ],
- "__typename": [
+ "PublicFeatureFlagMetadata": {
+ "label": [
1
- ]
- },
- "EditSso": {
- "id": [
- 3
],
- "type": [
- 147
- ],
- "issuer": [
+ "description": [
1
],
- "name": [
+ "imagePath": [
1
],
- "status": [
- 148
- ],
"__typename": [
1
]
},
- "WorkspaceNameAndId": {
- "displayName": [
- 1
+ "PublicFeatureFlag": {
+ "key": [
+ 178
],
- "id": [
- 3
+ "metadata": [
+ 176
],
"__typename": [
1
]
},
- "FindAvailableSSOIDP": {
- "type": [
- 147
+ "FeatureFlagKey": {},
+ "ClientConfig": {
+ "appVersion": [
+ 1
],
- "id": [
- 3
+ "authProviders": [
+ 161
],
- "issuer": [
- 1
+ "billing": [
+ 169
],
- "name": [
- 1
+ "aiModels": [
+ 165
],
- "status": [
- 148
+ "signInPrefilled": [
+ 6
],
- "workspace": [
- 185
+ "isMultiWorkspaceEnabled": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "SetupSso": {
- "id": [
- 3
- ],
- "type": [
- 147
+ "isEmailVerificationRequired": [
+ 6
],
- "issuer": [
+ "defaultSubdomain": [
1
],
- "name": [
+ "frontDomain": [
1
],
- "status": [
- 148
+ "analyticsEnabled": [
+ 6
],
- "__typename": [
+ "support": [
+ 170
+ ],
+ "isAttachmentPreviewEnabled": [
+ 6
+ ],
+ "sentry": [
+ 172
+ ],
+ "captcha": [
+ 173
+ ],
+ "api": [
+ 175
+ ],
+ "canManageFeatureFlags": [
+ 6
+ ],
+ "publicFeatureFlags": [
+ 177
+ ],
+ "isMicrosoftMessagingEnabled": [
+ 6
+ ],
+ "isMicrosoftCalendarEnabled": [
+ 6
+ ],
+ "isGoogleMessagingEnabled": [
+ 6
+ ],
+ "isGoogleCalendarEnabled": [
+ 6
+ ],
+ "isConfigVariablesInDbEnabled": [
+ 6
+ ],
+ "isImapSmtpCaldavEnabled": [
+ 6
+ ],
+ "allowRequestsToTwentyIcons": [
+ 6
+ ],
+ "calendarBookingPageId": [
1
- ]
- },
- "DeleteTwoFactorAuthenticationMethod": {
- "success": [
+ ],
+ "isCloudflareIntegrationEnabled": [
+ 6
+ ],
+ "isClickHouseConfigured": [
6
],
"__typename": [
1
]
},
- "InitiateTwoFactorAuthenticationProvisioning": {
- "uri": [
+ "ConfigVariable": {
+ "name": [
1
],
- "__typename": [
+ "description": [
1
- ]
- },
- "VerifyTwoFactorAuthenticationMethod": {
- "success": [
+ ],
+ "value": [
+ 15
+ ],
+ "isSensitive": [
6
],
- "__typename": [
- 1
- ]
- },
- "AuthorizeApp": {
- "redirectUrl": [
- 1
+ "source": [
+ 181
+ ],
+ "isEnvOnly": [
+ 6
+ ],
+ "type": [
+ 182
+ ],
+ "options": [
+ 15
],
"__typename": [
1
]
},
- "AuthToken": {
- "token": [
+ "ConfigSource": {},
+ "ConfigVariableType": {},
+ "ConfigVariablesGroupData": {
+ "variables": [
+ 180
+ ],
+ "name": [
+ 184
+ ],
+ "description": [
1
],
- "expiresAt": [
- 4
+ "isHiddenOnLoad": [
+ 6
],
"__typename": [
1
]
},
- "AuthTokenPair": {
- "accessOrWorkspaceAgnosticToken": [
- 192
- ],
- "refreshToken": [
- 192
+ "ConfigVariablesGroup": {},
+ "ConfigVariables": {
+ "groups": [
+ 183
],
"__typename": [
1
]
},
- "AvailableWorkspacesAndAccessTokens": {
- "tokens": [
- 193
+ "JobOperationResult": {
+ "jobId": [
+ 1
],
- "availableWorkspaces": [
- 150
+ "success": [
+ 6
+ ],
+ "error": [
+ 1
],
"__typename": [
1
]
},
- "EmailPasswordResetLink": {
- "success": [
- 6
+ "DeleteJobsResponse": {
+ "deletedCount": [
+ 21
+ ],
+ "results": [
+ 186
],
"__typename": [
1
]
},
- "GetAuthorizationUrlForSSO": {
- "authorizationURL": [
+ "QueueJob": {
+ "id": [
1
],
- "type": [
+ "name": [
1
],
- "id": [
- 3
+ "data": [
+ 15
],
- "__typename": [
- 1
- ]
- },
- "InvalidatePassword": {
- "success": [
- 6
+ "state": [
+ 189
],
- "__typename": [
+ "timestamp": [
+ 11
+ ],
+ "failedReason": [
1
- ]
- },
- "WorkspaceUrlsAndId": {
- "workspaceUrls": [
- 145
],
- "id": [
- 3
+ "processedOn": [
+ 11
],
- "__typename": [
+ "finishedOn": [
+ 11
+ ],
+ "attemptsMade": [
+ 11
+ ],
+ "returnValue": [
+ 15
+ ],
+ "logs": [
1
- ]
- },
- "SignUp": {
- "loginToken": [
- 192
],
- "workspace": [
- 198
+ "stackTrace": [
+ 1
],
"__typename": [
1
]
},
- "TransientToken": {
- "transientToken": [
- 192
+ "JobState": {},
+ "QueueRetentionConfig": {
+ "completedMaxAge": [
+ 11
+ ],
+ "completedMaxCount": [
+ 11
+ ],
+ "failedMaxAge": [
+ 11
+ ],
+ "failedMaxCount": [
+ 11
],
"__typename": [
1
]
},
- "ValidatePasswordResetToken": {
- "id": [
- 3
+ "QueueJobsResponse": {
+ "jobs": [
+ 188
],
- "email": [
- 1
+ "count": [
+ 11
],
- "hasPassword": [
+ "totalCount": [
+ 11
+ ],
+ "hasMore": [
6
],
+ "retentionConfig": [
+ 190
+ ],
"__typename": [
1
]
},
- "VerifyEmailAndGetLoginToken": {
- "loginToken": [
- 192
+ "RetryJobsResponse": {
+ "retriedCount": [
+ 21
],
- "workspaceUrls": [
- 145
+ "results": [
+ 186
],
"__typename": [
1
]
},
- "ApiKeyToken": {
- "token": [
+ "SystemHealthService": {
+ "id": [
+ 194
+ ],
+ "label": [
1
],
+ "status": [
+ 195
+ ],
"__typename": [
1
]
},
- "AuthTokens": {
- "tokens": [
+ "HealthIndicatorId": {},
+ "AdminPanelHealthServiceStatus": {},
+ "SystemHealth": {
+ "services": [
193
],
"__typename": [
1
]
},
- "LoginToken": {
- "loginToken": [
- 192
+ "FeatureFlag": {
+ "key": [
+ 178
+ ],
+ "value": [
+ 6
],
"__typename": [
1
]
},
- "CheckUserExist": {
- "exists": [
- 6
+ "UserInfo": {
+ "id": [
+ 3
],
- "availableWorkspacesCount": [
- 11
+ "email": [
+ 1
],
- "isEmailVerified": [
- 6
+ "firstName": [
+ 1
],
- "__typename": [
+ "lastName": [
1
- ]
- },
- "WorkspaceInviteHashValid": {
- "isValid": [
- 6
],
"__typename": [
1
]
},
- "RecordIdentifier": {
+ "WorkspaceInfo": {
"id": [
3
],
- "labelIdentifier": [
+ "name": [
1
],
- "imageIdentifier": [
- 1
+ "allowImpersonation": [
+ 6
],
- "__typename": [
+ "logo": [
1
- ]
- },
- "NavigationMenuItem": {
- "id": [
- 3
- ],
- "userWorkspaceId": [
- 3
],
- "targetRecordId": [
- 3
+ "totalUsers": [
+ 11
],
- "targetObjectMetadataId": [
- 3
+ "workspaceUrls": [
+ 157
],
- "viewId": [
- 3
+ "users": [
+ 198
],
- "type": [
- 210
+ "featureFlags": [
+ 197
],
- "name": [
+ "__typename": [
1
+ ]
+ },
+ "UserLookup": {
+ "user": [
+ 198
],
- "link": [
- 1
+ "workspaces": [
+ 199
],
- "icon": [
+ "__typename": [
1
- ],
- "color": [
+ ]
+ },
+ "VersionInfo": {
+ "currentVersion": [
1
],
- "folderId": [
- 3
- ],
- "position": [
- 11
- ],
- "applicationId": [
- 3
- ],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
- ],
- "targetRecordIdentifier": [
- 208
+ "latestVersion": [
+ 1
],
"__typename": [
1
]
},
- "NavigationMenuItemType": {},
- "ObjectRecordEventProperties": {
- "updatedFields": [
+ "AdminPanelWorkerQueueHealth": {
+ "id": [
1
],
- "before": [
- 15
- ],
- "after": [
- 15
+ "queueName": [
+ 1
],
- "diff": [
- 15
+ "status": [
+ 195
],
"__typename": [
1
]
},
- "MetadataEvent": {
- "type": [
- 213
+ "AdminPanelHealthServiceData": {
+ "id": [
+ 194
],
- "metadataName": [
+ "label": [
1
],
- "recordId": [
+ "description": [
1
],
- "properties": [
- 211
+ "status": [
+ 195
],
- "updatedCollectionHash": [
+ "errorMessage": [
+ 1
+ ],
+ "details": [
1
],
+ "queues": [
+ 202
+ ],
"__typename": [
1
]
},
- "MetadataEventAction": {},
- "ObjectRecordEvent": {
- "action": [
- 215
- ],
- "objectNameSingular": [
+ "ModelsDevModelSuggestion": {
+ "modelId": [
1
],
- "recordId": [
+ "name": [
1
],
- "userId": [
- 1
+ "inputCostPerMillionTokens": [
+ 11
],
- "workspaceMemberId": [
+ "outputCostPerMillionTokens": [
+ 11
+ ],
+ "cachedInputCostPerMillionTokens": [
+ 11
+ ],
+ "cacheCreationCostPerMillionTokens": [
+ 11
+ ],
+ "contextWindowTokens": [
+ 11
+ ],
+ "maxOutputTokens": [
+ 11
+ ],
+ "modalities": [
1
],
- "properties": [
- 211
+ "supportsReasoning": [
+ 6
],
"__typename": [
1
]
},
- "DatabaseEventAction": {},
- "ObjectRecordEventWithQueryIds": {
- "queryIds": [
+ "ModelsDevProviderSuggestion": {
+ "id": [
1
],
- "objectRecordEvent": [
- 214
+ "modelCount": [
+ 11
+ ],
+ "npm": [
+ 1
],
"__typename": [
1
]
},
- "EventSubscription": {
- "eventStreamId": [
- 1
- ],
- "objectRecordEventsWithQueryIds": [
- 216
+ "QueueMetricsDataPoint": {
+ "x": [
+ 11
],
- "metadataEvents": [
- 212
+ "y": [
+ 11
],
"__typename": [
1
]
},
- "LogicFunctionExecutionResult": {
+ "QueueMetricsSeries": {
+ "id": [
+ 1
+ ],
"data": [
- 15
+ 206
],
- "logs": [
+ "__typename": [
1
+ ]
+ },
+ "WorkerQueueMetrics": {
+ "failed": [
+ 11
],
- "duration": [
+ "completed": [
11
],
- "status": [
- 219
+ "waiting": [
+ 11
],
- "error": [
- 15
+ "active": [
+ 11
+ ],
+ "delayed": [
+ 11
+ ],
+ "failureRate": [
+ 11
+ ],
+ "failedData": [
+ 11
+ ],
+ "completedData": [
+ 11
],
"__typename": [
1
]
},
- "LogicFunctionExecutionStatus": {},
- "LogicFunctionLogs": {
- "logs": [
+ "QueueMetricsData": {
+ "queueName": [
1
],
+ "workers": [
+ 11
+ ],
+ "timeRange": [
+ 210
+ ],
+ "details": [
+ 208
+ ],
+ "data": [
+ 207
+ ],
"__typename": [
1
]
},
- "ToolIndexEntry": {
- "name": [
+ "QueueMetricsTimeRange": {},
+ "VersionDistributionEntry": {
+ "version": [
1
],
- "description": [
- 1
+ "count": [
+ 21
],
- "category": [
+ "__typename": [
1
+ ]
+ },
+ "ApplicationRegistrationStats": {
+ "activeInstalls": [
+ 21
],
- "objectName": [
+ "mostInstalledVersion": [
1
],
- "inputSchema": [
- 15
+ "versionDistribution": [
+ 211
],
"__typename": [
1
]
},
- "AgentMessagePart": {
- "id": [
- 3
- ],
- "messageId": [
- 3
- ],
- "orderIndex": [
- 21
+ "CreateApplicationRegistration": {
+ "applicationRegistration": [
+ 7
],
- "type": [
+ "clientSecret": [
1
],
- "textContent": [
+ "__typename": [
1
+ ]
+ },
+ "PublicApplicationRegistration": {
+ "id": [
+ 3
],
- "reasoningContent": [
+ "name": [
1
],
- "toolName": [
+ "logoUrl": [
1
],
- "toolCallId": [
+ "websiteUrl": [
1
],
- "toolInput": [
- 15
- ],
- "toolOutput": [
- 15
- ],
- "state": [
+ "oAuthScopes": [
1
],
- "errorMessage": [
+ "__typename": [
1
- ],
- "errorDetails": [
- 15
- ],
- "sourceUrlSourceId": [
+ ]
+ },
+ "RotateClientSecret": {
+ "clientSecret": [
1
],
- "sourceUrlUrl": [
+ "__typename": [
1
+ ]
+ },
+ "ResendEmailVerificationToken": {
+ "success": [
+ 6
],
- "sourceUrlTitle": [
+ "__typename": [
1
+ ]
+ },
+ "DeleteSso": {
+ "identityProviderId": [
+ 3
],
- "sourceDocumentSourceId": [
+ "__typename": [
1
+ ]
+ },
+ "EditSso": {
+ "id": [
+ 3
],
- "sourceDocumentMediaType": [
- 1
+ "type": [
+ 159
],
- "sourceDocumentTitle": [
+ "issuer": [
1
],
- "sourceDocumentFilename": [
+ "name": [
1
],
- "fileMediaType": [
+ "status": [
+ 160
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "WorkspaceNameAndId": {
+ "displayName": [
1
],
- "fileFilename": [
+ "id": [
+ 3
+ ],
+ "__typename": [
1
+ ]
+ },
+ "FindAvailableSSOIDP": {
+ "type": [
+ 159
],
- "fileId": [
+ "id": [
3
],
- "fileUrl": [
+ "issuer": [
1
],
- "providerMetadata": [
- 15
+ "name": [
+ 1
],
- "createdAt": [
- 4
+ "status": [
+ 160
+ ],
+ "workspace": [
+ 219
],
"__typename": [
1
]
},
- "Skill": {
+ "SetupSso": {
"id": [
3
],
- "name": [
- 1
+ "type": [
+ 159
],
- "label": [
+ "issuer": [
1
],
- "icon": [
+ "name": [
1
],
- "description": [
- 1
+ "status": [
+ 160
],
- "content": [
+ "__typename": [
1
+ ]
+ },
+ "SSOConnection": {
+ "type": [
+ 159
],
- "isCustom": [
- 6
- ],
- "isActive": [
- 6
- ],
- "applicationId": [
+ "id": [
3
],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
+ "issuer": [
+ 1
],
- "__typename": [
+ "name": [
1
- ]
- },
- "ApplicationTokenPair": {
- "applicationAccessToken": [
- 192
],
- "applicationRefreshToken": [
- 192
+ "status": [
+ 160
],
"__typename": [
1
]
},
- "FrontComponent": {
+ "AvailableWorkspace": {
"id": [
3
],
- "name": [
+ "displayName": [
1
],
- "description": [
+ "loginToken": [
1
],
- "sourceComponentPath": [
+ "personalInviteToken": [
1
],
- "builtComponentPath": [
+ "inviteHash": [
1
],
- "componentName": [
- 1
+ "workspaceUrls": [
+ 157
],
- "builtComponentChecksum": [
+ "logo": [
1
],
- "universalIdentifier": [
- 3
- ],
- "applicationId": [
- 3
- ],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
+ "sso": [
+ 222
],
- "isHeadless": [
- 6
+ "__typename": [
+ 1
+ ]
+ },
+ "AvailableWorkspaces": {
+ "availableWorkspacesForSignIn": [
+ 223
],
- "applicationTokenPair": [
- 224
+ "availableWorkspacesForSignUp": [
+ 223
],
"__typename": [
1
]
},
- "CommandMenuItem": {
+ "DeletedWorkspaceMember": {
"id": [
3
],
- "workflowVersionId": [
- 3
- ],
- "frontComponentId": [
- 3
- ],
- "frontComponent": [
- 225
- ],
- "engineComponentKey": [
- 227
+ "name": [
+ 19
],
- "label": [
+ "userEmail": [
1
],
- "icon": [
+ "avatarUrl": [
1
],
- "shortLabel": [
- 1
+ "userWorkspaceId": [
+ 3
],
- "position": [
- 11
+ "__typename": [
+ 1
+ ]
+ },
+ "BillingEntitlement": {
+ "key": [
+ 227
],
- "isPinned": [
+ "value": [
6
],
- "availabilityType": [
- 228
- ],
- "hotKeys": [
+ "__typename": [
1
- ],
- "conditionalAvailabilityExpression": [
+ ]
+ },
+ "BillingEntitlementKey": {},
+ "DomainRecord": {
+ "validationType": [
1
],
- "availabilityObjectMetadataId": [
- 3
+ "type": [
+ 1
],
- "applicationId": [
- 3
+ "status": [
+ 1
],
- "createdAt": [
- 4
+ "key": [
+ 1
],
- "updatedAt": [
- 4
+ "value": [
+ 1
],
"__typename": [
1
]
},
- "EngineComponentKey": {},
- "CommandMenuItemAvailabilityType": {},
- "AgentChatThread": {
+ "DomainValidRecords": {
"id": [
3
],
- "title": [
+ "domain": [
1
],
- "totalInputTokens": [
- 21
- ],
- "totalOutputTokens": [
- 21
- ],
- "contextWindowTokens": [
- 21
- ],
- "conversationSize": [
- 21
- ],
- "totalInputCredits": [
- 11
- ],
- "totalOutputCredits": [
- 11
+ "records": [
+ 228
],
- "createdAt": [
- 4
+ "__typename": [
+ 1
+ ]
+ },
+ "IndexEdge": {
+ "node": [
+ 37
],
- "updatedAt": [
- 4
+ "cursor": [
+ 40
],
"__typename": [
1
]
},
- "AgentMessage": {
- "id": [
- 3
+ "PageInfo": {
+ "hasNextPage": [
+ 6
],
- "threadId": [
- 3
+ "hasPreviousPage": [
+ 6
],
- "turnId": [
- 3
+ "startCursor": [
+ 40
],
- "agentId": [
- 3
+ "endCursor": [
+ 40
],
- "role": [
+ "__typename": [
1
+ ]
+ },
+ "IndexConnection": {
+ "pageInfo": [
+ 231
],
- "parts": [
- 222
- ],
- "createdAt": [
- 4
+ "edges": [
+ 230
],
"__typename": [
1
]
},
- "AISystemPromptSection": {
- "title": [
- 1
- ],
- "content": [
- 1
+ "IndexFieldEdge": {
+ "node": [
+ 36
],
- "estimatedTokenCount": [
- 21
+ "cursor": [
+ 40
],
"__typename": [
1
]
},
- "AISystemPromptPreview": {
- "sections": [
+ "IndexIndexFieldMetadatasConnection": {
+ "pageInfo": [
231
],
- "estimatedTokenCount": [
- 21
+ "edges": [
+ 233
],
"__typename": [
1
]
},
- "AgentChatThreadEdge": {
+ "ObjectEdge": {
"node": [
- 229
+ 46
],
"cursor": [
40
@@ -4283,2110 +4349,1892 @@ export default {
1
]
},
- "AgentChatThreadConnection": {
+ "IndexObjectMetadataConnection": {
"pageInfo": [
- 163
+ 231
],
"edges": [
- 233
+ 235
],
"__typename": [
1
]
},
- "AgentTurnEvaluation": {
- "id": [
- 3
- ],
- "turnId": [
- 3
+ "ObjectRecordCount": {
+ "objectNamePlural": [
+ 1
],
- "score": [
+ "totalCount": [
21
],
- "comment": [
+ "__typename": [
1
+ ]
+ },
+ "ObjectConnection": {
+ "pageInfo": [
+ 231
],
- "createdAt": [
- 4
+ "edges": [
+ 235
],
"__typename": [
1
]
},
- "AgentTurn": {
- "id": [
- 3
- ],
- "threadId": [
- 3
- ],
- "agentId": [
- 3
- ],
- "evaluations": [
- 235
+ "ObjectIndexMetadatasConnection": {
+ "pageInfo": [
+ 231
],
- "messages": [
+ "edges": [
230
],
- "createdAt": [
- 4
- ],
"__typename": [
1
]
},
- "CalendarChannel": {
- "id": [
- 3
- ],
- "handle": [
- 1
+ "FieldEdge": {
+ "node": [
+ 34
],
- "syncStatus": [
- 238
+ "cursor": [
+ 40
],
- "syncStage": [
- 239
+ "__typename": [
+ 1
+ ]
+ },
+ "ObjectFieldsConnection": {
+ "pageInfo": [
+ 231
],
- "visibility": [
+ "edges": [
240
],
- "isContactAutoCreationEnabled": [
- 6
- ],
- "contactAutoCreationPolicy": [
- 241
- ],
- "isSyncEnabled": [
- 6
+ "__typename": [
+ 1
+ ]
+ },
+ "UpsertRowLevelPermissionPredicatesResult": {
+ "predicates": [
+ 13
],
- "syncedAt": [
- 4
+ "predicateGroups": [
+ 10
],
- "syncStageStartedAt": [
- 4
+ "__typename": [
+ 1
+ ]
+ },
+ "Relation": {
+ "type": [
+ 244
],
- "throttleFailureCount": [
- 11
+ "sourceObjectMetadata": [
+ 46
],
- "connectedAccountId": [
- 3
+ "targetObjectMetadata": [
+ 46
],
- "createdAt": [
- 4
+ "sourceFieldMetadata": [
+ 34
],
- "updatedAt": [
- 4
+ "targetFieldMetadata": [
+ 34
],
"__typename": [
1
]
},
- "CalendarChannelSyncStatus": {},
- "CalendarChannelSyncStage": {},
- "CalendarChannelVisibility": {},
- "CalendarChannelContactAutoCreationPolicy": {},
- "ConnectedAccountDTO": {
- "id": [
- 3
+ "RelationType": {},
+ "FieldConnection": {
+ "pageInfo": [
+ 231
],
- "handle": [
- 1
+ "edges": [
+ 240
],
- "provider": [
+ "__typename": [
1
+ ]
+ },
+ "DeleteTwoFactorAuthenticationMethod": {
+ "success": [
+ 6
],
- "lastCredentialsRefreshedAt": [
- 4
- ],
- "authFailedAt": [
- 4
- ],
- "handleAliases": [
+ "__typename": [
1
- ],
- "scopes": [
+ ]
+ },
+ "InitiateTwoFactorAuthenticationProvisioning": {
+ "uri": [
1
],
- "lastSignedInAt": [
- 4
- ],
- "userWorkspaceId": [
- 3
- ],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
- ],
"__typename": [
1
]
},
- "MessageChannel": {
- "id": [
- 3
- ],
- "visibility": [
- 244
- ],
- "handle": [
- 1
- ],
- "type": [
- 245
- ],
- "isContactAutoCreationEnabled": [
- 6
- ],
- "contactAutoCreationPolicy": [
- 246
- ],
- "messageFolderImportPolicy": [
- 247
- ],
- "excludeNonProfessionalEmails": [
- 6
- ],
- "excludeGroupEmails": [
- 6
- ],
- "pendingGroupEmailsAction": [
- 248
- ],
- "isSyncEnabled": [
+ "VerifyTwoFactorAuthenticationMethod": {
+ "success": [
6
],
- "syncedAt": [
- 4
- ],
- "syncStatus": [
- 249
- ],
- "syncStage": [
- 250
- ],
- "syncStageStartedAt": [
- 4
- ],
- "throttleFailureCount": [
- 11
- ],
- "throttleRetryAfter": [
- 4
- ],
- "connectedAccountId": [
- 3
- ],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
- ],
"__typename": [
1
]
},
- "MessageChannelVisibility": {},
- "MessageChannelType": {},
- "MessageChannelContactAutoCreationPolicy": {},
- "MessageFolderImportPolicy": {},
- "MessageChannelPendingGroupEmailsAction": {},
- "MessageChannelSyncStatus": {},
- "MessageChannelSyncStage": {},
- "MessageFolder": {
- "id": [
- 3
- ],
- "name": [
+ "AuthorizeApp": {
+ "redirectUrl": [
1
],
- "isSentFolder": [
- 6
- ],
- "isSynced": [
- 6
- ],
- "parentFolderId": [
- 3
- ],
- "externalId": [
+ "__typename": [
+ 1
+ ]
+ },
+ "AuthToken": {
+ "token": [
1
],
- "pendingSyncAction": [
- 252
- ],
- "messageChannelId": [
- 3
- ],
- "createdAt": [
- 4
- ],
- "updatedAt": [
+ "expiresAt": [
4
],
"__typename": [
1
]
},
- "MessageFolderPendingSyncAction": {},
- "CollectionHash": {
- "collectionName": [
- 254
+ "AuthTokenPair": {
+ "accessOrWorkspaceAgnosticToken": [
+ 250
],
- "hash": [
- 1
+ "refreshToken": [
+ 250
],
"__typename": [
1
]
},
- "AllMetadataName": {},
- "MinimalObjectMetadata": {
- "id": [
- 3
- ],
- "nameSingular": [
- 1
+ "AvailableWorkspacesAndAccessTokens": {
+ "tokens": [
+ 251
],
- "namePlural": [
- 1
+ "availableWorkspaces": [
+ 224
],
- "labelSingular": [
+ "__typename": [
1
+ ]
+ },
+ "EmailPasswordResetLink": {
+ "success": [
+ 6
],
- "labelPlural": [
+ "__typename": [
1
- ],
- "icon": [
+ ]
+ },
+ "GetAuthorizationUrlForSSO": {
+ "authorizationURL": [
1
],
- "color": [
+ "type": [
1
],
- "isCustom": [
- 6
- ],
- "isActive": [
- 6
- ],
- "isSystem": [
- 6
+ "id": [
+ 3
],
- "isRemote": [
+ "__typename": [
+ 1
+ ]
+ },
+ "InvalidatePassword": {
+ "success": [
6
],
"__typename": [
1
]
},
- "MinimalView": {
- "id": [
- 3
- ],
- "type": [
- 61
- ],
- "key": [
- 62
+ "WorkspaceUrlsAndId": {
+ "workspaceUrls": [
+ 157
],
- "objectMetadataId": [
+ "id": [
3
],
"__typename": [
1
]
},
- "MinimalMetadata": {
- "objectMetadataItems": [
- 255
+ "SignUp": {
+ "loginToken": [
+ 250
],
- "views": [
+ "workspace": [
256
],
- "collectionHashes": [
- 253
+ "__typename": [
+ 1
+ ]
+ },
+ "TransientToken": {
+ "transientToken": [
+ 250
],
"__typename": [
1
]
},
- "Webhook": {
+ "ValidatePasswordResetToken": {
"id": [
3
],
- "targetUrl": [
- 1
- ],
- "operations": [
+ "email": [
1
],
- "description": [
- 1
+ "hasPassword": [
+ 6
],
- "secret": [
+ "__typename": [
1
+ ]
+ },
+ "VerifyEmailAndGetLoginToken": {
+ "loginToken": [
+ 250
],
- "applicationId": [
- 3
+ "workspaceUrls": [
+ 157
],
- "createdAt": [
- 4
+ "__typename": [
+ 1
+ ]
+ },
+ "ApiKeyToken": {
+ "token": [
+ 1
],
- "updatedAt": [
- 4
+ "__typename": [
+ 1
+ ]
+ },
+ "AuthTokens": {
+ "tokens": [
+ 251
],
- "deletedAt": [
- 4
+ "__typename": [
+ 1
+ ]
+ },
+ "LoginToken": {
+ "loginToken": [
+ 250
],
"__typename": [
1
]
},
- "BillingTrialPeriod": {
- "duration": [
+ "CheckUserExist": {
+ "exists": [
+ 6
+ ],
+ "availableWorkspacesCount": [
11
],
- "isCreditCardRequired": [
+ "isEmailVerified": [
6
],
"__typename": [
1
]
},
- "NativeModelCapabilities": {
- "webSearch": [
- 6
- ],
- "twitterSearch": [
+ "WorkspaceInviteHashValid": {
+ "isValid": [
6
],
"__typename": [
1
]
},
- "ClientAIModelConfig": {
- "modelId": [
- 1
+ "Impersonate": {
+ "loginToken": [
+ 250
],
- "label": [
- 1
+ "workspace": [
+ 256
],
- "modelFamily": [
- 262
- ],
- "modelFamilyLabel": [
- 1
- ],
- "sdkPackage": [
+ "__typename": [
1
- ],
- "inputCostPerMillionTokensInCredits": [
- 11
- ],
- "outputCostPerMillionTokensInCredits": [
- 11
- ],
- "nativeCapabilities": [
- 260
- ],
- "isDeprecated": [
- 6
- ],
- "isRecommended": [
- 6
- ],
- "providerName": [
+ ]
+ },
+ "DevelopmentApplication": {
+ "id": [
1
],
- "dataResidency": [
+ "universalIdentifier": [
1
],
"__typename": [
1
]
},
- "ModelFamily": {},
- "AdminAIModelConfig": {
- "modelId": [
+ "WorkspaceMigration": {
+ "applicationUniversalIdentifier": [
1
],
- "label": [
+ "actions": [
+ 15
+ ],
+ "__typename": [
1
+ ]
+ },
+ "ApplicationTokenPair": {
+ "applicationAccessToken": [
+ 250
],
- "modelFamily": [
- 262
+ "applicationRefreshToken": [
+ 250
],
- "modelFamilyLabel": [
+ "__typename": [
1
+ ]
+ },
+ "File": {
+ "id": [
+ 3
],
- "sdkPackage": [
+ "path": [
1
],
- "isAvailable": [
- 6
- ],
- "isAdminEnabled": [
- 6
- ],
- "isDeprecated": [
- 6
- ],
- "isRecommended": [
- 6
- ],
- "contextWindowTokens": [
- 11
- ],
- "maxOutputTokens": [
- 11
- ],
- "inputCostPerMillionTokens": [
- 11
- ],
- "outputCostPerMillionTokens": [
+ "size": [
11
],
- "providerName": [
- 1
+ "createdAt": [
+ 4
],
- "providerLabel": [
+ "__typename": [
1
- ],
+ ]
+ },
+ "MarketplaceAppField": {
"name": [
1
],
- "dataResidency": [
+ "type": [
1
],
- "__typename": [
+ "label": [
1
- ]
- },
- "AdminAIModels": {
- "models": [
- 263
],
- "defaultSmartModelId": [
+ "description": [
1
],
- "defaultFastModelId": [
+ "icon": [
1
],
- "__typename": [
+ "objectUniversalIdentifier": [
1
- ]
- },
- "Billing": {
- "isBillingEnabled": [
- 6
],
- "billingUrl": [
+ "universalIdentifier": [
1
],
- "trialPeriods": [
- 259
- ],
"__typename": [
1
]
},
- "Support": {
- "supportDriver": [
- 267
- ],
- "supportFrontChatId": [
+ "MarketplaceAppObject": {
+ "universalIdentifier": [
1
],
- "__typename": [
- 1
- ]
- },
- "SupportDriver": {},
- "Sentry": {
- "environment": [
+ "nameSingular": [
1
],
- "release": [
+ "namePlural": [
1
],
- "dsn": [
+ "labelSingular": [
1
],
- "__typename": [
+ "labelPlural": [
1
- ]
- },
- "Captcha": {
- "provider": [
- 270
],
- "siteKey": [
+ "description": [
1
],
- "__typename": [
+ "icon": [
1
- ]
- },
- "CaptchaDriverType": {},
- "ApiConfig": {
- "mutationMaximumAffectedRecords": [
- 11
+ ],
+ "fields": [
+ 271
],
"__typename": [
1
]
},
- "PublicFeatureFlagMetadata": {
- "label": [
+ "MarketplaceAppLogicFunction": {
+ "name": [
1
],
"description": [
1
],
- "imagePath": [
- 1
+ "timeoutSeconds": [
+ 21
],
"__typename": [
1
]
},
- "PublicFeatureFlag": {
- "key": [
- 157
+ "MarketplaceAppFrontComponent": {
+ "name": [
+ 1
],
- "metadata": [
- 272
+ "description": [
+ 1
],
"__typename": [
1
]
},
- "ClientConfig": {
- "appVersion": [
+ "MarketplaceAppRoleObjectPermission": {
+ "objectUniversalIdentifier": [
1
],
- "authProviders": [
- 159
- ],
- "billing": [
- 265
- ],
- "aiModels": [
- 261
+ "canReadObjectRecords": [
+ 6
],
- "signInPrefilled": [
+ "canUpdateObjectRecords": [
6
],
- "isMultiWorkspaceEnabled": [
+ "canSoftDeleteObjectRecords": [
6
],
- "isEmailVerificationRequired": [
+ "canDestroyObjectRecords": [
6
],
- "defaultSubdomain": [
+ "__typename": [
+ 1
+ ]
+ },
+ "MarketplaceAppRoleFieldPermission": {
+ "objectUniversalIdentifier": [
1
],
- "frontDomain": [
+ "fieldUniversalIdentifier": [
1
],
- "analyticsEnabled": [
+ "canReadFieldValue": [
6
],
- "support": [
- 266
- ],
- "isAttachmentPreviewEnabled": [
+ "canUpdateFieldValue": [
6
],
- "sentry": [
- 268
+ "__typename": [
+ 1
+ ]
+ },
+ "MarketplaceAppDefaultRole": {
+ "id": [
+ 1
],
- "captcha": [
- 269
+ "label": [
+ 1
],
- "api": [
- 271
+ "description": [
+ 1
],
- "canManageFeatureFlags": [
+ "canReadAllObjectRecords": [
6
],
- "publicFeatureFlags": [
- 273
- ],
- "isMicrosoftMessagingEnabled": [
+ "canUpdateAllObjectRecords": [
6
],
- "isMicrosoftCalendarEnabled": [
+ "canSoftDeleteAllObjectRecords": [
6
],
- "isGoogleMessagingEnabled": [
+ "canDestroyAllObjectRecords": [
6
],
- "isGoogleCalendarEnabled": [
+ "canUpdateAllSettings": [
6
],
- "isConfigVariablesInDbEnabled": [
+ "canAccessAllTools": [
6
],
- "isImapSmtpCaldavEnabled": [
- 6
+ "objectPermissions": [
+ 275
],
- "allowRequestsToTwentyIcons": [
- 6
+ "fieldPermissions": [
+ 276
],
- "calendarBookingPageId": [
+ "permissionFlags": [
1
],
- "isCloudflareIntegrationEnabled": [
- 6
- ],
- "isClickHouseConfigured": [
- 6
- ],
"__typename": [
1
]
},
- "ConfigVariable": {
+ "MarketplaceApp": {
+ "id": [
+ 1
+ ],
"name": [
1
],
"description": [
1
],
- "value": [
- 15
+ "icon": [
+ 1
],
- "isSensitive": [
- 6
+ "version": [
+ 1
],
- "source": [
- 276
+ "author": [
+ 1
],
- "isEnvOnly": [
- 6
+ "category": [
+ 1
],
- "type": [
- 277
+ "logo": [
+ 1
],
- "options": [
- 15
+ "screenshots": [
+ 1
],
- "__typename": [
+ "aboutDescription": [
1
- ]
- },
- "ConfigSource": {},
- "ConfigVariableType": {},
- "ConfigVariablesGroupData": {
- "variables": [
- 275
],
- "name": [
- 279
+ "providers": [
+ 1
],
- "description": [
+ "websiteUrl": [
1
],
- "isHiddenOnLoad": [
- 6
+ "termsUrl": [
+ 1
],
- "__typename": [
+ "objects": [
+ 272
+ ],
+ "fields": [
+ 271
+ ],
+ "logicFunctions": [
+ 273
+ ],
+ "frontComponents": [
+ 274
+ ],
+ "defaultRole": [
+ 277
+ ],
+ "sourcePackage": [
1
- ]
- },
- "ConfigVariablesGroup": {},
- "ConfigVariables": {
- "groups": [
- 278
+ ],
+ "isFeatured": [
+ 6
],
"__typename": [
1
]
},
- "JobOperationResult": {
- "jobId": [
+ "PublicDomain": {
+ "id": [
+ 3
+ ],
+ "domain": [
1
],
- "success": [
+ "isValidated": [
6
],
- "error": [
- 1
+ "createdAt": [
+ 4
],
"__typename": [
1
]
},
- "DeleteJobsResponse": {
- "deletedCount": [
- 21
+ "VerificationRecord": {
+ "type": [
+ 1
],
- "results": [
- 281
+ "key": [
+ 1
+ ],
+ "value": [
+ 1
+ ],
+ "priority": [
+ 11
],
"__typename": [
1
]
},
- "QueueJob": {
+ "EmailingDomain": {
"id": [
- 1
- ],
- "name": [
- 1
- ],
- "data": [
- 15
+ 3
],
- "state": [
- 284
+ "createdAt": [
+ 4
],
- "timestamp": [
- 11
+ "updatedAt": [
+ 4
],
- "failedReason": [
+ "domain": [
1
],
- "processedOn": [
- 11
+ "driver": [
+ 282
],
- "finishedOn": [
- 11
+ "status": [
+ 283
],
- "attemptsMade": [
- 11
+ "verificationRecords": [
+ 280
],
- "returnValue": [
- 15
+ "verifiedAt": [
+ 4
],
- "logs": [
+ "__typename": [
+ 1
+ ]
+ },
+ "EmailingDomainDriver": {},
+ "EmailingDomainStatus": {},
+ "AutocompleteResult": {
+ "text": [
1
],
- "stackTrace": [
+ "placeId": [
1
],
"__typename": [
1
]
},
- "JobState": {},
- "QueueRetentionConfig": {
- "completedMaxAge": [
- 11
- ],
- "completedMaxCount": [
- 11
- ],
- "failedMaxAge": [
+ "Location": {
+ "lat": [
11
],
- "failedMaxCount": [
+ "lng": [
11
],
"__typename": [
1
]
},
- "QueueJobsResponse": {
- "jobs": [
- 283
+ "PlaceDetailsResult": {
+ "state": [
+ 1
],
- "count": [
- 11
+ "postcode": [
+ 1
],
- "totalCount": [
- 11
+ "city": [
+ 1
],
- "hasMore": [
- 6
+ "country": [
+ 1
],
- "retentionConfig": [
+ "location": [
285
],
"__typename": [
1
]
},
- "RetryJobsResponse": {
- "retriedCount": [
- 21
+ "ConnectionParametersOutput": {
+ "host": [
+ 1
],
- "results": [
- 281
+ "port": [
+ 11
],
- "__typename": [
+ "username": [
1
- ]
- },
- "SystemHealthService": {
- "id": [
- 289
],
- "label": [
+ "password": [
1
],
- "status": [
- 290
+ "secure": [
+ 6
],
"__typename": [
1
]
},
- "HealthIndicatorId": {},
- "AdminPanelHealthServiceStatus": {},
- "SystemHealth": {
- "services": [
- 288
+ "ImapSmtpCaldavConnectionParameters": {
+ "IMAP": [
+ 287
+ ],
+ "SMTP": [
+ 287
+ ],
+ "CALDAV": [
+ 287
],
"__typename": [
1
]
},
- "UserInfo": {
+ "ConnectedImapSmtpCaldavAccount": {
"id": [
3
],
- "email": [
+ "handle": [
1
],
- "firstName": [
+ "provider": [
1
],
- "lastName": [
+ "accountOwnerId": [
+ 3
+ ],
+ "connectionParameters": [
+ 288
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "ImapSmtpCaldavConnectionSuccess": {
+ "success": [
+ 6
+ ],
+ "connectedAccountId": [
1
],
"__typename": [
1
]
},
- "WorkspaceInfo": {
+ "PostgresCredentials": {
"id": [
3
],
- "name": [
+ "user": [
1
],
- "allowImpersonation": [
- 6
- ],
- "logo": [
+ "password": [
1
],
- "totalUsers": [
- 11
+ "workspaceId": [
+ 3
],
- "workspaceUrls": [
- 145
+ "__typename": [
+ 1
+ ]
+ },
+ "UsageBreakdownItem": {
+ "key": [
+ 1
],
- "users": [
- 292
+ "label": [
+ 1
],
- "featureFlags": [
- 156
+ "creditsUsed": [
+ 11
],
"__typename": [
1
]
},
- "UserLookup": {
- "user": [
- 292
+ "UsageTimeSeries": {
+ "date": [
+ 1
],
- "workspaces": [
- 293
+ "creditsUsed": [
+ 11
],
"__typename": [
1
]
},
- "VersionInfo": {
- "currentVersion": [
+ "UsageUserDaily": {
+ "userWorkspaceId": [
1
],
- "latestVersion": [
- 1
+ "dailyUsage": [
+ 293
],
"__typename": [
1
]
},
- "AdminPanelWorkerQueueHealth": {
- "id": [
- 1
+ "UsageAnalytics": {
+ "usageByUser": [
+ 292
],
- "queueName": [
- 1
+ "usageByOperationType": [
+ 292
],
- "status": [
- 290
+ "timeSeries": [
+ 293
+ ],
+ "periodStart": [
+ 4
+ ],
+ "periodEnd": [
+ 4
+ ],
+ "userDailyUsage": [
+ 294
],
"__typename": [
1
]
},
- "AdminPanelHealthServiceData": {
+ "LogicFunctionLogs": {
+ "logs": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "FrontComponent": {
"id": [
- 289
+ 3
],
- "label": [
+ "name": [
1
],
"description": [
1
],
- "status": [
- 290
- ],
- "errorMessage": [
+ "sourceComponentPath": [
1
],
- "details": [
+ "builtComponentPath": [
1
],
- "queues": [
- 296
- ],
- "__typename": [
- 1
- ]
- },
- "ModelsDevModelSuggestion": {
- "modelId": [
+ "componentName": [
1
],
- "name": [
+ "builtComponentChecksum": [
1
],
- "inputCostPerMillionTokens": [
- 11
- ],
- "outputCostPerMillionTokens": [
- 11
- ],
- "cachedInputCostPerMillionTokens": [
- 11
+ "universalIdentifier": [
+ 3
],
- "cacheCreationCostPerMillionTokens": [
- 11
+ "applicationId": [
+ 3
],
- "contextWindowTokens": [
- 11
+ "createdAt": [
+ 4
],
- "maxOutputTokens": [
- 11
+ "updatedAt": [
+ 4
],
- "modalities": [
- 1
+ "isHeadless": [
+ 6
],
- "supportsReasoning": [
+ "usesSdkClient": [
6
],
+ "applicationTokenPair": [
+ 269
+ ],
"__typename": [
1
]
},
- "ModelsDevProviderSuggestion": {
+ "CommandMenuItem": {
"id": [
- 1
+ 3
],
- "modelCount": [
- 11
+ "workflowVersionId": [
+ 3
],
- "npm": [
- 1
+ "frontComponentId": [
+ 3
],
- "__typename": [
- 1
- ]
- },
- "QueueMetricsDataPoint": {
- "x": [
- 11
+ "frontComponent": [
+ 297
],
- "y": [
- 11
+ "engineComponentKey": [
+ 299
],
- "__typename": [
- 1
- ]
- },
- "QueueMetricsSeries": {
- "id": [
+ "label": [
1
],
- "data": [
- 300
- ],
- "__typename": [
+ "icon": [
1
- ]
- },
- "WorkerQueueMetrics": {
- "failed": [
- 11
- ],
- "completed": [
- 11
- ],
- "waiting": [
- 11
- ],
- "active": [
- 11
],
- "delayed": [
- 11
+ "shortLabel": [
+ 1
],
- "failureRate": [
+ "position": [
11
],
- "failedData": [
- 11
+ "isPinned": [
+ 6
],
- "completedData": [
- 11
+ "availabilityType": [
+ 300
],
- "__typename": [
- 1
- ]
- },
- "QueueMetricsData": {
- "queueName": [
+ "hotKeys": [
1
],
- "workers": [
- 11
- ],
- "timeRange": [
- 304
+ "conditionalAvailabilityExpression": [
+ 1
],
- "details": [
- 302
+ "availabilityObjectMetadataId": [
+ 3
],
- "data": [
- 301
+ "applicationId": [
+ 3
],
- "__typename": [
- 1
- ]
- },
- "QueueMetricsTimeRange": {},
- "Impersonate": {
- "loginToken": [
- 192
+ "createdAt": [
+ 4
],
- "workspace": [
- 198
+ "updatedAt": [
+ 4
],
"__typename": [
1
]
},
- "DevelopmentApplication": {
- "id": [
+ "EngineComponentKey": {},
+ "CommandMenuItemAvailabilityType": {},
+ "ToolIndexEntry": {
+ "name": [
1
],
- "universalIdentifier": [
+ "description": [
1
],
- "__typename": [
+ "category": [
1
- ]
- },
- "WorkspaceMigration": {
- "applicationUniversalIdentifier": [
+ ],
+ "objectName": [
1
],
- "actions": [
+ "inputSchema": [
15
],
"__typename": [
1
]
},
- "File": {
+ "AgentMessagePart": {
"id": [
3
],
- "path": [
- 1
- ],
- "size": [
- 11
- ],
- "createdAt": [
- 4
+ "messageId": [
+ 3
],
- "__typename": [
- 1
- ]
- },
- "MarketplaceAppField": {
- "name": [
- 1
+ "orderIndex": [
+ 21
],
"type": [
1
],
- "label": [
+ "textContent": [
1
],
- "description": [
+ "reasoningContent": [
1
],
- "icon": [
+ "toolName": [
1
],
- "objectUniversalIdentifier": [
+ "toolCallId": [
1
],
- "universalIdentifier": [
+ "toolInput": [
+ 15
+ ],
+ "toolOutput": [
+ 15
+ ],
+ "state": [
1
],
- "__typename": [
- 1
- ]
- },
- "MarketplaceAppObject": {
- "universalIdentifier": [
+ "errorMessage": [
1
],
- "nameSingular": [
+ "errorDetails": [
+ 15
+ ],
+ "sourceUrlSourceId": [
1
],
- "namePlural": [
+ "sourceUrlUrl": [
1
],
- "labelSingular": [
+ "sourceUrlTitle": [
1
],
- "labelPlural": [
+ "sourceDocumentSourceId": [
1
],
- "description": [
+ "sourceDocumentMediaType": [
1
],
- "icon": [
+ "sourceDocumentTitle": [
1
],
- "fields": [
- 309
+ "sourceDocumentFilename": [
+ 1
],
- "__typename": [
+ "fileMediaType": [
1
- ]
- },
- "MarketplaceAppLogicFunction": {
- "name": [
+ ],
+ "fileFilename": [
1
],
- "description": [
+ "fileId": [
+ 3
+ ],
+ "fileUrl": [
1
],
- "timeoutSeconds": [
- 21
+ "providerMetadata": [
+ 15
+ ],
+ "createdAt": [
+ 4
],
"__typename": [
1
]
},
- "MarketplaceAppFrontComponent": {
- "name": [
+ "ChannelSyncSuccess": {
+ "success": [
+ 6
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "BarChartSeries": {
+ "key": [
1
],
- "description": [
+ "label": [
1
],
"__typename": [
1
]
},
- "MarketplaceAppRoleObjectPermission": {
- "objectUniversalIdentifier": [
+ "BarChartData": {
+ "data": [
+ 15
+ ],
+ "indexBy": [
1
],
- "canReadObjectRecords": [
- 6
+ "keys": [
+ 1
],
- "canUpdateObjectRecords": [
+ "series": [
+ 304
+ ],
+ "xAxisLabel": [
+ 1
+ ],
+ "yAxisLabel": [
+ 1
+ ],
+ "showLegend": [
6
],
- "canSoftDeleteObjectRecords": [
+ "showDataLabels": [
6
],
- "canDestroyObjectRecords": [
+ "layout": [
+ 95
+ ],
+ "groupMode": [
+ 94
+ ],
+ "hasTooManyGroups": [
6
],
+ "formattedToRawLookup": [
+ 15
+ ],
"__typename": [
1
]
},
- "MarketplaceAppRoleFieldPermission": {
- "objectUniversalIdentifier": [
- 1
- ],
- "fieldUniversalIdentifier": [
+ "LineChartDataPoint": {
+ "x": [
1
],
- "canReadFieldValue": [
- 6
- ],
- "canUpdateFieldValue": [
- 6
+ "y": [
+ 11
],
"__typename": [
1
]
},
- "MarketplaceAppDefaultRole": {
+ "LineChartSeries": {
"id": [
1
],
"label": [
1
],
- "description": [
- 1
+ "data": [
+ 306
],
- "canReadAllObjectRecords": [
- 6
+ "__typename": [
+ 1
+ ]
+ },
+ "LineChartData": {
+ "series": [
+ 307
],
- "canUpdateAllObjectRecords": [
- 6
+ "xAxisLabel": [
+ 1
],
- "canSoftDeleteAllObjectRecords": [
- 6
+ "yAxisLabel": [
+ 1
],
- "canDestroyAllObjectRecords": [
+ "showLegend": [
6
],
- "canUpdateAllSettings": [
+ "showDataLabels": [
6
],
- "canAccessAllTools": [
+ "hasTooManyGroups": [
6
],
- "objectPermissions": [
- 313
- ],
- "fieldPermissions": [
- 314
- ],
- "permissionFlags": [
- 1
+ "formattedToRawLookup": [
+ 15
],
"__typename": [
1
]
},
- "MarketplaceApp": {
+ "PieChartDataItem": {
"id": [
1
],
- "name": [
- 1
+ "value": [
+ 11
],
- "description": [
+ "__typename": [
1
+ ]
+ },
+ "PieChartData": {
+ "data": [
+ 309
],
- "icon": [
- 1
+ "showLegend": [
+ 6
],
- "version": [
- 1
+ "showDataLabels": [
+ 6
],
- "author": [
- 1
+ "showCenterMetric": [
+ 6
],
- "category": [
- 1
+ "hasTooManyGroups": [
+ 6
],
- "logo": [
- 1
+ "formattedToRawLookup": [
+ 15
],
- "screenshots": [
+ "__typename": [
1
+ ]
+ },
+ "DuplicatedDashboard": {
+ "id": [
+ 3
],
- "aboutDescription": [
+ "title": [
1
],
- "providers": [
- 1
+ "pageLayoutId": [
+ 3
],
- "websiteUrl": [
+ "position": [
+ 11
+ ],
+ "createdAt": [
1
],
- "termsUrl": [
+ "updatedAt": [
1
],
- "objects": [
- 310
+ "__typename": [
+ 1
+ ]
+ },
+ "EventLogRecord": {
+ "event": [
+ 1
],
- "fields": [
- 309
+ "timestamp": [
+ 4
],
- "logicFunctions": [
- 311
+ "userId": [
+ 1
],
- "frontComponents": [
- 312
+ "properties": [
+ 15
],
- "defaultRole": [
- 315
+ "recordId": [
+ 1
],
- "sourcePackage": [
+ "objectMetadataId": [
1
],
- "isFeatured": [
+ "isCustom": [
6
],
"__typename": [
1
]
},
- "UsageBreakdownItem": {
- "key": [
- 1
- ],
- "label": [
+ "EventLogPageInfo": {
+ "endCursor": [
1
],
- "creditsUsed": [
- 11
+ "hasNextPage": [
+ 6
],
"__typename": [
1
]
},
- "UsageTimeSeries": {
- "date": [
- 1
+ "EventLogQueryResult": {
+ "records": [
+ 312
],
- "creditsUsed": [
- 11
+ "totalCount": [
+ 21
+ ],
+ "pageInfo": [
+ 313
],
"__typename": [
1
]
},
- "UsageUserDaily": {
- "userWorkspaceId": [
+ "Skill": {
+ "id": [
+ 3
+ ],
+ "name": [
1
],
- "dailyUsage": [
- 318
+ "label": [
+ 1
],
- "__typename": [
+ "icon": [
1
- ]
- },
- "UsageAnalytics": {
- "usageByUser": [
- 317
],
- "usageByOperationType": [
- 317
+ "description": [
+ 1
],
- "timeSeries": [
- 318
+ "content": [
+ 1
],
- "periodStart": [
- 4
+ "isCustom": [
+ 6
],
- "periodEnd": [
+ "isActive": [
+ 6
+ ],
+ "applicationId": [
+ 3
+ ],
+ "createdAt": [
4
],
- "userDailyUsage": [
- 319
+ "updatedAt": [
+ 4
],
"__typename": [
1
]
},
- "PublicDomain": {
+ "AgentChatThread": {
"id": [
3
],
- "domain": [
+ "title": [
1
],
- "isValidated": [
- 6
+ "totalInputTokens": [
+ 21
],
- "createdAt": [
- 4
+ "totalOutputTokens": [
+ 21
],
- "__typename": [
- 1
- ]
- },
- "VerificationRecord": {
- "type": [
- 1
+ "contextWindowTokens": [
+ 21
],
- "key": [
- 1
+ "conversationSize": [
+ 21
],
- "value": [
- 1
+ "totalInputCredits": [
+ 11
],
- "priority": [
+ "totalOutputCredits": [
11
],
+ "createdAt": [
+ 4
+ ],
+ "updatedAt": [
+ 4
+ ],
"__typename": [
1
]
},
- "EmailingDomain": {
+ "AgentMessage": {
"id": [
3
],
- "createdAt": [
- 4
- ],
- "updatedAt": [
- 4
+ "threadId": [
+ 3
],
- "domain": [
- 1
+ "turnId": [
+ 3
],
- "driver": [
- 324
+ "agentId": [
+ 3
],
- "status": [
- 325
+ "role": [
+ 1
],
- "verificationRecords": [
- 322
+ "parts": [
+ 302
],
- "verifiedAt": [
+ "createdAt": [
4
],
"__typename": [
1
]
},
- "EmailingDomainDriver": {},
- "EmailingDomainStatus": {},
- "AutocompleteResult": {
- "text": [
+ "AISystemPromptSection": {
+ "title": [
1
],
- "placeId": [
+ "content": [
1
],
+ "estimatedTokenCount": [
+ 21
+ ],
"__typename": [
1
]
},
- "Location": {
- "lat": [
- 11
+ "AISystemPromptPreview": {
+ "sections": [
+ 318
],
- "lng": [
- 11
+ "estimatedTokenCount": [
+ 21
],
"__typename": [
1
]
},
- "PlaceDetailsResult": {
- "state": [
- 1
- ],
- "postcode": [
- 1
+ "AgentChatThreadEdge": {
+ "node": [
+ 316
],
- "city": [
- 1
+ "cursor": [
+ 40
],
- "country": [
+ "__typename": [
1
+ ]
+ },
+ "AgentChatThreadConnection": {
+ "pageInfo": [
+ 231
],
- "location": [
- 327
+ "edges": [
+ 320
],
"__typename": [
1
]
},
- "ConnectionParametersOutput": {
- "host": [
- 1
+ "AgentTurnEvaluation": {
+ "id": [
+ 3
],
- "port": [
- 11
+ "turnId": [
+ 3
],
- "username": [
- 1
+ "score": [
+ 21
],
- "password": [
+ "comment": [
1
],
- "secure": [
- 6
+ "createdAt": [
+ 4
],
"__typename": [
1
]
},
- "ImapSmtpCaldavConnectionParameters": {
- "IMAP": [
- 329
+ "AgentTurn": {
+ "id": [
+ 3
],
- "SMTP": [
- 329
+ "threadId": [
+ 3
],
- "CALDAV": [
- 329
+ "agentId": [
+ 3
+ ],
+ "evaluations": [
+ 322
+ ],
+ "messages": [
+ 317
+ ],
+ "createdAt": [
+ 4
],
"__typename": [
1
]
},
- "ConnectedImapSmtpCaldavAccount": {
+ "CalendarChannel": {
"id": [
3
],
"handle": [
1
],
- "provider": [
- 1
+ "syncStatus": [
+ 325
],
- "accountOwnerId": [
- 3
+ "syncStage": [
+ 326
],
- "connectionParameters": [
- 330
+ "visibility": [
+ 327
],
- "__typename": [
- 1
- ]
- },
- "ImapSmtpCaldavConnectionSuccess": {
- "success": [
+ "isContactAutoCreationEnabled": [
6
],
+ "contactAutoCreationPolicy": [
+ 328
+ ],
+ "isSyncEnabled": [
+ 6
+ ],
+ "syncedAt": [
+ 4
+ ],
+ "syncStageStartedAt": [
+ 4
+ ],
+ "throttleFailureCount": [
+ 11
+ ],
"connectedAccountId": [
- 1
+ 3
+ ],
+ "createdAt": [
+ 4
+ ],
+ "updatedAt": [
+ 4
],
"__typename": [
1
]
},
- "PostgresCredentials": {
+ "CalendarChannelSyncStatus": {},
+ "CalendarChannelSyncStage": {},
+ "CalendarChannelVisibility": {},
+ "CalendarChannelContactAutoCreationPolicy": {},
+ "ConnectedAccountDTO": {
"id": [
3
],
- "user": [
+ "handle": [
1
],
- "password": [
+ "provider": [
1
],
- "workspaceId": [
- 3
+ "lastCredentialsRefreshedAt": [
+ 4
],
- "__typename": [
- 1
- ]
- },
- "ChannelSyncSuccess": {
- "success": [
- 6
+ "authFailedAt": [
+ 4
],
- "__typename": [
- 1
- ]
- },
- "BarChartSeries": {
- "key": [
+ "handleAliases": [
1
],
- "label": [
+ "scopes": [
1
],
- "__typename": [
- 1
- ]
- },
- "BarChartData": {
- "data": [
- 15
+ "lastSignedInAt": [
+ 4
],
- "indexBy": [
- 1
+ "userWorkspaceId": [
+ 3
],
- "keys": [
- 1
+ "createdAt": [
+ 4
],
- "series": [
- 335
+ "updatedAt": [
+ 4
],
- "xAxisLabel": [
+ "__typename": [
1
+ ]
+ },
+ "MessageChannel": {
+ "id": [
+ 3
],
- "yAxisLabel": [
+ "visibility": [
+ 331
+ ],
+ "handle": [
1
],
- "showLegend": [
- 6
+ "type": [
+ 332
],
- "showDataLabels": [
+ "isContactAutoCreationEnabled": [
6
],
- "layout": [
- 95
+ "contactAutoCreationPolicy": [
+ 333
],
- "groupMode": [
- 94
+ "messageFolderImportPolicy": [
+ 334
],
- "hasTooManyGroups": [
+ "excludeNonProfessionalEmails": [
6
],
- "formattedToRawLookup": [
- 15
+ "excludeGroupEmails": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "LineChartDataPoint": {
- "x": [
- 1
+ "pendingGroupEmailsAction": [
+ 335
],
- "y": [
- 11
+ "isSyncEnabled": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "LineChartSeries": {
- "id": [
- 1
+ "syncedAt": [
+ 4
],
- "label": [
- 1
+ "syncStatus": [
+ 336
],
- "data": [
+ "syncStage": [
337
],
- "__typename": [
- 1
- ]
- },
- "LineChartData": {
- "series": [
- 338
- ],
- "xAxisLabel": [
- 1
+ "syncStageStartedAt": [
+ 4
],
- "yAxisLabel": [
- 1
+ "throttleFailureCount": [
+ 11
],
- "showLegend": [
- 6
+ "throttleRetryAfter": [
+ 4
],
- "showDataLabels": [
- 6
+ "connectedAccountId": [
+ 3
],
- "hasTooManyGroups": [
- 6
+ "createdAt": [
+ 4
],
- "formattedToRawLookup": [
- 15
+ "updatedAt": [
+ 4
],
"__typename": [
1
]
},
- "PieChartDataItem": {
+ "MessageChannelVisibility": {},
+ "MessageChannelType": {},
+ "MessageChannelContactAutoCreationPolicy": {},
+ "MessageFolderImportPolicy": {},
+ "MessageChannelPendingGroupEmailsAction": {},
+ "MessageChannelSyncStatus": {},
+ "MessageChannelSyncStage": {},
+ "MessageFolder": {
"id": [
- 1
- ],
- "value": [
- 11
+ 3
],
- "__typename": [
+ "name": [
1
- ]
- },
- "PieChartData": {
- "data": [
- 340
- ],
- "showLegend": [
- 6
- ],
- "showDataLabels": [
- 6
],
- "showCenterMetric": [
+ "isSentFolder": [
6
],
- "hasTooManyGroups": [
+ "isSynced": [
6
],
- "formattedToRawLookup": [
- 15
- ],
- "__typename": [
- 1
- ]
- },
- "DuplicatedDashboard": {
- "id": [
+ "parentFolderId": [
3
],
- "title": [
+ "externalId": [
1
],
- "pageLayoutId": [
- 3
+ "pendingSyncAction": [
+ 339
],
- "position": [
- 11
+ "messageChannelId": [
+ 3
],
"createdAt": [
- 1
+ 4
],
"updatedAt": [
+ 4
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "MessageFolderPendingSyncAction": {},
+ "CollectionHash": {
+ "collectionName": [
+ 341
+ ],
+ "hash": [
1
],
"__typename": [
1
]
},
- "EventLogRecord": {
- "event": [
+ "AllMetadataName": {},
+ "MinimalObjectMetadata": {
+ "id": [
+ 3
+ ],
+ "nameSingular": [
1
],
- "timestamp": [
- 4
+ "namePlural": [
+ 1
],
- "userId": [
+ "labelSingular": [
1
],
- "properties": [
- 15
+ "labelPlural": [
+ 1
],
- "recordId": [
+ "icon": [
1
],
- "objectMetadataId": [
+ "color": [
1
],
"isCustom": [
6
],
- "__typename": [
- 1
- ]
- },
- "EventLogPageInfo": {
- "endCursor": [
- 1
+ "isActive": [
+ 6
],
- "hasNextPage": [
+ "isSystem": [
+ 6
+ ],
+ "isRemote": [
6
],
"__typename": [
1
]
},
- "EventLogQueryResult": {
- "records": [
- 343
+ "MinimalView": {
+ "id": [
+ 3
],
- "totalCount": [
- 21
+ "type": [
+ 61
],
- "pageInfo": [
- 344
+ "key": [
+ 62
+ ],
+ "objectMetadataId": [
+ 3
],
"__typename": [
1
]
},
- "Query": {
- "navigationMenuItems": [
- 209
+ "MinimalMetadata": {
+ "objectMetadataItems": [
+ 342
],
- "navigationMenuItem": [
- 209,
- {
- "id": [
- 3,
- "UUID!"
- ]
- }
+ "views": [
+ 343
],
- "getPageLayoutWidgets": [
- 75,
- {
- "pageLayoutTabId": [
- 1,
- "String!"
- ]
- }
+ "collectionHashes": [
+ 340
],
- "getPageLayoutWidget": [
- 75,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "__typename": [
+ 1
+ ]
+ },
+ "Webhook": {
+ "id": [
+ 3
],
- "getPageLayoutTabs": [
- 112,
- {
- "pageLayoutId": [
- 1,
- "String!"
- ]
- }
+ "targetUrl": [
+ 1
],
- "getPageLayoutTab": [
- 112,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "operations": [
+ 1
],
- "getPageLayouts": [
- 113,
- {
- "objectMetadataId": [
- 1
- ],
- "pageLayoutType": [
- 114
- ]
- }
+ "description": [
+ 1
],
- "getPageLayout": [
- 113,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "secret": [
+ 1
],
- "getViews": [
- 60,
- {
- "objectMetadataId": [
- 1
- ],
- "viewTypes": [
- 61,
- "[ViewType!]"
- ]
- }
+ "applicationId": [
+ 3
],
- "getView": [
- 60,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "createdAt": [
+ 4
],
- "getViewSorts": [
- 57,
- {
- "viewId": [
- 1
- ]
- }
+ "updatedAt": [
+ 4
],
- "getViewSort": [
- 57,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "deletedAt": [
+ 4
],
- "getViewFieldGroups": [
- 59,
- {
- "viewId": [
- 1,
- "String!"
- ]
- }
+ "__typename": [
+ 1
+ ]
+ },
+ "Query": {
+ "navigationMenuItems": [
+ 145
],
- "getViewFieldGroup": [
- 59,
+ "navigationMenuItem": [
+ 145,
{
"id": [
- 1,
- "String!"
- ]
- }
- ],
- "findOneLogicFunction": [
- 32,
- {
- "input": [
- 347,
- "LogicFunctionIdInput!"
- ]
- }
- ],
- "findManyLogicFunctions": [
- 32
- ],
- "getAvailablePackages": [
- 15,
- {
- "input": [
- 347,
- "LogicFunctionIdInput!"
+ 3,
+ "UUID!"
]
}
],
- "getLogicFunctionSourceCode": [
- 1,
+ "getViewFilterGroups": [
+ 52,
{
- "input": [
- 347,
- "LogicFunctionIdInput!"
+ "viewId": [
+ 1
]
}
],
- "commandMenuItems": [
- 226
- ],
- "commandMenuItem": [
- 226,
+ "getViewFilterGroup": [
+ 52,
{
"id": [
- 3,
- "UUID!"
+ 1,
+ "String!"
]
}
],
- "frontComponents": [
- 225
- ],
- "frontComponent": [
- 225,
+ "getViewFilters": [
+ 54,
{
- "id": [
- 3,
- "UUID!"
+ "viewId": [
+ 1
]
}
],
- "objectRecordCounts": [
- 169
- ],
- "object": [
- 46,
+ "getViewFilter": [
+ 54,
{
"id": [
- 3,
- "UUID!"
+ 1,
+ "String!"
]
}
],
- "objects": [
- 170,
+ "getViews": [
+ 60,
{
- "paging": [
- 39,
- "CursorPaging!"
+ "objectMetadataId": [
+ 1
],
- "filter": [
- 41,
- "ObjectFilter!"
+ "viewTypes": [
+ 61,
+ "[ViewType!]"
]
}
],
- "getViewFields": [
- 50,
+ "getView": [
+ 60,
{
- "viewId": [
+ "id": [
1,
"String!"
]
}
],
- "getViewField": [
- 50,
+ "getViewSorts": [
+ 57,
{
- "id": [
- 1,
- "String!"
+ "viewId": [
+ 1
]
}
],
- "index": [
- 37,
+ "getViewSort": [
+ 57,
{
"id": [
- 3,
- "UUID!"
+ 1,
+ "String!"
]
}
],
- "indexMetadatas": [
- 164,
+ "getViewFieldGroups": [
+ 59,
{
- "paging": [
- 39,
- "CursorPaging!"
- ],
- "filter": [
- 48,
- "IndexFilter!"
+ "viewId": [
+ 1,
+ "String!"
]
}
],
- "findManyAgents": [
- 25
- ],
- "findOneAgent": [
- 25,
+ "getViewFieldGroup": [
+ 59,
{
- "input": [
- 349,
- "AgentIdInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "billingPortalSession": [
- 135,
+ "apiKeys": [
+ 2
+ ],
+ "apiKey": [
+ 2,
{
- "returnUrlPath": [
- 1
+ "input": [
+ 347,
+ "GetApiKeyInput!"
]
}
],
- "listPlans": [
- 134
- ],
- "getMeteredProductsUsage": [
- 133
- ],
"enterprisePortalSession": [
1,
{
@@ -6406,8 +6254,19 @@ export default {
"enterpriseSubscriptionStatus": [
138
],
- "getRoles": [
- 29
+ "billingPortalSession": [
+ 135,
+ {
+ "returnUrlPath": [
+ 1
+ ]
+ }
+ ],
+ "listPlans": [
+ 134
+ ],
+ "getMeteredProductsUsage": [
+ 133
],
"findWorkspaceInvitations": [
142
@@ -6415,62 +6274,55 @@ export default {
"getApprovedAccessDomains": [
140
],
- "apiKeys": [
- 2
- ],
- "apiKey": [
- 2,
+ "getPageLayoutTabs": [
+ 112,
{
- "input": [
- 350,
- "GetApiKeyInput!"
+ "pageLayoutId": [
+ 1,
+ "String!"
]
}
],
- "getToolIndex": [
- 221
- ],
- "getToolInputSchema": [
- 15,
+ "getPageLayoutTab": [
+ 112,
{
- "toolName": [
+ "id": [
1,
"String!"
]
}
],
- "field": [
- 34,
+ "getPageLayouts": [
+ 113,
{
- "id": [
- 3,
- "UUID!"
+ "objectMetadataId": [
+ 1
+ ],
+ "pageLayoutType": [
+ 114
]
}
],
- "fields": [
- 182,
+ "getPageLayout": [
+ 113,
{
- "paging": [
- 39,
- "CursorPaging!"
- ],
- "filter": [
- 47,
- "FieldFilter!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "getViewGroups": [
- 56,
+ "getPageLayoutWidgets": [
+ 75,
{
- "viewId": [
- 1
+ "pageLayoutTabId": [
+ 1,
+ "String!"
]
}
],
- "getViewGroup": [
- 56,
+ "getPageLayoutWidget": [
+ 75,
{
"id": [
1,
@@ -6478,155 +6330,193 @@ export default {
]
}
],
- "getViewFilters": [
- 54,
+ "findOneLogicFunction": [
+ 32,
{
- "viewId": [
- 1
+ "input": [
+ 348,
+ "LogicFunctionIdInput!"
]
}
],
- "getViewFilter": [
- 54,
+ "findManyLogicFunctions": [
+ 32
+ ],
+ "getAvailablePackages": [
+ 15,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 348,
+ "LogicFunctionIdInput!"
]
}
],
- "getViewFilterGroups": [
- 52,
+ "getLogicFunctionSourceCode": [
+ 1,
{
- "viewId": [
- 1
+ "input": [
+ 348,
+ "LogicFunctionIdInput!"
]
}
],
- "getViewFilterGroup": [
- 52,
+ "commandMenuItems": [
+ 298
+ ],
+ "commandMenuItem": [
+ 298,
{
"id": [
- 1,
- "String!"
+ 3,
+ "UUID!"
]
}
],
- "currentUser": [
- 69
+ "frontComponents": [
+ 297
],
- "currentWorkspace": [
- 66
+ "frontComponent": [
+ 297,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "objectRecordCounts": [
+ 237
+ ],
+ "object": [
+ 46,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
],
- "getPublicWorkspaceDataByDomain": [
- 161,
+ "objects": [
+ 238,
{
- "origin": [
- 1
+ "paging": [
+ 39,
+ "CursorPaging!"
+ ],
+ "filter": [
+ 41,
+ "ObjectFilter!"
]
}
],
- "findApplicationRegistrationByClientId": [
- 178,
+ "getViewFields": [
+ 50,
{
- "clientId": [
+ "viewId": [
1,
"String!"
]
}
],
- "findApplicationRegistrationByUniversalIdentifier": [
- 7,
+ "getViewField": [
+ 50,
{
- "universalIdentifier": [
+ "id": [
1,
"String!"
]
}
],
- "findManyApplicationRegistrations": [
- 7
- ],
- "findOneApplicationRegistration": [
- 7,
+ "index": [
+ 37,
{
"id": [
- 1,
- "String!"
+ 3,
+ "UUID!"
]
}
],
- "findApplicationRegistrationStats": [
- 176,
+ "indexMetadatas": [
+ 232,
{
- "id": [
- 1,
- "String!"
+ "paging": [
+ 39,
+ "CursorPaging!"
+ ],
+ "filter": [
+ 48,
+ "IndexFilter!"
]
}
],
- "findApplicationRegistrationVariables": [
- 5,
+ "findManyAgents": [
+ 25
+ ],
+ "findOneAgent": [
+ 25,
{
- "applicationRegistrationId": [
- 1,
- "String!"
+ "input": [
+ 350,
+ "AgentIdInput!"
]
}
],
- "applicationRegistrationTarballUrl": [
- 1,
+ "getRoles": [
+ 29
+ ],
+ "getToolIndex": [
+ 301
+ ],
+ "getToolInputSchema": [
+ 15,
{
- "id": [
+ "toolName": [
1,
"String!"
]
}
],
- "checkUserExists": [
- 206,
+ "field": [
+ 34,
{
- "email": [
- 1,
- "String!"
- ],
- "captchaToken": [
- 1
+ "id": [
+ 3,
+ "UUID!"
]
}
],
- "checkWorkspaceInviteHashIsValid": [
- 207,
+ "fields": [
+ 245,
{
- "inviteHash": [
- 1,
- "String!"
+ "paging": [
+ 39,
+ "CursorPaging!"
+ ],
+ "filter": [
+ 47,
+ "FieldFilter!"
]
}
],
- "findWorkspaceFromInviteHash": [
- 66,
+ "getViewGroups": [
+ 56,
{
- "inviteHash": [
- 1,
- "String!"
+ "viewId": [
+ 1
]
}
],
- "validatePasswordResetToken": [
- 201,
+ "getViewGroup": [
+ 56,
{
- "passwordResetToken": [
+ "id": [
1,
"String!"
]
}
],
- "getSSOIdentityProviders": [
- 186
- ],
"myMessageFolders": [
- 251,
+ 338,
{
"messageChannelId": [
3
@@ -6634,7 +6524,7 @@ export default {
}
],
"myMessageChannels": [
- 243,
+ 330,
{
"connectedAccountId": [
3
@@ -6642,13 +6532,13 @@ export default {
}
],
"myConnectedAccounts": [
- 242
+ 329
],
"connectedAccounts": [
- 242
+ 329
],
"myCalendarChannels": [
- 237,
+ 324,
{
"connectedAccountId": [
3
@@ -6656,10 +6546,10 @@ export default {
}
],
"webhooks": [
- 258
+ 345
],
"webhook": [
- 258,
+ 345,
{
"id": [
3,
@@ -6668,10 +6558,10 @@ export default {
}
],
"minimalMetadata": [
- 257
+ 344
],
"chatThread": [
- 229,
+ 316,
{
"id": [
3,
@@ -6680,7 +6570,7 @@ export default {
}
],
"chatMessages": [
- 230,
+ 317,
{
"threadId": [
3,
@@ -6689,13 +6579,13 @@ export default {
}
],
"getAISystemPromptPreview": [
- 232
+ 319
],
"skills": [
- 223
+ 315
],
"skill": [
- 223,
+ 315,
{
"id": [
3,
@@ -6704,7 +6594,7 @@ export default {
}
],
"chatThreads": [
- 234,
+ 321,
{
"paging": [
39,
@@ -6721,7 +6611,7 @@ export default {
}
],
"agentTurns": [
- 236,
+ 323,
{
"agentId": [
3,
@@ -6730,7 +6620,7 @@ export default {
}
],
"eventLogs": [
- 345,
+ 314,
{
"input": [
358,
@@ -6739,7 +6629,7 @@ export default {
}
],
"pieChartData": [
- 341,
+ 310,
{
"input": [
362,
@@ -6748,7 +6638,7 @@ export default {
}
],
"lineChartData": [
- 339,
+ 308,
{
"input": [
363,
@@ -6757,7 +6647,7 @@ export default {
}
],
"barChartData": [
- 336,
+ 305,
{
"input": [
364,
@@ -6765,8 +6655,121 @@ export default {
]
}
],
+ "checkUserExists": [
+ 264,
+ {
+ "email": [
+ 1,
+ "String!"
+ ],
+ "captchaToken": [
+ 1
+ ]
+ }
+ ],
+ "checkWorkspaceInviteHashIsValid": [
+ 265,
+ {
+ "inviteHash": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findWorkspaceFromInviteHash": [
+ 66,
+ {
+ "inviteHash": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "validatePasswordResetToken": [
+ 259,
+ {
+ "passwordResetToken": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findApplicationRegistrationByClientId": [
+ 214,
+ {
+ "clientId": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findApplicationRegistrationByUniversalIdentifier": [
+ 7,
+ {
+ "universalIdentifier": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findManyApplicationRegistrations": [
+ 7
+ ],
+ "findOneApplicationRegistration": [
+ 7,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findApplicationRegistrationStats": [
+ 212,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "findApplicationRegistrationVariables": [
+ 5,
+ {
+ "applicationRegistrationId": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "applicationRegistrationTarballUrl": [
+ 1,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "currentUser": [
+ 69
+ ],
+ "currentWorkspace": [
+ 66
+ ],
+ "getPublicWorkspaceDataByDomain": [
+ 163,
+ {
+ "origin": [
+ 1
+ ]
+ }
+ ],
+ "getSSOIdentityProviders": [
+ 220
+ ],
"getConnectedImapSmtpCaldavAccount": [
- 331,
+ 289,
{
"id": [
3,
@@ -6775,7 +6778,7 @@ export default {
}
],
"getAutoCompleteAddress": [
- 326,
+ 284,
{
"address": [
1,
@@ -6794,7 +6797,7 @@ export default {
}
],
"getAddressDetails": [
- 328,
+ 286,
{
"placeId": [
1,
@@ -6807,40 +6810,40 @@ export default {
}
],
"getConfigVariablesGrouped": [
- 280
+ 185
],
"getSystemHealthStatus": [
- 291
+ 196
],
"getIndicatorHealthStatus": [
- 297,
+ 203,
{
"indicatorId": [
- 289,
+ 194,
"HealthIndicatorId!"
]
}
],
"getQueueMetrics": [
- 303,
+ 209,
{
"queueName": [
1,
"String!"
],
"timeRange": [
- 304
+ 210
]
}
],
"versionInfo": [
- 295
+ 201
],
"getAdminAiModels": [
- 264
+ 168
],
"getDatabaseConfigVariable": [
- 275,
+ 180,
{
"key": [
1,
@@ -6849,14 +6852,14 @@ export default {
}
],
"getQueueJobs": [
- 286,
+ 191,
{
"queueName": [
1,
"String!"
],
"state": [
- 284,
+ 189,
"JobState!"
],
"limit": [
@@ -6874,10 +6877,10 @@ export default {
15
],
"getModelsDevProviders": [
- 299
+ 205
],
"getModelsDevSuggestions": [
- 298,
+ 204,
{
"providerType": [
1,
@@ -6886,19 +6889,19 @@ export default {
}
],
"getPostgresCredentials": [
- 333
+ 291
],
"findManyPublicDomains": [
- 321
+ 279
],
"getEmailingDomains": [
- 323
+ 281
],
"findManyMarketplaceApps": [
- 316
+ 278
],
"findOneMarketplaceApp": [
- 316,
+ 278,
{
"universalIdentifier": [
1,
@@ -6921,7 +6924,7 @@ export default {
}
],
"getUsageAnalytics": [
- 320,
+ 295,
{
"input": [
365
@@ -6932,24 +6935,24 @@ export default {
1
]
},
- "LogicFunctionIdInput": {
+ "GetApiKeyInput": {
"id": [
- 348
+ 3
],
"__typename": [
1
]
},
- "ID": {},
- "AgentIdInput": {
+ "LogicFunctionIdInput": {
"id": [
- 3
+ 349
],
"__typename": [
1
]
},
- "GetApiKeyInput": {
+ "ID": {},
+ "AgentIdInput": {
"id": [
3
],
@@ -7159,7 +7162,7 @@ export default {
}
],
"createNavigationMenuItem": [
- 209,
+ 145,
{
"input": [
369,
@@ -7168,7 +7171,7 @@ export default {
}
],
"updateNavigationMenuItem": [
- 209,
+ 145,
{
"input": [
370,
@@ -7177,7 +7180,7 @@ export default {
}
],
"deleteNavigationMenuItem": [
- 209,
+ 145,
{
"id": [
3,
@@ -7212,38 +7215,284 @@ export default {
]
}
],
- "uploadWorkspaceMemberProfilePicture": [
- 141,
+ "uploadWorkspaceMemberProfilePicture": [
+ 141,
+ {
+ "file": [
+ 372,
+ "Upload!"
+ ]
+ }
+ ],
+ "uploadFilesFieldFile": [
+ 141,
+ {
+ "file": [
+ 372,
+ "Upload!"
+ ],
+ "fieldMetadataId": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "uploadFilesFieldFileByUniversalIdentifier": [
+ 141,
+ {
+ "file": [
+ 372,
+ "Upload!"
+ ],
+ "fieldMetadataUniversalIdentifier": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "createViewFilterGroup": [
+ 52,
+ {
+ "input": [
+ 373,
+ "CreateViewFilterGroupInput!"
+ ]
+ }
+ ],
+ "updateViewFilterGroup": [
+ 52,
+ {
+ "id": [
+ 1,
+ "String!"
+ ],
+ "input": [
+ 374,
+ "UpdateViewFilterGroupInput!"
+ ]
+ }
+ ],
+ "deleteViewFilterGroup": [
+ 6,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "destroyViewFilterGroup": [
+ 6,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "createViewFilter": [
+ 54,
+ {
+ "input": [
+ 375,
+ "CreateViewFilterInput!"
+ ]
+ }
+ ],
+ "updateViewFilter": [
+ 54,
+ {
+ "input": [
+ 376,
+ "UpdateViewFilterInput!"
+ ]
+ }
+ ],
+ "deleteViewFilter": [
+ 54,
+ {
+ "input": [
+ 378,
+ "DeleteViewFilterInput!"
+ ]
+ }
+ ],
+ "destroyViewFilter": [
+ 54,
+ {
+ "input": [
+ 379,
+ "DestroyViewFilterInput!"
+ ]
+ }
+ ],
+ "createView": [
+ 60,
+ {
+ "input": [
+ 380,
+ "CreateViewInput!"
+ ]
+ }
+ ],
+ "updateView": [
+ 60,
+ {
+ "id": [
+ 1,
+ "String!"
+ ],
+ "input": [
+ 381,
+ "UpdateViewInput!"
+ ]
+ }
+ ],
+ "deleteView": [
+ 6,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "destroyView": [
+ 6,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "createViewSort": [
+ 57,
+ {
+ "input": [
+ 382,
+ "CreateViewSortInput!"
+ ]
+ }
+ ],
+ "updateViewSort": [
+ 57,
+ {
+ "input": [
+ 383,
+ "UpdateViewSortInput!"
+ ]
+ }
+ ],
+ "deleteViewSort": [
+ 6,
+ {
+ "input": [
+ 385,
+ "DeleteViewSortInput!"
+ ]
+ }
+ ],
+ "destroyViewSort": [
+ 6,
+ {
+ "input": [
+ 386,
+ "DestroyViewSortInput!"
+ ]
+ }
+ ],
+ "updateViewFieldGroup": [
+ 59,
+ {
+ "input": [
+ 387,
+ "UpdateViewFieldGroupInput!"
+ ]
+ }
+ ],
+ "createViewFieldGroup": [
+ 59,
+ {
+ "input": [
+ 389,
+ "CreateViewFieldGroupInput!"
+ ]
+ }
+ ],
+ "createManyViewFieldGroups": [
+ 59,
+ {
+ "inputs": [
+ 389,
+ "[CreateViewFieldGroupInput!]!"
+ ]
+ }
+ ],
+ "deleteViewFieldGroup": [
+ 59,
+ {
+ "input": [
+ 390,
+ "DeleteViewFieldGroupInput!"
+ ]
+ }
+ ],
+ "destroyViewFieldGroup": [
+ 59,
+ {
+ "input": [
+ 391,
+ "DestroyViewFieldGroupInput!"
+ ]
+ }
+ ],
+ "upsertFieldsWidget": [
+ 60,
+ {
+ "input": [
+ 392,
+ "UpsertFieldsWidgetInput!"
+ ]
+ }
+ ],
+ "createApiKey": [
+ 2,
+ {
+ "input": [
+ 395,
+ "CreateApiKeyInput!"
+ ]
+ }
+ ],
+ "updateApiKey": [
+ 2,
{
- "file": [
- 372,
- "Upload!"
+ "input": [
+ 396,
+ "UpdateApiKeyInput!"
]
}
],
- "uploadFilesFieldFile": [
- 141,
+ "revokeApiKey": [
+ 2,
{
- "file": [
- 372,
- "Upload!"
- ],
- "fieldMetadataId": [
- 1,
- "String!"
+ "input": [
+ 397,
+ "RevokeApiKeyInput!"
]
}
],
- "uploadFilesFieldFileByUniversalIdentifier": [
- 141,
+ "assignRoleToApiKey": [
+ 6,
{
- "file": [
- 372,
- "Upload!"
+ "apiKeyId": [
+ 3,
+ "UUID!"
],
- "fieldMetadataUniversalIdentifier": [
- 1,
- "String!"
+ "roleId": [
+ 3,
+ "UUID!"
]
}
],
@@ -7271,7 +7520,7 @@ export default {
115,
{
"type": [
- 373,
+ 398,
"AnalyticsType!"
],
"name": [
@@ -7285,239 +7534,231 @@ export default {
]
}
],
- "createPageLayoutWidget": [
- 75,
- {
- "input": [
- 374,
- "CreatePageLayoutWidgetInput!"
- ]
- }
+ "refreshEnterpriseValidityToken": [
+ 6
],
- "updatePageLayoutWidget": [
- 75,
+ "setEnterpriseKey": [
+ 137,
{
- "id": [
+ "enterpriseKey": [
1,
"String!"
- ],
- "input": [
- 376,
- "UpdatePageLayoutWidgetInput!"
]
}
],
- "destroyPageLayoutWidget": [
- 6,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "skipSyncEmailOnboardingStep": [
+ 139
],
- "createPageLayoutTab": [
- 112,
- {
- "input": [
- 377,
- "CreatePageLayoutTabInput!"
- ]
- }
+ "skipBookOnboardingStep": [
+ 139
],
- "updatePageLayoutTab": [
- 112,
+ "checkoutSession": [
+ 135,
{
- "id": [
- 1,
- "String!"
+ "recurringInterval": [
+ 123,
+ "SubscriptionInterval!"
],
- "input": [
- 378,
- "UpdatePageLayoutTabInput!"
+ "plan": [
+ 119,
+ "BillingPlanKey!"
+ ],
+ "requirePaymentMethod": [
+ 6,
+ "Boolean!"
+ ],
+ "successUrlPath": [
+ 1
]
}
],
- "destroyPageLayoutTab": [
- 6,
- {
- "id": [
- 1,
- "String!"
- ]
- }
+ "switchSubscriptionInterval": [
+ 136
],
- "createPageLayout": [
- 113,
- {
- "input": [
- 379,
- "CreatePageLayoutInput!"
- ]
- }
+ "switchBillingPlan": [
+ 136
],
- "updatePageLayout": [
- 113,
+ "cancelSwitchBillingPlan": [
+ 136
+ ],
+ "cancelSwitchBillingInterval": [
+ 136
+ ],
+ "setMeteredSubscriptionPrice": [
+ 136,
{
- "id": [
+ "priceId": [
1,
"String!"
- ],
- "input": [
- 380,
- "UpdatePageLayoutInput!"
]
}
],
- "destroyPageLayout": [
- 6,
+ "endSubscriptionTrialPeriod": [
+ 132
+ ],
+ "cancelSwitchMeteredPrice": [
+ 136
+ ],
+ "deleteWorkspaceInvitation": [
+ 1,
{
- "id": [
+ "appTokenId": [
1,
"String!"
]
}
],
- "updatePageLayoutWithTabsAndWidgets": [
- 113,
+ "resendWorkspaceInvitation": [
+ 143,
{
- "id": [
+ "appTokenId": [
1,
"String!"
- ],
- "input": [
- 381,
- "UpdatePageLayoutWithTabsInput!"
- ]
- }
- ],
- "createView": [
- 60,
- {
- "input": [
- 384,
- "CreateViewInput!"
]
}
],
- "updateView": [
- 60,
+ "sendInvitations": [
+ 143,
{
- "id": [
+ "emails": [
1,
- "String!"
+ "[String!]!"
],
- "input": [
- 385,
- "UpdateViewInput!"
+ "roleId": [
+ 3
]
}
],
- "deleteView": [
- 6,
+ "createApprovedAccessDomain": [
+ 140,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 399,
+ "CreateApprovedAccessDomainInput!"
]
}
],
- "destroyView": [
+ "deleteApprovedAccessDomain": [
6,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 400,
+ "DeleteApprovedAccessDomainInput!"
]
}
],
- "createViewSort": [
- 57,
+ "validateApprovedAccessDomain": [
+ 140,
{
"input": [
- 386,
- "CreateViewSortInput!"
+ 401,
+ "ValidateApprovedAccessDomainInput!"
]
}
],
- "updateViewSort": [
- 57,
+ "createPageLayoutTab": [
+ 112,
{
"input": [
- 387,
- "UpdateViewSortInput!"
+ 402,
+ "CreatePageLayoutTabInput!"
]
}
],
- "deleteViewSort": [
- 6,
+ "updatePageLayoutTab": [
+ 112,
{
+ "id": [
+ 1,
+ "String!"
+ ],
"input": [
- 389,
- "DeleteViewSortInput!"
+ 403,
+ "UpdatePageLayoutTabInput!"
]
}
],
- "destroyViewSort": [
+ "destroyPageLayoutTab": [
6,
{
- "input": [
- 390,
- "DestroyViewSortInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "updateViewFieldGroup": [
- 59,
+ "createPageLayout": [
+ 113,
{
"input": [
- 391,
- "UpdateViewFieldGroupInput!"
+ 404,
+ "CreatePageLayoutInput!"
]
}
],
- "createViewFieldGroup": [
- 59,
+ "updatePageLayout": [
+ 113,
{
+ "id": [
+ 1,
+ "String!"
+ ],
"input": [
- 393,
- "CreateViewFieldGroupInput!"
+ 405,
+ "UpdatePageLayoutInput!"
]
}
],
- "createManyViewFieldGroups": [
- 59,
+ "destroyPageLayout": [
+ 6,
{
- "inputs": [
- 393,
- "[CreateViewFieldGroupInput!]!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "deleteViewFieldGroup": [
- 59,
+ "updatePageLayoutWithTabsAndWidgets": [
+ 113,
{
+ "id": [
+ 1,
+ "String!"
+ ],
"input": [
- 394,
- "DeleteViewFieldGroupInput!"
+ 406,
+ "UpdatePageLayoutWithTabsInput!"
]
}
],
- "destroyViewFieldGroup": [
- 59,
+ "createPageLayoutWidget": [
+ 75,
{
"input": [
- 395,
- "DestroyViewFieldGroupInput!"
+ 410,
+ "CreatePageLayoutWidgetInput!"
]
}
],
- "upsertFieldsWidget": [
- 60,
+ "updatePageLayoutWidget": [
+ 75,
{
+ "id": [
+ 1,
+ "String!"
+ ],
"input": [
- 396,
- "UpsertFieldsWidgetInput!"
+ 411,
+ "UpdatePageLayoutWidgetInput!"
+ ]
+ }
+ ],
+ "destroyPageLayoutWidget": [
+ 6,
+ {
+ "id": [
+ 1,
+ "String!"
]
}
],
@@ -7525,7 +7766,7 @@ export default {
32,
{
"input": [
- 347,
+ 348,
"LogicFunctionIdInput!"
]
}
@@ -7534,16 +7775,16 @@ export default {
32,
{
"input": [
- 399,
+ 412,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"executeOneLogicFunction": [
- 218,
+ 154,
{
"input": [
- 400,
+ 413,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7552,31 +7793,31 @@ export default {
6,
{
"input": [
- 401,
+ 414,
"UpdateLogicFunctionFromSourceInput!"
]
}
],
"createCommandMenuItem": [
- 226,
+ 298,
{
"input": [
- 403,
+ 416,
"CreateCommandMenuItemInput!"
]
}
],
"updateCommandMenuItem": [
- 226,
+ 298,
{
"input": [
- 404,
+ 417,
"UpdateCommandMenuItemInput!"
]
}
],
"deleteCommandMenuItem": [
- 226,
+ 298,
{
"id": [
3,
@@ -7585,25 +7826,25 @@ export default {
}
],
"createFrontComponent": [
- 225,
+ 297,
{
"input": [
- 405,
+ 418,
"CreateFrontComponentInput!"
]
}
],
"updateFrontComponent": [
- 225,
+ 297,
{
"input": [
- 406,
+ 419,
"UpdateFrontComponentInput!"
]
}
],
"deleteFrontComponent": [
- 225,
+ 297,
{
"id": [
3,
@@ -7615,7 +7856,7 @@ export default {
46,
{
"input": [
- 408,
+ 421,
"CreateOneObjectInput!"
]
}
@@ -7624,7 +7865,7 @@ export default {
46,
{
"input": [
- 410,
+ 423,
"DeleteOneObjectInput!"
]
}
@@ -7633,7 +7874,7 @@ export default {
46,
{
"input": [
- 411,
+ 424,
"UpdateOneObjectInput!"
]
}
@@ -7642,7 +7883,7 @@ export default {
50,
{
"input": [
- 413,
+ 426,
"UpdateViewFieldInput!"
]
}
@@ -7651,7 +7892,7 @@ export default {
50,
{
"input": [
- 415,
+ 428,
"CreateViewFieldInput!"
]
}
@@ -7660,7 +7901,7 @@ export default {
50,
{
"inputs": [
- 415,
+ 428,
"[CreateViewFieldInput!]!"
]
}
@@ -7669,7 +7910,7 @@ export default {
50,
{
"input": [
- 416,
+ 429,
"DeleteViewFieldInput!"
]
}
@@ -7678,7 +7919,7 @@ export default {
50,
{
"input": [
- 417,
+ 430,
"DestroyViewFieldInput!"
]
}
@@ -7687,7 +7928,7 @@ export default {
25,
{
"input": [
- 418,
+ 431,
"CreateAgentInput!"
]
}
@@ -7696,271 +7937,100 @@ export default {
25,
{
"input": [
- 419,
+ 432,
"UpdateAgentInput!"
]
}
],
"deleteOneAgent": [
25,
- {
- "input": [
- 349,
- "AgentIdInput!"
- ]
- }
- ],
- "checkoutSession": [
- 135,
- {
- "recurringInterval": [
- 123,
- "SubscriptionInterval!"
- ],
- "plan": [
- 119,
- "BillingPlanKey!"
- ],
- "requirePaymentMethod": [
- 6,
- "Boolean!"
- ],
- "successUrlPath": [
- 1
- ]
- }
- ],
- "switchSubscriptionInterval": [
- 136
- ],
- "switchBillingPlan": [
- 136
- ],
- "cancelSwitchBillingPlan": [
- 136
- ],
- "cancelSwitchBillingInterval": [
- 136
- ],
- "setMeteredSubscriptionPrice": [
- 136,
- {
- "priceId": [
- 1,
- "String!"
- ]
- }
- ],
- "endSubscriptionTrialPeriod": [
- 132
- ],
- "cancelSwitchMeteredPrice": [
- 136
- ],
- "refreshEnterpriseValidityToken": [
- 6
- ],
- "setEnterpriseKey": [
- 137,
- {
- "enterpriseKey": [
- 1,
- "String!"
- ]
- }
- ],
- "updateWorkspaceMemberRole": [
- 20,
- {
- "workspaceMemberId": [
- 3,
- "UUID!"
- ],
- "roleId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "createOneRole": [
- 29,
- {
- "createRoleInput": [
- 420,
- "CreateRoleInput!"
- ]
- }
- ],
- "updateOneRole": [
- 29,
- {
- "updateRoleInput": [
- 421,
- "UpdateRoleInput!"
- ]
- }
- ],
- "deleteOneRole": [
- 1,
- {
- "roleId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "upsertObjectPermissions": [
- 16,
- {
- "upsertObjectPermissionsInput": [
- 423,
- "UpsertObjectPermissionsInput!"
- ]
- }
- ],
- "upsertPermissionFlags": [
- 27,
- {
- "upsertPermissionFlagsInput": [
- 425,
- "UpsertPermissionFlagsInput!"
- ]
- }
- ],
- "upsertFieldPermissions": [
- 26,
- {
- "upsertFieldPermissionsInput": [
- 426,
- "UpsertFieldPermissionsInput!"
- ]
- }
- ],
- "upsertRowLevelPermissionPredicates": [
- 174,
- {
- "input": [
- 428,
- "UpsertRowLevelPermissionPredicatesInput!"
- ]
- }
- ],
- "assignRoleToAgent": [
- 6,
- {
- "agentId": [
- 3,
- "UUID!"
- ],
- "roleId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "removeRoleFromAgent": [
- 6,
- {
- "agentId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "skipSyncEmailOnboardingStep": [
- 139
- ],
- "skipBookOnboardingStep": [
- 139
- ],
- "deleteWorkspaceInvitation": [
- 1,
- {
- "appTokenId": [
- 1,
- "String!"
+ {
+ "input": [
+ 350,
+ "AgentIdInput!"
]
}
],
- "resendWorkspaceInvitation": [
- 143,
+ "updateWorkspaceMemberRole": [
+ 20,
{
- "appTokenId": [
- 1,
- "String!"
+ "workspaceMemberId": [
+ 3,
+ "UUID!"
+ ],
+ "roleId": [
+ 3,
+ "UUID!"
]
}
],
- "sendInvitations": [
- 143,
+ "createOneRole": [
+ 29,
{
- "emails": [
- 1,
- "[String!]!"
- ],
- "roleId": [
- 3
+ "createRoleInput": [
+ 433,
+ "CreateRoleInput!"
]
}
],
- "createApprovedAccessDomain": [
- 140,
+ "updateOneRole": [
+ 29,
{
- "input": [
- 431,
- "CreateApprovedAccessDomainInput!"
+ "updateRoleInput": [
+ 434,
+ "UpdateRoleInput!"
]
}
],
- "deleteApprovedAccessDomain": [
- 6,
+ "deleteOneRole": [
+ 1,
{
- "input": [
- 432,
- "DeleteApprovedAccessDomainInput!"
+ "roleId": [
+ 3,
+ "UUID!"
]
}
],
- "validateApprovedAccessDomain": [
- 140,
+ "upsertObjectPermissions": [
+ 16,
{
- "input": [
- 433,
- "ValidateApprovedAccessDomainInput!"
+ "upsertObjectPermissionsInput": [
+ 436,
+ "UpsertObjectPermissionsInput!"
]
}
],
- "createApiKey": [
- 2,
+ "upsertPermissionFlags": [
+ 27,
{
- "input": [
- 434,
- "CreateApiKeyInput!"
+ "upsertPermissionFlagsInput": [
+ 438,
+ "UpsertPermissionFlagsInput!"
]
}
],
- "updateApiKey": [
- 2,
+ "upsertFieldPermissions": [
+ 26,
{
- "input": [
- 435,
- "UpdateApiKeyInput!"
+ "upsertFieldPermissionsInput": [
+ 439,
+ "UpsertFieldPermissionsInput!"
]
}
],
- "revokeApiKey": [
- 2,
+ "upsertRowLevelPermissionPredicates": [
+ 242,
{
"input": [
- 436,
- "RevokeApiKeyInput!"
+ 441,
+ "UpsertRowLevelPermissionPredicatesInput!"
]
}
],
- "assignRoleToApiKey": [
+ "assignRoleToAgent": [
6,
{
- "apiKeyId": [
+ "agentId": [
3,
"UUID!"
],
@@ -7970,11 +8040,20 @@ export default {
]
}
],
+ "removeRoleFromAgent": [
+ 6,
+ {
+ "agentId": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
"createOneField": [
34,
{
"input": [
- 437,
+ 444,
"CreateOneFieldMetadataInput!"
]
}
@@ -7983,7 +8062,7 @@ export default {
34,
{
"input": [
- 439,
+ 446,
"UpdateOneFieldMetadataInput!"
]
}
@@ -7992,7 +8071,7 @@ export default {
34,
{
"input": [
- 441,
+ 448,
"DeleteOneFieldInput!"
]
}
@@ -8001,7 +8080,7 @@ export default {
56,
{
"input": [
- 442,
+ 449,
"CreateViewGroupInput!"
]
}
@@ -8010,7 +8089,7 @@ export default {
56,
{
"inputs": [
- 442,
+ 449,
"[CreateViewGroupInput!]!"
]
}
@@ -8019,7 +8098,7 @@ export default {
56,
{
"input": [
- 443,
+ 450,
"UpdateViewGroupInput!"
]
}
@@ -8028,7 +8107,7 @@ export default {
56,
{
"input": [
- 445,
+ 452,
"DeleteViewGroupInput!"
]
}
@@ -8037,247 +8116,173 @@ export default {
56,
{
"input": [
- 446,
+ 453,
"DestroyViewGroupInput!"
]
}
],
- "createViewFilter": [
- 54,
+ "updateMessageFolder": [
+ 338,
{
"input": [
- 447,
- "CreateViewFilterInput!"
+ 454,
+ "UpdateMessageFolderInput!"
]
}
],
- "updateViewFilter": [
- 54,
+ "updateMessageFolders": [
+ 338,
{
"input": [
- 448,
- "UpdateViewFilterInput!"
+ 456,
+ "UpdateMessageFoldersInput!"
]
}
],
- "deleteViewFilter": [
- 54,
+ "updateMessageChannel": [
+ 330,
{
"input": [
- 450,
- "DeleteViewFilterInput!"
+ 457,
+ "UpdateMessageChannelInput!"
]
}
],
- "destroyViewFilter": [
- 54,
+ "deleteConnectedAccount": [
+ 329,
{
- "input": [
- 451,
- "DestroyViewFilterInput!"
+ "id": [
+ 3,
+ "UUID!"
]
}
],
- "createViewFilterGroup": [
- 52,
+ "updateCalendarChannel": [
+ 324,
{
"input": [
- 452,
- "CreateViewFilterGroupInput!"
+ 459,
+ "UpdateCalendarChannelInput!"
]
}
],
- "updateViewFilterGroup": [
- 52,
+ "createWebhook": [
+ 345,
{
- "id": [
- 1,
- "String!"
- ],
"input": [
- 453,
- "UpdateViewFilterGroupInput!"
+ 461,
+ "CreateWebhookInput!"
]
}
],
- "deleteViewFilterGroup": [
- 6,
+ "updateWebhook": [
+ 345,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 462,
+ "UpdateWebhookInput!"
]
}
],
- "destroyViewFilterGroup": [
- 6,
+ "deleteWebhook": [
+ 345,
{
"id": [
- 1,
- "String!"
- ]
- }
- ],
- "deleteUser": [
- 69
- ],
- "deleteUserFromWorkspace": [
- 17,
- {
- "workspaceMemberIdToDelete": [
- 1,
- "String!"
- ]
- }
- ],
- "updateUserEmail": [
- 6,
- {
- "newEmail": [
- 1,
- "String!"
- ],
- "verifyEmailRedirectPath": [
- 1
- ]
- }
- ],
- "resendEmailVerificationToken": [
- 144,
- {
- "email": [
- 1,
- "String!"
- ],
- "origin": [
- 1,
- "String!"
- ]
- }
- ],
- "activateWorkspace": [
- 66,
- {
- "data": [
- 454,
- "ActivateWorkspaceInput!"
- ]
- }
- ],
- "updateWorkspace": [
- 66,
- {
- "data": [
- 455,
- "UpdateWorkspaceInput!"
- ]
- }
- ],
- "deleteCurrentWorkspace": [
- 66
- ],
- "checkCustomDomainValidRecords": [
- 155
- ],
- "createApplicationRegistration": [
- 177,
- {
- "input": [
- 456,
- "CreateApplicationRegistrationInput!"
+ 3,
+ "UUID!"
]
}
],
- "updateApplicationRegistration": [
- 7,
- {
- "input": [
- 457,
- "UpdateApplicationRegistrationInput!"
- ]
- }
+ "createChatThread": [
+ 316
],
- "deleteApplicationRegistration": [
- 6,
- {
- "id": [
- 1,
- "String!"
+ "createSkill": [
+ 315,
+ {
+ "input": [
+ 464,
+ "CreateSkillInput!"
]
}
],
- "rotateApplicationRegistrationClientSecret": [
- 179,
+ "updateSkill": [
+ 315,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 465,
+ "UpdateSkillInput!"
]
}
],
- "createApplicationRegistrationVariable": [
- 5,
+ "deleteSkill": [
+ 315,
{
- "input": [
- 459,
- "CreateApplicationRegistrationVariableInput!"
+ "id": [
+ 3,
+ "UUID!"
]
}
],
- "updateApplicationRegistrationVariable": [
- 5,
+ "activateSkill": [
+ 315,
{
- "input": [
- 460,
- "UpdateApplicationRegistrationVariableInput!"
+ "id": [
+ 3,
+ "UUID!"
]
}
],
- "deleteApplicationRegistrationVariable": [
- 6,
+ "deactivateSkill": [
+ 315,
{
"id": [
- 1,
- "String!"
+ 3,
+ "UUID!"
]
}
],
- "uploadAppTarball": [
- 7,
+ "evaluateAgentTurn": [
+ 322,
{
- "file": [
- 372,
- "Upload!"
- ],
- "universalIdentifier": [
- 1
+ "turnId": [
+ 3,
+ "UUID!"
]
}
],
- "transferApplicationRegistrationOwnership": [
- 7,
+ "runEvaluationInput": [
+ 323,
{
- "applicationRegistrationId": [
- 1,
- "String!"
+ "agentId": [
+ 3,
+ "UUID!"
],
- "targetWorkspaceSubdomain": [
+ "input": [
1,
"String!"
]
}
],
+ "duplicateDashboard": [
+ 311,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
"getAuthorizationUrlForSSO": [
- 196,
+ 254,
{
"input": [
- 462,
+ 466,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 205,
+ 263,
{
"email": [
1,
@@ -8303,7 +8308,7 @@ export default {
}
],
"signIn": [
- 194,
+ 252,
{
"email": [
1,
@@ -8325,7 +8330,7 @@ export default {
}
],
"verifyEmailAndGetLoginToken": [
- 202,
+ 260,
{
"emailVerificationToken": [
1,
@@ -8345,7 +8350,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 194,
+ 252,
{
"emailVerificationToken": [
1,
@@ -8361,7 +8366,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 204,
+ 262,
{
"otp": [
1,
@@ -8381,7 +8386,7 @@ export default {
}
],
"signUp": [
- 194,
+ 252,
{
"email": [
1,
@@ -8403,7 +8408,7 @@ export default {
}
],
"signUpInWorkspace": [
- 199,
+ 257,
{
"email": [
1,
@@ -8434,13 +8439,13 @@ export default {
}
],
"signUpInNewWorkspace": [
- 199
+ 257
],
"generateTransientToken": [
- 200
+ 258
],
"getAuthTokensFromLoginToken": [
- 204,
+ 262,
{
"loginToken": [
1,
@@ -8453,7 +8458,7 @@ export default {
}
],
"authorizeApp": [
- 191,
+ 249,
{
"clientId": [
1,
@@ -8475,7 +8480,7 @@ export default {
}
],
"renewToken": [
- 204,
+ 262,
{
"appToken": [
1,
@@ -8484,7 +8489,7 @@ export default {
}
],
"generateApiKeyToken": [
- 203,
+ 261,
{
"apiKeyId": [
3,
@@ -8497,7 +8502,7 @@ export default {
}
],
"emailPasswordResetLink": [
- 195,
+ 253,
{
"email": [
1,
@@ -8509,7 +8514,7 @@ export default {
}
],
"updatePasswordViaResetToken": [
- 197,
+ 255,
{
"passwordResetToken": [
1,
@@ -8521,229 +8526,227 @@ export default {
]
}
],
- "initiateOTPProvisioning": [
- 189,
+ "createApplicationRegistration": [
+ 213,
{
- "loginToken": [
- 1,
- "String!"
- ],
- "origin": [
- 1,
- "String!"
+ "input": [
+ 467,
+ "CreateApplicationRegistrationInput!"
]
}
],
- "initiateOTPProvisioningForAuthenticatedUser": [
- 189
- ],
- "deleteTwoFactorAuthenticationMethod": [
- 188,
+ "updateApplicationRegistration": [
+ 7,
{
- "twoFactorAuthenticationMethodId": [
- 3,
- "UUID!"
+ "input": [
+ 468,
+ "UpdateApplicationRegistrationInput!"
]
}
],
- "verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 190,
+ "deleteApplicationRegistration": [
+ 6,
{
- "otp": [
+ "id": [
1,
"String!"
]
}
],
- "createOIDCIdentityProvider": [
- 187,
+ "rotateApplicationRegistrationClientSecret": [
+ 215,
{
- "input": [
- 463,
- "SetupOIDCSsoInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "createSAMLIdentityProvider": [
- 187,
+ "createApplicationRegistrationVariable": [
+ 5,
{
"input": [
- 464,
- "SetupSAMLSsoInput!"
+ 470,
+ "CreateApplicationRegistrationVariableInput!"
]
}
],
- "deleteSSOIdentityProvider": [
- 183,
+ "updateApplicationRegistrationVariable": [
+ 5,
{
"input": [
- 465,
- "DeleteSsoInput!"
+ 471,
+ "UpdateApplicationRegistrationVariableInput!"
]
}
],
- "editSSOIdentityProvider": [
- 184,
+ "deleteApplicationRegistrationVariable": [
+ 6,
{
- "input": [
- 466,
- "EditSsoInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "updateMessageFolder": [
- 251,
+ "uploadAppTarball": [
+ 7,
{
- "input": [
- 467,
- "UpdateMessageFolderInput!"
+ "file": [
+ 372,
+ "Upload!"
+ ],
+ "universalIdentifier": [
+ 1
]
}
],
- "updateMessageFolders": [
- 251,
+ "transferApplicationRegistrationOwnership": [
+ 7,
{
- "input": [
- 469,
- "UpdateMessageFoldersInput!"
+ "applicationRegistrationId": [
+ 1,
+ "String!"
+ ],
+ "targetWorkspaceSubdomain": [
+ 1,
+ "String!"
]
}
],
- "updateMessageChannel": [
- 243,
+ "initiateOTPProvisioning": [
+ 247,
{
- "input": [
- 470,
- "UpdateMessageChannelInput!"
+ "loginToken": [
+ 1,
+ "String!"
+ ],
+ "origin": [
+ 1,
+ "String!"
]
}
],
- "deleteConnectedAccount": [
- 242,
+ "initiateOTPProvisioningForAuthenticatedUser": [
+ 247
+ ],
+ "deleteTwoFactorAuthenticationMethod": [
+ 246,
{
- "id": [
+ "twoFactorAuthenticationMethodId": [
3,
"UUID!"
]
}
],
- "updateCalendarChannel": [
- 237,
- {
- "input": [
- 472,
- "UpdateCalendarChannelInput!"
- ]
- }
- ],
- "createWebhook": [
- 258,
+ "verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
+ 248,
{
- "input": [
- 474,
- "CreateWebhookInput!"
+ "otp": [
+ 1,
+ "String!"
]
}
],
- "updateWebhook": [
- 258,
- {
- "input": [
- 475,
- "UpdateWebhookInput!"
- ]
- }
+ "deleteUser": [
+ 69
],
- "deleteWebhook": [
- 258,
+ "deleteUserFromWorkspace": [
+ 17,
{
- "id": [
- 3,
- "UUID!"
+ "workspaceMemberIdToDelete": [
+ 1,
+ "String!"
]
}
],
- "createChatThread": [
- 229
- ],
- "createSkill": [
- 223,
+ "updateUserEmail": [
+ 6,
{
- "input": [
- 477,
- "CreateSkillInput!"
+ "newEmail": [
+ 1,
+ "String!"
+ ],
+ "verifyEmailRedirectPath": [
+ 1
]
}
],
- "updateSkill": [
- 223,
+ "resendEmailVerificationToken": [
+ 216,
{
- "input": [
- 478,
- "UpdateSkillInput!"
+ "email": [
+ 1,
+ "String!"
+ ],
+ "origin": [
+ 1,
+ "String!"
]
}
],
- "deleteSkill": [
- 223,
+ "activateWorkspace": [
+ 66,
{
- "id": [
- 3,
- "UUID!"
+ "data": [
+ 473,
+ "ActivateWorkspaceInput!"
]
}
],
- "activateSkill": [
- 223,
+ "updateWorkspace": [
+ 66,
{
- "id": [
- 3,
- "UUID!"
+ "data": [
+ 474,
+ "UpdateWorkspaceInput!"
]
}
],
- "deactivateSkill": [
- 223,
+ "deleteCurrentWorkspace": [
+ 66
+ ],
+ "checkCustomDomainValidRecords": [
+ 229
+ ],
+ "createOIDCIdentityProvider": [
+ 221,
{
- "id": [
- 3,
- "UUID!"
+ "input": [
+ 475,
+ "SetupOIDCSsoInput!"
]
}
],
- "evaluateAgentTurn": [
- 235,
+ "createSAMLIdentityProvider": [
+ 221,
{
- "turnId": [
- 3,
- "UUID!"
+ "input": [
+ 476,
+ "SetupSAMLSsoInput!"
]
}
],
- "runEvaluationInput": [
- 236,
+ "deleteSSOIdentityProvider": [
+ 217,
{
- "agentId": [
- 3,
- "UUID!"
- ],
"input": [
- 1,
- "String!"
+ 477,
+ "DeleteSsoInput!"
]
}
],
- "duplicateDashboard": [
- 342,
+ "editSSOIdentityProvider": [
+ 218,
{
- "id": [
- 3,
- "UUID!"
+ "input": [
+ 478,
+ "EditSsoInput!"
]
}
],
"impersonate": [
- 305,
+ 266,
{
"userId": [
3,
@@ -8756,7 +8759,7 @@ export default {
}
],
"startChannelSync": [
- 334,
+ 303,
{
"connectedAccountId": [
3,
@@ -8765,7 +8768,7 @@ export default {
}
],
"saveImapSmtpCaldavAccount": [
- 332,
+ 290,
{
"accountOwnerId": [
3,
@@ -8785,7 +8788,7 @@ export default {
}
],
"updateLabPublicFeatureFlag": [
- 156,
+ 197,
{
"input": [
481,
@@ -8794,7 +8797,7 @@ export default {
}
],
"userLookupAdminPanel": [
- 294,
+ 200,
{
"userIdentifier": [
1,
@@ -8894,7 +8897,7 @@ export default {
}
],
"retryJobs": [
- 287,
+ 192,
{
"queueName": [
1,
@@ -8907,7 +8910,7 @@ export default {
}
],
"deleteJobs": [
- 282,
+ 187,
{
"queueName": [
1,
@@ -8968,13 +8971,13 @@ export default {
}
],
"enablePostgresProxy": [
- 333
+ 291
],
"disablePostgresProxy": [
- 333
+ 291
],
"createPublicDomain": [
- 321,
+ 279,
{
"domain": [
1,
@@ -8992,7 +8995,7 @@ export default {
}
],
"checkPublicDomainValidRecords": [
- 155,
+ 229,
{
"domain": [
1,
@@ -9001,14 +9004,14 @@ export default {
}
],
"createEmailingDomain": [
- 323,
+ 281,
{
"domain": [
1,
"String!"
],
"driver": [
- 324,
+ 282,
"EmailingDomainDriver!"
]
}
@@ -9023,7 +9026,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 323,
+ 281,
{
"id": [
1,
@@ -9100,7 +9103,7 @@ export default {
}
],
"createDevelopmentApplication": [
- 306,
+ 267,
{
"universalIdentifier": [
1,
@@ -9113,7 +9116,7 @@ export default {
}
],
"generateApplicationToken": [
- 224,
+ 269,
{
"applicationId": [
3,
@@ -9122,7 +9125,7 @@ export default {
}
],
"syncApplication": [
- 307,
+ 268,
{
"manifest": [
15,
@@ -9131,7 +9134,7 @@ export default {
}
],
"uploadApplicationFile": [
- 308,
+ 270,
{
"file": [
372,
@@ -9165,7 +9168,7 @@ export default {
}
],
"renewApplicationToken": [
- 224,
+ 269,
{
"applicationRefreshToken": [
1,
@@ -9219,7 +9222,7 @@ export default {
3
],
"type": [
- 210
+ 146
],
"name": [
1
@@ -9254,377 +9257,474 @@ export default {
1
]
},
- "UpdateNavigationMenuItemInput": {
- "folderId": [
+ "UpdateNavigationMenuItemInput": {
+ "folderId": [
+ 3
+ ],
+ "position": [
+ 11
+ ],
+ "name": [
+ 1
+ ],
+ "link": [
+ 1
+ ],
+ "icon": [
+ 1
+ ],
+ "color": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "Upload": {},
+ "CreateViewFilterGroupInput": {
+ "id": [
+ 3
+ ],
+ "parentViewFilterGroupId": [
+ 3
+ ],
+ "logicalOperator": [
+ 53
+ ],
+ "positionInViewFilterGroup": [
+ 11
+ ],
+ "viewId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateViewFilterGroupInput": {
+ "id": [
+ 3
+ ],
+ "parentViewFilterGroupId": [
+ 3
+ ],
+ "logicalOperator": [
+ 53
+ ],
+ "positionInViewFilterGroup": [
+ 11
+ ],
+ "viewId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "CreateViewFilterInput": {
+ "id": [
+ 3
+ ],
+ "fieldMetadataId": [
+ 3
+ ],
+ "operand": [
+ 55
+ ],
+ "value": [
+ 15
+ ],
+ "viewFilterGroupId": [
+ 3
+ ],
+ "positionInViewFilterGroup": [
+ 11
+ ],
+ "subFieldName": [
+ 1
+ ],
+ "viewId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateViewFilterInput": {
+ "id": [
+ 3
+ ],
+ "update": [
+ 377
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateViewFilterInputUpdates": {
+ "fieldMetadataId": [
+ 3
+ ],
+ "operand": [
+ 55
+ ],
+ "value": [
+ 15
+ ],
+ "viewFilterGroupId": [
+ 3
+ ],
+ "positionInViewFilterGroup": [
+ 11
+ ],
+ "subFieldName": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "DeleteViewFilterInput": {
+ "id": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "DestroyViewFilterInput": {
+ "id": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "CreateViewInput": {
+ "id": [
+ 3
+ ],
+ "name": [
+ 1
+ ],
+ "objectMetadataId": [
+ 3
+ ],
+ "type": [
+ 61
+ ],
+ "key": [
+ 62
+ ],
+ "icon": [
+ 1
+ ],
+ "position": [
+ 11
+ ],
+ "isCompact": [
+ 6
+ ],
+ "shouldHideEmptyGroups": [
+ 6
+ ],
+ "openRecordIn": [
+ 63
+ ],
+ "kanbanAggregateOperation": [
+ 51
+ ],
+ "kanbanAggregateOperationFieldMetadataId": [
+ 3
+ ],
+ "anyFieldFilterValue": [
+ 1
+ ],
+ "calendarLayout": [
+ 64
+ ],
+ "calendarFieldMetadataId": [
+ 3
+ ],
+ "mainGroupByFieldMetadataId": [
+ 3
+ ],
+ "visibility": [
+ 65
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateViewInput": {
+ "id": [
3
],
- "position": [
- 11
- ],
"name": [
1
],
- "link": [
- 1
+ "type": [
+ 61
],
"icon": [
1
],
- "color": [
- 1
+ "position": [
+ 11
],
- "__typename": [
- 1
- ]
- },
- "Upload": {},
- "AnalyticsType": {},
- "CreatePageLayoutWidgetInput": {
- "pageLayoutTabId": [
- 3
+ "isCompact": [
+ 6
],
- "title": [
- 1
+ "openRecordIn": [
+ 63
],
- "type": [
- 76
+ "kanbanAggregateOperation": [
+ 51
],
- "objectMetadataId": [
+ "kanbanAggregateOperationFieldMetadataId": [
3
],
- "gridPosition": [
- 375
- ],
- "position": [
- 15
+ "anyFieldFilterValue": [
+ 1
],
- "configuration": [
- 15
+ "calendarLayout": [
+ 64
],
- "__typename": [
- 1
- ]
- },
- "GridPositionInput": {
- "row": [
- 11
+ "calendarFieldMetadataId": [
+ 3
],
- "column": [
- 11
+ "visibility": [
+ 65
],
- "rowSpan": [
- 11
+ "mainGroupByFieldMetadataId": [
+ 3
],
- "columnSpan": [
- 11
+ "shouldHideEmptyGroups": [
+ 6
],
"__typename": [
1
]
},
- "UpdatePageLayoutWidgetInput": {
- "title": [
- 1
- ],
- "type": [
- 76
- ],
- "objectMetadataId": [
+ "CreateViewSortInput": {
+ "id": [
3
],
- "gridPosition": [
- 375
- ],
- "position": [
- 15
+ "fieldMetadataId": [
+ 3
],
- "configuration": [
- 15
+ "direction": [
+ 58
],
- "conditionalDisplay": [
- 15
+ "viewId": [
+ 3
],
"__typename": [
1
]
},
- "CreatePageLayoutTabInput": {
- "title": [
- 1
- ],
- "position": [
- 11
- ],
- "pageLayoutId": [
+ "UpdateViewSortInput": {
+ "id": [
3
],
- "layoutMode": [
- 79
+ "update": [
+ 384
],
"__typename": [
1
]
},
- "UpdatePageLayoutTabInput": {
- "title": [
- 1
- ],
- "position": [
- 11
- ],
- "icon": [
- 1
- ],
- "layoutMode": [
- 79
+ "UpdateViewSortInputUpdates": {
+ "direction": [
+ 58
],
"__typename": [
1
]
},
- "CreatePageLayoutInput": {
- "name": [
- 1
- ],
- "type": [
- 114
- ],
- "objectMetadataId": [
+ "DeleteViewSortInput": {
+ "id": [
3
],
"__typename": [
1
]
},
- "UpdatePageLayoutInput": {
- "name": [
- 1
- ],
- "type": [
- 114
- ],
- "objectMetadataId": [
+ "DestroyViewSortInput": {
+ "id": [
3
],
"__typename": [
1
]
},
- "UpdatePageLayoutWithTabsInput": {
- "name": [
- 1
- ],
- "type": [
- 114
- ],
- "objectMetadataId": [
+ "UpdateViewFieldGroupInput": {
+ "id": [
3
],
- "tabs": [
- 382
+ "update": [
+ 388
],
"__typename": [
1
]
},
- "UpdatePageLayoutTabWithWidgetsInput": {
- "id": [
- 3
- ],
- "title": [
+ "UpdateViewFieldGroupInputUpdates": {
+ "name": [
1
],
"position": [
11
],
- "icon": [
- 1
- ],
- "layoutMode": [
- 79
+ "isVisible": [
+ 6
],
- "widgets": [
- 383
+ "deletedAt": [
+ 1
],
"__typename": [
1
]
},
- "UpdatePageLayoutWidgetWithIdInput": {
+ "CreateViewFieldGroupInput": {
"id": [
3
],
- "pageLayoutTabId": [
- 3
- ],
- "title": [
+ "name": [
1
],
- "type": [
- 76
- ],
- "objectMetadataId": [
+ "viewId": [
3
],
- "gridPosition": [
- 375
- ],
"position": [
- 15
- ],
- "configuration": [
- 15
+ 11
],
- "conditionalDisplay": [
- 15
+ "isVisible": [
+ 6
],
"__typename": [
1
]
},
- "CreateViewInput": {
+ "DeleteViewFieldGroupInput": {
"id": [
3
],
- "name": [
- 1
- ],
- "objectMetadataId": [
- 3
- ],
- "type": [
- 61
- ],
- "key": [
- 62
- ],
- "icon": [
+ "__typename": [
1
- ],
- "position": [
- 11
- ],
- "isCompact": [
- 6
- ],
- "shouldHideEmptyGroups": [
- 6
- ],
- "openRecordIn": [
- 63
- ],
- "kanbanAggregateOperation": [
- 51
- ],
- "kanbanAggregateOperationFieldMetadataId": [
+ ]
+ },
+ "DestroyViewFieldGroupInput": {
+ "id": [
3
],
- "anyFieldFilterValue": [
+ "__typename": [
1
- ],
- "calendarLayout": [
- 64
- ],
- "calendarFieldMetadataId": [
+ ]
+ },
+ "UpsertFieldsWidgetInput": {
+ "widgetId": [
3
],
- "mainGroupByFieldMetadataId": [
- 3
+ "groups": [
+ 393
],
- "visibility": [
- 65
+ "fields": [
+ 394
],
"__typename": [
1
]
},
- "UpdateViewInput": {
+ "UpsertFieldsWidgetGroupInput": {
"id": [
3
],
"name": [
1
],
- "type": [
- 61
- ],
- "icon": [
- 1
- ],
"position": [
11
],
- "isCompact": [
+ "isVisible": [
6
],
- "openRecordIn": [
- 63
- ],
- "kanbanAggregateOperation": [
- 51
+ "fields": [
+ 394
],
- "kanbanAggregateOperationFieldMetadataId": [
+ "__typename": [
+ 1
+ ]
+ },
+ "UpsertFieldsWidgetFieldInput": {
+ "viewFieldId": [
3
],
- "anyFieldFilterValue": [
- 1
+ "isVisible": [
+ 6
],
- "calendarLayout": [
- 64
+ "position": [
+ 11
],
- "calendarFieldMetadataId": [
- 3
+ "__typename": [
+ 1
+ ]
+ },
+ "CreateApiKeyInput": {
+ "name": [
+ 1
],
- "visibility": [
- 65
+ "expiresAt": [
+ 1
],
- "mainGroupByFieldMetadataId": [
- 3
+ "revokedAt": [
+ 1
],
- "shouldHideEmptyGroups": [
- 6
+ "roleId": [
+ 3
],
"__typename": [
1
]
},
- "CreateViewSortInput": {
+ "UpdateApiKeyInput": {
"id": [
3
],
- "fieldMetadataId": [
- 3
+ "name": [
+ 1
],
- "direction": [
- 58
+ "expiresAt": [
+ 1
],
- "viewId": [
- 3
+ "revokedAt": [
+ 1
],
"__typename": [
1
]
},
- "UpdateViewSortInput": {
+ "RevokeApiKeyInput": {
"id": [
3
],
- "update": [
- 388
- ],
"__typename": [
1
]
},
- "UpdateViewSortInputUpdates": {
- "direction": [
- 58
+ "AnalyticsType": {},
+ "CreateApprovedAccessDomainInput": {
+ "domain": [
+ 1
+ ],
+ "email": [
+ 1
],
"__typename": [
1
]
},
- "DeleteViewSortInput": {
+ "DeleteApprovedAccessDomainInput": {
"id": [
3
],
@@ -9632,121 +9732,215 @@ export default {
1
]
},
- "DestroyViewSortInput": {
- "id": [
+ "ValidateApprovedAccessDomainInput": {
+ "validationToken": [
+ 1
+ ],
+ "approvedAccessDomainId": [
3
],
"__typename": [
1
]
},
- "UpdateViewFieldGroupInput": {
- "id": [
+ "CreatePageLayoutTabInput": {
+ "title": [
+ 1
+ ],
+ "position": [
+ 11
+ ],
+ "pageLayoutId": [
3
],
- "update": [
- 392
+ "layoutMode": [
+ 79
],
"__typename": [
1
]
},
- "UpdateViewFieldGroupInputUpdates": {
- "name": [
+ "UpdatePageLayoutTabInput": {
+ "title": [
1
],
"position": [
11
],
- "isVisible": [
- 6
- ],
- "deletedAt": [
+ "icon": [
1
],
+ "layoutMode": [
+ 79
+ ],
"__typename": [
1
]
},
- "CreateViewFieldGroupInput": {
- "id": [
+ "CreatePageLayoutInput": {
+ "name": [
+ 1
+ ],
+ "type": [
+ 114
+ ],
+ "objectMetadataId": [
3
],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdatePageLayoutInput": {
"name": [
1
],
- "viewId": [
+ "type": [
+ 114
+ ],
+ "objectMetadataId": [
3
],
- "position": [
- 11
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdatePageLayoutWithTabsInput": {
+ "name": [
+ 1
],
- "isVisible": [
- 6
+ "type": [
+ 114
+ ],
+ "objectMetadataId": [
+ 3
+ ],
+ "tabs": [
+ 407
],
"__typename": [
1
]
},
- "DeleteViewFieldGroupInput": {
+ "UpdatePageLayoutTabWithWidgetsInput": {
"id": [
3
],
+ "title": [
+ 1
+ ],
+ "position": [
+ 11
+ ],
+ "icon": [
+ 1
+ ],
+ "layoutMode": [
+ 79
+ ],
+ "widgets": [
+ 408
+ ],
"__typename": [
1
]
},
- "DestroyViewFieldGroupInput": {
+ "UpdatePageLayoutWidgetWithIdInput": {
"id": [
3
],
+ "pageLayoutTabId": [
+ 3
+ ],
+ "title": [
+ 1
+ ],
+ "type": [
+ 76
+ ],
+ "objectMetadataId": [
+ 3
+ ],
+ "gridPosition": [
+ 409
+ ],
+ "position": [
+ 15
+ ],
+ "configuration": [
+ 15
+ ],
+ "conditionalDisplay": [
+ 15
+ ],
"__typename": [
1
]
},
- "UpsertFieldsWidgetInput": {
- "widgetId": [
- 3
+ "GridPositionInput": {
+ "row": [
+ 11
],
- "groups": [
- 397
+ "column": [
+ 11
],
- "fields": [
- 398
+ "rowSpan": [
+ 11
+ ],
+ "columnSpan": [
+ 11
],
"__typename": [
1
]
},
- "UpsertFieldsWidgetGroupInput": {
- "id": [
+ "CreatePageLayoutWidgetInput": {
+ "pageLayoutTabId": [
3
],
- "name": [
+ "title": [
1
],
- "position": [
- 11
+ "type": [
+ 76
],
- "isVisible": [
- 6
+ "objectMetadataId": [
+ 3
],
- "fields": [
- 398
+ "gridPosition": [
+ 409
+ ],
+ "position": [
+ 15
+ ],
+ "configuration": [
+ 15
],
"__typename": [
1
]
},
- "UpsertFieldsWidgetFieldInput": {
- "viewFieldId": [
+ "UpdatePageLayoutWidgetInput": {
+ "title": [
+ 1
+ ],
+ "type": [
+ 76
+ ],
+ "objectMetadataId": [
3
],
- "isVisible": [
- 6
+ "gridPosition": [
+ 409
],
"position": [
- 11
+ 15
+ ],
+ "configuration": [
+ 15
+ ],
+ "conditionalDisplay": [
+ 15
],
"__typename": [
1
@@ -9806,7 +10000,7 @@ export default {
3
],
"update": [
- 402
+ 415
],
"__typename": [
1
@@ -9858,7 +10052,7 @@ export default {
3
],
"engineComponentKey": [
- 227
+ 299
],
"label": [
1
@@ -9876,7 +10070,7 @@ export default {
6
],
"availabilityType": [
- 228
+ 300
],
"hotKeys": [
1
@@ -9911,13 +10105,13 @@ export default {
6
],
"availabilityType": [
- 228
+ 300
],
"availabilityObjectMetadataId": [
3
],
"engineComponentKey": [
- 227
+ 299
],
"hotKeys": [
1
@@ -9957,7 +10151,7 @@ export default {
3
],
"update": [
- 407
+ 420
],
"__typename": [
1
@@ -9976,7 +10170,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 409
+ 422
],
"__typename": [
1
@@ -10036,7 +10230,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 412
+ 425
],
"id": [
3
@@ -10091,7 +10285,7 @@ export default {
3
],
"update": [
- 414
+ 427
],
"__typename": [
1
@@ -10281,7 +10475,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 422
+ 435
],
"id": [
3
@@ -10336,7 +10530,7 @@ export default {
3
],
"objectPermissions": [
- 424
+ 437
],
"__typename": [
1
@@ -10378,7 +10572,7 @@ export default {
3
],
"fieldPermissions": [
- 427
+ 440
],
"__typename": [
1
@@ -10409,10 +10603,10 @@ export default {
3
],
"predicates": [
- 429
+ 442
],
"predicateGroups": [
- 430
+ 443
],
"__typename": [
1
@@ -10470,81 +10664,9 @@ export default {
1
]
},
- "CreateApprovedAccessDomainInput": {
- "domain": [
- 1
- ],
- "email": [
- 1
- ],
- "__typename": [
- 1
- ]
- },
- "DeleteApprovedAccessDomainInput": {
- "id": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "ValidateApprovedAccessDomainInput": {
- "validationToken": [
- 1
- ],
- "approvedAccessDomainId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "CreateApiKeyInput": {
- "name": [
- 1
- ],
- "expiresAt": [
- 1
- ],
- "revokedAt": [
- 1
- ],
- "roleId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateApiKeyInput": {
- "id": [
- 3
- ],
- "name": [
- 1
- ],
- "expiresAt": [
- 1
- ],
- "revokedAt": [
- 1
- ],
- "__typename": [
- 1
- ]
- },
- "RevokeApiKeyInput": {
- "id": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
"CreateOneFieldMetadataInput": {
"field": [
- 438
+ 445
],
"__typename": [
1
@@ -10617,7 +10739,7 @@ export default {
3
],
"update": [
- 440
+ 447
],
"__typename": [
1
@@ -10706,7 +10828,7 @@ export default {
3
],
"update": [
- 444
+ 451
],
"__typename": [
1
@@ -10745,207 +10867,209 @@ export default {
1
]
},
- "CreateViewFilterInput": {
+ "UpdateMessageFolderInput": {
"id": [
3
],
- "fieldMetadataId": [
- 3
- ],
- "operand": [
- 55
- ],
- "value": [
- 15
- ],
- "viewFilterGroupId": [
- 3
- ],
- "positionInViewFilterGroup": [
- 11
+ "update": [
+ 455
],
- "subFieldName": [
+ "__typename": [
1
+ ]
+ },
+ "UpdateMessageFolderInputUpdates": {
+ "isSynced": [
+ 6
],
- "viewId": [
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateMessageFoldersInput": {
+ "ids": [
3
],
+ "update": [
+ 455
+ ],
"__typename": [
1
]
},
- "UpdateViewFilterInput": {
+ "UpdateMessageChannelInput": {
"id": [
3
],
"update": [
- 449
+ 458
],
"__typename": [
1
]
},
- "UpdateViewFilterInputUpdates": {
- "fieldMetadataId": [
- 3
+ "UpdateMessageChannelInputUpdates": {
+ "visibility": [
+ 331
],
- "operand": [
- 55
+ "isContactAutoCreationEnabled": [
+ 6
],
- "value": [
- 15
+ "contactAutoCreationPolicy": [
+ 333
],
- "viewFilterGroupId": [
- 3
+ "messageFolderImportPolicy": [
+ 334
],
- "positionInViewFilterGroup": [
- 11
+ "isSyncEnabled": [
+ 6
],
- "subFieldName": [
- 1
+ "excludeNonProfessionalEmails": [
+ 6
],
- "__typename": [
- 1
- ]
- },
- "DeleteViewFilterInput": {
- "id": [
- 3
+ "excludeGroupEmails": [
+ 6
],
"__typename": [
1
]
},
- "DestroyViewFilterInput": {
+ "UpdateCalendarChannelInput": {
"id": [
3
],
+ "update": [
+ 460
+ ],
"__typename": [
1
]
},
- "CreateViewFilterGroupInput": {
- "id": [
- 3
- ],
- "parentViewFilterGroupId": [
- 3
+ "UpdateCalendarChannelInputUpdates": {
+ "visibility": [
+ 327
],
- "logicalOperator": [
- 53
+ "isContactAutoCreationEnabled": [
+ 6
],
- "positionInViewFilterGroup": [
- 11
+ "contactAutoCreationPolicy": [
+ 328
],
- "viewId": [
- 3
+ "isSyncEnabled": [
+ 6
],
"__typename": [
1
]
},
- "UpdateViewFilterGroupInput": {
+ "CreateWebhookInput": {
"id": [
3
],
- "parentViewFilterGroupId": [
- 3
+ "targetUrl": [
+ 1
],
- "logicalOperator": [
- 53
+ "operations": [
+ 1
],
- "positionInViewFilterGroup": [
- 11
+ "description": [
+ 1
],
- "viewId": [
- 3
+ "secret": [
+ 1
],
"__typename": [
1
]
},
- "ActivateWorkspaceInput": {
- "displayName": [
- 1
+ "UpdateWebhookInput": {
+ "id": [
+ 3
+ ],
+ "update": [
+ 463
],
"__typename": [
1
]
},
- "UpdateWorkspaceInput": {
- "subdomain": [
+ "UpdateWebhookInputUpdates": {
+ "targetUrl": [
1
],
- "customDomain": [
+ "operations": [
1
],
- "displayName": [
+ "description": [
1
],
- "logo": [
+ "secret": [
1
],
- "inviteHash": [
+ "__typename": [
1
+ ]
+ },
+ "CreateSkillInput": {
+ "id": [
+ 3
],
- "isPublicInviteLinkEnabled": [
- 6
- ],
- "allowImpersonation": [
- 6
- ],
- "isGoogleAuthEnabled": [
- 6
- ],
- "isMicrosoftAuthEnabled": [
- 6
- ],
- "isPasswordAuthEnabled": [
- 6
- ],
- "isGoogleAuthBypassEnabled": [
- 6
- ],
- "isMicrosoftAuthBypassEnabled": [
- 6
+ "name": [
+ 1
],
- "isPasswordAuthBypassEnabled": [
- 6
+ "label": [
+ 1
],
- "defaultRoleId": [
- 3
+ "icon": [
+ 1
],
- "isTwoFactorAuthenticationEnforced": [
- 6
+ "description": [
+ 1
],
- "trashRetentionDays": [
- 11
+ "content": [
+ 1
],
- "eventLogRetentionDays": [
- 11
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateSkillInput": {
+ "id": [
+ 3
],
- "fastModel": [
+ "name": [
1
],
- "smartModel": [
+ "label": [
1
],
- "aiAdditionalInstructions": [
+ "icon": [
1
],
- "editableProfileFields": [
+ "description": [
1
],
- "enabledAiModelIds": [
+ "content": [
1
],
- "useRecommendedModels": [
+ "isActive": [
6
],
"__typename": [
1
]
},
+ "GetAuthorizationUrlForSSOInput": {
+ "identityProviderId": [
+ 3
+ ],
+ "workspaceInviteHash": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"CreateApplicationRegistrationInput": {
"name": [
1
@@ -10983,7 +11107,7 @@ export default {
1
],
"update": [
- 458
+ 469
],
"__typename": [
1
@@ -11046,7 +11170,7 @@ export default {
1
],
"update": [
- 461
+ 472
],
"__typename": [
1
@@ -11063,263 +11187,142 @@ export default {
1
]
},
- "GetAuthorizationUrlForSSOInput": {
- "identityProviderId": [
- 3
- ],
- "workspaceInviteHash": [
- 1
- ],
- "__typename": [
- 1
- ]
- },
- "SetupOIDCSsoInput": {
- "name": [
- 1
- ],
- "issuer": [
- 1
- ],
- "clientID": [
- 1
- ],
- "clientSecret": [
+ "ActivateWorkspaceInput": {
+ "displayName": [
1
],
"__typename": [
1
]
},
- "SetupSAMLSsoInput": {
- "name": [
- 1
- ],
- "issuer": [
- 1
- ],
- "id": [
- 3
- ],
- "ssoURL": [
- 1
- ],
- "certificate": [
+ "UpdateWorkspaceInput": {
+ "subdomain": [
1
],
- "fingerprint": [
+ "customDomain": [
1
],
- "__typename": [
+ "displayName": [
1
- ]
- },
- "DeleteSsoInput": {
- "identityProviderId": [
- 3
],
- "__typename": [
+ "logo": [
1
- ]
- },
- "EditSsoInput": {
- "id": [
- 3
- ],
- "status": [
- 148
],
- "__typename": [
+ "inviteHash": [
1
- ]
- },
- "UpdateMessageFolderInput": {
- "id": [
- 3
- ],
- "update": [
- 468
],
- "__typename": [
- 1
- ]
- },
- "UpdateMessageFolderInputUpdates": {
- "isSynced": [
+ "isPublicInviteLinkEnabled": [
6
],
- "__typename": [
- 1
- ]
- },
- "UpdateMessageFoldersInput": {
- "ids": [
- 3
- ],
- "update": [
- 468
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateMessageChannelInput": {
- "id": [
- 3
- ],
- "update": [
- 471
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateMessageChannelInputUpdates": {
- "visibility": [
- 244
+ "allowImpersonation": [
+ 6
],
- "isContactAutoCreationEnabled": [
+ "isGoogleAuthEnabled": [
6
],
- "contactAutoCreationPolicy": [
- 246
+ "isMicrosoftAuthEnabled": [
+ 6
],
- "messageFolderImportPolicy": [
- 247
+ "isPasswordAuthEnabled": [
+ 6
],
- "isSyncEnabled": [
+ "isGoogleAuthBypassEnabled": [
6
],
- "excludeNonProfessionalEmails": [
+ "isMicrosoftAuthBypassEnabled": [
6
],
- "excludeGroupEmails": [
+ "isPasswordAuthBypassEnabled": [
6
],
- "__typename": [
- 1
- ]
- },
- "UpdateCalendarChannelInput": {
- "id": [
+ "defaultRoleId": [
3
],
- "update": [
- 473
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateCalendarChannelInputUpdates": {
- "visibility": [
- 240
- ],
- "isContactAutoCreationEnabled": [
+ "isTwoFactorAuthenticationEnforced": [
6
],
- "contactAutoCreationPolicy": [
- 241
- ],
- "isSyncEnabled": [
- 6
+ "trashRetentionDays": [
+ 11
],
- "__typename": [
- 1
- ]
- },
- "CreateWebhookInput": {
- "id": [
- 3
+ "eventLogRetentionDays": [
+ 11
],
- "targetUrl": [
+ "fastModel": [
1
],
- "operations": [
+ "smartModel": [
1
],
- "description": [
+ "aiAdditionalInstructions": [
1
],
- "secret": [
+ "editableProfileFields": [
1
],
- "__typename": [
+ "enabledAiModelIds": [
1
- ]
- },
- "UpdateWebhookInput": {
- "id": [
- 3
],
- "update": [
- 476
+ "useRecommendedModels": [
+ 6
],
"__typename": [
1
]
},
- "UpdateWebhookInputUpdates": {
- "targetUrl": [
+ "SetupOIDCSsoInput": {
+ "name": [
1
],
- "operations": [
+ "issuer": [
1
],
- "description": [
+ "clientID": [
1
],
- "secret": [
+ "clientSecret": [
1
],
"__typename": [
1
]
},
- "CreateSkillInput": {
- "id": [
- 3
- ],
+ "SetupSAMLSsoInput": {
"name": [
1
],
- "label": [
+ "issuer": [
1
],
- "icon": [
+ "id": [
+ 3
+ ],
+ "ssoURL": [
1
],
- "description": [
+ "certificate": [
1
],
- "content": [
+ "fingerprint": [
1
],
"__typename": [
1
]
},
- "UpdateSkillInput": {
- "id": [
+ "DeleteSsoInput": {
+ "identityProviderId": [
3
],
- "name": [
- 1
- ],
- "label": [
- 1
- ],
- "icon": [
- 1
- ],
- "description": [
- 1
- ],
- "content": [
+ "__typename": [
1
+ ]
+ },
+ "EditSsoInput": {
+ "id": [
+ 3
],
- "isActive": [
- 6
+ "status": [
+ 160
],
"__typename": [
1
@@ -11400,7 +11403,7 @@ export default {
487
],
"metadataName": [
- 254
+ 341
],
"universalIdentifier": [
1
@@ -11413,7 +11416,7 @@ export default {
"FileFolder": {},
"Subscription": {
"onEventSubscription": [
- 217,
+ 153,
{
"eventStreamId": [
1,
@@ -11422,7 +11425,7 @@ export default {
}
],
"logicFunctionLogs": [
- 220,
+ 296,
{
"input": [
490,
diff --git a/packages/twenty-client-sdk/src/metadata/index.ts b/packages/twenty-client-sdk/src/metadata/index.ts
new file mode 100644
index 00000000000..72f8057c93f
--- /dev/null
+++ b/packages/twenty-client-sdk/src/metadata/index.ts
@@ -0,0 +1,2 @@
+export { MetadataApiClient } from './generated/index';
+export * as MetadataSchema from './generated/schema';
diff --git a/packages/twenty-client-sdk/tsconfig.json b/packages/twenty-client-sdk/tsconfig.json
new file mode 100644
index 00000000000..43709b3de84
--- /dev/null
+++ b/packages/twenty-client-sdk/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "../../tsconfig.base.json",
+ "compilerOptions": {
+ "allowJs": false,
+ "esModuleInterop": false,
+ "allowSyntheticDefaultImports": true,
+ "strictNullChecks": true,
+ "alwaysStrict": true,
+ "noImplicitAny": true,
+ "strictBindCallApply": false,
+ "noEmit": true,
+ "types": ["node"],
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ },
+ "include": ["src/**/*.ts", "vite.config.ts"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/packages/twenty-client-sdk/tsconfig.lib.json b/packages/twenty-client-sdk/tsconfig.lib.json
new file mode 100644
index 00000000000..4a9ce13e93e
--- /dev/null
+++ b/packages/twenty-client-sdk/tsconfig.lib.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "outDir": "./dist",
+ "rootDir": "./src",
+ "strict": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "forceConsistentCasingInFileNames": true,
+ "skipLibCheck": true,
+ "resolveJsonModule": true,
+ "declaration": false,
+ "sourceMap": true
+ },
+ "include": ["src"],
+ "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
+}
diff --git a/packages/twenty-client-sdk/vite.config.ts b/packages/twenty-client-sdk/vite.config.ts
new file mode 100644
index 00000000000..e4be0bb6a6d
--- /dev/null
+++ b/packages/twenty-client-sdk/vite.config.ts
@@ -0,0 +1,78 @@
+import path from 'path';
+import { defineConfig } from 'vite';
+import tsconfigPaths from 'vite-tsconfig-paths';
+import packageJson from './package.json';
+
+const entries = [
+ 'src/core/index.ts',
+ 'src/metadata/index.ts',
+ 'src/generate/index.ts',
+];
+
+const entryFileNames = (chunk: any, extension: 'cjs' | 'mjs') => {
+ if (!chunk.isEntry) {
+ throw new Error(
+ `Should never occur, encountered a non entry chunk ${chunk.facadeModuleId}`,
+ );
+ }
+
+ const splitFaceModuleId = chunk.facadeModuleId?.split('/');
+ if (splitFaceModuleId === undefined) {
+ throw new Error(
+ `Should never occur, splitFaceModuleId is undefined ${chunk.facadeModuleId}`,
+ );
+ }
+
+ const moduleDirectory = splitFaceModuleId[splitFaceModuleId?.length - 2];
+ if (moduleDirectory === 'src') {
+ return `${chunk.name}.${extension}`;
+ }
+ return `${moduleDirectory}.${extension}`;
+};
+
+export default defineConfig(() => {
+ return {
+ root: __dirname,
+ cacheDir: '../../node_modules/.vite/packages/twenty-client-sdk',
+ resolve: {
+ alias: {
+ '@/': path.resolve(__dirname, 'src') + '/',
+ },
+ },
+ plugins: [
+ tsconfigPaths({
+ root: __dirname,
+ }),
+ ],
+ build: {
+ emptyOutDir: false,
+ outDir: 'dist',
+ lib: { entry: entries, name: 'twenty-client-sdk' },
+ rollupOptions: {
+ external: [
+ ...Object.keys((packageJson as any).dependencies || {}),
+ ...Object.keys((packageJson as any).devDependencies || {}).filter(
+ (dep: string) => dep !== 'twenty-shared',
+ ),
+ 'node:fs/promises',
+ 'node:fs',
+ 'node:path',
+ ],
+ output: [
+ {
+ format: 'es',
+ entryFileNames: (chunk) => entryFileNames(chunk, 'mjs'),
+ },
+ {
+ format: 'cjs',
+ interop: 'auto',
+ esModule: true,
+ exports: 'named',
+ entryFileNames: (chunk) => entryFileNames(chunk, 'cjs'),
+ },
+ ],
+ },
+ },
+ logLevel: 'warn',
+ };
+});
diff --git a/packages/twenty-client-sdk/vitest.config.ts b/packages/twenty-client-sdk/vitest.config.ts
new file mode 100644
index 00000000000..8555cf2620e
--- /dev/null
+++ b/packages/twenty-client-sdk/vitest.config.ts
@@ -0,0 +1,14 @@
+import { defineConfig } from 'vitest/config';
+
+export default defineConfig({
+ test: {
+ name: 'twenty-client-sdk',
+ environment: 'node',
+ include: [
+ 'src/**/__tests__/**/*.{test,spec}.{ts,tsx}',
+ 'src/**/*.{test,spec}.{ts,tsx}',
+ ],
+ exclude: ['**/node_modules/**', '**/.git/**'],
+ globals: true,
+ },
+});
diff --git a/packages/twenty-docs/developers/extend/capabilities/apps.mdx b/packages/twenty-docs/developers/extend/capabilities/apps.mdx
index 1e3e1f9a088..f027d9e6a75 100644
--- a/packages/twenty-docs/developers/extend/capabilities/apps.mdx
+++ b/packages/twenty-docs/developers/extend/capabilities/apps.mdx
@@ -546,7 +546,7 @@ Each function file uses `defineLogicFunction()` to export a configuration with a
// src/app/createPostCard.logic-function.ts
import { defineLogicFunction } from 'twenty-sdk';
import type { DatabaseEventPayload, ObjectRecordCreateEvent, CronPayload, RoutePayload } from 'twenty-sdk';
-import { CoreApiClient, type Person } from 'twenty-sdk/clients';
+import { CoreApiClient, type Person } from 'twenty-client-sdk/core';
const handler = async (params: RoutePayload) => {
const client = new CoreApiClient();
@@ -784,7 +784,7 @@ To mark a logic function as a tool, set `isTool: true` and provide a `toolInputS
```typescript
// src/logic-functions/enrich-company.logic-function.ts
import { defineLogicFunction } from 'twenty-sdk';
-import { CoreApiClient } from 'twenty-sdk/clients';
+import { CoreApiClient } from 'twenty-client-sdk/core';
const handler = async (params: { companyName: string; domain?: string }) => {
const client = new CoreApiClient();
@@ -1200,8 +1200,8 @@ Two typed clients are auto-generated by `yarn twenty dev` and stored in `node_mo
- **`MetadataApiClient`** — queries the `/metadata` endpoint for workspace configuration and file uploads
```typescript
-import { CoreApiClient } from 'twenty-sdk/clients';
-import { MetadataApiClient } from 'twenty-sdk/clients';
+import { CoreApiClient } from 'twenty-client-sdk/core';
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
const client = new CoreApiClient();
const { me } = await client.query({ me: { id: true, displayName: true } });
@@ -1229,7 +1229,7 @@ Notes:
The `MetadataApiClient` includes an `uploadFile` method for attaching files to file-type fields on your workspace objects. Because standard GraphQL clients do not support multipart file uploads natively, the client provides this dedicated method that implements the [GraphQL multipart request specification](https://github.com/jaydenseric/graphql-multipart-request-spec) under the hood.
```typescript
-import { MetadataApiClient } from 'twenty-sdk/clients';
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
import * as fs from 'fs';
const metadataClient = new MetadataApiClient();
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 6474817584e..9d217b7ebff 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -1873,6 +1873,7 @@ export enum FileFolder {
Dependencies = 'Dependencies',
File = 'File',
FilesField = 'FilesField',
+ GeneratedSdkClient = 'GeneratedSdkClient',
PersonPicture = 'PersonPicture',
ProfilePicture = 'ProfilePicture',
PublicAsset = 'PublicAsset',
@@ -1920,6 +1921,7 @@ export type FrontComponent = {
sourceComponentPath: Scalars['String'];
universalIdentifier?: Maybe<Scalars['UUID']>;
updatedAt: Scalars['DateTime'];
+ usesSdkClient: Scalars['Boolean'];
};
export type FrontComponentConfiguration = {
@@ -6640,7 +6642,7 @@ export type FindOneFrontComponentQueryVariables = Exact<{
}>;
-export type FindOneFrontComponentQuery = { __typename?: 'Query', frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, applicationId: string, builtComponentChecksum: string, isHeadless: boolean, applicationTokenPair?: { __typename?: 'ApplicationTokenPair', applicationAccessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, applicationRefreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } | null } | null };
+export type FindOneFrontComponentQuery = { __typename?: 'Query', frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, applicationId: string, builtComponentChecksum: string, isHeadless: boolean, usesSdkClient: boolean, applicationTokenPair?: { __typename?: 'ApplicationTokenPair', applicationAccessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, applicationRefreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } | null } | null };
export type LogicFunctionFieldsFragment = { __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, sourceHandlerPath: string, handlerName: string, toolInputSchema?: any | null, isTool: boolean, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string };
@@ -8170,7 +8172,7 @@ export const UploadFilesFieldFileDocument = {"kind":"Document","definitions":[{"
export const UploadWorkflowFileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadWorkflowFile"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Upload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadWorkflowFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode<UploadWorkflowFileMutation, UploadWorkflowFileMutationVariables>;
export const RenewApplicationTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RenewApplicationToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"renewApplicationToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRefreshToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationAccessToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicationRefreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]} as unknown as DocumentNode<RenewApplicationTokenMutation, RenewApplicationTokenMutationVariables>;
export const FindManyFrontComponentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyFrontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}}]}}]}}]} as unknown as DocumentNode<FindManyFrontComponentsQuery, FindManyFrontComponentsQueryVariables>;
-export const FindOneFrontComponentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneFrontComponent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"applicationTokenPair"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationAccessToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicationRefreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode<FindOneFrontComponentQuery, FindOneFrontComponentQueryVariables>;
+export const FindOneFrontComponentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneFrontComponent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"applicationTokenPair"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationAccessToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicationRefreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode<FindOneFrontComponentQuery, FindOneFrontComponentQueryVariables>;
export const CreateOneLogicFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneLogicFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateLogicFunctionFromSourceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneLogicFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"toolInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"isTool"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateOneLogicFunctionMutation, CreateOneLogicFunctionMutationVariables>;
export const DeleteOneLogicFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneLogicFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunctionIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneLogicFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"toolInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"isTool"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<DeleteOneLogicFunctionMutation, DeleteOneLogicFunctionMutationVariables>;
export const ExecuteOneLogicFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ExecuteOneLogicFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExecuteOneLogicFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"executeOneLogicFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"logs"}},{"kind":"Field","name":{"kind":"Name","value":"duration"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]} as unknown as DocumentNode<ExecuteOneLogicFunctionMutation, ExecuteOneLogicFunctionMutationVariables>;
diff --git a/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx b/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx
index 483ccbe3a5c..c8db3d6aa2b 100644
--- a/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx
+++ b/packages/twenty-front/src/modules/front-components/components/FrontComponentRenderer.tsx
@@ -1,4 +1,5 @@
import { FrontComponentRendererProvider } from '@/front-components/components/FrontComponentRendererProvider';
+import { FrontComponentRendererWithSdkClient } from '@/front-components/components/FrontComponentRendererWithSdkClient';
import { useFrontComponentExecutionContext } from '@/front-components/hooks/useFrontComponentExecutionContext';
import { useOnFrontComponentUpdated } from '@/front-components/hooks/useOnFrontComponentUpdated';
import { frontComponentApplicationTokenPairComponentState } from '@/front-components/states/frontComponentApplicationTokenPairComponentState';
@@ -73,11 +74,6 @@ export const FrontComponentRenderer = ({
frontComponentId,
});
- const componentUrl = getFrontComponentUrl({
- frontComponentId,
- checksum: data?.frontComponent?.builtComponentChecksum,
- });
-
const applicationTokenPair =
data?.frontComponent?.applicationTokenPair ?? null;
@@ -89,14 +85,39 @@ export const FrontComponentRenderer = ({
return null;
}
+ const componentUrl = getFrontComponentUrl({
+ frontComponentId,
+ checksum: data.frontComponent.builtComponentChecksum,
+ });
+
+ const usesSdkClient = data.frontComponent.usesSdkClient;
+
+ const accessToken = applicationTokenPair.applicationAccessToken.token;
+
+ if (usesSdkClient) {
+ return (
+ <FrontComponentRendererProvider frontComponentId={frontComponentId}>
+ <FrontComponentRendererWithSdkClient
+ colorScheme={colorScheme}
+ componentUrl={componentUrl}
+ applicationAccessToken={accessToken}
+ applicationId={data.frontComponent.applicationId}
+ executionContext={executionContext}
+ frontComponentHostCommunicationApi={
+ frontComponentHostCommunicationApi
+ }
+ onError={handleError}
+ />
+ </FrontComponentRendererProvider>
+ );
+ }
+
return (
<FrontComponentRendererProvider frontComponentId={frontComponentId}>
<SharedFrontComponentRenderer
colorScheme={colorScheme}
componentUrl={componentUrl}
- applicationAccessToken={
- applicationTokenPair.applicationAccessToken.token
- }
+ applicationAccessToken={accessToken}
apiUrl={REACT_APP_SERVER_BASE_URL}
executionContext={executionContext}
frontComponentHostCommunicationApi={frontComponentHostCommunicationApi}
diff --git a/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererWithSdkClient.tsx b/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererWithSdkClient.tsx
new file mode 100644
index 00000000000..e7d0c4debb6
--- /dev/null
+++ b/packages/twenty-front/src/modules/front-components/components/FrontComponentRendererWithSdkClient.tsx
@@ -0,0 +1,58 @@
+import { useAtomValue } from 'jotai';
+
+import { SdkClientBlobUrlsEffect } from '@/front-components/components/SdkClientBlobUrlsEffect';
+import { sdkClientFamilyState } from '@/front-components/states/sdkClientFamilyState';
+import {
+ FrontComponentRenderer as SharedFrontComponentRenderer,
+ type FrontComponentExecutionContext,
+ type FrontComponentHostCommunicationApi,
+} from 'twenty-sdk/front-component-renderer';
+import { REACT_APP_SERVER_BASE_URL } from '~/config';
+
+type FrontComponentRendererWithSdkClientProps = {
+ colorScheme: 'light' | 'dark';
+ componentUrl: string;
+ applicationAccessToken: string;
+ applicationId: string;
+ executionContext: FrontComponentExecutionContext;
+ frontComponentHostCommunicationApi: FrontComponentHostCommunicationApi;
+ onError: (error?: Error) => void;
+};
+
+export const FrontComponentRendererWithSdkClient = ({
+ colorScheme,
+ componentUrl,
+ applicationAccessToken,
+ applicationId,
+ executionContext,
+ frontComponentHostCommunicationApi,
+ onError,
+}: FrontComponentRendererWithSdkClientProps) => {
+ const sdkClientState = useAtomValue(
+ sdkClientFamilyState.atomFamily(applicationId),
+ );
+
+ return (
+ <>
+ <SdkClientBlobUrlsEffect
+ applicationId={applicationId}
+ accessToken={applicationAccessToken}
+ onError={onError}
+ />
+ {sdkClientState.status === 'loaded' && (
+ <SharedFrontComponentRenderer
+ colorScheme={colorScheme}
+ componentUrl={componentUrl}
+ applicationAccessToken={applicationAccessToken}
+ apiUrl={REACT_APP_SERVER_BASE_URL}
+ sdkClientUrls={sdkClientState.blobUrls}
+ executionContext={executionContext}
+ frontComponentHostCommunicationApi={
+ frontComponentHostCommunicationApi
+ }
+ onError={onError}
+ />
+ )}
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/front-components/components/SdkClientBlobUrlsEffect.tsx b/packages/twenty-front/src/modules/front-components/components/SdkClientBlobUrlsEffect.tsx
new file mode 100644
index 00000000000..161ed2e4000
--- /dev/null
+++ b/packages/twenty-front/src/modules/front-components/components/SdkClientBlobUrlsEffect.tsx
@@ -0,0 +1,49 @@
+import { useStore } from 'jotai';
+import { useEffect } from 'react';
+
+import { sdkClientFamilyState } from '@/front-components/states/sdkClientFamilyState';
+import { fetchSdkClientBlobUrls } from '@/front-components/utils/fetchSdkClientBlobUrls';
+
+export const SdkClientBlobUrlsEffect = ({
+ applicationId,
+ accessToken,
+ onError,
+}: {
+ applicationId: string;
+ accessToken: string;
+ onError?: (error: Error) => void;
+}) => {
+ const store = useStore();
+
+ useEffect(() => {
+ const atom = sdkClientFamilyState.atomFamily(applicationId);
+ const { status } = store.get(atom);
+
+ if (status === 'loading' || status === 'loaded') {
+ return;
+ }
+
+ store.set(atom, { status: 'loading' });
+
+ const fetchBlobUrls = async () => {
+ try {
+ const blobUrls = await fetchSdkClientBlobUrls(
+ applicationId,
+ accessToken,
+ );
+
+ store.set(atom, { status: 'loaded', blobUrls });
+ } catch (error: unknown) {
+ const normalizedError =
+ error instanceof Error ? error : new Error(String(error));
+
+ store.set(atom, { status: 'error', error: normalizedError });
+ onError?.(normalizedError);
+ }
+ };
+
+ fetchBlobUrls();
+ }, [applicationId, accessToken, store, onError]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts b/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts
index 99d530bc887..f13be24c1c7 100644
--- a/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts
+++ b/packages/twenty-front/src/modules/front-components/graphql/queries/findOneFrontComponent.ts
@@ -8,6 +8,7 @@ export const FIND_ONE_FRONT_COMPONENT = gql`
applicationId
builtComponentChecksum
isHeadless
+ usesSdkClient
applicationTokenPair {
applicationAccessToken {
token
diff --git a/packages/twenty-front/src/modules/front-components/states/sdkClientFamilyState.ts b/packages/twenty-front/src/modules/front-components/states/sdkClientFamilyState.ts
new file mode 100644
index 00000000000..43347bf6c9b
--- /dev/null
+++ b/packages/twenty-front/src/modules/front-components/states/sdkClientFamilyState.ts
@@ -0,0 +1,20 @@
+import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';
+
+export type SdkClientBlobUrls = {
+ core: string;
+ metadata: string;
+};
+
+export type SdkClientState =
+ | { status: 'idle' }
+ | { status: 'loading' }
+ | { status: 'loaded'; blobUrls: SdkClientBlobUrls }
+ | { status: 'error'; error: Error };
+
+export const sdkClientFamilyState = createAtomFamilyState<
+ SdkClientState,
+ string
+>({
+ key: 'sdkClientFamilyState',
+ defaultValue: { status: 'idle' },
+});
diff --git a/packages/twenty-front/src/modules/front-components/utils/fetchSdkClientBlobUrls.ts b/packages/twenty-front/src/modules/front-components/utils/fetchSdkClientBlobUrls.ts
new file mode 100644
index 00000000000..48d2c89b376
--- /dev/null
+++ b/packages/twenty-front/src/modules/front-components/utils/fetchSdkClientBlobUrls.ts
@@ -0,0 +1,55 @@
+import { type SdkClientBlobUrls } from '@/front-components/states/sdkClientFamilyState';
+import { getSdkClientUrls } from '@/front-components/utils/getSdkClientUrls';
+
+const fetchAndCreateBlobUrl = async (
+ url: string,
+ token: string,
+): Promise<string> => {
+ const response = await fetch(url, {
+ headers: { Authorization: `Bearer ${token}` },
+ });
+
+ if (!response.ok) {
+ throw new Error(
+ `Failed to fetch SDK module from ${url}: ${response.status}`,
+ );
+ }
+
+ const source = await response.text();
+ const blob = new Blob([source], { type: 'application/javascript' });
+
+ return URL.createObjectURL(blob);
+};
+
+export const fetchSdkClientBlobUrls = async (
+ applicationId: string,
+ accessToken: string,
+): Promise<SdkClientBlobUrls> => {
+ const urls = getSdkClientUrls(applicationId);
+
+ const [coreResult, metadataResult] = await Promise.allSettled([
+ fetchAndCreateBlobUrl(urls.core, accessToken),
+ fetchAndCreateBlobUrl(urls.metadata, accessToken),
+ ]);
+
+ if (
+ coreResult.status === 'fulfilled' &&
+ metadataResult.status === 'fulfilled'
+ ) {
+ return { core: coreResult.value, metadata: metadataResult.value };
+ }
+
+ if (coreResult.status === 'fulfilled') {
+ URL.revokeObjectURL(coreResult.value);
+ }
+
+ if (metadataResult.status === 'fulfilled') {
+ URL.revokeObjectURL(metadataResult.value);
+ }
+
+ throw coreResult.status === 'rejected'
+ ? coreResult.reason
+ : metadataResult.status === 'rejected'
+ ? metadataResult.reason
+ : new Error('Unexpected SDK client fetch failure');
+};
diff --git a/packages/twenty-front/src/modules/front-components/utils/getSdkClientUrls.ts b/packages/twenty-front/src/modules/front-components/utils/getSdkClientUrls.ts
new file mode 100644
index 00000000000..68c7c87c8bb
--- /dev/null
+++ b/packages/twenty-front/src/modules/front-components/utils/getSdkClientUrls.ts
@@ -0,0 +1,6 @@
+import { REST_API_BASE_URL } from '@/apollo/constant/rest-api-base-url';
+
+export const getSdkClientUrls = (applicationId: string) => ({
+ core: `${REST_API_BASE_URL}/sdk-client/${applicationId}/core`,
+ metadata: `${REST_API_BASE_URL}/sdk-client/${applicationId}/metadata`,
+});
diff --git a/packages/twenty-front/src/modules/users/hooks/useLoadCurrentUser.ts b/packages/twenty-front/src/modules/users/hooks/useLoadCurrentUser.ts
index 7845e09889a..819df2e5d4a 100644
--- a/packages/twenty-front/src/modules/users/hooks/useLoadCurrentUser.ts
+++ b/packages/twenty-front/src/modules/users/hooks/useLoadCurrentUser.ts
@@ -56,7 +56,7 @@ export const useLoadCurrentUser = () => {
const user = currentUserResult.data?.currentUser;
- if (!user) {
+ if (!isDefined(user)) {
throw new Error('No current user result');
}
diff --git a/packages/twenty-sdk/.oxlintrc.json b/packages/twenty-sdk/.oxlintrc.json
index e21abc5dbe5..a1d10264b45 100644
--- a/packages/twenty-sdk/.oxlintrc.json
+++ b/packages/twenty-sdk/.oxlintrc.json
@@ -4,7 +4,7 @@
"categories": {
"correctness": "off"
},
- "ignorePatterns": ["node_modules", "dist", "src/clients/generated"],
+ "ignorePatterns": ["node_modules", "dist"],
"rules": {
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"no-console": "off",
diff --git a/packages/twenty-sdk/.prettierignore b/packages/twenty-sdk/.prettierignore
index 2b4b03aed84..e3d13709bb2 100644
--- a/packages/twenty-sdk/.prettierignore
+++ b/packages/twenty-sdk/.prettierignore
@@ -1,4 +1,3 @@
dist
storybook-static
coverage
-src/clients/generated
diff --git a/packages/twenty-sdk/package.json b/packages/twenty-sdk/package.json
index 23c2f558f8c..de2a85c614e 100644
--- a/packages/twenty-sdk/package.json
+++ b/packages/twenty-sdk/package.json
@@ -48,11 +48,6 @@
"types": "./dist/build/index.d.ts",
"import": "./dist/build.mjs",
"require": "./dist/build.cjs"
- },
- "./clients": {
- "types": "./dist/clients/index.d.ts",
- "import": "./dist/clients.mjs",
- "require": "./dist/clients.cjs"
}
},
"license": "AGPL-3.0",
@@ -101,6 +96,7 @@
"storybook": "^10.2.13",
"ts-morph": "^25.0.0",
"tsx": "^4.7.0",
+ "twenty-client-sdk": "workspace:*",
"twenty-shared": "workspace:*",
"twenty-ui": "workspace:*",
"vite-plugin-dts": "^4.5.4",
@@ -120,9 +116,6 @@
],
"front-component-renderer": [
"dist/front-component-renderer/index.d.ts"
- ],
- "clients": [
- "dist/clients/index.d.ts"
]
}
}
diff --git a/packages/twenty-sdk/project.json b/packages/twenty-sdk/project.json
index 43183fc883c..65d758cc052 100644
--- a/packages/twenty-sdk/project.json
+++ b/packages/twenty-sdk/project.json
@@ -96,16 +96,6 @@
"command": "npx vite build -c vite.config.sdk.ts"
}
},
- "generate-metadata-client": {
- "executor": "nx:run-commands",
- "cache": false,
- "dependsOn": ["^build"],
- "outputs": ["{projectRoot}/src/clients/generated/metadata"],
- "options": {
- "cwd": "packages/twenty-sdk",
- "command": "tsx -r tsconfig-paths/register scripts/generate-metadata-client.ts"
- }
- },
"generate-remote-dom-elements": {
"executor": "nx:run-commands",
"cache": true,
diff --git a/packages/twenty-sdk/scripts/generate-metadata-client.ts b/packages/twenty-sdk/scripts/generate-metadata-client.ts
deleted file mode 100644
index 1578720d209..00000000000
--- a/packages/twenty-sdk/scripts/generate-metadata-client.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { readFile } from 'node:fs/promises';
-import path from 'path';
-
-import { CLIENTS_GENERATED_DIR } from '@/cli/constants/clients-dir';
-import { ClientService } from '@/cli/utilities/client/client-service';
-
-const TEMPLATE_PATH = path.resolve(
- __dirname,
- '..',
- 'src',
- 'cli',
- 'utilities',
- 'client',
- 'twenty-client-template.ts',
-);
-
-const main = async () => {
- const outputPath = path.resolve(
- __dirname,
- '..',
- CLIENTS_GENERATED_DIR,
- 'metadata',
- );
-
- const serverUrl = process.env.TWENTY_API_URL ?? 'http://localhost:3000';
- const clientWrapperTemplateSource = await readFile(TEMPLATE_PATH, 'utf-8');
-
- const clientService = new ClientService({
- clientWrapperTemplateSource,
- serverUrl,
- skipAuth: true,
- });
-
- await clientService.generateMetadataClient({ outputPath });
-
- console.log(`Metadata client generated at ${outputPath}`);
-};
-
-main().catch((error) => {
- console.error('Failed to generate metadata client:', error);
- process.exit(1);
-});
diff --git a/packages/twenty-sdk/src/cli/__tests__/apps/function-execute-app/__e2e__/function-execute.e2e-spec.ts b/packages/twenty-sdk/src/cli/__tests__/apps/function-execute-app/__e2e__/function-execute.e2e-spec.ts
index 5fc63005d53..72ff189f48f 100644
--- a/packages/twenty-sdk/src/cli/__tests__/apps/function-execute-app/__e2e__/function-execute.e2e-spec.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/apps/function-execute-app/__e2e__/function-execute.e2e-spec.ts
@@ -1,6 +1,8 @@
import { vi } from 'vitest';
import { appBuild } from '@/cli/operations/build';
+import { appDeploy } from '@/cli/operations/deploy';
+import { appInstall } from '@/cli/operations/install';
import { appUninstall } from '@/cli/operations/uninstall';
import { functionExecute } from '@/cli/operations/execute';
import { FUNCTION_EXECUTE_APP_PATH } from '@/cli/__tests__/apps/fixture-paths';
@@ -11,7 +13,7 @@ const APP_PATH = FUNCTION_EXECUTE_APP_PATH;
describe('functionExecute E2E', () => {
beforeAll(async () => {
- const buildResult = await appBuild({ appPath: APP_PATH });
+ const buildResult = await appBuild({ appPath: APP_PATH, tarball: true });
if (!buildResult.success) {
throw new Error(
@@ -19,6 +21,24 @@ describe('functionExecute E2E', () => {
);
}
+ const deployResult = await appDeploy({
+ tarballPath: buildResult.data.tarballPath!,
+ });
+
+ if (!deployResult.success) {
+ throw new Error(
+ `appDeploy failed: ${deployResult.error.code} – ${deployResult.error.message}`,
+ );
+ }
+
+ const installResult = await appInstall({ appPath: APP_PATH });
+
+ if (!installResult.success) {
+ throw new Error(
+ `appInstall failed: ${installResult.error.code} – ${installResult.error.message}`,
+ );
+ }
+
await vi.waitFor(
async () => {
const result = await functionExecute({
diff --git a/packages/twenty-sdk/src/cli/__tests__/apps/minimal-app/__integration__/app-dev/expected-manifest.ts b/packages/twenty-sdk/src/cli/__tests__/apps/minimal-app/__integration__/app-dev/expected-manifest.ts
index a6d3f6b00a9..c16414e6507 100644
--- a/packages/twenty-sdk/src/cli/__tests__/apps/minimal-app/__integration__/app-dev/expected-manifest.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/apps/minimal-app/__integration__/app-dev/expected-manifest.ts
@@ -15,7 +15,6 @@ export const EXPECTED_MANIFEST: Manifest = {
defaultRoleUniversalIdentifier: 'e1e2e3e4-e5e6-4000-8000-000000000002',
packageJsonChecksum: '[checksum]',
yarnLockChecksum: '[checksum]',
- apiClientChecksum: null,
},
skills: [],
agents: [],
@@ -345,6 +344,7 @@ export const EXPECTED_MANIFEST: Manifest = {
builtComponentPath: 'my.front-component.mjs',
builtComponentChecksum: '[checksum]',
isHeadless: false,
+ usesSdkClient: false,
},
],
views: [],
diff --git a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
index 980510242fc..fae5ba28c6b 100644
--- a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
@@ -49,7 +49,6 @@ export const EXPECTED_MANIFEST: Manifest = {
universalIdentifier: '4ec0391d-18d5-411c-b2f3-266ddc1c3ef7',
yarnLockChecksum: 'd41d8cd98f00b204e9800998ecf8427e',
packageJsonChecksum: '2851d0e2c3621a57e1fd103a245b6fde',
- apiClientChecksum: null,
},
frontComponents: [
{
@@ -61,6 +60,7 @@ export const EXPECTED_MANIFEST: Manifest = {
sourceComponentPath: 'src/root.front-component.tsx',
universalIdentifier: 'a0a1a2a3-a4a5-4000-8000-000000000001',
isHeadless: false,
+ usesSdkClient: false,
},
{
builtComponentPath: 'src/components/card.front-component.mjs',
@@ -71,6 +71,7 @@ export const EXPECTED_MANIFEST: Manifest = {
sourceComponentPath: 'src/components/card.front-component.tsx',
universalIdentifier: '88c15ae2-5f87-4a6b-b48f-1974bbe62eb7',
isHeadless: false,
+ usesSdkClient: false,
},
{
builtComponentPath: 'src/components/greeting.front-component.mjs',
@@ -81,6 +82,7 @@ export const EXPECTED_MANIFEST: Manifest = {
sourceComponentPath: 'src/components/greeting.front-component.tsx',
universalIdentifier: '370ae182-743f-4ecb-b625-7ac48e21f0e5',
isHeadless: false,
+ usesSdkClient: false,
},
{
builtComponentPath: 'src/components/test.front-component.mjs',
@@ -91,6 +93,7 @@ export const EXPECTED_MANIFEST: Manifest = {
sourceComponentPath: 'src/components/test.front-component.tsx',
universalIdentifier: 'f1234567-abcd-4000-8000-000000000001',
isHeadless: false,
+ usesSdkClient: false,
},
],
@@ -269,7 +272,7 @@ export const EXPECTED_MANIFEST: Manifest = {
},
],
type: FieldType.SELECT,
- universalIdentifier: '8b9c0d1e-2f3a-4b5c-6d7e-8f9a0b1c2d3e',
+ universalIdentifier: 'b602dbd9-e511-49ce-b6d3-b697218dc69c',
},
{
objectUniversalIdentifier: '54b589ca-eeed-4950-a176-358418b85c05',
@@ -277,7 +280,7 @@ export const EXPECTED_MANIFEST: Manifest = {
label: 'Priority',
name: 'priority',
type: FieldType.NUMBER,
- universalIdentifier: '7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d',
+ universalIdentifier: '7b57bd63-5a4c-46ca-9d52-42c8f02d1df6',
},
{
label: 'Recipient',
@@ -1266,8 +1269,8 @@ export const EXPECTED_MANIFEST: Manifest = {
},
{
icon: 'IconHome',
- label: 'Address',
- name: 'address',
+ label: 'Mailing Address',
+ name: 'mailingAddress',
type: FieldType.ADDRESS,
universalIdentifier: 'd3a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d',
},
diff --git a/packages/twenty-sdk/src/cli/__tests__/integration/utils/normalize-manifest.util.ts b/packages/twenty-sdk/src/cli/__tests__/integration/utils/normalize-manifest.util.ts
index 1d54ae1bd32..e2bf4b98eae 100644
--- a/packages/twenty-sdk/src/cli/__tests__/integration/utils/normalize-manifest.util.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/integration/utils/normalize-manifest.util.ts
@@ -17,9 +17,6 @@ export const normalizeManifestForComparison = <T extends Manifest>(
packageJsonChecksum: manifest.application.packageJsonChecksum
? '[checksum]'
: null,
- apiClientChecksum: manifest.application.apiClientChecksum
- ? '[checksum]'
- : null,
},
objects: sortById(
manifest.objects.map((object) => ({
diff --git a/packages/twenty-sdk/src/cli/commands/app-command.ts b/packages/twenty-sdk/src/cli/commands/app-command.ts
index c6566955732..67ec637c1cb 100644
--- a/packages/twenty-sdk/src/cli/commands/app-command.ts
+++ b/packages/twenty-sdk/src/cli/commands/app-command.ts
@@ -3,6 +3,7 @@ import chalk from 'chalk';
import type { Command } from 'commander';
import { AppBuildCommand } from './build';
import { AppDevCommand } from './dev';
+import { AppInstallCommand } from './install';
import { AppPublishCommand } from './publish';
import { AppTypecheckCommand } from './typecheck';
import { AppUninstallCommand } from './uninstall';
@@ -17,6 +18,7 @@ import { SyncableEntity } from 'twenty-shared/application';
export const registerCommands = (program: Command): void => {
const buildCommand = new AppBuildCommand();
const devCommand = new AppDevCommand();
+ const installCommand = new AppInstallCommand();
const publishCommand = new AppPublishCommand();
const typecheckCommand = new AppTypecheckCommand();
const uninstallCommand = new AppUninstallCommand();
@@ -45,9 +47,20 @@ export const registerCommands = (program: Command): void => {
});
});
+ program
+ .command('install [appPath]')
+ .description('Install a deployed application on the connected server')
+ .option('-r, --remote <name>', 'Install on a specific remote')
+ .action(async (appPath, options) => {
+ await installCommand.execute({
+ appPath: formatPath(appPath),
+ remote: options.remote,
+ });
+ });
+
program
.command('deploy [appPath]')
- .description('Build and deploy to a Twenty server')
+ .description('Build and upload application to a Twenty server')
.option('-r, --remote <name>', 'Deploy to a specific remote')
.action(async (appPath, options) => {
await deployCommand.execute({
diff --git a/packages/twenty-sdk/src/cli/commands/deploy.ts b/packages/twenty-sdk/src/cli/commands/deploy.ts
index d77cb709e0a..b1290ecf6d9 100644
--- a/packages/twenty-sdk/src/cli/commands/deploy.ts
+++ b/packages/twenty-sdk/src/cli/commands/deploy.ts
@@ -1,7 +1,7 @@
+import { appBuild } from '@/cli/operations/build';
import { appDeploy } from '@/cli/operations/deploy';
import { CURRENT_EXECUTION_DIRECTORY } from '@/cli/utilities/config/current-execution-directory';
import { checkSdkVersionCompatibility } from '@/cli/utilities/version/check-sdk-version-compatibility';
-import { ConfigService } from '@/cli/utilities/config/config-service';
import chalk from 'chalk';
export type DeployCommandOptions = {
@@ -15,34 +15,26 @@ export class DeployCommand {
await checkSdkVersionCompatibility(appPath);
- const configService = new ConfigService();
- let serverUrl: string;
- let token: string | undefined;
+ console.log(chalk.blue('Deploying application...'));
+ console.log(chalk.gray(`App path: ${appPath}\n`));
- if (options.remote) {
- const remoteConfig = await configService.getConfigForRemote(
- options.remote,
- );
+ const onProgress = (message: string) => console.log(chalk.gray(message));
- serverUrl = remoteConfig.apiUrl;
- token = remoteConfig.accessToken ?? remoteConfig.apiKey;
- } else {
- const config = await configService.getConfig();
+ const buildResult = await appBuild({
+ appPath,
+ tarball: true,
+ onProgress,
+ });
- serverUrl = config.apiUrl;
- token = config.accessToken ?? config.apiKey;
+ if (!buildResult.success) {
+ console.error(chalk.red(buildResult.error.message));
+ process.exit(1);
}
- const remoteName = options.remote ?? ConfigService.getActiveRemote();
-
- console.log(chalk.blue(`Deploying to ${remoteName} (${serverUrl})...`));
- console.log(chalk.gray(`App path: ${appPath}\n`));
-
const result = await appDeploy({
- appPath,
- serverUrl,
- token,
- onProgress: (message) => console.log(chalk.gray(message)),
+ tarballPath: buildResult.data.tarballPath!,
+ remote: options.remote,
+ onProgress,
});
if (!result.success) {
diff --git a/packages/twenty-sdk/src/cli/commands/install.ts b/packages/twenty-sdk/src/cli/commands/install.ts
new file mode 100644
index 00000000000..359f3349bb4
--- /dev/null
+++ b/packages/twenty-sdk/src/cli/commands/install.ts
@@ -0,0 +1,32 @@
+import { appInstall } from '@/cli/operations/install';
+import { CURRENT_EXECUTION_DIRECTORY } from '@/cli/utilities/config/current-execution-directory';
+import { checkSdkVersionCompatibility } from '@/cli/utilities/version/check-sdk-version-compatibility';
+import chalk from 'chalk';
+
+export type AppInstallCommandOptions = {
+ appPath?: string;
+ remote?: string;
+};
+
+export class AppInstallCommand {
+ async execute(options: AppInstallCommandOptions): Promise<void> {
+ const appPath = options.appPath ?? CURRENT_EXECUTION_DIRECTORY;
+
+ await checkSdkVersionCompatibility(appPath);
+
+ console.log(chalk.blue('Installing application...'));
+ console.log(chalk.gray(`App path: ${appPath}\n`));
+
+ const result = await appInstall({
+ appPath,
+ remote: options.remote,
+ });
+
+ if (!result.success) {
+ console.error(chalk.red(result.error.message));
+ process.exit(1);
+ }
+
+ console.log(chalk.green('✓ Application installed'));
+ }
+}
diff --git a/packages/twenty-sdk/src/cli/constants/clients-dir.ts b/packages/twenty-sdk/src/cli/constants/clients-dir.ts
deleted file mode 100644
index d4d6498217c..00000000000
--- a/packages/twenty-sdk/src/cli/constants/clients-dir.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CLIENTS_SOURCE_DIR = 'src/clients';
-export const CLIENTS_GENERATED_DIR = `${CLIENTS_SOURCE_DIR}/generated`;
diff --git a/packages/twenty-sdk/src/cli/operations/build.ts b/packages/twenty-sdk/src/cli/operations/build.ts
index bd11992d8be..99f3ef6ad1e 100644
--- a/packages/twenty-sdk/src/cli/operations/build.ts
+++ b/packages/twenty-sdk/src/cli/operations/build.ts
@@ -2,10 +2,10 @@ import { execSync } from 'child_process';
import path from 'path';
import { buildApplication } from '@/cli/utilities/build/common/build-application';
-import { synchronizeBuiltApplication } from '@/cli/utilities/build/common/synchronize-built-application';
import { runTypecheck } from '@/cli/utilities/build/common/typecheck-plugin';
import { buildAndValidateManifest } from '@/cli/utilities/build/manifest/build-and-validate-manifest';
-import { ClientService } from '@/cli/utilities/client/client-service';
+import { manifestUpdateChecksums } from '@/cli/utilities/build/manifest/manifest-update-checksums';
+import { writeManifestToOutput } from '@/cli/utilities/build/manifest/manifest-writer';
import { runSafe } from '@/cli/utilities/run-safe';
import { APP_ERROR_CODES, type CommandResult } from '@/cli/types';
@@ -48,30 +48,12 @@ const innerAppBuild = async (
onProgress?.('Building application files...');
- const firstBuildResult = await buildApplication({
+ const buildResult = await buildApplication({
appPath,
manifest,
filePaths,
});
- onProgress?.('Syncing application schema...');
-
- const firstSyncResult = await synchronizeBuiltApplication({
- appPath,
- manifest,
- builtFileInfos: firstBuildResult.builtFileInfos,
- });
-
- if (!firstSyncResult.success) {
- return firstSyncResult;
- }
-
- onProgress?.('Generating API client...');
-
- const clientService = new ClientService();
-
- await clientService.generateCoreClient({ appPath });
-
onProgress?.('Running typecheck...');
const typecheckErrors = await runTypecheck(appPath);
@@ -91,31 +73,18 @@ const innerAppBuild = async (
};
}
- onProgress?.('Rebuilding with generated client...');
-
- const finalBuildResult = await buildApplication({
- appPath,
+ const updatedManifest = manifestUpdateChecksums({
manifest,
- filePaths,
+ builtFileInfos: buildResult.builtFileInfos,
});
- onProgress?.('Syncing built files...');
-
- const finalSyncResult = await synchronizeBuiltApplication({
- appPath,
- manifest,
- builtFileInfos: finalBuildResult.builtFileInfos,
- });
-
- if (!finalSyncResult.success) {
- return finalSyncResult;
- }
+ await writeManifestToOutput(appPath, updatedManifest);
const outputDir = path.join(appPath, '.twenty', 'output');
const result: AppBuildResult = {
outputDir,
- fileCount: finalBuildResult.builtFileInfos.size,
+ fileCount: buildResult.builtFileInfos.size,
};
if (options.tarball) {
diff --git a/packages/twenty-sdk/src/cli/operations/deploy.ts b/packages/twenty-sdk/src/cli/operations/deploy.ts
index cf90846c862..5f4c157e0d4 100644
--- a/packages/twenty-sdk/src/cli/operations/deploy.ts
+++ b/packages/twenty-sdk/src/cli/operations/deploy.ts
@@ -1,13 +1,14 @@
import fs from 'fs';
import { ApiService } from '@/cli/utilities/api/api-service';
+import { ConfigService } from '@/cli/utilities/config/config-service';
import { runSafe } from '@/cli/utilities/run-safe';
-import { appBuild } from './build';
import { APP_ERROR_CODES, type CommandResult } from '@/cli/types';
export type AppDeployOptions = {
- appPath: string;
- serverUrl: string;
+ tarballPath: string;
+ remote?: string;
+ serverUrl?: string;
token?: string;
onProgress?: (message: string) => void;
};
@@ -19,25 +20,19 @@ export type AppDeployResult = {
const innerAppDeploy = async (
options: AppDeployOptions,
): Promise<CommandResult<AppDeployResult>> => {
- const { appPath, serverUrl, token, onProgress } = options;
+ const { tarballPath, onProgress } = options;
- const buildResult = await appBuild({
- appPath,
- tarball: true,
- onProgress,
- });
-
- if (!buildResult.success) {
- return buildResult;
+ if (options.remote) {
+ ConfigService.setActiveRemote(options.remote);
}
- onProgress?.(`Uploading ${buildResult.data.tarballPath}...`);
+ onProgress?.(`Uploading ${tarballPath}...`);
- const tarballBuffer = fs.readFileSync(buildResult.data.tarballPath!);
+ const tarballBuffer = fs.readFileSync(tarballPath);
const apiService = new ApiService({
- serverUrl,
- token,
+ serverUrl: options.serverUrl,
+ token: options.token,
});
const uploadResult = await apiService.uploadAppTarball({ tarballBuffer });
@@ -52,22 +47,6 @@ const innerAppDeploy = async (
};
}
- onProgress?.('Installing application...');
-
- const installResult = await apiService.installTarballApp({
- universalIdentifier: uploadResult.data.universalIdentifier,
- });
-
- if (!installResult.success) {
- return {
- success: false,
- error: {
- code: APP_ERROR_CODES.DEPLOY_FAILED,
- message: `Install failed: ${installResult.error}`,
- },
- };
- }
-
return {
success: true,
data: {
diff --git a/packages/twenty-sdk/src/cli/operations/index.ts b/packages/twenty-sdk/src/cli/operations/index.ts
index 5c29dd5bbc4..ef33566f7d8 100644
--- a/packages/twenty-sdk/src/cli/operations/index.ts
+++ b/packages/twenty-sdk/src/cli/operations/index.ts
@@ -11,6 +11,8 @@ export { appBuild } from './build';
export type { AppBuildOptions, AppBuildResult } from './build';
export { appDeploy } from './deploy';
export type { AppDeployOptions, AppDeployResult } from './deploy';
+export { appInstall } from './install';
+export type { AppInstallOptions } from './install';
export { appPublish } from './publish';
export type { AppPublishOptions, AppPublishResult } from './publish';
export { appUninstall } from './uninstall';
diff --git a/packages/twenty-sdk/src/cli/operations/install.ts b/packages/twenty-sdk/src/cli/operations/install.ts
new file mode 100644
index 00000000000..91994bb8ea4
--- /dev/null
+++ b/packages/twenty-sdk/src/cli/operations/install.ts
@@ -0,0 +1,57 @@
+import { ApiService } from '@/cli/utilities/api/api-service';
+import { readManifestFromFile } from '@/cli/utilities/build/manifest/manifest-reader';
+import { ConfigService } from '@/cli/utilities/config/config-service';
+import { runSafe } from '@/cli/utilities/run-safe';
+import { APP_ERROR_CODES, type CommandResult } from '@/cli/types';
+
+export type AppInstallOptions = {
+ appPath: string;
+ remote?: string;
+};
+
+const innerAppInstall = async (
+ options: AppInstallOptions,
+): Promise<CommandResult> => {
+ if (options.remote) {
+ ConfigService.setActiveRemote(options.remote);
+ }
+
+ const apiService = new ApiService();
+ const manifest = await readManifestFromFile(options.appPath);
+
+ if (!manifest) {
+ return {
+ success: false,
+ error: {
+ code: APP_ERROR_CODES.MANIFEST_NOT_FOUND,
+ message: 'Manifest not found. Run `build` or `dev` first.',
+ },
+ };
+ }
+
+ const result = await apiService.installTarballApp({
+ universalIdentifier: manifest.application.universalIdentifier,
+ });
+
+ if (!result.success) {
+ const errorMessage =
+ result.error instanceof Error
+ ? result.error.message
+ : String(result.error ?? 'Unknown error');
+
+ return {
+ success: false,
+ error: {
+ code: APP_ERROR_CODES.INSTALL_FAILED,
+ message: errorMessage,
+ },
+ };
+ }
+
+ return { success: true, data: undefined };
+};
+
+export const appInstall = (
+ options: AppInstallOptions,
+): Promise<CommandResult> =>
+ runSafe(() => innerAppInstall(options), APP_ERROR_CODES.INSTALL_FAILED);
diff --git a/packages/twenty-sdk/src/cli/types.ts b/packages/twenty-sdk/src/cli/types.ts
index ebbb0952687..4e2515cf025 100644
--- a/packages/twenty-sdk/src/cli/types.ts
+++ b/packages/twenty-sdk/src/cli/types.ts
@@ -20,6 +20,7 @@ export const APP_ERROR_CODES = {
MANIFEST_BUILD_FAILED: 'MANIFEST_BUILD_FAILED',
BUILD_FAILED: 'BUILD_FAILED',
PUBLISH_FAILED: 'PUBLISH_FAILED',
+ INSTALL_FAILED: 'INSTALL_FAILED',
UNINSTALL_FAILED: 'UNINSTALL_FAILED',
SYNC_FAILED: 'SYNC_FAILED',
TYPECHECK_FAILED: 'TYPECHECK_FAILED',
diff --git a/packages/twenty-sdk/src/cli/utilities/build/common/build-application.ts b/packages/twenty-sdk/src/cli/utilities/build/common/build-application.ts
index fcc5b258032..5b453c6d99e 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/common/build-application.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/common/build-application.ts
@@ -9,10 +9,7 @@ import {
import { FileFolder } from 'twenty-shared/types';
import { esbuildOneShotBuild } from '@/cli/utilities/build/common/esbuild-one-shot-build';
-import {
- LOGIC_FUNCTION_EXTERNAL_MODULES,
- createSdkClientsResolverPlugin,
-} from '@/cli/utilities/build/common/esbuild-watcher';
+import { LOGIC_FUNCTION_EXTERNAL_MODULES } from '@/cli/utilities/build/common/esbuild-watcher';
import { getBaseFrontComponentBuildOptions } from '@/cli/utilities/build/common/front-component-build/utils/get-base-front-component-build-options';
import { getFrontComponentBuildPlugins } from '@/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins';
import { type OnFileBuiltCallback } from '@/cli/utilities/build/common/restartable-watcher-interface';
@@ -36,6 +33,7 @@ export type BuiltFileInfo = {
builtPath: string;
sourcePath: string;
fileFolder: FileFolder;
+ usesSdkClient?: boolean;
};
export type AppBuildResult = {
@@ -58,6 +56,7 @@ export const buildApplication = async (
builtPath: event.builtPath,
sourcePath: event.sourcePath,
fileFolder: event.fileFolder,
+ usesSdkClient: event.usesSdkClient,
});
};
@@ -80,7 +79,6 @@ export const buildApplication = async (
metafile: true,
logLevel: 'silent',
banner: NODE_ESM_CJS_BANNER,
- plugins: [createSdkClientsResolverPlugin(options.appPath)],
},
onFileBuilt: collectFileBuilt,
});
@@ -93,10 +91,11 @@ export const buildApplication = async (
...getBaseFrontComponentBuildOptions(),
outdir: join(options.appPath, OUTPUT_DIR),
tsconfig: join(options.appPath, 'tsconfig.json'),
- plugins: [
- createSdkClientsResolverPlugin(options.appPath),
- ...getFrontComponentBuildPlugins(),
- ],
+ jsx: 'automatic',
+ sourcemap: true,
+ metafile: true,
+ logLevel: 'silent',
+ plugins: [...getFrontComponentBuildPlugins()],
},
onFileBuilt: collectFileBuilt,
});
diff --git a/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-result-processor.ts b/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-result-processor.ts
index bf20dfcdd54..447ca5a3782 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-result-processor.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-result-processor.ts
@@ -5,6 +5,8 @@ import path from 'path';
import { type OnFileBuiltCallback } from '@/cli/utilities/build/common/restartable-watcher-interface';
import { type FileFolder } from 'twenty-shared/types';
+const SDK_CLIENT_IMPORT_PREFIX = 'twenty-client-sdk';
+
export type ProcessEsbuildResultParams = {
result: esbuild.BuildResult;
appPath: string;
@@ -42,12 +44,21 @@ export const processEsbuildResult = async ({
lastChecksums.set(relativeBuiltPath, checksum);
+ const outputMeta = result.metafile?.outputs?.[outputFile];
+ const usesSdkClient =
+ outputMeta?.imports?.some(
+ (imp) =>
+ imp.external === true &&
+ imp.path.startsWith(SDK_CLIENT_IMPORT_PREFIX),
+ ) ?? false;
+
if (onFileBuilt) {
await onFileBuilt({
fileFolder,
builtPath: relativeBuiltPath,
sourcePath: relativeSourcePath,
checksum,
+ usesSdkClient,
});
}
}
diff --git a/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-watcher.ts b/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-watcher.ts
index fc75c17eebc..32831c8d3f4 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-watcher.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/common/esbuild-watcher.ts
@@ -1,4 +1,3 @@
-import { CLIENTS_SOURCE_DIR } from '@/cli/constants/clients-dir';
import { cleanupRemovedFiles } from '@/cli/utilities/build/common/cleanup-removed-files';
import { processEsbuildResult } from '@/cli/utilities/build/common/esbuild-result-processor';
import { FRONT_COMPONENT_EXTERNAL_MODULES } from '@/cli/utilities/build/common/front-component-build/constants/front-component-external-modules';
@@ -16,6 +15,8 @@ import { NODE_ESM_CJS_BANNER, OUTPUT_DIR } from 'twenty-shared/application';
import { FileFolder } from 'twenty-shared/types';
export const LOGIC_FUNCTION_EXTERNAL_MODULES: string[] = [
+ 'twenty-client-sdk/core',
+ 'twenty-client-sdk/metadata',
'path',
'fs',
'crypto',
@@ -186,25 +187,6 @@ export class EsbuildWatcher implements RestartableWatcher {
}
}
-// Resolves twenty-sdk/clients to the source barrel so esbuild
-// bundles it instead of treating it as external (via twenty-sdk/*)
-export const createSdkClientsResolverPlugin = (
- appPath: string,
-): esbuild.Plugin => ({
- name: 'sdk-clients-resolver',
- setup: (build) => {
- build.onResolve({ filter: /^twenty-sdk\/clients/ }, () => ({
- path: path.join(
- appPath,
- 'node_modules',
- 'twenty-sdk',
- CLIENTS_SOURCE_DIR,
- 'index.ts',
- ),
- }));
- },
-});
-
export type EsbuildWatcherFactoryOptions = RestartableWatcherOptions & {
shouldSkipTypecheck: () => boolean;
};
@@ -220,7 +202,6 @@ export const createLogicFunctionsWatcher = (
platform: 'node',
extraPlugins: [
createTypecheckPlugin(options.appPath, options.shouldSkipTypecheck),
- createSdkClientsResolverPlugin(options.appPath),
],
banner: NODE_ESM_CJS_BANNER,
},
@@ -237,7 +218,6 @@ export const createFrontComponentsWatcher = (
jsx: 'automatic',
extraPlugins: [
createTypecheckPlugin(options.appPath, options.shouldSkipTypecheck),
- createSdkClientsResolverPlugin(options.appPath),
...getFrontComponentBuildPlugins(),
],
},
diff --git a/packages/twenty-sdk/src/cli/utilities/build/common/front-component-build/constants/front-component-external-modules.ts b/packages/twenty-sdk/src/cli/utilities/build/common/front-component-build/constants/front-component-external-modules.ts
index 75d6ef324c6..b98a52b75b4 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/common/front-component-build/constants/front-component-external-modules.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/common/front-component-build/constants/front-component-external-modules.ts
@@ -1 +1,4 @@
-export const FRONT_COMPONENT_EXTERNAL_MODULES: string[] = [];
+export const FRONT_COMPONENT_EXTERNAL_MODULES: string[] = [
+ 'twenty-client-sdk/core',
+ 'twenty-client-sdk/metadata',
+];
diff --git a/packages/twenty-sdk/src/cli/utilities/build/common/restartable-watcher-interface.ts b/packages/twenty-sdk/src/cli/utilities/build/common/restartable-watcher-interface.ts
index 5e6485cae99..0d8fe7bc770 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/common/restartable-watcher-interface.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/common/restartable-watcher-interface.ts
@@ -13,6 +13,7 @@ export type OnFileBuiltCallback = (options: {
builtPath: string;
sourcePath: string;
checksum: string;
+ usesSdkClient?: boolean;
}) => void | Promise<void>;
export type OnBuildErrorCallback = (
diff --git a/packages/twenty-sdk/src/cli/utilities/build/manifest/__tests__/manifest-validate.spec.ts b/packages/twenty-sdk/src/cli/utilities/build/manifest/__tests__/manifest-validate.spec.ts
index 7a8b132d685..8112b02d8cb 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/manifest/__tests__/manifest-validate.spec.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/manifest/__tests__/manifest-validate.spec.ts
@@ -13,7 +13,6 @@ const validApplication: ApplicationManifest = {
defaultRoleUniversalIdentifier: '68bb56f3-8300-4cb5-8cc3-8da9ee66f1b2',
packageJsonChecksum: '98592af7-4be9-4655-b5c4-9bef307a996c',
yarnLockChecksum: '580ee05f-15fe-4146-bac2-6c382483c94e',
- apiClientChecksum: null,
};
const validField: FieldManifest = {
diff --git a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-build.ts b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-build.ts
index 7c468135b54..6b6b17dd5dd 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-build.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-build.ts
@@ -115,7 +115,6 @@ export const buildManifest = async (
...extract.config,
yarnLockChecksum: null,
packageJsonChecksum: null,
- apiClientChecksum: null,
};
errors.push(...extract.errors);
applicationFilePaths.push(relativePath);
diff --git a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-extract-config-from-file.ts b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-extract-config-from-file.ts
index 4c0b51470a1..cab6c866b38 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-extract-config-from-file.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-extract-config-from-file.ts
@@ -8,7 +8,11 @@ import os from 'os';
import path from 'path';
import { isDefined, isPlainObject } from 'twenty-shared/utils';
-const MANIFEST_MOCK_MODULES = ['twenty-sdk/ui', 'twenty-sdk/clients'];
+const MANIFEST_MOCK_MODULES = [
+ 'twenty-sdk/ui',
+ 'twenty-client-sdk/core',
+ 'twenty-client-sdk/metadata',
+];
const manifestMockPlugin: esbuild.Plugin = {
name: 'manifest-mock',
diff --git a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-update-checksums.ts b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-update-checksums.ts
index 47c915409c1..4fc96b91b2c 100644
--- a/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-update-checksums.ts
+++ b/packages/twenty-sdk/src/cli/utilities/build/manifest/manifest-update-checksums.ts
@@ -1,10 +1,5 @@
-import crypto from 'crypto';
import { relative } from 'path';
-import {
- type Manifest,
- OUTPUT_DIR,
- API_CLIENT_DIR,
-} from 'twenty-shared/application';
+import { type Manifest, OUTPUT_DIR } from 'twenty-shared/application';
import { FileFolder } from 'twenty-shared/types';
import type { EntityFilePaths } from '@/cli/utilities/build/manifest/manifest-extract-config';
@@ -19,7 +14,12 @@ export type UpdateManifestChecksumParams = {
manifest: Manifest;
builtFileInfos: Map<
string,
- { checksum: string; builtPath: string; fileFolder: FileFolder }
+ {
+ checksum: string;
+ builtPath: string;
+ fileFolder: FileFolder;
+ usesSdkClient?: boolean;
+ }
>;
};
@@ -73,11 +73,17 @@ export const manifestUpdateChecksums = ({
if (componentIndex === -1) {
continue;
}
+ const builtFileInfo = builtFileInfos.get(builtPath);
+
result = {
...result,
frontComponents: frontComponents.map((component, index) =>
index === componentIndex
- ? { ...component, builtComponentChecksum: checksum }
+ ? {
+ ...component,
+ builtComponentChecksum: checksum,
+ usesSdkClient: builtFileInfo?.usesSdkClient ?? false,
+ }
: component,
),
};
@@ -94,29 +100,5 @@ export const manifestUpdateChecksums = ({
}
}
- const apiClientChecksums: string[] = [];
-
- for (const [builtPath, { fileFolder }] of builtFileInfos.entries()) {
- const rootBuiltPath = relative(OUTPUT_DIR, builtPath);
-
- if (
- fileFolder === FileFolder.Dependencies &&
- rootBuiltPath.startsWith(`${API_CLIENT_DIR}/`)
- ) {
- const entry = builtFileInfos.get(builtPath);
-
- if (entry) {
- apiClientChecksums.push(entry.checksum);
- }
- }
- }
-
- if (apiClientChecksums.length > 0) {
- result.application.apiClientChecksum = crypto
- .createHash('md5')
- .update(apiClientChecksums.sort().join(''))
- .digest('hex');
- }
-
return result;
};
diff --git a/packages/twenty-sdk/src/cli/utilities/client/client-service.ts b/packages/twenty-sdk/src/cli/utilities/client/client-service.ts
index faf44ca3ecc..eb826a0329a 100644
--- a/packages/twenty-sdk/src/cli/utilities/client/client-service.ts
+++ b/packages/twenty-sdk/src/cli/utilities/client/client-service.ts
@@ -1,88 +1,16 @@
-import { appendFile } from 'node:fs/promises';
import { join } from 'path';
-import { CLIENTS_GENERATED_DIR } from '@/cli/constants/clients-dir';
import { ApiService } from '@/cli/utilities/api/api-service';
-import twentyClientTemplateSource from '@/cli/utilities/client/twenty-client-template.ts?raw';
-import {
- emptyDir,
- ensureDir,
- move,
- remove,
-} from '@/cli/utilities/file/fs-utils';
-import { generate } from '@genql/cli';
-import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
-
-type ClientWrapperOptions = {
- apiClientName: string;
- defaultUrl: string;
- includeUploadFile: boolean;
-};
-
-const COMMON_SCALAR_TYPES = {
- DateTime: 'string',
- JSON: 'Record<string, unknown>',
- UUID: 'string',
-};
-
-const STRIPPED_TYPES_START = '// __STRIPPED_DURING_INJECTION_START__';
-const STRIPPED_TYPES_END = '// __STRIPPED_DURING_INJECTION_END__';
-const UPLOAD_FILE_START = '// __UPLOAD_FILE_START__';
-const UPLOAD_FILE_END = '// __UPLOAD_FILE_END__';
-
-const buildClientWrapperSource = (
- templateSource: string,
- options: ClientWrapperOptions,
-): string => {
- let source = templateSource;
-
- source = source.replace(
- new RegExp(
- `${escapeRegExp(STRIPPED_TYPES_START)}[\\s\\S]*?${escapeRegExp(STRIPPED_TYPES_END)}\\n?`,
- ),
- '',
- );
-
- source = source.replace("'__TWENTY_DEFAULT_URL__'", options.defaultUrl);
-
- source = source.replace(/TwentyGeneratedClient/g, options.apiClientName);
-
- if (!options.includeUploadFile) {
- source = source.replace(
- new RegExp(
- `\\s*${escapeRegExp(UPLOAD_FILE_START)}[\\s\\S]*?${escapeRegExp(UPLOAD_FILE_END)}\\n?`,
- ),
- '\n',
- );
- } else {
- source = source.replace(
- new RegExp(`\\s*${escapeRegExp(UPLOAD_FILE_START)}\\n`),
- '\n',
- );
- source = source.replace(
- new RegExp(`\\s*${escapeRegExp(UPLOAD_FILE_END)}\\n`),
- '\n',
- );
- }
-
- return `\n// ${options.apiClientName} (auto-injected by twenty-sdk)\n${source}`;
-};
-
-const escapeRegExp = (value: string): string =>
- value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+import { replaceCoreClient } from 'twenty-client-sdk/generate';
export class ClientService {
private apiService: ApiService;
- private clientWrapperTemplateSource: string;
constructor(options?: {
- clientWrapperTemplateSource?: string;
serverUrl?: string;
token?: string;
skipAuth?: boolean;
}) {
- this.clientWrapperTemplateSource =
- options?.clientWrapperTemplateSource ?? twentyClientTemplateSource;
this.apiService = new ApiService({
disableInterceptors: true,
serverUrl: options?.serverUrl,
@@ -98,15 +26,6 @@ export class ClientService {
appPath: string;
authToken?: string;
}): Promise<void> {
- const generatedDir = join(
- appPath,
- 'node_modules',
- 'twenty-sdk',
- CLIENTS_GENERATED_DIR,
- );
- const coreOutputPath = join(generatedDir, 'core');
- const tempPath = `${coreOutputPath}.tmp`;
-
const coreSchemaResponse = await this.apiService.getSchema({ authToken });
if (!coreSchemaResponse.success) {
@@ -115,66 +34,9 @@ export class ClientService {
);
}
- await ensureDir(tempPath);
- await emptyDir(tempPath);
-
- await generate({
+ await replaceCoreClient({
+ packageRoot: join(appPath, 'node_modules', 'twenty-client-sdk'),
schema: coreSchemaResponse.data,
- output: tempPath,
- scalarTypes: COMMON_SCALAR_TYPES,
- });
-
- await this.injectClientWrapper(tempPath, {
- apiClientName: 'CoreApiClient',
- defaultUrl: `\`\${process.env.${DEFAULT_API_URL_NAME}}/graphql\``,
- includeUploadFile: true,
- });
-
- await remove(coreOutputPath);
- await move(tempPath, coreOutputPath);
- }
-
- async generateMetadataClient({
- outputPath,
- }: {
- outputPath: string;
- }): Promise<void> {
- const metadataSchemaResponse = await this.apiService.getMetadataSchema();
-
- if (!metadataSchemaResponse.success) {
- throw new Error(
- `Failed to introspect metadata schema: ${JSON.stringify(metadataSchemaResponse.error)}`,
- );
- }
-
- await ensureDir(outputPath);
- await emptyDir(outputPath);
-
- await generate({
- schema: metadataSchemaResponse.data,
- output: outputPath,
- scalarTypes: {
- ...COMMON_SCALAR_TYPES,
- Upload: 'File',
- },
- });
-
- await this.injectClientWrapper(outputPath, {
- apiClientName: 'MetadataApiClient',
- defaultUrl: `\`\${process.env.${DEFAULT_API_URL_NAME}}/metadata\``,
- includeUploadFile: true,
});
}
-
- private async injectClientWrapper(
- output: string,
- options: ClientWrapperOptions,
- ): Promise<void> {
- const clientContent = buildClientWrapperSource(
- this.clientWrapperTemplateSource,
- options,
- );
-
- await appendFile(join(output, 'index.ts'), clientContent);
- }
}
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
index c4a36200b3f..c9aa00d195a 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
@@ -54,6 +54,7 @@ export type OrchestratorStateBuiltFileInfo = {
builtPath: string;
sourcePath: string;
fileFolder: FileFolder;
+ usesSdkClient?: boolean;
};
export type OrchestratorStatePipeline = {
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator.ts
index c3bc220a344..dd600edf958 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator.ts
@@ -196,10 +196,6 @@ export class DevModeOrchestrator {
});
this.skipTypecheck = false;
-
- await this.uploadFilesStep.copyAndUploadApiClientFiles(
- this.state.appPath,
- );
}
}
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
index 38f17424209..42fcf2f2e3e 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
@@ -19,6 +19,7 @@ export type FileBuiltEvent = {
builtPath: string;
sourcePath: string;
checksum: string;
+ usesSdkClient?: boolean;
};
export type StartWatchersOrchestratorStepOutput = {
@@ -142,6 +143,7 @@ export class StartWatchersOrchestratorStep {
builtPath: event.builtPath,
sourcePath: event.sourcePath,
fileFolder: event.fileFolder,
+ usesSdkClient: event.usesSdkClient,
});
this.onFileBuilt(event);
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.ts
index c91d33170d5..b5ee8a5315e 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.ts
@@ -3,15 +3,7 @@ import {
type OrchestratorStateBuiltFileInfo,
} from '@/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
import { FileUploader } from '@/cli/utilities/file/file-uploader';
-import { copy, ensureDir, pathExists } from '@/cli/utilities/file/fs-utils';
-import crypto from 'crypto';
-import { readFile } from 'node:fs/promises';
-import { join } from 'path';
-import { CLIENTS_GENERATED_DIR } from '@/cli/constants/clients-dir';
-import { OUTPUT_DIR, API_CLIENT_DIR } from 'twenty-shared/application';
-import { FileFolder } from 'twenty-shared/types';
-
-const API_CLIENT_FILES = ['core/types.ts', 'core/schema.ts'];
+import { type FileFolder } from 'twenty-shared/types';
export type UploadFilesOrchestratorStepOutput = {
fileUploader: FileUploader | null;
@@ -119,48 +111,6 @@ export class UploadFilesOrchestratorStep {
this.notify();
}
- async copyAndUploadApiClientFiles(appPath: string): Promise<void> {
- const generatedDir = join(
- appPath,
- 'node_modules',
- 'twenty-sdk',
- CLIENTS_GENERATED_DIR,
- );
-
- if (!(await pathExists(generatedDir))) {
- return;
- }
-
- const outputDir = join(appPath, OUTPUT_DIR, API_CLIENT_DIR);
-
- await ensureDir(outputDir);
-
- for (const fileName of API_CLIENT_FILES) {
- const absoluteSourcePath = join(generatedDir, fileName);
-
- if (!(await pathExists(absoluteSourcePath))) {
- continue;
- }
-
- await copy(absoluteSourcePath, join(outputDir, fileName));
-
- const content = await readFile(absoluteSourcePath);
- const checksum = crypto.createHash('md5').update(content).digest('hex');
-
- const builtPath = join(OUTPUT_DIR, API_CLIENT_DIR, fileName);
- const sourcePath = join(API_CLIENT_DIR, fileName);
-
- this.state.steps.uploadFiles.output.builtFileInfos.set(builtPath, {
- checksum,
- builtPath,
- sourcePath,
- fileFolder: FileFolder.Dependencies,
- });
-
- this.uploadFile(builtPath, sourcePath, FileFolder.Dependencies);
- }
- }
-
private uploadPendingFiles(): void {
for (const [
builtPath,
diff --git a/packages/twenty-sdk/src/clients/generated/core/index.ts b/packages/twenty-sdk/src/clients/generated/core/index.ts
deleted file mode 100644
index aa9460a41d8..00000000000
--- a/packages/twenty-sdk/src/clients/generated/core/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-// Stub — overwritten by `twenty build` or `twenty dev`
-export class CoreApiClient {}
diff --git a/packages/twenty-sdk/src/clients/index.ts b/packages/twenty-sdk/src/clients/index.ts
deleted file mode 100644
index d35a443e188..00000000000
--- a/packages/twenty-sdk/src/clients/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export { CoreApiClient } from './generated/core/index';
-export * as CoreSchema from './generated/core/schema';
-export { MetadataApiClient } from './generated/metadata/index';
-export * as MetadataSchema from './generated/metadata/schema';
diff --git a/packages/twenty-sdk/src/front-component-renderer/host/components/FrontComponentRenderer.tsx b/packages/twenty-sdk/src/front-component-renderer/host/components/FrontComponentRenderer.tsx
index b2ad4dfa2dd..4d3fdf3f9ac 100644
--- a/packages/twenty-sdk/src/front-component-renderer/host/components/FrontComponentRenderer.tsx
+++ b/packages/twenty-sdk/src/front-component-renderer/host/components/FrontComponentRenderer.tsx
@@ -2,6 +2,7 @@ import { FrontComponentErrorEffect } from '@/front-component-renderer/remote/com
import { FrontComponentHostCommunicationApiEffect } from '@/front-component-renderer/remote/components/FrontComponentHostCommunicationApiEffect';
import { FrontComponentUpdateContextEffect } from '@/front-component-renderer/remote/components/FrontComponentUpdateContextEffect';
import { type FrontComponentHostCommunicationApi } from '@/front-component-renderer/types/FrontComponentHostCommunicationApi';
+import { type SdkClientUrls } from '@/front-component-renderer/types/HostToWorkerRenderContext';
import { type WorkerExports } from '@/front-component-renderer/types/WorkerExports';
import { type FrontComponentExecutionContext } from '@/sdk/front-component-api';
import { type ThreadWebWorker } from '@quilted/threads';
@@ -20,6 +21,7 @@ type FrontComponentContentProps = {
componentUrl: string;
applicationAccessToken?: string;
apiUrl?: string;
+ sdkClientUrls?: SdkClientUrls;
executionContext: FrontComponentExecutionContext;
frontComponentHostCommunicationApi: FrontComponentHostCommunicationApi;
onError: (error?: Error) => void;
@@ -30,6 +32,7 @@ export const FrontComponentRenderer = ({
componentUrl,
applicationAccessToken,
apiUrl,
+ sdkClientUrls,
executionContext,
frontComponentHostCommunicationApi,
onError,
@@ -50,6 +53,7 @@ export const FrontComponentRenderer = ({
componentUrl={componentUrl}
applicationAccessToken={applicationAccessToken}
apiUrl={apiUrl}
+ sdkClientUrls={sdkClientUrls}
frontComponentId={executionContext.frontComponentId}
frontComponentHostCommunicationApi={frontComponentHostCommunicationApi}
setReceiver={setReceiver}
@@ -65,6 +69,7 @@ export const FrontComponentRenderer = ({
setThread,
applicationAccessToken,
apiUrl,
+ sdkClientUrls,
executionContext.frontComponentId,
]);
diff --git a/packages/twenty-sdk/src/front-component-renderer/index.ts b/packages/twenty-sdk/src/front-component-renderer/index.ts
index 0988d1fec53..bcb63f44e03 100644
--- a/packages/twenty-sdk/src/front-component-renderer/index.ts
+++ b/packages/twenty-sdk/src/front-component-renderer/index.ts
@@ -126,6 +126,9 @@ export type {
export { createRemoteWorker } from './remote/worker/utils/createRemoteWorker';
export type { FrontComponentExecutionContext } from '../sdk/front-component-api';
export type { FrontComponentHostCommunicationApi } from './types/FrontComponentHostCommunicationApi';
-export type { HostToWorkerRenderContext } from './types/HostToWorkerRenderContext';
+export type {
+ HostToWorkerRenderContext,
+ SdkClientUrls,
+} from './types/HostToWorkerRenderContext';
export type { PropertySchema } from './types/PropertySchema';
export type { WorkerExports } from './types/WorkerExports';
diff --git a/packages/twenty-sdk/src/front-component-renderer/remote/components/FrontComponentWorkerEffect.tsx b/packages/twenty-sdk/src/front-component-renderer/remote/components/FrontComponentWorkerEffect.tsx
index 7a01f635ba1..22dde492379 100644
--- a/packages/twenty-sdk/src/front-component-renderer/remote/components/FrontComponentWorkerEffect.tsx
+++ b/packages/twenty-sdk/src/front-component-renderer/remote/components/FrontComponentWorkerEffect.tsx
@@ -4,6 +4,7 @@ import { useEffect, useRef } from 'react';
import { type ConfirmationModalCaller } from 'twenty-shared/types';
import { type CommandConfirmationModalResult } from '../../../sdk/front-component-api/globals/frontComponentHostCommunicationApi';
import { type FrontComponentHostCommunicationApi } from '../../types/FrontComponentHostCommunicationApi';
+import { type SdkClientUrls } from '../../types/HostToWorkerRenderContext';
import { type WorkerExports } from '../../types/WorkerExports';
import { createRemoteWorker } from '../worker/utils/createRemoteWorker';
@@ -20,6 +21,7 @@ type FrontComponentWorkerEffectProps = {
componentUrl: string;
applicationAccessToken?: string;
apiUrl?: string;
+ sdkClientUrls?: SdkClientUrls;
frontComponentId: string;
frontComponentHostCommunicationApi: FrontComponentHostCommunicationApi;
setReceiver: React.Dispatch<React.SetStateAction<RemoteReceiver | null>>;
@@ -36,6 +38,7 @@ export const FrontComponentWorkerEffect = ({
componentUrl,
applicationAccessToken,
apiUrl,
+ sdkClientUrls,
frontComponentId,
frontComponentHostCommunicationApi,
setReceiver,
@@ -105,6 +108,7 @@ export const FrontComponentWorkerEffect = ({
componentUrl,
applicationAccessToken,
apiUrl,
+ sdkClientUrls,
})
.catch((error: Error) => {
setError(error);
@@ -126,6 +130,7 @@ export const FrontComponentWorkerEffect = ({
componentUrl,
applicationAccessToken,
apiUrl,
+ sdkClientUrls,
frontComponentId,
setError,
setReceiver,
diff --git a/packages/twenty-sdk/src/front-component-renderer/remote/worker/remote-worker.ts b/packages/twenty-sdk/src/front-component-renderer/remote/worker/remote-worker.ts
index e8251a84c41..9ac233e3e77 100644
--- a/packages/twenty-sdk/src/front-component-renderer/remote/worker/remote-worker.ts
+++ b/packages/twenty-sdk/src/front-component-renderer/remote/worker/remote-worker.ts
@@ -37,6 +37,49 @@ exposeGlobals({
__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__: HTML_TAG_TO_CUSTOM_ELEMENT_TAG,
});
+const fetchComponentSource = async (
+ url: string,
+ headers?: Record<string, string>,
+): Promise<string> => {
+ const response = await fetch(url, { headers });
+
+ if (!response.ok) {
+ throw new Error(
+ `Failed to fetch ${url}: ${response.status} ${response.statusText}`,
+ );
+ }
+
+ return response.text();
+};
+
+const SDK_IMPORT_SPECIFIERS = [
+ 'twenty-client-sdk/core',
+ 'twenty-client-sdk/metadata',
+] as const;
+
+// Rewrites bare SDK import specifiers to the blob URLs provided by the host.
+const rewriteSdkImports = (
+ source: string,
+ sdkClientUrls: { core: string; metadata: string },
+): string => {
+ const specifierToBlobUrl: Record<string, string> = {
+ 'twenty-client-sdk/core': sdkClientUrls.core,
+ 'twenty-client-sdk/metadata': sdkClientUrls.metadata,
+ };
+
+ let rewritten = source;
+
+ for (const [specifier, blobUrl] of Object.entries(specifierToBlobUrl)) {
+ rewritten = rewritten
+ .split(`"${specifier}"`)
+ .join(`"${blobUrl}"`)
+ .split(`'${specifier}'`)
+ .join(`'${blobUrl}'`);
+ }
+
+ return rewritten;
+};
+
const render: WorkerExports['render'] = async (
connection: RemoteConnection,
renderContext: HostToWorkerRenderContext,
@@ -61,25 +104,30 @@ const render: WorkerExports['render'] = async (
});
}
- const response = await fetch(renderContext.componentUrl, {
- headers: isDefined(renderContext.applicationAccessToken)
- ? { Authorization: `Bearer ${renderContext.applicationAccessToken}` }
- : undefined,
- });
+ const authHeaders = isDefined(renderContext.applicationAccessToken)
+ ? { Authorization: `Bearer ${renderContext.applicationAccessToken}` }
+ : undefined;
- if (!response.ok) {
- throw new Error(
- `Failed to fetch front component from ${renderContext.componentUrl}: ${response.status} ${response.statusText}`,
+ const componentSource = await fetchComponentSource(
+ renderContext.componentUrl,
+ authHeaders,
+ );
+
+ const hasSdkImports =
+ isDefined(renderContext.sdkClientUrls) &&
+ SDK_IMPORT_SPECIFIERS.some((specifier) =>
+ componentSource.includes(specifier),
);
- }
- const responseText = await response.text();
+ const finalSource = hasSdkImports
+ ? rewriteSdkImports(componentSource, renderContext.sdkClientUrls!)
+ : componentSource;
- const blob = new Blob([responseText], {
+ const componentBlob = new Blob([finalSource], {
type: 'application/javascript',
});
- const importUrl = URL.createObjectURL(blob);
+ const importUrl = URL.createObjectURL(componentBlob);
try {
/* @vite-ignore */
diff --git a/packages/twenty-sdk/src/front-component-renderer/types/HostToWorkerRenderContext.ts b/packages/twenty-sdk/src/front-component-renderer/types/HostToWorkerRenderContext.ts
index a56aeb5305a..dc4eb9bb9b2 100644
--- a/packages/twenty-sdk/src/front-component-renderer/types/HostToWorkerRenderContext.ts
+++ b/packages/twenty-sdk/src/front-component-renderer/types/HostToWorkerRenderContext.ts
@@ -1,5 +1,11 @@
+export type SdkClientUrls = {
+ core: string;
+ metadata: string;
+};
+
export type HostToWorkerRenderContext = {
componentUrl: string;
applicationAccessToken?: string;
apiUrl?: string;
+ sdkClientUrls?: SdkClientUrls;
};
diff --git a/packages/twenty-sdk/src/sdk/application/application-config.ts b/packages/twenty-sdk/src/sdk/application/application-config.ts
index 7d80263e6f6..5725b9ed9d9 100644
--- a/packages/twenty-sdk/src/sdk/application/application-config.ts
+++ b/packages/twenty-sdk/src/sdk/application/application-config.ts
@@ -4,7 +4,6 @@ export type ApplicationConfig = Omit<
ApplicationManifest,
| 'packageJsonChecksum'
| 'yarnLockChecksum'
- | 'apiClientChecksum'
| 'postInstallLogicFunctionUniversalIdentifier'
| 'preInstallLogicFunctionUniversalIdentifier'
>;
diff --git a/packages/twenty-sdk/src/sdk/front-component-config.ts b/packages/twenty-sdk/src/sdk/front-component-config.ts
index 38d9dc193ae..5c59c97da4b 100644
--- a/packages/twenty-sdk/src/sdk/front-component-config.ts
+++ b/packages/twenty-sdk/src/sdk/front-component-config.ts
@@ -18,6 +18,7 @@ export type FrontComponentConfig = Omit<
| 'builtComponentPath'
| 'builtComponentChecksum'
| 'componentName'
+ | 'usesSdkClient'
| 'command'
> & {
component: FrontComponentType;
diff --git a/packages/twenty-sdk/vite.config.node.ts b/packages/twenty-sdk/vite.config.node.ts
index e5455c7c4f1..52b92c3980e 100644
--- a/packages/twenty-sdk/vite.config.node.ts
+++ b/packages/twenty-sdk/vite.config.node.ts
@@ -28,7 +28,6 @@ export default defineConfig(() => {
cli: 'src/cli/cli.ts',
operations: 'src/cli/operations/index.ts',
build: 'src/build/index.ts',
- clients: 'src/clients/index.ts',
},
name: 'twenty-sdk',
},
diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json
index 1ef579a236e..57eaa14c38b 100644
--- a/packages/twenty-server/package.json
+++ b/packages/twenty-server/package.json
@@ -227,6 +227,7 @@
"@types/unzipper": "^0",
"@yarnpkg/types": "^4.0.0",
"rimraf": "^5.0.5",
+ "twenty-client-sdk": "workspace:*",
"twenty-emails": "workspace:*",
"twenty-shared": "workspace:*"
},
diff --git a/packages/twenty-server/project.json b/packages/twenty-server/project.json
index edb65f0bffe..86f4c44fc31 100644
--- a/packages/twenty-server/project.json
+++ b/packages/twenty-server/project.json
@@ -10,7 +10,11 @@
"options": {
"cwd": "packages/twenty-server",
"parallel": false,
- "commands": ["rimraf dist", "nest build --path ./tsconfig.build.json"]
+ "commands": [
+ "rimraf dist",
+ "nest build --path ./tsconfig.build.json",
+ "mkdir -p dist/assets/twenty-client-sdk && cp ../twenty-client-sdk/package.json dist/assets/twenty-client-sdk/ && cp -r ../twenty-client-sdk/dist dist/assets/twenty-client-sdk/dist"
+ ]
},
"dependsOn": ["^build"]
},
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command.ts
new file mode 100644
index 00000000000..e88572e5cc5
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command.ts
@@ -0,0 +1,67 @@
+import { InjectRepository } from '@nestjs/typeorm';
+
+import { Command } from 'nest-commander';
+import { Repository } from 'typeorm';
+
+import { ActiveOrSuspendedWorkspacesMigrationCommandRunner } from 'src/database/commands/command-runners/active-or-suspended-workspaces-migration.command-runner';
+import { RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspaces-migration.command-runner';
+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
+import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service';
+import { GlobalWorkspaceOrmManager } from 'src/engine/twenty-orm/global-workspace-datasource/global-workspace-orm.manager';
+
+@Command({
+ name: 'upgrade:1-20:generate-application-sdk-clients',
+ description:
+ 'Generate SDK client archives for all existing applications so drivers do not crash with ARCHIVE_NOT_FOUND',
+})
+export class GenerateApplicationSdkClientsCommand extends ActiveOrSuspendedWorkspacesMigrationCommandRunner {
+ constructor(
+ @InjectRepository(WorkspaceEntity)
+ protected readonly workspaceRepository: Repository<WorkspaceEntity>,
+ protected readonly twentyORMGlobalManager: GlobalWorkspaceOrmManager,
+ protected readonly dataSourceService: DataSourceService,
+ @InjectRepository(ApplicationEntity)
+ private readonly applicationRepository: Repository<ApplicationEntity>,
+ private readonly sdkClientGenerationService: SdkClientGenerationService,
+ ) {
+ super(workspaceRepository, twentyORMGlobalManager, dataSourceService);
+ }
+
+ override async runOnWorkspace({
+ workspaceId,
+ options,
+ }: RunOnWorkspaceArgs): Promise<void> {
+ const dryRun = options.dryRun ?? false;
+
+ const applications = await this.applicationRepository.find({
+ where: { workspaceId },
+ });
+
+ this.logger.log(
+ `Found ${applications.length} application(s) in workspace ${workspaceId}`,
+ );
+
+ for (const application of applications) {
+ if (dryRun) {
+ this.logger.log(
+ `[DRY RUN] Would generate SDK client for application ${application.universalIdentifier} (${application.id})`,
+ );
+ continue;
+ }
+
+ try {
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: application.id,
+ applicationUniversalIdentifier: application.universalIdentifier,
+ });
+ } catch (error) {
+ this.logger.error(
+ `Failed to generate SDK client for application ${application.universalIdentifier} (${application.id}): ${error instanceof Error ? error.message : String(error)}`,
+ );
+ }
+ }
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts
index 49b9196f423..9c0f371770e 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-20/1-20-upgrade-version-command.module.ts
@@ -7,6 +7,7 @@ import { BackfillNavigationMenuItemTypeCommand } from 'src/database/commands/upg
import { BackfillPageLayoutsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-page-layouts.command';
import { BackfillSelectFieldOptionIdsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-backfill-select-field-option-ids.command';
import { DeleteOrphanNavigationMenuItemsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-delete-orphan-navigation-menu-items.command';
+import { GenerateApplicationSdkClientsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command';
import { IdentifyObjectPermissionMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-identify-object-permission-metadata.command';
import { IdentifyPermissionFlagMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-identify-permission-flag-metadata.command';
import { MakeObjectPermissionUniversalIdentifierAndApplicationIdNotNullableMigrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-make-object-permission-universal-identifier-and-application-id-not-nullable-migration.command';
@@ -16,8 +17,10 @@ import { MigrateRichTextToTextCommand } from 'src/database/commands/upgrade-vers
import { SeedCliApplicationRegistrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-seed-cli-application-registration.command';
import { UpdateStandardIndexViewNamesCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-update-standard-index-view-names.command';
import { ApplicationRegistrationModule } from 'src/engine/core-modules/application/application-registration/application-registration.module';
+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { CalendarChannelEntity } from 'src/engine/metadata-modules/calendar-channel/entities/calendar-channel.entity';
@@ -37,6 +40,7 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo
imports: [
TypeOrmModule.forFeature([
WorkspaceEntity,
+ ApplicationEntity,
ConnectedAccountEntity,
MessageChannelEntity,
CalendarChannelEntity,
@@ -53,6 +57,7 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo
ApplicationRegistrationModule,
WorkspaceMigrationModule,
FeatureFlagModule,
+ SdkClientModule,
WorkflowCommonModule,
],
providers: [
@@ -66,6 +71,7 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo
BackfillPageLayoutsCommand,
BackfillSelectFieldOptionIdsCommand,
DeleteOrphanNavigationMenuItemsCommand,
+ GenerateApplicationSdkClientsCommand,
SeedCliApplicationRegistrationCommand,
MigrateRichTextToTextCommand,
MigrateMessagingInfrastructureToMetadataCommand,
@@ -82,6 +88,7 @@ import { WorkflowCommonModule } from 'src/modules/workflow/common/workflow-commo
BackfillPageLayoutsCommand,
BackfillSelectFieldOptionIdsCommand,
DeleteOrphanNavigationMenuItemsCommand,
+ GenerateApplicationSdkClientsCommand,
SeedCliApplicationRegistrationCommand,
MigrateRichTextToTextCommand,
MigrateMessagingInfrastructureToMetadataCommand,
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts
index 0db41b1ad6d..bf59c80ffee 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts
@@ -45,6 +45,7 @@ import { MakeObjectPermissionUniversalIdentifierAndApplicationIdNotNullableMigra
import { MakePermissionFlagUniversalIdentifierAndApplicationIdNotNullableMigrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-make-permission-flag-universal-identifier-and-application-id-not-nullable-migration.command';
import { MigrateMessagingInfrastructureToMetadataCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-migrate-messaging-infrastructure-to-metadata.command';
import { MigrateRichTextToTextCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-migrate-rich-text-to-text.command';
+import { GenerateApplicationSdkClientsCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-generate-application-sdk-clients.command';
import { SeedCliApplicationRegistrationCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-seed-cli-application-registration.command';
import { UpdateStandardIndexViewNamesCommand } from 'src/database/commands/upgrade-version-command/1-20/1-20-update-standard-index-view-names.command';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
@@ -105,6 +106,7 @@ export class UpgradeCommand extends UpgradeCommandRunner {
protected readonly backfillCommandMenuItemsCommand: BackfillCommandMenuItemsCommand,
protected readonly deleteOrphanNavigationMenuItemsCommand: DeleteOrphanNavigationMenuItemsCommand,
protected readonly backfillPageLayoutsCommand: BackfillPageLayoutsCommand,
+ protected readonly generateApplicationSdkClientsCommand: GenerateApplicationSdkClientsCommand,
protected readonly seedCliApplicationRegistrationCommand: SeedCliApplicationRegistrationCommand,
protected readonly migrateRichTextToTextCommand: MigrateRichTextToTextCommand,
protected readonly migrateMessagingInfrastructureToMetadataCommand: MigrateMessagingInfrastructureToMetadataCommand,
@@ -174,6 +176,7 @@ export class UpgradeCommand extends UpgradeCommandRunner {
this.backfillFieldWidgetsCommand,
this.backfillSelectFieldOptionIdsCommand,
this.updateStandardIndexViewNamesCommand,
+ this.generateApplicationSdkClientsCommand,
];
this.allCommands = {
diff --git a/packages/twenty-server/src/database/typeorm/core/migrations/common/1773000000000-add-is-sdk-layer-stale-to-application.ts b/packages/twenty-server/src/database/typeorm/core/migrations/common/1773000000000-add-is-sdk-layer-stale-to-application.ts
new file mode 100644
index 00000000000..28536dcfff6
--- /dev/null
+++ b/packages/twenty-server/src/database/typeorm/core/migrations/common/1773000000000-add-is-sdk-layer-stale-to-application.ts
@@ -0,0 +1,19 @@
+import { type MigrationInterface, type QueryRunner } from 'typeorm';
+
+export class AddIsSdkLayerStaleToApplication1773000000000
+ implements MigrationInterface
+{
+ name = 'AddIsSdkLayerStaleToApplication1773000000000';
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."application" ADD "isSdkLayerStale" boolean NOT NULL DEFAULT false`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."application" DROP COLUMN "isSdkLayerStale"`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/typeorm/core/migrations/common/1773100000000-add-uses-sdk-client-to-front-component.ts b/packages/twenty-server/src/database/typeorm/core/migrations/common/1773100000000-add-uses-sdk-client-to-front-component.ts
new file mode 100644
index 00000000000..8fc5463823b
--- /dev/null
+++ b/packages/twenty-server/src/database/typeorm/core/migrations/common/1773100000000-add-uses-sdk-client-to-front-component.ts
@@ -0,0 +1,19 @@
+import { type MigrationInterface, type QueryRunner } from 'typeorm';
+
+export class AddUsesSdkClientToFrontComponent1773100000000
+ implements MigrationInterface
+{
+ name = 'AddUsesSdkClientToFrontComponent1773100000000';
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."frontComponent" ADD "usesSdkClient" boolean NOT NULL DEFAULT false`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."frontComponent" DROP COLUMN "usesSdkClient"`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/engine/api/graphql/core-graphql-api.module.ts b/packages/twenty-server/src/engine/api/graphql/core-graphql-api.module.ts
index fe05df7aa95..0c2e477729e 100644
--- a/packages/twenty-server/src/engine/api/graphql/core-graphql-api.module.ts
+++ b/packages/twenty-server/src/engine/api/graphql/core-graphql-api.module.ts
@@ -4,7 +4,7 @@ import { ScalarsExplorerService } from 'src/engine/api/graphql/services/scalars-
import { WorkspaceResolverBuilderModule } from 'src/engine/api/graphql/workspace-resolver-builder/workspace-resolver-builder.module';
import { WorkspaceSchemaBuilderModule } from 'src/engine/api/graphql/workspace-schema-builder/workspace-schema-builder.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
-import { MetadataEngineModule } from 'src/engine/metadata-modules/metadata-engine.module';
+import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
import { WorkspaceManyOrAllFlatEntityMapsCacheModule } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.module';
import { WorkspaceCacheStorageModule } from 'src/engine/workspace-cache-storage/workspace-cache-storage.module';
@@ -12,7 +12,7 @@ import { WorkspaceSchemaFactory } from './workspace-schema.factory';
@Module({
imports: [
- MetadataEngineModule,
+ DataSourceModule,
WorkspaceSchemaBuilderModule,
WorkspaceResolverBuilderModule,
WorkspaceCacheStorageModule,
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
index c09ea57e670..9328b9f7c4e 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
@@ -23,6 +23,10 @@ import { twentyORMGraphqlApiExceptionHandler } from 'src/engine/twenty-orm/utils
import { WorkflowQueryValidationException } from 'src/modules/workflow/common/exceptions/workflow-query-validation.exception';
import { workflowQueryValidationGraphqlApiExceptionHandler } from 'src/modules/workflow/common/utils/workflow-query-validation-graphql-api-exception-handler.util';
+export interface QueryFailedErrorWithCode extends QueryFailedError {
+ code: string;
+}
+
export const workspaceQueryRunnerGraphqlApiExceptionHandler = (
error: Error | QueryFailedError,
) => {
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/workspace-query-runner.module.ts b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/workspace-query-runner.module.ts
index ef27ca7370a..0fd8100ca5b 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/workspace-query-runner.module.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/workspace-query-runner.module.ts
@@ -4,7 +4,6 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { TelemetryListener } from 'src/engine/api/graphql/workspace-query-runner/listeners/telemetry.listener';
import { WorkspaceQueryHookModule } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-hook/workspace-query-hook.module';
import { AuditModule } from 'src/engine/core-modules/audit/audit.module';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity';
import { FileModule } from 'src/engine/core-modules/file/file.module';
import { RecordPositionModule } from 'src/engine/core-modules/record-position/record-position.module';
@@ -17,7 +16,6 @@ import { EntityEventsToDbListener } from './listeners/entity-events-to-db.listen
@Module({
imports: [
- AuthModule,
WorkspaceDataSourceModule,
WorkspaceQueryHookModule,
TypeOrmModule.forFeature([FeatureFlagEntity]),
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/exceptions/workspace-graphql-schema.exception.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/exceptions/workspace-graphql-schema.exception.ts
new file mode 100644
index 00000000000..3cfaae4e1d5
--- /dev/null
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/exceptions/workspace-graphql-schema.exception.ts
@@ -0,0 +1,36 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { assertUnreachable } from 'twenty-shared/utils';
+
+import { STANDARD_ERROR_MESSAGE } from 'src/engine/api/common/common-query-runners/errors/standard-error-message.constant';
+import { CustomException } from 'src/utils/custom-exception';
+
+export enum WorkspaceGraphQLSchemaExceptionCode {
+ QUERY_TYPE_NOT_FOUND = 'QUERY_TYPE_NOT_FOUND',
+ MUTATION_TYPE_NOT_FOUND = 'MUTATION_TYPE_NOT_FOUND',
+}
+
+const getWorkspaceGraphQLSchemaExceptionUserFriendlyMessage = (
+ code: WorkspaceGraphQLSchemaExceptionCode,
+) => {
+ switch (code) {
+ case WorkspaceGraphQLSchemaExceptionCode.QUERY_TYPE_NOT_FOUND:
+ case WorkspaceGraphQLSchemaExceptionCode.MUTATION_TYPE_NOT_FOUND:
+ return STANDARD_ERROR_MESSAGE;
+ default:
+ assertUnreachable(code);
+ }
+};
+
+export class WorkspaceGraphQLSchemaException extends CustomException<WorkspaceGraphQLSchemaExceptionCode> {
+ constructor(
+ message: string,
+ code: WorkspaceGraphQLSchemaExceptionCode,
+ { userFriendlyMessage }: { userFriendlyMessage?: MessageDescriptor } = {},
+ ) {
+ super(message, code, {
+ userFriendlyMessage:
+ userFriendlyMessage ??
+ getWorkspaceGraphQLSchemaExceptionUserFriendlyMessage(code),
+ });
+ }
+}
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator.ts
index 595014f998d..63278c73fa1 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator.ts
@@ -6,20 +6,13 @@ import {
} from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { CompositeFieldMetadataGqlEnumTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/enum-types/composite-field-metadata-gql-enum-type.generator';
-import { EnumFieldMetadataGqlEnumTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/enum-types/enum-field-metadata-gql-enum-type.generator';
-import { CompositeFieldMetadataGqlInputTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/composite-field-metadata-gql-input-type.generator';
-import { GroupByDateGranularityInputTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/group-by-input/group-by-date-granularity-gql-input-type.generator';
-import { ObjectMetadataGqlInputTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/object-metadata-gql-input-type.generator';
-import { RelationConnectGqlInputTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/relation-connect-gql-input-type.generator';
-import { CompositeFieldMetadataGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/composite-field-metadata-gql-object-type.generator';
-import { ConnectionGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/connection-gql-object-type.generator';
-import { EdgeGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/edge-gql-object-type.generator';
-import { GroupByConnectionGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/group-by-connection-gql-object-type.generator';
-import { ObjectMetadataGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/object-metadata-gql-object-type.generator';
-import { ObjectMetadataWithRelationsGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/object-metadata-with-relations-gql-object-type.generator';
-import { MutationTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/mutation-type.generator';
-import { QueryTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/query-type.generator';
+import { WorkspaceResolverBuilderService } from 'src/engine/api/graphql/workspace-resolver-builder/workspace-resolver-builder.service';
+import {
+ type TypeGenerators,
+ instantiateTypeGenerators,
+} from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators';
+import { TypeMapperService } from 'src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service';
+import { GqlTypesStorage } from 'src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage';
import { type SchemaGenerationContext } from 'src/engine/api/graphql/workspace-schema-builder/types/schema-generation-context.type';
import { getFlatFieldsFromFlatObjectMetadata } from 'src/engine/api/graphql/workspace-schema-builder/utils/get-flat-fields-for-flat-object-metadata.util';
import { FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
@@ -30,54 +23,54 @@ export class GqlTypeGenerator {
private readonly logger = new Logger(GqlTypeGenerator.name);
constructor(
- private readonly objectMetadataGqlObjectTypeGenerator: ObjectMetadataGqlObjectTypeGenerator,
- private readonly objectMetadataGqlInputTypeGenerator: ObjectMetadataGqlInputTypeGenerator,
- private readonly compositeFieldMetadataGqlObjectTypeGenerator: CompositeFieldMetadataGqlObjectTypeGenerator,
- private readonly enumFieldMetadataGqlEnumTypeGenerator: EnumFieldMetadataGqlEnumTypeGenerator,
- private readonly compositeFieldMetadataGqlEnumTypeGenerator: CompositeFieldMetadataGqlEnumTypeGenerator,
- private readonly compositeFieldMetadataGqlInputTypeGenerator: CompositeFieldMetadataGqlInputTypeGenerator,
- private readonly edgeGqlObjectTypeGenerator: EdgeGqlObjectTypeGenerator,
- private readonly connectionGqlObjectTypeGenerator: ConnectionGqlObjectTypeGenerator,
- private readonly groupByConnectionGqlObjectTypeGenerator: GroupByConnectionGqlObjectTypeGenerator,
- private readonly objectMetadataWithRelationsGqlObjectTypeGenerator: ObjectMetadataWithRelationsGqlObjectTypeGenerator,
- private readonly relationConnectGqlInputTypeGenerator: RelationConnectGqlInputTypeGenerator,
- private readonly groupByDateGranularityInputTypeGenerator: GroupByDateGranularityInputTypeGenerator,
- private readonly queryTypeGenerator: QueryTypeGenerator,
- private readonly mutationTypeGenerator: MutationTypeGenerator,
+ private readonly typeMapperService: TypeMapperService,
+ private readonly workspaceResolverBuilderService: WorkspaceResolverBuilderService,
) {}
- async buildAndStore(context: SchemaGenerationContext) {
+ async buildAndStore(
+ context: SchemaGenerationContext,
+ ): Promise<GqlTypesStorage> {
+ const gqlTypesStorage = new GqlTypesStorage();
+ const generators = instantiateTypeGenerators(
+ gqlTypesStorage,
+ this.typeMapperService,
+ this.workspaceResolverBuilderService,
+ );
+
const compositeTypeCollection = [...compositeTypeDefinitions.values()];
- this.buildAndStoreCompositeFieldMetadataGqlTypes(compositeTypeCollection);
- this.buildAndStoreDateFieldMetadataGroupByGqlTypes();
- this.buildAndStoreObjectMetadataGqlTypes(context);
- await this.queryTypeGenerator.buildAndStore(context);
- this.mutationTypeGenerator.buildAndStore(context);
+ this.buildAndStoreCompositeFieldMetadataGqlTypes(
+ compositeTypeCollection,
+ generators,
+ );
+ generators.groupByDateGranularityInputTypeGenerator.buildAndStore();
+ this.buildAndStoreObjectMetadataGqlTypes(context, generators);
+ await generators.queryTypeGenerator.buildAndStore(context);
+ generators.mutationTypeGenerator.buildAndStore(context);
+
+ return gqlTypesStorage;
}
private buildAndStoreCompositeFieldMetadataGqlTypes(
compositeTypes: CompositeType[],
+ generators: TypeGenerators,
) {
for (const compositeType of compositeTypes) {
- this.compositeFieldMetadataGqlEnumTypeGenerator.buildAndStore(
+ generators.compositeFieldMetadataGqlEnumTypeGenerator.buildAndStore(
compositeType,
);
- this.compositeFieldMetadataGqlObjectTypeGenerator.buildAndStore(
+ generators.compositeFieldMetadataGqlObjectTypeGenerator.buildAndStore(
compositeType,
);
- this.compositeFieldMetadataGqlInputTypeGenerator.buildAndStore(
+ generators.compositeFieldMetadataGqlInputTypeGenerator.buildAndStore(
compositeType,
);
}
}
- private buildAndStoreDateFieldMetadataGroupByGqlTypes() {
- this.groupByDateGranularityInputTypeGenerator.buildAndStore();
- }
-
private buildAndStoreObjectMetadataGqlTypes(
context: SchemaGenerationContext,
+ generators: TypeGenerators,
) {
const { flatObjectMetadataMaps, flatFieldMetadataMaps } = context;
const objectMetadataCollection = Object.values(
@@ -96,35 +89,35 @@ export class GqlTypeGenerator {
flatFieldMetadataMaps,
);
- this.enumFieldMetadataGqlEnumTypeGenerator.buildAndStore(
+ generators.enumFieldMetadataGqlEnumTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
);
- this.objectMetadataGqlObjectTypeGenerator.buildAndStore(
+ generators.objectMetadataGqlObjectTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
);
- this.edgeGqlObjectTypeGenerator.buildAndStore(flatObjectMetadata);
- this.connectionGqlObjectTypeGenerator.buildAndStore(
+ generators.edgeGqlObjectTypeGenerator.buildAndStore(flatObjectMetadata);
+ generators.connectionGqlObjectTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
);
- this.groupByConnectionGqlObjectTypeGenerator.buildAndStore(
+ generators.groupByConnectionGqlObjectTypeGenerator.buildAndStore(
flatObjectMetadata,
);
- this.relationConnectGqlInputTypeGenerator.buildAndStore(
+ generators.relationConnectGqlInputTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
context,
);
- this.objectMetadataGqlInputTypeGenerator.buildAndStore(
+ generators.objectMetadataGqlInputTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
context,
);
if (this.objectContainsRelationOrMorphField(fields)) {
- this.objectMetadataWithRelationsGqlObjectTypeGenerator.buildAndStore(
+ generators.objectMetadataWithRelationsGqlObjectTypeGenerator.buildAndStore(
flatObjectMetadata,
fields,
context,
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/create-input/composite-field-metadata-create-gql-input-type.generator.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/create-input/composite-field-metadata-create-gql-input-type.generator.ts
index dd2b410c8bd..b9e706d3c2b 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/create-input/composite-field-metadata-create-gql-input-type.generator.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/create-input/composite-field-metadata-create-gql-input-type.generator.ts
@@ -1,6 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import {
+ GraphQLEnumType,
GraphQLInputFieldConfigMap,
GraphQLInputObjectType,
isObjectType,
@@ -71,7 +72,7 @@ export class CompositeFieldMetadataCreateGqlInputTypeGenerator {
const typeOptions = computeCompositeFieldTypeOptions(property);
const type = isEnumFieldMetadataType(property.type)
- ? this.gqlTypesStorage.getGqlTypeByKey(key)
+ ? this.gqlTypesStorage.getGqlTypeByKey<GraphQLEnumType>(key)
: this.typeMapperService.mapToPreBuiltGraphQLInputType({
fieldMetadataType: property.type,
typeOptions,
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/update-input/composite-field-metadata-update-gql-input-type.generator.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/update-input/composite-field-metadata-update-gql-input-type.generator.ts
index d86800e2022..4c81da49412 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/update-input/composite-field-metadata-update-gql-input-type.generator.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/input-types/update-input/composite-field-metadata-update-gql-input-type.generator.ts
@@ -1,6 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import {
+ GraphQLEnumType,
GraphQLInputFieldConfigMap,
GraphQLInputObjectType,
isObjectType,
@@ -72,7 +73,7 @@ export class CompositeFieldMetadataUpdateGqlInputTypeGenerator {
const typeOptions = computeCompositeFieldTypeOptions(property);
const type = isEnumFieldMetadataType(property.type)
- ? this.gqlTypesStorage.getGqlTypeByKey(key)
+ ? this.gqlTypesStorage.getGqlTypeByKey<GraphQLEnumType>(key)
: this.typeMapperService.mapToPreBuiltGraphQLInputType({
fieldMetadataType: property.type,
typeOptions,
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators.ts
index 63103311566..b78e7399d1a 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators.ts
@@ -1,3 +1,4 @@
+import { WorkspaceResolverBuilderService } from 'src/engine/api/graphql/workspace-resolver-builder/workspace-resolver-builder.service';
import { ArgsTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/args-type/args-type.generator';
import { CompositeFieldMetadataGqlEnumTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/enum-types/composite-field-metadata-gql-enum-type.generator';
import { EnumFieldMetadataGqlEnumTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/enum-types/enum-field-metadata-gql-enum-type.generator';
@@ -26,42 +27,152 @@ import { GroupByConnectionGqlObjectTypeGenerator } from 'src/engine/api/graphql/
import { ObjectMetadataGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/object-metadata-gql-object-type.generator';
import { ObjectMetadataWithRelationsGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/object-metadata-with-relations-gql-object-type.generator';
import { RelationFieldMetadataGqlObjectTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/object-types/relation-field-metadata-gql-object-type.generator';
-import { OrphanedTypesGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/orphaned-types.generator';
import { MutationTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/mutation-type.generator';
import { QueryTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/query-type.generator';
import { RootTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/root-type.generator';
+import { TypeMapperService } from 'src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service';
+import { GqlTypesStorage } from 'src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage';
-export const workspaceSchemaBuilderTypeGenerators = [
- CompositeFieldMetadataGqlEnumTypeGenerator,
- EnumFieldMetadataGqlEnumTypeGenerator,
- CompositeFieldMetadataGqlInputTypeGenerator,
- CompositeFieldMetadataCreateGqlInputTypeGenerator,
- CompositeFieldMetadataUpdateGqlInputTypeGenerator,
- CompositeFieldMetadataFilterGqlInputTypeGenerator,
- CompositeFieldMetadataOrderByGqlInputTypeGenerator,
- CompositeFieldMetadataGroupByGqlInputTypeGenerator,
- RelationFieldMetadataGqlInputTypeGenerator,
- RelationFieldMetadataGqlObjectTypeGenerator,
- ObjectMetadataGqlInputTypeGenerator,
- ObjectMetadataCreateGqlInputTypeGenerator,
- ObjectMetadataUpdateGqlInputTypeGenerator,
- ObjectMetadataFilterGqlInputTypeGenerator,
- ObjectMetadataOrderByGqlInputTypeGenerator,
- ObjectMetadataGroupByGqlInputTypeGenerator,
- ObjectMetadataOrderByWithGroupByGqlInputTypeGenerator,
- ObjectMetadataOrderByBaseGenerator,
- GroupByDateGranularityInputTypeGenerator,
- CompositeFieldMetadataGqlObjectTypeGenerator,
- ObjectMetadataGqlObjectTypeGenerator,
- RelationConnectGqlInputTypeGenerator,
- ConnectionGqlObjectTypeGenerator,
- EdgeGqlObjectTypeGenerator,
- GroupByConnectionGqlObjectTypeGenerator,
- ObjectMetadataWithRelationsGqlObjectTypeGenerator,
- AggregationObjectTypeGenerator,
- ArgsTypeGenerator,
- RootTypeGenerator,
- QueryTypeGenerator,
- MutationTypeGenerator,
- OrphanedTypesGenerator,
-];
+export const instantiateTypeGenerators = (
+ gqlTypesStorage: GqlTypesStorage,
+ typeMapperService: TypeMapperService,
+ workspaceResolverBuilderService: WorkspaceResolverBuilderService,
+) => {
+ const argsTypeGenerator = new ArgsTypeGenerator(gqlTypesStorage);
+
+ const relationFieldMetadataGqlObjectTypeGenerator =
+ new RelationFieldMetadataGqlObjectTypeGenerator(typeMapperService);
+
+ const relationFieldMetadataGqlInputTypeGenerator =
+ new RelationFieldMetadataGqlInputTypeGenerator(
+ typeMapperService,
+ gqlTypesStorage,
+ );
+
+ const compositeFieldMetadataCreateGqlInputTypeGenerator =
+ new CompositeFieldMetadataCreateGqlInputTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ );
+ const compositeFieldMetadataUpdateGqlInputTypeGenerator =
+ new CompositeFieldMetadataUpdateGqlInputTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ );
+ const compositeFieldMetadataFilterGqlInputTypeGenerator =
+ new CompositeFieldMetadataFilterGqlInputTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ );
+ const compositeFieldMetadataOrderByGqlInputTypeGenerator =
+ new CompositeFieldMetadataOrderByGqlInputTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ );
+ const compositeFieldMetadataGroupByGqlInputTypeGenerator =
+ new CompositeFieldMetadataGroupByGqlInputTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ );
+
+ const objectMetadataOrderByBaseGenerator =
+ new ObjectMetadataOrderByBaseGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ typeMapperService,
+ );
+
+ const rootTypeGenerator = new RootTypeGenerator(
+ gqlTypesStorage,
+ argsTypeGenerator,
+ workspaceResolverBuilderService,
+ );
+
+ return {
+ enumFieldMetadataGqlEnumTypeGenerator:
+ new EnumFieldMetadataGqlEnumTypeGenerator(gqlTypesStorage),
+ compositeFieldMetadataGqlEnumTypeGenerator:
+ new CompositeFieldMetadataGqlEnumTypeGenerator(gqlTypesStorage),
+ compositeFieldMetadataGqlObjectTypeGenerator:
+ new CompositeFieldMetadataGqlObjectTypeGenerator(
+ gqlTypesStorage,
+ typeMapperService,
+ ),
+ compositeFieldMetadataGqlInputTypeGenerator:
+ new CompositeFieldMetadataGqlInputTypeGenerator(
+ compositeFieldMetadataCreateGqlInputTypeGenerator,
+ compositeFieldMetadataUpdateGqlInputTypeGenerator,
+ compositeFieldMetadataFilterGqlInputTypeGenerator,
+ compositeFieldMetadataOrderByGqlInputTypeGenerator,
+ compositeFieldMetadataGroupByGqlInputTypeGenerator,
+ ),
+ objectMetadataGqlObjectTypeGenerator:
+ new ObjectMetadataGqlObjectTypeGenerator(
+ relationFieldMetadataGqlObjectTypeGenerator,
+ gqlTypesStorage,
+ typeMapperService,
+ ),
+ objectMetadataGqlInputTypeGenerator:
+ new ObjectMetadataGqlInputTypeGenerator(
+ new ObjectMetadataCreateGqlInputTypeGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ typeMapperService,
+ ),
+ new ObjectMetadataUpdateGqlInputTypeGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ typeMapperService,
+ ),
+ new ObjectMetadataFilterGqlInputTypeGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ typeMapperService,
+ ),
+ new ObjectMetadataOrderByGqlInputTypeGenerator(
+ gqlTypesStorage,
+ objectMetadataOrderByBaseGenerator,
+ ),
+ new ObjectMetadataOrderByWithGroupByGqlInputTypeGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ objectMetadataOrderByBaseGenerator,
+ typeMapperService,
+ ),
+ new ObjectMetadataGroupByGqlInputTypeGenerator(
+ gqlTypesStorage,
+ relationFieldMetadataGqlInputTypeGenerator,
+ typeMapperService,
+ ),
+ ),
+ edgeGqlObjectTypeGenerator: new EdgeGqlObjectTypeGenerator(gqlTypesStorage),
+ connectionGqlObjectTypeGenerator: new ConnectionGqlObjectTypeGenerator(
+ new AggregationObjectTypeGenerator(),
+ gqlTypesStorage,
+ ),
+ groupByConnectionGqlObjectTypeGenerator:
+ new GroupByConnectionGqlObjectTypeGenerator(gqlTypesStorage),
+ objectMetadataWithRelationsGqlObjectTypeGenerator:
+ new ObjectMetadataWithRelationsGqlObjectTypeGenerator(
+ argsTypeGenerator,
+ gqlTypesStorage,
+ ),
+ relationConnectGqlInputTypeGenerator:
+ new RelationConnectGqlInputTypeGenerator(
+ typeMapperService,
+ gqlTypesStorage,
+ ),
+ groupByDateGranularityInputTypeGenerator:
+ new GroupByDateGranularityInputTypeGenerator(gqlTypesStorage),
+ queryTypeGenerator: new QueryTypeGenerator(
+ rootTypeGenerator,
+ gqlTypesStorage,
+ ),
+ mutationTypeGenerator: new MutationTypeGenerator(
+ rootTypeGenerator,
+ gqlTypesStorage,
+ ),
+ };
+};
+
+export type TypeGenerators = ReturnType<typeof instantiateTypeGenerators>;
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage.ts
index 92e0483e194..b3b3538e849 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage.ts
@@ -1,36 +1,19 @@
-import { Injectable, Scope } from '@nestjs/common';
+import { type GraphQLNamedType } from 'graphql';
-import {
- type GraphQLEnumType,
- type GraphQLInputObjectType,
- type GraphQLObjectType,
-} from 'graphql';
-
-// Must be scoped on REQUEST level, because we need to recreate it for each workspaces
-// TODO: Implement properly durable by workspace
-@Injectable({ scope: Scope.REQUEST, durable: true })
export class GqlTypesStorage {
- private readonly gqlTypes = new Map<
- string,
- GraphQLEnumType | GraphQLInputObjectType | GraphQLObjectType
- >();
+ private readonly gqlTypes = new Map<string, GraphQLNamedType>();
- addGqlType(
- key: string,
- type: GraphQLEnumType | GraphQLInputObjectType | GraphQLObjectType,
- ) {
+ addGqlType(key: string, type: GraphQLNamedType) {
this.gqlTypes.set(key, type);
}
- getGqlTypeByKey(
+ getGqlTypeByKey<T extends GraphQLNamedType = GraphQLNamedType>(
key: string,
- ): GraphQLEnumType | GraphQLInputObjectType | GraphQLObjectType | undefined {
- return this.gqlTypes.get(key);
+ ): T | undefined {
+ return this.gqlTypes.get(key) as T | undefined;
}
- getAllGqlTypesExcept(
- keysToExclude: string[],
- ): (GraphQLEnumType | GraphQLInputObjectType | GraphQLObjectType)[] {
+ getAllGqlTypesExcept(keysToExclude: string[]): GraphQLNamedType[] {
return Array.from(this.gqlTypes.entries())
.filter(([key]) => !keysToExclude.includes(key))
.map(([, value]) => value);
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-graphql-schema.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-graphql-schema.factory.ts
index bc2c62503a7..9863df2f5a8 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-graphql-schema.factory.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-graphql-schema.factory.ts
@@ -1,34 +1,53 @@
import { Injectable } from '@nestjs/common';
-import { GraphQLSchema } from 'graphql';
+import { GraphQLObjectType, GraphQLSchema } from 'graphql';
+import { isDefined } from 'twenty-shared/utils';
+import { GqlOperation } from 'src/engine/api/graphql/workspace-schema-builder/enums/gql-operation.enum';
+import {
+ WorkspaceGraphQLSchemaException,
+ WorkspaceGraphQLSchemaExceptionCode,
+} from 'src/engine/api/graphql/workspace-schema-builder/exceptions/workspace-graphql-schema.exception';
import { GqlTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator';
-import { OrphanedTypesGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/orphaned-types.generator';
-import { MutationTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/mutation-type.generator';
-import { QueryTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/root-types/query-type.generator';
import { type SchemaGenerationContext } from 'src/engine/api/graphql/workspace-schema-builder/types/schema-generation-context.type';
@Injectable()
export class WorkspaceGraphQLSchemaGenerator {
- constructor(
- private readonly gqlTypeGenerator: GqlTypeGenerator,
- private readonly queryTypeGenerator: QueryTypeGenerator,
- private readonly mutationTypeGenerator: MutationTypeGenerator,
- private readonly orphanedTypesGenerator: OrphanedTypesGenerator,
- ) {}
+ constructor(private readonly gqlTypeGenerator: GqlTypeGenerator) {}
async generateSchema(
context: SchemaGenerationContext,
): Promise<GraphQLSchema> {
- await this.gqlTypeGenerator.buildAndStore(context);
+ const gqlTypesStorage = await this.gqlTypeGenerator.buildAndStore(context);
- // Assemble schema
- const schema = new GraphQLSchema({
- query: this.queryTypeGenerator.fetchQueryType(),
- mutation: this.mutationTypeGenerator.fetchMutationType(),
- types: this.orphanedTypesGenerator.fetchOrphanedTypes(),
- });
+ const queryType = gqlTypesStorage.getGqlTypeByKey<GraphQLObjectType>(
+ GqlOperation.Query,
+ );
+ const mutationType = gqlTypesStorage.getGqlTypeByKey<GraphQLObjectType>(
+ GqlOperation.Mutation,
+ );
+
+ if (!isDefined(queryType)) {
+ throw new WorkspaceGraphQLSchemaException(
+ 'Query type not found in GqlTypesStorage',
+ WorkspaceGraphQLSchemaExceptionCode.QUERY_TYPE_NOT_FOUND,
+ );
+ }
- return schema;
+ if (!isDefined(mutationType)) {
+ throw new WorkspaceGraphQLSchemaException(
+ 'Mutation type not found in GqlTypesStorage',
+ WorkspaceGraphQLSchemaExceptionCode.MUTATION_TYPE_NOT_FOUND,
+ );
+ }
+
+ return new GraphQLSchema({
+ query: queryType,
+ mutation: mutationType,
+ types: gqlTypesStorage.getAllGqlTypesExcept([
+ GqlOperation.Query,
+ GqlOperation.Mutation,
+ ]),
+ });
}
}
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-schema-builder.module.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-schema-builder.module.ts
index f1c1860a028..321abc0e3bd 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-schema-builder.module.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/workspace-schema-builder.module.ts
@@ -2,23 +2,13 @@ import { Module } from '@nestjs/common';
import { WorkspaceResolverBuilderModule } from 'src/engine/api/graphql/workspace-resolver-builder/workspace-resolver-builder.module';
import { GqlTypeGenerator } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/gql-type.generator';
-import { workspaceSchemaBuilderTypeGenerators } from 'src/engine/api/graphql/workspace-schema-builder/graphql-type-generators/type-generators';
-import { GqlTypesStorage } from 'src/engine/api/graphql/workspace-schema-builder/storages/gql-types.storage';
+import { TypeMapperService } from 'src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service';
import { WorkspaceGraphQLSchemaGenerator } from 'src/engine/api/graphql/workspace-schema-builder/workspace-graphql-schema.factory';
-import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
-import { ObjectMetadataModule } from 'src/engine/metadata-modules/object-metadata/object-metadata.module';
-import { TypeMapperService } from './services/type-mapper.service';
@Module({
- imports: [
- ObjectMetadataModule,
- WorkspaceResolverBuilderModule,
- FeatureFlagModule,
- ],
+ imports: [WorkspaceResolverBuilderModule],
providers: [
- GqlTypesStorage,
TypeMapperService,
- ...workspaceSchemaBuilderTypeGenerators,
GqlTypeGenerator,
WorkspaceGraphQLSchemaGenerator,
],
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.module.ts b/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.module.ts
index af98b288fe8..948a5dc18de 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.module.ts
@@ -7,6 +7,7 @@ import { ApplicationDevelopmentResolver } from 'src/engine/core-modules/applicat
import { TokenModule } from 'src/engine/core-modules/auth/token/token.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { FileStorageModule } from 'src/engine/core-modules/file-storage/file-storage.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
import { WorkspaceMigrationGraphqlApiExceptionInterceptor } from 'src/engine/workspace-manager/workspace-migration/interceptors/workspace-migration-graphql-api-exception.interceptor';
@@ -16,6 +17,7 @@ import { WorkspaceMigrationGraphqlApiExceptionInterceptor } from 'src/engine/wor
ApplicationManifestModule,
ApplicationRegistrationModule,
FeatureFlagModule,
+ SdkClientModule,
TokenModule,
FileStorageModule,
PermissionsModule,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.resolver.ts
index 948a4fa66e4..753e742f5f5 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.resolver.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-development/application-development.resolver.ts
@@ -8,32 +8,34 @@ import { Args, Mutation } from '@nestjs/graphql';
import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs';
import { PermissionFlagType } from 'twenty-shared/constants';
-import { FileFolder, FeatureFlagKey } from 'twenty-shared/types';
+import { FeatureFlagKey, FileFolder } from 'twenty-shared/types';
+import { isDefined } from 'twenty-shared/utils';
import type { FileUpload } from 'graphql-upload/processRequest.mjs';
-import { ApplicationRegistrationVariableService } from 'src/engine/core-modules/application/application-registration-variable/application-registration-variable.service';
-import { ApplicationRegistrationService } from 'src/engine/core-modules/application/application-registration/application-registration.service';
import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';
-import { ApplicationExceptionFilter } from 'src/engine/core-modules/application/application-exception-filter';
-import {
- ApplicationException,
- ApplicationExceptionCode,
-} from 'src/engine/core-modules/application/application.exception';
-import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';
-import { ApplicationSyncService } from 'src/engine/core-modules/application/application-manifest/application-sync.service';
-import { ApplicationService } from 'src/engine/core-modules/application/application.service';
import { ApplicationInput } from 'src/engine/core-modules/application/application-development/dtos/application.input';
import { CreateDevelopmentApplicationInput } from 'src/engine/core-modules/application/application-development/dtos/create-development-application.input';
import { DevelopmentApplicationDTO } from 'src/engine/core-modules/application/application-development/dtos/development-application.dto';
import { GenerateApplicationTokenInput } from 'src/engine/core-modules/application/application-development/dtos/generate-application-token.input';
import { UploadApplicationFileInput } from 'src/engine/core-modules/application/application-development/dtos/upload-application-file.input';
import { WorkspaceMigrationDTO } from 'src/engine/core-modules/application/application-development/dtos/workspace-migration.dto';
+import { ApplicationExceptionFilter } from 'src/engine/core-modules/application/application-exception-filter';
+import { ApplicationSyncService } from 'src/engine/core-modules/application/application-manifest/application-sync.service';
import { ApplicationTokenPairDTO } from 'src/engine/core-modules/application/application-oauth/dtos/application-token-pair.dto';
+import { ApplicationRegistrationVariableService } from 'src/engine/core-modules/application/application-registration-variable/application-registration-variable.service';
+import { ApplicationRegistrationService } from 'src/engine/core-modules/application/application-registration/application-registration.service';
+import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum';
+import {
+ ApplicationException,
+ ApplicationExceptionCode,
+} from 'src/engine/core-modules/application/application.exception';
+import { ApplicationService } from 'src/engine/core-modules/application/application.service';
import { ApplicationTokenService } from 'src/engine/core-modules/auth/token/services/application-token.service';
import { FileStorageService } from 'src/engine/core-modules/file-storage/file-storage.service';
import { FileDTO } from 'src/engine/core-modules/file/dtos/file.dto';
import { ResolverValidationPipe } from 'src/engine/core-modules/graphql/pipes/resolver-validation.pipe';
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { AuthUser } from 'src/engine/decorators/auth/auth-user.decorator';
import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';
@@ -66,6 +68,7 @@ export class ApplicationDevelopmentResolver {
private readonly applicationRegistrationService: ApplicationRegistrationService,
private readonly applicationRegistrationVariableService: ApplicationRegistrationVariableService,
private readonly fileStorageService: FileStorageService,
+ private readonly sdkClientGenerationService: SdkClientGenerationService,
) {}
@Mutation(() => DevelopmentApplicationDTO)
@@ -133,13 +136,38 @@ export class ApplicationDevelopmentResolver {
workspaceId,
);
- const workspaceMigration =
+ const application = await this.applicationService.findByUniversalIdentifier(
+ {
+ universalIdentifier: manifest.application.universalIdentifier,
+ workspaceId,
+ },
+ );
+
+ if (!isDefined(application)) {
+ throw new ApplicationException(
+ `Application "${manifest.application.universalIdentifier}" not found in workspace "${workspaceId}". Run createDevelopmentApplication first.`,
+ ApplicationExceptionCode.APPLICATION_NOT_FOUND,
+ );
+ }
+
+ const isFirstSync = !isDefined(application.version);
+
+ const { workspaceMigration, hasSchemaMetadataChanged } =
await this.applicationSyncService.synchronizeFromManifest({
workspaceId,
manifest,
applicationRegistrationId,
});
+ if (isFirstSync || hasSchemaMetadataChanged) {
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: application.id,
+ applicationUniversalIdentifier:
+ manifest.application.universalIdentifier,
+ });
+ }
+
await this.syncRegistrationMetadata(
applicationRegistrationId,
manifest,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts
index f0a797e538f..47fd91d54f1 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.module.ts
@@ -10,6 +10,7 @@ import { ApplicationPackageModule } from 'src/engine/core-modules/application/ap
import { ApplicationInstallResolver } from 'src/engine/core-modules/application/application-install/application-install.resolver';
import { ApplicationInstallService } from 'src/engine/core-modules/application/application-install/application-install.service';
import { FileStorageModule } from 'src/engine/core-modules/file-storage/file-storage.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
@Module({
@@ -20,6 +21,7 @@ import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permi
ApplicationPackageModule,
CacheLockModule,
FeatureFlagModule,
+ SdkClientModule,
PermissionsModule,
FileStorageModule,
],
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts
index acbfcbd8eb5..0d151de4897 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts
@@ -24,7 +24,7 @@ import {
import { ApplicationSyncService } from 'src/engine/core-modules/application/application-manifest/application-sync.service';
import { CacheLockService } from 'src/engine/core-modules/cache-lock/cache-lock.service';
import { FileStorageService } from 'src/engine/core-modules/file-storage/file-storage.service';
-
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
@Injectable()
export class ApplicationInstallService {
private readonly logger = new Logger(ApplicationInstallService.name);
@@ -37,6 +37,7 @@ export class ApplicationInstallService {
private readonly applicationSyncService: ApplicationSyncService,
private readonly fileStorageService: FileStorageService,
private readonly cacheLockService: CacheLockService,
+ private readonly sdkClientGenerationService: SdkClientGenerationService,
) {}
async installApplication(params: {
@@ -108,7 +109,7 @@ export class ApplicationInstallService {
const universalIdentifier = appRegistration.universalIdentifier;
- await this.ensureApplicationExists({
+ const { application, wasCreated } = await this.ensureApplicationExists({
universalIdentifier,
name: resolvedPackage.manifest.application.displayName,
workspaceId: params.workspaceId,
@@ -123,11 +124,20 @@ export class ApplicationInstallService {
params.workspaceId,
);
- await this.applicationSyncService.synchronizeFromManifest({
- workspaceId: params.workspaceId,
- manifest: resolvedPackage.manifest,
- applicationRegistrationId: appRegistration.id,
- });
+ const { hasSchemaMetadataChanged } =
+ await this.applicationSyncService.synchronizeFromManifest({
+ workspaceId: params.workspaceId,
+ manifest: resolvedPackage.manifest,
+ applicationRegistrationId: appRegistration.id,
+ });
+
+ if (wasCreated || hasSchemaMetadataChanged) {
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId: params.workspaceId,
+ applicationId: application.id,
+ applicationUniversalIdentifier: universalIdentifier,
+ });
+ }
this.logger.log(
`Successfully installed app ${universalIdentifier} v${resolvedPackage.packageJson.version ?? 'unknown'}`,
@@ -232,17 +242,17 @@ export class ApplicationInstallService {
workspaceId: string;
applicationRegistrationId: string;
sourceType: ApplicationRegistrationSourceType;
- }): Promise<ApplicationEntity> {
+ }): Promise<{ application: ApplicationEntity; wasCreated: boolean }> {
const existing = await this.applicationService.findByUniversalIdentifier({
universalIdentifier: params.universalIdentifier,
workspaceId: params.workspaceId,
});
if (isDefined(existing)) {
- return existing;
+ return { application: existing, wasCreated: false };
}
- return this.applicationService.create({
+ const application = await this.applicationService.create({
universalIdentifier: params.universalIdentifier,
name: params.name,
sourcePath: params.universalIdentifier,
@@ -250,5 +260,7 @@ export class ApplicationInstallService {
applicationRegistrationId: params.applicationRegistrationId,
workspaceId: params.workspaceId,
});
+
+ return { application, wasCreated: true };
}
}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-manifest-migration.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-manifest-migration.service.ts
index ccf689855e1..7d10513a19c 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-manifest-migration.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-manifest-migration.service.ts
@@ -47,7 +47,10 @@ export class ApplicationManifestMigrationService {
manifest: Manifest;
workspaceId: string;
ownerFlatApplication: FlatApplication;
- }): Promise<WorkspaceMigration> {
+ }): Promise<{
+ workspaceMigration: WorkspaceMigration;
+ hasSchemaMetadataChanged: boolean;
+ }> {
const now = new Date().toISOString();
const { twentyStandardFlatApplication } =
@@ -122,7 +125,10 @@ export class ApplicationManifestMigrationService {
ownerFlatApplication,
});
- return validateAndBuildResult.workspaceMigration;
+ return {
+ workspaceMigration: validateAndBuildResult.workspaceMigration,
+ hasSchemaMetadataChanged: validateAndBuildResult.hasSchemaMetadataChanged,
+ };
}
/**
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts
index c8c64c529fe..83c62af5ec1 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/application-sync.service.ts
@@ -47,7 +47,10 @@ export class ApplicationSyncService {
workspaceId: string;
manifest: Manifest;
applicationRegistrationId?: string;
- }): Promise<WorkspaceMigration> {
+ }): Promise<{
+ workspaceMigration: WorkspaceMigration;
+ hasSchemaMetadataChanged: boolean;
+ }> {
const application = await this.syncApplication({
workspaceId,
manifest,
@@ -56,7 +59,7 @@ export class ApplicationSyncService {
const ownerFlatApplication: FlatApplication = application;
- const workspaceMigration =
+ const syncResult =
await this.applicationManifestMigrationService.syncMetadataFromManifest({
manifest,
workspaceId,
@@ -65,7 +68,7 @@ export class ApplicationSyncService {
this.logger.log('Application sync from manifest completed');
- return workspaceMigration;
+ return syncResult;
}
private async syncApplication({
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-front-component-manifest-to-universal-flat-front-component.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-front-component-manifest-to-universal-flat-front-component.util.ts
index b848d922dcf..be476be591e 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-front-component-manifest-to-universal-flat-front-component.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-front-component-manifest-to-universal-flat-front-component.util.ts
@@ -21,6 +21,7 @@ export const fromFrontComponentManifestToUniversalFlatFrontComponent = ({
componentName: frontComponentManifest.componentName,
builtComponentChecksum: frontComponentManifest.builtComponentChecksum,
isHeadless: frontComponentManifest.isHeadless ?? false,
+ usesSdkClient: frontComponentManifest.usesSdkClient ?? false,
createdAt: now,
updatedAt: now,
};
diff --git a/packages/twenty-server/src/engine/core-modules/application/application.entity.ts b/packages/twenty-server/src/engine/core-modules/application/application.entity.ts
index a9cf4036723..fd0e60ce814 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application.entity.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application.entity.ts
@@ -97,6 +97,9 @@ export class ApplicationEntity extends WorkspaceRelatedEntity {
@Column({ nullable: false, type: 'boolean', default: true })
canBeUninstalled: boolean;
+ @Column({ nullable: false, type: 'boolean', default: false })
+ isSdkLayerStale: boolean;
+
@Column({ nullable: true, type: 'uuid' })
applicationRegistrationId: string | null;
diff --git a/packages/twenty-server/src/engine/core-modules/auth/auth.module.ts b/packages/twenty-server/src/engine/core-modules/auth/auth.module.ts
index bd908e00d05..310892fff81 100644
--- a/packages/twenty-server/src/engine/core-modules/auth/auth.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/auth/auth.module.ts
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
-import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
import { ApiKeyEntity } from 'src/engine/core-modules/api-key/api-key.entity';
import { ApiKeyModule } from 'src/engine/core-modules/api-key/api-key.module';
import { ApplicationRegistrationModule } from 'src/engine/core-modules/application/application-registration/application-registration.module';
@@ -58,18 +57,13 @@ import { UserEntity } from 'src/engine/core-modules/user/user.entity';
import { UserModule } from 'src/engine/core-modules/user/user.module';
import { WorkspaceInvitationModule } from 'src/engine/core-modules/workspace-invitation/workspace-invitation.module';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
-import { WorkspaceModule } from 'src/engine/core-modules/workspace/workspace.module';
-import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
import { CalendarChannelDataAccessModule } from 'src/engine/metadata-modules/calendar-channel/data-access/calendar-channel-data-access.module';
import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
import { ConnectedAccountDataAccessModule } from 'src/engine/metadata-modules/connected-account/data-access/connected-account-data-access.module';
import { MessageChannelDataAccessModule } from 'src/engine/metadata-modules/message-channel/data-access/message-channel-data-access.module';
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
-import { UserRoleModule } from 'src/engine/metadata-modules/user-role/user-role.module';
import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
-import { WorkspaceDataSourceModule } from 'src/engine/workspace-datasource/workspace-datasource.module';
-import { WorkspaceManagerModule } from 'src/engine/workspace-manager/workspace-manager.module';
import { CalendarChannelSyncStatusService } from 'src/modules/calendar/common/services/calendar-channel-sync-status.service';
import { ConnectedAccountModule } from 'src/modules/connected-account/connected-account.module';
import { MessagingCommonModule } from 'src/modules/messaging/common/messaging-common.module';
@@ -83,12 +77,9 @@ import { JwtAuthStrategy } from './strategies/jwt.auth.strategy';
@Module({
imports: [
JwtModule,
- DataSourceModule,
WorkspaceDomainsModule,
TokenModule,
UserModule,
- WorkspaceManagerModule,
- TypeORMModule,
TypeOrmModule.forFeature([
WorkspaceEntity,
UserEntity,
@@ -104,9 +95,7 @@ import { JwtAuthStrategy } from './strategies/jwt.auth.strategy';
ConnectedAccountEntity,
]),
UserWorkspaceModule,
- WorkspaceModule,
OnboardingModule,
- WorkspaceDataSourceModule,
ConnectedAccountModule,
MessagingCommonModule,
MessagingFolderSyncManagerModule,
@@ -120,7 +109,6 @@ import { JwtAuthStrategy } from './strategies/jwt.auth.strategy';
GuardRedirectModule,
MetricsModule,
PermissionsModule,
- UserRoleModule,
TwoFactorAuthenticationModule,
ApiKeyModule,
AuditModule,
diff --git a/packages/twenty-server/src/engine/core-modules/core-engine.module.ts b/packages/twenty-server/src/engine/core-modules/core-engine.module.ts
index 49b5dcd90c7..272cc24b6d0 100644
--- a/packages/twenty-server/src/engine/core-modules/core-engine.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/core-engine.module.ts
@@ -7,19 +7,17 @@ import { ActorModule } from 'src/engine/core-modules/actor/actor.module';
import { AdminPanelModule } from 'src/engine/core-modules/admin-panel/admin-panel.module';
import { ApiKeyModule } from 'src/engine/core-modules/api-key/api-key.module';
import { AppTokenModule } from 'src/engine/core-modules/app-token/app-token.module';
-import { ApplicationOAuthModule } from 'src/engine/core-modules/application/application-oauth/application-oauth.module';
-import { ApplicationRegistrationModule } from 'src/engine/core-modules/application/application-registration/application-registration.module';
import { ApplicationDevelopmentModule } from 'src/engine/core-modules/application/application-development/application-development.module';
import { ApplicationInstallModule } from 'src/engine/core-modules/application/application-install/application-install.module';
+import { MarketplaceModule } from 'src/engine/core-modules/application/application-marketplace/marketplace.module';
+import { ApplicationOAuthModule } from 'src/engine/core-modules/application/application-oauth/application-oauth.module';
+import { ApplicationRegistrationModule } from 'src/engine/core-modules/application/application-registration/application-registration.module';
import { ApplicationUpgradeModule } from 'src/engine/core-modules/application/application-upgrade/application-upgrade.module';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
-import { MarketplaceModule } from 'src/engine/core-modules/application/application-marketplace/marketplace.module';
-import { EnvironmentModule } from 'src/engine/core-modules/environment/environment.module';
import { ApprovedAccessDomainModule } from 'src/engine/core-modules/approved-access-domain/approved-access-domain.module';
import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { BillingWebhookModule } from 'src/engine/core-modules/billing-webhook/billing-webhook.module';
import { BillingModule } from 'src/engine/core-modules/billing/billing.module';
-import { UsageModule } from 'src/engine/core-modules/usage/usage.module';
import { CacheStorageModule } from 'src/engine/core-modules/cache-storage/cache-storage.module';
import { TimelineCalendarEventModule } from 'src/engine/core-modules/calendar/timeline-calendar-event.module';
import { CaptchaModule } from 'src/engine/core-modules/captcha/captcha.module';
@@ -28,6 +26,7 @@ import { CodeInterpreterModule } from 'src/engine/core-modules/code-interpreter/
import { DnsManagerModule } from 'src/engine/core-modules/dns-manager/dns-manager.module';
import { EmailModule } from 'src/engine/core-modules/email/email.module';
import { EmailingDomainModule } from 'src/engine/core-modules/emailing-domain/emailing-domain.module';
+import { EnvironmentModule } from 'src/engine/core-modules/environment/environment.module';
import { ExceptionHandlerModule } from 'src/engine/core-modules/exception-handler/exception-handler.module';
import { exceptionHandlerModuleFactory } from 'src/engine/core-modules/exception-handler/exception-handler.module-factory';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
@@ -39,6 +38,7 @@ import { ImpersonationModule } from 'src/engine/core-modules/impersonation/imper
import { LabModule } from 'src/engine/core-modules/lab/lab.module';
import { LoggerModule } from 'src/engine/core-modules/logger/logger.module';
import { loggerModuleFactory } from 'src/engine/core-modules/logger/logger.module-factory';
+import { LogicFunctionModule } from 'src/engine/core-modules/logic-function/logic-function.module';
import { MessageQueueModule } from 'src/engine/core-modules/message-queue/message-queue.module';
import { messageQueueModuleFactory } from 'src/engine/core-modules/message-queue/message-queue.module-factory';
import { TimelineMessagingModule } from 'src/engine/core-modules/messaging/timeline-messaging.module';
@@ -50,11 +50,11 @@ import { PublicDomainModule } from 'src/engine/core-modules/public-domain/public
import { RedisClientModule } from 'src/engine/core-modules/redis-client/redis-client.module';
import { RedisClientService } from 'src/engine/core-modules/redis-client/redis-client.service';
import { SearchModule } from 'src/engine/core-modules/search/search.module';
-import { LogicFunctionModule } from 'src/engine/core-modules/logic-function/logic-function.module';
import { WorkspaceSSOModule } from 'src/engine/core-modules/sso/sso.module';
import { TelemetryModule } from 'src/engine/core-modules/telemetry/telemetry.module';
import { TwentyConfigModule } from 'src/engine/core-modules/twenty-config/twenty-config.module';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
+import { UsageModule } from 'src/engine/core-modules/usage/usage.module';
import { UserModule } from 'src/engine/core-modules/user/user.module';
import { WorkflowApiModule } from 'src/engine/core-modules/workflow/workflow-api.module';
import { WorkspaceInvitationModule } from 'src/engine/core-modules/workspace-invitation/workspace-invitation.module';
diff --git a/packages/twenty-server/src/engine/core-modules/file/interfaces/file-folder.interface.ts b/packages/twenty-server/src/engine/core-modules/file/interfaces/file-folder.interface.ts
index 2d33d05c0f5..1369fc2b044 100644
--- a/packages/twenty-server/src/engine/core-modules/file/interfaces/file-folder.interface.ts
+++ b/packages/twenty-server/src/engine/core-modules/file/interfaces/file-folder.interface.ts
@@ -57,6 +57,9 @@ export const fileFolderConfigs: Record<FileFolder, FileFolderConfig> = {
[FileFolder.AppTarball]: {
ignoreExpirationToken: false,
},
+ [FileFolder.GeneratedSdkClient]: {
+ ignoreExpirationToken: false,
+ },
};
export type AllowedFolders = KebabCase<keyof typeof FileFolder>;
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/lambda.driver.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/lambda.driver.ts
index eda4a48f609..5b75757c8ae 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/lambda.driver.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/lambda.driver.ts
@@ -6,6 +6,7 @@ import {
CreateFunctionCommand,
type CreateFunctionCommandInput,
DeleteFunctionCommand,
+ DeleteLayerVersionCommand,
GetFunctionCommand,
InvokeCommand,
type InvokeCommandInput,
@@ -24,9 +25,9 @@ import { AssumeRoleCommand, STSClient } from '@aws-sdk/client-sts';
import { isDefined } from 'twenty-shared/utils';
import {
+ type LogicFunctionDriver,
type LogicFunctionExecuteParams,
type LogicFunctionExecuteResult,
- type LogicFunctionDriver,
type LogicFunctionTranspileParams,
type LogicFunctionTranspileResult,
} from 'src/engine/core-modules/logic-function/logic-function-drivers/interfaces/logic-function-driver.interface';
@@ -40,6 +41,9 @@ import { copyExecutor } from 'src/engine/core-modules/logic-function/logic-funct
import { copyYarnInstall } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/copy-yarn-install';
import { createZipFile } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/create-zip-file';
import { TemporaryDirManager } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/temporary-dir-manager';
+import { type LogicFunctionResourceService } from 'src/engine/core-modules/logic-function/logic-function-resource/logic-function-resource.service';
+import { type SdkClientArchiveService } from 'src/engine/core-modules/sdk-client/sdk-client-archive.service';
+import { callWithTimeout } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/call-with-timeout';
import { LogicFunctionExecutionStatus } from 'src/engine/metadata-modules/logic-function/dtos/logic-function-execution-result.dto';
import { LogicFunctionRuntime } from 'src/engine/metadata-modules/logic-function/logic-function.entity';
import {
@@ -47,8 +51,6 @@ import {
LogicFunctionExceptionCode,
} from 'src/engine/metadata-modules/logic-function/logic-function.exception';
import { type FlatLogicFunction } from 'src/engine/metadata-modules/logic-function/types/flat-logic-function.type';
-import { type LogicFunctionResourceService } from 'src/engine/core-modules/logic-function/logic-function-resource/logic-function-resource.service';
-import { callWithTimeout } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/call-with-timeout';
const UPDATE_FUNCTION_DURATION_TIMEOUT_IN_SECONDS = 60;
const CREDENTIALS_DURATION_IN_SECONDS = 60 * 60; // 1h
@@ -105,6 +107,7 @@ export type BuilderLambdaResult = {
export interface LambdaDriverOptions extends LambdaClientConfig {
logicFunctionResourceService: LogicFunctionResourceService;
+ sdkClientArchiveService: SdkClientArchiveService;
region: string;
lambdaRole: string;
subhostingRole?: string;
@@ -120,11 +123,13 @@ export class LambdaDriver implements LogicFunctionDriver {
private credentialsExpiry: Date | null = null;
private readonly options: LambdaDriverOptions;
private readonly logicFunctionResourceService: LogicFunctionResourceService;
+ private readonly sdkClientArchiveService: SdkClientArchiveService;
constructor(options: LambdaDriverOptions) {
this.options = options;
this.lambdaClient = undefined;
this.logicFunctionResourceService = options.logicFunctionResourceService;
+ this.sdkClientArchiveService = options.sdkClientArchiveService;
}
private areAssumeRoleCredentialsExpired(): boolean {
@@ -223,8 +228,20 @@ export class LambdaDriver implements LogicFunctionDriver {
);
}
- private getLayerName(flatApplication: FlatApplication) {
- return flatApplication.yarnLockChecksum ?? 'default';
+ private getDepsLayerName(flatApplication: FlatApplication): string {
+ const checksum = flatApplication.yarnLockChecksum ?? 'default';
+
+ return `deps-${checksum}`;
+ }
+
+ private getSdkLayerName({
+ workspaceId,
+ applicationUniversalIdentifier,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ }): string {
+ return `sdk-${workspaceId}-${applicationUniversalIdentifier}`;
}
private yarnInstallFunctionName: string | undefined;
@@ -538,6 +555,33 @@ export class LambdaDriver implements LogicFunctionDriver {
return listLayerResult.LayerVersions?.[0]?.LayerVersionArn;
}
+ private async publishLayer({
+ layerName,
+ zipBuffer,
+ }: {
+ layerName: string;
+ zipBuffer: Buffer;
+ }): Promise<string> {
+ const result = await (
+ await this.getLambdaClient()
+ ).send(
+ new PublishLayerVersionCommand({
+ LayerName: layerName,
+ Content: { ZipFile: zipBuffer },
+ CompatibleRuntimes: [
+ LogicFunctionRuntime.NODE18,
+ LogicFunctionRuntime.NODE22,
+ ],
+ }),
+ );
+
+ if (!isDefined(result.LayerVersionArn)) {
+ throw new Error('New layer version ARN is undefined');
+ }
+
+ return result.LayerVersionArn;
+ }
+
private async getDependencyContents(
flatApplication: FlatApplication,
applicationUniversalIdentifier: string,
@@ -570,7 +614,7 @@ export class LambdaDriver implements LogicFunctionDriver {
flatApplication: FlatApplication;
applicationUniversalIdentifier: string;
}): Promise<void> {
- const layerName = this.getLayerName(flatApplication);
+ const layerName = this.getDepsLayerName(flatApplication);
const existingArn = await this.getExistingLayerArn(layerName);
@@ -625,7 +669,7 @@ export class LambdaDriver implements LogicFunctionDriver {
flatApplication: FlatApplication;
applicationUniversalIdentifier: string;
}): Promise<string> {
- const layerName = this.getLayerName(flatApplication);
+ const layerName = this.getDepsLayerName(flatApplication);
const existingArn = await this.getExistingLayerArn(layerName);
@@ -649,6 +693,89 @@ export class LambdaDriver implements LogicFunctionDriver {
return newArn;
}
+ private async ensureSdkLayer({
+ flatApplication,
+ applicationUniversalIdentifier,
+ }: {
+ flatApplication: FlatApplication;
+ applicationUniversalIdentifier: string;
+ }): Promise<string> {
+ const layerName = this.getSdkLayerName({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ if (!flatApplication.isSdkLayerStale) {
+ const existingArn = await this.getExistingLayerArn(layerName);
+
+ if (isDefined(existingArn)) {
+ return existingArn;
+ }
+ }
+
+ await this.deleteAllLayerVersions({
+ lambdaClient: await this.getLambdaClient(),
+ layerName,
+ });
+
+ const sdkArchiveBuffer =
+ await this.sdkClientArchiveService.downloadArchiveBuffer({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ const zipBuffer = await this.reprefixZipEntries({
+ sourceBuffer: sdkArchiveBuffer,
+ prefix: 'nodejs/node_modules/twenty-client-sdk',
+ });
+
+ const arn = await this.publishLayer({ layerName, zipBuffer });
+
+ await this.sdkClientArchiveService.markSdkLayerFresh({
+ applicationId: flatApplication.id,
+ workspaceId: flatApplication.workspaceId,
+ });
+
+ return arn;
+ }
+
+ // Re-wraps zip entries under a new prefix path without extracting to disk.
+ private async reprefixZipEntries({
+ sourceBuffer,
+ prefix,
+ }: {
+ sourceBuffer: Buffer;
+ prefix: string;
+ }): Promise<Buffer> {
+ const { default: unzipper } = await import('unzipper');
+ const archiver = (await import('archiver')).default;
+
+ const directory = await unzipper.Open.buffer(sourceBuffer);
+ const archive = archiver('zip', { zlib: { level: 9 } });
+
+ const chunks: Buffer[] = [];
+
+ archive.on('data', (chunk: Buffer) => chunks.push(chunk));
+
+ for (const entry of directory.files) {
+ if (entry.type === 'Directory') {
+ continue;
+ }
+
+ archive.append(entry.stream(), {
+ name: `${prefix}/${entry.path}`,
+ });
+ }
+
+ await new Promise<void>((resolve, reject) => {
+ archive.on('end', resolve);
+ archive.on('error', reject);
+ archive.finalize();
+ });
+
+ return Buffer.concat(chunks);
+ }
+
private async getLambdaExecutor(flatLogicFunction: FlatLogicFunction) {
try {
const getFunctionCommand: GetFunctionCommand = new GetFunctionCommand({
@@ -675,10 +802,50 @@ export class LambdaDriver implements LogicFunctionDriver {
}
}
- private async isAlreadyBuilt(
- flatLogicFunction: FlatLogicFunction,
- flatApplication: FlatApplication,
- ) {
+ private async deleteAllLayerVersions({
+ lambdaClient,
+ layerName,
+ }: {
+ lambdaClient: Lambda;
+ layerName: string;
+ }): Promise<void> {
+ let marker: string | undefined;
+
+ do {
+ const listResult = await lambdaClient.send(
+ new ListLayerVersionsCommand({
+ LayerName: layerName,
+ MaxItems: 50,
+ Marker: marker,
+ }),
+ );
+
+ const versions = listResult.LayerVersions ?? [];
+
+ await Promise.all(
+ versions.map((version) =>
+ lambdaClient.send(
+ new DeleteLayerVersionCommand({
+ LayerName: layerName,
+ VersionNumber: version.Version,
+ }),
+ ),
+ ),
+ );
+
+ marker = listResult.NextMarker;
+ } while (isDefined(marker));
+ }
+
+ private async isAlreadyBuilt({
+ flatLogicFunction,
+ flatApplication,
+ applicationUniversalIdentifier,
+ }: {
+ flatLogicFunction: FlatLogicFunction;
+ flatApplication: FlatApplication;
+ applicationUniversalIdentifier: string;
+ }) {
const lambdaExecutor = await this.getLambdaExecutor(flatLogicFunction);
if (!isDefined(lambdaExecutor)) {
@@ -687,15 +854,23 @@ export class LambdaDriver implements LogicFunctionDriver {
const layers = lambdaExecutor.Configuration?.Layers;
- if (!isDefined(layers) || layers.length !== 1) {
+ if (!isDefined(layers) || layers.length !== 2) {
await this.delete(flatLogicFunction);
return false;
}
- const layerName = this.getLayerName(flatApplication);
+ const depsLayerName = this.getDepsLayerName(flatApplication);
+ const sdkLayerName = this.getSdkLayerName({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ const hasExpectedLayers =
+ layers.some((layer) => layer.Arn?.includes(depsLayerName)) &&
+ layers.some((layer) => layer.Arn?.includes(sdkLayerName));
- if (layers[0].Arn?.includes(layerName)) {
+ if (hasExpectedLayers) {
return true;
}
@@ -713,11 +888,25 @@ export class LambdaDriver implements LogicFunctionDriver {
flatApplication: FlatApplication;
applicationUniversalIdentifier: string;
}) {
- if (await this.isAlreadyBuilt(flatLogicFunction, flatApplication)) {
+ if (
+ !flatApplication.isSdkLayerStale &&
+ (await this.isAlreadyBuilt({
+ flatLogicFunction,
+ flatApplication,
+ applicationUniversalIdentifier,
+ }))
+ ) {
return;
}
- const layerArn = await this.getLayerArn({
+ await this.delete(flatLogicFunction);
+
+ const depsLayerArn = await this.getLayerArn({
+ flatApplication,
+ applicationUniversalIdentifier,
+ });
+
+ const sdkLayerArn = await this.ensureSdkLayer({
flatApplication,
applicationUniversalIdentifier,
});
@@ -727,27 +916,31 @@ export class LambdaDriver implements LogicFunctionDriver {
const { sourceTemporaryDir, lambdaZipPath } =
await temporaryDirManager.init();
- await copyExecutor(sourceTemporaryDir);
-
- await createZipFile(sourceTemporaryDir, lambdaZipPath);
+ try {
+ await copyExecutor(sourceTemporaryDir);
- const params: CreateFunctionCommandInput = {
- Code: {
- ZipFile: await fs.readFile(lambdaZipPath),
- },
- FunctionName: flatLogicFunction.id,
- Layers: [layerArn],
- Handler: 'index.handler',
- Role: this.options.lambdaRole,
- Runtime: flatLogicFunction.runtime,
- Timeout: 900, // timeout is handled by the logic function service
- };
+ await createZipFile(sourceTemporaryDir, lambdaZipPath);
- const command = new CreateFunctionCommand(params);
+ // SDK layer listed last so it overwrites the stub twenty-client-sdk
+ // from the deps layer (later layers take precedence in /opt merge).
+ const params: CreateFunctionCommandInput = {
+ Code: {
+ ZipFile: await fs.readFile(lambdaZipPath),
+ },
+ FunctionName: flatLogicFunction.id,
+ Layers: [depsLayerArn, sdkLayerArn],
+ Handler: 'index.handler',
+ Role: this.options.lambdaRole,
+ Runtime: flatLogicFunction.runtime,
+ Timeout: 900,
+ };
- await (await this.getLambdaClient()).send(command);
+ const command = new CreateFunctionCommand(params);
- await temporaryDirManager.clean();
+ await (await this.getLambdaClient()).send(command);
+ } finally {
+ await temporaryDirManager.clean();
+ }
}
private extractLogs(logString: string): string {
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts
index 6521564dacc..72aacd97cd9 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts
@@ -21,23 +21,41 @@ import { HANDLER_NAME_REGEX } from 'src/engine/metadata-modules/logic-function/c
import { LogicFunctionExecutionStatus } from 'src/engine/metadata-modules/logic-function/dtos/logic-function-execution-result.dto';
import { copyYarnEngineAndBuildDependencies } from 'src/engine/core-modules/application/application-package/utils/copy-yarn-engine-and-build-dependencies';
import type { LogicFunctionResourceService } from 'src/engine/core-modules/logic-function/logic-function-resource/logic-function-resource.service';
+import type { SdkClientArchiveService } from 'src/engine/core-modules/sdk-client/sdk-client-archive.service';
export interface LocalDriverOptions {
logicFunctionResourceService: LogicFunctionResourceService;
+ sdkClientArchiveService: SdkClientArchiveService;
}
export class LocalDriver implements LogicFunctionDriver {
private readonly logicFunctionResourceService: LogicFunctionResourceService;
+ private readonly sdkClientArchiveService: SdkClientArchiveService;
constructor(options: LocalDriverOptions) {
this.logicFunctionResourceService = options.logicFunctionResourceService;
+ this.sdkClientArchiveService = options.sdkClientArchiveService;
}
- private getInMemoryLayerFolderPath = (flatApplication: FlatApplication) => {
+ private getDepsLayerPath(flatApplication: FlatApplication): string {
const checksum = flatApplication.yarnLockChecksum ?? 'default';
- return join(LOGIC_FUNCTION_EXECUTOR_TMPDIR_FOLDER, checksum);
- };
+ return join(LOGIC_FUNCTION_EXECUTOR_TMPDIR_FOLDER, 'deps', checksum);
+ }
+
+ private getSdkLayerPath({
+ workspaceId,
+ applicationUniversalIdentifier,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ }): string {
+ return join(
+ LOGIC_FUNCTION_EXECUTOR_TMPDIR_FOLDER,
+ 'sdk',
+ `${workspaceId}-${applicationUniversalIdentifier}`,
+ );
+ }
private async createLayerIfNotExist({
flatApplication,
@@ -45,20 +63,64 @@ export class LocalDriver implements LogicFunctionDriver {
}: {
flatApplication: FlatApplication;
applicationUniversalIdentifier: string;
- }) {
- const inMemoryLayerFolderPath =
- this.getInMemoryLayerFolderPath(flatApplication);
+ }): Promise<void> {
+ const depsLayerPath = this.getDepsLayerPath(flatApplication);
try {
- await fs.access(inMemoryLayerFolderPath);
+ await fs.access(depsLayerPath);
+
+ return;
} catch {
- await this.logicFunctionResourceService.copyDependenciesInMemory({
- applicationUniversalIdentifier,
- workspaceId: flatApplication.workspaceId,
- inMemoryFolderPath: inMemoryLayerFolderPath,
- });
- await copyYarnEngineAndBuildDependencies(inMemoryLayerFolderPath);
+ // Layer doesn't exist yet
+ }
+
+ await this.logicFunctionResourceService.copyDependenciesInMemory({
+ applicationUniversalIdentifier,
+ workspaceId: flatApplication.workspaceId,
+ inMemoryFolderPath: depsLayerPath,
+ });
+ await copyYarnEngineAndBuildDependencies(depsLayerPath);
+ }
+
+ private async ensureSdkLayer({
+ flatApplication,
+ applicationUniversalIdentifier,
+ }: {
+ flatApplication: FlatApplication;
+ applicationUniversalIdentifier: string;
+ }): Promise<void> {
+ const sdkLayerPath = this.getSdkLayerPath({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ const layerExists = await fs
+ .access(sdkLayerPath)
+ .then(() => true)
+ .catch(() => false);
+
+ if (layerExists && !flatApplication.isSdkLayerStale) {
+ return;
}
+
+ await fs.rm(sdkLayerPath, { recursive: true, force: true });
+
+ const sdkPackagePath = join(
+ sdkLayerPath,
+ 'node_modules',
+ 'twenty-client-sdk',
+ );
+
+ await this.sdkClientArchiveService.downloadAndExtractToPackage({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ targetPackagePath: sdkPackagePath,
+ });
+
+ await this.sdkClientArchiveService.markSdkLayerFresh({
+ applicationId: flatApplication.id,
+ workspaceId: flatApplication.workspaceId,
+ });
}
async transpile({
@@ -110,6 +172,59 @@ export class LocalDriver implements LogicFunctionDriver {
flatApplication,
applicationUniversalIdentifier,
});
+ await this.ensureSdkLayer({
+ flatApplication,
+ applicationUniversalIdentifier,
+ });
+ }
+
+ // Symlinks everything from the deps layer except twenty-client-sdk,
+ // which comes from the SDK layer (workspace-specific generated client).
+ private async assembleNodeModules({
+ sourceTemporaryDir,
+ flatApplication,
+ applicationUniversalIdentifier,
+ }: {
+ sourceTemporaryDir: string;
+ flatApplication: FlatApplication;
+ applicationUniversalIdentifier: string;
+ }): Promise<void> {
+ const depsNodeModules = join(
+ this.getDepsLayerPath(flatApplication),
+ 'node_modules',
+ );
+ const sdkNodeModules = join(
+ this.getSdkLayerPath({
+ workspaceId: flatApplication.workspaceId,
+ applicationUniversalIdentifier,
+ }),
+ 'node_modules',
+ );
+ const execNodeModules = join(sourceTemporaryDir, 'node_modules');
+
+ await fs.mkdir(execNodeModules, { recursive: true });
+
+ const entries = await fs.readdir(depsNodeModules, {
+ withFileTypes: true,
+ });
+
+ const symlinkPromises = entries
+ .filter((entry) => entry.name !== 'twenty-client-sdk')
+ .map((entry) =>
+ fs.symlink(
+ join(depsNodeModules, entry.name),
+ join(execNodeModules, entry.name),
+ entry.isDirectory() ? 'dir' : 'file',
+ ),
+ );
+
+ await Promise.all(symlinkPromises);
+
+ await fs.symlink(
+ join(sdkNodeModules, 'twenty-client-sdk'),
+ join(execNodeModules, 'twenty-client-sdk'),
+ 'dir',
+ );
}
async execute({
@@ -124,6 +239,10 @@ export class LocalDriver implements LogicFunctionDriver {
flatApplication,
applicationUniversalIdentifier,
});
+ await this.ensureSdkLayer({
+ flatApplication,
+ applicationUniversalIdentifier,
+ });
const startTime = Date.now();
@@ -140,20 +259,11 @@ export class LocalDriver implements LogicFunctionDriver {
inMemoryDestinationPath: sourceTemporaryDir,
});
- try {
- await fs.symlink(
- join(
- this.getInMemoryLayerFolderPath(flatApplication),
- 'node_modules',
- ),
- join(sourceTemporaryDir, 'node_modules'),
- 'dir',
- );
- } catch (err) {
- if (err.code !== 'EEXIST') {
- throw err;
- }
- }
+ await this.assembleNodeModules({
+ sourceTemporaryDir,
+ flatApplication,
+ applicationUniversalIdentifier,
+ });
let logs = '';
@@ -169,7 +279,7 @@ export class LocalDriver implements LogicFunctionDriver {
(_key, value) => {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
- return '[Circular]'; // Handle circular references
+ return '[Circular]';
}
seen.add(value);
}
@@ -374,7 +484,6 @@ export class LocalDriver implements LogicFunctionDriver {
if (settled) return;
settled = true;
if (code === 0) {
- // Fallback path if no IPC (shouldn't happen with our stdio)
resolve({ ok: true, stdout, stderr });
} else {
resolve({
@@ -398,7 +507,6 @@ export class LocalDriver implements LogicFunctionDriver {
});
}, timeoutMs);
- // Kick it off
child.send?.({ type: 'run', payload });
child.on('close', () => clearTimeout(t));
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/logic-function-driver.factory.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/logic-function-driver.factory.ts
index ce997519b89..32c5cb3e98d 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/logic-function-driver.factory.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/logic-function-driver.factory.ts
@@ -11,6 +11,7 @@ import { DisabledDriver } from 'src/engine/core-modules/logic-function/logic-fun
import { LambdaDriver } from 'src/engine/core-modules/logic-function/logic-function-drivers/drivers/lambda.driver';
import { LocalDriver } from 'src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver';
import { LogicFunctionResourceService } from 'src/engine/core-modules/logic-function/logic-function-resource/logic-function-resource.service';
+import { SdkClientArchiveService } from 'src/engine/core-modules/sdk-client/sdk-client-archive.service';
import { DriverFactoryBase } from 'src/engine/core-modules/twenty-config/dynamic-factory.base';
import { ConfigVariablesGroup } from 'src/engine/core-modules/twenty-config/enums/config-variables-group.enum';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
@@ -20,6 +21,7 @@ export class LogicFunctionDriverFactory extends DriverFactoryBase<LogicFunctionD
constructor(
twentyConfigService: TwentyConfigService,
private readonly logicFunctionResourceService: LogicFunctionResourceService,
+ private readonly sdkClientArchiveService: SdkClientArchiveService,
) {
super(twentyConfigService);
}
@@ -44,6 +46,7 @@ export class LogicFunctionDriverFactory extends DriverFactoryBase<LogicFunctionD
case LogicFunctionDriverType.LOCAL:
return new LocalDriver({
logicFunctionResourceService: this.logicFunctionResourceService,
+ sdkClientArchiveService: this.sdkClientArchiveService,
});
case LogicFunctionDriverType.LAMBDA: {
@@ -82,6 +85,7 @@ export class LogicFunctionDriverFactory extends DriverFactoryBase<LogicFunctionD
subhostingRole,
layerBucket,
layerBucketRegion,
+ sdkClientArchiveService: this.sdkClientArchiveService,
});
}
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function.module.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function.module.ts
index 17683d505e0..04c87dc5cc6 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function.module.ts
@@ -4,6 +4,7 @@ import { LogicFunctionDriverFactory } from 'src/engine/core-modules/logic-functi
import { LogicFunctionResourceModule } from 'src/engine/core-modules/logic-function/logic-function-resource/logic-function-resource.module';
import { LogicFunctionTriggerModule } from 'src/engine/core-modules/logic-function/logic-function-trigger/logic-function-trigger.module';
import { LogicFunctionExecutorModule } from 'src/engine/core-modules/logic-function/logic-function-executor/logic-function-executor.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { TwentyConfigModule } from 'src/engine/core-modules/twenty-config/twenty-config.module';
@Global()
@@ -17,6 +18,7 @@ export class LogicFunctionModule {
LogicFunctionResourceModule,
LogicFunctionTriggerModule,
LogicFunctionExecutorModule,
+ SdkClientModule,
],
providers: [LogicFunctionDriverFactory],
exports: [
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/constants/allowed-sdk-modules.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/constants/allowed-sdk-modules.ts
new file mode 100644
index 00000000000..197340df2dc
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/constants/allowed-sdk-modules.ts
@@ -0,0 +1,3 @@
+export const ALLOWED_SDK_MODULES = ['core', 'metadata'] as const;
+
+export type SdkModuleName = (typeof ALLOWED_SDK_MODULES)[number];
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/constants/sdk-client-package-dirname.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/constants/sdk-client-package-dirname.ts
new file mode 100644
index 00000000000..238fe42f63e
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/constants/sdk-client-package-dirname.ts
@@ -0,0 +1,13 @@
+import path from 'path';
+
+import { ASSET_PATH } from 'src/constants/assets-path';
+
+const IS_BUILT =
+ __dirname.includes('/dist/') && process.env.NODE_ENV !== 'development';
+
+// In built mode the package is copied into dist/assets/ by the build step.
+// In dev mode it lives in node_modules via the monorepo workspace — resolve
+// from the twenty-client-sdk/core entry point and navigate up to the package root.
+export const SDK_CLIENT_PACKAGE_DIRNAME = IS_BUILT
+ ? path.join(ASSET_PATH, 'twenty-client-sdk')
+ : path.resolve(require.resolve('twenty-client-sdk/core'), '..', '..');
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/controllers/sdk-client.controller.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/controllers/sdk-client.controller.ts
new file mode 100644
index 00000000000..026735eb733
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/controllers/sdk-client.controller.ts
@@ -0,0 +1,69 @@
+import {
+ Controller,
+ Get,
+ NotFoundException,
+ Param,
+ Res,
+ UseGuards,
+} from '@nestjs/common';
+
+import { Response } from 'express';
+import { isDefined } from 'twenty-shared/utils';
+
+import {
+ ALLOWED_SDK_MODULES,
+ type SdkModuleName,
+} from 'src/engine/core-modules/sdk-client/constants/allowed-sdk-modules';
+import { SdkClientArchiveService } from 'src/engine/core-modules/sdk-client/sdk-client-archive.service';
+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';
+import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';
+import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+
+@Controller('rest/sdk-client')
+@UseGuards(WorkspaceAuthGuard)
+export class SdkClientController {
+ constructor(
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly sdkClientArchiveService: SdkClientArchiveService,
+ ) {}
+
+ @Get(':applicationId/:moduleName')
+ @UseGuards(NoPermissionGuard)
+ async getSdkModule(
+ @Res() res: Response,
+ @Param('applicationId') applicationId: string,
+ @Param('moduleName') moduleName: SdkModuleName,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ) {
+ if (!ALLOWED_SDK_MODULES.includes(moduleName)) {
+ throw new NotFoundException(
+ `SDK module "${moduleName}" not found. Allowed: ${ALLOWED_SDK_MODULES.join(', ')}`,
+ );
+ }
+
+ const { flatApplicationMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspace.id, [
+ 'flatApplicationMaps',
+ ]);
+
+ const application = flatApplicationMaps.byId[applicationId];
+
+ if (!isDefined(application)) {
+ throw new NotFoundException(
+ `Application "${applicationId}" not found in workspace "${workspace.id}"`,
+ );
+ }
+
+ const fileBuffer =
+ await this.sdkClientArchiveService.getClientModuleFromArchive({
+ workspaceId: workspace.id,
+ applicationUniversalIdentifier: application.universalIdentifier,
+ moduleName,
+ });
+
+ res.setHeader('Content-Type', 'application/javascript');
+ res.send(fileBuffer);
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/exceptions/sdk-client.exception.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/exceptions/sdk-client.exception.ts
new file mode 100644
index 00000000000..2f31ef2352f
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/exceptions/sdk-client.exception.ts
@@ -0,0 +1,42 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+import { assertUnreachable } from 'twenty-shared/utils';
+
+import { CustomException } from 'src/utils/custom-exception';
+
+export enum SdkClientExceptionCode {
+ ARCHIVE_NOT_FOUND = 'ARCHIVE_NOT_FOUND',
+ ARCHIVE_EXTRACTION_FAILED = 'ARCHIVE_EXTRACTION_FAILED',
+ FILE_NOT_FOUND_IN_ARCHIVE = 'FILE_NOT_FOUND_IN_ARCHIVE',
+ GENERATION_FAILED = 'GENERATION_FAILED',
+}
+
+const getSdkClientExceptionUserFriendlyMessage = (
+ code: SdkClientExceptionCode,
+) => {
+ switch (code) {
+ case SdkClientExceptionCode.ARCHIVE_NOT_FOUND:
+ return msg`SDK client archive not found. The SDK client may not have been generated for this application.`;
+ case SdkClientExceptionCode.ARCHIVE_EXTRACTION_FAILED:
+ return msg`Failed to extract SDK client archive.`;
+ case SdkClientExceptionCode.FILE_NOT_FOUND_IN_ARCHIVE:
+ return msg`File not found in SDK client archive.`;
+ case SdkClientExceptionCode.GENERATION_FAILED:
+ return msg`Failed to generate SDK client.`;
+ default:
+ assertUnreachable(code);
+ }
+};
+
+export class SdkClientException extends CustomException<SdkClientExceptionCode> {
+ constructor(
+ message: string,
+ code: SdkClientExceptionCode,
+ { userFriendlyMessage }: { userFriendlyMessage?: MessageDescriptor } = {},
+ ) {
+ super(message, code, {
+ userFriendlyMessage:
+ userFriendlyMessage ?? getSdkClientExceptionUserFriendlyMessage(code),
+ });
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-archive.service.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-archive.service.ts
new file mode 100644
index 00000000000..657c255732d
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-archive.service.ts
@@ -0,0 +1,166 @@
+import { Injectable } from '@nestjs/common';
+import { InjectRepository } from '@nestjs/typeorm';
+
+import { createWriteStream } from 'fs';
+import * as fs from 'fs/promises';
+import { join } from 'path';
+import { type Readable } from 'stream';
+import { pipeline } from 'stream/promises';
+
+import { FileFolder } from 'twenty-shared/types';
+import { Repository } from 'typeorm';
+
+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
+import { FileStorageService } from 'src/engine/core-modules/file-storage/file-storage.service';
+import {
+ FileStorageException,
+ FileStorageExceptionCode,
+} from 'src/engine/core-modules/file-storage/interfaces/file-storage-exception';
+import { TemporaryDirManager } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/temporary-dir-manager';
+import { type SdkModuleName } from 'src/engine/core-modules/sdk-client/constants/allowed-sdk-modules';
+import {
+ SdkClientException,
+ SdkClientExceptionCode,
+} from 'src/engine/core-modules/sdk-client/exceptions/sdk-client.exception';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { streamToBuffer } from 'src/utils/stream-to-buffer';
+
+const SDK_CLIENT_ARCHIVE_NAME = 'twenty-client-sdk.zip';
+
+@Injectable()
+export class SdkClientArchiveService {
+ constructor(
+ private readonly fileStorageService: FileStorageService,
+ @InjectRepository(ApplicationEntity)
+ private readonly applicationRepository: Repository<ApplicationEntity>,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ ) {}
+
+ async downloadAndExtractToPackage({
+ workspaceId,
+ applicationUniversalIdentifier,
+ targetPackagePath,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ targetPackagePath: string;
+ }): Promise<void> {
+ const temporaryDirManager = new TemporaryDirManager();
+
+ try {
+ const { sourceTemporaryDir } = await temporaryDirManager.init();
+ const archivePath = join(sourceTemporaryDir, SDK_CLIENT_ARCHIVE_NAME);
+
+ const archiveStream = await this.readArchiveStream({
+ workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ await pipeline(archiveStream, createWriteStream(archivePath));
+
+ await fs.rm(targetPackagePath, { recursive: true, force: true });
+ await fs.mkdir(targetPackagePath, { recursive: true });
+
+ const { default: unzipper } = await import('unzipper');
+ const directory = await unzipper.Open.file(archivePath);
+
+ await directory.extract({ path: targetPackagePath });
+ } finally {
+ await temporaryDirManager.clean();
+ }
+ }
+
+ async downloadArchiveBuffer({
+ workspaceId,
+ applicationUniversalIdentifier,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ }): Promise<Buffer> {
+ const archiveStream = await this.readArchiveStream({
+ workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ return streamToBuffer(archiveStream);
+ }
+
+ async getClientModuleFromArchive({
+ workspaceId,
+ applicationUniversalIdentifier,
+ moduleName,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ moduleName: SdkModuleName;
+ }): Promise<Buffer> {
+ const filePath = `dist/${moduleName}.mjs`;
+
+ const archiveBuffer = await this.downloadArchiveBuffer({
+ workspaceId,
+ applicationUniversalIdentifier,
+ });
+
+ const { default: unzipper } = await import('unzipper');
+ const directory = await unzipper.Open.buffer(archiveBuffer);
+
+ const entry = directory.files.find(
+ (file) => file.path === filePath || file.path === `./${filePath}`,
+ );
+
+ if (!entry) {
+ throw new SdkClientException(
+ `Module "${moduleName}" not found in SDK client archive for application "${applicationUniversalIdentifier}" in workspace "${workspaceId}"`,
+ SdkClientExceptionCode.FILE_NOT_FOUND_IN_ARCHIVE,
+ );
+ }
+
+ return entry.buffer();
+ }
+
+ async markSdkLayerFresh({
+ applicationId,
+ workspaceId,
+ }: {
+ applicationId: string;
+ workspaceId: string;
+ }): Promise<void> {
+ await this.applicationRepository.update(
+ { id: applicationId, workspaceId },
+ { isSdkLayerStale: false },
+ );
+
+ await this.workspaceCacheService.invalidateAndRecompute(workspaceId, [
+ 'flatApplicationMaps',
+ ]);
+ }
+
+ private async readArchiveStream({
+ workspaceId,
+ applicationUniversalIdentifier,
+ }: {
+ workspaceId: string;
+ applicationUniversalIdentifier: string;
+ }): Promise<Readable> {
+ try {
+ return await this.fileStorageService.readFile({
+ workspaceId,
+ applicationUniversalIdentifier,
+ fileFolder: FileFolder.GeneratedSdkClient,
+ resourcePath: SDK_CLIENT_ARCHIVE_NAME,
+ });
+ } catch (error) {
+ if (
+ error instanceof FileStorageException &&
+ error.code === FileStorageExceptionCode.FILE_NOT_FOUND
+ ) {
+ throw new SdkClientException(
+ `SDK client archive "${SDK_CLIENT_ARCHIVE_NAME}" not found for application "${applicationUniversalIdentifier}" in workspace "${workspaceId}".`,
+ SdkClientExceptionCode.ARCHIVE_NOT_FOUND,
+ );
+ }
+
+ throw error;
+ }
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-generation.service.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-generation.service.ts
new file mode 100644
index 00000000000..0392df0e774
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client-generation.service.ts
@@ -0,0 +1,131 @@
+import { Injectable, Logger } from '@nestjs/common';
+import { InjectRepository } from '@nestjs/typeorm';
+
+import * as fs from 'fs/promises';
+import { printSchema } from 'graphql';
+import path, { join } from 'path';
+
+import { replaceCoreClient } from 'twenty-client-sdk/generate';
+import { FileFolder } from 'twenty-shared/types';
+import { Repository } from 'typeorm';
+
+import { WorkspaceSchemaFactory } from 'src/engine/api/graphql/workspace-schema.factory';
+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
+import { FileStorageService } from 'src/engine/core-modules/file-storage/file-storage.service';
+import { createZipFile } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/create-zip-file';
+import { TemporaryDirManager } from 'src/engine/core-modules/logic-function/logic-function-drivers/utils/temporary-dir-manager';
+import { SDK_CLIENT_PACKAGE_DIRNAME } from 'src/engine/core-modules/sdk-client/constants/sdk-client-package-dirname';
+import {
+ SdkClientException,
+ SdkClientExceptionCode,
+} from 'src/engine/core-modules/sdk-client/exceptions/sdk-client.exception';
+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+
+const SDK_CLIENT_ARCHIVE_NAME = 'twenty-client-sdk.zip';
+
+@Injectable()
+export class SdkClientGenerationService {
+ private readonly logger = new Logger(SdkClientGenerationService.name);
+
+ constructor(
+ private readonly fileStorageService: FileStorageService,
+ @InjectRepository(ApplicationEntity)
+ private readonly applicationRepository: Repository<ApplicationEntity>,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly workspaceSchemaFactory: WorkspaceSchemaFactory,
+ ) {}
+
+ async generateSdkClientForApplication({
+ workspaceId,
+ applicationId,
+ applicationUniversalIdentifier,
+ }: {
+ workspaceId: string;
+ applicationId: string;
+ applicationUniversalIdentifier: string;
+ }): Promise<void> {
+ const graphqlSchema = await this.workspaceSchemaFactory.createGraphQLSchema(
+ { id: workspaceId } as WorkspaceEntity,
+ applicationId,
+ );
+
+ await this.generateAndStore({
+ workspaceId,
+ applicationId,
+ applicationUniversalIdentifier,
+ schema: printSchema(graphqlSchema),
+ });
+
+ this.logger.log(
+ `Generated SDK client for application ${applicationUniversalIdentifier}`,
+ );
+ }
+
+ private async generateAndStore({
+ workspaceId,
+ applicationId,
+ applicationUniversalIdentifier,
+ schema,
+ }: {
+ workspaceId: string;
+ applicationId: string;
+ applicationUniversalIdentifier: string;
+ schema: string;
+ }): Promise<void> {
+ const temporaryDirManager = new TemporaryDirManager();
+
+ try {
+ const { sourceTemporaryDir } = await temporaryDirManager.init();
+
+ const tempPackageRoot = join(sourceTemporaryDir, 'twenty-client-sdk');
+
+ await fs.cp(SDK_CLIENT_PACKAGE_DIRNAME, tempPackageRoot, {
+ recursive: true,
+ filter: (source) => {
+ const relativePath = path.relative(
+ SDK_CLIENT_PACKAGE_DIRNAME,
+ source,
+ );
+
+ return (
+ !relativePath.includes('node_modules') &&
+ !relativePath.startsWith('src')
+ );
+ },
+ });
+
+ await replaceCoreClient({ packageRoot: tempPackageRoot, schema });
+
+ const archivePath = join(sourceTemporaryDir, SDK_CLIENT_ARCHIVE_NAME);
+
+ await createZipFile(tempPackageRoot, archivePath);
+
+ await this.fileStorageService.writeFile({
+ workspaceId,
+ applicationUniversalIdentifier,
+ fileFolder: FileFolder.GeneratedSdkClient,
+ resourcePath: SDK_CLIENT_ARCHIVE_NAME,
+ sourceFile: await fs.readFile(archivePath),
+ mimeType: 'application/zip',
+ settings: { isTemporaryFile: false, toDelete: false },
+ });
+
+ await this.applicationRepository.update(
+ { id: applicationId, workspaceId },
+ { isSdkLayerStale: true },
+ );
+
+ await this.workspaceCacheService.invalidateAndRecompute(workspaceId, [
+ 'flatApplicationMaps',
+ ]);
+ } catch (error) {
+ throw new SdkClientException(
+ `Failed to generate SDK client for application "${applicationUniversalIdentifier}" in workspace "${workspaceId}": ${error instanceof Error ? error.message : String(error)}`,
+ SdkClientExceptionCode.GENERATION_FAILED,
+ );
+ } finally {
+ await temporaryDirManager.clean();
+ }
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client.module.ts b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client.module.ts
new file mode 100644
index 00000000000..cf36aac3d17
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/sdk-client/sdk-client.module.ts
@@ -0,0 +1,21 @@
+import { Module } from '@nestjs/common';
+import { TypeOrmModule } from '@nestjs/typeorm';
+import { CoreGraphQLApiModule } from 'src/engine/api/graphql/core-graphql-api.module';
+
+import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
+import { SdkClientController } from 'src/engine/core-modules/sdk-client/controllers/sdk-client.controller';
+import { SdkClientArchiveService } from 'src/engine/core-modules/sdk-client/sdk-client-archive.service';
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
+import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
+
+@Module({
+ imports: [
+ TypeOrmModule.forFeature([ApplicationEntity]),
+ WorkspaceCacheModule,
+ CoreGraphQLApiModule,
+ ],
+ controllers: [SdkClientController],
+ providers: [SdkClientGenerationService, SdkClientArchiveService],
+ exports: [SdkClientGenerationService, SdkClientArchiveService],
+})
+export class SdkClientModule {}
diff --git a/packages/twenty-server/src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.module.ts b/packages/twenty-server/src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.module.ts
index 47b3ac895f1..a940bad53cb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.module.ts
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { CalendarChannelMetadataService } from 'src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.service';
import { CalendarChannelEntity } from 'src/engine/metadata-modules/calendar-channel/entities/calendar-channel.entity';
@@ -13,7 +12,6 @@ import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permi
@Module({
imports: [
TypeOrmModule.forFeature([CalendarChannelEntity]),
- AuthModule,
PermissionsModule,
FeatureFlagModule,
ConnectedAccountMetadataModule,
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/command-menu-item.service.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/command-menu-item.service.ts
index fe9b24db36b..05eb27d8d58 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/command-menu-item.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/command-menu-item.service.ts
@@ -1,7 +1,6 @@
import { Injectable } from '@nestjs/common';
import { isDefined } from 'twenty-shared/utils';
-import { type QueryRunner } from 'typeorm';
import { ApplicationService } from 'src/engine/core-modules/application/application.service';
import {
@@ -88,7 +87,6 @@ export class CommandMenuItemService {
async create(
input: CreateCommandMenuItemInput,
workspaceId: string,
- queryRunner?: QueryRunner,
): Promise<CommandMenuItemDTO> {
const { flatObjectMetadataMaps, flatFrontComponentMaps } =
await this.workspaceManyOrAllFlatEntityMapsCacheService.getOrRecomputeManyOrAllFlatEntityMaps(
@@ -126,7 +124,6 @@ export class CommandMenuItemService {
isSystemBuild: false,
applicationUniversalIdentifier:
workspaceCustomFlatApplication.universalIdentifier,
- queryRunner,
},
);
@@ -156,7 +153,6 @@ export class CommandMenuItemService {
async update(
input: UpdateCommandMenuItemInput,
workspaceId: string,
- queryRunner?: QueryRunner,
): Promise<CommandMenuItemDTO> {
const { workspaceCustomFlatApplication } =
await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
@@ -195,7 +191,6 @@ export class CommandMenuItemService {
isSystemBuild: false,
applicationUniversalIdentifier:
workspaceCustomFlatApplication.universalIdentifier,
- queryRunner,
},
);
@@ -222,11 +217,7 @@ export class CommandMenuItemService {
);
}
- async delete(
- id: string,
- workspaceId: string,
- queryRunner?: QueryRunner,
- ): Promise<CommandMenuItemDTO> {
+ async delete(id: string, workspaceId: string): Promise<CommandMenuItemDTO> {
const { workspaceCustomFlatApplication } =
await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
{ workspaceId },
@@ -260,7 +251,6 @@ export class CommandMenuItemService {
isSystemBuild: false,
applicationUniversalIdentifier:
workspaceCustomFlatApplication.universalIdentifier,
- queryRunner,
},
);
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.module.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.module.ts
index 724a7959672..626d80173d4 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.module.ts
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { ConnectedAccountMetadataService } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.service';
import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
@@ -12,7 +11,6 @@ import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permi
@Module({
imports: [
TypeOrmModule.forFeature([ConnectedAccountEntity]),
- AuthModule,
PermissionsModule,
FeatureFlagModule,
],
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
index da709e742a4..cb91d8d9799 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
@@ -67,6 +67,7 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"builtComponentPath",
"componentName",
"isHeadless",
+ "usesSdkClient",
],
"propertiesToStringify": [],
},
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
index 061aa367ee8..494014d56e6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
@@ -1405,6 +1405,11 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: undefined,
},
+ usesSdkClient: {
+ toCompare: true,
+ toStringify: false,
+ universalProperty: undefined,
+ },
createdAt: {
toCompare: false,
toStringify: false,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts
index aeabdc4c42c..310f771f077 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts
@@ -43,6 +43,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {
createdAt: new Date(),
updatedAt: new Date(),
deletedAt: null,
+ isSdkLayerStale: true,
};
const flatObjectMetadataMaps = [
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts
index 47089756a3d..46051c13004 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/__tests__/generate-morph-or-relation-flat-field-metadata-pair.spec.ts
@@ -38,6 +38,7 @@ const MOCK_FLAT_APPLICATION: FlatApplication = {
createdAt: new Date(),
updatedAt: new Date(),
deletedAt: null,
+ isSdkLayerStale: true,
};
type GenerateMorphOrRelationFlatFieldMetadataPairTestInput = Parameters<
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-create-front-component-input-to-flat-front-component-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-create-front-component-input-to-flat-front-component-to-create.util.ts
index 5e9d2669ad5..b2061bea394 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-create-front-component-input-to-flat-front-component-to-create.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-create-front-component-input-to-flat-front-component-to-create.util.ts
@@ -34,6 +34,7 @@ export const fromCreateFrontComponentInputToFlatFrontComponentToCreate = ({
componentName: createFrontComponentInput.componentName,
builtComponentChecksum: createFrontComponentInput.builtComponentChecksum,
isHeadless: false,
+ usesSdkClient: false,
workspaceId,
createdAt: now,
updatedAt: now,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-flat-front-component-to-front-component-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-flat-front-component-to-front-component-dto.util.ts
index 0d4f1e1dfce..1c7d3d8dcbf 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-flat-front-component-to-front-component-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-flat-front-component-to-front-component-dto.util.ts
@@ -21,6 +21,7 @@ export const fromFlatFrontComponentToFrontComponentDto = (
workspaceId: flatFrontComponent.workspaceId,
applicationId: flatFrontComponent.applicationId,
isHeadless: flatFrontComponent.isHeadless,
+ usesSdkClient: flatFrontComponent.usesSdkClient,
createdAt: new Date(flatFrontComponent.createdAt),
updatedAt: new Date(flatFrontComponent.updatedAt),
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-front-component-entity-to-flat-front-component.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-front-component-entity-to-flat-front-component.util.ts
index 04ae15c704d..bd49aaaeae6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-front-component-entity-to-flat-front-component.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-front-component/utils/from-front-component-entity-to-flat-front-component.util.ts
@@ -32,6 +32,7 @@ export const fromFrontComponentEntityToFlatFrontComponent = ({
componentName: frontComponentEntity.componentName,
builtComponentChecksum: frontComponentEntity.builtComponentChecksum,
isHeadless: frontComponentEntity.isHeadless,
+ usesSdkClient: frontComponentEntity.usesSdkClient,
workspaceId: frontComponentEntity.workspaceId,
universalIdentifier: frontComponentEntity.universalIdentifier,
applicationId: frontComponentEntity.applicationId,
diff --git a/packages/twenty-server/src/engine/metadata-modules/front-component/dtos/front-component.dto.ts b/packages/twenty-server/src/engine/metadata-modules/front-component/dtos/front-component.dto.ts
index a9a28e9da20..5b2377aea6c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/front-component/dtos/front-component.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/front-component/dtos/front-component.dto.ts
@@ -68,6 +68,10 @@ export class FrontComponentDTO {
@Field()
isHeadless: boolean;
+ @IsBoolean()
+ @Field()
+ usesSdkClient: boolean;
+
@Field(() => ApplicationTokenPairDTO, { nullable: true })
applicationTokenPair?: ApplicationTokenPairDTO;
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/front-component/entities/front-component.entity.ts b/packages/twenty-server/src/engine/metadata-modules/front-component/entities/front-component.entity.ts
index fb2ce1a1e42..9385e63198a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/front-component/entities/front-component.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/front-component/entities/front-component.entity.ts
@@ -37,6 +37,9 @@ export class FrontComponentEntity
@Column({ default: false })
isHeadless: boolean;
+ @Column({ default: false })
+ usesSdkClient: boolean;
+
@CreateDateColumn({ type: 'timestamptz' })
createdAt: Date;
diff --git a/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.service.ts b/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.service.ts
index 36fdd6c4e9e..9961ae33abc 100644
--- a/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/front-component/front-component.service.ts
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
-import { type Readable } from 'stream';
+import { Readable } from 'stream';
import { FileFolder } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
diff --git a/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.module.ts b/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.module.ts
index 2b58d14c8d7..59129a0ca70 100644
--- a/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.module.ts
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { ConnectedAccountMetadataModule } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.module';
import { MessageChannelEntity } from 'src/engine/metadata-modules/message-channel/entities/message-channel.entity';
@@ -15,7 +14,6 @@ import { MessagingImportManagerModule } from 'src/modules/messaging/message-impo
@Module({
imports: [
TypeOrmModule.forFeature([MessageChannelEntity]),
- AuthModule,
PermissionsModule,
FeatureFlagModule,
ConnectedAccountMetadataModule,
diff --git a/packages/twenty-server/src/engine/metadata-modules/message-folder/message-folder-metadata.module.ts b/packages/twenty-server/src/engine/metadata-modules/message-folder/message-folder-metadata.module.ts
index 46369ac9c03..784281b9bb0 100644
--- a/packages/twenty-server/src/engine/metadata-modules/message-folder/message-folder-metadata.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/message-folder/message-folder-metadata.module.ts
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
import { ConnectedAccountMetadataModule } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.module';
import { MessageChannelMetadataModule } from 'src/engine/metadata-modules/message-channel/message-channel-metadata.module';
@@ -14,7 +13,6 @@ import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permi
@Module({
imports: [
TypeOrmModule.forFeature([MessageFolderEntity]),
- AuthModule,
PermissionsModule,
FeatureFlagModule,
ConnectedAccountMetadataModule,
diff --git a/packages/twenty-server/src/engine/metadata-modules/webhook/webhook.module.ts b/packages/twenty-server/src/engine/metadata-modules/webhook/webhook.module.ts
index d5f180da968..99d5f2f1892 100644
--- a/packages/twenty-server/src/engine/metadata-modules/webhook/webhook.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/webhook/webhook.module.ts
@@ -3,7 +3,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { ApplicationEntity } from 'src/engine/core-modules/application/application.entity';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
-import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
+import { TokenModule } from 'src/engine/core-modules/auth/token/token.module';
import { WorkspaceManyOrAllFlatEntityMapsCacheModule } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.module';
import { FlatWebhookModule } from 'src/engine/metadata-modules/flat-webhook/flat-webhook.module';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
@@ -23,7 +23,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace
WorkspaceMigrationModule,
WorkspaceCacheStorageModule,
ApplicationModule,
- AuthModule,
+ TokenModule,
PermissionsModule,
FlatWebhookModule,
],
diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/dev-seeder.module.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/dev-seeder.module.ts
index 817d3468edf..e1001bb1b35 100644
--- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/dev-seeder.module.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/dev-seeder.module.ts
@@ -6,6 +6,7 @@ import { ApiKeyModule } from 'src/engine/core-modules/api-key/api-key.module';
import { ApplicationRegistrationModule } from 'src/engine/core-modules/application/application-registration/application-registration.module';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { FileStorageModule } from 'src/engine/core-modules/file-storage/file-storage.module';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
@@ -50,6 +51,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace
WorkspaceCacheModule,
WorkspaceMigrationModule,
TwentyStandardApplicationModule,
+ SdkClientModule,
],
exports: [DevSeederService],
providers: [
diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/services/dev-seeder.service.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/services/dev-seeder.service.ts
index 6f85022bd5f..59fe7f9794c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/services/dev-seeder.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/services/dev-seeder.service.ts
@@ -1,12 +1,13 @@
-import { Injectable } from '@nestjs/common';
+import { Injectable, Logger } from '@nestjs/common';
import { InjectDataSource } from '@nestjs/typeorm';
import { ALL_METADATA_NAME } from 'twenty-shared/metadata';
-import { DataSource } from 'typeorm';
import { FeatureFlagKey } from 'twenty-shared/types';
+import { DataSource } from 'typeorm';
import { ApplicationRegistrationService } from 'src/engine/core-modules/application/application-registration/application-registration.service';
import { ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service';
import { getMetadataFlatEntityMapsKey } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-flat-entity-maps-key.util';
@@ -27,6 +28,8 @@ import { TwentyStandardApplicationService } from 'src/engine/workspace-manager/t
@Injectable()
export class DevSeederService {
+ private readonly logger = new Logger(DevSeederService.name);
+
constructor(
private readonly workspaceCacheStorageService: WorkspaceCacheStorageService,
private readonly twentyConfigService: TwentyConfigService,
@@ -39,6 +42,7 @@ export class DevSeederService {
private readonly applicationService: ApplicationService,
private readonly applicationRegistrationService: ApplicationRegistrationService,
private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly sdkClientGenerationService: SdkClientGenerationService,
@InjectDataSource()
private readonly coreDataSource: DataSource,
) {}
@@ -90,12 +94,26 @@ export class DevSeederService {
},
);
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: twentyStandardFlatApplication.id,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ });
+
await this.devSeederMetadataService.seed({
dataSourceMetadata,
workspaceId,
light,
});
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: workspaceCustomFlatApplication.id,
+ applicationUniversalIdentifier:
+ workspaceCustomFlatApplication.universalIdentifier,
+ });
+
await this.devSeederMetadataService.seedRelations({
workspaceId,
light,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-manager.module.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-manager.module.ts
index 595133b3059..2eba9f24ad8 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-manager.module.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-manager.module.ts
@@ -3,18 +3,19 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
+import { SdkClientModule } from 'src/engine/core-modules/sdk-client/sdk-client.module';
import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { AiAgentModule } from 'src/engine/metadata-modules/ai/ai-agent/ai-agent.module';
import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
import { WorkspaceManyOrAllFlatEntityMapsCacheModule } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.module';
+import { LogicFunctionEntity } from 'src/engine/metadata-modules/logic-function/logic-function.entity';
import { ObjectMetadataModule } from 'src/engine/metadata-modules/object-metadata/object-metadata.module';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
import { RoleTargetEntity } from 'src/engine/metadata-modules/role-target/role-target.entity';
import { RoleEntity } from 'src/engine/metadata-modules/role/role.entity';
import { RoleModule } from 'src/engine/metadata-modules/role/role.module';
-import { LogicFunctionEntity } from 'src/engine/metadata-modules/logic-function/logic-function.entity';
import { UserRoleModule } from 'src/engine/metadata-modules/user-role/user-role.module';
import { WorkspaceDataSourceModule } from 'src/engine/workspace-datasource/workspace-datasource.module';
import { DevSeederModule } from 'src/engine/workspace-manager/dev-seeder/dev-seeder.module';
@@ -39,6 +40,7 @@ import { WorkspaceManagerService } from './workspace-manager.service';
RoleModule,
UserRoleModule,
ApplicationModule,
+ SdkClientModule,
TypeOrmModule.forFeature([
FieldMetadataEntity,
RoleTargetEntity,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-manager.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-manager.service.ts
index 19d102407a9..23bd6c23c69 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-manager.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-manager.service.ts
@@ -5,6 +5,7 @@ import { Repository } from 'typeorm';
import { ApplicationService } from 'src/engine/core-modules/application/application.service';
import { FlatApplication } from 'src/engine/core-modules/application/types/flat-application.type';
+import { SdkClientGenerationService } from 'src/engine/core-modules/sdk-client/sdk-client-generation.service';
import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { DataSourceService } from 'src/engine/metadata-modules/data-source/data-source.service';
@@ -32,6 +33,7 @@ export class WorkspaceManagerService {
@InjectRepository(RoleEntity)
private readonly roleRepository: Repository<RoleEntity>,
private readonly applicationService: ApplicationService,
+ private readonly sdkClientGenerationService: SdkClientGenerationService,
) {}
public async init({
@@ -77,13 +79,27 @@ export class WorkspaceManagerService {
`Metadata creation took ${dataSourceMetadataCreationEnd - dataSourceMetadataCreationStart}ms`,
);
- const { workspaceCustomFlatApplication } =
+ const { workspaceCustomFlatApplication, twentyStandardFlatApplication } =
await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
{
workspaceId,
},
);
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: twentyStandardFlatApplication.id,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ });
+
+ await this.sdkClientGenerationService.generateSdkClientForApplication({
+ workspaceId,
+ applicationId: workspaceCustomFlatApplication.id,
+ applicationUniversalIdentifier:
+ workspaceCustomFlatApplication.universalIdentifier,
+ });
+
await this.setupDefaultRoles({
workspaceId,
userId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts
index ec151af84e9..ea258c054d5 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts
@@ -5,11 +5,9 @@ import {
WorkspaceMigrationV2ExceptionCode,
} from 'twenty-shared/metadata';
import { isDefined } from 'twenty-shared/utils';
-import { type QueryRunner } from 'typeorm';
import { FlatApplicationCacheMaps } from 'src/engine/core-modules/application/types/flat-application-cache-maps.type';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
-import { MetadataEventEmitter } from 'src/engine/subscriptions/metadata-event/metadata-event-emitter';
import { ALL_MANY_TO_ONE_METADATA_RELATIONS } from 'src/engine/metadata-modules/flat-entity/constant/all-many-to-one-metadata-relations.constant';
import { createEmptyFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/constant/create-empty-flat-entity-maps.constant';
import {
@@ -23,6 +21,7 @@ import { MetadataUniversalFlatEntity } from 'src/engine/metadata-modules/flat-en
import { getMetadataFlatEntityMapsKey } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-flat-entity-maps-key.util';
import { getMetadataRelatedMetadataNamesForValidation } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-related-metadata-names-for-validation.util';
import { getSubFlatEntityMapsByApplicationIdsOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/get-sub-flat-entity-maps-by-application-ids-or-throw.util';
+import { MetadataEventEmitter } from 'src/engine/subscriptions/metadata-event/metadata-event-emitter';
import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
import { TWENTY_STANDARD_APPLICATION } from 'src/engine/workspace-manager/twenty-standard-application/constants/twenty-standard-applications';
import { WorkspaceMigrationV2Exception } from 'src/engine/workspace-manager/workspace-migration.exception';
@@ -359,17 +358,14 @@ export class WorkspaceMigrationValidateBuildAndRunService {
public async validateBuildAndRunWorkspaceMigrationFromTo(
args: WorkspaceMigrationOrchestratorBuildArgs & {
idByUniversalIdentifierByMetadataName?: IdByUniversalIdentifierByMetadataName;
- queryRunner?: QueryRunner;
},
): Promise<
| WorkspaceMigrationOrchestratorFailedResult
- | WorkspaceMigrationOrchestratorSuccessfulResult
+ | (WorkspaceMigrationOrchestratorSuccessfulResult & {
+ hasSchemaMetadataChanged: boolean;
+ })
> {
- const {
- idByUniversalIdentifierByMetadataName,
- queryRunner: externalQueryRunner,
- ...buildArgs
- } = args;
+ const { idByUniversalIdentifierByMetadataName, ...buildArgs } = args;
const validateAndBuildResult =
await this.workspaceMigrationBuildOrchestratorService
@@ -397,24 +393,29 @@ export class WorkspaceMigrationValidateBuildAndRunService {
})
: validateAndBuildResult.workspaceMigration;
- if (workspaceMigration.actions.length > 0) {
- const { metadataEvents } = await this.workspaceMigrationRunnerService.run(
- {
- workspaceId: args.workspaceId,
- workspaceMigration,
- queryRunner: externalQueryRunner,
- },
- );
+ if (workspaceMigration.actions.length === 0) {
+ return {
+ status: 'success',
+ workspaceMigration,
+ hasSchemaMetadataChanged: false,
+ };
+ }
- this.metadataEventEmitter.emitMetadataEvents({
- metadataEvents,
+ const { hasSchemaMetadataChanged, metadataEvents } =
+ await this.workspaceMigrationRunnerService.run({
workspaceId: args.workspaceId,
+ workspaceMigration,
});
- }
+
+ this.metadataEventEmitter.emitMetadataEvents({
+ metadataEvents: metadataEvents,
+ workspaceId: args.workspaceId,
+ });
return {
status: 'success',
workspaceMigration,
+ hasSchemaMetadataChanged,
};
}
@@ -423,10 +424,7 @@ export class WorkspaceMigrationValidateBuildAndRunService {
workspaceId,
isSystemBuild = false,
applicationUniversalIdentifier,
- queryRunner,
- }: ValidateBuildAndRunWorkspaceMigrationFromMatriceArgs & {
- queryRunner?: QueryRunner;
- }): Promise<
+ }: ValidateBuildAndRunWorkspaceMigrationFromMatriceArgs): Promise<
| WorkspaceMigrationOrchestratorFailedResult
| WorkspaceMigrationOrchestratorSuccessfulResult
> {
@@ -453,7 +451,6 @@ export class WorkspaceMigrationValidateBuildAndRunService {
dependencyAllFlatEntityMaps,
additionalCacheDataMaps,
idByUniversalIdentifierByMetadataName,
- queryRunner,
});
}
}
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
index 1b03e34f64a..510d1079ce2 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
@@ -3,7 +3,7 @@ import { InjectDataSource } from '@nestjs/typeorm';
import { type AllMetadataName } from 'twenty-shared/metadata';
import { isDefined } from 'twenty-shared/utils';
-import { DataSource, type QueryRunner } from 'typeorm';
+import { DataSource } from 'typeorm';
import { LoggerService } from 'src/engine/core-modules/logger/logger.service';
import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';
@@ -154,21 +154,18 @@ export class WorkspaceMigrationRunnerService {
run = async ({
workspaceMigration: { actions, applicationUniversalIdentifier },
workspaceId,
- queryRunner: externalQueryRunner,
}: {
workspaceMigration: WorkspaceMigration;
workspaceId: string;
- queryRunner?: QueryRunner;
}): Promise<{
allFlatEntityMaps: AllFlatEntityMaps;
metadataEvents: MetadataEvent[];
+ hasSchemaMetadataChanged: boolean;
}> => {
this.logger.time('Runner', 'Total execution');
this.logger.time('Runner', 'Initial cache retrieval');
- const queryRunner =
- externalQueryRunner ?? this.coreDataSource.createQueryRunner();
- const isTransactionAlreadyActive = queryRunner.isTransactionActive;
+ const queryRunner = this.coreDataSource.createQueryRunner();
const actionMetadataNames = [
...new Set(actions.flatMap((action) => action.metadataName)),
@@ -219,10 +216,8 @@ export class WorkspaceMigrationRunnerService {
this.logger.time('Runner', 'Transaction execution');
- if (!isTransactionAlreadyActive) {
- await queryRunner.connect();
- await queryRunner.startTransaction();
- }
+ await queryRunner.connect();
+ await queryRunner.startTransaction();
try {
const allMetadataEvents: MetadataEvent[] = [];
@@ -250,9 +245,7 @@ export class WorkspaceMigrationRunnerService {
allMetadataEvents.push(...metadataEvents);
}
- if (!isTransactionAlreadyActive) {
- await queryRunner.commitTransaction();
- }
+ await queryRunner.commitTransaction();
this.logger.timeEnd('Runner', 'Transaction execution');
@@ -261,18 +254,24 @@ export class WorkspaceMigrationRunnerService {
workspaceId,
});
+ const hasSchemaMetadataChanged =
+ allFlatEntityMapsKeys.includes('flatObjectMetadataMaps') ||
+ allFlatEntityMapsKeys.includes('flatFieldMetadataMaps');
+
this.logger.timeEnd('Runner', 'Total execution');
- return { allFlatEntityMaps, metadataEvents: allMetadataEvents };
+ return {
+ allFlatEntityMaps,
+ metadataEvents: allMetadataEvents,
+ hasSchemaMetadataChanged,
+ };
} catch (error) {
- if (!isTransactionAlreadyActive && queryRunner.isTransactionActive) {
- await queryRunner.rollbackTransaction().catch((rollbackError) =>
- // oxlint-disable-next-line no-console
- console.trace(
- `Failed to rollback transaction: ${rollbackError.message}`,
- ),
- );
- }
+ await queryRunner.rollbackTransaction().catch((rollbackError) =>
+ // oxlint-disable-next-line no-console
+ console.trace(
+ `Failed to rollback transaction: ${rollbackError.message}`,
+ ),
+ );
const invertedActions = [...actions].reverse();
@@ -299,9 +298,7 @@ export class WorkspaceMigrationRunnerService {
code: WorkspaceMigrationRunnerExceptionCode.INTERNAL_SERVER_ERROR,
});
} finally {
- if (!isTransactionAlreadyActive) {
- await queryRunner.release();
- }
+ await queryRunner.release();
}
};
}
diff --git a/packages/twenty-server/src/modules/workspace-member/query-hooks/workspace-member-query-hook.module.ts b/packages/twenty-server/src/modules/workspace-member/query-hooks/workspace-member-query-hook.module.ts
index 2bfb8d5c8a1..84165259e12 100644
--- a/packages/twenty-server/src/modules/workspace-member/query-hooks/workspace-member-query-hook.module.ts
+++ b/packages/twenty-server/src/modules/workspace-member/query-hooks/workspace-member-query-hook.module.ts
@@ -5,7 +5,6 @@ import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-
import { OnboardingModule } from 'src/engine/core-modules/onboarding/onboarding.module';
import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { UserWorkspaceModule } from 'src/engine/core-modules/user-workspace/user-workspace.module';
-import { UserModule } from 'src/engine/core-modules/user/user.module';
import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
import { WorkspaceMemberCreateManyPreQueryHook } from 'src/modules/workspace-member/query-hooks/workspace-member-create-many.pre-query.hook';
import { WorkspaceMemberCreateOnePreQueryHook } from 'src/modules/workspace-member/query-hooks/workspace-member-create-one.pre-query.hook';
@@ -41,7 +40,6 @@ import { WorkspaceMemberUpdateOnePreQueryHook } from 'src/modules/workspace-memb
PermissionsModule,
UserWorkspaceModule,
TypeOrmModule.forFeature([UserWorkspaceEntity]),
- UserModule,
],
})
export class WorkspaceMemberQueryHookModule {}
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/app-distribution.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/app-distribution.integration-spec.ts
index 50b49fdf45d..f3972e67076 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/app-distribution.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/app-distribution.integration-spec.ts
@@ -57,7 +57,6 @@ const createValidManifest = (universalIdentifier: string) =>
applicationVariables: {},
packageJsonChecksum: null,
yarnLockChecksum: null,
- apiClientChecksum: null,
},
roles: [],
skills: [],
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/utils/build-base-manifest.util.ts b/packages/twenty-server/test/integration/metadata/suites/application/utils/build-base-manifest.util.ts
index f971ca79786..eb1b8a2ff95 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/utils/build-base-manifest.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/utils/build-base-manifest.util.ts
@@ -18,7 +18,6 @@ export const buildBaseManifest = ({
applicationVariables: {},
packageJsonChecksum: null,
yarnLockChecksum: null,
- apiClientChecksum: null,
},
roles: [
{
diff --git a/packages/twenty-shared/src/application/applicationType.ts b/packages/twenty-shared/src/application/applicationType.ts
index 49e8e4d5c2c..e30946bf604 100644
--- a/packages/twenty-shared/src/application/applicationType.ts
+++ b/packages/twenty-shared/src/application/applicationType.ts
@@ -22,5 +22,4 @@ export type ApplicationManifest = SyncableEntityOptions & {
settingsCustomTabFrontComponentUniversalIdentifier?: string;
packageJsonChecksum: string | null;
yarnLockChecksum: string | null;
- apiClientChecksum: string | null;
};
diff --git a/packages/twenty-shared/src/application/constants/ApiClientDirectory.ts b/packages/twenty-shared/src/application/constants/ApiClientDirectory.ts
deleted file mode 100644
index 4282f67dd70..00000000000
--- a/packages/twenty-shared/src/application/constants/ApiClientDirectory.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const API_CLIENT_DIR = 'api-client';
diff --git a/packages/twenty-shared/src/application/frontComponentManifestType.ts b/packages/twenty-shared/src/application/frontComponentManifestType.ts
index 2a8093ab8dd..6cb75ca3571 100644
--- a/packages/twenty-shared/src/application/frontComponentManifestType.ts
+++ b/packages/twenty-shared/src/application/frontComponentManifestType.ts
@@ -25,5 +25,6 @@ export type FrontComponentManifest = {
builtComponentChecksum: string;
componentName: string;
isHeadless?: boolean;
+ usesSdkClient?: boolean;
command?: FrontComponentCommandManifest;
};
diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.ts
index 77837884484..e8f2c026db0 100644
--- a/packages/twenty-shared/src/application/index.ts
+++ b/packages/twenty-shared/src/application/index.ts
@@ -11,7 +11,6 @@ export type { AgentManifest } from './agentManifestType';
export type { ApplicationManifest } from './applicationType';
export type { ApplicationVariables } from './applicationVariablesType';
export type { AssetManifest } from './assetManifestType';
-export { API_CLIENT_DIR } from './constants/ApiClientDirectory';
export { ASSETS_DIR } from './constants/AssetDirectory';
export { DEFAULT_API_KEY_NAME } from './constants/DefaultApiKeyName';
export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';
diff --git a/packages/twenty-shared/src/types/FileFolder.ts b/packages/twenty-shared/src/types/FileFolder.ts
index ef78ba5215a..361e259028c 100644
--- a/packages/twenty-shared/src/types/FileFolder.ts
+++ b/packages/twenty-shared/src/types/FileFolder.ts
@@ -14,4 +14,5 @@ export enum FileFolder {
Dependencies = 'dependencies',
Workflow = 'workflow',
AppTarball = 'app-tarball',
+ GeneratedSdkClient = 'generated-sdk-client',
}
diff --git a/yarn.lock b/yarn.lock
index 51303411b37..65d3c71377f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -56428,6 +56428,23 @@ __metadata:
languageName: unknown
linkType: soft
+"twenty-client-sdk@workspace:*, twenty-client-sdk@workspace:packages/twenty-client-sdk":
+ version: 0.0.0-use.local
+ resolution: "twenty-client-sdk@workspace:packages/twenty-client-sdk"
+ dependencies:
+ "@genql/cli": "npm:^3.0.3"
+ "@genql/runtime": "npm:^2.10.0"
+ esbuild: "npm:^0.25.0"
+ graphql: "npm:^16.8.1"
+ twenty-shared: "workspace:*"
+ typescript: "npm:^5.9.2"
+ vite: "npm:^7.0.0"
+ vite-plugin-dts: "npm:^4.5.4"
+ vite-tsconfig-paths: "npm:^4.2.1"
+ vitest: "npm:^4.0.18"
+ languageName: unknown
+ linkType: soft
+
"twenty-docs@workspace:packages/twenty-docs":
version: 0.0.0-use.local
resolution: "twenty-docs@workspace:packages/twenty-docs"
@@ -56630,6 +56647,7 @@ __metadata:
tinyglobby: "npm:^0.2.15"
ts-morph: "npm:^25.0.0"
tsx: "npm:^4.7.0"
+ twenty-client-sdk: "workspace:*"
twenty-shared: "workspace:*"
twenty-ui: "workspace:*"
typescript: "npm:^5.9.2"
@@ -56851,6 +56869,7 @@ __metadata:
tsconfig-paths: "npm:^4.2.0"
tsdav: "npm:^2.1.5"
tslib: "npm:2.8.1"
+ twenty-client-sdk: "workspace:*"
twenty-emails: "workspace:*"
twenty-shared: "workspace:*"
type-fest: "npm:4.10.1"