From 033bf0753f212f5ee1bcd75d250479bccb4e171d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20D=C4=99bski?= Date: Fri, 9 Jan 2026 16:25:30 +0100 Subject: [PATCH] Add flag name_is_default to update_customer in customer-api v3.6 and v3.7 --- Pipfile | 2 +- Pipfile.lock | 26 +++++++++++++------------- changelog.md | 1 + livechat/customer/rtm/api/v36.py | 2 ++ livechat/customer/rtm/api/v37.py | 2 ++ livechat/customer/web/api/v36.py | 2 ++ livechat/customer/web/api/v37.py | 2 ++ requirements.txt | 2 +- 8 files changed, 24 insertions(+), 15 deletions(-) diff --git a/Pipfile b/Pipfile index ac80004..d52c226 100644 --- a/Pipfile +++ b/Pipfile @@ -5,7 +5,7 @@ name = "pypi" [packages] websocket-client= "==1.9.0" -urllib3 = "==2.6.2" +urllib3 = "==2.6.3" loguru = "==0.7.3" idna = "==3.10" anyio = "==4.5.2" diff --git a/Pipfile.lock b/Pipfile.lock index 8a500ed..8a7d8f7 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "db1e6b33b45cf1fa8dda6e35ef23c4364f7cecbfcc8b45f3bec83f5c5d29ca99" + "sha256": "6ffe10b657a7341e2984d7f9432b45d4525dc9c7c07bde44f10f438341c5c5ba" }, "pipfile-spec": 6, "requires": { @@ -137,12 +137,12 @@ }, "urllib3": { "hashes": [ - "sha256:016f9c98bb7e98085cb2b4b17b87d2c702975664e4f060c6532e64d1c1a5e797", - "sha256:ec21cddfe7724fc7cb4ba4bea7aa8e2ef36f607a4bab81aa6ce42a13dc3f03dd" + "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", + "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4" ], "index": "pypi", "markers": "python_version >= '3.9'", - "version": "==2.6.2" + "version": "==2.6.3" }, "websocket-client": { "hashes": [ @@ -188,11 +188,11 @@ }, "filelock": { "hashes": [ - "sha256:15d9e9a67306188a44baa72f569d2bfd803076269365fdea0934385da4dc361a", - "sha256:b8360948b351b80f420878d8516519a2204b07aefcdcfd24912a5d33127f188c" + "sha256:a2241ff4ddde2a7cebddf78e39832509cb045d18ec1a09d7248d6bfc6bfbbe64", + "sha256:fbba7237d6ea277175a32c54bb71ef814a8546d8601269e1bfc388de333974e8" ], "markers": "python_version >= '3.10'", - "version": "==3.20.1" + "version": "==3.20.2" }, "flake8": { "hashes": [ @@ -348,11 +348,11 @@ }, "nodeenv": { "hashes": [ - "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", - "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9" + "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", + "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'", - "version": "==1.9.1" + "version": "==1.10.0" }, "packaging": { "hashes": [ @@ -519,11 +519,11 @@ }, "virtualenv": { "hashes": [ - "sha256:643d3914d73d3eeb0c552cbb12d7e82adf0e504dbf86a3182f8771a153a1971c", - "sha256:c21c9cede36c9753eeade68ba7d523529f228a403463376cf821eaae2b650f1b" + "sha256:a3601f540b515a7983508113f14e78993841adc3d83710fa70f0ac50f43b23ed", + "sha256:e7ded577f3af534fd0886d4ca03277f5542053bedb98a70a989d3c22cfa5c9ac" ], "markers": "python_version >= '3.8'", - "version": "==20.35.4" + "version": "==20.36.0" } } } diff --git a/changelog.md b/changelog.md index d463978..0bf69af 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. - New methods in agent-api v3.6: `send_thinking_indicator`, `send_message_preview`. - New methods in configuration-api v3.7 for canned responses: `create_canned_response`, `update_canned_response`, `list_canned_responses`, `delete_canned_response`. - New method `request_thread_summary` in agent-api v3.6 and v3.7. +- New flag `name_is_default` in method `update_customer` in customer-api v3.6 and v3.7. ### Changed - Udated python version from 3.8 to 3.13.0 (version 3.8 was unsupported since 2024-10-07). diff --git a/livechat/customer/rtm/api/v36.py b/livechat/customer/rtm/api/v36.py index 52b66e9..79d5974 100644 --- a/livechat/customer/rtm/api/v36.py +++ b/livechat/customer/rtm/api/v36.py @@ -439,6 +439,7 @@ def delete_event_properties(self, def update_customer(self, name: str = None, + name_is_default: bool = None, email: str = None, avatar: str = None, session_fields: list = None, @@ -447,6 +448,7 @@ def update_customer(self, Args: name (str): Customer`s name. + name_is_default (bool): Flag which states if the name is default. email (str): Customer`s email. avatar (str): Customer`s avatar. session_fields (list): An array of custom object-enclosed key:value pairs. diff --git a/livechat/customer/rtm/api/v37.py b/livechat/customer/rtm/api/v37.py index 976198b..1f5a8d6 100644 --- a/livechat/customer/rtm/api/v37.py +++ b/livechat/customer/rtm/api/v37.py @@ -439,6 +439,7 @@ def delete_event_properties(self, def update_customer(self, name: str = None, + name_is_default: bool = None, email: str = None, avatar: str = None, session_fields: list = None, @@ -447,6 +448,7 @@ def update_customer(self, Args: name (str): Customer`s name. + name_is_default (bool): Flag which states if the name is default. email (str): Customer`s email. avatar (str): Customer`s avatar. session_fields (list): An array of custom object-enclosed key:value pairs. diff --git a/livechat/customer/web/api/v36.py b/livechat/customer/web/api/v36.py index 5c5f106..149f2ea 100644 --- a/livechat/customer/web/api/v36.py +++ b/livechat/customer/web/api/v36.py @@ -700,6 +700,7 @@ def get_customer(self, def update_customer(self, name: str = None, + name_is_default: bool = None, email: str = None, avatar: str = None, session_fields: list = None, @@ -709,6 +710,7 @@ def update_customer(self, Args: name (str): Name of the customer. + name_is_default (bool): Flag which states if the name is default. email (str): Email of the customer. avatar (str): The URL of the Customer's avatar. session_fields (list): An array of custom object-enclosed key:value pairs. diff --git a/livechat/customer/web/api/v37.py b/livechat/customer/web/api/v37.py index 5070e3d..f9c6e7c 100644 --- a/livechat/customer/web/api/v37.py +++ b/livechat/customer/web/api/v37.py @@ -700,6 +700,7 @@ def get_customer(self, def update_customer(self, name: str = None, + name_is_default: bool = None, email: str = None, avatar: str = None, session_fields: list = None, @@ -709,6 +710,7 @@ def update_customer(self, Args: name (str): Name of the customer. + name_is_default (bool): Flag which states if the name is default. email (str): Email of the customer. avatar (str): The URL of the Customer's avatar. session_fields (list): An array of custom object-enclosed key:value pairs. diff --git a/requirements.txt b/requirements.txt index bb6d734..f95e7de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,5 +12,5 @@ idna==3.10; python_version >= '3.6' loguru==0.7.3; python_version >= '3.5' and python_version < '4.0' sniffio==1.3.1; python_version >= '3.7' typing-extensions==4.12.2; python_version >= '3.8' -urllib3==2.6.2; python_version >= '3.9' +urllib3==2.6.3; python_version >= '3.9' websocket-client==1.9.0; python_version >= '3.9'