@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
84 lines (70 loc) • 2.1 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](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 AnthropicTextBlock1
*/
export interface AnthropicTextBlock1 {
/**
*
* @type {string}
* @memberof AnthropicTextBlock1
*/
type?: AnthropicTextBlock1TypeEnum;
/**
*
* @type {string}
* @memberof AnthropicTextBlock1
*/
text?: string;
}
/**
* @export
*/
export const AnthropicTextBlock1TypeEnum = {
Text: 'text'
} as const;
export type AnthropicTextBlock1TypeEnum = typeof AnthropicTextBlock1TypeEnum[keyof typeof AnthropicTextBlock1TypeEnum];
/**
* Check if a given object implements the AnthropicTextBlock1 interface.
*/
export function instanceOfAnthropicTextBlock1(value: object): value is AnthropicTextBlock1 {
return true;
}
export function AnthropicTextBlock1FromJSON(json: any): AnthropicTextBlock1 {
return AnthropicTextBlock1FromJSONTyped(json, false);
}
export function AnthropicTextBlock1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnthropicTextBlock1 {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'text': json['text'] == null ? undefined : json['text'],
};
}
export function AnthropicTextBlock1ToJSON(json: any): AnthropicTextBlock1 {
return AnthropicTextBlock1ToJSONTyped(json, false);
}
export function AnthropicTextBlock1ToJSONTyped(value?: AnthropicTextBlock1 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'type': value['type'],
'text': value['text'],
};
}