Optionaltype?: "connector" | "mcp"Connection backing. 'mcp' skips connector resolution and runs the
discovery-based OAuth flow against input.mcpServerUrl.
OptionalauthOptionKey?: stringOptionalname?: stringOptionalinput?: anyOptionalconnectorParameters?: anyOptionalintegrationKey?: stringOptionalintegrationId?: stringOptionalconnectorId?: stringOptionalconnectorVersion?: stringOptionalconnectionId?: stringOptionalconnectionKey?: stringOptionalallowMultipleConnections?: booleanOptionalconnectionRequestId?: stringOptionalredirectUri?: stringOptionalcustomState?: stringAppended to the OAuth state as <requestId>:<customState>.
OptionalonPopupClosed?: () => voidOptionallateEvents?: LateConnectionEvents
Creates or updates a connection if
connectionIdis provided. Creates or updates a default connection for the integration ifintegrationId/integrationKeyis provided. Creates a connection for the connector ifconnectorIdis provided (without integrationId).