From 9f59924aafd264b96b6d441e9a131e872c57f7c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 05:42:55 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- api.md | 6 ------ src/index.ts | 5 ----- src/resources/index.ts | 1 - src/resources/models.ts | 11 ----------- src/resources/queries.ts | 7 +++---- 5 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 src/resources/models.ts diff --git a/api.md b/api.md index 030c902..66bdfa7 100644 --- a/api.md +++ b/api.md @@ -63,9 +63,3 @@ Types: Methods: - client.parsers.parseDocument({ ...params }) -> ParserParseDocumentResponse - -# Models - -Types: - -- StrJson diff --git a/src/index.ts b/src/index.ts index b12b3a9..bce7ff9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,6 @@ import { DocumentGetPageInfoResponse, Documents, } from './resources/documents'; -import { Models, StrJson } from './resources/models'; import { ParserParseDocumentParams, ParserParseDocumentResponse, Parsers } from './resources/parsers'; import { Queries, @@ -161,7 +160,6 @@ export class Zeroentropy extends Core.APIClient { documents: API.Documents = new API.Documents(this); queries: API.Queries = new API.Queries(this); parsers: API.Parsers = new API.Parsers(this); - models: API.Models = new API.Models(this); protected override defaultQuery(): Core.DefaultQuery | undefined { return this._options.defaultQuery; @@ -206,7 +204,6 @@ Zeroentropy.DocumentGetInfoListResponsesGetDocumentInfoListCursor = DocumentGetInfoListResponsesGetDocumentInfoListCursor; Zeroentropy.Queries = Queries; Zeroentropy.Parsers = Parsers; -Zeroentropy.Models = Models; export declare namespace Zeroentropy { export type RequestOptions = Core.RequestOptions; @@ -262,8 +259,6 @@ export declare namespace Zeroentropy { type ParserParseDocumentResponse as ParserParseDocumentResponse, type ParserParseDocumentParams as ParserParseDocumentParams, }; - - export { Models as Models, type StrJson as StrJson }; } export { toFile, fileFromPath } from './uploads'; diff --git a/src/resources/index.ts b/src/resources/index.ts index c62af1b..c55bd6f 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -23,7 +23,6 @@ export { type DocumentGetInfoListParams, type DocumentGetPageInfoParams, } from './documents'; -export { Models, type StrJson } from './models'; export { Parsers, type ParserParseDocumentResponse, type ParserParseDocumentParams } from './parsers'; export { Queries, diff --git a/src/resources/models.ts b/src/resources/models.ts deleted file mode 100644 index ba32e6b..0000000 --- a/src/resources/models.ts +++ /dev/null @@ -1,11 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import { APIResource } from '../resource'; - -export class Models extends APIResource {} - -export type StrJson = Record; - -export declare namespace Models { - export { type StrJson as StrJson }; -} diff --git a/src/resources/queries.ts b/src/resources/queries.ts index fe0c11d..a339b70 100644 --- a/src/resources/queries.ts +++ b/src/resources/queries.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as ModelsAPI from './models'; export class Queries extends APIResource { /** @@ -163,7 +162,7 @@ export interface QueryTopDocumentsParams { * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) * for more information. If not provided, then all documents will be searched. */ - filter?: ModelsAPI.StrJson | null; + filter?: Record | null; /** * Whether or not to include the metadata in the top documents response. If not @@ -195,7 +194,7 @@ export interface QueryTopPagesParams { * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) * for more information. If not provided, then all documents will be searched. */ - filter?: ModelsAPI.StrJson | null; + filter?: Record | null; /** * If set to true, then the content of all pages will be returned. @@ -226,7 +225,7 @@ export interface QueryTopSnippetsParams { * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) * for more information. If not provided, then all documents will be searched. */ - filter?: ModelsAPI.StrJson | null; + filter?: Record | null; /** * Enable precise responses. Precise responses will have higher latency, but