connect( __namedParameters?: { name?: string | undefined; input?: any; parameters?: any; connectorParameters?: any; authOptionKey?: string | undefined; allowMultipleConnections?: boolean | undefined; onPopupClosed?: (() => void) | undefined; } & ({ ...; } | { ...; })
,): Promise< | { id: string; name: string; createdAt: string; updatedAt: string; userId: string; type?: "connector" | "mcp"; key?: string; isTest?: boolean; connected?: boolean; disconnected?: boolean; isDefunct?: boolean; state?: WorkspaceElementState; errors?: ErrorDataSchema[]; requestError?: ErrorDataSchema; error?: ErrorDataSchema; integrationId?: string; connectorId?: string; externalAppId?: string; connectorVersion?: string; authOptionKey?: string; lastActiveAt?: string; nextCredentialsRefreshAt?: string; nextRetryTimestamp?: string; retryAttempts?: number; canTest?: boolean; canRefreshCredentials?: boolean; archivedAt?: string; isDeactivated?: boolean; meta?: Record<string, any>; buildingAgentSessionId?: string; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string; agentInstructions?: string; handoffAgentInstructions?: string; reason?: "provide-input" | "authenticate" | "reauthenticate"; }; tenantId?: string; user?: { id: string; name: string; internalId: string; meta?: Record<string, any>; fields?: Record<string, any>; credentials?: any; lastActiveAt?: string; isTest?: boolean; isBillable?: boolean; isActive?: boolean; aiCreditsRolling30DayLimit?: number | null; createdAt?: string; archivedAt?: string; }; integration?: { id: string; name: string; logoUri: string; uuid?: string; key?: string; description?: string; meta?: Record<string, any>; state?: WorkspaceElementState; errors?: ErrorDataSchema[]; revision?: string; createdAt?: string; updatedAt?: string; isReadOnly?: boolean; connectorId?: string; connectorVersion?: string; oAuthCallbackUri?: string; parameters?: any; archivedAt?: string; hasMissingParameters?: boolean; hasDocumentation?: boolean; hasOperations?: boolean; operationsCount?: number; hasData?: boolean; dataCollectionsCount?: number; hasEvents?: boolean; eventsCount?: number; hasGlobalWebhooks?: boolean; hasUdm?: boolean; isTest?: boolean; externalAppId?: string; appUuid?: string; isDeactivated?: boolean; authType?: | "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; optionsConfig?: Record< string, { disabled?: boolean; parameters?: Record<string, any> }, >; }; connectorParameters?: unknown; input?: unknown; storedSecretKeys?: Record<string, string[]>; } | null,>