import { RequestOptionsFactory } from '@wix/sdk-types'; import { CreateOAuthAppRequest, CreateOAuthAppResponse, GetOAuthAppRequest, GetOAuthAppResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, QueryOAuthAppsRequest, QueryOAuthAppsResponse } from './headless-v1-o-auth-app.types'; /** * Creates a new OAuth app for a Wix Headless client. * * * An OAuth app authorizes an external client app or site, on any platform, to authenticate with a Wix site or project and manage its data. * * > **Note:** The OAuth app secret is returned only when creating the OAuth app, and can't be retrieved later. Store the secret in a secure location. */ export declare function createOAuthApp(payload: CreateOAuthAppRequest): RequestOptionsFactory; /** Retrieves an OAuth app by ID. */ export declare function getOAuthApp(payload: GetOAuthAppRequest): RequestOptionsFactory; /** * Updates an OAuth app. * * * Only fields provided in `mask` are updated. * * You can update the following fields: * + `name` * + `description` * + `allowedDomain` * + `loginUrl` */ export declare function updateOAuthApp(payload: UpdateOAuthAppRequest): RequestOptionsFactory; /** * Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting. * * * Query OAuth Apps runs with these defaults, which you can override: * + Results are sorted by `id` in descending order. * + `paging.offset` is `0`. */ export declare function queryOAuthApps(payload: QueryOAuthAppsRequest): RequestOptionsFactory;