import { ApiListPromise } from '@sinch/sdk-client'; import { CreateServiceRequestData, DeleteServiceRequestData, GetServiceRequestData, ListServicesRequestData, ServiceResponse, ServiceShortResponse, UpdateServiceRequestData } from '../../../models/v2'; import { VoiceV2DomainApi } from '../voice-v2-domain-api'; import { LazyVoiceV2ApiClient } from '../voice-v2-service'; export declare class ServicesApi extends VoiceV2DomainApi { /** @internal */ constructor(lazyClient: LazyVoiceV2ApiClient); /** * List all services of a project * Retrieve a list of voice services in the specified project. * * Optionally: * - Filter services by partial match on name or description (`filter`) * - Return only the default service (`isDefault=true`) * @param { ListServicesRequestData } data - The data to provide to the API call. * @return {ApiListPromise} */ list(data?: ListServicesRequestData): ApiListPromise; /** * Create a new voice service * Creates a new voice service in the specified project. * @param { CreateServiceRequestData } data - The data to provide to the API call. */ create(data: CreateServiceRequestData): Promise; /** * Retrieve a voice service by ID * Retrieve the full details of a specific voice service by its `serviceId`. * @param { GetServiceRequestData } data - The data to provide to the API call. */ get(data: GetServiceRequestData): Promise; /** * Update a voice service * Updates an existing service resource with the provided properties. Only the fields included in * the request body will be modified; omitted fields remain unchanged. * * To set a service as the default for the project, include `"isDefault": true` in the request. * Each project can have only one default service. `"isDefault": false` is invalid and will not * be accepted by the API. * @param { UpdateServiceRequestData } data - The data to provide to the API call. */ update(data: UpdateServiceRequestData): Promise; /** * Delete a voice service by ID * Deletes a service permanently. * * The default service cannot be deleted. To delete the current default service, a different * service must first be designated as the default using the update endpoint. * @param { DeleteServiceRequestData } data - The data to provide to the API call. */ delete(data: DeleteServiceRequestData): Promise; }