dub 0.22.0__tar.gz → 0.23.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 (137) hide show
  1. {dub-0.22.0 → dub-0.23.0}/PKG-INFO +7 -7
  2. {dub-0.22.0 → dub-0.23.0}/README-PYPI.md +6 -6
  3. {dub-0.22.0 → dub-0.23.0}/pyproject.toml +1 -1
  4. {dub-0.22.0 → dub-0.23.0}/src/dub/_version.py +3 -3
  5. {dub-0.22.0 → dub-0.23.0}/src/dub/embed_tokens.py +4 -4
  6. {dub-0.22.0 → dub-0.23.0}/src/dub/events.py +5 -5
  7. {dub-0.22.0 → dub-0.23.0}/src/dub/folders.py +4 -4
  8. {dub-0.22.0 → dub-0.23.0}/src/dub/links.py +4 -4
  9. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/leadevent.py +0 -3
  10. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/partnerenrolledevent.py +8 -0
  11. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/saleevent.py +0 -3
  12. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createpartner.py +8 -0
  13. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getqrcode.py +4 -4
  14. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/listevents.py +11 -13
  15. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatelink.py +0 -2
  16. {dub-0.22.0 → dub-0.23.0}/src/dub/partners.py +6 -6
  17. {dub-0.22.0 → dub-0.23.0}/src/dub/sdk.py +1 -1
  18. {dub-0.22.0 → dub-0.23.0}/src/dub/tags.py +4 -4
  19. {dub-0.22.0 → dub-0.23.0}/LICENSE +0 -0
  20. {dub-0.22.0 → dub-0.23.0}/py.typed +0 -0
  21. {dub-0.22.0 → dub-0.23.0}/src/dub/__init__.py +0 -0
  22. {dub-0.22.0 → dub-0.23.0}/src/dub/_hooks/__init__.py +0 -0
  23. {dub-0.22.0 → dub-0.23.0}/src/dub/_hooks/registration.py +0 -0
  24. {dub-0.22.0 → dub-0.23.0}/src/dub/_hooks/sdkhooks.py +0 -0
  25. {dub-0.22.0 → dub-0.23.0}/src/dub/_hooks/types.py +0 -0
  26. {dub-0.22.0 → dub-0.23.0}/src/dub/analytics.py +0 -0
  27. {dub-0.22.0 → dub-0.23.0}/src/dub/basesdk.py +0 -0
  28. {dub-0.22.0 → dub-0.23.0}/src/dub/customers.py +0 -0
  29. {dub-0.22.0 → dub-0.23.0}/src/dub/domains.py +0 -0
  30. {dub-0.22.0 → dub-0.23.0}/src/dub/httpclient.py +0 -0
  31. {dub-0.22.0 → dub-0.23.0}/src/dub/models/__init__.py +0 -0
  32. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/__init__.py +0 -0
  33. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsbrowsers.py +0 -0
  34. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticscities.py +0 -0
  35. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticscontinents.py +0 -0
  36. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticscount.py +0 -0
  37. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticscountries.py +0 -0
  38. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsdevices.py +0 -0
  39. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsos.py +0 -0
  40. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsreferers.py +0 -0
  41. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsrefererurls.py +0 -0
  42. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticsregions.py +0 -0
  43. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticstimeseries.py +0 -0
  44. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticstoplinks.py +0 -0
  45. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticstopurls.py +0 -0
  46. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/analyticstriggers.py +0 -0
  47. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/clickevent.py +0 -0
  48. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/continentcode.py +0 -0
  49. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/countrycode.py +0 -0
  50. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/domainschema.py +0 -0
  51. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/folderschema.py +0 -0
  52. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/leadcreatedevent.py +0 -0
  53. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/linkclickedevent.py +0 -0
  54. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/linkerrorschema.py +0 -0
  55. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/linkgeotargeting.py +0 -0
  56. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/linkschema.py +0 -0
  57. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/linkwebhookevent.py +0 -0
  58. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/partneranalyticscount.py +0 -0
  59. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/partneranalyticstimeseries.py +0 -0
  60. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/partneranalyticstoplinks.py +0 -0
  61. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/salecreatedevent.py +0 -0
  62. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/security.py +0 -0
  63. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/tagschema.py +0 -0
  64. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/webhookevent.py +0 -0
  65. {dub-0.22.0 → dub-0.23.0}/src/dub/models/components/workspaceschema.py +0 -0
  66. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/__init__.py +0 -0
  67. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/badrequest.py +0 -0
  68. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/conflict.py +0 -0
  69. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/forbidden.py +0 -0
  70. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/internalservererror.py +0 -0
  71. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/inviteexpired.py +0 -0
  72. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/notfound.py +0 -0
  73. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/ratelimitexceeded.py +0 -0
  74. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/sdkerror.py +0 -0
  75. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/unauthorized.py +0 -0
  76. {dub-0.22.0 → dub-0.23.0}/src/dub/models/errors/unprocessableentity.py +0 -0
  77. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/__init__.py +0 -0
  78. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/bulkcreatelinks.py +0 -0
  79. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/bulkdeletelinks.py +0 -0
  80. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/bulkupdatelinks.py +0 -0
  81. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createcustomer.py +0 -0
  82. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createdomain.py +0 -0
  83. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createfolder.py +0 -0
  84. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createlink.py +0 -0
  85. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createpartnerlink.py +0 -0
  86. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createreferralsembedtoken.py +0 -0
  87. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/createtag.py +0 -0
  88. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/deletecustomer.py +0 -0
  89. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/deletedomain.py +0 -0
  90. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/deletefolder.py +0 -0
  91. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/deletelink.py +0 -0
  92. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/deletetag.py +0 -0
  93. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getcustomer.py +0 -0
  94. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getcustomers.py +0 -0
  95. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getlinkinfo.py +0 -0
  96. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getlinks.py +0 -0
  97. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getlinkscount.py +0 -0
  98. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/gettags.py +0 -0
  99. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/getworkspace.py +0 -0
  100. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/listdomains.py +0 -0
  101. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/listfolders.py +0 -0
  102. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/retrieveanalytics.py +0 -0
  103. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/retrievelinks.py +0 -0
  104. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/retrievepartneranalytics.py +0 -0
  105. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/tracklead.py +0 -0
  106. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/tracksale.py +0 -0
  107. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatecustomer.py +0 -0
  108. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatedomain.py +0 -0
  109. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatefolder.py +0 -0
  110. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatepartnersale.py +0 -0
  111. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updatetag.py +0 -0
  112. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/updateworkspace.py +0 -0
  113. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/upsertlink.py +0 -0
  114. {dub-0.22.0 → dub-0.23.0}/src/dub/models/operations/upsertpartnerlink.py +0 -0
  115. {dub-0.22.0 → dub-0.23.0}/src/dub/py.typed +0 -0
  116. {dub-0.22.0 → dub-0.23.0}/src/dub/qr_codes.py +0 -0
  117. {dub-0.22.0 → dub-0.23.0}/src/dub/sdkconfiguration.py +0 -0
  118. {dub-0.22.0 → dub-0.23.0}/src/dub/track.py +0 -0
  119. {dub-0.22.0 → dub-0.23.0}/src/dub/types/__init__.py +0 -0
  120. {dub-0.22.0 → dub-0.23.0}/src/dub/types/basemodel.py +0 -0
  121. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/__init__.py +0 -0
  122. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/annotations.py +0 -0
  123. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/datetimes.py +0 -0
  124. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/enums.py +0 -0
  125. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/eventstreaming.py +0 -0
  126. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/forms.py +0 -0
  127. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/headers.py +0 -0
  128. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/logger.py +0 -0
  129. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/metadata.py +0 -0
  130. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/queryparams.py +0 -0
  131. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/requestbodies.py +0 -0
  132. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/retries.py +0 -0
  133. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/security.py +0 -0
  134. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/serializers.py +0 -0
  135. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/url.py +0 -0
  136. {dub-0.22.0 → dub-0.23.0}/src/dub/utils/values.py +0 -0
  137. {dub-0.22.0 → dub-0.23.0}/src/dub/workspaces.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dub
3
- Version: 0.22.0
3
+ Version: 0.23.0
4
4
  Summary: Python Client SDK Generated by Speakeasy
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -32,7 +32,7 @@ Learn more about the Dub.co Python SDK in the [official documentation](https://d
32
32
  <!-- Start Summary [summary] -->
33
33
  ## Summary
34
34
 
35
- Dub.co API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.
35
+ Dub API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.
36
36
  <!-- End Summary [summary] -->
37
37
 
38
38
  <!-- Start Table of Contents [toc] -->
@@ -295,7 +295,7 @@ asyncio.run(main())
295
295
 
296
296
  ### [embed_tokens](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md)
297
297
 
298
- * [referrals](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md#referrals) - Create a new referrals embed token
298
+ * [referrals](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md#referrals) - Create a referrals embed token
299
299
 
300
300
  ### [events](https://github.com/dubinc/dub-python/blob/master/docs/sdks/events/README.md)
301
301
 
@@ -303,14 +303,14 @@ asyncio.run(main())
303
303
 
304
304
  ### [folders](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md)
305
305
 
306
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#create) - Create a new folder
306
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#create) - Create a folder
307
307
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#list) - Retrieve a list of folders
308
308
  * [update](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#update) - Update a folder
309
309
  * [delete](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#delete) - Delete a folder
310
310
 
311
311
  ### [links](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md)
312
312
 
313
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#create) - Create a new link
313
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#create) - Create a link
314
314
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#list) - Retrieve a list of links
315
315
  * [count](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#count) - Retrieve links count
316
316
  * [get](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#get) - Retrieve a link
@@ -323,7 +323,7 @@ asyncio.run(main())
323
323
 
324
324
  ### [partners](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md)
325
325
 
326
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create) - Create a new partner
326
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create) - Create a partner
327
327
  * [create_link](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create_link) - Create a link for a partner
328
328
  * [retrieve_links](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#retrieve_links) - Retrieve a partner's links.
329
329
  * [upsert_link](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
@@ -336,7 +336,7 @@ asyncio.run(main())
336
336
 
337
337
  ### [tags](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md)
338
338
 
339
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#create) - Create a new tag
339
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#create) - Create a tag
340
340
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#list) - Retrieve a list of tags
341
341
  * [update](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#update) - Update a tag
342
342
  * [delete](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#delete) - Delete a tag
@@ -14,7 +14,7 @@ Learn more about the Dub.co Python SDK in the [official documentation](https://d
14
14
  <!-- Start Summary [summary] -->
15
15
  ## Summary
16
16
 
17
- Dub.co API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.
17
+ Dub API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.
18
18
  <!-- End Summary [summary] -->
19
19
 
20
20
  <!-- Start Table of Contents [toc] -->
@@ -277,7 +277,7 @@ asyncio.run(main())
277
277
 
278
278
  ### [embed_tokens](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md)
279
279
 
280
- * [referrals](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md#referrals) - Create a new referrals embed token
280
+ * [referrals](https://github.com/dubinc/dub-python/blob/master/docs/sdks/embedtokens/README.md#referrals) - Create a referrals embed token
281
281
 
282
282
  ### [events](https://github.com/dubinc/dub-python/blob/master/docs/sdks/events/README.md)
283
283
 
@@ -285,14 +285,14 @@ asyncio.run(main())
285
285
 
286
286
  ### [folders](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md)
287
287
 
288
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#create) - Create a new folder
288
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#create) - Create a folder
289
289
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#list) - Retrieve a list of folders
290
290
  * [update](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#update) - Update a folder
291
291
  * [delete](https://github.com/dubinc/dub-python/blob/master/docs/sdks/folders/README.md#delete) - Delete a folder
292
292
 
293
293
  ### [links](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md)
294
294
 
295
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#create) - Create a new link
295
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#create) - Create a link
296
296
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#list) - Retrieve a list of links
297
297
  * [count](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#count) - Retrieve links count
298
298
  * [get](https://github.com/dubinc/dub-python/blob/master/docs/sdks/links/README.md#get) - Retrieve a link
@@ -305,7 +305,7 @@ asyncio.run(main())
305
305
 
306
306
  ### [partners](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md)
307
307
 
308
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create) - Create a new partner
308
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create) - Create a partner
309
309
  * [create_link](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#create_link) - Create a link for a partner
310
310
  * [retrieve_links](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#retrieve_links) - Retrieve a partner's links.
311
311
  * [upsert_link](https://github.com/dubinc/dub-python/blob/master/docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
@@ -318,7 +318,7 @@ asyncio.run(main())
318
318
 
319
319
  ### [tags](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md)
320
320
 
321
- * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#create) - Create a new tag
321
+ * [create](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#create) - Create a tag
322
322
  * [list](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#list) - Retrieve a list of tags
323
323
  * [update](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#update) - Update a tag
324
324
  * [delete](https://github.com/dubinc/dub-python/blob/master/docs/sdks/tags/README.md#delete) - Delete a tag
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dub"
3
- version = "0.22.0"
3
+ version = "0.23.0"
4
4
  description = "Python Client SDK Generated by Speakeasy"
5
5
  authors = [{ name = "Speakeasy" },]
6
6
  readme = "README-PYPI.md"
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "dub"
6
- __version__: str = "0.22.0"
6
+ __version__: str = "0.23.0"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.593.4"
9
- __user_agent__: str = "speakeasy-sdk/python 0.22.0 2.593.4 0.0.1 dub"
8
+ __gen_version__: str = "2.597.9"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.23.0 2.597.9 0.0.1 dub"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -23,9 +23,9 @@ class EmbedTokens(BaseSDK):
23
23
  timeout_ms: Optional[int] = None,
24
24
  http_headers: Optional[Mapping[str, str]] = None,
25
25
  ) -> Optional[operations.CreateReferralsEmbedTokenResponseBody]:
26
- r"""Create a new referrals embed token
26
+ r"""Create a referrals embed token
27
27
 
28
- Create a new referrals embed token for the given partner/tenant.
28
+ Create a referrals embed token for the given partner/tenant.
29
29
 
30
30
  :param request: The request object to send.
31
31
  :param retries: Override the default retry configuration for this method
@@ -181,9 +181,9 @@ class EmbedTokens(BaseSDK):
181
181
  timeout_ms: Optional[int] = None,
182
182
  http_headers: Optional[Mapping[str, str]] = None,
183
183
  ) -> Optional[operations.CreateReferralsEmbedTokenResponseBody]:
184
- r"""Create a new referrals embed token
184
+ r"""Create a referrals embed token
185
185
 
186
- Create a new referrals embed token for the given partner/tenant.
186
+ Create a referrals embed token for the given partner/tenant.
187
187
 
188
188
  :param request: The request object to send.
189
189
  :param retries: Override the default retry configuration for this method
@@ -5,7 +5,7 @@ from dub import utils
5
5
  from dub._hooks import HookContext
6
6
  from dub.models import errors, operations
7
7
  from dub.types import BaseModel, OptionalNullable, UNSET
8
- from typing import Any, Mapping, Optional, Union, cast
8
+ from typing import Any, List, Mapping, Optional, Union, cast
9
9
 
10
10
 
11
11
  class Events(BaseSDK):
@@ -19,7 +19,7 @@ class Events(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> Optional[operations.ListEventsResponseBody]:
22
+ ) -> Optional[List[operations.ListEventsResponseBody]]:
23
23
  r"""Retrieve a list of events
24
24
 
25
25
  Retrieve a paginated list of events for the authenticated workspace.
@@ -95,7 +95,7 @@ class Events(BaseSDK):
95
95
  response_data: Any = None
96
96
  if utils.match_response(http_res, "200", "application/json"):
97
97
  return utils.unmarshal_json(
98
- http_res.text, Optional[operations.ListEventsResponseBody]
98
+ http_res.text, Optional[List[operations.ListEventsResponseBody]]
99
99
  )
100
100
  if utils.match_response(http_res, "400", "application/json"):
101
101
  response_data = utils.unmarshal_json(http_res.text, errors.BadRequestData)
@@ -162,7 +162,7 @@ class Events(BaseSDK):
162
162
  server_url: Optional[str] = None,
163
163
  timeout_ms: Optional[int] = None,
164
164
  http_headers: Optional[Mapping[str, str]] = None,
165
- ) -> Optional[operations.ListEventsResponseBody]:
165
+ ) -> Optional[List[operations.ListEventsResponseBody]]:
166
166
  r"""Retrieve a list of events
167
167
 
168
168
  Retrieve a paginated list of events for the authenticated workspace.
@@ -238,7 +238,7 @@ class Events(BaseSDK):
238
238
  response_data: Any = None
239
239
  if utils.match_response(http_res, "200", "application/json"):
240
240
  return utils.unmarshal_json(
241
- http_res.text, Optional[operations.ListEventsResponseBody]
241
+ http_res.text, Optional[List[operations.ListEventsResponseBody]]
242
242
  )
243
243
  if utils.match_response(http_res, "400", "application/json"):
244
244
  response_data = utils.unmarshal_json(http_res.text, errors.BadRequestData)
@@ -23,9 +23,9 @@ class Folders(BaseSDK):
23
23
  timeout_ms: Optional[int] = None,
24
24
  http_headers: Optional[Mapping[str, str]] = None,
25
25
  ) -> Optional[components.FolderSchema]:
26
- r"""Create a new folder
26
+ r"""Create a folder
27
27
 
28
- Create a new folder for the authenticated workspace.
28
+ Create a folder for the authenticated workspace.
29
29
 
30
30
  :param request: The request object to send.
31
31
  :param retries: Override the default retry configuration for this method
@@ -178,9 +178,9 @@ class Folders(BaseSDK):
178
178
  timeout_ms: Optional[int] = None,
179
179
  http_headers: Optional[Mapping[str, str]] = None,
180
180
  ) -> Optional[components.FolderSchema]:
181
- r"""Create a new folder
181
+ r"""Create a folder
182
182
 
183
- Create a new folder for the authenticated workspace.
183
+ Create a folder for the authenticated workspace.
184
184
 
185
185
  :param request: The request object to send.
186
186
  :param retries: Override the default retry configuration for this method
@@ -24,9 +24,9 @@ class Links(BaseSDK):
24
24
  timeout_ms: Optional[int] = None,
25
25
  http_headers: Optional[Mapping[str, str]] = None,
26
26
  ) -> Optional[components.LinkSchema]:
27
- r"""Create a new link
27
+ r"""Create a link
28
28
 
29
- Create a new link for the authenticated workspace.
29
+ Create a link for the authenticated workspace.
30
30
 
31
31
  :param request: The request object to send.
32
32
  :param retries: Override the default retry configuration for this method
@@ -173,9 +173,9 @@ class Links(BaseSDK):
173
173
  timeout_ms: Optional[int] = None,
174
174
  http_headers: Optional[Mapping[str, str]] = None,
175
175
  ) -> Optional[components.LinkSchema]:
176
- r"""Create a new link
176
+ r"""Create a link
177
177
 
178
- Create a new link for the authenticated workspace.
178
+ Create a link for the authenticated workspace.
179
179
 
180
180
  :param request: The request object to send.
181
181
  :param retries: Override the default retry configuration for this method
@@ -1198,7 +1198,6 @@ class LeadEventTypedDict(TypedDict):
1198
1198
  timestamp: str
1199
1199
  event_id: str
1200
1200
  event_name: str
1201
- metadata: str
1202
1201
  click: LeadEventClickTypedDict
1203
1202
  link: LeadEventLinkTypedDict
1204
1203
  customer: CustomerTypedDict
@@ -1239,8 +1238,6 @@ class LeadEvent(BaseModel):
1239
1238
 
1240
1239
  event_name: Annotated[str, pydantic.Field(alias="eventName")]
1241
1240
 
1242
- metadata: str
1243
-
1244
1241
  click: LeadEventClick
1245
1242
 
1246
1243
  link: LeadEventLink
@@ -78,6 +78,8 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
78
78
  email: Nullable[str]
79
79
  image: Nullable[str]
80
80
  country: Nullable[str]
81
+ paypal_email: Nullable[str]
82
+ stripe_connect_id: Nullable[str]
81
83
  payouts_enabled_at: Nullable[str]
82
84
  created_at: str
83
85
  status: Status
@@ -104,6 +106,10 @@ class PartnerEnrolledEventData(BaseModel):
104
106
 
105
107
  country: Nullable[str]
106
108
 
109
+ paypal_email: Annotated[Nullable[str], pydantic.Field(alias="paypalEmail")]
110
+
111
+ stripe_connect_id: Annotated[Nullable[str], pydantic.Field(alias="stripeConnectId")]
112
+
107
113
  payouts_enabled_at: Annotated[
108
114
  Nullable[str], pydantic.Field(alias="payoutsEnabledAt")
109
115
  ]
@@ -150,6 +156,8 @@ class PartnerEnrolledEventData(BaseModel):
150
156
  "image",
151
157
  "description",
152
158
  "country",
159
+ "paypalEmail",
160
+ "stripeConnectId",
153
161
  "payoutsEnabledAt",
154
162
  "tenantId",
155
163
  "links",
@@ -1272,7 +1272,6 @@ class SaleEventTypedDict(TypedDict):
1272
1272
  r"""Deprecated. Use `sale.invoiceId` instead."""
1273
1273
  payment_processor: str
1274
1274
  r"""Deprecated. Use `sale.paymentProcessor` instead."""
1275
- metadata: str
1276
1275
  click_id: str
1277
1276
  r"""Deprecated. Use `click.id` instead."""
1278
1277
  link_id: str
@@ -1338,8 +1337,6 @@ class SaleEvent(BaseModel):
1338
1337
  payment_processor: str
1339
1338
  r"""Deprecated. Use `sale.paymentProcessor` instead."""
1340
1339
 
1341
- metadata: str
1342
-
1343
1340
  click_id: Annotated[
1344
1341
  str,
1345
1342
  pydantic.Field(
@@ -707,6 +707,8 @@ class CreatePartnerResponseBodyTypedDict(TypedDict):
707
707
  email: Nullable[str]
708
708
  image: Nullable[str]
709
709
  country: Nullable[str]
710
+ paypal_email: Nullable[str]
711
+ stripe_connect_id: Nullable[str]
710
712
  payouts_enabled_at: Nullable[str]
711
713
  created_at: str
712
714
  status: Status
@@ -735,6 +737,10 @@ class CreatePartnerResponseBody(BaseModel):
735
737
 
736
738
  country: Nullable[str]
737
739
 
740
+ paypal_email: Annotated[Nullable[str], pydantic.Field(alias="paypalEmail")]
741
+
742
+ stripe_connect_id: Annotated[Nullable[str], pydantic.Field(alias="stripeConnectId")]
743
+
738
744
  payouts_enabled_at: Annotated[
739
745
  Nullable[str], pydantic.Field(alias="payoutsEnabledAt")
740
746
  ]
@@ -781,6 +787,8 @@ class CreatePartnerResponseBody(BaseModel):
781
787
  "image",
782
788
  "description",
783
789
  "country",
790
+ "paypalEmail",
791
+ "stripeConnectId",
784
792
  "payoutsEnabledAt",
785
793
  "tenantId",
786
794
  "links",
@@ -22,7 +22,7 @@ class GetQRCodeRequestTypedDict(TypedDict):
22
22
  url: str
23
23
  r"""The URL to generate a QR code for."""
24
24
  logo: NotRequired[str]
25
- r"""The logo to include in the QR code. Can only be used with a paid plan on Dub.co."""
25
+ r"""The logo to include in the QR code. Can only be used with a paid plan on Dub."""
26
26
  size: NotRequired[float]
27
27
  r"""The size of the QR code in pixels. Defaults to `600` if not provided."""
28
28
  level: NotRequired[Level]
@@ -32,7 +32,7 @@ class GetQRCodeRequestTypedDict(TypedDict):
32
32
  bg_color: NotRequired[str]
33
33
  r"""The background color of the QR code in hex format. Defaults to `#ffffff` if not provided."""
34
34
  hide_logo: NotRequired[bool]
35
- r"""Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co."""
35
+ r"""Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub."""
36
36
  margin: NotRequired[float]
37
37
  r"""The size of the margin around the QR code. Defaults to 2 if not provided."""
38
38
  include_margin: NotRequired[bool]
@@ -49,7 +49,7 @@ class GetQRCodeRequest(BaseModel):
49
49
  Optional[str],
50
50
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
51
51
  ] = None
52
- r"""The logo to include in the QR code. Can only be used with a paid plan on Dub.co."""
52
+ r"""The logo to include in the QR code. Can only be used with a paid plan on Dub."""
53
53
 
54
54
  size: Annotated[
55
55
  Optional[float],
@@ -82,7 +82,7 @@ class GetQRCodeRequest(BaseModel):
82
82
  pydantic.Field(alias="hideLogo"),
83
83
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
84
84
  ] = True
85
- r"""Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co."""
85
+ r"""Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub."""
86
86
 
87
87
  margin: Annotated[
88
88
  Optional[float],
@@ -9,10 +9,10 @@ from dub.models.components import (
9
9
  saleevent as components_saleevent,
10
10
  )
11
11
  from dub.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
12
- from dub.utils import FieldMetadata, QueryParamMetadata
12
+ from dub.utils import FieldMetadata, QueryParamMetadata, get_discriminator
13
13
  from enum import Enum
14
14
  import pydantic
15
- from pydantic import model_serializer
15
+ from pydantic import Discriminator, Tag, model_serializer
16
16
  from typing import List, Optional, Union
17
17
  from typing_extensions import (
18
18
  Annotated,
@@ -491,20 +491,18 @@ class ListEventsRequest(BaseModel):
491
491
  ListEventsResponseBodyTypedDict = TypeAliasType(
492
492
  "ListEventsResponseBodyTypedDict",
493
493
  Union[
494
- List[components_clickevent.ClickEventTypedDict],
495
- List[components_leadevent.LeadEventTypedDict],
496
- List[components_saleevent.SaleEventTypedDict],
494
+ components_clickevent.ClickEventTypedDict,
495
+ components_leadevent.LeadEventTypedDict,
496
+ components_saleevent.SaleEventTypedDict,
497
497
  ],
498
498
  )
499
- r"""A list of events"""
500
499
 
501
500
 
502
- ListEventsResponseBody = TypeAliasType(
503
- "ListEventsResponseBody",
501
+ ListEventsResponseBody = Annotated[
504
502
  Union[
505
- List[components_clickevent.ClickEvent],
506
- List[components_leadevent.LeadEvent],
507
- List[components_saleevent.SaleEvent],
503
+ Annotated[components_clickevent.ClickEvent, Tag("click")],
504
+ Annotated[components_leadevent.LeadEvent, Tag("lead")],
505
+ Annotated[components_saleevent.SaleEvent, Tag("sale")],
508
506
  ],
509
- )
510
- r"""A list of events"""
507
+ Discriminator(lambda m: get_discriminator(m, "event", "event")),
508
+ ]
@@ -87,7 +87,6 @@ class UpdateLinkRequestBodyTypedDict(TypedDict):
87
87
  description: NotRequired[Nullable[str]]
88
88
  r"""The custom link preview description (og:description). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
89
89
  image: NotRequired[Nullable[str]]
90
- r"""The custom link preview image (og:image). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
91
90
  video: NotRequired[Nullable[str]]
92
91
  r"""The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
93
92
  rewrite: NotRequired[bool]
@@ -222,7 +221,6 @@ class UpdateLinkRequestBody(BaseModel):
222
221
  r"""The custom link preview description (og:description). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
223
222
 
224
223
  image: OptionalNullable[str] = UNSET
225
- r"""The custom link preview image (og:image). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
226
224
 
227
225
  video: OptionalNullable[str] = UNSET
228
226
  r"""The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og"""
@@ -23,9 +23,9 @@ class Partners(BaseSDK):
23
23
  timeout_ms: Optional[int] = None,
24
24
  http_headers: Optional[Mapping[str, str]] = None,
25
25
  ) -> Optional[operations.CreatePartnerResponseBody]:
26
- r"""Create a new partner
26
+ r"""Create a partner
27
27
 
28
- Create a new partner for a program. If partner exists, automatically enrolls them.
28
+ Create a partner for a program. If partner exists, automatically enrolls them.
29
29
 
30
30
  :param request: The request object to send.
31
31
  :param retries: Override the default retry configuration for this method
@@ -178,9 +178,9 @@ class Partners(BaseSDK):
178
178
  timeout_ms: Optional[int] = None,
179
179
  http_headers: Optional[Mapping[str, str]] = None,
180
180
  ) -> Optional[operations.CreatePartnerResponseBody]:
181
- r"""Create a new partner
181
+ r"""Create a partner
182
182
 
183
- Create a new partner for a program. If partner exists, automatically enrolls them.
183
+ Create a partner for a program. If partner exists, automatically enrolls them.
184
184
 
185
185
  :param request: The request object to send.
186
186
  :param retries: Override the default retry configuration for this method
@@ -335,7 +335,7 @@ class Partners(BaseSDK):
335
335
  ) -> Optional[components.LinkSchema]:
336
336
  r"""Create a link for a partner
337
337
 
338
- Create a new link for a partner that is enrolled in your program.
338
+ Create a link for a partner that is enrolled in your program.
339
339
 
340
340
  :param request: The request object to send.
341
341
  :param retries: Override the default retry configuration for this method
@@ -488,7 +488,7 @@ class Partners(BaseSDK):
488
488
  ) -> Optional[components.LinkSchema]:
489
489
  r"""Create a link for a partner
490
490
 
491
- Create a new link for a partner that is enrolled in your program.
491
+ Create a link for a partner that is enrolled in your program.
492
492
 
493
493
  :param request: The request object to send.
494
494
  :param retries: Override the default retry configuration for this method
@@ -27,7 +27,7 @@ import weakref
27
27
 
28
28
 
29
29
  class Dub(BaseSDK):
30
- r"""Dub.co API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs."""
30
+ r"""Dub API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs."""
31
31
 
32
32
  links: Links
33
33
  analytics: Analytics
@@ -23,9 +23,9 @@ class Tags(BaseSDK):
23
23
  timeout_ms: Optional[int] = None,
24
24
  http_headers: Optional[Mapping[str, str]] = None,
25
25
  ) -> Optional[components.TagSchema]:
26
- r"""Create a new tag
26
+ r"""Create a tag
27
27
 
28
- Create a new tag for the authenticated workspace.
28
+ Create a tag for the authenticated workspace.
29
29
 
30
30
  :param request: The request object to send.
31
31
  :param retries: Override the default retry configuration for this method
@@ -172,9 +172,9 @@ class Tags(BaseSDK):
172
172
  timeout_ms: Optional[int] = None,
173
173
  http_headers: Optional[Mapping[str, str]] = None,
174
174
  ) -> Optional[components.TagSchema]:
175
- r"""Create a new tag
175
+ r"""Create a tag
176
176
 
177
- Create a new tag for the authenticated workspace.
177
+ Create a tag for the authenticated workspace.
178
178
 
179
179
  :param request: The request object to send.
180
180
  :param retries: Override the default retry configuration for this method
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes