@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
58 lines (57 loc) • 2.18 kB
JavaScript
;
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnthropicThinkingBlock1ToJSONTyped = exports.AnthropicThinkingBlock1ToJSON = exports.AnthropicThinkingBlock1FromJSONTyped = exports.AnthropicThinkingBlock1FromJSON = exports.instanceOfAnthropicThinkingBlock1 = exports.AnthropicThinkingBlock1TypeEnum = void 0;
/**
* @export
*/
exports.AnthropicThinkingBlock1TypeEnum = {
Thinking: 'thinking'
};
/**
* Check if a given object implements the AnthropicThinkingBlock1 interface.
*/
function instanceOfAnthropicThinkingBlock1(value) {
return true;
}
exports.instanceOfAnthropicThinkingBlock1 = instanceOfAnthropicThinkingBlock1;
function AnthropicThinkingBlock1FromJSON(json) {
return AnthropicThinkingBlock1FromJSONTyped(json, false);
}
exports.AnthropicThinkingBlock1FromJSON = AnthropicThinkingBlock1FromJSON;
function AnthropicThinkingBlock1FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'thinking': json['thinking'] == null ? undefined : json['thinking'],
};
}
exports.AnthropicThinkingBlock1FromJSONTyped = AnthropicThinkingBlock1FromJSONTyped;
function AnthropicThinkingBlock1ToJSON(json) {
return AnthropicThinkingBlock1ToJSONTyped(json, false);
}
exports.AnthropicThinkingBlock1ToJSON = AnthropicThinkingBlock1ToJSON;
function AnthropicThinkingBlock1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'thinking': value['thinking'],
};
}
exports.AnthropicThinkingBlock1ToJSONTyped = AnthropicThinkingBlock1ToJSONTyped;