Skip to content

Commit 4cbe77d

Browse files
feat(api): update via SDK Studio (#5)
1 parent 154c402 commit 4cbe77d

File tree

5 files changed

+3
-27
lines changed

5 files changed

+3
-27
lines changed

api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,3 @@ Types:
6363
Methods:
6464

6565
- <code title="post /parsers/parse-document">client.parsers.<a href="./src/resources/parsers.ts">parseDocument</a>({ ...params }) -> ParserParseDocumentResponse</code>
66-
67-
# Models
68-
69-
Types:
70-
71-
- <code><a href="./src/resources/models.ts">StrJson</a></code>

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
DocumentGetPageInfoResponse,
3131
Documents,
3232
} from './resources/documents';
33-
import { Models, StrJson } from './resources/models';
3433
import { ParserParseDocumentParams, ParserParseDocumentResponse, Parsers } from './resources/parsers';
3534
import {
3635
Queries,
@@ -161,7 +160,6 @@ export class Zeroentropy extends Core.APIClient {
161160
documents: API.Documents = new API.Documents(this);
162161
queries: API.Queries = new API.Queries(this);
163162
parsers: API.Parsers = new API.Parsers(this);
164-
models: API.Models = new API.Models(this);
165163

166164
protected override defaultQuery(): Core.DefaultQuery | undefined {
167165
return this._options.defaultQuery;
@@ -206,7 +204,6 @@ Zeroentropy.DocumentGetInfoListResponsesGetDocumentInfoListCursor =
206204
DocumentGetInfoListResponsesGetDocumentInfoListCursor;
207205
Zeroentropy.Queries = Queries;
208206
Zeroentropy.Parsers = Parsers;
209-
Zeroentropy.Models = Models;
210207
export declare namespace Zeroentropy {
211208
export type RequestOptions = Core.RequestOptions;
212209

@@ -262,8 +259,6 @@ export declare namespace Zeroentropy {
262259
type ParserParseDocumentResponse as ParserParseDocumentResponse,
263260
type ParserParseDocumentParams as ParserParseDocumentParams,
264261
};
265-
266-
export { Models as Models, type StrJson as StrJson };
267262
}
268263

269264
export { toFile, fileFromPath } from './uploads';

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export {
2323
type DocumentGetInfoListParams,
2424
type DocumentGetPageInfoParams,
2525
} from './documents';
26-
export { Models, type StrJson } from './models';
2726
export { Parsers, type ParserParseDocumentResponse, type ParserParseDocumentParams } from './parsers';
2827
export {
2928
Queries,

src/resources/models.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/resources/queries.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { APIResource } from '../resource';
44
import * as Core from '../core';
5-
import * as ModelsAPI from './models';
65

76
export class Queries extends APIResource {
87
/**
@@ -163,7 +162,7 @@ export interface QueryTopDocumentsParams {
163162
* The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
164163
* for more information. If not provided, then all documents will be searched.
165164
*/
166-
filter?: ModelsAPI.StrJson | null;
165+
filter?: Record<string, unknown> | null;
167166

168167
/**
169168
* Whether or not to include the metadata in the top documents response. If not
@@ -195,7 +194,7 @@ export interface QueryTopPagesParams {
195194
* The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
196195
* for more information. If not provided, then all documents will be searched.
197196
*/
198-
filter?: ModelsAPI.StrJson | null;
197+
filter?: Record<string, unknown> | null;
199198

200199
/**
201200
* If set to true, then the content of all pages will be returned.
@@ -226,7 +225,7 @@ export interface QueryTopSnippetsParams {
226225
* The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
227226
* for more information. If not provided, then all documents will be searched.
228227
*/
229-
filter?: ModelsAPI.StrJson | null;
228+
filter?: Record<string, unknown> | null;
230229

231230
/**
232231
* Enable precise responses. Precise responses will have higher latency, but

0 commit comments

Comments
 (0)