From dd59117453e4e98cd8c82487f8ba4459f7b2f830 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 1 Jul 2024 10:42:26 +0000 Subject: [PATCH] release(0.2.0): Release typescript-fetch SDK --- README.md | 4 +- package.json | 2 +- src/apis/AnalyticsApi.ts | 2 +- src/apis/ChatApi.ts | 2 +- src/apis/ForecastApi.ts | 123 +++++++++++++ src/apis/NewsApi.ts | 2 +- src/apis/PingApi.ts | 2 +- src/apis/RedditApi.ts | 162 +++++++++++++++++ src/apis/StoriesApi.ts | 6 +- src/apis/index.ts | 8 + src/models/AbcAPIErrorModel1.ts | 2 +- src/models/AbcAPIErrorModel10.ts | 2 +- src/models/AbcAPIErrorModel11.ts | 2 +- src/models/AbcAPIErrorModel12.ts | 2 +- src/models/AbcAPIErrorModel13.ts | 2 +- src/models/AbcAPIErrorModel14.ts | 2 +- src/models/AbcAPIErrorModel15.ts | 2 +- src/models/AbcAPIErrorModel16.ts | 2 +- src/models/AbcAPIErrorModel17.ts | 2 +- src/models/AbcAPIErrorModel18.ts | 2 +- src/models/AbcAPIErrorModel19.ts | 2 +- src/models/AbcAPIErrorModel2.ts | 2 +- src/models/AbcAPIErrorModel20.ts | 2 +- src/models/AbcAPIErrorModel21.ts | 2 +- src/models/AbcAPIErrorModel22.ts | 2 +- src/models/AbcAPIErrorModel23.ts | 2 +- src/models/AbcAPIErrorModel24.ts | 2 +- src/models/AbcAPIErrorModel25.ts | 2 +- src/models/AbcAPIErrorModel26.ts | 2 +- src/models/AbcAPIErrorModel27.ts | 2 +- src/models/AbcAPIErrorModel28.ts | 2 +- src/models/AbcAPIErrorModel29.ts | 70 ++++++++ src/models/AbcAPIErrorModel3.ts | 2 +- src/models/AbcAPIErrorModel30.ts | 70 ++++++++ src/models/AbcAPIErrorModel31.ts | 70 ++++++++ src/models/AbcAPIErrorModel32.ts | 70 ++++++++ src/models/AbcAPIErrorModel4.ts | 2 +- src/models/AbcAPIErrorModel5.ts | 2 +- src/models/AbcAPIErrorModel6.ts | 2 +- src/models/AbcAPIErrorModel7.ts | 2 +- src/models/AbcAPIErrorModel8.ts | 2 +- src/models/AbcAPIErrorModel9.ts | 2 +- src/models/Article.ts | 2 +- src/models/AsknewsApiErrorsAPIErrorModel.ts | 2 +- src/models/Choice.ts | 42 +++++ src/models/Classification.ts | 2 +- src/models/ClusterProbabilities.ts | 2 +- src/models/Continent.ts | 2 +- src/models/CreateChatCompletionRequest.ts | 10 +- .../CreateChatCompletionRequestMessage.ts | 2 +- .../CreateChatCompletionRequestMessage1.ts | 2 +- src/models/CreateChatCompletionResponse.ts | 2 +- src/models/CreateChatCompletionResponse1.ts | 2 +- .../CreateChatCompletionResponseChoice.ts | 2 +- .../CreateChatCompletionResponseChoice1.ts | 2 +- .../CreateChatCompletionResponseStream.ts | 2 +- .../CreateChatCompletionResponseStream1.ts | 2 +- ...reateChatCompletionResponseStreamChoice.ts | 2 +- ...eateChatCompletionResponseStreamChoice1.ts | 2 +- .../CreateChatCompletionResponseUsage.ts | 2 +- .../CreateChatCompletionResponseUsage1.ts | 2 +- src/models/Entities.ts | 2 +- src/models/FinanceResponse.ts | 2 +- src/models/FinanceResponseTimeSeries.ts | 2 +- src/models/FinanceResponseTimeSeriesData.ts | 2 +- src/models/ForecastResponse.ts | 164 ++++++++++++++++++ src/models/GraphRelationships.ts | 2 +- src/models/HTTPValidationError.ts | 2 +- src/models/IntraClusterStatistics.ts | 2 +- src/models/ListModelResponse.ts | 2 +- src/models/ModelItem.ts | 2 +- src/models/Offset.ts | 2 +- src/models/PingModel.ts | 2 +- src/models/RedditComment.ts | 2 +- src/models/RedditEntities.ts | 2 +- src/models/RedditPerspective.ts | 2 +- src/models/RedditResponse.ts | 75 ++++++++ src/models/RedditThread.ts | 10 +- src/models/ReportingVoice.ts | 2 +- src/models/SearchResponse.ts | 2 +- src/models/SearchResponseDictItem.ts | 2 +- src/models/Sentiment.ts | 2 +- src/models/SourceReportItem.ts | 2 +- src/models/Stop.ts | 2 +- src/models/StoriesResponse.ts | 2 +- src/models/StoryResponse.ts | 2 +- src/models/StoryUpdate.ts | 28 ++- src/models/User.ts | 2 +- src/models/ValidationError.ts | 2 +- src/models/ValidationErrorItem.ts | 2 +- src/models/ValidationErrorLocInner.ts | 2 +- src/models/ValidationErrorModel.ts | 2 +- src/models/Value.ts | 2 +- src/models/index.ts | 7 + src/runtime.ts | 2 +- 95 files changed, 991 insertions(+), 86 deletions(-) create mode 100644 src/apis/ForecastApi.ts create mode 100644 src/apis/RedditApi.ts create mode 100644 src/models/AbcAPIErrorModel29.ts create mode 100644 src/models/AbcAPIErrorModel30.ts create mode 100644 src/models/AbcAPIErrorModel31.ts create mode 100644 src/models/AbcAPIErrorModel32.ts create mode 100644 src/models/Choice.ts create mode 100644 src/models/ForecastResponse.ts create mode 100644 src/models/RedditResponse.ts diff --git a/README.md b/README.md index 089f4a5..1f47b7e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## @emergentmethods/asknews-typescript-sdk@0.1.14 +## @emergentmethods/asknews-typescript-sdk@0.2.0 Typescript SDK for the AskNews API. This SDK utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -21,7 +21,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition ### Installation ``` -npm install @emergentmethods/asknews-typescript-sdk@0.1.14 --save +npm install @emergentmethods/asknews-typescript-sdk@0.2.0 --save ``` ## Usage diff --git a/package.json b/package.json index ae20916..a0a5de8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@emergentmethods/asknews-typescript-sdk", - "version": "0.1.14", + "version": "0.2.0", "description": "Typescript SDK for AskNews API", "author": "Emergent Methods ", "license": "MIT", diff --git a/src/apis/AnalyticsApi.ts b/src/apis/AnalyticsApi.ts index c8d375f..6046a18 100644 --- a/src/apis/AnalyticsApi.ts +++ b/src/apis/AnalyticsApi.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/apis/ChatApi.ts b/src/apis/ChatApi.ts index d151f33..d48b76a 100644 --- a/src/apis/ChatApi.ts +++ b/src/apis/ChatApi.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/apis/ForecastApi.ts b/src/apis/ForecastApi.ts new file mode 100644 index 0000000..e6a6c45 --- /dev/null +++ b/src/apis/ForecastApi.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 * as runtime from '../runtime'; +import type { + ForecastResponse, + HTTPValidationError, +} from '../models/index'; +import { + ForecastResponseFromJSON, + ForecastResponseToJSON, + HTTPValidationErrorFromJSON, + HTTPValidationErrorToJSON, +} from '../models/index'; + +export interface GetForecastRequest { + query: string; + lookback?: number; + articlesToUse?: number; + method?: GetForecastMethodEnum; + model?: GetForecastModelEnum; + cutoffDate?: string; + useReddit?: boolean; +} + +/** + * + */ +export class ForecastApi extends runtime.BaseAPI { + + /** + * Make an expert forecast for a news event. This endpoint reaches into the news archive, looking back `lookback` days to extract the most relevant news articles, building a timeline of events, and then making an expert forecast. This endpoint is more expensive than the search endpoint, it is calling gpt-4o or claude 3-5 on approx 15k tokens to build the forecast. This endpoint counts toward \"deep\" calls in the billing system. It returns the forecast, the reasoning, and the sources. + * Make an expert forecast for a news event. + */ + async getForecastRaw(requestParameters: GetForecastRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['query'] == null) { + throw new runtime.RequiredError( + 'query', + 'Required parameter "query" was null or undefined when calling getForecast().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['query'] != null) { + queryParameters['query'] = requestParameters['query']; + } + + if (requestParameters['lookback'] != null) { + queryParameters['lookback'] = requestParameters['lookback']; + } + + if (requestParameters['articlesToUse'] != null) { + queryParameters['articles_to_use'] = requestParameters['articlesToUse']; + } + + if (requestParameters['method'] != null) { + queryParameters['method'] = requestParameters['method']; + } + + if (requestParameters['model'] != null) { + queryParameters['model'] = requestParameters['model']; + } + + if (requestParameters['cutoffDate'] != null) { + queryParameters['cutoff_date'] = requestParameters['cutoffDate']; + } + + if (requestParameters['useReddit'] != null) { + queryParameters['use_reddit'] = requestParameters['useReddit']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/v1/chat/forecast`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ForecastResponseFromJSON(jsonValue)); + } + + /** + * Make an expert forecast for a news event. This endpoint reaches into the news archive, looking back `lookback` days to extract the most relevant news articles, building a timeline of events, and then making an expert forecast. This endpoint is more expensive than the search endpoint, it is calling gpt-4o or claude 3-5 on approx 15k tokens to build the forecast. This endpoint counts toward \"deep\" calls in the billing system. It returns the forecast, the reasoning, and the sources. + * Make an expert forecast for a news event. + */ + async getForecast(requestParameters: GetForecastRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getForecastRaw(requestParameters, initOverrides); + return await response.value(); + } + +} + +/** + * @export + */ +export const GetForecastMethodEnum = { + Kw: 'kw' +} as const; +export type GetForecastMethodEnum = typeof GetForecastMethodEnum[keyof typeof GetForecastMethodEnum]; +/** + * @export + */ +export const GetForecastModelEnum = { + Gpt4o: 'gpt-4o', + Claude35Sonnet20240620: 'claude-3-5-sonnet-20240620', + CommandNightly: 'command-nightly' +} as const; +export type GetForecastModelEnum = typeof GetForecastModelEnum[keyof typeof GetForecastModelEnum]; diff --git a/src/apis/NewsApi.ts b/src/apis/NewsApi.ts index 7e918b1..f4aa4fb 100644 --- a/src/apis/NewsApi.ts +++ b/src/apis/NewsApi.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/apis/PingApi.ts b/src/apis/PingApi.ts index bcefa07..9ef516a 100644 --- a/src/apis/PingApi.ts +++ b/src/apis/PingApi.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/apis/RedditApi.ts b/src/apis/RedditApi.ts new file mode 100644 index 0000000..737fb7d --- /dev/null +++ b/src/apis/RedditApi.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 * as runtime from '../runtime'; +import type { + AbcAPIErrorModel29, + AbcAPIErrorModel30, + AbcAPIErrorModel31, + AbcAPIErrorModel32, + AsknewsApiErrorsAPIErrorModel, + RedditResponse, + ValidationErrorModel, +} from '../models/index'; +import { + AbcAPIErrorModel29FromJSON, + AbcAPIErrorModel29ToJSON, + AbcAPIErrorModel30FromJSON, + AbcAPIErrorModel30ToJSON, + AbcAPIErrorModel31FromJSON, + AbcAPIErrorModel31ToJSON, + AbcAPIErrorModel32FromJSON, + AbcAPIErrorModel32ToJSON, + AsknewsApiErrorsAPIErrorModelFromJSON, + AsknewsApiErrorsAPIErrorModelToJSON, + RedditResponseFromJSON, + RedditResponseToJSON, + ValidationErrorModelFromJSON, + ValidationErrorModelToJSON, +} from '../models/index'; + +export interface SearchRedditRequest { + keywords: Array; + nThreads?: number; + method?: SearchRedditMethodEnum; + deep?: boolean; + returnType?: SearchRedditReturnTypeEnum; + timeFilter?: SearchRedditTimeFilterEnum; + sort?: SearchRedditSortEnum; +} + +/** + * + */ +export class RedditApi extends runtime.BaseAPI { + + /** + * Go to Reddit, search threads, summarize the threads, return analysis. `deep`=True is a live web scrape, AskNews searches Reddit, finds threads, summarizes them, analyzes them, and returns the results. `deep`=False is a search in AskNews\' existing database of Reddit threads. + * Search Reddit, summarize threads, and return analysis. + */ + async searchRedditRaw(requestParameters: SearchRedditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['keywords'] == null) { + throw new runtime.RequiredError( + 'keywords', + 'Required parameter "keywords" was null or undefined when calling searchReddit().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['keywords'] != null) { + queryParameters['keywords'] = requestParameters['keywords']; + } + + if (requestParameters['nThreads'] != null) { + queryParameters['n_threads'] = requestParameters['nThreads']; + } + + if (requestParameters['method'] != null) { + queryParameters['method'] = requestParameters['method']; + } + + if (requestParameters['deep'] != null) { + queryParameters['deep'] = requestParameters['deep']; + } + + if (requestParameters['returnType'] != null) { + queryParameters['return_type'] = requestParameters['returnType']; + } + + if (requestParameters['timeFilter'] != null) { + queryParameters['time_filter'] = requestParameters['timeFilter']; + } + + if (requestParameters['sort'] != null) { + queryParameters['sort'] = requestParameters['sort']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/v1/reddit/search`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RedditResponseFromJSON(jsonValue)); + } + + /** + * Go to Reddit, search threads, summarize the threads, return analysis. `deep`=True is a live web scrape, AskNews searches Reddit, finds threads, summarizes them, analyzes them, and returns the results. `deep`=False is a search in AskNews\' existing database of Reddit threads. + * Search Reddit, summarize threads, and return analysis. + */ + async searchReddit(requestParameters: SearchRedditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.searchRedditRaw(requestParameters, initOverrides); + return await response.value(); + } + +} + +/** + * @export + */ +export const SearchRedditMethodEnum = { + Nl: 'nl', + Kw: 'kw' +} as const; +export type SearchRedditMethodEnum = typeof SearchRedditMethodEnum[keyof typeof SearchRedditMethodEnum]; +/** + * @export + */ +export const SearchRedditReturnTypeEnum = { + Dicts: 'dicts', + String: 'string', + Both: 'both' +} as const; +export type SearchRedditReturnTypeEnum = typeof SearchRedditReturnTypeEnum[keyof typeof SearchRedditReturnTypeEnum]; +/** + * @export + */ +export const SearchRedditTimeFilterEnum = { + Hour: 'hour', + Day: 'day', + Week: 'week', + Month: 'month', + Year: 'year', + All: 'all' +} as const; +export type SearchRedditTimeFilterEnum = typeof SearchRedditTimeFilterEnum[keyof typeof SearchRedditTimeFilterEnum]; +/** + * @export + */ +export const SearchRedditSortEnum = { + Relevance: 'relevance', + Hot: 'hot', + Top: 'top', + New: 'new', + Comments: 'comments' +} as const; +export type SearchRedditSortEnum = typeof SearchRedditSortEnum[keyof typeof SearchRedditSortEnum]; diff --git a/src/apis/StoriesApi.ts b/src/apis/StoriesApi.ts index 01eb4fb..dfc5ed8 100644 --- a/src/apis/StoriesApi.ts +++ b/src/apis/StoriesApi.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -345,7 +345,9 @@ export type GetStoriesProvocativeEnum = typeof GetStoriesProvocativeEnum[keyof t */ export const GetStoriesStrategyEnum = { Default: 'default', - Topstories: 'topstories' + Topstories: 'topstories', + TopstoriesCategories: 'topstories_categories', + TopstoriesContinents: 'topstories_continents' } as const; export type GetStoriesStrategyEnum = typeof GetStoriesStrategyEnum[keyof typeof GetStoriesStrategyEnum]; /** diff --git a/src/apis/index.ts b/src/apis/index.ts index a9f145b..37ed95b 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -5,10 +5,14 @@ import { AnalyticsApi } from "./AnalyticsApi"; export * from './AnalyticsApi'; import { ChatApi } from "./ChatApi"; export * from './ChatApi'; +import { ForecastApi } from "./ForecastApi"; +export * from './ForecastApi'; import { NewsApi } from "./NewsApi"; export * from './NewsApi'; import { PingApi } from "./PingApi"; export * from './PingApi'; +import { RedditApi } from "./RedditApi"; +export * from './RedditApi'; import { StoriesApi } from "./StoriesApi"; export * from './StoriesApi'; @@ -16,8 +20,10 @@ export class AskNewsSDK { protected configuration: runtime.Configuration; protected analytics: AnalyticsApi; protected chat: ChatApi; + protected forecast: ForecastApi; protected news: NewsApi; protected ping: PingApi; + protected reddit: RedditApi; protected stories: StoriesApi; constructor( @@ -31,8 +37,10 @@ export class AskNewsSDK { this.configuration = _configuration; this.analytics = new AnalyticsApi(_configuration); this.chat = new ChatApi(_configuration); + this.forecast = new ForecastApi(_configuration); this.news = new NewsApi(_configuration); this.ping = new PingApi(_configuration); + this.reddit = new RedditApi(_configuration); this.stories = new StoriesApi(_configuration); } } diff --git a/src/models/AbcAPIErrorModel1.ts b/src/models/AbcAPIErrorModel1.ts index b194ee1..77eadf3 100644 --- a/src/models/AbcAPIErrorModel1.ts +++ b/src/models/AbcAPIErrorModel1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel10.ts b/src/models/AbcAPIErrorModel10.ts index 8f231f6..930b650 100644 --- a/src/models/AbcAPIErrorModel10.ts +++ b/src/models/AbcAPIErrorModel10.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel11.ts b/src/models/AbcAPIErrorModel11.ts index 9846dbf..6a1a3cd 100644 --- a/src/models/AbcAPIErrorModel11.ts +++ b/src/models/AbcAPIErrorModel11.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel12.ts b/src/models/AbcAPIErrorModel12.ts index 2a988c3..955b2cc 100644 --- a/src/models/AbcAPIErrorModel12.ts +++ b/src/models/AbcAPIErrorModel12.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel13.ts b/src/models/AbcAPIErrorModel13.ts index c529a00..eff4b41 100644 --- a/src/models/AbcAPIErrorModel13.ts +++ b/src/models/AbcAPIErrorModel13.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel14.ts b/src/models/AbcAPIErrorModel14.ts index b5ed1d2..9fd1e12 100644 --- a/src/models/AbcAPIErrorModel14.ts +++ b/src/models/AbcAPIErrorModel14.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel15.ts b/src/models/AbcAPIErrorModel15.ts index a7f9cfb..a7706df 100644 --- a/src/models/AbcAPIErrorModel15.ts +++ b/src/models/AbcAPIErrorModel15.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel16.ts b/src/models/AbcAPIErrorModel16.ts index dd9c61a..252d7a4 100644 --- a/src/models/AbcAPIErrorModel16.ts +++ b/src/models/AbcAPIErrorModel16.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel17.ts b/src/models/AbcAPIErrorModel17.ts index 22815e7..8d292e3 100644 --- a/src/models/AbcAPIErrorModel17.ts +++ b/src/models/AbcAPIErrorModel17.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel18.ts b/src/models/AbcAPIErrorModel18.ts index 0cc8a5a..d3404b4 100644 --- a/src/models/AbcAPIErrorModel18.ts +++ b/src/models/AbcAPIErrorModel18.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel19.ts b/src/models/AbcAPIErrorModel19.ts index 1fd5324..859f08c 100644 --- a/src/models/AbcAPIErrorModel19.ts +++ b/src/models/AbcAPIErrorModel19.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel2.ts b/src/models/AbcAPIErrorModel2.ts index 013761f..f4919e3 100644 --- a/src/models/AbcAPIErrorModel2.ts +++ b/src/models/AbcAPIErrorModel2.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel20.ts b/src/models/AbcAPIErrorModel20.ts index 9e4afa7..bde0f1d 100644 --- a/src/models/AbcAPIErrorModel20.ts +++ b/src/models/AbcAPIErrorModel20.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel21.ts b/src/models/AbcAPIErrorModel21.ts index 1330921..3a757de 100644 --- a/src/models/AbcAPIErrorModel21.ts +++ b/src/models/AbcAPIErrorModel21.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel22.ts b/src/models/AbcAPIErrorModel22.ts index c6f0850..875f189 100644 --- a/src/models/AbcAPIErrorModel22.ts +++ b/src/models/AbcAPIErrorModel22.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel23.ts b/src/models/AbcAPIErrorModel23.ts index 6cedfb8..433fd92 100644 --- a/src/models/AbcAPIErrorModel23.ts +++ b/src/models/AbcAPIErrorModel23.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel24.ts b/src/models/AbcAPIErrorModel24.ts index 7e1ba47..c778c46 100644 --- a/src/models/AbcAPIErrorModel24.ts +++ b/src/models/AbcAPIErrorModel24.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel25.ts b/src/models/AbcAPIErrorModel25.ts index 66a1159..7e051c2 100644 --- a/src/models/AbcAPIErrorModel25.ts +++ b/src/models/AbcAPIErrorModel25.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel26.ts b/src/models/AbcAPIErrorModel26.ts index fba7417..44c4794 100644 --- a/src/models/AbcAPIErrorModel26.ts +++ b/src/models/AbcAPIErrorModel26.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel27.ts b/src/models/AbcAPIErrorModel27.ts index 773e16a..e286d2e 100644 --- a/src/models/AbcAPIErrorModel27.ts +++ b/src/models/AbcAPIErrorModel27.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel28.ts b/src/models/AbcAPIErrorModel28.ts index 3e8aeee..8161fc7 100644 --- a/src/models/AbcAPIErrorModel28.ts +++ b/src/models/AbcAPIErrorModel28.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel29.ts b/src/models/AbcAPIErrorModel29.ts new file mode 100644 index 0000000..bcef962 --- /dev/null +++ b/src/models/AbcAPIErrorModel29.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 AbcAPIErrorModel29 + */ +export interface AbcAPIErrorModel29 { + /** + * + * @type {number} + * @memberof AbcAPIErrorModel29 + */ + code: number; + /** + * + * @type {string} + * @memberof AbcAPIErrorModel29 + */ + detail: string; +} + +/** + * Check if a given object implements the AbcAPIErrorModel29 interface. + */ +export function instanceOfAbcAPIErrorModel29(value: object): boolean { + if (!('code' in value)) return false; + if (!('detail' in value)) return false; + return true; +} + +export function AbcAPIErrorModel29FromJSON(json: any): AbcAPIErrorModel29 { + return AbcAPIErrorModel29FromJSONTyped(json, false); +} + +export function AbcAPIErrorModel29FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel29 { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'detail': json['detail'], + }; +} + +export function AbcAPIErrorModel29ToJSON(value?: AbcAPIErrorModel29 | null): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'detail': value['detail'], + }; +} + diff --git a/src/models/AbcAPIErrorModel3.ts b/src/models/AbcAPIErrorModel3.ts index f91c13f..b58b170 100644 --- a/src/models/AbcAPIErrorModel3.ts +++ b/src/models/AbcAPIErrorModel3.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel30.ts b/src/models/AbcAPIErrorModel30.ts new file mode 100644 index 0000000..00554e9 --- /dev/null +++ b/src/models/AbcAPIErrorModel30.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 AbcAPIErrorModel30 + */ +export interface AbcAPIErrorModel30 { + /** + * + * @type {number} + * @memberof AbcAPIErrorModel30 + */ + code: number; + /** + * + * @type {string} + * @memberof AbcAPIErrorModel30 + */ + detail: string; +} + +/** + * Check if a given object implements the AbcAPIErrorModel30 interface. + */ +export function instanceOfAbcAPIErrorModel30(value: object): boolean { + if (!('code' in value)) return false; + if (!('detail' in value)) return false; + return true; +} + +export function AbcAPIErrorModel30FromJSON(json: any): AbcAPIErrorModel30 { + return AbcAPIErrorModel30FromJSONTyped(json, false); +} + +export function AbcAPIErrorModel30FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel30 { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'detail': json['detail'], + }; +} + +export function AbcAPIErrorModel30ToJSON(value?: AbcAPIErrorModel30 | null): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'detail': value['detail'], + }; +} + diff --git a/src/models/AbcAPIErrorModel31.ts b/src/models/AbcAPIErrorModel31.ts new file mode 100644 index 0000000..bc4d632 --- /dev/null +++ b/src/models/AbcAPIErrorModel31.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 AbcAPIErrorModel31 + */ +export interface AbcAPIErrorModel31 { + /** + * + * @type {number} + * @memberof AbcAPIErrorModel31 + */ + code: number; + /** + * + * @type {string} + * @memberof AbcAPIErrorModel31 + */ + detail: string; +} + +/** + * Check if a given object implements the AbcAPIErrorModel31 interface. + */ +export function instanceOfAbcAPIErrorModel31(value: object): boolean { + if (!('code' in value)) return false; + if (!('detail' in value)) return false; + return true; +} + +export function AbcAPIErrorModel31FromJSON(json: any): AbcAPIErrorModel31 { + return AbcAPIErrorModel31FromJSONTyped(json, false); +} + +export function AbcAPIErrorModel31FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel31 { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'detail': json['detail'], + }; +} + +export function AbcAPIErrorModel31ToJSON(value?: AbcAPIErrorModel31 | null): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'detail': value['detail'], + }; +} + diff --git a/src/models/AbcAPIErrorModel32.ts b/src/models/AbcAPIErrorModel32.ts new file mode 100644 index 0000000..1fe2419 --- /dev/null +++ b/src/models/AbcAPIErrorModel32.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 AbcAPIErrorModel32 + */ +export interface AbcAPIErrorModel32 { + /** + * + * @type {number} + * @memberof AbcAPIErrorModel32 + */ + code: number; + /** + * + * @type {string} + * @memberof AbcAPIErrorModel32 + */ + detail: string; +} + +/** + * Check if a given object implements the AbcAPIErrorModel32 interface. + */ +export function instanceOfAbcAPIErrorModel32(value: object): boolean { + if (!('code' in value)) return false; + if (!('detail' in value)) return false; + return true; +} + +export function AbcAPIErrorModel32FromJSON(json: any): AbcAPIErrorModel32 { + return AbcAPIErrorModel32FromJSONTyped(json, false); +} + +export function AbcAPIErrorModel32FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel32 { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'detail': json['detail'], + }; +} + +export function AbcAPIErrorModel32ToJSON(value?: AbcAPIErrorModel32 | null): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'detail': value['detail'], + }; +} + diff --git a/src/models/AbcAPIErrorModel4.ts b/src/models/AbcAPIErrorModel4.ts index 3706aac..913d471 100644 --- a/src/models/AbcAPIErrorModel4.ts +++ b/src/models/AbcAPIErrorModel4.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel5.ts b/src/models/AbcAPIErrorModel5.ts index 73d4b1f..5f2d1a4 100644 --- a/src/models/AbcAPIErrorModel5.ts +++ b/src/models/AbcAPIErrorModel5.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel6.ts b/src/models/AbcAPIErrorModel6.ts index 549249f..a6ac0a5 100644 --- a/src/models/AbcAPIErrorModel6.ts +++ b/src/models/AbcAPIErrorModel6.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel7.ts b/src/models/AbcAPIErrorModel7.ts index 9b0fb1e..41a4543 100644 --- a/src/models/AbcAPIErrorModel7.ts +++ b/src/models/AbcAPIErrorModel7.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel8.ts b/src/models/AbcAPIErrorModel8.ts index 0538536..cb909e8 100644 --- a/src/models/AbcAPIErrorModel8.ts +++ b/src/models/AbcAPIErrorModel8.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AbcAPIErrorModel9.ts b/src/models/AbcAPIErrorModel9.ts index eb9b763..eae8cc3 100644 --- a/src/models/AbcAPIErrorModel9.ts +++ b/src/models/AbcAPIErrorModel9.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Article.ts b/src/models/Article.ts index 4ced66f..5003b95 100644 --- a/src/models/Article.ts +++ b/src/models/Article.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AsknewsApiErrorsAPIErrorModel.ts b/src/models/AsknewsApiErrorsAPIErrorModel.ts index 588fe9e..bf6a3b1 100644 --- a/src/models/AsknewsApiErrorsAPIErrorModel.ts +++ b/src/models/AsknewsApiErrorsAPIErrorModel.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Choice.ts b/src/models/Choice.ts new file mode 100644 index 0000000..e03eb89 --- /dev/null +++ b/src/models/Choice.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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 Choice + */ +export interface Choice { +} + +/** + * Check if a given object implements the Choice interface. + */ +export function instanceOfChoice(value: object): boolean { + return true; +} + +export function ChoiceFromJSON(json: any): Choice { + return ChoiceFromJSONTyped(json, false); +} + +export function ChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Choice { + return json; +} + +export function ChoiceToJSON(value?: Choice | null): any { + return value; +} + diff --git a/src/models/Classification.ts b/src/models/Classification.ts index b4baf74..10d1525 100644 --- a/src/models/Classification.ts +++ b/src/models/Classification.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ClusterProbabilities.ts b/src/models/ClusterProbabilities.ts index bb56896..25a7f06 100644 --- a/src/models/ClusterProbabilities.ts +++ b/src/models/ClusterProbabilities.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Continent.ts b/src/models/Continent.ts index ee0b7f9..a81cbcc 100644 --- a/src/models/Continent.ts +++ b/src/models/Continent.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionRequest.ts b/src/models/CreateChatCompletionRequest.ts index fa05f7f..00c3844 100644 --- a/src/models/CreateChatCompletionRequest.ts +++ b/src/models/CreateChatCompletionRequest.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -128,6 +128,12 @@ export interface CreateChatCompletionRequest { * @memberof CreateChatCompletionRequest */ asknewsWatermark?: any; + /** + * + * @type {any} + * @memberof CreateChatCompletionRequest + */ + conversationalAwareness?: any; } @@ -175,6 +181,7 @@ export function CreateChatCompletionRequestFromJSONTyped(json: any, ignoreDiscri 'appendReferences': json['append_references'] == null ? undefined : json['append_references'], 'journalistMode': json['journalist_mode'] == null ? undefined : json['journalist_mode'], 'asknewsWatermark': json['asknews_watermark'] == null ? undefined : json['asknews_watermark'], + 'conversationalAwareness': json['conversational_awareness'] == null ? undefined : json['conversational_awareness'], }; } @@ -199,6 +206,7 @@ export function CreateChatCompletionRequestToJSON(value?: CreateChatCompletionRe 'append_references': value['appendReferences'], 'journalist_mode': value['journalistMode'], 'asknews_watermark': value['asknewsWatermark'], + 'conversational_awareness': value['conversationalAwareness'], }; } diff --git a/src/models/CreateChatCompletionRequestMessage.ts b/src/models/CreateChatCompletionRequestMessage.ts index 910ce56..4f6713d 100644 --- a/src/models/CreateChatCompletionRequestMessage.ts +++ b/src/models/CreateChatCompletionRequestMessage.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionRequestMessage1.ts b/src/models/CreateChatCompletionRequestMessage1.ts index f77ad1b..5c95dea 100644 --- a/src/models/CreateChatCompletionRequestMessage1.ts +++ b/src/models/CreateChatCompletionRequestMessage1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponse.ts b/src/models/CreateChatCompletionResponse.ts index 22e3380..a22257c 100644 --- a/src/models/CreateChatCompletionResponse.ts +++ b/src/models/CreateChatCompletionResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponse1.ts b/src/models/CreateChatCompletionResponse1.ts index 494304d..20887d5 100644 --- a/src/models/CreateChatCompletionResponse1.ts +++ b/src/models/CreateChatCompletionResponse1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseChoice.ts b/src/models/CreateChatCompletionResponseChoice.ts index 9078962..d650156 100644 --- a/src/models/CreateChatCompletionResponseChoice.ts +++ b/src/models/CreateChatCompletionResponseChoice.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseChoice1.ts b/src/models/CreateChatCompletionResponseChoice1.ts index 240ecdd..cffd548 100644 --- a/src/models/CreateChatCompletionResponseChoice1.ts +++ b/src/models/CreateChatCompletionResponseChoice1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseStream.ts b/src/models/CreateChatCompletionResponseStream.ts index b9bc8f7..341cdba 100644 --- a/src/models/CreateChatCompletionResponseStream.ts +++ b/src/models/CreateChatCompletionResponseStream.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseStream1.ts b/src/models/CreateChatCompletionResponseStream1.ts index 47d712a..1c52cfd 100644 --- a/src/models/CreateChatCompletionResponseStream1.ts +++ b/src/models/CreateChatCompletionResponseStream1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseStreamChoice.ts b/src/models/CreateChatCompletionResponseStreamChoice.ts index 70964d0..3d97878 100644 --- a/src/models/CreateChatCompletionResponseStreamChoice.ts +++ b/src/models/CreateChatCompletionResponseStreamChoice.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseStreamChoice1.ts b/src/models/CreateChatCompletionResponseStreamChoice1.ts index 25c81d2..2b38d8a 100644 --- a/src/models/CreateChatCompletionResponseStreamChoice1.ts +++ b/src/models/CreateChatCompletionResponseStreamChoice1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseUsage.ts b/src/models/CreateChatCompletionResponseUsage.ts index 704a4ce..822a1d7 100644 --- a/src/models/CreateChatCompletionResponseUsage.ts +++ b/src/models/CreateChatCompletionResponseUsage.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateChatCompletionResponseUsage1.ts b/src/models/CreateChatCompletionResponseUsage1.ts index 899b483..703f78f 100644 --- a/src/models/CreateChatCompletionResponseUsage1.ts +++ b/src/models/CreateChatCompletionResponseUsage1.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Entities.ts b/src/models/Entities.ts index ce905b9..3292271 100644 --- a/src/models/Entities.ts +++ b/src/models/Entities.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/FinanceResponse.ts b/src/models/FinanceResponse.ts index 7124e5b..32d4c3f 100644 --- a/src/models/FinanceResponse.ts +++ b/src/models/FinanceResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/FinanceResponseTimeSeries.ts b/src/models/FinanceResponseTimeSeries.ts index 864a3b6..49c19aa 100644 --- a/src/models/FinanceResponseTimeSeries.ts +++ b/src/models/FinanceResponseTimeSeries.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/FinanceResponseTimeSeriesData.ts b/src/models/FinanceResponseTimeSeriesData.ts index b2a6cb0..e019e40 100644 --- a/src/models/FinanceResponseTimeSeriesData.ts +++ b/src/models/FinanceResponseTimeSeriesData.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ForecastResponse.ts b/src/models/ForecastResponse.ts new file mode 100644 index 0000000..9a568f9 --- /dev/null +++ b/src/models/ForecastResponse.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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'; +import type { Choice } from './Choice'; +import { + ChoiceFromJSON, + ChoiceFromJSONTyped, + ChoiceToJSON, +} from './Choice'; +import type { SearchResponseDictItem } from './SearchResponseDictItem'; +import { + SearchResponseDictItemFromJSON, + SearchResponseDictItemFromJSONTyped, + SearchResponseDictItemToJSON, +} from './SearchResponseDictItem'; + +/** + * + * @export + * @interface ForecastResponse + */ +export interface ForecastResponse { + /** + * + * @type {string} + * @memberof ForecastResponse + */ + forecast: string; + /** + * + * @type {string} + * @memberof ForecastResponse + */ + resolutionCriteria: string; + /** + * + * @type {Date} + * @memberof ForecastResponse + */ + date: Date; + /** + * + * @type {string} + * @memberof ForecastResponse + */ + reasoning: string; + /** + * + * @type {Array} + * @memberof ForecastResponse + */ + sources: Array; + /** + * + * @type {Array} + * @memberof ForecastResponse + */ + timeline: Array; + /** + * + * @type {string} + * @memberof ForecastResponse + */ + oppositeRequest: string; + /** + * + * @type {number} + * @memberof ForecastResponse + */ + confidence: number; + /** + * + * @type {Choice} + * @memberof ForecastResponse + */ + choice: Choice; + /** + * + * @type {number} + * @memberof ForecastResponse + */ + llmConfidence: number; + /** + * + * @type {string} + * @memberof ForecastResponse + */ + modelUsed: string; +} + +/** + * Check if a given object implements the ForecastResponse interface. + */ +export function instanceOfForecastResponse(value: object): boolean { + if (!('forecast' in value)) return false; + if (!('resolutionCriteria' in value)) return false; + if (!('date' in value)) return false; + if (!('reasoning' in value)) return false; + if (!('sources' in value)) return false; + if (!('timeline' in value)) return false; + if (!('oppositeRequest' in value)) return false; + if (!('confidence' in value)) return false; + if (!('choice' in value)) return false; + if (!('llmConfidence' in value)) return false; + if (!('modelUsed' in value)) return false; + return true; +} + +export function ForecastResponseFromJSON(json: any): ForecastResponse { + return ForecastResponseFromJSONTyped(json, false); +} + +export function ForecastResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecastResponse { + if (json == null) { + return json; + } + return { + + 'forecast': json['forecast'], + 'resolutionCriteria': json['resolution_criteria'], + 'date': (new Date(json['date'])), + 'reasoning': json['reasoning'], + 'sources': ((json['sources'] as Array).map(SearchResponseDictItemFromJSON)), + 'timeline': json['timeline'], + 'oppositeRequest': json['opposite_request'], + 'confidence': json['confidence'], + 'choice': ChoiceFromJSON(json['choice']), + 'llmConfidence': json['llm_confidence'], + 'modelUsed': json['model_used'], + }; +} + +export function ForecastResponseToJSON(value?: ForecastResponse | null): any { + if (value == null) { + return value; + } + return { + + 'forecast': value['forecast'], + 'resolution_criteria': value['resolutionCriteria'], + 'date': ((value['date']).toISOString()), + 'reasoning': value['reasoning'], + 'sources': ((value['sources'] as Array).map(SearchResponseDictItemToJSON)), + 'timeline': value['timeline'], + 'opposite_request': value['oppositeRequest'], + 'confidence': value['confidence'], + 'choice': ChoiceToJSON(value['choice']), + 'llm_confidence': value['llmConfidence'], + 'model_used': value['modelUsed'], + }; +} + diff --git a/src/models/GraphRelationships.ts b/src/models/GraphRelationships.ts index c5ce9bf..c16aa28 100644 --- a/src/models/GraphRelationships.ts +++ b/src/models/GraphRelationships.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/HTTPValidationError.ts b/src/models/HTTPValidationError.ts index cf89846..cce1573 100644 --- a/src/models/HTTPValidationError.ts +++ b/src/models/HTTPValidationError.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntraClusterStatistics.ts b/src/models/IntraClusterStatistics.ts index 2b5ee88..e17bb7f 100644 --- a/src/models/IntraClusterStatistics.ts +++ b/src/models/IntraClusterStatistics.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ListModelResponse.ts b/src/models/ListModelResponse.ts index a684273..51448e5 100644 --- a/src/models/ListModelResponse.ts +++ b/src/models/ListModelResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ModelItem.ts b/src/models/ModelItem.ts index 9eec112..35e72fe 100644 --- a/src/models/ModelItem.ts +++ b/src/models/ModelItem.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Offset.ts b/src/models/Offset.ts index bd0d6d0..6b3b105 100644 --- a/src/models/Offset.ts +++ b/src/models/Offset.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/PingModel.ts b/src/models/PingModel.ts index 2f5e7f9..e3224ff 100644 --- a/src/models/PingModel.ts +++ b/src/models/PingModel.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RedditComment.ts b/src/models/RedditComment.ts index 9a497a7..6ec0055 100644 --- a/src/models/RedditComment.ts +++ b/src/models/RedditComment.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RedditEntities.ts b/src/models/RedditEntities.ts index 55c1a22..72e7e29 100644 --- a/src/models/RedditEntities.ts +++ b/src/models/RedditEntities.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RedditPerspective.ts b/src/models/RedditPerspective.ts index 045d191..e839407 100644 --- a/src/models/RedditPerspective.ts +++ b/src/models/RedditPerspective.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RedditResponse.ts b/src/models/RedditResponse.ts new file mode 100644 index 0000000..992f212 --- /dev/null +++ b/src/models/RedditResponse.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * AskNews API + * AskNews API + * + * The version of the OpenAPI document: 0.8.2 + * 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'; +import type { RedditThread } from './RedditThread'; +import { + RedditThreadFromJSON, + RedditThreadFromJSONTyped, + RedditThreadToJSON, +} from './RedditThread'; + +/** + * + * @export + * @interface RedditResponse + */ +export interface RedditResponse { + /** + * + * @type {Array} + * @memberof RedditResponse + */ + asDicts?: Array; + /** + * + * @type {string} + * @memberof RedditResponse + */ + asString?: string; +} + +/** + * Check if a given object implements the RedditResponse interface. + */ +export function instanceOfRedditResponse(value: object): boolean { + return true; +} + +export function RedditResponseFromJSON(json: any): RedditResponse { + return RedditResponseFromJSONTyped(json, false); +} + +export function RedditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedditResponse { + if (json == null) { + return json; + } + return { + + 'asDicts': json['as_dicts'] == null ? undefined : ((json['as_dicts'] as Array).map(RedditThreadFromJSON)), + 'asString': json['as_string'] == null ? undefined : json['as_string'], + }; +} + +export function RedditResponseToJSON(value?: RedditResponse | null): any { + if (value == null) { + return value; + } + return { + + 'as_dicts': value['asDicts'] == null ? undefined : ((value['asDicts'] as Array).map(RedditThreadToJSON)), + 'as_string': value['asString'], + }; +} + diff --git a/src/models/RedditThread.ts b/src/models/RedditThread.ts index 1bebe8e..fbcaf91 100644 --- a/src/models/RedditThread.ts +++ b/src/models/RedditThread.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -164,6 +164,12 @@ export interface RedditThread { * @memberof RedditThread */ url: string; + /** + * + * @type {string} + * @memberof RedditThread + */ + mainSpeculation?: string; } /** @@ -222,6 +228,7 @@ export function RedditThreadFromJSONTyped(json: any, ignoreDiscriminator: boolea 'topic': json['topic'], 'upvotes': json['upvotes'], 'url': json['url'], + 'mainSpeculation': json['main_speculation'] == null ? undefined : json['main_speculation'], }; } @@ -251,6 +258,7 @@ export function RedditThreadToJSON(value?: RedditThread | null): any { 'topic': value['topic'], 'upvotes': value['upvotes'], 'url': value['url'], + 'main_speculation': value['mainSpeculation'], }; } diff --git a/src/models/ReportingVoice.ts b/src/models/ReportingVoice.ts index 0f4373d..d636915 100644 --- a/src/models/ReportingVoice.ts +++ b/src/models/ReportingVoice.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/SearchResponse.ts b/src/models/SearchResponse.ts index c0fa937..5338f3e 100644 --- a/src/models/SearchResponse.ts +++ b/src/models/SearchResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/SearchResponseDictItem.ts b/src/models/SearchResponseDictItem.ts index 0ec07f1..c073517 100644 --- a/src/models/SearchResponseDictItem.ts +++ b/src/models/SearchResponseDictItem.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Sentiment.ts b/src/models/Sentiment.ts index 620421c..e839e33 100644 --- a/src/models/Sentiment.ts +++ b/src/models/Sentiment.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/SourceReportItem.ts b/src/models/SourceReportItem.ts index d19e8e9..049a8f2 100644 --- a/src/models/SourceReportItem.ts +++ b/src/models/SourceReportItem.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Stop.ts b/src/models/Stop.ts index d55d20d..7a65585 100644 --- a/src/models/Stop.ts +++ b/src/models/Stop.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/StoriesResponse.ts b/src/models/StoriesResponse.ts index 0365ea8..79a85ac 100644 --- a/src/models/StoriesResponse.ts +++ b/src/models/StoriesResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/StoryResponse.ts b/src/models/StoryResponse.ts index c7aaf05..534ef0b 100644 --- a/src/models/StoryResponse.ts +++ b/src/models/StoryResponse.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/StoryUpdate.ts b/src/models/StoryUpdate.ts index e32ba7c..b41599c 100644 --- a/src/models/StoryUpdate.ts +++ b/src/models/StoryUpdate.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -272,6 +272,24 @@ export interface StoryUpdate { * @memberof StoryUpdate */ mermaid: string; + /** + * + * @type {string} + * @memberof StoryUpdate + */ + ccImageUrl: string; + /** + * + * @type {Array} + * @memberof StoryUpdate + */ + displayImageUrls: Array | null; + /** + * + * @type {number} + * @memberof StoryUpdate + */ + alignment?: number; } @@ -324,6 +342,8 @@ export function instanceOfStoryUpdate(value: object): boolean { if (!('markdownCitations' in value)) return false; if (!('relationships' in value)) return false; if (!('mermaid' in value)) return false; + if (!('ccImageUrl' in value)) return false; + if (!('displayImageUrls' in value)) return false; return true; } @@ -373,6 +393,9 @@ export function StoryUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean 'reportingVoice': json['reporting_voice'] == null ? undefined : json['reporting_voice'], 'relationships': GraphRelationshipsFromJSON(json['relationships']), 'mermaid': json['mermaid'], + 'ccImageUrl': json['cc_image_url'], + 'displayImageUrls': json['display_image_urls'], + 'alignment': json['alignment'] == null ? undefined : json['alignment'], }; } @@ -418,6 +441,9 @@ export function StoryUpdateToJSON(value?: StoryUpdate | null): any { 'reporting_voice': value['reportingVoice'], 'relationships': GraphRelationshipsToJSON(value['relationships']), 'mermaid': value['mermaid'], + 'cc_image_url': value['ccImageUrl'], + 'display_image_urls': value['displayImageUrls'], + 'alignment': value['alignment'], }; } diff --git a/src/models/User.ts b/src/models/User.ts index 1d17770..52488a3 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ValidationError.ts b/src/models/ValidationError.ts index 6910b17..07ee559 100644 --- a/src/models/ValidationError.ts +++ b/src/models/ValidationError.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ValidationErrorItem.ts b/src/models/ValidationErrorItem.ts index f9315b9..b18ad31 100644 --- a/src/models/ValidationErrorItem.ts +++ b/src/models/ValidationErrorItem.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ValidationErrorLocInner.ts b/src/models/ValidationErrorLocInner.ts index 1257435..d08a784 100644 --- a/src/models/ValidationErrorLocInner.ts +++ b/src/models/ValidationErrorLocInner.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ValidationErrorModel.ts b/src/models/ValidationErrorModel.ts index f029808..e166d14 100644 --- a/src/models/ValidationErrorModel.ts +++ b/src/models/ValidationErrorModel.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Value.ts b/src/models/Value.ts index 3a4d88d..dcabef8 100644 --- a/src/models/Value.ts +++ b/src/models/Value.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/index.ts b/src/models/index.ts index f632b30..63bfee5 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -21,7 +21,11 @@ export * from './AbcAPIErrorModel25'; export * from './AbcAPIErrorModel26'; export * from './AbcAPIErrorModel27'; export * from './AbcAPIErrorModel28'; +export * from './AbcAPIErrorModel29'; export * from './AbcAPIErrorModel3'; +export * from './AbcAPIErrorModel30'; +export * from './AbcAPIErrorModel31'; +export * from './AbcAPIErrorModel32'; export * from './AbcAPIErrorModel4'; export * from './AbcAPIErrorModel5'; export * from './AbcAPIErrorModel6'; @@ -30,6 +34,7 @@ export * from './AbcAPIErrorModel8'; export * from './AbcAPIErrorModel9'; export * from './Article'; export * from './AsknewsApiErrorsAPIErrorModel'; +export * from './Choice'; export * from './Classification'; export * from './ClusterProbabilities'; export * from './Continent'; @@ -50,6 +55,7 @@ export * from './Entities'; export * from './FinanceResponse'; export * from './FinanceResponseTimeSeries'; export * from './FinanceResponseTimeSeriesData'; +export * from './ForecastResponse'; export * from './GraphRelationships'; export * from './HTTPValidationError'; export * from './IntraClusterStatistics'; @@ -60,6 +66,7 @@ export * from './PingModel'; export * from './RedditComment'; export * from './RedditEntities'; export * from './RedditPerspective'; +export * from './RedditResponse'; export * from './RedditThread'; export * from './ReportingVoice'; export * from './SearchResponse'; diff --git a/src/runtime.ts b/src/runtime.ts index 853c3c1..370b74c 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -4,7 +4,7 @@ * AskNews API * AskNews API * - * The version of the OpenAPI document: 0.6.4 + * The version of the OpenAPI document: 0.8.2 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).