Variable: MessageReadSchema¶
const MessageReadSchema: ZodObject<{
content_type: ZodOptional<ZodNullable<ZodString>>;
conversation_id: ZodString;
created_at: ZodString;
delivered_at: ZodOptional<ZodNullable<ZodString>>;
direction: ZodOptional<ZodEnum<["sent", "received"]>>;
encrypted_payload: ZodString;
encryption_version: ZodString;
from_agent_id: ZodOptional<ZodNullable<ZodString>>;
group_handle: ZodOptional<ZodNullable<ZodString>>;
group_id: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
metadata: ZodDefault<ZodRecord<ZodString, ZodUnknown>>;
read_at: ZodOptional<ZodNullable<ZodString>>;
recipient_handle: ZodOptional<ZodNullable<ZodString>>;
self_encrypted_payload: ZodOptional<ZodNullable<ZodString>>;
sender_handle: ZodOptional<ZodNullable<ZodString>>;
sender_signing_kid: ZodOptional<ZodNullable<ZodString>>;
status: ZodOptional<ZodEnum<["new", "delivered", "read"]>>;
to_agent_id: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, "strip", ZodTypeAny, {
content_type?: string | null;
conversation_id: string;
created_at: string;
delivered_at?: string | null;
direction?: "received" | "sent";
encrypted_payload: string;
encryption_version: string;
from_agent_id?: string | null;
group_handle?: string | null;
group_id?: string | null;
id: string;
metadata: Record<string, unknown>;
read_at?: string | null;
recipient_handle?: string | null;
self_encrypted_payload?: string | null;
sender_handle?: string | null;
sender_signing_kid?: string | null;
status?: "delivered" | "new" | "read";
to_agent_id?: string | null;
type: string;
}, {
content_type?: string | null;
conversation_id: string;
created_at: string;
delivered_at?: string | null;
direction?: "received" | "sent";
encrypted_payload: string;
encryption_version: string;
from_agent_id?: string | null;
group_handle?: string | null;
group_id?: string | null;
id: string;
metadata?: Record<string, unknown>;
read_at?: string | null;
recipient_handle?: string | null;
self_encrypted_payload?: string | null;
sender_handle?: string | null;
sender_signing_kid?: string | null;
status?: "delivered" | "new" | "read";
to_agent_id?: string | null;
type: string;
}>;
Defined in: rine-ts-sdk/src/types.ts:347