Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 2, 2024
1 parent f119123 commit a102548
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/api/resources/memory/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ export class Memory {
sessionId: string,
request: Zep.MemoryGetSessionMessagesRequest = {},
requestOptions?: Memory.RequestOptions
): Promise<Zep.Message[]> {
): Promise<Zep.ModelsMessageListResponse> {
const { limit, cursor } = request;
const _queryParams: Record<string, string | string[] | object | object[]> = {};
if (limit != null) {
Expand Down Expand Up @@ -925,7 +925,7 @@ export class Memory {
maxRetries: requestOptions?.maxRetries,
});
if (_response.ok) {
return await serializers.memory.getSessionMessages.Response.parseOrThrow(_response.body, {
return await serializers.ModelsMessageListResponse.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
Expand Down
11 changes: 11 additions & 0 deletions src/api/types/ModelsMessageListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Zep from "..";

export interface ModelsMessageListResponse {
messages?: Zep.Message[];
rowCount?: number;
totalCount?: number;
}
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export * from "./DocumentSearchResultPage";
export * from "./Memory";
export * from "./MemorySearchResult";
export * from "./Message";
export * from "./ModelsMessageListResponse";
export * from "./Question";
export * from "./RoleType";
export * from "./SearchScope";
Expand Down
15 changes: 0 additions & 15 deletions src/serialization/resources/memory/client/getSessionMessages.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/serialization/resources/memory/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * as listSessions from "./listSessions";
export * as extractSessionData from "./extractSessionData";
export * as getSessionMessages from "./getSessionMessages";
export * as search from "./search";
export * from "./requests";
25 changes: 25 additions & 0 deletions src/serialization/types/ModelsMessageListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Zep from "../../api";
import * as core from "../../core";
import { Message } from "./Message";

export const ModelsMessageListResponse: core.serialization.ObjectSchema<
serializers.ModelsMessageListResponse.Raw,
Zep.ModelsMessageListResponse
> = core.serialization.object({
messages: core.serialization.list(Message).optional(),
rowCount: core.serialization.property("row_count", core.serialization.number().optional()),
totalCount: core.serialization.property("total_count", core.serialization.number().optional()),
});

export declare namespace ModelsMessageListResponse {
interface Raw {
messages?: Message.Raw[] | null;
row_count?: number | null;
total_count?: number | null;
}
}
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export * from "./DocumentSearchResultPage";
export * from "./Memory";
export * from "./MemorySearchResult";
export * from "./Message";
export * from "./ModelsMessageListResponse";
export * from "./Question";
export * from "./RoleType";
export * from "./SearchScope";
Expand Down

0 comments on commit a102548

Please sign in to comment.