import { FieldMappingAccessor, FieldMappingSelector } from '@membranehq/sdk'; export declare function useFieldMapping(selector: FieldMappingSelector | string | undefined): { loading: boolean; saving: boolean; error: any; refreshing: boolean; create: (data: { key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; name?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; }) => Promise<{ id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined>; patch: (data: Partial<{ key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; name?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; }>, options?: (Omit | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined, { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined; }) | undefined) => Promise; put: (data: { key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; name?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; }, options?: Omit | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined, { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined; }) => Promise; archive: () => Promise; fieldMapping: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; } | undefined; reset: () => Promise; setup: () => Promise; refresh: () => Promise<{ id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; integration?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; } | undefined; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; }; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; }; }[] | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; } | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; fieldMapping?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; fieldMappingId?: string | undefined; universalFieldMappingId?: string | undefined; dataSourceId?: string | undefined; dataSourceUuid?: string | undefined; dataSourceKey?: string | undefined; appSchema?: import("@membranehq/sdk").DataSchema | undefined; direction?: import("@membranehq/sdk").FieldMappingDirection | undefined; defaultImportValue?: any; defaultExportValue?: any; importValue?: any; exportValue?: any; unifiedImportValue?: any; unifiedExportValue?: any; frozenImportFields?: any; frozenExportFields?: any; frozenUnifiedExportFields?: any; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; fieldMappingRevision?: string | undefined; universalFieldMappingRevision?: string | undefined; dataSourceInstanceId?: string | undefined; dataSourceSchema?: import("@membranehq/sdk").DataSchema | undefined; isCustomized?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; }>; accessor: FieldMappingAccessor | undefined; };