connect( __namedParameters?: { name?: string | undefined; parameters?: any; connectorParameters?: any; authOptionKey?: string | undefined; allowMultipleConnections?: boolean | undefined; } & ({ sameWindow: true; redirectUri: string; } | { ...; })
,): Promise< | undefined | { id: string; name: string; userId: string; integrationId: string; createdAt: string; updatedAt: string; isTest?: boolean; disconnected?: boolean; isDefunct?: boolean; state?: WorkspaceElementState; error?: ErrorDataSchema; authOptionKey?: string; lastActiveAt?: string; nextCredentialsRefreshAt?: string; archivedAt?: string; isDeactivated?: boolean; meta?: Record<string, any>; user?: { id: string; name: string; internalId: string; meta?: Record<string, any>; fields?: Record<string, any>; credentials?: any; lastActiveAt?: string; isTest?: boolean; isBillable?: boolean; createdAt?: string; archivedAt?: string; }; integration?: { id: string; name: string; logoUri: string; key?: string; uuid?: string; description?: string; meta?: Record<string, any>; state?: WorkspaceElementState; errors?: ErrorDataSchema[]; revision?: string; createdAt?: string; updatedAt?: string; 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; appUuid?: string; isDeactivated?: boolean; authType?: | "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; }; },>