17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { z } from '@botpress/sdk'
|
|
import { channelAccountSchema } from 'definitions/states'
|
|
|
|
export const teamsActivitySchema = z
|
|
.object({
|
|
id: z.string().trim().min(1),
|
|
type: z.string(),
|
|
from: channelAccountSchema.passthrough().partial().optional(),
|
|
conversation: z
|
|
.object({
|
|
id: z.string().trim().min(1),
|
|
})
|
|
.passthrough(),
|
|
text: z.string().optional(),
|
|
})
|
|
.passthrough()
|