Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): mark the create-session proxyType as deprecated

Yudhi Armyndharis1173f8bdcd1f
diff --git a/sdk/java/src/main/java/com/rmyndharis/openwa/model/CreateSessionRequest.java b/sdk/java/src/main/java/com/rmyndharis/openwa/model/CreateSessionRequest.java
index 58998b002..52d30162c 100644
--- a/sdk/java/src/main/java/com/rmyndharis/openwa/model/CreateSessionRequest.java
+++ b/sdk/java/src/main/java/com/rmyndharis/openwa/model/CreateSessionRequest.java
@@ -34,7 +34,8 @@ public record CreateSessionRequest(String name, Map<String, Object> config, Stri
return this;
}
- /** One of {@code http}, {@code https}, {@code socks4}, {@code socks5}. */
+ /** Deprecated and ignored by the server: the proxyUrl scheme selects the proxy protocol. */
+ @Deprecated
public Builder proxyType(ProxyType v) {
this.proxyType = v;
return this;
diff --git a/sdk/python/openwa/types.py b/sdk/python/openwa/types.py
index 97f25640c..9c40b6070 100644
--- a/sdk/python/openwa/types.py
+++ b/sdk/python/openwa/types.py
@@ -308,6 +308,7 @@ class CreateSessionRequest(TypedDict):
name: str
config: NotRequired[dict[str, Any]]
proxyUrl: NotRequired[str]
+ # Deprecated and ignored by the server: the proxyUrl scheme selects the proxy protocol.
proxyType: NotRequired[Literal['http', 'https', 'socks4', 'socks5']]