UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
60 lines (59 loc) 2.1 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.AnthropicTextDelta1ToJSONTyped = exports.AnthropicTextDelta1ToJSON = exports.AnthropicTextDelta1FromJSONTyped = exports.AnthropicTextDelta1FromJSON = exports.instanceOfAnthropicTextDelta1 = exports.AnthropicTextDelta1TypeEnum = void 0; /** * @export */ exports.AnthropicTextDelta1TypeEnum = { TextDelta: 'text_delta' }; /** * Check if a given object implements the AnthropicTextDelta1 interface. */ function instanceOfAnthropicTextDelta1(value) { if (!('text' in value) || value['text'] === undefined) return false; return true; } exports.instanceOfAnthropicTextDelta1 = instanceOfAnthropicTextDelta1; function AnthropicTextDelta1FromJSON(json) { return AnthropicTextDelta1FromJSONTyped(json, false); } exports.AnthropicTextDelta1FromJSON = AnthropicTextDelta1FromJSON; function AnthropicTextDelta1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'], }; } exports.AnthropicTextDelta1FromJSONTyped = AnthropicTextDelta1FromJSONTyped; function AnthropicTextDelta1ToJSON(json) { return AnthropicTextDelta1ToJSONTyped(json, false); } exports.AnthropicTextDelta1ToJSON = AnthropicTextDelta1ToJSON; function AnthropicTextDelta1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'text': value['text'], }; } exports.AnthropicTextDelta1ToJSONTyped = AnthropicTextDelta1ToJSONTyped;