UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
58 lines (57 loc) 2.02 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AnthropicTextBlockToJSONTyped = exports.AnthropicTextBlockToJSON = exports.AnthropicTextBlockFromJSONTyped = exports.AnthropicTextBlockFromJSON = exports.instanceOfAnthropicTextBlock = exports.AnthropicTextBlockTypeEnum = void 0; /** * @export */ exports.AnthropicTextBlockTypeEnum = { Text: 'text' }; /** * Check if a given object implements the AnthropicTextBlock interface. */ function instanceOfAnthropicTextBlock(value) { return true; } exports.instanceOfAnthropicTextBlock = instanceOfAnthropicTextBlock; function AnthropicTextBlockFromJSON(json) { return AnthropicTextBlockFromJSONTyped(json, false); } exports.AnthropicTextBlockFromJSON = AnthropicTextBlockFromJSON; function AnthropicTextBlockFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'] == null ? undefined : json['text'], }; } exports.AnthropicTextBlockFromJSONTyped = AnthropicTextBlockFromJSONTyped; function AnthropicTextBlockToJSON(json) { return AnthropicTextBlockToJSONTyped(json, false); } exports.AnthropicTextBlockToJSON = AnthropicTextBlockToJSON; function AnthropicTextBlockToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'text': value['text'], }; } exports.AnthropicTextBlockToJSONTyped = AnthropicTextBlockToJSONTyped;