@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
50 lines (47 loc) • 1.47 kB
text/typescript
import { APILinks } from '@vonage/server-client';
import { CallDetailResponse } from './CallDetailResponse.mjs';
import '../CallDetail.mjs';
import '../BasicCallDetail.mjs';
import '../../enums/CallStatus.mjs';
import '../CommonCallFields.mjs';
import '../Endpoint/CallEndpoint.mjs';
import '../Endpoint/PhoneEndpoint.mjs';
import '../Endpoint/SIPEndpoint.mjs';
import '../Endpoint/VBCEndpoint.mjs';
import '../Endpoint/WebsocketEndpoint.mjs';
import '../Endpoint/AppEndpoint.mjs';
import '../Endpoint/PSTNEndpoint.mjs';
import '../../enums/CallDirection.mjs';
import './CallEndpointResponse.mjs';
/**
* Represents the response for a page of call details, including information
* about the page itself and an array of call details.
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
type CallPageResponse = {
/**
* The total count of call details in the response.
*/
count: number;
/**
* The number of call details per page.
*/
page_size: number;
/**
* The index of the first call detail in the current page.
*/
record_index: number;
/**
* An embedded object containing an array of call details.
*/
_embedded: {
/**
* An array of call details.
*/
calls: Array<CallDetailResponse>;
};
} & APILinks;
export type { CallPageResponse };