@wats/types 0.3.26 → 0.3.28

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.
package/README.md CHANGED
@@ -25,5 +25,5 @@ function isRead(status: WhatsAppMessageStatus): boolean {
25
25
 
26
26
  Use this package when you need WATS domain types without the Graph client, webhook adapter, CLI, or service runtime. Runtime helpers live in the other `@wats/*` packages.
27
27
 
28
- Docs: https://github.com/Switchbord/wats
28
+ Docs: https://wats.sh/docs/reference/types
29
29
  License: MIT
@@ -48,8 +48,10 @@ export interface InteractiveCtaUrlReply {
48
48
  export interface InteractiveCallPermissionReply {
49
49
  type: "call_permission_reply";
50
50
  callPermissionReply: {
51
- response: "accepted" | "rejected";
51
+ response: "accept" | "reject" | "accepted" | "rejected";
52
52
  expirationTimestamp?: string;
53
+ isPermanent?: boolean;
54
+ responseSource?: "user_action" | "automatic";
53
55
  };
54
56
  }
55
57
  export type InteractiveReply = InteractiveButtonReply | InteractiveListReply | InteractiveNfmReply | InteractiveProductReply | InteractiveProductListReply | InteractiveCtaUrlReply | InteractiveCallPermissionReply;
@@ -60,5 +62,11 @@ export interface InteractiveMessage {
60
62
  timestamp: string;
61
63
  interactive: InteractiveReply;
62
64
  context?: MessageContext;
65
+ /**
66
+ * WATS-167: caller identity fields surfaced on call_permission_reply
67
+ * inbound messages. Only populated when Meta includes them.
68
+ */
69
+ fromUserId?: string;
70
+ fromParentUserId?: string;
63
71
  raw?: unknown;
64
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wats/types",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,7 +57,7 @@
57
57
  "url": "git+https://github.com/Switchbord/wats.git",
58
58
  "directory": "packages/types"
59
59
  },
60
- "homepage": "https://github.com/Switchbord/wats#readme",
60
+ "homepage": "https://wats.sh",
61
61
  "bugs": {
62
62
  "url": "https://github.com/Switchbord/wats/issues"
63
63
  },