Skip to content

Commit b12adb3

Browse files
feat(api): update via SDK Studio
1 parent 83a72e7 commit b12adb3

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zeroentropy%2Fzeroentropy-7714ca5bf110ca58caa11e1b4fcdce9f9de91fd11bc7226f89cbe8b8892e21cd.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zeroentropy%2Fzeroentropy-de454ad012c3387a861877cca6e2eb0cce3a7ae99a629a438317e82266f03520.yml

api.md

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

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

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
DocumentListInfoResponse,
2828
Documents,
2929
} from './resources/documents';
30+
import { Models, StrJson } from './resources/models';
3031
import { ParserParseParams, ParserParseResponse, Parsers } from './resources/parsers';
3132
import {
3233
Queries,
@@ -157,6 +158,7 @@ export class Zeroentropy extends Core.APIClient {
157158
documents: API.Documents = new API.Documents(this);
158159
queries: API.Queries = new API.Queries(this);
159160
parsers: API.Parsers = new API.Parsers(this);
161+
models: API.Models = new API.Models(this);
160162

161163
protected override defaultQuery(): Core.DefaultQuery | undefined {
162164
return this._options.defaultQuery;
@@ -199,6 +201,7 @@ Zeroentropy.Collections = Collections;
199201
Zeroentropy.Documents = Documents;
200202
Zeroentropy.Queries = Queries;
201203
Zeroentropy.Parsers = Parsers;
204+
Zeroentropy.Models = Models;
202205
export declare namespace Zeroentropy {
203206
export type RequestOptions = Core.RequestOptions;
204207

@@ -247,6 +250,8 @@ export declare namespace Zeroentropy {
247250
type ParserParseResponse as ParserParseResponse,
248251
type ParserParseParams as ParserParseParams,
249252
};
253+
254+
export { Models as Models, type StrJson as StrJson };
250255
}
251256

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

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
type DocumentGetPageInfoParams,
2323
type DocumentListInfoParams,
2424
} from './documents';
25+
export { Models, type StrJson } from './models';
2526
export { Parsers, type ParserParseResponse, type ParserParseParams } from './parsers';
2627
export {
2728
Queries,

src/resources/models.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
import { APIResource } from '../resource';
4+
5+
export class Models extends APIResource {}
6+
7+
export type StrJson = string | Array<string> | Array<StrJson> | Record<string, StrJson>;
8+
9+
export declare namespace Models {
10+
export { type StrJson as StrJson };
11+
}

src/resources/queries.ts

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

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

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

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

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

230231
/**
231232
* Enable precise responses. Precise responses will have higher latency, but

0 commit comments

Comments
 (0)