a488e19044
Co-authored-by: Soumil Rathi <soumilrathi@gmail.com> Co-authored-by: Saket Aryan <saketaryan2002@gmail.com> Co-authored-by: chaithanyak42 <chaithanya.kumar42a@gmail.com> Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import { MemoryClient } from "./mem0";
|
|
import type * as MemoryTypes from "./mem0.types";
|
|
|
|
// Re-export all types from mem0.types
|
|
export type {
|
|
AddMemoryOptions,
|
|
SearchMemoryOptions,
|
|
GetAllMemoryOptions,
|
|
DeleteAllMemoryOptions,
|
|
ProjectOptions,
|
|
Memory,
|
|
MemoryHistory,
|
|
MemoryUpdateBody,
|
|
ProjectResponse,
|
|
PromptUpdatePayload,
|
|
Webhook,
|
|
WebhookCreatePayload,
|
|
WebhookUpdatePayload,
|
|
Messages,
|
|
Message,
|
|
AllUsers,
|
|
User,
|
|
FeedbackPayload,
|
|
CreateMemoryExportPayload,
|
|
GetMemoryExportPayload,
|
|
} from "./mem0.types";
|
|
|
|
// Re-export enums as values (not type-only)
|
|
export { Feedback, WebhookEvent } from "./mem0.types";
|
|
|
|
// Export the main client
|
|
export { MemoryClient };
|
|
export default MemoryClient;
|
|
|
|
// Export structured exceptions
|
|
export {
|
|
MemoryError,
|
|
AuthenticationError,
|
|
RateLimitError,
|
|
ValidationError,
|
|
MemoryNotFoundError,
|
|
NetworkError,
|
|
ConfigurationError,
|
|
MemoryQuotaExceededError,
|
|
createExceptionFromResponse,
|
|
} from "../common/exceptions";
|
|
|
|
export type { MemoryErrorOptions } from "../common/exceptions";
|