@nubea-ecomm/wapo-sdk 0.5.0 → 0.6.0

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +16 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -94,6 +94,22 @@ export interface Message {
94
94
  timestamp: string;
95
95
  payload: Record<string, unknown>;
96
96
  display_text?: string;
97
+ reactions?: MessageReaction[];
98
+ reply_to?: MessageReference;
99
+ }
100
+ export interface MessageReaction {
101
+ emoji: string;
102
+ actor: string;
103
+ direction: 'inbound' | 'outbound';
104
+ message_id: string;
105
+ status: string;
106
+ }
107
+ export interface MessageReference {
108
+ message_id: string;
109
+ direction?: 'inbound' | 'outbound';
110
+ payload?: Record<string, unknown>;
111
+ display_text?: string;
112
+ unavailable: boolean;
97
113
  }
98
114
  export interface Conversation {
99
115
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubea-ecomm/wapo-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Typed JavaScript and TypeScript client for the Wapo messaging API",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",