xtr-webhook 4.0.2__py3-none-any.whl

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 (56) hide show
  1. xtr_webhook/.agents/skills/xtr-webhook/SKILL.md +350 -0
  2. xtr_webhook/.agents/skills/xtr-webhook/references/signature-formats.md +189 -0
  3. xtr_webhook/__init__.py +10 -0
  4. xtr_webhook/_endpoint_paths.py +22 -0
  5. xtr_webhook/_standard_webhooks_signature.py +76 -0
  6. xtr_webhook/bundle/__init__.py +15 -0
  7. xtr_webhook/bundle/_routed_parsers.py +70 -0
  8. xtr_webhook/bundle/no_private_network_config.py +59 -0
  9. xtr_webhook/bundle/route_config.py +34 -0
  10. xtr_webhook/bundle/webhook_bundle.py +262 -0
  11. xtr_webhook/bundle/webhook_config.py +80 -0
  12. xtr_webhook/client/__init__.py +23 -0
  13. xtr_webhook/client/abstract_request_parser.py +248 -0
  14. xtr_webhook/client/request_parser.py +272 -0
  15. xtr_webhook/client/request_parser_interface.py +90 -0
  16. xtr_webhook/controller/__init__.py +12 -0
  17. xtr_webhook/controller/_built_parsers.py +65 -0
  18. xtr_webhook/controller/webhook_controller.py +140 -0
  19. xtr_webhook/exception/__init__.py +25 -0
  20. xtr_webhook/exception/delivery_error.py +38 -0
  21. xtr_webhook/exception/invalid_argument_error.py +18 -0
  22. xtr_webhook/exception/logic_error.py +15 -0
  23. xtr_webhook/exception/reject_webhook_error.py +52 -0
  24. xtr_webhook/exception/webhook_error.py +9 -0
  25. xtr_webhook/exception/webhook_runtime_error.py +16 -0
  26. xtr_webhook/messenger/__init__.py +14 -0
  27. xtr_webhook/messenger/send_webhook_handler.py +49 -0
  28. xtr_webhook/messenger/send_webhook_message.py +36 -0
  29. xtr_webhook/py.typed +0 -0
  30. xtr_webhook/recipe/__init__.py +18 -0
  31. xtr_webhook/recipe/files/config/routes/webhook.py.tmpl +25 -0
  32. xtr_webhook/recipe/files/config/webhook.py.tmpl +33 -0
  33. xtr_webhook/recipe/manifest.toml +35 -0
  34. xtr_webhook/routing/__init__.py +11 -0
  35. xtr_webhook/routing/_endpoints.py +38 -0
  36. xtr_webhook/routing/webhook_route_loader.py +31 -0
  37. xtr_webhook/server/__init__.py +39 -0
  38. xtr_webhook/server/header_signature_configurator.py +128 -0
  39. xtr_webhook/server/headers_configurator.py +92 -0
  40. xtr_webhook/server/json_body_configurator.py +80 -0
  41. xtr_webhook/server/json_payload_serializer.py +45 -0
  42. xtr_webhook/server/outgoing_request.py +35 -0
  43. xtr_webhook/server/payload_serializer_interface.py +34 -0
  44. xtr_webhook/server/request_configurator_interface.py +39 -0
  45. xtr_webhook/server/signature_format.py +65 -0
  46. xtr_webhook/server/transport.py +106 -0
  47. xtr_webhook/server/transport_interface.py +40 -0
  48. xtr_webhook/subscriber.py +41 -0
  49. xtr_webhook/testing/__init__.py +18 -0
  50. xtr_webhook/testing/_parser_cases.py +141 -0
  51. xtr_webhook/testing/parser_case.py +37 -0
  52. xtr_webhook-4.0.2.dist-info/METADATA +704 -0
  53. xtr_webhook-4.0.2.dist-info/RECORD +56 -0
  54. xtr_webhook-4.0.2.dist-info/WHEEL +4 -0
  55. xtr_webhook-4.0.2.dist-info/entry_points.txt +6 -0
  56. xtr_webhook-4.0.2.dist-info/licenses/LICENSE +22 -0
@@ -0,0 +1,56 @@
1
+ xtr_webhook/.agents/skills/xtr-webhook/SKILL.md,sha256=0P1NEq72xqYsQlGPC0RZjCfBBXVfNXIXWfE3f6Q0WeA,18617
2
+ xtr_webhook/.agents/skills/xtr-webhook/references/signature-formats.md,sha256=H9QWMBWCZxjKhJAsJbBes2vy17euQ5NrrS5AmIaUGfk,7190
3
+ xtr_webhook/__init__.py,sha256=T-r-hCvVj-i6UI8yDJ0Euw8fml5Nkkn3yLv6QffH5u8,387
4
+ xtr_webhook/_endpoint_paths.py,sha256=2-QA56FNtq8Q5Rbv8AWfFUvs5_bwIEzDUYcNJB5NQqo,873
5
+ xtr_webhook/_standard_webhooks_signature.py,sha256=Ex5MxrFPvZfhBsq_tm4zZZKBbcJ4Lapkim3FdMY6pTA,3113
6
+ xtr_webhook/bundle/__init__.py,sha256=UlVfnd8QZqii5t_W5-qkaxUQClV7tj3BtzD5yJmdrmM,386
7
+ xtr_webhook/bundle/_routed_parsers.py,sha256=jzBFgLuXUvkpvk-bLOTbBxGCblfUEFq_0uh_11fSTsM,2609
8
+ xtr_webhook/bundle/no_private_network_config.py,sha256=vHdZMpZ0J0awvd1w4ElUWF4470_9E3xSoBi9YOKe7wU,2519
9
+ xtr_webhook/bundle/route_config.py,sha256=WyORDu1KpsxCdhJuQZXY-lbSgrsD9TJ2pyk2G0uIvpY,1358
10
+ xtr_webhook/bundle/webhook_bundle.py,sha256=gmLZlpMs8dhVRcrhCrqW5SCmQKfMQFVlBrcMvS7I_x0,10600
11
+ xtr_webhook/bundle/webhook_config.py,sha256=nXfrDOloztbS19_dRP46dhXRuN4-aUAXpOtrSBrHT44,3585
12
+ xtr_webhook/client/__init__.py,sha256=eYYpvR15rp8l2aMIBhZS3zuVL9cOAcUlUfWT73C1ijs,813
13
+ xtr_webhook/client/abstract_request_parser.py,sha256=9xZGca9xDiqrDNWwYpt_Cz149F_KviC0tmev1wb7DWQ,9533
14
+ xtr_webhook/client/request_parser.py,sha256=E0WIUOliN7nRFxW1-zfJQoErnF9bXd02h9YwVDpa2UQ,12214
15
+ xtr_webhook/client/request_parser_interface.py,sha256=-1yx_GlZBGVQh8KvxgNx1BRSyPFqgVu2aw6516EVCaU,3253
16
+ xtr_webhook/controller/__init__.py,sha256=r2R1Dd2y31G-zK8uSkHCiiadYvystdllvGLvQXj_pmM,391
17
+ xtr_webhook/controller/_built_parsers.py,sha256=ulrg3RfVf9v3Kg9CUDpy5MQQoefpMKC3kVRVKlEsqPw,2419
18
+ xtr_webhook/controller/webhook_controller.py,sha256=AmDpegauK6dbwh_aWz4kysdtjvwkndyUdUXaLGTemew,5527
19
+ xtr_webhook/exception/__init__.py,sha256=zHkVoDi5j97PPtzod-tEzAQ4BL4K7ghXjWSgIVUnZqU,801
20
+ xtr_webhook/exception/delivery_error.py,sha256=XK9kUNcoGVouzJUFL4f-jTH9_wFoWU9hvCXKK2XiVlA,1366
21
+ xtr_webhook/exception/invalid_argument_error.py,sha256=fPSzw2rItsnQvCOulT4BGXk6OOojTzONT03CtjLSpkw,682
22
+ xtr_webhook/exception/logic_error.py,sha256=8qyR5k6QNaHqDuK5aC4CwRHAmoblywsQ1-oJmbkassU,464
23
+ xtr_webhook/exception/reject_webhook_error.py,sha256=P5IqRAvoENEKr0uZQ8sGWnc9lnKgfwHvd7TONZMbfJU,1908
24
+ xtr_webhook/exception/webhook_error.py,sha256=1NtC0xjyxYRph0FgllUr4Mg821DWnJbfvUaG0tIxlso,238
25
+ xtr_webhook/exception/webhook_runtime_error.py,sha256=MGC3o-xP6i1iAVDSS8AdGjw6byOMxT4ht_SKAKOR55A,587
26
+ xtr_webhook/messenger/__init__.py,sha256=wS5hHE3Deuzv_JYw88kLOjswxGyvbcoO0vJEG7drI4Q,542
27
+ xtr_webhook/messenger/send_webhook_handler.py,sha256=dxMYh2QPewg7WdopKSDtnYVAb5t9IXMGvnXYUyvZfs8,1882
28
+ xtr_webhook/messenger/send_webhook_message.py,sha256=NyRTjqHR2E_77T8F-zxEGuzkhRXJi8Hoz-_REGdc0lg,1154
29
+ xtr_webhook/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ xtr_webhook/recipe/__init__.py,sha256=u1u8F3Q-ynKXASGzGJQqPZ9TIG2-GR2I40u-bKBVgAg,761
31
+ xtr_webhook/recipe/files/config/routes/webhook.py.tmpl,sha256=9OZIdyudtzQwxxaBMLYaYbu8a6kH27kHZmwC0S677jY,783
32
+ xtr_webhook/recipe/files/config/webhook.py.tmpl,sha256=_xYjmBwPqGp_UVNdcASpSM_-PSf6RaAcUs-d5u4AIlw,1348
33
+ xtr_webhook/recipe/manifest.toml,sha256=2kso95wd4HZNQQn1uJoQc81nVQP18a5cqApqX-8KODA,1521
34
+ xtr_webhook/routing/__init__.py,sha256=IhCA6gHCaKEX935etsakX3SUl8DLJe8-R2EsADNJhrQ,321
35
+ xtr_webhook/routing/_endpoints.py,sha256=uQ5McDach4QfqxY2iRb-kaUwVqCZQTRskzx8-90z318,1568
36
+ xtr_webhook/routing/webhook_route_loader.py,sha256=J-N0Cg9LeveKKw8gMn-sKp9Kx2NOTowDqBY_277dv6k,996
37
+ xtr_webhook/server/__init__.py,sha256=MzUSyT3y8e35DiM23sQzBMqnh0VDemsT6MEk-PmF3Dw,1617
38
+ xtr_webhook/server/header_signature_configurator.py,sha256=CMYlaw11Ke89nn0ZOvvwoDC8D6aum0ZAlpqkNn38ifM,5286
39
+ xtr_webhook/server/headers_configurator.py,sha256=ilLhDlJ8djLzRaHs38XTsy0KYDvUvuZCp_ShODDFWQE,3569
40
+ xtr_webhook/server/json_body_configurator.py,sha256=BhBeh9w__oAGnnza4OL-Ky9aKLp2ZiNNLEUl_h8n58Y,2933
41
+ xtr_webhook/server/json_payload_serializer.py,sha256=HNPIzuhlasgLuLNBetsAkO_bcSpZ6BXhI15cWk255DU,1377
42
+ xtr_webhook/server/outgoing_request.py,sha256=nmitxWiKPDMT5Pg7rI_DZEDr_LdM5oAbeSxWehgyxWw,1395
43
+ xtr_webhook/server/payload_serializer_interface.py,sha256=1e3FM1cT8ZiE2yrZOSjcIXp-HPmgbFePSTuBqmxyClY,1121
44
+ xtr_webhook/server/request_configurator_interface.py,sha256=1-a51r4yAny_EpSKulbxOeAqFFGd09NuAs37qqu-GRI,1487
45
+ xtr_webhook/server/signature_format.py,sha256=yW6SDGPQLgdefobeYWS0xLBv57ABoMXcNaS3MU_WUpY,2810
46
+ xtr_webhook/server/transport.py,sha256=mfYNDZJOZ8Fv-DAj-MXW4mZKPGq4Y7TSExGsVeivjhE,3936
47
+ xtr_webhook/server/transport_interface.py,sha256=NDQrAq_aeyvZeaFnHgQIy4LmC4MO3YeDI5SZyL2NdKA,1279
48
+ xtr_webhook/subscriber.py,sha256=dBSHABvpVnXz7mT7FSzpMb-v-RvORxFVAr6uqEUP1yw,1463
49
+ xtr_webhook/testing/__init__.py,sha256=OWL8fZ8fXTne8ZlM_c2zRw2tS7esjfXpGtFJ9KCUUMI,782
50
+ xtr_webhook/testing/_parser_cases.py,sha256=nI9OoffHHyyjs7aqxmob0m13gonkvOTFpJnQu1Tnu0U,5183
51
+ xtr_webhook/testing/parser_case.py,sha256=VWrijFXeOcUgePHz2l9qHy6T9cB43aNK2M9cT5bDkOw,1455
52
+ xtr_webhook-4.0.2.dist-info/licenses/LICENSE,sha256=E1QzQP5QkJqmqUAlzrs5fNFdC8dZfIrTOyTS7YT6MP4,1106
53
+ xtr_webhook-4.0.2.dist-info/WHEEL,sha256=9IUYslYuG_asT4WlWvfk_K76nveuLvSTKDoLeL0cV-Q,80
54
+ xtr_webhook-4.0.2.dist-info/entry_points.txt,sha256=eEP8TeB4gUVxdjSmybBW91NAD6V-Ze2qdIZLAQSlsL0,123
55
+ xtr_webhook-4.0.2.dist-info/METADATA,sha256=HenYK2SqNRd7ngB3I4gkUvgSfj_3X--cQ9MiwD2h9r8,32079
56
+ xtr_webhook-4.0.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,6 @@
1
+ [xtr_dependency_injection.bundles]
2
+ webhook = xtr_webhook.bundle:WebhookBundle
3
+
4
+ [xtr_recipes]
5
+ webhook = xtr_webhook.recipe
6
+
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 xterr
4
+ Copyright (c) 2022-present Fabien Potencier
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.