UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
60 lines (59 loc) 2.26 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.AnthropicInputJsonDeltaToJSONTyped = exports.AnthropicInputJsonDeltaToJSON = exports.AnthropicInputJsonDeltaFromJSONTyped = exports.AnthropicInputJsonDeltaFromJSON = exports.instanceOfAnthropicInputJsonDelta = exports.AnthropicInputJsonDeltaTypeEnum = void 0; /** * @export */ exports.AnthropicInputJsonDeltaTypeEnum = { InputJsonDelta: 'input_json_delta' }; /** * Check if a given object implements the AnthropicInputJsonDelta interface. */ function instanceOfAnthropicInputJsonDelta(value) { if (!('partialJson' in value) || value['partialJson'] === undefined) return false; return true; } exports.instanceOfAnthropicInputJsonDelta = instanceOfAnthropicInputJsonDelta; function AnthropicInputJsonDeltaFromJSON(json) { return AnthropicInputJsonDeltaFromJSONTyped(json, false); } exports.AnthropicInputJsonDeltaFromJSON = AnthropicInputJsonDeltaFromJSON; function AnthropicInputJsonDeltaFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'partialJson': json['partial_json'], }; } exports.AnthropicInputJsonDeltaFromJSONTyped = AnthropicInputJsonDeltaFromJSONTyped; function AnthropicInputJsonDeltaToJSON(json) { return AnthropicInputJsonDeltaToJSONTyped(json, false); } exports.AnthropicInputJsonDeltaToJSON = AnthropicInputJsonDeltaToJSON; function AnthropicInputJsonDeltaToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'partial_json': value['partialJson'], }; } exports.AnthropicInputJsonDeltaToJSONTyped = AnthropicInputJsonDeltaToJSONTyped;