blueink-client-python 1.5.0__tar.gz → 1.6.0__tar.gz

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 (38) hide show
  1. {blueink_client_python-1.5.0/src/blueink_client_python.egg-info → blueink_client_python-1.6.0}/PKG-INFO +2 -1
  2. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/README.md +1 -0
  3. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/setup.cfg +1 -1
  4. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/constants.py +3 -0
  5. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/endpoints.py +1 -0
  6. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/template.py +18 -0
  7. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/tests/test_client.py +16 -0
  8. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0/src/blueink_client_python.egg-info}/PKG-INFO +2 -1
  9. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/LICENSE +0 -0
  10. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/pyproject.toml +0 -0
  11. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/__init__.py +0 -0
  12. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/bundle_helper.py +0 -0
  13. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/client.py +0 -0
  14. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/model/__init__.py +0 -0
  15. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/model/bundles.py +0 -0
  16. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/model/persons.py +0 -0
  17. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/model/webhook.py +0 -0
  18. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/paginator.py +0 -0
  19. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/person_helper.py +0 -0
  20. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/request_helper.py +0 -0
  21. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/__init__.py +0 -0
  22. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/bundle.py +0 -0
  23. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/envelope_template.py +0 -0
  24. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/packet.py +0 -0
  25. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/person.py +0 -0
  26. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/subclient.py +0 -0
  27. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/verify.py +0 -0
  28. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/subclients/webhook.py +0 -0
  29. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/tests/__init__.py +0 -0
  30. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/tests/test_apiv2_218_constants.py +0 -0
  31. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/tests/test_bundle_helper.py +0 -0
  32. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/tests/test_person_helper.py +0 -0
  33. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/utils/__init__.py +0 -0
  34. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink/utils/testcase.py +0 -0
  35. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink_client_python.egg-info/SOURCES.txt +0 -0
  36. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink_client_python.egg-info/dependency_links.txt +0 -0
  37. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink_client_python.egg-info/requires.txt +0 -0
  38. {blueink_client_python-1.5.0 → blueink_client_python-1.6.0}/src/blueink_client_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blueink-client-python
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: Python Client for Blueink eSignature API
5
5
  Home-page: https://github.com/blueinkhq/blueink-client-python
6
6
  Author: Blueink
@@ -293,6 +293,7 @@ as kwargs.
293
293
  * List via ```client.templates.list(...)``` or ```client.templates.paged_list(...)```
294
294
  * Retrieve via ```client.templates.retrieve(...)```
295
295
  * Update via ```client.templates.update(...)```
296
+ * Delete via ```client.templates.delete(...)```
296
297
  * Create Preparation Session via ```client.templates.create_preparation_session(...)```
297
298
 
298
299
  ### Envelope Template Related
@@ -265,6 +265,7 @@ as kwargs.
265
265
  * List via ```client.templates.list(...)``` or ```client.templates.paged_list(...)```
266
266
  * Retrieve via ```client.templates.retrieve(...)```
267
267
  * Update via ```client.templates.update(...)```
268
+ * Delete via ```client.templates.delete(...)```
268
269
  * Create Preparation Session via ```client.templates.create_preparation_session(...)```
269
270
 
270
271
  ### Envelope Template Related
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = blueink-client-python
3
- version = 1.5.0
3
+ version = 1.6.0
4
4
  author = Blueink
5
5
  author_email = pypi@blueink.com
6
6
  description = Python Client for Blueink eSignature API
@@ -97,6 +97,9 @@ EVENT_TYPE = Munch(
97
97
  EVENT_BUNDLE_ERROR="bundle_error",
98
98
  EVENT_BUNDLE_CANCELLED="bundle_cancelled",
99
99
  EVENT_BUNDLE_SIGNER_REASSIGNED="bundle_signer_reassigned",
100
+ EVENT_DOC_TEMPLATE_CREATED="doc_template_created",
101
+ EVENT_DOC_TEMPLATE_UPDATED="doc_template_updated",
102
+ EVENT_DOC_TEMPLATE_DELETED="doc_template_deleted",
100
103
  EVENT_PACKET_VIEWED="packet_viewed",
101
104
  EVENT_PACKET_COMPLETE="packet_complete",
102
105
  EVENT_PACKET_DECLINED="packet_declined",
@@ -40,6 +40,7 @@ class TEMPLATES:
40
40
  LIST = "/templates/"
41
41
  RETRIEVE = "/templates/${template_id}/"
42
42
  UPDATE = "/templates/${template_id}/"
43
+ DELETE = "/templates/${template_id}/"
43
44
  CREATE_PREPARATION_SESSION = "/templates/preparation_session/"
44
45
 
45
46
 
@@ -76,6 +76,21 @@ class TemplateSubClient(SubClient):
76
76
  url = self.build_url(endpoints.TEMPLATES.UPDATE, template_id=template_id)
77
77
  return self._requests.patch(url, json=data)
78
78
 
79
+ def delete(self, template_id: str) -> NormalizedResponse:
80
+ """Soft-delete a Document Template.
81
+
82
+ The API disables the template and removes it from account libraries
83
+ (HTTP 204). Globally shared templates cannot be deleted (HTTP 403).
84
+
85
+ Args:
86
+ template_id:
87
+
88
+ Returns:
89
+ NormalizedResponse object
90
+ """
91
+ url = self.build_url(endpoints.TEMPLATES.DELETE, template_id=template_id)
92
+ return self._requests.delete(url)
93
+
79
94
  def create_preparation_session(self, data: dict) -> NormalizedResponse:
80
95
  """Create an embedded template preparation session.
81
96
 
@@ -86,6 +101,9 @@ class TemplateSubClient(SubClient):
86
101
  data: configuration for the preparation session. Supported keys:
87
102
  - template_id (str, optional): slug of an existing template to edit
88
103
  - redirect_url (str, optional): URL to redirect to after preparation
104
+ - allowed_data_flow_tags (list[str], optional): exact tag names or
105
+ namespace-prefix patterns such as ``acme:*``. An empty list allows
106
+ no tags; omit the field to leave the session unfiltered.
89
107
 
90
108
  Returns:
91
109
  NormalizedResponse object with keys:
@@ -558,6 +558,22 @@ class TestClientEndpoints(TestCase):
558
558
  )
559
559
  self.assert_equal(url, f"{self.BASE_URL}/templates/T-abc123/")
560
560
 
561
+ def test_template_delete_url(self):
562
+ client = self._client()
563
+ url = client.templates.build_url(
564
+ endpoints.TEMPLATES.DELETE, template_id="T-abc123"
565
+ )
566
+ self.assert_equal(url, f"{self.BASE_URL}/templates/T-abc123/")
567
+
568
+ def test_event_type_includes_doc_template_events(self):
569
+ values = EVENT_TYPE.values()
570
+ self.assert_equal(EVENT_TYPE.EVENT_DOC_TEMPLATE_CREATED, "doc_template_created")
571
+ self.assert_equal(EVENT_TYPE.EVENT_DOC_TEMPLATE_UPDATED, "doc_template_updated")
572
+ self.assert_equal(EVENT_TYPE.EVENT_DOC_TEMPLATE_DELETED, "doc_template_deleted")
573
+ self.assert_in("doc_template_created", values)
574
+ self.assert_in("doc_template_updated", values)
575
+ self.assert_in("doc_template_deleted", values)
576
+
561
577
  def test_bundle_update_url(self):
562
578
  client = self._client()
563
579
  url = client.bundles.build_url(endpoints.BUNDLES.UPDATE, bundle_id="B-abc123")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blueink-client-python
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: Python Client for Blueink eSignature API
5
5
  Home-page: https://github.com/blueinkhq/blueink-client-python
6
6
  Author: Blueink
@@ -293,6 +293,7 @@ as kwargs.
293
293
  * List via ```client.templates.list(...)``` or ```client.templates.paged_list(...)```
294
294
  * Retrieve via ```client.templates.retrieve(...)```
295
295
  * Update via ```client.templates.update(...)```
296
+ * Delete via ```client.templates.delete(...)```
296
297
  * Create Preparation Session via ```client.templates.create_preparation_session(...)```
297
298
 
298
299
  ### Envelope Template Related