Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,3 @@ Types:
Methods:

- <code title="post /parsers/parse-document">client.parsers.<a href="./src/resources/parsers.ts">parseDocument</a>({ ...params }) -> ParserParseDocumentResponse</code>

# Models

Types:

- <code><a href="./src/resources/models.ts">StrJson</a></code>
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 0 additions & 11 deletions src/resources/models.ts

This file was deleted.

7 changes: 3 additions & 4 deletions src/resources/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { APIResource } from '../resource';
import * as Core from '../core';
import * as ModelsAPI from './models';

export class Queries extends APIResource {
/**
Expand Down Expand Up @@ -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<string, unknown> | null;

/**
* Whether or not to include the metadata in the top documents response. If not
Expand Down Expand Up @@ -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<string, unknown> | null;

/**
* If set to true, then the content of all pages will be returned.
Expand Down Expand Up @@ -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<string, unknown> | null;

/**
* Enable precise responses. Precise responses will have higher latency, but
Expand Down