Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): stop promising a retryCount default on webhook update

Yudhi Armyndharis792cd1cec51c
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.ts
index 49741d626..c1a74fd7c 100644
--- a/sdk/javascript/src/types.ts
+++ b/sdk/javascript/src/types.ts
@@ -979,7 +979,10 @@ export interface CreateWebhookRequest {
secret?: string;
headers?: Record<string, string>;
filters?: WebhookFilters | null;
- /** 0–5; default 3. Server DTO field is `retryCount`. */
+ /**
+ * Total delivery attempts per event including the first, 0 to 5 (0 and 1 both mean one attempt); default 3 on
+ * create, while an update that omits it keeps the current value. Server DTO field is `retryCount`.
+ */
retryCount?: number;
}
diff --git a/sdk/python/openwa/types.py b/sdk/python/openwa/types.py
index 1d7e3d16d..3473f33dd 100644
--- a/sdk/python/openwa/types.py
+++ b/sdk/python/openwa/types.py
@@ -930,7 +930,8 @@ class UpdateWebhookRequest(TypedDict, total=False):
secret: str
headers: dict[str, str]
filters: WebhookFilters | None
- # Server DTO field is ``retryCount`` (0-5; default 3).
+ # Total delivery attempts per event including the first, 0 to 5 (0 and 1 both mean one attempt);
+ # omit to keep the current value. Server DTO field is ``retryCount``.
retryCount: int
active: bool