UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
76 lines (65 loc) 1.91 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * Contact: contact@emergentmethods.ai * * 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 ApiKeyResponse */ export interface ApiKeyResponse { /** * * @type {string} * @memberof ApiKeyResponse */ provider: string; /** * * @type {string} * @memberof ApiKeyResponse */ keyHint: string; } /** * Check if a given object implements the ApiKeyResponse interface. */ export function instanceOfApiKeyResponse(value: object): value is ApiKeyResponse { if (!('provider' in value) || value['provider'] === undefined) return false; if (!('keyHint' in value) || value['keyHint'] === undefined) return false; return true; } export function ApiKeyResponseFromJSON(json: any): ApiKeyResponse { return ApiKeyResponseFromJSONTyped(json, false); } export function ApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyResponse { if (json == null) { return json; } return { 'provider': json['provider'], 'keyHint': json['key_hint'], }; } export function ApiKeyResponseToJSON(json: any): ApiKeyResponse { return ApiKeyResponseToJSONTyped(json, false); } export function ApiKeyResponseToJSONTyped(value?: ApiKeyResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'provider': value['provider'], 'key_hint': value['keyHint'], }; }