@ringer-tel/telique
Version:
TypeScript SDK for Ringer APIs
67 lines (56 loc) • 2.12 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Telique API
* The Ringer Telique API provides access to telecommunications data, including caller name (CNAM) data, line type information, and more. The API also includes services for checking phone numbers against Do Not Originate (DNO) and Do Not Call (DNC) databases, as well as STIR/SHAKEN call authentication validation. ## Authentication This API uses IP whitelist authentication. Your server\'s IP address must be registered with Ringer before making API calls. Contact support@ringer.tel to register your IP address.
*
* The version of the OpenAPI document: 1.0.18
* Contact: support@ringer.tel
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface StirShakenResponse
*/
export interface StirShakenResponse {
/**
* Whether the provided identity is valid
* @type {boolean}
* @memberof StirShakenResponse
*/
valid: boolean;
}
/**
* Check if a given object implements the StirShakenResponse interface.
*/
export function instanceOfStirShakenResponse(value: object): value is StirShakenResponse {
if (!('valid' in value) || value['valid'] === undefined) return false;
return true;
}
export function StirShakenResponseFromJSON(json: any): StirShakenResponse {
return StirShakenResponseFromJSONTyped(json, false);
}
export function StirShakenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StirShakenResponse {
if (json == null) {
return json;
}
return {
'valid': json['valid'],
};
}
export function StirShakenResponseToJSON(json: any): StirShakenResponse {
return StirShakenResponseToJSONTyped(json, false);
}
export function StirShakenResponseToJSONTyped(value?: StirShakenResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'valid': value['valid'],
};
}