Creating Plot Twists
    Preparing search index...

    Type Alias IntegrationProviderConfig

    Configuration for an OAuth provider in a tool's build options. Declares the provider, scopes, and lifecycle callbacks.

    type IntegrationProviderConfig = {
        provider: AuthProvider;
        scopes: string[];
        getSyncables: (
            auth: Authorization,
            token: AuthToken,
        ) => Promise<Syncable[]>;
        onSyncEnabled: (syncable: Syncable) => Promise<void>;
        onSyncDisabled: (syncable: Syncable) => Promise<void>;
    }
    Index

    Properties

    provider: AuthProvider

    The OAuth provider

    scopes: string[]

    OAuth scopes to request

    getSyncables: (auth: Authorization, token: AuthToken) => Promise<Syncable[]>

    Returns available syncables for the authorized actor. Must not use Plot tool.

    onSyncEnabled: (syncable: Syncable) => Promise<void>

    Called when a syncable resource is enabled for syncing

    onSyncDisabled: (syncable: Syncable) => Promise<void>

    Called when a syncable resource is disabled