Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudDialogflowV2ConversationEvent

import type { GoogleCloudDialogflowV2ConversationEvent } from "https://googleapis.deno.dev/v1/dialogflow:v3.ts";

Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.

interface GoogleCloudDialogflowV2ConversationEvent {
conversation?: string;
errorStatus?: GoogleRpcStatus;
newMessagePayload?: GoogleCloudDialogflowV2Message;
type?:
| "TYPE_UNSPECIFIED"
| "CONVERSATION_STARTED"
| "CONVERSATION_FINISHED"
| "HUMAN_INTERVENTION_NEEDED"
| "NEW_MESSAGE"
| "UNRECOVERABLE_ERROR";
}

§Properties

§
conversation?: string
[src]

The unique identifier of the conversation this notification refers to. Format: projects//conversations/.

§
errorStatus?: GoogleRpcStatus
[src]

More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.

§

Payload of NEW_MESSAGE event.

§
type?: "TYPE_UNSPECIFIED" | "CONVERSATION_STARTED" | "CONVERSATION_FINISHED" | "HUMAN_INTERVENTION_NEEDED" | "NEW_MESSAGE" | "UNRECOVERABLE_ERROR"
[src]

The type of the event that this notification refers to.