UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
85 lines (71 loc) 2.22 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 ContentBlockStopEvent */ export interface ContentBlockStopEvent { /** * * @type {string} * @memberof ContentBlockStopEvent */ type?: ContentBlockStopEventTypeEnum; /** * * @type {number} * @memberof ContentBlockStopEvent */ index: number; } /** * @export */ export const ContentBlockStopEventTypeEnum = { ContentBlockStop: 'content_block_stop' } as const; export type ContentBlockStopEventTypeEnum = typeof ContentBlockStopEventTypeEnum[keyof typeof ContentBlockStopEventTypeEnum]; /** * Check if a given object implements the ContentBlockStopEvent interface. */ export function instanceOfContentBlockStopEvent(value: object): value is ContentBlockStopEvent { if (!('index' in value) || value['index'] === undefined) return false; return true; } export function ContentBlockStopEventFromJSON(json: any): ContentBlockStopEvent { return ContentBlockStopEventFromJSONTyped(json, false); } export function ContentBlockStopEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentBlockStopEvent { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'index': json['index'], }; } export function ContentBlockStopEventToJSON(json: any): ContentBlockStopEvent { return ContentBlockStopEventToJSONTyped(json, false); } export function ContentBlockStopEventToJSONTyped(value?: ContentBlockStopEvent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'index': value['index'], }; }