@kilnai/core 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ConversationEventType = "MESSAGE_RECEIVED" | "MESSAGE_SENT" | "SESSION_STARTED" | "SESSION_EXPIRED";
|
|
1
|
+
export type ConversationEventType = "MESSAGE_RECEIVED" | "MESSAGE_SENT" | "SESSION_STARTED" | "SESSION_EXPIRED" | "DELIVERY_STATUS";
|
|
2
2
|
export interface ConversationEvent {
|
|
3
3
|
readonly eventType: ConversationEventType;
|
|
4
4
|
readonly tenantId: string;
|
|
@@ -8,6 +8,12 @@ export interface ConversationEvent {
|
|
|
8
8
|
readonly messageContent?: string;
|
|
9
9
|
readonly messageRole?: string;
|
|
10
10
|
readonly timestamp: string;
|
|
11
|
+
/** WhatsApp message ID (wamid) -- present for DELIVERY_STATUS events */
|
|
12
|
+
readonly whatsappMessageId?: string;
|
|
13
|
+
/** Delivery status -- present for DELIVERY_STATUS events */
|
|
14
|
+
readonly deliveryStatus?: "sent" | "delivered" | "read" | "failed";
|
|
15
|
+
/** Meta error code -- present for failed DELIVERY_STATUS events */
|
|
16
|
+
readonly errorCode?: number;
|
|
11
17
|
}
|
|
12
18
|
export interface ConversationEventBatch {
|
|
13
19
|
readonly events: readonly ConversationEvent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-event.d.ts","sourceRoot":"","sources":["../../../src/engine/gateway/conversation-event.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAC7B,kBAAkB,GAClB,cAAc,GACd,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QA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