UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
85 lines (71 loc) 2.24 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 ContentBlockStopEvent1 */ export interface ContentBlockStopEvent1 { /** * * @type {string} * @memberof ContentBlockStopEvent1 */ type?: ContentBlockStopEvent1TypeEnum; /** * * @type {number} * @memberof ContentBlockStopEvent1 */ index: number; } /** * @export */ export const ContentBlockStopEvent1TypeEnum = { ContentBlockStop: 'content_block_stop' } as const; export type ContentBlockStopEvent1TypeEnum = typeof ContentBlockStopEvent1TypeEnum[keyof typeof ContentBlockStopEvent1TypeEnum]; /** * Check if a given object implements the ContentBlockStopEvent1 interface. */ export function instanceOfContentBlockStopEvent1(value: object): value is ContentBlockStopEvent1 { if (!('index' in value) || value['index'] === undefined) return false; return true; } export function ContentBlockStopEvent1FromJSON(json: any): ContentBlockStopEvent1 { return ContentBlockStopEvent1FromJSONTyped(json, false); } export function ContentBlockStopEvent1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentBlockStopEvent1 { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'index': json['index'], }; } export function ContentBlockStopEvent1ToJSON(json: any): ContentBlockStopEvent1 { return ContentBlockStopEvent1ToJSONTyped(json, false); } export function ContentBlockStopEvent1ToJSONTyped(value?: ContentBlockStopEvent1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'index': value['index'], }; }