{
  "version": 3,
  "sources": ["twenty-sdk-define-stub:__twenty-sdk-define-stub__", "../../../../src/constants/universal-identifiers.ts", "../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/errors/app-connection-auth-failed.error.ts", "../../../../node_modules/twenty-shared/dist/application.mjs", "../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/utils/post-connections-endpoint.util.ts", "../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts", "../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts", "../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts", "../../../../src/logic-functions/constants/issue-create-mutation.constant.ts", "../../../../src/logic-functions/utils/call-linear-graphql.ts", "../../../../src/logic-functions/handlers/create-linear-issue-handler.ts", "../../../../src/logic-functions/create-linear-issue.ts"],
  "sourcesContent": ["\n// Auto-generated stub for twenty-sdk/define injected by the SDK CLI build.\n// Real implementations would pull in zod, twenty-shared and ~1MB of code; at\n// runtime only `default.config.handler` is consumed, so tiny no-ops suffice.\nconst __defineFactoryStub = (config) => ({\n  success: true,\n  config,\n  errors: [],\n});\n\nconst __anyHandler = {\n  get(_target, prop) {\n    if (prop === '__esModule') return true;\n    if (prop === Symbol.toPrimitive) return () => '';\n    if (typeof prop === 'symbol') return undefined;\n    return new Proxy(() => undefined, __anyHandler);\n  },\n  apply() {\n    return new Proxy(() => undefined, __anyHandler);\n  },\n};\nconst __anyStub = new Proxy(() => undefined, __anyHandler);\n\nexport const createValidationResult = __defineFactoryStub;\nexport const defineAgent = __defineFactoryStub;\nexport const defineApplication = __defineFactoryStub;\nexport const defineApplicationRole = __defineFactoryStub;\nexport const defineCommandMenuItem = __defineFactoryStub;\nexport const defineConnectionProvider = __defineFactoryStub;\nexport const defineField = __defineFactoryStub;\nexport const defineFrontComponent = __defineFactoryStub;\nexport const defineLogicFunction = __defineFactoryStub;\nexport const defineNavigationMenuItem = __defineFactoryStub;\nexport const defineObject = __defineFactoryStub;\nexport const definePageLayout = __defineFactoryStub;\nexport const definePageLayoutTab = __defineFactoryStub;\nexport const definePostInstallLogicFunction = __defineFactoryStub;\nexport const definePreInstallLogicFunction = __defineFactoryStub;\nexport const defineRole = __defineFactoryStub;\nexport const defineSkill = __defineFactoryStub;\nexport const defineView = __defineFactoryStub;\nexport const AggregateOperations = __anyStub;\nexport const DateDisplayFormat = __anyStub;\nexport const FieldMetadataSettingsOnClickAction = __anyStub;\nexport const FieldType = __anyStub;\nexport const HTTPMethod = __anyStub;\nexport const NavigationMenuItemType = __anyStub;\nexport const NumberDataType = __anyStub;\nexport const ObjectRecordGroupByDateGranularity = __anyStub;\nexport const OnDeleteAction = __anyStub;\nexport const PageLayoutTabLayoutMode = __anyStub;\nexport const PermissionFlag = __anyStub;\nexport const RelationType = __anyStub;\nexport const STANDARD_OBJECT = __anyStub;\nexport const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const ViewCalendarLayout = __anyStub;\nexport const ViewFilterGroupLogicalOperator = __anyStub;\nexport const ViewFilterOperand = __anyStub;\nexport const ViewKey = __anyStub;\nexport const ViewOpenRecordIn = __anyStub;\nexport const ViewSortDirection = __anyStub;\nexport const ViewType = __anyStub;\nexport const ViewVisibility = __anyStub;\nexport const generateDefaultFieldUniversalIdentifier = __anyStub;\nexport const getPublicAssetUrl = __anyStub;\nexport const validateFields = __anyStub;\n", "// Group all universal identifiers in a single file. Per the codebase\n// convention (see twenty-for-twenty), closely-related constants live\n// together so the rest of the app's source files can stay at one\n// `export default` per file.\n\nexport const APPLICATION_UNIVERSAL_IDENTIFIER =\n  '6f4e7c2a-3d8e-4a91-b2cf-9e0b8d5f4a2e';\n\nexport const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =\n  'b6c33347-e41c-4b90-8a37-7b3c49baa85a';\n\nexport const LINEAR_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER =\n  '9c7d1f5e-6a0b-4d44-be0c-3f8b5a9d4e6f';\n\nexport const CREATE_LINEAR_ISSUE_UNIVERSAL_IDENTIFIER =\n  '01f829c9-1661-41fa-9ee1-b67e64716c2e';\n\nexport const LIST_LINEAR_TEAMS_UNIVERSAL_IDENTIFIER =\n  '15824bbc-9c64-4f97-b45f-d0a44b402bb8';\n\nexport const LIST_LINEAR_TEAMS_ROUTE_UNIVERSAL_IDENTIFIER =\n  'a1d4e7b3-5c2f-4a89-9b0e-6f3d8c1a7e5b';\n\nexport const CREATE_LINEAR_ISSUE_ROUTE_UNIVERSAL_IDENTIFIER =\n  'c8f2a6d1-3b7e-4e09-8d5c-2a9f0b4e6c3d';\n\nexport const CREATE_ISSUE_FORM_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =\n  'd4a1c8e5-7f3b-4d62-a90e-1b5c3f8d2a6e';\n\nexport const LIST_LINEAR_WORKFLOW_STATES_ROUTE_UNIVERSAL_IDENTIFIER =\n  'f5a2d8c1-4b7e-4f93-a6d0-9c3e1b8f5a2d';\n\nexport const LIST_LINEAR_ISSUE_OPTIONS_ROUTE_UNIVERSAL_IDENTIFIER =\n  'a3b7e1d9-8c4f-4a26-b5d0-7e9f2c6a8b3d';\n\nexport const LIST_LINEAR_ISSUE_OPTIONS_UNIVERSAL_IDENTIFIER =\n  'c2b99086-6c1b-43e4-9685-de4ade6bda63';\n\nexport const CREATE_ISSUE_COMMAND_UNIVERSAL_IDENTIFIER =\n  'e7b3d9f2-6a1c-4e85-b4d0-8f2c5a7e3b19';\n", "// Thrown when the platform asks the SDK to operate on a connection whose\n// OAuth refresh failed permanently (`authFailedAt` is set). The end user\n// must reconnect from the app's settings tab — the app cannot recover on\n// its own.\n//\n// `listConnections` filters these out by default (the user can't act on\n// them anyway). `getConnection` throws this when the looked-up connection\n// is in this state, so a stored connection id can be safely retried until\n// it works again.\nexport class AppConnectionAuthFailedError extends Error {\n  readonly connectionId: string;\n\n  constructor(connectionId: string) {\n    super(\n      `App connection ${connectionId} requires the user to reconnect ` +\n        `(authFailedAt is set). Surface a \"Reconnect\" prompt in your UI.`,\n    );\n    this.name = 'AppConnectionAuthFailedError';\n    this.connectionId = connectionId;\n  }\n}\n", "const _ = \"public\", A = \"TWENTY_API_KEY\", T = \"TWENTY_API_URL\", r = \"TWENTY_APP_ACCESS_TOKEN\", t = \"generated\", N = {\n  js: `import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);`\n}, u = \".twenty/output\", I = \"Standard\", n = \"20202020-64aa-4b6f-b003-9c74b97cee20\";\nvar e = /* @__PURE__ */ ((o) => (o.Object = \"object\", o.Field = \"field\", o.LogicFunction = \"logicFunction\", o.FrontComponent = \"frontComponent\", o.Role = \"role\", o.Skill = \"skill\", o.Agent = \"agent\", o.ConnectionProvider = \"connectionProvider\", o.View = \"view\", o.NavigationMenuItem = \"navigationMenuItem\", o.PageLayout = \"pageLayout\", o.PageLayoutTab = \"pageLayoutTab\", o.CommandMenuItem = \"commandMenuItem\", o))(e || {});\nexport {\n  _ as ASSETS_DIR,\n  A as DEFAULT_API_KEY_NAME,\n  T as DEFAULT_API_URL_NAME,\n  r as DEFAULT_APP_ACCESS_TOKEN_NAME,\n  t as GENERATED_DIR,\n  N as NODE_ESM_CJS_BANNER,\n  u as OUTPUT_DIR,\n  e as SyncableEntity,\n  I as TWENTY_STANDARD_APPLICATION_NAME,\n  n as TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER\n};\n", "import {\n  DEFAULT_API_URL_NAME,\n  DEFAULT_APP_ACCESS_TOKEN_NAME,\n} from 'twenty-shared/application';\n\n// Shared transport for `/apps/connections/*` endpoints. Centralises the\n// env-var check, auth header, and HTTP error translation so each helper\n// stays focused on its own input/output shape.\nexport const postConnectionsEndpoint = async <TBody, TResponse>(\n  path: 'list' | 'get',\n  body: TBody,\n): Promise<TResponse> => {\n  const apiUrl = process.env[DEFAULT_API_URL_NAME];\n  const accessToken = process.env[DEFAULT_APP_ACCESS_TOKEN_NAME];\n\n  if (!apiUrl || !accessToken) {\n    throw new Error(\n      `${path === 'list' ? 'listConnections' : 'getConnection'}() requires the app runtime env vars ` +\n        `${DEFAULT_API_URL_NAME} and ${DEFAULT_APP_ACCESS_TOKEN_NAME}.`,\n    );\n  }\n\n  const response = await fetch(`${apiUrl}/apps/connections/${path}`, {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n      Authorization: `Bearer ${accessToken}`,\n    },\n    body: JSON.stringify(body),\n  });\n\n  if (!response.ok) {\n    throw new Error(\n      `${path === 'list' ? 'listConnections' : 'getConnection'}() failed: ` +\n        `HTTP ${response.status} ${response.statusText}`,\n    );\n  }\n\n  return (await response.json()) as TResponse;\n};\n", "import { AppConnectionAuthFailedError } from '@/sdk/logic-function/connections/errors/app-connection-auth-failed.error';\nimport { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\nimport { postConnectionsEndpoint } from '@/sdk/logic-function/connections/utils/post-connections-endpoint.util';\n\n// Look up a single connection by id. The id is stable across reconnects\n// (the row keeps its id when the user clicks \"Reconnect\"), so apps can\n// safely persist it in their own data and call this helper on each\n// invocation to retrieve a fresh access token.\n//\n// Throws `AppConnectionAuthFailedError` if the credential is in a\n// permanent-failure state (the user must reconnect from the app's\n// settings tab). Throws a regular `Error` for any other failure\n// (network, not-found, transient refresh failure).\nexport const getConnection = async (id: string): Promise<AppConnection> => {\n  const connection = await postConnectionsEndpoint<\n    { id: string },\n    AppConnection\n  >('get', { id });\n\n  if (connection.authFailedAt !== null) {\n    throw new AppConnectionAuthFailedError(connection.id);\n  }\n\n  return connection;\n};\n", "import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\nimport { postConnectionsEndpoint } from '@/sdk/logic-function/connections/utils/post-connections-endpoint.util';\n\nexport type ListConnectionsFilter = {\n  // Provider name as declared on `defineConnectionProvider({ name })`.\n  providerName?: string;\n  // Restrict to credentials owned by a specific user. Useful in cron\n  // triggers when picking a service-account user via app config.\n  userWorkspaceId?: string;\n  // Restrict by row visibility — 'user' (private) or 'workspace' (shared).\n  visibility?: 'user' | 'workspace';\n};\n\n// Returns every connection owned by the running app, optionally filtered.\n// The server refreshes each access token on read, so the returned values\n// are usable immediately. When the running execution carries a user\n// context (HTTP-route trigger with `isAuthRequired`, tool calls, etc.),\n// `scope: 'user'` connections belonging to other users are filtered out\n// server-side. Cron and database-event triggers see all connections.\nexport const listConnections = async (\n  filter: ListConnectionsFilter = {},\n): Promise<AppConnection[]> =>\n  postConnectionsEndpoint<ListConnectionsFilter, AppConnection[]>(\n    'list',\n    filter,\n  );\n", "import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\n\n// Resolution rule for an HTTP-route handler that wants \"the request user's\n// connection, or fall back to a workspace-shared one.\" Pure function — no\n// network. Pass it the result of `listConnections` and the trigger event.\n//\n// The plan-of-record for picking a connection is documented in the v3 plan\n// notes; this utility encodes the most common case so handlers don't have\n// to repeat the same `find(...) ?? find(...)` chain.\n//\n// Returns `null` when no candidate exists — caller decides whether that's\n// a 4xx for the end user or a hard error.\nexport const findConnectionForRequest = (\n  connections: AppConnection[],\n  event: { userWorkspaceId: string | null },\n): AppConnection | null => {\n  // 1. Personal credential of the request user (highest specificity).\n  if (event.userWorkspaceId !== null) {\n    const personal = connections.find(\n      (connection) =>\n        connection.visibility === 'user' &&\n        connection.userWorkspaceId === event.userWorkspaceId,\n    );\n\n    if (personal) {\n      return personal;\n    }\n  }\n\n  // 2. Any workspace-shared credential (team-managed service account).\n  const workspaceShared = connections.find(\n    (connection) => connection.visibility === 'workspace',\n  );\n\n  return workspaceShared ?? null;\n};\n", "export const ISSUE_CREATE_MUTATION = `\n  mutation IssueCreate($input: IssueCreateInput!) {\n    issueCreate(input: $input) {\n      success\n      issue { id identifier title url }\n    }\n  }\n`;\n", "import { type LinearGraphQLResult } from 'src/logic-functions/utils/types/linear-graphql-result.type';\n\nconst LINEAR_GRAPHQL_ENDPOINT = 'https://api.linear.app/graphql';\n\nexport const callLinearGraphQL = async <TData>({\n  accessToken,\n  query,\n  variables,\n}: {\n  accessToken: string;\n  query: string;\n  variables?: Record<string, unknown>;\n}): Promise<LinearGraphQLResult<TData>> => {\n  let response: Response;\n\n  try {\n    response = await fetch(LINEAR_GRAPHQL_ENDPOINT, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Authorization: `Bearer ${accessToken}`,\n      },\n      body: JSON.stringify({ query, variables }),\n    });\n  } catch (error) {\n    return {\n      errors: [\n        {\n          message: `Linear API request failed: ${(error as Error).message}`,\n        },\n      ],\n    };\n  }\n\n  if (!response.ok) {\n    const text = await response.text().catch(() => '');\n\n    return {\n      errors: [\n        {\n          message: `Linear API responded with ${response.status}: ${text.slice(0, 500)}`,\n        },\n      ],\n    };\n  }\n\n  try {\n    return (await response.json()) as LinearGraphQLResult<TData>;\n  } catch (error) {\n    return {\n      errors: [\n        {\n          message: `Linear API returned a non-JSON response: ${(error as Error).message}`,\n        },\n      ],\n    };\n  }\n};\n", "import { listConnections } from 'twenty-sdk/logic-function';\n\nimport { ISSUE_CREATE_MUTATION } from 'src/logic-functions/constants/issue-create-mutation.constant';\nimport { type CreateIssueInput } from 'src/logic-functions/types/create-issue-input.type';\nimport { type CreateIssueMutationResult } from 'src/logic-functions/types/create-issue-mutation-result.type';\nimport { callLinearGraphQL } from 'src/logic-functions/utils/call-linear-graphql';\n\ntype HandlerResult =\n  | {\n      success: true;\n      issue: {\n        id: string;\n        identifier: string;\n        title: string;\n        url: string;\n      };\n    }\n  | { success: false; error: string };\n\nexport const createLinearIssueHandler = async (\n  input: CreateIssueInput,\n): Promise<HandlerResult> => {\n  if (!input.teamId || !input.title) {\n    return {\n      success: false,\n      error: 'Both `teamId` and `title` are required.',\n    };\n  }\n\n  const connections = await listConnections({ providerName: 'linear' });\n  // Workspace-shared credentials win when present (a team-managed service\n  // account); otherwise fall back to the first user-scoped connection.\n  const connection =\n    connections.find((c) => c.visibility === 'workspace') ?? connections[0];\n\n  if (!connection) {\n    return {\n      success: false,\n      error:\n        'Linear is not connected. Open the app settings and click \"Add connection\" first.',\n    };\n  }\n\n  const result = await callLinearGraphQL<CreateIssueMutationResult>({\n    accessToken: connection.accessToken,\n    query: ISSUE_CREATE_MUTATION,\n    variables: {\n      input: {\n        teamId: input.teamId,\n        title: input.title,\n        description: input.description,\n        ...(input.priority !== undefined && { priority: input.priority }),\n        ...(input.stateId !== undefined && { stateId: input.stateId }),\n        ...(input.assigneeId !== undefined && {\n          assigneeId: input.assigneeId,\n        }),\n        ...(input.projectId !== undefined && { projectId: input.projectId }),\n        ...(input.estimate !== undefined && { estimate: input.estimate }),\n        ...(input.labelIds !== undefined &&\n          input.labelIds.length > 0 && { labelIds: input.labelIds }),\n        ...(input.cycleId !== undefined && { cycleId: input.cycleId }),\n        ...(input.dueDate !== undefined && { dueDate: input.dueDate }),\n      },\n    },\n  });\n\n  if (result.errors || !result.data) {\n    return {\n      success: false,\n      error: result.errors?.[0]?.message ?? 'Unknown Linear API error',\n    };\n  }\n\n  const { success, issue } = result.data.issueCreate;\n\n  if (!success || !issue) {\n    return {\n      success: false,\n      error: 'Linear reported the mutation as unsuccessful.',\n    };\n  }\n\n  return { success: true, issue };\n};\n", "import { defineLogicFunction } from 'twenty-sdk/define';\n\nimport { CREATE_LINEAR_ISSUE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';\nimport { createLinearIssueHandler } from 'src/logic-functions/handlers/create-linear-issue-handler';\n\nexport default defineLogicFunction({\n  universalIdentifier: CREATE_LINEAR_ISSUE_UNIVERSAL_IDENTIFIER,\n  name: 'create-linear-issue',\n  description:\n    'Create a Linear issue on behalf of the connected user. Requires a teamId (call list-linear-teams to discover one) and a title.',\n  timeoutSeconds: 30,\n  handler: createLinearIssueHandler,\n  toolTriggerSettings: {\n    inputSchema: {\n      type: 'object',\n      properties: {\n        teamId: {\n          type: 'string',\n          description:\n            'The Linear team ID to create the issue in. Use list-linear-teams to discover available teams.',\n        },\n        title: {\n          type: 'string',\n          description: 'The issue title.',\n        },\n        description: {\n          type: 'string',\n          description: 'Optional issue description (Markdown supported).',\n        },\n        priority: {\n          type: 'integer',\n          description:\n            'Issue priority: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low.',\n          minimum: 0,\n          maximum: 4,\n        },\n        stateId: {\n          type: 'string',\n          description:\n            'The workflow state ID for the issue status. Use list-linear-issue-options to discover available states for a team.',\n        },\n        assigneeId: {\n          type: 'string',\n          description:\n            'The user ID to assign the issue to. Use list-linear-issue-options to discover team members.',\n        },\n        projectId: {\n          type: 'string',\n          description: 'The project ID to associate the issue with.',\n        },\n        estimate: {\n          type: 'number',\n          description:\n            'The estimate value for the issue. Must match the team estimate scale.',\n        },\n        labelIds: {\n          type: 'array',\n          items: { type: 'string' },\n          description: 'Array of label IDs to apply to the issue.',\n        },\n        cycleId: {\n          type: 'string',\n          description: 'The cycle ID to add the issue to.',\n        },\n        dueDate: {\n          type: 'string',\n          description: 'Due date in YYYY-MM-DD format.',\n        },\n      },\n      required: ['teamId', 'title'],\n    },\n  },\n  workflowActionTriggerSettings: {\n    label: 'Create Linear Issue',\n    inputSchema: [\n      {\n        type: 'object',\n        properties: {\n          teamId: { type: 'string' },\n          title: { type: 'string' },\n          description: { type: 'string' },\n          priority: { type: 'number' },\n          stateId: { type: 'string' },\n          assigneeId: { type: 'string' },\n          projectId: { type: 'string' },\n          estimate: { type: 'number' },\n          labelIds: { type: 'array', items: { type: 'string' } },\n          cycleId: { type: 'string' },\n          dueDate: { type: 'string' },\n        },\n      },\n    ],\n    outputSchema: [\n      {\n        type: 'object',\n        properties: {\n          success: { type: 'boolean' },\n          issue: {\n            type: 'object',\n            properties: {\n              id: { type: 'string' },\n              identifier: { type: 'string' },\n              title: { type: 'string' },\n              url: { type: 'string' },\n            },\n          },\n          error: { type: 'string' },\n        },\n      },\n    ],\n  },\n});\n"],
  "mappings": ";;;;AAIA,IAAM,sBAAsB,CAAC,YAAY;AAAA,EACvC,SAAS;AAAA,EACT;AAAA,EACA,QAAQ,CAAC;AACX;AAEA,IAAM,eA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UAAU,EAAE,MAAM,SAAS,OAAO,EAAE,MAAM,SAAS,EAAE;AAAA,UACrD,SAAS,EAAE,MAAM,SAAS;AAAA,UAC1B,SAAS,EAAE,MAAM,SAAS;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,MAAM;AAAA,QACN,YAAY;AAAA,UACV,SAAS,EAAE,MAAM,UAAU;AAAA,UAC3B,OAAO;AAAA,YACL,MAAM;AAAA,YACN,YAAY;AAAA,cACV,IAAI,EAAE,MAAM,SAAS;AAAA,cACrB,YAAY,EAAE,MAAM,SAAS;AAAA,cAC7B,OAAO,EAAE,MAAM,SAAS;AAAA,cACxB,KAAK,EAAE,MAAM,SAAS;AAAA,YACxB;AAAA,UACF;AAAA,UACA,OAAO,EAAE,MAAM,SAAS;AAAA,QAC1B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
  "names": ["T", "r", "postConnectionsEndpoint", "path", "body", "apiUrl", "DEFAULT_API_URL_NAME", "accessToken", "DEFAULT_APP_ACCESS_TOKEN_NAME", "response", "listConnections", "filter", "postConnectionsEndpoint", "c"]
}
