Variable activityZodSchemaConst
activityZodSchema: ZodObject<
{
action: ZodOptional<ZodString>;
attachmentLayout: ZodOptional<
ZodUnion<[ZodEnum<["list", "carousel"]>, ZodString]>,
>;
attachments: ZodOptional<
ZodArray<
ZodObject<
{
content: ZodOptional<ZodUnknown>;
contentType: ZodString;
contentUrl: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
thumbnailUrl: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
content?: unknown;
contentType: string;
contentUrl?: string;
name?: string;
thumbnailUrl?: string;
},
{
content?: unknown;
contentType: string;
contentUrl?: string;
name?: string;
thumbnailUrl?: string;
},
>,
"many",
>,
>;
callerId: ZodOptional<ZodString>;
channelData: ZodOptional<ZodAny>;
channelId: ZodOptional<ZodString>;
code: ZodOptional<
ZodUnion<
[
ZodEnum<
[
"unknown",
"completedSuccessfully",
"userCancelled",
"agentTimedOut",
"agentIssuedInvalidMessage",
"channelFailed",
],
>,
ZodString,
],
>,
>;
conversation: ZodOptional<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
conversationType: ZodOptional<ZodString>;
id: ZodString;
isGroup: ZodOptional<ZodBoolean>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<
ZodUnion<
[
ZodEnum<
["user", "bot", "skill", "agenticAppInstance", "agenticUser"],
>,
ZodString,
],
>,
>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
>;
deliveryMode: ZodOptional<
ZodUnion<
[
ZodEnum<["normal", "notification", "expectReplies", "ephemeral"]>,
ZodString,
],
>,
>;
entities: ZodOptional<
ZodArray<
ZodObject<
{ type: ZodString },
"passthrough",
ZodTypeAny,
objectOutputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
objectInputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>,
"many",
>,
>;
expiration: ZodOptional<
ZodUnion<[ZodDate, ZodEffects<ZodString, Date, string>]>,
>;
from: ZodOptional<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<
ZodUnion<
[
ZodEnum<
["user", "bot", "skill", "agenticAppInstance", "agenticUser"],
>,
ZodString,
],
>,
>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
>;
historyDisclosed: ZodOptional<ZodBoolean>;
id: ZodOptional<ZodString>;
importance: ZodOptional<
ZodUnion<[ZodEnum<["low", "normal", "high"]>, ZodString]>,
>;
inputHint: ZodOptional<
ZodUnion<
[
ZodEnum<["acceptingInput", "ignoringInput", "expectingInput"]>,
ZodString,
],
>,
>;
label: ZodOptional<ZodString>;
listenFor: ZodOptional<ZodArray<ZodString, "many">>;
locale: ZodOptional<ZodString>;
localTimestamp: ZodOptional<
ZodUnion<[ZodDate, ZodEffects<ZodString, Date, string>]>,
>;
localTimezone: ZodOptional<ZodString>;
membersAdded: ZodOptional<
ZodArray<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<
ZodUnion<
[ZodEnum<[(...), (...), (...), (...), (...)]>, ZodString],
>,
>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
"many",
>,
>;
membersRemoved: ZodOptional<
ZodArray<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<
ZodUnion<
[ZodEnum<[(...), (...), (...), (...), (...)]>, ZodString],
>,
>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
"many",
>,
>;
name: ZodOptional<
ZodUnion<
[ZodEnum<["ContinueConversation", "CreateConversation"]>, ZodString],
>,
>;
reactionsAdded: ZodOptional<
ZodArray<
ZodObject<
{ type: ZodUnion<[ZodEnum<["like", "plusOne"]>, ZodString]> },
"strip",
ZodTypeAny,
{ type: string },
{ type: string },
>,
"many",
>,
>;
reactionsRemoved: ZodOptional<
ZodArray<
ZodObject<
{ type: ZodUnion<[ZodEnum<["like", "plusOne"]>, ZodString]> },
"strip",
ZodTypeAny,
{ type: string },
{ type: string },
>,
"many",
>,
>;
recipient: ZodOptional<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<
ZodUnion<
[
ZodEnum<
["user", "bot", "skill", "agenticAppInstance", "agenticUser"],
>,
ZodString,
],
>,
>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
>;
relatesTo: ZodOptional<
ZodObject<
{
activityId: ZodOptional<ZodString>;
agent: ZodNullable<
ZodOptional<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<ZodUnion<(...)>>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
>,
>;
channelId: ZodString;
conversation: ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
conversationType: ZodOptional<ZodString>;
id: ZodString;
isGroup: ZodOptional<ZodBoolean>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<ZodUnion<[ZodEnum<(...)>, ZodString]>>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>;
locale: ZodOptional<ZodString>;
serviceUrl: ZodOptional<ZodString>;
user: ZodOptional<
ZodObject<
{
aadObjectId: ZodOptional<ZodString>;
agenticAppBlueprintId: ZodOptional<ZodString>;
agenticAppId: ZodOptional<ZodString>;
agenticUserId: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
properties: ZodOptional<ZodUnknown>;
role: ZodOptional<ZodUnion<[(...), (...)]>>;
tenantId: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
{
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
},
>,
>;
},
"strip",
ZodTypeAny,
{
activityId?: string;
agent?: | {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}
| null;
channelId: string;
conversation: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
locale?: string;
serviceUrl?: string;
user?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
},
{
activityId?: string;
agent?: | {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}
| null;
channelId: string;
conversation: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
locale?: string;
serviceUrl?: string;
user?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
},
>,
>;
replyToId: ZodOptional<ZodString>;
semanticAction: ZodOptional<
ZodObject<
{
entities: ZodRecord<
ZodString,
ZodObject<
{ type: ZodString },
"passthrough",
ZodTypeAny,
objectOutputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
objectInputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>,
>;
id: ZodString;
state: ZodUnion<[ZodEnum<["start", "continue", "done"]>, ZodString]>;
},
"strip",
ZodTypeAny,
{
entities: Record<
string,
objectOutputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>;
id: string;
state: string;
},
{
entities: Record<
string,
objectInputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>;
id: string;
state: string;
},
>,
>;
serviceUrl: ZodOptional<ZodString>;
speak: ZodOptional<ZodString>;
suggestedActions: ZodOptional<
ZodObject<
{
actions: ZodArray<
ZodObject<
{
channelData: ZodOptional<ZodUnknown>;
displayText: ZodOptional<ZodString>;
image: ZodOptional<ZodString>;
imageAltText: ZodOptional<ZodString>;
text: ZodOptional<ZodString>;
title: ZodString;
type: ZodUnion<[ZodEnum<(...)>, ZodString]>;
value: ZodOptional<ZodAny>;
},
"strip",
ZodTypeAny,
{
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
},
{
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
},
>,
"many",
>;
to: ZodArray<ZodString, "many">;
},
"strip",
ZodTypeAny,
{
actions: {
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
}[];
to: string[];
},
{
actions: {
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
}[];
to: string[];
},
>,
>;
summary: ZodOptional<ZodString>;
text: ZodOptional<ZodString>;
textFormat: ZodOptional<
ZodUnion<[ZodEnum<["markdown", "plain", "xml"]>, ZodString]>,
>;
textHighlights: ZodOptional<
ZodArray<
ZodObject<
{ occurrence: ZodNumber; text: ZodString },
"strip",
ZodTypeAny,
{ occurrence: number; text: string },
{ occurrence: number; text: string },
>,
"many",
>,
>;
timestamp: ZodOptional<
ZodUnion<[ZodDate, ZodEffects<ZodString, Date, string>]>,
>;
topicName: ZodOptional<ZodString>;
type: ZodUnion<
[
ZodEnum<
[
"message",
"contactRelationUpdate",
"conversationUpdate",
"typing",
"endOfConversation",
"event",
"invoke",
"invokeResponse",
"deleteUserData",
"messageUpdate",
"messageDelete",
"installationUpdate",
],
>,
ZodString,
],
>;
value: ZodOptional<ZodUnknown>;
valueType: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
action?: string;
attachmentLayout?: string;
attachments?: {
content?: unknown;
contentType: string;
contentUrl?: string;
name?: string;
thumbnailUrl?: string;
}[];
callerId?: string;
channelData?: any;
channelId?: string;
code?: string;
conversation?: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
deliveryMode?: string;
entities?: objectOutputType<
{ type: ZodString },
ZodTypeAny,
"passthrough",
>[];
expiration?: Date;
from?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
historyDisclosed?: boolean;
id?: string;
importance?: string;
inputHint?: string;
label?: string;
listenFor?: string[];
locale?: string;
localTimestamp?: Date;
localTimezone?: string;
membersAdded?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}[];
membersRemoved?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}[];
name?: string;
reactionsAdded?: { type: string }[];
reactionsRemoved?: { type: string }[];
recipient?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
relatesTo?: {
activityId?: string;
agent?: | {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}
| null;
channelId: string;
conversation: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
locale?: string;
serviceUrl?: string;
user?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
};
replyToId?: string;
semanticAction?: {
entities: Record<
string,
objectOutputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>;
id: string;
state: string;
};
serviceUrl?: string;
speak?: string;
suggestedActions?: {
actions: {
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
}[];
to: string[];
};
summary?: string;
text?: string;
textFormat?: string;
textHighlights?: { occurrence: number; text: string }[];
timestamp?: Date;
topicName?: string;
type: string;
value?: unknown;
valueType?: string;
},
{
action?: string;
attachmentLayout?: string;
attachments?: {
content?: unknown;
contentType: string;
contentUrl?: string;
name?: string;
thumbnailUrl?: string;
}[];
callerId?: string;
channelData?: any;
channelId?: string;
code?: string;
conversation?: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
deliveryMode?: string;
entities?: objectInputType<{ type: ZodString }, ZodTypeAny, "passthrough">[];
expiration?: string | Date;
from?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
historyDisclosed?: boolean;
id?: string;
importance?: string;
inputHint?: string;
label?: string;
listenFor?: string[];
locale?: string;
localTimestamp?: string
| Date;
localTimezone?: string;
membersAdded?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}[];
membersRemoved?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}[];
name?: string;
reactionsAdded?: { type: string }[];
reactionsRemoved?: { type: string }[];
recipient?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
relatesTo?: {
activityId?: string;
agent?: | {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
}
| null;
channelId: string;
conversation: {
aadObjectId?: string;
conversationType?: string;
id: string;
isGroup?: boolean;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
locale?: string;
serviceUrl?: string;
user?: {
aadObjectId?: string;
agenticAppBlueprintId?: string;
agenticAppId?: string;
agenticUserId?: string;
id?: string;
name?: string;
properties?: unknown;
role?: string;
tenantId?: string;
};
};
replyToId?: string;
semanticAction?: {
entities: Record<
string,
objectInputType<{ type: ZodString }, ZodTypeAny, "passthrough">,
>;
id: string;
state: string;
};
serviceUrl?: string;
speak?: string;
suggestedActions?: {
actions: {
channelData?: unknown;
displayText?: string;
image?: string;
imageAltText?: string;
text?: string;
title: string;
type: string;
value?: any;
}[];
to: string[];
};
summary?: string;
text?: string;
textFormat?: string;
textHighlights?: { occurrence: number; text: string }[];
timestamp?: string | Date;
topicName?: string;
type: string;
value?: unknown;
valueType?: string;
},
> = ...
Zod schema for validating an Activity object.