Skip to content

Variable: activityResponseSchema

const activityResponseSchema: ZodObject<{ activities: ZodArray<ZodObject<{ attachments: ZodOptional<ZodArray<ZodObject<{ content: ZodObject<{ $schema: …; actions: …; body: …; type: …; version: …; }, $strip>; contentType: ZodLiteral<"application/vnd.microsoft.card.adaptive">; }, $strip>>>; conversation: ZodOptional<ZodObject<{ id: ZodString; }, $strip>>; from: ZodOptional<ZodObject<{ id: ZodString; name: ZodOptional<ZodString>; }, $strip>>; id: ZodOptional<ZodString>; recipient: ZodOptional<ZodObject<{ id: ZodString; name: ZodOptional<ZodString>; }, $strip>>; text: ZodOptional<ZodString>; timestamp: ZodOptional<ZodString>; type: ZodEnum<{ conversationUpdate: "conversationUpdate"; message: "message"; typing: "typing"; }>; }, $loose>>; }, $strip>

The endpoint’s response: the activities to append to the transcript. An array because one turn may answer with several activities (Teams itself allows a bot to send more than one reply), and because a future streaming/typing variant can grow into the same shape without a breaking change.