diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 0bba68c..ff2707d 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -894,7 +894,7 @@ export class Memory { sessionId: string, request: Zep.MemoryGetSessionMessagesRequest = {}, requestOptions?: Memory.RequestOptions - ): Promise { + ): Promise { const { limit, cursor } = request; const _queryParams: Record = {}; if (limit != null) { @@ -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, diff --git a/src/api/types/ModelsMessageListResponse.ts b/src/api/types/ModelsMessageListResponse.ts new file mode 100644 index 0000000..096daef --- /dev/null +++ b/src/api/types/ModelsMessageListResponse.ts @@ -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; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 3ce88fc..7b9863e 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -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"; diff --git a/src/serialization/resources/memory/client/getSessionMessages.ts b/src/serialization/resources/memory/client/getSessionMessages.ts deleted file mode 100644 index 6fbb1c8..0000000 --- a/src/serialization/resources/memory/client/getSessionMessages.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * 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 "../../../types/Message"; - -export const Response: core.serialization.Schema = - core.serialization.list(Message); - -export declare namespace Response { - type Raw = Message.Raw[]; -} diff --git a/src/serialization/resources/memory/client/index.ts b/src/serialization/resources/memory/client/index.ts index 0e0a009..e834eef 100644 --- a/src/serialization/resources/memory/client/index.ts +++ b/src/serialization/resources/memory/client/index.ts @@ -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"; diff --git a/src/serialization/types/ModelsMessageListResponse.ts b/src/serialization/types/ModelsMessageListResponse.ts new file mode 100644 index 0000000..407ebbb --- /dev/null +++ b/src/serialization/types/ModelsMessageListResponse.ts @@ -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; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 3ce88fc..7b9863e 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -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";