import { AppResponse, CreateAppRequestData, DeleteAppRequestData, GetAppRequestData, ListAppsRequestData, ListAppsResponse, UpdateAppRequestData } from '../../../models'; import { ConversationDomainApi } from '../conversation-domain-api'; import { LazyConversationApiClient } from '../conversation-service'; export declare class AppApi extends ConversationDomainApi { constructor(lazyApiClient: LazyConversationApiClient); /** * Create an app * You can create a new Conversation API app using the API. You can create an app for one or more channels at once. The ID of the app is generated at creation and will be returned in the response. * @param { CreateAppRequestData } data - The data to provide to the API call. */ create(data: CreateAppRequestData): Promise; /** * Delete an app * Deletes the app specified by the App ID. Note that this operation will not delete contacts (which are stored at the project level) nor any channel-specific resources (for example, WhatsApp Sender Identities will not be deleted). * @param { DeleteAppRequestData } data - The data to provide to the API call. */ delete(data: DeleteAppRequestData): Promise; /** * Get an app * Returns a particular app as specified by the App ID. * @param { GetAppRequestData } data - The data to provide to the API call. */ get(data: GetAppRequestData): Promise; /** * List all apps for a given project * Get a list of all apps in the specified project. * @param { ListAppsRequestData } data - The data to provide to the API call. */ list(data?: ListAppsRequestData): Promise; /** * Update an app * Updates a particular app as specified by the App ID. Note that this is a `PATCH` operation, so any specified field values will replace existing values. Therefore, **if you\'d like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you\'d like to add new `channel_credentials`, you can [get](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing `channel_credentials` list, append your new configuration to that list, and include the updated `channel_credentials` list in this update call. * @param { UpdateAppRequestData } data - The data to provide to the API call. */ update(data: UpdateAppRequestData): Promise; }