Skip to content

The open alternative to Salesforce, designed for AI.

Improve linear app (#20453)

martmullc4e897a7b5b7
diff --git a/packages/twenty-apps/internal/twenty-linear/.yarn/install-state.gz b/packages/twenty-apps/internal/twenty-linear/.yarn/install-state.gz
new file mode 100644
index 00000000000..3f53467b6de
Binary files /dev/null and b/packages/twenty-apps/internal/twenty-linear/.yarn/install-state.gz differ
diff --git a/packages/twenty-apps/internal/twenty-linear/package.json b/packages/twenty-apps/internal/twenty-linear/package.json
index 93c83dade04..7cd91c2bc30 100644
--- a/packages/twenty-apps/internal/twenty-linear/package.json
+++ b/packages/twenty-apps/internal/twenty-linear/package.json
@@ -1,6 +1,6 @@
{
"name": "twenty-linear",
- "version": "0.1.5",
+ "version": "0.1.6",
"description": "Linear integration for Twenty. Connect a user's Linear account and create issues from logic functions.",
"license": "MIT",
"engines": {
@@ -20,7 +20,7 @@
"test:watch": "vitest --config vitest.unit.config.ts"
},
"dependencies": {
- "twenty-sdk": "2.3.0"
+ "twenty-sdk": "2.3.1"
},
"devDependencies": {
"@types/node": "^24.7.2",
diff --git a/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-1.png b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-1.png
new file mode 100644
index 00000000000..f19b12e367c
Binary files /dev/null and b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-1.png differ
diff --git a/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-2.png b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-2.png
new file mode 100644
index 00000000000..f466b85b9e2
Binary files /dev/null and b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-2.png differ
diff --git a/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-3.png b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-3.png
new file mode 100644
index 00000000000..2453b0e6c1e
Binary files /dev/null and b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-3.png differ
diff --git a/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-4.png b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-4.png
new file mode 100644
index 00000000000..8b04dfa1c18
Binary files /dev/null and b/packages/twenty-apps/internal/twenty-linear/public/gallery/command-menu-item-4.png differ
diff --git a/packages/twenty-apps/internal/twenty-linear/src/application.config.ts b/packages/twenty-apps/internal/twenty-linear/src/application.config.ts
index 8e72d387f23..7873a88535c 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/application.config.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/application.config.ts
@@ -1,9 +1,6 @@
import { defineApplication } from 'twenty-sdk/define';
-
-import {
- APPLICATION_UNIVERSAL_IDENTIFIER,
- DEFAULT_ROLE_UNIVERSAL_IDENTIFIER,
-} from 'src/constants/universal-identifiers';
+import { ABOUT_DESCRIPTION } from './constants/ABOUT_DESCRIPTION.md';
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
export default defineApplication({
universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
@@ -11,10 +8,19 @@ export default defineApplication({
description:
'Connect Linear to Twenty. Each workspace member connects their own Linear account; logic functions can then create issues and read team data on their behalf.',
logoUrl: 'public/linear-logomark.svg',
- defaultRoleUniversalIdentifier: DEFAULT_ROLE_UNIVERSAL_IDENTIFIER,
- // OAuth client_id/secret live at the registration level (one OAuth app per
- // Twenty server, configured by the server admin) — not per-workspace —
- // so they're declared as serverVariables, not applicationVariables.
+ aboutDescription: ABOUT_DESCRIPTION,
+ applicationVariables: undefined,
+ author: 'Twenty',
+ category: 'Product management',
+ emailSupport: '[email protected]',
+ screenshots: [
+ 'public/gallery/command-menu-item-1.png',
+ 'public/gallery/command-menu-item-2.png',
+ 'public/gallery/command-menu-item-3.png',
+ 'public/gallery/command-menu-item-4.png',
+ ],
+ termsUrl: 'https://github.com/twentyhq/twenty?tab=License-1-ov-file#readme',
+ websiteUrl: 'https://www.twenty.com',
serverVariables: {
LINEAR_CLIENT_ID: {
description:
diff --git a/packages/twenty-apps/internal/twenty-linear/src/command-menu-items/create-linear-issue.command-menu-item.ts b/packages/twenty-apps/internal/twenty-linear/src/command-menu-items/create-linear-issue.command-menu-item.ts
new file mode 100644
index 00000000000..1ca3f75e540
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/command-menu-items/create-linear-issue.command-menu-item.ts
@@ -0,0 +1,17 @@
+import { defineCommandMenuItem } from 'twenty-sdk/define';
+
+import {
+ CREATE_ISSUE_COMMAND_UNIVERSAL_IDENTIFIER,
+ CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+} from 'src/constants/universal-identifiers';
+
+export default defineCommandMenuItem({
+ universalIdentifier: CREATE_ISSUE_COMMAND_UNIVERSAL_IDENTIFIER,
+ label: 'Create Linear issue',
+ shortLabel: 'Linear issue',
+ icon: 'IconPlaylistAdd',
+ isPinned: false,
+ availabilityType: 'GLOBAL',
+ frontComponentUniversalIdentifier:
+ CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/components/create-issue-form.front-component.tsx b/packages/twenty-apps/internal/twenty-linear/src/components/create-issue-form.front-component.tsx
new file mode 100644
index 00000000000..84fbdaa387c
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/components/create-issue-form.front-component.tsx
@@ -0,0 +1,1015 @@
+import { useCallback, useEffect, useState } from 'react';
+import { defineFrontComponent } from 'twenty-sdk/define';
+import {
+ closeSidePanel,
+ enqueueSnackbar,
+ unmountFrontComponent,
+} from 'twenty-sdk/front-component';
+
+import { CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+type LinearTeam = {
+ id: string;
+ name: string;
+ key: string;
+};
+
+type LinearWorkflowState = {
+ id: string;
+ name: string;
+ type: string;
+ position: number;
+};
+
+type LinearMember = {
+ id: string;
+ name: string;
+ displayName: string;
+};
+
+type LinearProject = {
+ id: string;
+ name: string;
+};
+
+type LinearLabel = {
+ id: string;
+ name: string;
+ color: string;
+};
+
+type LinearCycle = {
+ id: string;
+ name: string | null;
+ number: number;
+ startsAt: string;
+ endsAt: string;
+};
+
+type IssueOptions = {
+ states: LinearWorkflowState[];
+ members: LinearMember[];
+ projects: LinearProject[];
+ labels: LinearLabel[];
+ cycles: LinearCycle[];
+ estimationType: string;
+ estimationAllowZero: boolean;
+};
+
+type CreatedIssue = {
+ id: string;
+ identifier: string;
+ title: string;
+ url: string;
+};
+
+const PRIORITY_OPTIONS = [
+ { value: 0, label: 'No priority' },
+ { value: 1, label: 'Urgent' },
+ { value: 2, label: 'High' },
+ { value: 3, label: 'Medium' },
+ { value: 4, label: 'Low' },
+];
+
+const ESTIMATE_SCALES: Record<string, { value: number; label: string }[]> = {
+ exponential: [
+ { value: 1, label: '1' },
+ { value: 2, label: '2' },
+ { value: 4, label: '4' },
+ { value: 8, label: '8' },
+ { value: 16, label: '16' },
+ { value: 32, label: '32' },
+ ],
+ fibonacci: [
+ { value: 1, label: '1' },
+ { value: 2, label: '2' },
+ { value: 3, label: '3' },
+ { value: 5, label: '5' },
+ { value: 8, label: '8' },
+ { value: 13, label: '13' },
+ { value: 21, label: '21' },
+ ],
+ linear: [
+ { value: 1, label: '1' },
+ { value: 2, label: '2' },
+ { value: 3, label: '3' },
+ { value: 4, label: '4' },
+ { value: 5, label: '5' },
+ { value: 6, label: '6' },
+ { value: 7, label: '7' },
+ { value: 8, label: '8' },
+ { value: 9, label: '9' },
+ { value: 10, label: '10' },
+ ],
+ tShirt: [
+ { value: 1, label: 'XS' },
+ { value: 2, label: 'S' },
+ { value: 3, label: 'M' },
+ { value: 5, label: 'L' },
+ { value: 8, label: 'XL' },
+ { value: 13, label: 'XXL' },
+ ],
+};
+
+const STATE_TYPE_ICONS: Record<string, string> = {
+ backlog: '○',
+ unstarted: '○',
+ started: '◐',
+ completed: '●',
+ cancelled: '✕',
+};
+
+// The front component sandbox dispatches events with a non-standard shape.
+// Values may live on e.detail.value, e.value, or e.target.value.
+const readSerializedValue = (
+ e: React.SyntheticEvent<HTMLElement>,
+): string | undefined => {
+ const obj = e as {
+ detail?: { value?: string };
+ value?: string;
+ target?: { value?: string };
+ };
+
+ if (typeof obj.detail?.value === 'string') return obj.detail.value;
+ if (typeof obj.value === 'string') return obj.value;
+ if (typeof obj.target?.value === 'string') return obj.target.value;
+
+ return undefined;
+};
+
+const onValueChange =
+ (fn: (value: string) => void) => (e: React.SyntheticEvent<HTMLElement>) => {
+ const v = readSerializedValue(e);
+
+ if (typeof v === 'string') fn(v);
+ };
+
+const callAppRoute = async (
+ path: string,
+ method: 'GET' | 'POST',
+ body?: Record<string, unknown>,
+) => {
+ const apiBaseUrl = process.env.TWENTY_API_URL;
+ const token =
+ process.env.TWENTY_APP_ACCESS_TOKEN ?? process.env.TWENTY_API_KEY;
+
+ if (!apiBaseUrl || !token) {
+ throw new Error('API configuration missing');
+ }
+
+ const response = await fetch(`${apiBaseUrl}/s${path}`, {
+ method,
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: `Bearer ${token}`,
+ },
+ ...(body ? { body: JSON.stringify(body) } : {}),
+ });
+
+ if (!response.ok) {
+ const text = await response.text().catch(() => '');
+
+ throw new Error(
+ `Request failed (${response.status}): ${text.slice(0, 200)}`,
+ );
+ }
+
+ return response.json();
+};
+
+const COLOR = {
+ bg: '#f1f1f1',
+ card: '#ffffff',
+ surface: '#fcfcfc',
+ border: '#ebebeb',
+ borderStrong: '#d6d6d6',
+ text: '#333333',
+ textSecondary: '#666666',
+ textTertiary: '#999999',
+ placeholder: '#cccccc',
+ accent: '#606acc',
+ error: '#e05252',
+};
+
+const INLINE_SELECT: React.CSSProperties = {
+ appearance: 'none',
+ WebkitAppearance: 'none' as const,
+ border: 'none',
+ background: 'transparent',
+ color: 'inherit',
+ font: 'inherit',
+ cursor: 'pointer',
+ outline: 'none',
+ padding: 0,
+};
+
+const STYLES = {
+ outer: {
+ fontFamily: 'Inter, system-ui, -apple-system, sans-serif',
+ fontSize: '13px',
+ backgroundColor: COLOR.bg,
+ padding: '12px',
+ height: '100%',
+ boxSizing: 'border-box' as const,
+ },
+ container: {
+ backgroundColor: COLOR.card,
+ borderRadius: '8px',
+ border: `1px solid ${COLOR.border}`,
+ display: 'flex',
+ flexDirection: 'column' as const,
+ height: '100%',
+ boxSizing: 'border-box' as const,
+ color: COLOR.text,
+ },
+ topBar: {
+ display: 'flex',
+ alignItems: 'center',
+ padding: '8px 12px',
+ borderBottom: `1px solid ${COLOR.border}`,
+ flexShrink: 0,
+ },
+ teamSelect: {
+ appearance: 'none' as const,
+ WebkitAppearance: 'none' as const,
+ background: COLOR.surface,
+ border: `1px solid ${COLOR.border}`,
+ borderRadius: '6px',
+ padding: '3px 8px',
+ color: COLOR.text,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ outline: 'none',
+ },
+ body: {
+ flex: 1,
+ display: 'flex',
+ flexDirection: 'column' as const,
+ padding: '24px',
+ overflow: 'auto',
+ minHeight: 0,
+ gap: '10px',
+ },
+ titleInput: {
+ background: 'transparent',
+ border: 'none',
+ outline: 'none',
+ color: COLOR.text,
+ fontSize: '20px',
+ fontWeight: 500,
+ fontFamily: 'inherit',
+ width: '100%',
+ padding: 0,
+ marginBottom: '4px',
+ },
+ descriptionInput: {
+ background: 'transparent',
+ border: 'none',
+ outline: 'none',
+ color: COLOR.text,
+ fontSize: '14px',
+ fontFamily: 'inherit',
+ width: '100%',
+ padding: 0,
+ resize: 'none' as const,
+ flex: 1,
+ },
+ labelPicker: {
+ flexShrink: 0,
+ padding: '12px',
+ display: 'flex',
+ flexDirection: 'column' as const,
+ gap: '6px',
+ borderBottom: `1px solid ${COLOR.border}`,
+ },
+ optionsLoadingIndicator: {
+ marginLeft: 'auto',
+ display: 'flex',
+ alignItems: 'center',
+ },
+ spinner: {
+ width: '14px',
+ height: '14px',
+ border: `2px solid ${COLOR.border}`,
+ borderTopColor: COLOR.textSecondary,
+ borderRadius: '50%',
+ animation: 'spin 0.6s linear infinite',
+ },
+ chipsRow: {
+ display: 'flex',
+ flexWrap: 'wrap' as const,
+ gap: '5px',
+ alignItems: 'center',
+ },
+ chip: {
+ appearance: 'none' as const,
+ WebkitAppearance: 'none' as const,
+ background: 'transparent',
+ border: `1px solid ${COLOR.border}`,
+ borderRadius: '20px',
+ padding: '3px 9px',
+ color: COLOR.textSecondary,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ outline: 'none',
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '4px',
+ whiteSpace: 'nowrap' as const,
+ lineHeight: '16px',
+ },
+ chipIcon: {
+ fontSize: '10px',
+ lineHeight: 1,
+ flexShrink: 0,
+ },
+ labelsRow: {
+ display: 'flex',
+ flexWrap: 'wrap' as const,
+ gap: '4px',
+ alignItems: 'center',
+ },
+ labelToggle: {
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '4px',
+ padding: '2px 7px',
+ borderRadius: '20px',
+ border: `1px solid ${COLOR.border}`,
+ fontSize: '11px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ background: 'transparent',
+ color: COLOR.textSecondary,
+ },
+ labelToggleSelected: {
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '4px',
+ padding: '2px 7px',
+ borderRadius: '20px',
+ border: `1px solid ${COLOR.accent}`,
+ fontSize: '11px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ backgroundColor: '#eef0fb',
+ color: COLOR.accent,
+ },
+ labelDot: {
+ width: '6px',
+ height: '6px',
+ borderRadius: '50%',
+ flexShrink: 0,
+ },
+ dateChip: {
+ appearance: 'none' as const,
+ WebkitAppearance: 'none' as const,
+ background: 'transparent',
+ border: `1px solid ${COLOR.border}`,
+ borderRadius: '20px',
+ padding: '3px 9px',
+ color: COLOR.textSecondary,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ outline: 'none',
+ lineHeight: '16px',
+ },
+ actionBar: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'flex-end',
+ gap: '6px',
+ padding: '6px 12px',
+ borderTop: `1px solid ${COLOR.border}`,
+ flexShrink: 0,
+ },
+ cancelButton: {
+ background: 'transparent',
+ border: 'none',
+ color: COLOR.textSecondary,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ padding: '5px 10px',
+ borderRadius: '6px',
+ },
+ createButton: {
+ background: COLOR.accent,
+ border: 'none',
+ color: '#ffffff',
+ fontSize: '12px',
+ fontWeight: 500,
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ padding: '5px 14px',
+ borderRadius: '6px',
+ },
+ createButtonDisabled: {
+ background: COLOR.borderStrong,
+ color: COLOR.textTertiary,
+ cursor: 'not-allowed',
+ },
+ successOuter: {
+ fontFamily: 'Inter, system-ui, -apple-system, sans-serif',
+ backgroundColor: COLOR.bg,
+ padding: '12px',
+ height: '100%',
+ boxSizing: 'border-box' as const,
+ },
+ successContainer: {
+ display: 'flex',
+ alignItems: 'center',
+ gap: '10px',
+ padding: '10px 14px',
+ boxSizing: 'border-box' as const,
+ backgroundColor: COLOR.card,
+ borderRadius: '8px',
+ border: `1px solid ${COLOR.border}`,
+ color: COLOR.text,
+ },
+ successCheck: {
+ width: '20px',
+ height: '20px',
+ borderRadius: '50%',
+ backgroundColor: '#2ea043',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ fontSize: '11px',
+ color: '#fff',
+ flexShrink: 0,
+ },
+ issueLink: {
+ color: COLOR.accent,
+ fontWeight: 500,
+ textDecoration: 'underline',
+ fontSize: '13px',
+ textUnderlineOffset: '2px',
+ flex: 1,
+ overflow: 'hidden' as const,
+ textOverflow: 'ellipsis' as const,
+ whiteSpace: 'nowrap' as const,
+ },
+ closeButton: {
+ background: 'transparent',
+ border: `1px solid ${COLOR.border}`,
+ color: COLOR.textSecondary,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ padding: '5px 14px',
+ borderRadius: '6px',
+ flexShrink: 0,
+ },
+ loadingOuter: {
+ fontFamily: 'Inter, system-ui, -apple-system, sans-serif',
+ backgroundColor: COLOR.bg,
+ padding: '12px',
+ height: '100%',
+ boxSizing: 'border-box' as const,
+ },
+ loadingContainer: {
+ color: COLOR.textSecondary,
+ fontSize: '13px',
+ textAlign: 'center' as const,
+ backgroundColor: COLOR.card,
+ borderRadius: '8px',
+ border: `1px solid ${COLOR.border}`,
+ padding: '24px',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ errorOuter: {
+ fontFamily: 'Inter, system-ui, -apple-system, sans-serif',
+ backgroundColor: COLOR.bg,
+ padding: '12px',
+ height: '100%',
+ boxSizing: 'border-box' as const,
+ },
+ errorContainer: {
+ backgroundColor: COLOR.card,
+ borderRadius: '8px',
+ border: `1px solid ${COLOR.border}`,
+ padding: '24px',
+ display: 'flex',
+ flexDirection: 'column' as const,
+ alignItems: 'center',
+ justifyContent: 'center',
+ gap: '10px',
+ },
+ errorText: {
+ color: COLOR.error,
+ fontSize: '12px',
+ },
+ retryButton: {
+ background: COLOR.surface,
+ border: `1px solid ${COLOR.border}`,
+ color: COLOR.text,
+ fontSize: '12px',
+ fontFamily: 'inherit',
+ cursor: 'pointer',
+ padding: '5px 12px',
+ borderRadius: '6px',
+ },
+};
+
+const EMPTY_OPTIONS: IssueOptions = {
+ states: [],
+ members: [],
+ projects: [],
+ labels: [],
+ cycles: [],
+ estimationType: 'notUsed',
+ estimationAllowZero: false,
+};
+
+const CreateIssueForm = () => {
+ const [teams, setTeams] = useState<LinearTeam[]>([]);
+ const [teamsLoading, setTeamsLoading] = useState(true);
+ const [teamsError, setTeamsError] = useState<string | null>(null);
+ const [submitting, setSubmitting] = useState(false);
+ const [createdIssue, setCreatedIssue] = useState<CreatedIssue | null>(null);
+ const [closing, setClosing] = useState(false);
+ const [optionsLoading, setOptionsLoading] = useState(false);
+ const [options, setOptions] = useState<IssueOptions>(EMPTY_OPTIONS);
+ const [showLabels, setShowLabels] = useState(false);
+
+ const [teamId, setTeamId] = useState('');
+ const [title, setTitle] = useState('');
+ const [description, setDescription] = useState('');
+ const [priority, setPriority] = useState('0');
+ const [stateId, setStateId] = useState('');
+ const [assigneeId, setAssigneeId] = useState('');
+ const [projectId, setProjectId] = useState('');
+ const [estimate, setEstimate] = useState('');
+ const [selectedLabelIds, setSelectedLabelIds] = useState<string[]>([]);
+ const [cycleId, setCycleId] = useState('');
+ const [dueDate, setDueDate] = useState('');
+
+ const fetchIssueOptions = useCallback(async (selectedTeamId: string) => {
+ if (!selectedTeamId) {
+ setOptions(EMPTY_OPTIONS);
+ setStateId('');
+ setAssigneeId('');
+ setProjectId('');
+ setEstimate('');
+ setSelectedLabelIds([]);
+ setCycleId('');
+
+ return;
+ }
+
+ setOptionsLoading(true);
+
+ try {
+ const result = await callAppRoute(
+ `/linear/issue-options?teamId=${encodeURIComponent(selectedTeamId)}`,
+ 'GET',
+ );
+
+ if (!result.success) {
+ setOptions(EMPTY_OPTIONS);
+
+ return;
+ }
+
+ const issueOptions: IssueOptions = result.options;
+
+ setOptions(issueOptions);
+
+ const todoState = issueOptions.states.find((s) => s.type === 'unstarted');
+
+ setStateId(todoState?.id ?? issueOptions.states[0]?.id ?? '');
+ setAssigneeId('');
+ setProjectId('');
+ setEstimate('');
+ setSelectedLabelIds([]);
+ setCycleId('');
+ } catch {
+ setOptions(EMPTY_OPTIONS);
+ } finally {
+ setOptionsLoading(false);
+ }
+ }, []);
+
+ const handleTeamChange = useCallback(
+ (newTeamId: string) => {
+ setTeamId(newTeamId);
+ fetchIssueOptions(newTeamId);
+ },
+ [fetchIssueOptions],
+ );
+
+ const fetchTeams = useCallback(async () => {
+ try {
+ setTeamsError(null);
+ const result = await callAppRoute('/linear/teams', 'GET');
+
+ if (!result.success) {
+ setTeamsError(result.error ?? 'Failed to load teams');
+
+ return;
+ }
+
+ setTeams(result.teams ?? []);
+
+ if (result.teams?.length === 1) {
+ setTeamId(result.teams[0].id);
+ fetchIssueOptions(result.teams[0].id);
+ }
+ } catch (error) {
+ setTeamsError(
+ error instanceof Error ? error.message : 'Failed to load teams',
+ );
+ } finally {
+ setTeamsLoading(false);
+ }
+ }, [fetchIssueOptions]);
+
+ useEffect(() => {
+ fetchTeams();
+ }, [fetchTeams]);
+
+ const toggleLabel = useCallback((labelId: string) => {
+ setSelectedLabelIds((prev) =>
+ prev.includes(labelId)
+ ? prev.filter((id) => id !== labelId)
+ : [...prev, labelId],
+ );
+ }, []);
+
+ const handleSubmit = async () => {
+ const trimmedTitle = (title ?? '').trim();
+
+ if (!teamId || !trimmedTitle) {
+ return;
+ }
+
+ setSubmitting(true);
+
+ try {
+ const result = await callAppRoute('/linear/issues', 'POST', {
+ teamId,
+ title: trimmedTitle,
+ description: (description ?? '').trim() || undefined,
+ priority: Number(priority) || undefined,
+ stateId: stateId || undefined,
+ assigneeId: assigneeId || undefined,
+ projectId: projectId || undefined,
+ estimate: estimate ? Number(estimate) : undefined,
+ labelIds: selectedLabelIds.length > 0 ? selectedLabelIds : undefined,
+ cycleId: cycleId || undefined,
+ dueDate: dueDate || undefined,
+ });
+
+ if (!result.success) {
+ await enqueueSnackbar({
+ message: result.error ?? 'Failed to create issue',
+ variant: 'error',
+ });
+ setSubmitting(false);
+
+ return;
+ }
+
+ setCreatedIssue(result.issue);
+ await enqueueSnackbar({
+ message: `Created ${result.issue.identifier}: ${result.issue.title}`,
+ variant: 'success',
+ });
+ } catch (error) {
+ await enqueueSnackbar({
+ message:
+ error instanceof Error ? error.message : 'Failed to create issue',
+ variant: 'error',
+ });
+ setSubmitting(false);
+ }
+ };
+
+ const handleCancel = () => {
+ setClosing(true);
+ unmountFrontComponent();
+ closeSidePanel();
+ };
+
+ if (closing) {
+ return null;
+ }
+
+ if (createdIssue) {
+ return (
+ <div style={STYLES.successOuter}>
+ <div style={STYLES.successContainer}>
+ <div style={STYLES.successCheck}>{'✓'}</div>
+ <a
+ href={createdIssue.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ style={STYLES.issueLink}
+ >
+ {createdIssue.identifier}: {createdIssue.title}
+ </a>
+ <button
+ type="button"
+ style={STYLES.closeButton}
+ onClick={handleCancel}
+ >
+ Close
+ </button>
+ </div>
+ </div>
+ );
+ }
+
+ if (teamsLoading) {
+ return (
+ <div style={STYLES.loadingOuter}>
+ <div style={STYLES.loadingContainer}>Loading...</div>
+ </div>
+ );
+ }
+
+ if (teamsError) {
+ return (
+ <div style={STYLES.errorOuter}>
+ <div style={STYLES.errorContainer}>
+ <p style={STYLES.errorText}>{teamsError}</p>
+ <button type="button" style={STYLES.retryButton} onClick={fetchTeams}>
+ Retry
+ </button>
+ </div>
+ </div>
+ );
+ }
+
+ const canSubmit = teamId && (title ?? '').trim() && !submitting;
+ const hasEstimates = options.estimationType !== 'notUsed';
+ const baseEstimateOptions = ESTIMATE_SCALES[options.estimationType] ?? [];
+ const estimateOptions =
+ options.estimationAllowZero &&
+ baseEstimateOptions.length > 0 &&
+ !baseEstimateOptions.some((o) => o.value === 0)
+ ? [{ value: 0, label: 'None' }, ...baseEstimateOptions]
+ : baseEstimateOptions;
+
+ const selectedState = options.states.find((s) => s.id === stateId);
+ const stateIcon =
+ STATE_TYPE_ICONS[selectedState?.type ?? ''] ?? STATE_TYPE_ICONS.unstarted;
+ const labelsCount = selectedLabelIds.length;
+
+ const hasStatuses = options.states.length > 0;
+
+ return (
+ <div style={STYLES.outer}>
+ <style>{'@keyframes spin{to{transform:rotate(360deg)}}'}</style>
+ <div style={STYLES.container}>
+ {/* Top bar with team selector */}
+ <div style={STYLES.topBar}>
+ <select
+ value={teamId}
+ onChange={onValueChange(handleTeamChange)}
+ style={STYLES.teamSelect}
+ >
+ <option value="">Select team...</option>
+ {teams.map((team) => (
+ <option key={team.id} value={team.id}>
+ {team.key} - {team.name}
+ </option>
+ ))}
+ </select>
+ {optionsLoading && (
+ <div style={STYLES.optionsLoadingIndicator}>
+ <div style={STYLES.spinner} />
+ </div>
+ )}
+ </div>
+
+ {/* Property chips & labels */}
+ <div style={STYLES.labelPicker}>
+ <div style={STYLES.chipsRow}>
+ {/* Status */}
+ {hasStatuses && !optionsLoading && (
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{stateIcon}</span>
+ <select
+ value={stateId}
+ onChange={onValueChange(setStateId)}
+ style={INLINE_SELECT}
+ disabled={!teamId || optionsLoading}
+ >
+ {options.states.map((s) => (
+ <option key={s.id} value={s.id}>
+ {s.name}
+ </option>
+ ))}
+ </select>
+ </label>
+ )}
+
+ {/* Priority */}
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{'≡'}</span>
+ <select
+ value={priority}
+ onChange={onValueChange(setPriority)}
+ style={INLINE_SELECT}
+ >
+ {PRIORITY_OPTIONS.map((o) => (
+ <option key={o.value} value={o.value}>
+ {o.label}
+ </option>
+ ))}
+ </select>
+ </label>
+
+ {/* Assignee */}
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{'⬤'}</span>
+ <select
+ value={assigneeId}
+ onChange={onValueChange(setAssigneeId)}
+ style={INLINE_SELECT}
+ disabled={!teamId || optionsLoading}
+ >
+ <option value="">Assignee</option>
+ {options.members.map((m) => (
+ <option key={m.id} value={m.id}>
+ {m.displayName}
+ </option>
+ ))}
+ </select>
+ </label>
+
+ {/* Estimate */}
+ {hasEstimates && (
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{'△'}</span>
+ <select
+ value={estimate}
+ onChange={onValueChange(setEstimate)}
+ style={INLINE_SELECT}
+ disabled={!teamId || optionsLoading}
+ >
+ <option value="">Estimate</option>
+ {estimateOptions.map((o) => (
+ <option key={o.value} value={o.value}>
+ {o.label}
+ </option>
+ ))}
+ </select>
+ </label>
+ )}
+
+ {/* Labels toggle */}
+ {options.labels.length > 0 && (
+ <button
+ type="button"
+ style={{
+ ...STYLES.chip,
+ ...(labelsCount > 0
+ ? { borderColor: COLOR.borderStrong, color: COLOR.text }
+ : {}),
+ }}
+ onClick={() => setShowLabels((prev) => !prev)}
+ >
+ <span style={STYLES.chipIcon}>{'■'}</span>
+ {labelsCount > 0
+ ? `${labelsCount} Label${labelsCount > 1 ? 's' : ''}`
+ : 'Labels'}
+ </button>
+ )}
+
+ {/* Cycle */}
+ {options.cycles.length > 0 && (
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{'▶'}</span>
+ <select
+ value={cycleId}
+ onChange={onValueChange(setCycleId)}
+ style={INLINE_SELECT}
+ disabled={!teamId || optionsLoading}
+ >
+ <option value="">Cycle</option>
+ {options.cycles.map((c) => (
+ <option key={c.id} value={c.id}>
+ {c.name ?? `Cycle ${c.number}`}
+ </option>
+ ))}
+ </select>
+ </label>
+ )}
+
+ {/* Due date */}
+ <input
+ value={dueDate}
+ onChange={onValueChange(setDueDate)}
+ style={STYLES.dateChip}
+ type="date"
+ />
+
+ {/* Project */}
+ {options.projects.length > 0 && (
+ <label style={STYLES.chip}>
+ <span style={STYLES.chipIcon}>{'⬡'}</span>
+ <select
+ value={projectId}
+ onChange={onValueChange(setProjectId)}
+ style={INLINE_SELECT}
+ disabled={!teamId || optionsLoading}
+ >
+ <option value="">Project</option>
+ {options.projects.map((p) => (
+ <option key={p.id} value={p.id}>
+ {p.name}
+ </option>
+ ))}
+ </select>
+ </label>
+ )}
+ </div>
+
+ {showLabels && options.labels.length > 0 && (
+ <div style={STYLES.labelsRow}>
+ {options.labels.map((label) => {
+ const isSelected = selectedLabelIds.includes(label.id);
+
+ return (
+ <button
+ key={label.id}
+ type="button"
+ style={
+ isSelected
+ ? STYLES.labelToggleSelected
+ : STYLES.labelToggle
+ }
+ onClick={() => toggleLabel(label.id)}
+ >
+ <span
+ style={{
+ ...STYLES.labelDot,
+ backgroundColor: label.color,
+ }}
+ />
+ {label.name}
+ </button>
+ );
+ })}
+ </div>
+ )}
+ </div>
+
+ <div style={STYLES.body}>
+ <input
+ value={title}
+ onInput={onValueChange(setTitle)}
+ onChange={onValueChange(setTitle)}
+ style={STYLES.titleInput}
+ type="text"
+ placeholder="Issue title"
+ />
+ <textarea
+ value={description}
+ onInput={onValueChange(setDescription)}
+ onChange={onValueChange(setDescription)}
+ style={STYLES.descriptionInput}
+ placeholder="Add description... (markdown supported)"
+ />
+ </div>
+
+ <div style={STYLES.actionBar}>
+ <button
+ type="button"
+ style={STYLES.cancelButton}
+ onClick={handleCancel}
+ >
+ Cancel
+ </button>
+ <button
+ type="button"
+ style={{
+ ...STYLES.createButton,
+ ...(!canSubmit ? STYLES.createButtonDisabled : {}),
+ }}
+ disabled={!canSubmit}
+ onClick={handleSubmit}
+ >
+ {submitting ? 'Creating...' : 'Create issue'}
+ </button>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default defineFrontComponent({
+ universalIdentifier: CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ name: 'create-linear-issue-form',
+ description:
+ 'Form to create a Linear issue with team, title, description, status, priority, assignee, project, cycle, estimate, labels, and due date.',
+ component: CreateIssueForm,
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/connection-providers/linear-connection.ts b/packages/twenty-apps/internal/twenty-linear/src/connection-providers/linear-connection.ts
index a108f239b8c..98e6030632d 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/connection-providers/linear-connection.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/connection-providers/linear-connection.ts
@@ -15,8 +15,6 @@ export default defineConnectionProvider({
clientIdVariable: 'LINEAR_CLIENT_ID',
clientSecretVariable: 'LINEAR_CLIENT_SECRET',
tokenRequestContentType: 'form-urlencoded',
- // Linear supports PKCE but doesn't require it for confidential clients.
- // Disabled to keep the test surface minimal.
- usePkce: false,
+ usePkce: true,
},
});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/constants/ABOUT_DESCRIPTION.md.ts b/packages/twenty-apps/internal/twenty-linear/src/constants/ABOUT_DESCRIPTION.md.ts
new file mode 100644
index 00000000000..60ba116705d
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/constants/ABOUT_DESCRIPTION.md.ts
@@ -0,0 +1,20 @@
+export const ABOUT_DESCRIPTION = `Connect your Linear account to Twenty to create issues and look up teams straight from your workflows or the AI chat.
+
+## What you can do
+
+Once installed and connected, two tools become available:
+
+- **Create Linear issue**
+ - From the AI chat, ask something like *"create a Linear issue in the Engineering team titled 'Fix login bug'"* and the AI will file it for you.
+ - From a workflow, add it as a step with \`teamId\` + \`title\` (and optional \`description\`).
+
+- **List Linear teams** — discovers the teams in your Linear workspace, useful when you need to pick a \`teamId\` for the create-issue step.
+
+## Installing
+
+1. Open **Settings → Applications** in your Twenty workspace.
+2. Find **Linear** in the available apps and click **Install**.
+3. Open the app, go to the **Connections** tab, and click **Add connection**.
+4. Choose **Just for me** (your personal Linear account) or **Workspace shared** (a team-managed Linear account anyone in this workspace can act through), then complete the Linear sign-in.
+
+That's it — you can now use the tools above.`;
diff --git a/packages/twenty-apps/internal/twenty-linear/src/constants/universal-identifiers.ts b/packages/twenty-apps/internal/twenty-linear/src/constants/universal-identifiers.ts
index 1978757d564..b32feeb8a58 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/constants/universal-identifiers.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/constants/universal-identifiers.ts
@@ -17,3 +17,24 @@ export const CREATE_LINEAR_ISSUE_UNIVERSAL_IDENTIFIER =
export const LIST_LINEAR_TEAMS_UNIVERSAL_IDENTIFIER =
'15824bbc-9c64-4f97-b45f-d0a44b402bb8';
+
+export const LIST_LINEAR_TEAMS_ROUTE_UNIVERSAL_IDENTIFIER =
+ 'a1d4e7b3-5c2f-4a89-9b0e-6f3d8c1a7e5b';
+
+export const CREATE_LINEAR_ISSUE_ROUTE_UNIVERSAL_IDENTIFIER =
+ 'c8f2a6d1-3b7e-4e09-8d5c-2a9f0b4e6c3d';
+
+export const CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
+ 'd4a1c8e5-7f3b-4d62-a90e-1b5c3f8d2a6e';
+
+export const LIST_LINEAR_WORKFLOW_STATES_ROUTE_UNIVERSAL_IDENTIFIER =
+ 'f5a2d8c1-4b7e-4f93-a6d0-9c3e1b8f5a2d';
+
+export const LIST_LINEAR_ISSUE_OPTIONS_ROUTE_UNIVERSAL_IDENTIFIER =
+ 'a3b7e1d9-8c4f-4a26-b5d0-7e9f2c6a8b3d';
+
+export const LIST_LINEAR_ISSUE_OPTIONS_UNIVERSAL_IDENTIFIER =
+ 'c2b99086-6c1b-43e4-9685-de4ade6bda63';
+
+export const CREATE_ISSUE_COMMAND_UNIVERSAL_IDENTIFIER =
+ 'e7b3d9f2-6a1c-4e85-b4d0-8f2c5a7e3b19';
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue-route.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue-route.ts
new file mode 100644
index 00000000000..d17832473e4
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue-route.ts
@@ -0,0 +1,35 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import type { RoutePayload } from 'twenty-sdk/define';
+
+import { CREATE_LINEAR_ISSUE_ROUTE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { createLinearIssueHandler } from 'src/logic-functions/handlers/create-linear-issue-handler';
+
+const handler = async (event: RoutePayload) => {
+ const body = event.body as Record<string, unknown> | null;
+
+ return createLinearIssueHandler({
+ teamId: body?.teamId as string | undefined,
+ title: body?.title as string | undefined,
+ description: body?.description as string | undefined,
+ priority: body?.priority as number | undefined,
+ stateId: body?.stateId as string | undefined,
+ assigneeId: body?.assigneeId as string | undefined,
+ projectId: body?.projectId as string | undefined,
+ estimate: body?.estimate as number | undefined,
+ labelIds: body?.labelIds as string[] | undefined,
+ cycleId: body?.cycleId as string | undefined,
+ dueDate: body?.dueDate as string | undefined,
+ });
+};
+
+export default defineLogicFunction({
+ universalIdentifier: CREATE_LINEAR_ISSUE_ROUTE_UNIVERSAL_IDENTIFIER,
+ name: 'create-linear-issue-route',
+ timeoutSeconds: 30,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/linear/issues',
+ httpMethod: 'POST',
+ isAuthRequired: true,
+ },
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue.ts
index 9d9a91a09b2..86e7766f337 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/create-linear-issue.ts
@@ -27,6 +27,45 @@ export default defineLogicFunction({
type: 'string',
description: 'Optional issue description (Markdown supported).',
},
+ priority: {
+ type: 'integer',
+ description:
+ 'Issue priority: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low.',
+ minimum: 0,
+ maximum: 4,
+ },
+ stateId: {
+ type: 'string',
+ description:
+ 'The workflow state ID for the issue status. Use list-linear-issue-options to discover available states for a team.',
+ },
+ assigneeId: {
+ type: 'string',
+ description:
+ 'The user ID to assign the issue to. Use list-linear-issue-options to discover team members.',
+ },
+ projectId: {
+ type: 'string',
+ description: 'The project ID to associate the issue with.',
+ },
+ estimate: {
+ type: 'number',
+ description:
+ 'The estimate value for the issue. Must match the team estimate scale.',
+ },
+ labelIds: {
+ type: 'array',
+ items: { type: 'string' },
+ description: 'Array of label IDs to apply to the issue.',
+ },
+ cycleId: {
+ type: 'string',
+ description: 'The cycle ID to add the issue to.',
+ },
+ dueDate: {
+ type: 'string',
+ description: 'Due date in YYYY-MM-DD format.',
+ },
},
required: ['teamId', 'title'],
},
@@ -40,6 +79,14 @@ export default defineLogicFunction({
teamId: { type: 'string' },
title: { type: 'string' },
description: { type: 'string' },
+ priority: { type: 'number' },
+ stateId: { type: 'string' },
+ assigneeId: { type: 'string' },
+ projectId: { type: 'string' },
+ estimate: { type: 'number' },
+ labelIds: { type: 'array', items: { type: 'string' } },
+ cycleId: { type: 'string' },
+ dueDate: { type: 'string' },
},
},
],
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/create-linear-issue-handler.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/create-linear-issue-handler.ts
index a30c585877e..067572e6356 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/create-linear-issue-handler.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/create-linear-issue-handler.ts
@@ -49,6 +49,17 @@ export const createLinearIssueHandler = async (
teamId: input.teamId,
title: input.title,
description: input.description,
+ ...(input.priority !== undefined && { priority: input.priority }),
+ ...(input.stateId !== undefined && { stateId: input.stateId }),
+ ...(input.assigneeId !== undefined && {
+ assigneeId: input.assigneeId,
+ }),
+ ...(input.projectId !== undefined && { projectId: input.projectId }),
+ ...(input.estimate !== undefined && { estimate: input.estimate }),
+ ...(input.labelIds !== undefined &&
+ input.labelIds.length > 0 && { labelIds: input.labelIds }),
+ ...(input.cycleId !== undefined && { cycleId: input.cycleId }),
+ ...(input.dueDate !== undefined && { dueDate: input.dueDate }),
},
},
});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-issue-options-handler.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-issue-options-handler.ts
new file mode 100644
index 00000000000..1707d36f90f
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-issue-options-handler.ts
@@ -0,0 +1,129 @@
+import { listConnections } from 'twenty-sdk/logic-function';
+
+import { callLinearGraphQL } from 'src/logic-functions/utils/call-linear-graphql';
+
+type LinearMember = {
+ id: string;
+ name: string;
+ displayName: string;
+};
+
+type LinearProject = {
+ id: string;
+ name: string;
+};
+
+type LinearLabel = {
+ id: string;
+ name: string;
+ color: string;
+};
+
+type LinearCycle = {
+ id: string;
+ name: string | null;
+ number: number;
+ startsAt: string;
+ endsAt: string;
+};
+
+type LinearWorkflowState = {
+ id: string;
+ name: string;
+ type: string;
+ position: number;
+};
+
+type IssueOptionsQueryResult = {
+ team: {
+ states: { nodes: LinearWorkflowState[] };
+ members: { nodes: LinearMember[] };
+ cycles: { nodes: LinearCycle[] };
+ issueEstimationType: string;
+ issueEstimationAllowZero: boolean;
+ };
+ projects: { nodes: LinearProject[] };
+ issueLabels: { nodes: LinearLabel[] };
+};
+
+type IssueOptions = {
+ states: LinearWorkflowState[];
+ members: LinearMember[];
+ projects: LinearProject[];
+ labels: LinearLabel[];
+ cycles: LinearCycle[];
+ estimationType: string;
+ estimationAllowZero: boolean;
+};
+
+type HandlerResult =
+ | { success: true; options: IssueOptions }
+ | { success: false; error: string };
+
+export const listLinearIssueOptionsHandler = async (input: {
+ teamId?: string;
+}): Promise<HandlerResult> => {
+ if (!input.teamId) {
+ return { success: false, error: '`teamId` is required.' };
+ }
+
+ const connections = await listConnections({ providerName: 'linear' });
+ const connection =
+ connections.find((c) => c.visibility === 'workspace') ?? connections[0];
+
+ if (!connection) {
+ return {
+ success: false,
+ error:
+ 'Linear is not connected. Open the app settings and click "Add connection" first.',
+ };
+ }
+
+ const result = await callLinearGraphQL<IssueOptionsQueryResult>({
+ accessToken: connection.accessToken,
+ query: `
+ query IssueOptions($teamId: String!) {
+ team(id: $teamId) {
+ states { nodes { id name type position } }
+ members { nodes { id name displayName } }
+ cycles { nodes { id name number startsAt endsAt } }
+ issueEstimationType
+ issueEstimationAllowZero
+ }
+ projects { nodes { id name } }
+ issueLabels { nodes { id name color } }
+ }
+ `,
+ variables: { teamId: input.teamId },
+ });
+
+ if (result.errors || !result.data) {
+ return {
+ success: false,
+ error: result.errors?.[0]?.message ?? 'Unknown Linear API error',
+ };
+ }
+
+ const { team, projects, issueLabels } = result.data;
+
+ const now = new Date().toISOString();
+ const activeCycles = team.cycles.nodes.filter((c) => c.endsAt >= now);
+
+ return {
+ success: true,
+ options: {
+ states: team.states.nodes.sort((a, b) => a.position - b.position),
+ members: team.members.nodes.sort((a, b) =>
+ a.displayName.localeCompare(b.displayName),
+ ),
+ projects: projects.nodes.sort((a, b) => a.name.localeCompare(b.name)),
+ labels: issueLabels.nodes.sort((a, b) => a.name.localeCompare(b.name)),
+ cycles: activeCycles.sort(
+ (a, b) =>
+ new Date(a.startsAt).getTime() - new Date(b.startsAt).getTime(),
+ ),
+ estimationType: team.issueEstimationType,
+ estimationAllowZero: team.issueEstimationAllowZero,
+ },
+ };
+};
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-workflow-states-handler.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-workflow-states-handler.ts
new file mode 100644
index 00000000000..83d5d57c61f
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/handlers/list-linear-workflow-states-handler.ts
@@ -0,0 +1,63 @@
+import { listConnections } from 'twenty-sdk/logic-function';
+
+import { callLinearGraphQL } from 'src/logic-functions/utils/call-linear-graphql';
+
+type LinearWorkflowState = {
+ id: string;
+ name: string;
+ type: string;
+ position: number;
+};
+
+type WorkflowStatesQueryResult = {
+ team: { states: { nodes: LinearWorkflowState[] } };
+};
+
+type HandlerResult =
+ | { success: true; states: LinearWorkflowState[] }
+ | { success: false; error: string };
+
+export const listLinearWorkflowStatesHandler = async (input: {
+ teamId?: string;
+}): Promise<HandlerResult> => {
+ if (!input.teamId) {
+ return { success: false, error: '`teamId` is required.' };
+ }
+
+ const connections = await listConnections({ providerName: 'linear' });
+ const connection =
+ connections.find((c) => c.visibility === 'workspace') ?? connections[0];
+
+ if (!connection) {
+ return {
+ success: false,
+ error:
+ 'Linear is not connected. Open the app settings and click "Add connection" first.',
+ };
+ }
+
+ const result = await callLinearGraphQL<WorkflowStatesQueryResult>({
+ accessToken: connection.accessToken,
+ query: `
+ query WorkflowStates($teamId: String!) {
+ team(id: $teamId) {
+ states { nodes { id name type position } }
+ }
+ }
+ `,
+ variables: { teamId: input.teamId },
+ });
+
+ if (result.errors || !result.data) {
+ return {
+ success: false,
+ error: result.errors?.[0]?.message ?? 'Unknown Linear API error',
+ };
+ }
+
+ const states = result.data.team.states.nodes.sort(
+ (a, b) => a.position - b.position,
+ );
+
+ return { success: true, states };
+};
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options-route.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options-route.ts
new file mode 100644
index 00000000000..9df972fab85
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options-route.ts
@@ -0,0 +1,23 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import type { RoutePayload } from 'twenty-sdk/define';
+
+import { LIST_LINEAR_ISSUE_OPTIONS_ROUTE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { listLinearIssueOptionsHandler } from 'src/logic-functions/handlers/list-linear-issue-options-handler';
+
+const handler = async (event: RoutePayload) => {
+ return listLinearIssueOptionsHandler({
+ teamId: event.queryStringParameters?.teamId,
+ });
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LIST_LINEAR_ISSUE_OPTIONS_ROUTE_UNIVERSAL_IDENTIFIER,
+ name: 'list-linear-issue-options-route',
+ timeoutSeconds: 15,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/linear/issue-options',
+ httpMethod: 'GET',
+ isAuthRequired: true,
+ },
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options.ts
new file mode 100644
index 00000000000..0479bedeb55
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-issue-options.ts
@@ -0,0 +1,110 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+
+import { LIST_LINEAR_ISSUE_OPTIONS_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { listLinearIssueOptionsHandler } from 'src/logic-functions/handlers/list-linear-issue-options-handler';
+
+export default defineLogicFunction({
+ universalIdentifier: LIST_LINEAR_ISSUE_OPTIONS_UNIVERSAL_IDENTIFIER,
+ name: 'list-linear-issue-options',
+ description:
+ 'Returns available options for creating a Linear issue in a specific team: workflow states, members, projects, labels, cycles, and estimation settings. Requires a teamId (call list-linear-teams to discover one).',
+ timeoutSeconds: 15,
+ handler: listLinearIssueOptionsHandler,
+ toolTriggerSettings: {
+ inputSchema: {
+ type: 'object',
+ properties: {
+ teamId: {
+ type: 'string',
+ description:
+ 'The Linear team ID to fetch issue options for. Use list-linear-teams to discover available teams.',
+ },
+ },
+ required: ['teamId'],
+ },
+ },
+ workflowActionTriggerSettings: {
+ label: 'List Linear Issue Options',
+ inputSchema: [
+ {
+ type: 'object',
+ properties: {
+ teamId: { type: 'string' },
+ },
+ },
+ ],
+ outputSchema: [
+ {
+ type: 'object',
+ properties: {
+ success: { type: 'boolean' },
+ options: {
+ type: 'object',
+ properties: {
+ states: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ type: { type: 'string' },
+ position: { type: 'number' },
+ },
+ },
+ },
+ members: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ displayName: { type: 'string' },
+ },
+ },
+ },
+ projects: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ },
+ },
+ },
+ labels: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ color: { type: 'string' },
+ },
+ },
+ },
+ cycles: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ number: { type: 'number' },
+ startsAt: { type: 'string' },
+ endsAt: { type: 'string' },
+ },
+ },
+ },
+ estimationType: { type: 'string' },
+ estimationAllowZero: { type: 'boolean' },
+ },
+ },
+ error: { type: 'string' },
+ },
+ },
+ ],
+ },
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams-route.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams-route.ts
new file mode 100644
index 00000000000..984fb2e5876
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams-route.ts
@@ -0,0 +1,21 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import type { RoutePayload } from 'twenty-sdk/define';
+
+import { LIST_LINEAR_TEAMS_ROUTE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { listLinearTeamsHandler } from 'src/logic-functions/handlers/list-linear-teams-handler';
+
+const handler = async (_event: RoutePayload) => {
+ return listLinearTeamsHandler();
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LIST_LINEAR_TEAMS_ROUTE_UNIVERSAL_IDENTIFIER,
+ name: 'list-linear-teams-route',
+ timeoutSeconds: 15,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/linear/teams',
+ httpMethod: 'GET',
+ isAuthRequired: true,
+ },
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams.ts
index 43c7402e09f..a9c982a7e93 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-teams.ts
@@ -16,4 +16,33 @@ export default defineLogicFunction({
properties: {},
},
},
+ workflowActionTriggerSettings: {
+ label: 'List Linear Teams',
+ inputSchema: [
+ {
+ type: 'object',
+ properties: {},
+ },
+ ],
+ outputSchema: [
+ {
+ type: 'object',
+ properties: {
+ success: { type: 'boolean' },
+ teams: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ id: { type: 'string' },
+ name: { type: 'string' },
+ key: { type: 'string' },
+ },
+ },
+ },
+ error: { type: 'string' },
+ },
+ },
+ ],
+ },
});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-workflow-states-route.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-workflow-states-route.ts
new file mode 100644
index 00000000000..a8e8f569e27
--- /dev/null
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/list-linear-workflow-states-route.ts
@@ -0,0 +1,23 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import type { RoutePayload } from 'twenty-sdk/define';
+
+import { LIST_LINEAR_WORKFLOW_STATES_ROUTE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { listLinearWorkflowStatesHandler } from 'src/logic-functions/handlers/list-linear-workflow-states-handler';
+
+const handler = async (event: RoutePayload) => {
+ return listLinearWorkflowStatesHandler({
+ teamId: event.queryStringParameters?.teamId,
+ });
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LIST_LINEAR_WORKFLOW_STATES_ROUTE_UNIVERSAL_IDENTIFIER,
+ name: 'list-linear-workflow-states-route',
+ timeoutSeconds: 15,
+ handler,
+ httpRouteTriggerSettings: {
+ path: '/linear/workflow-states',
+ httpMethod: 'GET',
+ isAuthRequired: true,
+ },
+});
diff --git a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/types/create-issue-input.type.ts b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/types/create-issue-input.type.ts
index be319744df4..592d660079b 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/logic-functions/types/create-issue-input.type.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/logic-functions/types/create-issue-input.type.ts
@@ -2,4 +2,12 @@ export type CreateIssueInput = {
teamId?: string;
title?: string;
description?: string;
+ priority?: number;
+ stateId?: string;
+ assigneeId?: string;
+ projectId?: string;
+ estimate?: number;
+ labelIds?: string[];
+ cycleId?: string;
+ dueDate?: string;
};
diff --git a/packages/twenty-apps/internal/twenty-linear/src/roles/default-function.role.ts b/packages/twenty-apps/internal/twenty-linear/src/roles/default-function.role.ts
index c6346b4a89a..d268739c633 100644
--- a/packages/twenty-apps/internal/twenty-linear/src/roles/default-function.role.ts
+++ b/packages/twenty-apps/internal/twenty-linear/src/roles/default-function.role.ts
@@ -1,10 +1,8 @@
-import { defineRole } from 'twenty-sdk/define';
+import { defineApplicationRole } from 'twenty-sdk/define';
import { DEFAULT_ROLE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
-// The Linear logic functions never read workspace data — they only call
-// Linear's GraphQL API on behalf of the connected user.
-export default defineRole({
+export default defineApplicationRole({
universalIdentifier: DEFAULT_ROLE_UNIVERSAL_IDENTIFIER,
label: 'Linear function role',
description: 'No-op role for Linear logic functions',
diff --git a/packages/twenty-apps/internal/twenty-linear/tsconfig.json b/packages/twenty-apps/internal/twenty-linear/tsconfig.json
index 3e0e97756bb..80f5e7ceb0c 100644
--- a/packages/twenty-apps/internal/twenty-linear/tsconfig.json
+++ b/packages/twenty-apps/internal/twenty-linear/tsconfig.json
@@ -5,6 +5,7 @@
"declaration": true,
"outDir": "./dist",
"rootDir": ".",
+ "jsx": "react-jsx",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
@@ -17,7 +18,7 @@
"strictBindCallApply": false,
"target": "es2020",
"module": "esnext",
- "lib": ["es2020"],
+ "lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"resolveJsonModule": true,
diff --git a/packages/twenty-apps/internal/twenty-linear/yarn.lock b/packages/twenty-apps/internal/twenty-linear/yarn.lock
index ef222716804..4da029894c6 100644
--- a/packages/twenty-apps/internal/twenty-linear/yarn.lock
+++ b/packages/twenty-apps/internal/twenty-linear/yarn.lock
@@ -3736,15 +3736,15 @@ __metadata:
languageName: node
linkType: hard
-"twenty-client-sdk@npm:2.3.0":
- version: 2.3.0
- resolution: "twenty-client-sdk@npm:2.3.0"
+"twenty-client-sdk@npm:2.3.1":
+ version: 2.3.1
+ resolution: "twenty-client-sdk@npm:2.3.1"
dependencies:
"@genql/cli": "npm:^3.0.3"
"@genql/runtime": "npm:^2.10.0"
esbuild: "npm:^0.25.0"
graphql: "npm:^16.8.1"
- checksum: 10c0/ab9a4f4ea9222eebdab6d80f396e5281cc0b78bc571163bc8a4f302afc38989ded21c67e0a8e2aad3cdad20f5ec24f60cd2286d9b38a86f7a77333aff5500b20
+ checksum: 10c0/b82a40b6411857345e40b81d32f7069364c6795e79306447d1c21b441315016d8c27ee2c128cd97b82379221812cb18bb556eb37dea337e83b05873b9bfc6c6f
languageName: node
linkType: hard
@@ -3754,16 +3754,16 @@ __metadata:
dependencies:
"@types/node": "npm:^24.7.2"
oxlint: "npm:^0.16.0"
- twenty-sdk: "npm:2.3.0"
+ twenty-sdk: "npm:2.3.1"
typescript: "npm:^5.9.3"
vite-tsconfig-paths: "npm:^4.3.2"
vitest: "npm:^3.1.1"
languageName: unknown
linkType: soft
-"twenty-sdk@npm:2.3.0":
- version: 2.3.0
- resolution: "twenty-sdk@npm:2.3.0"
+"twenty-sdk@npm:2.3.1":
+ version: 2.3.1
+ resolution: "twenty-sdk@npm:2.3.1"
dependencies:
"@genql/cli": "npm:^3.0.3"
"@genql/runtime": "npm:^2.10.0"
@@ -3783,7 +3783,7 @@ __metadata:
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
tinyglobby: "npm:^0.2.15"
- twenty-client-sdk: "npm:2.3.0"
+ twenty-client-sdk: "npm:2.3.1"
typescript: "npm:^5.9.2"
uuid: "npm:^13.0.0"
vite: "npm:^7.0.0"
@@ -3791,7 +3791,7 @@ __metadata:
zod: "npm:^4.1.11"
bin:
twenty: dist/cli.cjs
- checksum: 10c0/8020481e7500472ec841574458ed18a20588e31f51a8ff9b86e8ceddc933afd9e34840e4130b1aab53b66c35ea7e6b571d2f2dd7b35836bac96f487d84239c1f
+ checksum: 10c0/137a7a7e6d46175019406a21694103100e744e49154f2de5529962249ab06b9fc8240bc097fd2f231b315b6b8504ba3b45279e22aa80bdb9e735cd2570497eac
languageName: node
linkType: hard
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index f1dbe20150d..5d3e8f6b088 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -1967,6 +1967,18 @@ type RotateClientSecret {
clientSecret: String!
}
+type ApplicationRegistrationVariableDTO {
+ id: UUID!
+ key: String!
+ value: String
+ description: String!
+ isSecret: Boolean!
+ isRequired: Boolean!
+ isFilled: Boolean!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+}
+
type Relation {
type: RelationType!
sourceObjectMetadata: Object!
@@ -3034,7 +3046,7 @@ type Query {
findManyApplicationRegistrations: [ApplicationRegistration!]!
findOneApplicationRegistration(id: String!): ApplicationRegistration!
findApplicationRegistrationStats(id: String!): ApplicationRegistrationStats!
- findApplicationRegistrationVariables(applicationRegistrationId: String!): [ApplicationRegistrationVariable!]!
+ findApplicationRegistrationVariables(applicationRegistrationId: String!): [ApplicationRegistrationVariableDTO!]!
applicationRegistrationTarballUrl(id: String!): String
currentUser: User!
currentWorkspace: Workspace!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 2c77bfe8e8f..57485fa2a67 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -1605,6 +1605,19 @@ export interface RotateClientSecret {
__typename: 'RotateClientSecret'
}
+export interface ApplicationRegistrationVariableDTO {
+ id: Scalars['UUID']
+ key: Scalars['String']
+ value?: Scalars['String']
+ description: Scalars['String']
+ isSecret: Scalars['Boolean']
+ isRequired: Scalars['Boolean']
+ isFilled: Scalars['Boolean']
+ createdAt: Scalars['DateTime']
+ updatedAt: Scalars['DateTime']
+ __typename: 'ApplicationRegistrationVariableDTO'
+}
+
export interface Relation {
type: RelationType
sourceObjectMetadata: Object
@@ -2633,7 +2646,7 @@ export interface Query {
findManyApplicationRegistrations: ApplicationRegistration[]
findOneApplicationRegistration: ApplicationRegistration
findApplicationRegistrationStats: ApplicationRegistrationStats
- findApplicationRegistrationVariables: ApplicationRegistrationVariable[]
+ findApplicationRegistrationVariables: ApplicationRegistrationVariableDTO[]
applicationRegistrationTarballUrl?: Scalars['String']
currentUser: User
currentWorkspace: Workspace
@@ -4566,6 +4579,20 @@ export interface RotateClientSecretGenqlSelection{
__scalar?: boolean | number
}
+export interface ApplicationRegistrationVariableDTOGenqlSelection{
+ id?: boolean | number
+ key?: boolean | number
+ value?: boolean | number
+ description?: boolean | number
+ isSecret?: boolean | number
+ isRequired?: boolean | number
+ isFilled?: boolean | number
+ createdAt?: boolean | number
+ updatedAt?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface RelationGenqlSelection{
type?: boolean | number
sourceObjectMetadata?: ObjectGenqlSelection
@@ -5682,7 +5709,7 @@ export interface QueryGenqlSelection{
findManyApplicationRegistrations?: ApplicationRegistrationGenqlSelection
findOneApplicationRegistration?: (ApplicationRegistrationGenqlSelection & { __args: {id: Scalars['String']} })
findApplicationRegistrationStats?: (ApplicationRegistrationStatsGenqlSelection & { __args: {id: Scalars['String']} })
- findApplicationRegistrationVariables?: (ApplicationRegistrationVariableGenqlSelection & { __args: {applicationRegistrationId: Scalars['String']} })
+ findApplicationRegistrationVariables?: (ApplicationRegistrationVariableDTOGenqlSelection & { __args: {applicationRegistrationId: Scalars['String']} })
applicationRegistrationTarballUrl?: { __args: {id: Scalars['String']} }
currentUser?: UserGenqlSelection
currentWorkspace?: WorkspaceGenqlSelection
@@ -7400,6 +7427,14 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const ApplicationRegistrationVariableDTO_possibleTypes: string[] = ['ApplicationRegistrationVariableDTO']
+ export const isApplicationRegistrationVariableDTO = (obj?: { __typename?: any } | null): obj is ApplicationRegistrationVariableDTO => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationRegistrationVariableDTO"')
+ return ApplicationRegistrationVariableDTO_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"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index c635d1d47ff..2cb30aa50c9 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -56,30 +56,30 @@ export default {
181,
184,
187,
- 200,
- 225,
- 261,
+ 201,
+ 226,
262,
- 293,
- 302,
+ 263,
+ 294,
303,
304,
305,
- 307,
+ 306,
308,
309,
310,
311,
312,
313,
- 316,
- 318,
- 328,
- 335,
- 342,
- 378,
- 454,
- 466
+ 314,
+ 317,
+ 319,
+ 329,
+ 336,
+ 343,
+ 379,
+ 455,
+ 467
],
"types": {
"BillingProductDTO": {
@@ -946,10 +946,10 @@ export default {
3
],
"relation": [
- 199
+ 200
],
"morphRelations": [
- 199
+ 200
],
"object": [
55
@@ -1008,7 +1008,7 @@ export default {
45
],
"objectMetadata": [
- 207,
+ 208,
{
"paging": [
48,
@@ -1021,7 +1021,7 @@ export default {
}
],
"indexFieldMetadatas": [
- 205,
+ 206,
{
"paging": [
48,
@@ -1266,7 +1266,7 @@ export default {
46
],
"fields": [
- 212,
+ 213,
{
"paging": [
48,
@@ -1279,7 +1279,7 @@ export default {
}
],
"indexMetadatas": [
- 210,
+ 211,
{
"paging": [
48,
@@ -1878,7 +1878,7 @@ export default {
146
],
"billingEntitlements": [
- 224
+ 225
],
"hasValidEnterpriseKey": [
6
@@ -1979,7 +1979,7 @@ export default {
20
],
"deletedWorkspaceMembers": [
- 223
+ 224
],
"hasPassword": [
6
@@ -1991,7 +1991,7 @@ export default {
17
],
"availableWorkspaces": [
- 222
+ 223
],
"__typename": [
1
@@ -3860,9 +3860,41 @@ export default {
1
]
},
+ "ApplicationRegistrationVariableDTO": {
+ "id": [
+ 3
+ ],
+ "key": [
+ 1
+ ],
+ "value": [
+ 1
+ ],
+ "description": [
+ 1
+ ],
+ "isSecret": [
+ 6
+ ],
+ "isRequired": [
+ 6
+ ],
+ "isFilled": [
+ 6
+ ],
+ "createdAt": [
+ 4
+ ],
+ "updatedAt": [
+ 4
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"Relation": {
"type": [
- 200
+ 201
],
"sourceObjectMetadata": [
55
@@ -3911,10 +3943,10 @@ export default {
},
"IndexConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 201
+ 202
],
"__typename": [
1
@@ -3933,10 +3965,10 @@ export default {
},
"IndexIndexFieldMetadatasConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 204
+ 205
],
"__typename": [
1
@@ -3955,10 +3987,10 @@ export default {
},
"IndexObjectMetadataConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 206
+ 207
],
"__typename": [
1
@@ -3977,10 +4009,10 @@ export default {
},
"ObjectConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 206
+ 207
],
"__typename": [
1
@@ -3988,10 +4020,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 201
+ 202
],
"__typename": [
1
@@ -4010,10 +4042,10 @@ export default {
},
"ObjectFieldsConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 211
+ 212
],
"__typename": [
1
@@ -4021,10 +4053,10 @@ export default {
},
"FieldConnection": {
"pageInfo": [
- 202
+ 203
],
"edges": [
- 211
+ 212
],
"__typename": [
1
@@ -4094,7 +4126,7 @@ export default {
174
],
"workspace": [
- 217
+ 218
],
"__typename": [
1
@@ -4163,7 +4195,7 @@ export default {
1
],
"sso": [
- 220
+ 221
],
"__typename": [
1
@@ -4171,10 +4203,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 221
+ 222
],
"availableWorkspacesForSignUp": [
- 221
+ 222
],
"__typename": [
1
@@ -4202,7 +4234,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 225
+ 226
],
"value": [
6
@@ -4240,7 +4272,7 @@ export default {
1
],
"records": [
- 226
+ 227
],
"__typename": [
1
@@ -4310,10 +4342,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"tokens": [
- 234
+ 235
],
"availableWorkspaces": [
- 222
+ 223
],
"__typename": [
1
@@ -4365,7 +4397,7 @@ export default {
32
],
"workspace": [
- 239
+ 240
],
"__typename": [
1
@@ -4414,7 +4446,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 234
+ 235
],
"__typename": [
1
@@ -4455,7 +4487,7 @@ export default {
32
],
"workspace": [
- 239
+ 240
],
"__typename": [
1
@@ -4477,7 +4509,7 @@ export default {
1
],
"dailyUsage": [
- 250
+ 251
],
"__typename": [
1
@@ -4494,7 +4526,7 @@ export default {
193
],
"timeSeries": [
- 250
+ 251
],
"periodStart": [
4
@@ -4503,7 +4535,7 @@ export default {
4
],
"userDailyUsage": [
- 251
+ 252
],
"__typename": [
1
@@ -4660,13 +4692,13 @@ export default {
1
],
"driver": [
- 261
+ 262
],
"status": [
- 262
+ 263
],
"verificationRecords": [
- 259
+ 260
],
"verifiedAt": [
4
@@ -4716,7 +4748,7 @@ export default {
1
],
"location": [
- 264
+ 265
],
"__typename": [
1
@@ -4744,13 +4776,13 @@ export default {
},
"ImapSmtpCaldavConnectionParameters": {
"IMAP": [
- 266
+ 267
],
"SMTP": [
- 266
+ 267
],
"CALDAV": [
- 266
+ 267
],
"__typename": [
1
@@ -4770,7 +4802,7 @@ export default {
3
],
"connectionParameters": [
- 267
+ 268
],
"__typename": [
1
@@ -4943,7 +4975,7 @@ export default {
1
],
"series": [
- 274
+ 275
],
"xAxisLabel": [
1
@@ -4992,7 +5024,7 @@ export default {
1
],
"data": [
- 276
+ 277
],
"__typename": [
1
@@ -5000,7 +5032,7 @@ export default {
},
"LineChartData": {
"series": [
- 277
+ 278
],
"xAxisLabel": [
1
@@ -5037,7 +5069,7 @@ export default {
},
"PieChartData": {
"data": [
- 279
+ 280
],
"showLegend": [
6
@@ -5104,7 +5136,7 @@ export default {
1
],
"connectionParameters": [
- 267
+ 268
],
"lastSignedInAt": [
4
@@ -5153,13 +5185,13 @@ export default {
},
"PublicImapSmtpCaldavConnectionParameters": {
"IMAP": [
- 283
+ 284
],
"SMTP": [
- 283
+ 284
],
"CALDAV": [
- 283
+ 284
],
"__typename": [
1
@@ -5212,7 +5244,7 @@ export default {
4
],
"connectionParameters": [
- 284
+ 285
],
"__typename": [
1
@@ -5268,13 +5300,13 @@ export default {
},
"EventLogQueryResult": {
"records": [
- 287
+ 288
],
"totalCount": [
21
],
"pageInfo": [
- 288
+ 289
],
"__typename": [
1
@@ -5338,7 +5370,7 @@ export default {
1
],
"parts": [
- 272
+ 273
],
"processedAt": [
4
@@ -5352,7 +5384,7 @@ export default {
},
"AgentChatThread": {
"id": [
- 293
+ 294
],
"title": [
1
@@ -5408,7 +5440,7 @@ export default {
},
"AiSystemPromptPreview": {
"sections": [
- 294
+ 295
],
"estimatedTokenCount": [
21
@@ -5484,10 +5516,10 @@ export default {
3
],
"evaluations": [
- 299
+ 300
],
"messages": [
- 291
+ 292
],
"createdAt": [
4
@@ -5504,19 +5536,19 @@ export default {
1
],
"syncStatus": [
- 302
+ 303
],
"syncStage": [
- 303
+ 304
],
"visibility": [
- 304
+ 305
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 305
+ 306
],
"isSyncEnabled": [
6
@@ -5552,22 +5584,22 @@ export default {
3
],
"visibility": [
- 307
+ 308
],
"handle": [
1
],
"type": [
- 308
+ 309
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 309
+ 310
],
"messageFolderImportPolicy": [
- 310
+ 311
],
"excludeNonProfessionalEmails": [
6
@@ -5576,7 +5608,7 @@ export default {
6
],
"pendingGroupEmailsAction": [
- 311
+ 312
],
"isSyncEnabled": [
6
@@ -5585,10 +5617,10 @@ export default {
4
],
"syncStatus": [
- 312
+ 313
],
"syncStage": [
- 313
+ 314
],
"syncStageStartedAt": [
4
@@ -5609,7 +5641,7 @@ export default {
4
],
"connectedAccount": [
- 285
+ 286
],
"__typename": [
1
@@ -5624,7 +5656,7 @@ export default {
"MessageChannelSyncStage": {},
"CreateEmailGroupChannelOutput": {
"messageChannel": [
- 306
+ 307
],
"forwardingAddress": [
1
@@ -5653,7 +5685,7 @@ export default {
1
],
"pendingSyncAction": [
- 316
+ 317
],
"messageChannelId": [
3
@@ -5671,7 +5703,7 @@ export default {
"MessageFolderPendingSyncAction": {},
"CollectionHash": {
"collectionName": [
- 318
+ 319
],
"hash": [
1
@@ -5738,13 +5770,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 319
+ 320
],
"views": [
- 320
+ 321
],
"collectionHashes": [
- 317
+ 318
],
"__typename": [
1
@@ -5910,7 +5942,7 @@ export default {
2,
{
"input": [
- 324,
+ 325,
"GetApiKeyInput!"
]
}
@@ -6023,7 +6055,7 @@ export default {
41,
{
"input": [
- 325,
+ 326,
"LogicFunctionIdInput!"
]
}
@@ -6035,7 +6067,7 @@ export default {
15,
{
"input": [
- 325,
+ 326,
"LogicFunctionIdInput!"
]
}
@@ -6044,7 +6076,7 @@ export default {
1,
{
"input": [
- 325,
+ 326,
"LogicFunctionIdInput!"
]
}
@@ -6074,7 +6106,7 @@ export default {
}
],
"objectRecordCounts": [
- 208
+ 209
],
"object": [
55,
@@ -6086,7 +6118,7 @@ export default {
}
],
"objects": [
- 209,
+ 210,
{
"paging": [
48,
@@ -6108,7 +6140,7 @@ export default {
}
],
"indexMetadatas": [
- 203,
+ 204,
{
"paging": [
48,
@@ -6127,7 +6159,7 @@ export default {
25,
{
"input": [
- 326,
+ 327,
"AgentIdInput!"
]
}
@@ -6136,7 +6168,7 @@ export default {
29
],
"getToolIndex": [
- 271
+ 272
],
"getToolInputSchema": [
15,
@@ -6157,7 +6189,7 @@ export default {
}
],
"fields": [
- 213,
+ 214,
{
"paging": [
48,
@@ -6187,7 +6219,7 @@ export default {
}
],
"myMessageFolders": [
- 315,
+ 316,
{
"messageChannelId": [
3
@@ -6195,7 +6227,7 @@ export default {
}
],
"myMessageChannels": [
- 306,
+ 307,
{
"connectedAccountId": [
3
@@ -6203,10 +6235,10 @@ export default {
}
],
"myConnectedAccounts": [
- 282
+ 283
],
"connectedAccountById": [
- 285,
+ 286,
{
"id": [
3,
@@ -6215,10 +6247,10 @@ export default {
}
],
"connectedAccounts": [
- 282
+ 283
],
"myCalendarChannels": [
- 301,
+ 302,
{
"connectedAccountId": [
3
@@ -6226,10 +6258,10 @@ export default {
}
],
"webhooks": [
- 322
+ 323
],
"webhook": [
- 322,
+ 323,
{
"id": [
3,
@@ -6238,13 +6270,13 @@ export default {
}
],
"minimalMetadata": [
- 321
+ 322
],
"chatThreads": [
- 292
+ 293
],
"chatThread": [
- 292,
+ 293,
{
"id": [
3,
@@ -6253,7 +6285,7 @@ export default {
}
],
"chatMessages": [
- 291,
+ 292,
{
"threadId": [
3,
@@ -6262,7 +6294,7 @@ export default {
}
],
"chatStreamCatchupChunks": [
- 296,
+ 297,
{
"threadId": [
3,
@@ -6271,13 +6303,13 @@ export default {
}
],
"getAiSystemPromptPreview": [
- 295
+ 296
],
"skills": [
- 290
+ 291
],
"skill": [
- 290,
+ 291,
{
"id": [
3,
@@ -6286,7 +6318,7 @@ export default {
}
],
"agentTurns": [
- 300,
+ 301,
{
"agentId": [
3,
@@ -6295,7 +6327,7 @@ export default {
}
],
"checkUserExists": [
- 247,
+ 248,
{
"email": [
1,
@@ -6307,7 +6339,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 248,
+ 249,
{
"inviteHash": [
1,
@@ -6325,7 +6357,7 @@ export default {
}
],
"validatePasswordResetToken": [
- 242,
+ 243,
{
"passwordResetToken": [
1,
@@ -6373,7 +6405,7 @@ export default {
}
],
"findApplicationRegistrationVariables": [
- 5,
+ 199,
{
"applicationRegistrationId": [
1,
@@ -6428,46 +6460,46 @@ export default {
}
],
"getSSOIdentityProviders": [
- 218
+ 219
],
"eventLogs": [
- 289,
+ 290,
{
"input": [
- 327,
+ 328,
"EventLogQueryInput!"
]
}
],
"pieChartData": [
- 280,
+ 281,
{
"input": [
- 331,
+ 332,
"PieChartDataInput!"
]
}
],
"lineChartData": [
- 278,
+ 279,
{
"input": [
- 332,
+ 333,
"LineChartDataInput!"
]
}
],
"barChartData": [
- 275,
+ 276,
{
"input": [
- 333,
+ 334,
"BarChartDataInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 268,
+ 269,
{
"id": [
3,
@@ -6476,7 +6508,7 @@ export default {
}
],
"getAutoCompleteAddress": [
- 263,
+ 264,
{
"address": [
1,
@@ -6495,7 +6527,7 @@ export default {
}
],
"getAddressDetails": [
- 265,
+ 266,
{
"placeId": [
1,
@@ -6508,27 +6540,27 @@ export default {
}
],
"getUsageAnalytics": [
- 252,
+ 253,
{
"input": [
- 334
+ 335
]
}
],
"getPostgresCredentials": [
- 270
+ 271
],
"findManyPublicDomains": [
- 258
+ 259
],
"getEmailingDomains": [
- 260
+ 261
],
"findManyMarketplaceApps": [
- 256
+ 257
],
"findMarketplaceAppDetail": [
- 257,
+ 258,
{
"universalIdentifier": [
1,
@@ -6550,7 +6582,7 @@ export default {
},
"LogicFunctionIdInput": {
"id": [
- 293
+ 294
],
"__typename": [
1
@@ -6566,10 +6598,10 @@ export default {
},
"EventLogQueryInput": {
"table": [
- 328
+ 329
],
"filters": [
- 329
+ 330
],
"first": [
21
@@ -6590,7 +6622,7 @@ export default {
1
],
"dateRange": [
- 330
+ 331
],
"recordId": [
1
@@ -6657,7 +6689,7 @@ export default {
1
],
"operationTypes": [
- 335
+ 336
],
"__typename": [
1
@@ -6669,7 +6701,7 @@ export default {
6,
{
"input": [
- 337,
+ 338,
"AddQuerySubscriptionInput!"
]
}
@@ -6678,7 +6710,7 @@ export default {
6,
{
"input": [
- 338,
+ 339,
"RemoveQueryFromEventStreamInput!"
]
}
@@ -6687,7 +6719,7 @@ export default {
157,
{
"inputs": [
- 339,
+ 340,
"[CreateNavigationMenuItemInput!]!"
]
}
@@ -6696,7 +6728,7 @@ export default {
157,
{
"input": [
- 339,
+ 340,
"CreateNavigationMenuItemInput!"
]
}
@@ -6705,7 +6737,7 @@ export default {
157,
{
"inputs": [
- 340,
+ 341,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -6714,7 +6746,7 @@ export default {
157,
{
"input": [
- 340,
+ 341,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -6741,7 +6773,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
]
}
@@ -6750,7 +6782,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
]
}
@@ -6759,7 +6791,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
]
}
@@ -6768,7 +6800,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
]
}
@@ -6777,7 +6809,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
]
}
@@ -6786,7 +6818,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
],
"fieldMetadataId": [
@@ -6799,7 +6831,7 @@ export default {
129,
{
"file": [
- 342,
+ 343,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -6812,7 +6844,7 @@ export default {
61,
{
"input": [
- 343,
+ 344,
"CreateViewFilterGroupInput!"
]
}
@@ -6825,7 +6857,7 @@ export default {
"String!"
],
"input": [
- 344,
+ 345,
"UpdateViewFilterGroupInput!"
]
}
@@ -6852,7 +6884,7 @@ export default {
63,
{
"input": [
- 345,
+ 346,
"CreateViewFilterInput!"
]
}
@@ -6861,7 +6893,7 @@ export default {
63,
{
"input": [
- 346,
+ 347,
"UpdateViewFilterInput!"
]
}
@@ -6870,7 +6902,7 @@ export default {
63,
{
"input": [
- 348,
+ 349,
"DeleteViewFilterInput!"
]
}
@@ -6879,7 +6911,7 @@ export default {
63,
{
"input": [
- 349,
+ 350,
"DestroyViewFilterInput!"
]
}
@@ -6888,7 +6920,7 @@ export default {
69,
{
"input": [
- 350,
+ 351,
"CreateViewInput!"
]
}
@@ -6901,7 +6933,7 @@ export default {
"String!"
],
"input": [
- 351,
+ 352,
"UpdateViewInput!"
]
}
@@ -6928,7 +6960,7 @@ export default {
69,
{
"input": [
- 352,
+ 353,
"UpsertViewWidgetInput!"
]
}
@@ -6937,7 +6969,7 @@ export default {
66,
{
"input": [
- 357,
+ 358,
"CreateViewSortInput!"
]
}
@@ -6946,7 +6978,7 @@ export default {
66,
{
"input": [
- 358,
+ 359,
"UpdateViewSortInput!"
]
}
@@ -6955,7 +6987,7 @@ export default {
6,
{
"input": [
- 360,
+ 361,
"DeleteViewSortInput!"
]
}
@@ -6964,7 +6996,7 @@ export default {
6,
{
"input": [
- 361,
+ 362,
"DestroyViewSortInput!"
]
}
@@ -6973,7 +7005,7 @@ export default {
59,
{
"input": [
- 362,
+ 363,
"UpdateViewFieldInput!"
]
}
@@ -6982,7 +7014,7 @@ export default {
59,
{
"input": [
- 364,
+ 365,
"CreateViewFieldInput!"
]
}
@@ -6991,7 +7023,7 @@ export default {
59,
{
"inputs": [
- 364,
+ 365,
"[CreateViewFieldInput!]!"
]
}
@@ -7000,7 +7032,7 @@ export default {
59,
{
"input": [
- 365,
+ 366,
"DeleteViewFieldInput!"
]
}
@@ -7009,7 +7041,7 @@ export default {
59,
{
"input": [
- 366,
+ 367,
"DestroyViewFieldInput!"
]
}
@@ -7018,7 +7050,7 @@ export default {
68,
{
"input": [
- 367,
+ 368,
"UpdateViewFieldGroupInput!"
]
}
@@ -7027,7 +7059,7 @@ export default {
68,
{
"input": [
- 369,
+ 370,
"CreateViewFieldGroupInput!"
]
}
@@ -7036,7 +7068,7 @@ export default {
68,
{
"inputs": [
- 369,
+ 370,
"[CreateViewFieldGroupInput!]!"
]
}
@@ -7045,7 +7077,7 @@ export default {
68,
{
"input": [
- 370,
+ 371,
"DeleteViewFieldGroupInput!"
]
}
@@ -7054,7 +7086,7 @@ export default {
68,
{
"input": [
- 371,
+ 372,
"DestroyViewFieldGroupInput!"
]
}
@@ -7063,7 +7095,7 @@ export default {
69,
{
"input": [
- 372,
+ 373,
"UpsertFieldsWidgetInput!"
]
}
@@ -7072,7 +7104,7 @@ export default {
2,
{
"input": [
- 375,
+ 376,
"CreateApiKeyInput!"
]
}
@@ -7081,7 +7113,7 @@ export default {
2,
{
"input": [
- 376,
+ 377,
"UpdateApiKeyInput!"
]
}
@@ -7090,7 +7122,7 @@ export default {
2,
{
"input": [
- 377,
+ 378,
"RevokeApiKeyInput!"
]
}
@@ -7132,7 +7164,7 @@ export default {
127,
{
"type": [
- 378,
+ 379,
"AnalyticsType!"
],
"name": [
@@ -7245,7 +7277,7 @@ export default {
128,
{
"input": [
- 379,
+ 380,
"CreateApprovedAccessDomainInput!"
]
}
@@ -7254,7 +7286,7 @@ export default {
6,
{
"input": [
- 380,
+ 381,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -7263,7 +7295,7 @@ export default {
128,
{
"input": [
- 381,
+ 382,
"ValidateApprovedAccessDomainInput!"
]
}
@@ -7272,7 +7304,7 @@ export default {
122,
{
"input": [
- 382,
+ 383,
"CreatePageLayoutTabInput!"
]
}
@@ -7285,7 +7317,7 @@ export default {
"String!"
],
"input": [
- 383,
+ 384,
"UpdatePageLayoutTabInput!"
]
}
@@ -7303,7 +7335,7 @@ export default {
123,
{
"input": [
- 384,
+ 385,
"CreatePageLayoutInput!"
]
}
@@ -7316,7 +7348,7 @@ export default {
"String!"
],
"input": [
- 385,
+ 386,
"UpdatePageLayoutInput!"
]
}
@@ -7338,7 +7370,7 @@ export default {
"String!"
],
"input": [
- 386,
+ 387,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -7391,7 +7423,7 @@ export default {
84,
{
"input": [
- 390,
+ 391,
"CreatePageLayoutWidgetInput!"
]
}
@@ -7404,7 +7436,7 @@ export default {
"String!"
],
"input": [
- 391,
+ 392,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -7422,7 +7454,7 @@ export default {
41,
{
"input": [
- 325,
+ 326,
"LogicFunctionIdInput!"
]
}
@@ -7431,7 +7463,7 @@ export default {
41,
{
"input": [
- 392,
+ 393,
"CreateLogicFunctionFromSourceInput!"
]
}
@@ -7440,7 +7472,7 @@ export default {
166,
{
"input": [
- 393,
+ 394,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7449,7 +7481,7 @@ export default {
6,
{
"input": [
- 394,
+ 395,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -7458,7 +7490,7 @@ export default {
35,
{
"input": [
- 396,
+ 397,
"CreateCommandMenuItemInput!"
]
}
@@ -7467,7 +7499,7 @@ export default {
35,
{
"input": [
- 397,
+ 398,
"UpdateCommandMenuItemInput!"
]
}
@@ -7485,7 +7517,7 @@ export default {
34,
{
"input": [
- 398,
+ 399,
"CreateFrontComponentInput!"
]
}
@@ -7494,7 +7526,7 @@ export default {
34,
{
"input": [
- 399,
+ 400,
"UpdateFrontComponentInput!"
]
}
@@ -7512,7 +7544,7 @@ export default {
55,
{
"input": [
- 401,
+ 402,
"CreateOneObjectInput!"
]
}
@@ -7521,7 +7553,7 @@ export default {
55,
{
"input": [
- 403,
+ 404,
"DeleteOneObjectInput!"
]
}
@@ -7530,7 +7562,7 @@ export default {
55,
{
"input": [
- 404,
+ 405,
"UpdateOneObjectInput!"
]
}
@@ -7539,7 +7571,7 @@ export default {
25,
{
"input": [
- 406,
+ 407,
"CreateAgentInput!"
]
}
@@ -7548,7 +7580,7 @@ export default {
25,
{
"input": [
- 407,
+ 408,
"UpdateAgentInput!"
]
}
@@ -7557,7 +7589,7 @@ export default {
25,
{
"input": [
- 326,
+ 327,
"AgentIdInput!"
]
}
@@ -7579,7 +7611,7 @@ export default {
29,
{
"createRoleInput": [
- 408,
+ 409,
"CreateRoleInput!"
]
}
@@ -7588,7 +7620,7 @@ export default {
29,
{
"updateRoleInput": [
- 409,
+ 410,
"UpdateRoleInput!"
]
}
@@ -7606,7 +7638,7 @@ export default {
16,
{
"upsertObjectPermissionsInput": [
- 411,
+ 412,
"UpsertObjectPermissionsInput!"
]
}
@@ -7615,7 +7647,7 @@ export default {
27,
{
"upsertPermissionFlagsInput": [
- 413,
+ 414,
"UpsertPermissionFlagsInput!"
]
}
@@ -7624,16 +7656,16 @@ export default {
26,
{
"upsertFieldPermissionsInput": [
- 414,
+ 415,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 228,
+ 229,
{
"input": [
- 416,
+ 417,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -7664,7 +7696,7 @@ export default {
43,
{
"input": [
- 419,
+ 420,
"CreateOneFieldMetadataInput!"
]
}
@@ -7673,7 +7705,7 @@ export default {
43,
{
"input": [
- 421,
+ 422,
"UpdateOneFieldMetadataInput!"
]
}
@@ -7682,7 +7714,7 @@ export default {
43,
{
"input": [
- 423,
+ 424,
"DeleteOneFieldInput!"
]
}
@@ -7691,7 +7723,7 @@ export default {
65,
{
"input": [
- 424,
+ 425,
"CreateViewGroupInput!"
]
}
@@ -7700,7 +7732,7 @@ export default {
65,
{
"inputs": [
- 424,
+ 425,
"[CreateViewGroupInput!]!"
]
}
@@ -7709,7 +7741,7 @@ export default {
65,
{
"input": [
- 425,
+ 426,
"UpdateViewGroupInput!"
]
}
@@ -7718,7 +7750,7 @@ export default {
65,
{
"inputs": [
- 425,
+ 426,
"[UpdateViewGroupInput!]!"
]
}
@@ -7727,7 +7759,7 @@ export default {
65,
{
"input": [
- 427,
+ 428,
"DeleteViewGroupInput!"
]
}
@@ -7736,49 +7768,49 @@ export default {
65,
{
"input": [
- 428,
+ 429,
"DestroyViewGroupInput!"
]
}
],
"updateMessageFolder": [
- 315,
+ 316,
{
"input": [
- 429,
+ 430,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 315,
+ 316,
{
"input": [
- 431,
+ 432,
"UpdateMessageFoldersInput!"
]
}
],
"updateMessageChannel": [
- 306,
+ 307,
{
"input": [
- 432,
+ 433,
"UpdateMessageChannelInput!"
]
}
],
"createEmailGroupChannel": [
- 314,
+ 315,
{
"input": [
- 434,
+ 435,
"CreateEmailGroupChannelInput!"
]
}
],
"deleteEmailGroupChannel": [
- 306,
+ 307,
{
"id": [
3,
@@ -7787,7 +7819,7 @@ export default {
}
],
"deleteConnectedAccount": [
- 282,
+ 283,
{
"id": [
3,
@@ -7796,34 +7828,34 @@ export default {
}
],
"updateCalendarChannel": [
- 301,
+ 302,
{
"input": [
- 435,
+ 436,
"UpdateCalendarChannelInput!"
]
}
],
"createWebhook": [
- 322,
+ 323,
{
"input": [
- 437,
+ 438,
"CreateWebhookInput!"
]
}
],
"updateWebhook": [
- 322,
+ 323,
{
"input": [
- 438,
+ 439,
"UpdateWebhookInput!"
]
}
],
"deleteWebhook": [
- 322,
+ 323,
{
"id": [
3,
@@ -7832,10 +7864,10 @@ export default {
}
],
"createChatThread": [
- 292
+ 293
],
"sendChatMessage": [
- 297,
+ 298,
{
"threadId": [
3,
@@ -7871,7 +7903,7 @@ export default {
}
],
"renameChatThread": [
- 292,
+ 293,
{
"id": [
3,
@@ -7884,7 +7916,7 @@ export default {
}
],
"archiveChatThread": [
- 292,
+ 293,
{
"id": [
3,
@@ -7893,7 +7925,7 @@ export default {
}
],
"unarchiveChatThread": [
- 292,
+ 293,
{
"id": [
3,
@@ -7920,25 +7952,25 @@ export default {
}
],
"createSkill": [
- 290,
+ 291,
{
"input": [
- 440,
+ 441,
"CreateSkillInput!"
]
}
],
"updateSkill": [
- 290,
+ 291,
{
"input": [
- 441,
+ 442,
"UpdateSkillInput!"
]
}
],
"deleteSkill": [
- 290,
+ 291,
{
"id": [
3,
@@ -7947,7 +7979,7 @@ export default {
}
],
"activateSkill": [
- 290,
+ 291,
{
"id": [
3,
@@ -7956,7 +7988,7 @@ export default {
}
],
"deactivateSkill": [
- 290,
+ 291,
{
"id": [
3,
@@ -7965,7 +7997,7 @@ export default {
}
],
"evaluateAgentTurn": [
- 299,
+ 300,
{
"turnId": [
3,
@@ -7974,7 +8006,7 @@ export default {
}
],
"runEvaluationInput": [
- 300,
+ 301,
{
"agentId": [
3,
@@ -7987,16 +8019,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 237,
+ 238,
{
"input": [
- 442,
+ 443,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 246,
+ 247,
{
"email": [
1,
@@ -8022,7 +8054,7 @@ export default {
}
],
"signIn": [
- 235,
+ 236,
{
"email": [
1,
@@ -8044,7 +8076,7 @@ export default {
}
],
"verifyEmailAndGetLoginToken": [
- 243,
+ 244,
{
"emailVerificationToken": [
1,
@@ -8064,7 +8096,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 235,
+ 236,
{
"emailVerificationToken": [
1,
@@ -8080,7 +8112,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 245,
+ 246,
{
"otp": [
1,
@@ -8100,7 +8132,7 @@ export default {
}
],
"signUp": [
- 235,
+ 236,
{
"email": [
1,
@@ -8122,7 +8154,7 @@ export default {
}
],
"signUpInWorkspace": [
- 240,
+ 241,
{
"email": [
1,
@@ -8153,13 +8185,13 @@ export default {
}
],
"signUpInNewWorkspace": [
- 240
+ 241
],
"generateTransientToken": [
- 241
+ 242
],
"getAuthTokensFromLoginToken": [
- 245,
+ 246,
{
"loginToken": [
1,
@@ -8172,7 +8204,7 @@ export default {
}
],
"authorizeApp": [
- 233,
+ 234,
{
"clientId": [
1,
@@ -8194,7 +8226,7 @@ export default {
}
],
"renewToken": [
- 245,
+ 246,
{
"appToken": [
1,
@@ -8203,7 +8235,7 @@ export default {
}
],
"generateApiKeyToken": [
- 244,
+ 245,
{
"apiKeyId": [
3,
@@ -8216,7 +8248,7 @@ export default {
}
],
"emailPasswordResetLink": [
- 236,
+ 237,
{
"email": [
1,
@@ -8228,7 +8260,7 @@ export default {
}
],
"updatePasswordViaResetToken": [
- 238,
+ 239,
{
"passwordResetToken": [
1,
@@ -8244,7 +8276,7 @@ export default {
196,
{
"input": [
- 443,
+ 444,
"CreateApplicationRegistrationInput!"
]
}
@@ -8253,7 +8285,7 @@ export default {
7,
{
"input": [
- 444,
+ 445,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8280,7 +8312,7 @@ export default {
5,
{
"input": [
- 446,
+ 447,
"CreateApplicationRegistrationVariableInput!"
]
}
@@ -8289,7 +8321,7 @@ export default {
5,
{
"input": [
- 447,
+ 448,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8307,7 +8339,7 @@ export default {
7,
{
"file": [
- 342,
+ 343,
"Upload!"
],
"universalIdentifier": [
@@ -8329,7 +8361,7 @@ export default {
}
],
"initiateOTPProvisioning": [
- 231,
+ 232,
{
"loginToken": [
1,
@@ -8342,10 +8374,10 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 231
+ 232
],
"deleteTwoFactorAuthenticationMethod": [
- 230,
+ 231,
{
"twoFactorAuthenticationMethodId": [
3,
@@ -8354,7 +8386,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 232,
+ 233,
{
"otp": [
1,
@@ -8378,7 +8410,7 @@ export default {
6,
{
"input": [
- 449,
+ 450,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8396,7 +8428,7 @@ export default {
}
],
"resendEmailVerificationToken": [
- 214,
+ 215,
{
"email": [
1,
@@ -8412,7 +8444,7 @@ export default {
75,
{
"data": [
- 450,
+ 451,
"ActivateWorkspaceInput!"
]
}
@@ -8421,7 +8453,7 @@ export default {
75,
{
"data": [
- 451,
+ 452,
"UpdateWorkspaceInput!"
]
}
@@ -8430,7 +8462,7 @@ export default {
75
],
"checkCustomDomainValidRecords": [
- 227
+ 228
],
"installApplication": [
6,
@@ -8448,7 +8480,7 @@ export default {
6,
{
"workspaceMigration": [
- 452,
+ 453,
"WorkspaceMigrationInput!"
]
}
@@ -8463,43 +8495,43 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 219,
+ 220,
{
"input": [
- 455,
+ 456,
"SetupOIDCSsoInput!"
]
}
],
"createSAMLIdentityProvider": [
- 219,
+ 220,
{
"input": [
- 456,
+ 457,
"SetupSAMLSsoInput!"
]
}
],
"deleteSSOIdentityProvider": [
- 215,
+ 216,
{
"input": [
- 457,
+ 458,
"DeleteSsoInput!"
]
}
],
"editSSOIdentityProvider": [
- 216,
+ 217,
{
"input": [
- 458,
+ 459,
"EditSsoInput!"
]
}
],
"duplicateDashboard": [
- 281,
+ 282,
{
"id": [
3,
@@ -8508,7 +8540,7 @@ export default {
}
],
"impersonate": [
- 249,
+ 250,
{
"userId": [
3,
@@ -8521,16 +8553,16 @@ export default {
}
],
"sendEmail": [
- 286,
+ 287,
{
"input": [
- 459,
+ 460,
"SendEmailInput!"
]
}
],
"startChannelSync": [
- 273,
+ 274,
{
"connectedAccountId": [
3,
@@ -8539,7 +8571,7 @@ export default {
}
],
"saveImapSmtpCaldavAccount": [
- 269,
+ 270,
{
"accountOwnerId": [
3,
@@ -8550,7 +8582,7 @@ export default {
"String!"
],
"connectionParameters": [
- 461,
+ 462,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -8562,19 +8594,19 @@ export default {
168,
{
"input": [
- 463,
+ 464,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"enablePostgresProxy": [
- 270
+ 271
],
"disablePostgresProxy": [
- 270
+ 271
],
"createPublicDomain": [
- 258,
+ 259,
{
"domain": [
1,
@@ -8586,7 +8618,7 @@ export default {
}
],
"updatePublicDomain": [
- 258,
+ 259,
{
"domain": [
1,
@@ -8607,7 +8639,7 @@ export default {
}
],
"checkPublicDomainValidRecords": [
- 227,
+ 228,
{
"domain": [
1,
@@ -8616,14 +8648,14 @@ export default {
}
],
"createEmailingDomain": [
- 260,
+ 261,
{
"domain": [
1,
"String!"
],
"driver": [
- 261,
+ 262,
"EmailingDomainDriver!"
]
}
@@ -8638,7 +8670,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 260,
+ 261,
{
"id": [
1,
@@ -8650,7 +8682,7 @@ export default {
77,
{
"input": [
- 464,
+ 465,
"CreateOneAppTokenInput!"
]
}
@@ -8671,7 +8703,7 @@ export default {
6
],
"createDevelopmentApplication": [
- 253,
+ 254,
{
"universalIdentifier": [
1,
@@ -8693,7 +8725,7 @@ export default {
}
],
"syncApplication": [
- 254,
+ 255,
{
"manifest": [
15,
@@ -8702,10 +8734,10 @@ export default {
}
],
"uploadApplicationFile": [
- 255,
+ 256,
{
"file": [
- 342,
+ 343,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -8713,7 +8745,7 @@ export default {
"String!"
],
"fileFolder": [
- 466,
+ 467,
"FileFolder!"
],
"filePath": [
@@ -8822,7 +8854,7 @@ export default {
3
],
"update": [
- 341
+ 342
],
"__typename": [
1
@@ -8929,7 +8961,7 @@ export default {
3
],
"update": [
- 347
+ 348
],
"__typename": [
1
@@ -9085,16 +9117,16 @@ export default {
3
],
"viewFields": [
- 353
+ 354
],
"viewFilters": [
- 354
+ 355
],
"viewFilterGroups": [
- 355
+ 356
],
"viewSorts": [
- 356
+ 357
],
"__typename": [
1
@@ -9199,7 +9231,7 @@ export default {
3
],
"update": [
- 359
+ 360
],
"__typename": [
1
@@ -9234,7 +9266,7 @@ export default {
3
],
"update": [
- 363
+ 364
],
"__typename": [
1
@@ -9310,7 +9342,7 @@ export default {
3
],
"update": [
- 368
+ 369
],
"__typename": [
1
@@ -9374,10 +9406,10 @@ export default {
3
],
"groups": [
- 373
+ 374
],
"fields": [
- 374
+ 375
],
"__typename": [
1
@@ -9397,7 +9429,7 @@ export default {
6
],
"fields": [
- 374
+ 375
],
"__typename": [
1
@@ -9566,7 +9598,7 @@ export default {
3
],
"tabs": [
- 387
+ 388
],
"__typename": [
1
@@ -9589,7 +9621,7 @@ export default {
88
],
"widgets": [
- 388
+ 389
],
"__typename": [
1
@@ -9612,7 +9644,7 @@ export default {
3
],
"gridPosition": [
- 389
+ 390
],
"position": [
15
@@ -9661,7 +9693,7 @@ export default {
3
],
"gridPosition": [
- 389
+ 390
],
"position": [
15
@@ -9687,7 +9719,7 @@ export default {
3
],
"gridPosition": [
- 389
+ 390
],
"position": [
15
@@ -9759,7 +9791,7 @@ export default {
3
],
"update": [
- 395
+ 396
],
"__typename": [
1
@@ -9919,7 +9951,7 @@ export default {
3
],
"update": [
- 400
+ 401
],
"__typename": [
1
@@ -9938,7 +9970,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 402
+ 403
],
"__typename": [
1
@@ -9998,7 +10030,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 405
+ 406
],
"id": [
3
@@ -10170,7 +10202,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 410
+ 411
],
"id": [
3
@@ -10225,7 +10257,7 @@ export default {
3
],
"objectPermissions": [
- 412
+ 413
],
"__typename": [
1
@@ -10267,7 +10299,7 @@ export default {
3
],
"fieldPermissions": [
- 415
+ 416
],
"__typename": [
1
@@ -10298,10 +10330,10 @@ export default {
3
],
"predicates": [
- 417
+ 418
],
"predicateGroups": [
- 418
+ 419
],
"__typename": [
1
@@ -10361,7 +10393,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 420
+ 421
],
"__typename": [
1
@@ -10434,7 +10466,7 @@ export default {
3
],
"update": [
- 422
+ 423
],
"__typename": [
1
@@ -10526,7 +10558,7 @@ export default {
3
],
"update": [
- 426
+ 427
],
"__typename": [
1
@@ -10570,7 +10602,7 @@ export default {
3
],
"update": [
- 430
+ 431
],
"__typename": [
1
@@ -10589,7 +10621,7 @@ export default {
3
],
"update": [
- 430
+ 431
],
"__typename": [
1
@@ -10600,7 +10632,7 @@ export default {
3
],
"update": [
- 433
+ 434
],
"__typename": [
1
@@ -10608,16 +10640,16 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"visibility": [
- 307
+ 308
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 309
+ 310
],
"messageFolderImportPolicy": [
- 310
+ 311
],
"isSyncEnabled": [
6
@@ -10645,7 +10677,7 @@ export default {
3
],
"update": [
- 436
+ 437
],
"__typename": [
1
@@ -10653,13 +10685,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 304
+ 305
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 305
+ 306
],
"isSyncEnabled": [
6
@@ -10693,7 +10725,7 @@ export default {
3
],
"update": [
- 439
+ 440
],
"__typename": [
1
@@ -10798,7 +10830,7 @@ export default {
1
],
"update": [
- 445
+ 446
],
"__typename": [
1
@@ -10846,7 +10878,7 @@ export default {
1
],
"update": [
- 448
+ 449
],
"__typename": [
1
@@ -10964,7 +10996,7 @@ export default {
},
"WorkspaceMigrationInput": {
"actions": [
- 453
+ 454
],
"__typename": [
1
@@ -10972,10 +11004,10 @@ export default {
},
"WorkspaceMigrationDeleteActionInput": {
"type": [
- 454
+ 455
],
"metadataName": [
- 318
+ 319
],
"universalIdentifier": [
1
@@ -11067,7 +11099,7 @@ export default {
1
],
"files": [
- 460
+ 461
],
"__typename": [
1
@@ -11086,13 +11118,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"IMAP": [
- 462
+ 463
],
"SMTP": [
- 462
+ 463
],
"CALDAV": [
- 462
+ 463
],
"__typename": [
1
@@ -11131,7 +11163,7 @@ export default {
},
"CreateOneAppTokenInput": {
"appToken": [
- 465
+ 466
],
"__typename": [
1
@@ -11157,16 +11189,16 @@ export default {
}
],
"logicFunctionLogs": [
- 229,
+ 230,
{
"input": [
- 468,
+ 469,
"LogicFunctionLogsInput!"
]
}
],
"onAgentChatEvent": [
- 298,
+ 299,
{
"threadId": [
3,
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 5c9c64611e3..96153e5d2f9 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -362,6 +362,19 @@ export type ApplicationRegistrationVariable = {
updatedAt: Scalars['DateTime'];
};
+export type ApplicationRegistrationVariableDto = {
+ __typename?: 'ApplicationRegistrationVariableDTO';
+ createdAt: Scalars['DateTime'];
+ description: Scalars['String'];
+ id: Scalars['UUID'];
+ isFilled: Scalars['Boolean'];
+ isRequired: Scalars['Boolean'];
+ isSecret: Scalars['Boolean'];
+ key: Scalars['String'];
+ updatedAt: Scalars['DateTime'];
+ value?: Maybe<Scalars['String']>;
+};
+
export type ApplicationTokenPair = {
__typename?: 'ApplicationTokenPair';
applicationAccessToken: AuthToken;
@@ -4119,7 +4132,7 @@ export type Query = {
findApplicationRegistrationByClientId?: Maybe<PublicApplicationRegistration>;
findApplicationRegistrationByUniversalIdentifier?: Maybe<ApplicationRegistration>;
findApplicationRegistrationStats: ApplicationRegistrationStats;
- findApplicationRegistrationVariables: Array<ApplicationRegistrationVariable>;
+ findApplicationRegistrationVariables: Array<ApplicationRegistrationVariableDto>;
findManyAgents: Array<Agent>;
findManyApplicationRegistrations: Array<ApplicationRegistration>;
findManyApplications: Array<Application>;
@@ -7007,7 +7020,7 @@ export type FindApplicationRegistrationVariablesQueryVariables = Exact<{
}>;
-export type FindApplicationRegistrationVariablesQuery = { __typename?: 'Query', findApplicationRegistrationVariables: Array<{ __typename?: 'ApplicationRegistrationVariable', id: string, key: string, description: string, isSecret: boolean, isRequired: boolean, isFilled: boolean, createdAt: string, updatedAt: string }> };
+export type FindApplicationRegistrationVariablesQuery = { __typename?: 'Query', findApplicationRegistrationVariables: Array<{ __typename?: 'ApplicationRegistrationVariableDTO', id: string, key: string, value?: string | null, description: string, isSecret: boolean, isRequired: boolean, isFilled: boolean, createdAt: string, updatedAt: string }> };
export type FindManyApplicationRegistrationsQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8092,7 +8105,7 @@ export const UpdateApplicationRegistrationDocument = {"kind":"Document","definit
export const UpdateApplicationRegistrationVariableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateApplicationRegistrationVariable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateApplicationRegistrationVariableInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateApplicationRegistrationVariable"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"isFilled"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<UpdateApplicationRegistrationVariableMutation, UpdateApplicationRegistrationVariableMutationVariables>;
export const ApplicationRegistrationTarballUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ApplicationRegistrationTarballUrl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationTarballUrl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<ApplicationRegistrationTarballUrlQuery, ApplicationRegistrationTarballUrlQueryVariables>;
export const FindApplicationRegistrationStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindApplicationRegistrationStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findApplicationRegistrationStats"},"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":"activeInstalls"}},{"kind":"Field","name":{"kind":"Name","value":"mostInstalledVersion"}},{"kind":"Field","name":{"kind":"Name","value":"versionDistribution"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode<FindApplicationRegistrationStatsQuery, FindApplicationRegistrationStatsQueryVariables>;
-export const FindApplicationRegistrationVariablesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindApplicationRegistrationVariables"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findApplicationRegistrationVariables"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"isFilled"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<FindApplicationRegistrationVariablesQuery, FindApplicationRegistrationVariablesQueryVariables>;
+export const FindApplicationRegistrationVariablesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindApplicationRegistrationVariables"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findApplicationRegistrationVariables"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"isFilled"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<FindApplicationRegistrationVariablesQuery, FindApplicationRegistrationVariablesQueryVariables>;
export const FindManyApplicationRegistrationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"isPreInstalled"}},{"kind":"Field","name":{"kind":"Name","value":"isConfigured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyApplicationRegistrationsQuery, FindManyApplicationRegistrationsQueryVariables>;
export const FindOneApplicationRegistrationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationRegistration"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplicationRegistration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"isPreInstalled"}},{"kind":"Field","name":{"kind":"Name","value":"isConfigured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneApplicationRegistrationQuery, FindOneApplicationRegistrationQueryVariables>;
export const UninstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UninstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uninstallApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}]}]}}]} as unknown as DocumentNode<UninstallApplicationMutation, UninstallApplicationMutationVariables>;
diff --git a/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/findApplicationRegistrationVariables.ts b/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/findApplicationRegistrationVariables.ts
index 5be591bb89c..b2a82e6ac03 100644
--- a/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/findApplicationRegistrationVariables.ts
+++ b/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/findApplicationRegistrationVariables.ts
@@ -9,6 +9,7 @@ export const FIND_APPLICATION_REGISTRATION_VARIABLES = gql`
) {
id
key
+ value
description
isSecret
isRequired
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationConfigVariableDetail.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationConfigVariableDetail.tsx
index 9f0539e9b45..7afd81948aa 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationConfigVariableDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationConfigVariableDetail.tsx
@@ -7,7 +7,6 @@ import {
UpdateApplicationRegistrationVariableDocument,
} from '~/generated-metadata/graphql';
import { useMutation, useQuery } from '@apollo/client/react';
-import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { isNonEmptyString } from '@sniptt/guards';
import { SubMenuTopBarContainer } from '@/ui/layout/page/components/SubMenuTopBarContainer';
import { getSettingsPath } from 'twenty-shared/utils';
@@ -145,9 +144,7 @@ export const SettingsApplicationRegistrationConfigVariableDetail = () => {
<TextInput
value={value}
placeholder={
- variable.isFilled
- ? '••••••••••••••••••••••••'
- : t`set-config-value`
+ !isEditing ? (variable.value ?? t`set-config-value`) : ''
}
onChange={setValue}
disabled={!isEditing}
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
index b84bb6f54d1..9a3e25fb508 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
@@ -1,9 +1,6 @@
import type { ApplicationRegistrationData } from '~/pages/settings/applications/tabs/types/ApplicationRegistrationData';
import { useQuery } from '@apollo/client/react';
-import {
- type ApplicationRegistrationVariable,
- FindApplicationRegistrationVariablesDocument,
-} from '~/generated-metadata/graphql';
+import { FindApplicationRegistrationVariablesDocument } from '~/generated-metadata/graphql';
import { Section } from 'twenty-ui/layout';
import { H2Title, Status } from 'twenty-ui/display';
import { useLingui } from '@lingui/react/macro';
@@ -28,17 +25,12 @@ export const SettingsApplicationRegistrationConfigTab = ({
},
);
- const variables: ApplicationRegistrationVariable[] =
- variablesData?.findApplicationRegistrationVariables ?? [];
+ const variables = variablesData?.findApplicationRegistrationVariables ?? [];
const configVariables = variables.map((variable) => ({
name: variable.key,
description: variable.description,
- value: variable.isFilled ? (
- '••••••••••'
- ) : (
- <Status color="gray" text={t`Not set`} />
- ),
+ value: variable.value ?? <Status color="gray" text={t`Not set`} />,
to: getSettingsPath(
SettingsPath.ApplicationRegistrationConfigVariableDetails,
{
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/application-registration-variable.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/application-registration-variable.service.ts
index b7c212cd5b8..c04474ac4b3 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/application-registration-variable.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/application-registration-variable.service.ts
@@ -14,6 +14,7 @@ import {
import { type CreateApplicationRegistrationVariableInput } from 'src/engine/core-modules/application/application-registration-variable/dtos/create-application-registration-variable.input';
import { type UpdateApplicationRegistrationVariableInput } from 'src/engine/core-modules/application/application-registration-variable/dtos/update-application-registration-variable.input';
import { SecretEncryptionService } from 'src/engine/core-modules/secret-encryption/secret-encryption.service';
+import { ApplicationRegistrationVariableDTO } from 'src/engine/core-modules/application/application-registration-variable/dtos/application-registration-variable.dto';
@Injectable()
export class ApplicationRegistrationVariableService {
@@ -25,19 +26,29 @@ export class ApplicationRegistrationVariableService {
private readonly encryptionService: SecretEncryptionService,
) {}
- async findVariables(
+ async findVariablesWithObfuscatedValues(
applicationRegistrationId: string,
workspaceId: string,
- ): Promise<ApplicationRegistrationVariableEntity[]> {
+ ): Promise<ApplicationRegistrationVariableDTO[]> {
await this.assertRegistrationOwnedByWorkspace(
applicationRegistrationId,
workspaceId,
);
- return this.variableRepository.find({
+ const variables = await this.variableRepository.find({
where: { applicationRegistrationId },
order: { key: 'ASC' },
});
+
+ return variables.map((variable) => ({
+ ...variable,
+ isFilled: variable.isFilled,
+ value: variable.isFilled
+ ? variable.isSecret
+ ? '•••••••••••••'
+ : this.encryptionService.decrypt(variable.encryptedValue)
+ : null,
+ }));
}
async createVariable(
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/dtos/application-registration-variable.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/dtos/application-registration-variable.dto.ts
new file mode 100644
index 00000000000..24863d8ec5b
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/application-registration-variable/dtos/application-registration-variable.dto.ts
@@ -0,0 +1,40 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+import { IsBoolean, IsString } from 'class-validator';
+import { IDField } from '@ptc-org/nestjs-query-graphql';
+
+@ObjectType()
+export class ApplicationRegistrationVariableDTO {
+ @IDField(() => UUIDScalarType)
+ id: string;
+
+ @IsString()
+ @Field()
+ key: string;
+
+ @IsString()
+ @Field(() => String, { nullable: true })
+ value?: string | null;
+
+ @IsString()
+ @Field()
+ description: string;
+
+ @IsBoolean()
+ @Field()
+ isSecret: boolean;
+
+ @IsBoolean()
+ @Field()
+ isRequired: boolean;
+
+ @IsBoolean()
+ @Field()
+ isFilled: boolean;
+
+ @Field(() => Date)
+ createdAt: Date;
+
+ @Field(() => Date)
+ updatedAt: Date;
+}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts
index 863d6fa15e4..1da20702cd2 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts
@@ -54,6 +54,7 @@ import { PublicEndpointGuard } from 'src/engine/guards/public-endpoint.guard';
import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';
import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
import { streamToBuffer } from 'src/utils/stream-to-buffer';
+import { ApplicationRegistrationVariableDTO } from 'src/engine/core-modules/application/application-registration-variable/dtos/application-registration-variable.dto';
@UsePipes(ResolverValidationPipe)
@MetadataResolver(() => ApplicationRegistrationEntity)
@@ -186,12 +187,12 @@ export class ApplicationRegistrationResolver {
WorkspaceAuthGuard,
SettingsPermissionGuard(PermissionFlagType.API_KEYS_AND_WEBHOOKS),
)
- @Query(() => [ApplicationRegistrationVariableEntity])
+ @Query(() => [ApplicationRegistrationVariableDTO])
async findApplicationRegistrationVariables(
@Args('applicationRegistrationId') applicationRegistrationId: string,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
- ): Promise<ApplicationRegistrationVariableEntity[]> {
- return this.applicationRegistrationVariableService.findVariables(
+ ): Promise<ApplicationRegistrationVariableDTO[]> {
+ return this.applicationRegistrationVariableService.findVariablesWithObfuscatedValues(
applicationRegistrationId,
workspaceId,
);