dub 0.34.0__py3-none-any.whl → 0.35.0__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 (93) hide show
  1. dub/_version.py +3 -3
  2. dub/basesdk.py +20 -6
  3. dub/{workspaces.py → bounties.py} +349 -69
  4. dub/models/components/__init__.py +114 -26
  5. dub/models/components/analyticsbrowsers.py +18 -1
  6. dub/models/components/analyticscities.py +18 -1
  7. dub/models/components/analyticscontinents.py +18 -1
  8. dub/models/components/analyticscount.py +18 -1
  9. dub/models/components/analyticscountries.py +20 -1
  10. dub/models/components/analyticsdevices.py +18 -1
  11. dub/models/components/analyticsos.py +18 -1
  12. dub/models/components/analyticsreferers.py +18 -1
  13. dub/models/components/analyticsrefererurls.py +18 -1
  14. dub/models/components/analyticsregions.py +18 -1
  15. dub/models/components/analyticstimeseries.py +18 -1
  16. dub/models/components/analyticstoplinks.py +16 -26
  17. dub/models/components/analyticstopurls.py +18 -1
  18. dub/models/components/analyticstriggers.py +18 -1
  19. dub/models/components/commissioncreatedevent.py +123 -63
  20. dub/models/components/domainschema.py +31 -50
  21. dub/models/components/folderschema.py +18 -19
  22. dub/models/components/leadcreatedevent.py +151 -134
  23. dub/models/components/linkclickedevent.py +57 -70
  24. dub/models/components/linkschema.py +63 -64
  25. dub/models/components/linkwebhookevent.py +43 -51
  26. dub/models/components/partneranalyticscount.py +18 -1
  27. dub/models/components/partneranalyticstimeseries.py +18 -1
  28. dub/models/components/partneranalyticstoplinks.py +16 -27
  29. dub/models/components/partnerapplicationsubmittedevent.py +42 -75
  30. dub/models/components/partnerenrolledevent.py +477 -83
  31. dub/models/components/salecreatedevent.py +152 -151
  32. dub/models/errors/badrequest.py +18 -1
  33. dub/models/errors/conflict.py +18 -1
  34. dub/models/errors/forbidden.py +18 -1
  35. dub/models/errors/internalservererror.py +18 -1
  36. dub/models/errors/inviteexpired.py +18 -1
  37. dub/models/errors/notfound.py +18 -1
  38. dub/models/errors/ratelimitexceeded.py +18 -1
  39. dub/models/errors/unauthorized.py +18 -1
  40. dub/models/errors/unprocessableentity.py +18 -1
  41. dub/models/operations/__init__.py +323 -19
  42. dub/models/operations/approvebountysubmission.py +211 -0
  43. dub/models/operations/banpartner.py +14 -19
  44. dub/models/operations/bulkcreatelinks.py +86 -87
  45. dub/models/operations/bulkupdatelinks.py +97 -82
  46. dub/models/operations/checkdomainstatus.py +1 -17
  47. dub/models/operations/createdomain.py +33 -34
  48. dub/models/operations/createfolder.py +18 -19
  49. dub/models/operations/createlink.py +86 -87
  50. dub/models/operations/createpartner.py +560 -168
  51. dub/models/operations/createpartnerlink.py +74 -85
  52. dub/models/operations/createreferralsembedtoken.py +99 -87
  53. dub/models/operations/createtag.py +18 -1
  54. dub/models/operations/deactivatepartner.py +65 -0
  55. dub/models/operations/getcustomer.py +106 -105
  56. dub/models/operations/getcustomers.py +123 -105
  57. dub/models/operations/getlinkinfo.py +18 -1
  58. dub/models/operations/getlinks.py +36 -1
  59. dub/models/operations/getlinkscount.py +32 -1
  60. dub/models/operations/getqrcode.py +29 -1
  61. dub/models/operations/gettags.py +20 -1
  62. dub/models/operations/listbountysubmissions.py +249 -0
  63. dub/models/operations/listcommissions.py +129 -64
  64. dub/models/operations/listdomains.py +18 -1
  65. dub/models/operations/listevents.py +414 -389
  66. dub/models/operations/listfolders.py +18 -1
  67. dub/models/operations/listpartners.py +510 -84
  68. dub/models/operations/registerdomain.py +1 -17
  69. dub/models/operations/rejectbountysubmission.py +219 -0
  70. dub/models/operations/retrieveanalytics.py +65 -66
  71. dub/models/operations/retrievelinks.py +30 -19
  72. dub/models/operations/retrievepartneranalytics.py +25 -28
  73. dub/models/operations/tracklead.py +38 -83
  74. dub/models/operations/tracksale.py +52 -95
  75. dub/models/operations/updatecommission.py +126 -64
  76. dub/models/operations/updatecustomer.py +122 -131
  77. dub/models/operations/updatedomain.py +50 -35
  78. dub/models/operations/updatefolder.py +34 -19
  79. dub/models/operations/updatelink.py +101 -86
  80. dub/models/operations/updatetag.py +34 -1
  81. dub/models/operations/upsertlink.py +86 -87
  82. dub/models/operations/upsertpartnerlink.py +77 -90
  83. dub/partners.py +288 -0
  84. dub/sdk.py +3 -3
  85. dub/utils/__init__.py +10 -1
  86. {dub-0.34.0.dist-info → dub-0.35.0.dist-info}/METADATA +10 -8
  87. dub-0.35.0.dist-info/RECORD +143 -0
  88. dub/models/components/workspaceschema.py +0 -328
  89. dub/models/operations/getworkspace.py +0 -21
  90. dub/models/operations/updateworkspace.py +0 -78
  91. dub-0.34.0.dist-info/RECORD +0 -142
  92. {dub-0.34.0.dist-info → dub-0.35.0.dist-info}/WHEEL +0 -0
  93. {dub-0.34.0.dist-info → dub-0.35.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,143 @@
1
+ dub/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
+ dub/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
3
+ dub/_hooks/registration.py,sha256=tT-1Cjp5ax1DL-84HBNWPy4wAwgP-0aI4-asLfnkIlw,625
4
+ dub/_hooks/sdkhooks.py,sha256=2rLEjSz1xFGWabNs1voFn0lXSCqkS38bdKVFdnBJufE,2553
5
+ dub/_hooks/types.py,sha256=5vcNbFBNpCxqI7ZebiBtut7T_Gz2i36L5MjTqGvxV7Y,3035
6
+ dub/_version.py,sha256=-_xJEVpSg59BfoQe632SMUljbjBVsVE9r4WOjpdwps4,450
7
+ dub/analytics.py,sha256=kGVnAwy8_umekoDNb-1j9b0YH9VLW2SI-6fD7j2oEXc,12378
8
+ dub/basesdk.py,sha256=rshahN8_FLZ_nuJx-hV7jY3ZUfHspUBx2_Rm9hQ5fLk,12624
9
+ dub/bounties.py,sha256=VKS2qsRZelAmC8qdgQVS1t6dDeTPvrNGmfKk38pAV4Q,37179
10
+ dub/commissions.py,sha256=RbPTHbLCGdXPk9_HgLohtIgsNSIgF8O6IG2Pg7d1xVI,24418
11
+ dub/customers.py,sha256=TOe2QSn7FsQJwh749EsarMO0__aEPwXrHxSkfaDLKSM,47196
12
+ dub/domains.py,sha256=kPjJtov4Hwuz63eX8IdLb0K87S8QoepsdapbUq8FpBA,74116
13
+ dub/embed_tokens.py,sha256=IzoHuFt41ozjIIj4r5W_fSZ1JNoiRK0y3lxRK4P9VSE,13060
14
+ dub/events.py,sha256=olT8XarbAFjng4U4H-03XBHQWjcLKGuxu_F__ne_vtQ,12025
15
+ dub/folders.py,sha256=Z2F98lTYldER9HDJkrEKbgHQv8M3t26XFWdF-A_SxLc,47686
16
+ dub/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
17
+ dub/links.py,sha256=XaP0xU4_4wFzqWsKjdhro8JGcMrzfDVjJ45682pc3Gw,122004
18
+ dub/models/__init__.py,sha256=wIW9sbvSKlrGyoPY4mXvHqw-_Inpl6zqpN6U6j-w6SU,83
19
+ dub/models/components/__init__.py,sha256=AV-uBtLmh3eJwNrbbtW20T98nZzv5ZvE--PeyX7uET8,23236
20
+ dub/models/components/analyticsbrowsers.py,sha256=kNW7jhsQ4zNoR7ZGJjo76BFLtKT7key37PW1eplvMhk,1697
21
+ dub/models/components/analyticscities.py,sha256=59YI3TpdpxEivfKT3jOE44MPLSq4weX8wpvKo_xBOfM,2191
22
+ dub/models/components/analyticscontinents.py,sha256=_IVB_bldwS7xcru4_Uylr1r-sIvVrxYgaSy0o52SIUk,2141
23
+ dub/models/components/analyticscount.py,sha256=dYVUbtGoXvMBC0rXEeaRUNd0_B-s3AJKBseWx-3jMiA,1478
24
+ dub/models/components/analyticscountries.py,sha256=sJxT7tt3p93IGyuQ1ER_iVjKJDr7nhDdEO6sRxx-JVc,2121
25
+ dub/models/components/analyticsdevices.py,sha256=rCDjvho27rGntlEUy51FRrrZM29T3SMM14ihy3NHPAE,1683
26
+ dub/models/components/analyticsos.py,sha256=tdtN4srnkfQy1YVzOqvK4BpVJUhIxXF9gkGD-4c07aQ,1625
27
+ dub/models/components/analyticsreferers.py,sha256=OTCViswU6Wg1CW2hQfgZqNGQB7rZQ62bKWf2Z5FxuOc,1771
28
+ dub/models/components/analyticsrefererurls.py,sha256=OFrvQ6lEb5de4mhrpFWCzCI5cmeonfAoyzS_d8BqrWY,1936
29
+ dub/models/components/analyticsregions.py,sha256=kxoNSHxt4l3Yh3YUldQ0It2r7HgwLJjmehtEW1fw3KU,2170
30
+ dub/models/components/analyticstimeseries.py,sha256=ZxdwmZaxOADys792I2sjl19vt2E5ZQJAb06TL0NvYoI,1711
31
+ dub/models/components/analyticstoplinks.py,sha256=HsDxtS4FaO64XXlJgaLX2ndnbu9gy4mcNxOhNqzAj90,3471
32
+ dub/models/components/analyticstopurls.py,sha256=jvmxjbwJPjzxkDFeUQMm9RlvLZ2osv3uZkQuvVMC9d8,1715
33
+ dub/models/components/analyticstriggers.py,sha256=ULO-4JY0YPe_oktbmpKT4JaJkacqAokyXOyKQp0FE0Y,2009
34
+ dub/models/components/commissioncreatedevent.py,sha256=5eNztlgB_LooqGRn7Q-FeburE5_FI1ZvHld_PqpjPX4,12078
35
+ dub/models/components/domainschema.py,sha256=FGa5MgnLXISJMbHu6eLmDHCSKrS4m8MpTFO_F4uLFeg,6114
36
+ dub/models/components/folderschema.py,sha256=kSsTBxJEXP0IhKhnex23Q1XfaavfPkz3TeR3za52R2o,2584
37
+ dub/models/components/leadcreatedevent.py,sha256=Rd5qV9oVt04f-KweAN3RuSFLJeQE6m9TIe-mOxBwv5Y,23181
38
+ dub/models/components/linkclickedevent.py,sha256=j1p0zTIZwjiDNHEXdbr52pwbaSuxpPOBbgkGmgw-GV4,14623
39
+ dub/models/components/linkerrorschema.py,sha256=gIZYPls99I3JN64El09qGRmN9_cS1c7FhF2YAT2LMOI,1061
40
+ dub/models/components/linkschema.py,sha256=L3COFTPOUUGjsJMfcanjulIjbVq11qKP7MlLvHuHDP4,15721
41
+ dub/models/components/linktagschema.py,sha256=WN32a7KiIDn5lo2ntTI5slgnUkPjdGVQ1l5pLY7Xxo0,806
42
+ dub/models/components/linktagschemaoutput.py,sha256=GBGnG40dTLHTyWLc7TorBu540d9RUZSUgx-toUjfNPc,779
43
+ dub/models/components/linkwebhookevent.py,sha256=RZV4W15WmoX5G04sZ9vZ7VQ1kPKKLuDdFBJTKRsN4v4,13256
44
+ dub/models/components/partneranalyticscount.py,sha256=Z6ufKCC_elQFFEaSb64wX216aTGbgmu_Z0eh9575Dxg,1572
45
+ dub/models/components/partneranalyticstimeseries.py,sha256=kieLsvHLAy4povTBSXhmBxbEO6nz3g8lRpLVTjPhku0,1805
46
+ dub/models/components/partneranalyticstoplinks.py,sha256=Jg7vwJDj5jF20N33WuK9yKXFDP-ApSwyIf_ivGPVxwQ,3565
47
+ dub/models/components/partnerapplicationsubmittedevent.py,sha256=CUSzBFx3GqWA0oeQvJRjksO-SvmC3mx8BtSAdPWxpiQ,7292
48
+ dub/models/components/partnerenrolledevent.py,sha256=GUxaeINDHtWnnFAtgDJHjujGmQAJ0ZuIS-Q6UEMXwkY,25363
49
+ dub/models/components/salecreatedevent.py,sha256=MUAIBg9AZYgPFy0wCXRS4JDGThiAcc8zCs7Jq8Idjgw,24025
50
+ dub/models/components/security.py,sha256=be_cng1n5ULto_xGGPBKH1ZE5LrtmBTg6kX2uPJqJOw,599
51
+ dub/models/components/webhookevent.py,sha256=2yVpFqxevDgyJi5MLBynfo_B3E8FZhp_FsMHmJpmyrU,1496
52
+ dub/models/errors/__init__.py,sha256=puGRbwSI00uEfD5rs_zvN4GtHhVFXRqrkK60R_nSI24,6462
53
+ dub/models/errors/badrequest.py,sha256=b-5wRQHo_HD8VJxqEcu_UFNkakXeH16A9jdKHF9ogPo,2252
54
+ dub/models/errors/conflict.py,sha256=bs1RXjTbemP6RH9p-JGFtHAnOQ3uKaQxs5wUMx4IHxo,2168
55
+ dub/models/errors/duberror.py,sha256=w0vFGmvPhytkwtItd4V-YczFZmVUl5DPX7t2sV-ri10,952
56
+ dub/models/errors/forbidden.py,sha256=htzPH26nVtxG39WcpliTP76lZ9zpszXV0rQTgjh3qPU,2308
57
+ dub/models/errors/internalservererror.py,sha256=qDAA4KtCzdU4dNUHoCppj1eQ7HLOuPM_DxXlHH8ITFw,2290
58
+ dub/models/errors/inviteexpired.py,sha256=-p-zvIehG7LC2cQJOEjSq_-rkIEpxIr6qGyqaTeVqi8,2264
59
+ dub/models/errors/no_response_error.py,sha256=DaZukP5ManflzAN-11MtmBitfTIct37sRvfszvfM13o,467
60
+ dub/models/errors/notfound.py,sha256=877HKA9h8FvM4G9RLjfmo5aDXmZYvcmEjcDghKKztBo,2132
61
+ dub/models/errors/ratelimitexceeded.py,sha256=Pej14u9Ctan_ypcW7MtSEn9sjGB6RNEm8YgynKEK9oM,2277
62
+ dub/models/errors/responsevalidationerror.py,sha256=ODuGOuGulVoPYKLAXuKF4HWDZ7uqw8mJcovorUeofTI,746
63
+ dub/models/errors/sdkerror.py,sha256=K1Fk_HkOwYdNxWGY0XTOzCz4o0XeDqwFLNAmXeO2zQg,1279
64
+ dub/models/errors/unauthorized.py,sha256=T5WP3FPCXEHTERhipzMto1_sMm2wrN4YaRl0N5vn6qM,2316
65
+ dub/models/errors/unprocessableentity.py,sha256=tZA8W1xFThohlMdd74EiEEqWYNb2KdiJBzhGr96NLEw,2299
66
+ dub/models/operations/__init__.py,sha256=I36UXf1u5tU1CwGPYvNr4fem6PAeSjsW1R9ql9u4Bbo,58864
67
+ dub/models/operations/approvebountysubmission.py,sha256=zveO1Z0rMRi-snBMkb-6t3BI2MR_5s5-9A9zi7VdEu0,6739
68
+ dub/models/operations/banpartner.py,sha256=L0fB359j4M7--RHTP1lWcsO6Iq-vwxbBsYmWRC4ScZ8,2592
69
+ dub/models/operations/bulkcreatelinks.py,sha256=ijTkW-0a8tW-59jMBpkTFCNyzBuF6pKHsMs-6bGsjpc,18069
70
+ dub/models/operations/bulkdeletelinks.py,sha256=u_hEFC9TZ1UnGGgLhQ-Mf3HNDO98Ur49MtdBnNVIRsE,1151
71
+ dub/models/operations/bulkupdatelinks.py,sha256=HvcFo6Mo9EER8-Xp91CEeJ80NOPk9pDF-vkgfkKsDFM,16513
72
+ dub/models/operations/checkdomainstatus.py,sha256=kTHIRfYuA7ZQ50aBY9sQc-OjmELn8qO7M7aeAjP_5o8,1957
73
+ dub/models/operations/createdomain.py,sha256=BQmoUSO2fDm8cPAktDtNVxfV5I7NX78zg804qQInDiY,3887
74
+ dub/models/operations/createfolder.py,sha256=XKS6JFEOxTJmmQiHOnsf3zYDDqwpTiAgWRQ1NcWedNg,2104
75
+ dub/models/operations/createlink.py,sha256=s-9zcnNdzdXl07OfF0yXPS0rTTpFzNgKj6yhakqseUk,17407
76
+ dub/models/operations/createpartner.py,sha256=foDiFUDW0zzWWPWHtq46vP06XKbQKQ_DBpNga47GbHY,40380
77
+ dub/models/operations/createpartnerlink.py,sha256=g5bUYVd-qNdtPAoXs498PL-pbK1AyZoStXei6LQ3w2k,14329
78
+ dub/models/operations/createreferralsembedtoken.py,sha256=Mjsuz4PM0h5fzjrBsGVZHpFHbjZwocpe23DDXoTjw-Y,17236
79
+ dub/models/operations/createtag.py,sha256=023-KPbwg80gXvciqT8-eoPWGMCLKmHY_momdhf50OM,1986
80
+ dub/models/operations/deactivatepartner.py,sha256=uWFKjg8Yj4Ma4WpEKnnYAGRLggpeJ274TWYqMVNUlfQ,2360
81
+ dub/models/operations/deletecustomer.py,sha256=sq1efo3bhCzQnVacAo9tg7JoHs68IbeheNp1uAlD8AU,1529
82
+ dub/models/operations/deletedomain.py,sha256=VtuDxUCmAcEmNn1vmrdlSKmASHSFwoho-CoJeGtyBBI,769
83
+ dub/models/operations/deletefolder.py,sha256=lpetbObqu9jd-XLl-unlvmSTuztW8Ecn-dhGNxN60Yc,815
84
+ dub/models/operations/deletelink.py,sha256=o3Uia06QBrKb--6OkShjKkcqaK0dpt_Jw3AClUqTQq4,1062
85
+ dub/models/operations/deletetag.py,sha256=UJz-O6oTuvOdzuUXUQktw699hEv0cs1eJW9C3wQBQBc,785
86
+ dub/models/operations/getcustomer.py,sha256=lJEdGD8t0o3g4JvHfTxf1IDhsSBl5vYmwxLwQpZQmLI,11885
87
+ dub/models/operations/getcustomers.py,sha256=JwIowNl53QnbEHq43a35xSTH1Rou24EH-Dhgr5e2wsc,16097
88
+ dub/models/operations/getlinkinfo.py,sha256=0NIqhk2IvNL5n6NYG_pLwyJMun_yqbCXSvKlwnUsu60,1876
89
+ dub/models/operations/getlinks.py,sha256=kIObALvCgdcx3ozSAJWir9-B49mFGgy9Qg06sFsQyfw,8398
90
+ dub/models/operations/getlinkscount.py,sha256=rIPLLWpji1VHt1CtfZw1SgnRi8hVH69JtO_kt4qM8hA,6673
91
+ dub/models/operations/getqrcode.py,sha256=2fnpvq2vYXgw3A63yfgOCp5q9gpnOCYSUgdlbJgbzP4,4583
92
+ dub/models/operations/gettags.py,sha256=L3AhYqfSUFjuP6V6NK2ahtiy7cnBK6ftVriaWTpB1Wk,3229
93
+ dub/models/operations/listbountysubmissions.py,sha256=5PBLWZVNRspJj6Gv8XcV1tQ59u9DI5wJz74zx-TY1Mk,7813
94
+ dub/models/operations/listcommissions.py,sha256=SXMg_irXbieJVhm3HytfRrXYAmJAAjw0p0bUwtu-KbY,17246
95
+ dub/models/operations/listdomains.py,sha256=FTrcT-V_dj42MVmWkFM_dTu69zaDUaXoBZ9IRQ1xmVI,2462
96
+ dub/models/operations/listevents.py,sha256=11bVs_3W_RUAUQQd2VNksKLsGXamxrQj8TMmq9nclas,90438
97
+ dub/models/operations/listfolders.py,sha256=xu2nVcDIMPWxCI9zEeOHLWnLNMA1dxXIAJESXkGT1_4,1722
98
+ dub/models/operations/listpartners.py,sha256=9PQ1iRBzQGb-mFoc6Eq_qPWqqFXv7rbGb0xLxqKtnFk,31184
99
+ dub/models/operations/registerdomain.py,sha256=SSKZzTpTwd_C-1ZLDwQ7TxQbVR0ZtIJChd1snA6jgNU,1483
100
+ dub/models/operations/rejectbountysubmission.py,sha256=h6K-kVs4b7ZP9Fkmn1acJvaJPXqLQXxztwZeZj_XqIw,6777
101
+ dub/models/operations/retrieveanalytics.py,sha256=eRd217KEDXBsWYzYLQTf604iODixX0VCaAfTZtjfK4o,21425
102
+ dub/models/operations/retrievelinks.py,sha256=2tSmHjWu6WStksyGZGbCPHdo1ohhvBdFiofoIkmiptY,5003
103
+ dub/models/operations/retrievepartneranalytics.py,sha256=JzErOy_nM2Qw5tdHRd52a4ZP2HDpk42FXXWUtAwIEw0,6697
104
+ dub/models/operations/tracklead.py,sha256=l03ptP8u74O77VVk9XOW0Xd1nIFHlrz3UEYJRDft3AQ,10274
105
+ dub/models/operations/tracksale.py,sha256=BUI1vt7ARawP1ApgS-xCXYgqyeGxVDUlJyUvEc-1Udc,9576
106
+ dub/models/operations/updatecommission.py,sha256=e4XZ0Loe8Aj_-Vf6mMk2Q6jUDv1ciVjjX4AtaIfyL2U,13625
107
+ dub/models/operations/updatecustomer.py,sha256=5YH9uQ1cGowAn857J0GoDrNABcyZ5vLPqBQrtvvMqzM,15382
108
+ dub/models/operations/updatedomain.py,sha256=D2y-O-j7nuAyubdwT1qXRBzPg8y70H7KHXxSNQbrGgk,4954
109
+ dub/models/operations/updatefolder.py,sha256=ZWVXYZAfGdIBbY86XT9UDgPoeYTDzybLrEEAim1eFGw,3245
110
+ dub/models/operations/updatelink.py,sha256=X6Kqg0DIXlbJzXvA0HaqoXZeQNz8dKbg-EBFQQH8TKg,17352
111
+ dub/models/operations/updatetag.py,sha256=fp_oBrTT5IO0EnU9PNj7rsMKAOEk8LFxQ9Z6KCivSTY,3034
112
+ dub/models/operations/upsertlink.py,sha256=t0OA4AoJWiBvikRNZ0qVhzsX9ht9Fazv2cuhqzMSRxQ,17530
113
+ dub/models/operations/upsertpartnerlink.py,sha256=dbivM3mIbIqaT0vR3dOo-9Tsiy0-UKwk-qI6ldgg8p4,14134
114
+ dub/partners.py,sha256=j2ggV_7Y8WdnCYmQ6XpkNy0vqx3jnG8c0lE0oExaLLg,98267
115
+ dub/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
116
+ dub/qr_codes.py,sha256=js4MM0s37vYZyrPuf9mGUoCWfk-vmS5SGOF0Tykv1wc,11628
117
+ dub/sdk.py,sha256=sTSXldmpfZ8aLYCSqjz30Ucr-zr_IyVn29W6YPq7e4c,8113
118
+ dub/sdkconfiguration.py,sha256=2aIgzM94TIYQe5zkQmHhDsdlxJdV6cfhWX0pspYMHow,1605
119
+ dub/tags.py,sha256=I_siAFeFoPjVPPFOuyzuAINO-8lSMQdbnb_cV9z-SyM,47367
120
+ dub/track.py,sha256=kRCww0JSL8kJC0YYXEtTj4GRk5tX5bIaG9u3ebm4OCI,24462
121
+ dub/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
122
+ dub/types/basemodel.py,sha256=MULDVywSVxR0lo8h5wMnXnkBFXLK5DXmBKD1eXAVKgE,2879
123
+ dub/utils/__init__.py,sha256=CKGfcLeSDY7TDVtguMGFobOS6iR5f5Y8_NH8bx9k5Fs,5931
124
+ dub/utils/annotations.py,sha256=FvfvVTUj8TUclm4HbGgY5yi2Ap7EzGmu2UPFU4FwC1w,2755
125
+ dub/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
126
+ dub/utils/enums.py,sha256=wAgjjw7USk6IRpN2UJE5Sl8rfmEFiRwyrwMhhznnDIc,5147
127
+ dub/utils/eventstreaming.py,sha256=SgFqMcUOYKlrTQ4gAp_dNcKLvDXukeiEMNU3DP8mXk8,6692
128
+ dub/utils/forms.py,sha256=HzltKnYH5-ULoEz8JYfIUcw13I9dMZjw-1lQKNkH5fw,7178
129
+ dub/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
130
+ dub/utils/logger.py,sha256=9nUtlKHo3RFsIVyMw5jq3wEKZMVwHnZMSc6xLp-otC0,520
131
+ dub/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
132
+ dub/utils/queryparams.py,sha256=dxtFQDJ8dlbm_hh_fhdFC1qMWOOHR2MszNycKmME8bQ,6326
133
+ dub/utils/requestbodies.py,sha256=7bi6slrGKAbmfg4BoOUjSVGrbg9NvIFvCKUEgjwyJEw,2108
134
+ dub/utils/retries.py,sha256=stPJEFtmK8gOM6aT0DpEJp9Z39oXX1-8I69jpa2n3Ww,8130
135
+ dub/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYBX0,5516
136
+ dub/utils/serializers.py,sha256=ueUga5yv_08r10eQiaVIk0o726j0TRno8603jUksasA,5585
137
+ dub/utils/unmarshal_json_response.py,sha256=bq-O_sDTisDOcbllFkpH0hAUh0nkOvc-ORF_73pUgr8,875
138
+ dub/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
139
+ dub/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
140
+ dub-0.35.0.dist-info/METADATA,sha256=oGkV6vRsLM-lQMo9W2ULXjfjC_P7Wupeo726dNPm8DA,30777
141
+ dub-0.35.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
142
+ dub-0.35.0.dist-info/licenses/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
143
+ dub-0.35.0.dist-info/RECORD,,
@@ -1,328 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from dub.types import BaseModel, Nullable, OptionalNullable, UNSET_SENTINEL
5
- from enum import Enum
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing import Any, Dict, List, Optional
9
- from typing_extensions import Annotated, NotRequired, TypedDict
10
-
11
-
12
- class Plan(str, Enum):
13
- r"""The plan of the workspace."""
14
-
15
- FREE = "free"
16
- PRO = "pro"
17
- BUSINESS = "business"
18
- BUSINESS_PLUS = "business plus"
19
- BUSINESS_EXTRA = "business extra"
20
- BUSINESS_MAX = "business max"
21
- ADVANCED = "advanced"
22
- ENTERPRISE = "enterprise"
23
-
24
-
25
- class Role(str, Enum):
26
- r"""The role of the authenticated user in the workspace."""
27
-
28
- OWNER = "owner"
29
- MEMBER = "member"
30
-
31
-
32
- class UsersTypedDict(TypedDict):
33
- role: Role
34
- r"""The role of the authenticated user in the workspace."""
35
- default_folder_id: Nullable[str]
36
- r"""The ID of the default folder for the user in the workspace."""
37
-
38
-
39
- class Users(BaseModel):
40
- role: Role
41
- r"""The role of the authenticated user in the workspace."""
42
-
43
- default_folder_id: Annotated[Nullable[str], pydantic.Field(alias="defaultFolderId")]
44
- r"""The ID of the default folder for the user in the workspace."""
45
-
46
- @model_serializer(mode="wrap")
47
- def serialize_model(self, handler):
48
- optional_fields = []
49
- nullable_fields = ["defaultFolderId"]
50
- null_default_fields = []
51
-
52
- serialized = handler(self)
53
-
54
- m = {}
55
-
56
- for n, f in type(self).model_fields.items():
57
- k = f.alias or n
58
- val = serialized.get(k)
59
- serialized.pop(k, None)
60
-
61
- optional_nullable = k in optional_fields and k in nullable_fields
62
- is_set = (
63
- self.__pydantic_fields_set__.intersection({n})
64
- or k in null_default_fields
65
- ) # pylint: disable=no-member
66
-
67
- if val is not None and val != UNSET_SENTINEL:
68
- m[k] = val
69
- elif val != UNSET_SENTINEL and (
70
- not k in optional_fields or (optional_nullable and is_set)
71
- ):
72
- m[k] = val
73
-
74
- return m
75
-
76
-
77
- class DomainsTypedDict(TypedDict):
78
- slug: str
79
- r"""The domain name."""
80
- primary: NotRequired[bool]
81
- r"""Whether the domain is the primary domain for the workspace."""
82
- verified: NotRequired[bool]
83
- r"""Whether the domain is verified."""
84
-
85
-
86
- class Domains(BaseModel):
87
- slug: str
88
- r"""The domain name."""
89
-
90
- primary: Optional[bool] = False
91
- r"""Whether the domain is the primary domain for the workspace."""
92
-
93
- verified: Optional[bool] = False
94
- r"""Whether the domain is verified."""
95
-
96
-
97
- class WorkspaceSchemaTypedDict(TypedDict):
98
- id: str
99
- r"""The unique ID of the workspace."""
100
- name: str
101
- r"""The name of the workspace."""
102
- slug: str
103
- r"""The slug of the workspace."""
104
- invite_code: Nullable[str]
105
- r"""The invite code of the workspace."""
106
- plan: Plan
107
- r"""The plan of the workspace."""
108
- plan_tier: Nullable[float]
109
- r"""The tier of the workspace's plan."""
110
- stripe_id: Nullable[str]
111
- r"""The Stripe ID of the workspace."""
112
- billing_cycle_start: float
113
- r"""The date and time when the billing cycle starts for the workspace."""
114
- payment_failed_at: Nullable[str]
115
- r"""The date and time when the payment failed for the workspace."""
116
- stripe_connect_id: Nullable[str]
117
- r"""The Stripe Connect ID of the workspace."""
118
- total_links: float
119
- r"""The total number of links in the workspace."""
120
- usage: float
121
- r"""The usage of the workspace."""
122
- usage_limit: float
123
- r"""The usage limit of the workspace."""
124
- links_usage: float
125
- r"""The links usage of the workspace."""
126
- links_limit: float
127
- r"""The links limit of the workspace."""
128
- payouts_usage: float
129
- r"""The dollar amount of partner payouts processed in the current billing cycle (in cents)."""
130
- payouts_limit: float
131
- r"""The max dollar amount of partner payouts that can be processed within a billing cycle (in cents)."""
132
- payout_fee: float
133
- r"""The processing fee (in decimals) for partner payouts. For card payments, an additional 0.03 is added to the fee. Learn more: https://d.to/payouts"""
134
- domains_limit: float
135
- r"""The domains limit of the workspace."""
136
- tags_limit: float
137
- r"""The tags limit of the workspace."""
138
- folders_usage: float
139
- r"""The folders usage of the workspace."""
140
- folders_limit: float
141
- r"""The folders limit of the workspace."""
142
- groups_limit: float
143
- r"""The groups limit of the workspace."""
144
- network_invites_limit: float
145
- r"""The weekly network invites limit of the workspace."""
146
- users_limit: float
147
- r"""The users limit of the workspace."""
148
- ai_usage: float
149
- r"""The AI usage of the workspace."""
150
- ai_limit: float
151
- r"""The AI limit of the workspace."""
152
- conversion_enabled: bool
153
- r"""Whether the workspace has conversion tracking enabled automatically for new links (d.to/conversions)."""
154
- dot_link_claimed: bool
155
- r"""Whether the workspace has claimed a free .link domain. (dub.link/free)"""
156
- created_at: str
157
- r"""The date and time when the workspace was created."""
158
- users: List[UsersTypedDict]
159
- r"""The role of the authenticated user in the workspace."""
160
- domains: List[DomainsTypedDict]
161
- r"""The domains of the workspace."""
162
- store: Nullable[Dict[str, Any]]
163
- r"""The miscellaneous key-value store of the workspace."""
164
- allowed_hostnames: Nullable[List[str]]
165
- r"""Specifies hostnames permitted for client-side click tracking."""
166
- sso_email_domain: Nullable[str]
167
- sso_enforced_at: Nullable[str]
168
- logo: NotRequired[Nullable[str]]
169
- r"""The logo of the workspace."""
170
- flags: NotRequired[Dict[str, bool]]
171
- r"""The feature flags of the workspace, indicating which features are enabled."""
172
-
173
-
174
- class WorkspaceSchema(BaseModel):
175
- id: str
176
- r"""The unique ID of the workspace."""
177
-
178
- name: str
179
- r"""The name of the workspace."""
180
-
181
- slug: str
182
- r"""The slug of the workspace."""
183
-
184
- invite_code: Annotated[Nullable[str], pydantic.Field(alias="inviteCode")]
185
- r"""The invite code of the workspace."""
186
-
187
- plan: Plan
188
- r"""The plan of the workspace."""
189
-
190
- plan_tier: Annotated[Nullable[float], pydantic.Field(alias="planTier")]
191
- r"""The tier of the workspace's plan."""
192
-
193
- stripe_id: Annotated[Nullable[str], pydantic.Field(alias="stripeId")]
194
- r"""The Stripe ID of the workspace."""
195
-
196
- billing_cycle_start: Annotated[float, pydantic.Field(alias="billingCycleStart")]
197
- r"""The date and time when the billing cycle starts for the workspace."""
198
-
199
- payment_failed_at: Annotated[Nullable[str], pydantic.Field(alias="paymentFailedAt")]
200
- r"""The date and time when the payment failed for the workspace."""
201
-
202
- stripe_connect_id: Annotated[Nullable[str], pydantic.Field(alias="stripeConnectId")]
203
- r"""The Stripe Connect ID of the workspace."""
204
-
205
- total_links: Annotated[float, pydantic.Field(alias="totalLinks")]
206
- r"""The total number of links in the workspace."""
207
-
208
- usage: float
209
- r"""The usage of the workspace."""
210
-
211
- usage_limit: Annotated[float, pydantic.Field(alias="usageLimit")]
212
- r"""The usage limit of the workspace."""
213
-
214
- links_usage: Annotated[float, pydantic.Field(alias="linksUsage")]
215
- r"""The links usage of the workspace."""
216
-
217
- links_limit: Annotated[float, pydantic.Field(alias="linksLimit")]
218
- r"""The links limit of the workspace."""
219
-
220
- payouts_usage: Annotated[float, pydantic.Field(alias="payoutsUsage")]
221
- r"""The dollar amount of partner payouts processed in the current billing cycle (in cents)."""
222
-
223
- payouts_limit: Annotated[float, pydantic.Field(alias="payoutsLimit")]
224
- r"""The max dollar amount of partner payouts that can be processed within a billing cycle (in cents)."""
225
-
226
- payout_fee: Annotated[float, pydantic.Field(alias="payoutFee")]
227
- r"""The processing fee (in decimals) for partner payouts. For card payments, an additional 0.03 is added to the fee. Learn more: https://d.to/payouts"""
228
-
229
- domains_limit: Annotated[float, pydantic.Field(alias="domainsLimit")]
230
- r"""The domains limit of the workspace."""
231
-
232
- tags_limit: Annotated[float, pydantic.Field(alias="tagsLimit")]
233
- r"""The tags limit of the workspace."""
234
-
235
- folders_usage: Annotated[float, pydantic.Field(alias="foldersUsage")]
236
- r"""The folders usage of the workspace."""
237
-
238
- folders_limit: Annotated[float, pydantic.Field(alias="foldersLimit")]
239
- r"""The folders limit of the workspace."""
240
-
241
- groups_limit: Annotated[float, pydantic.Field(alias="groupsLimit")]
242
- r"""The groups limit of the workspace."""
243
-
244
- network_invites_limit: Annotated[float, pydantic.Field(alias="networkInvitesLimit")]
245
- r"""The weekly network invites limit of the workspace."""
246
-
247
- users_limit: Annotated[float, pydantic.Field(alias="usersLimit")]
248
- r"""The users limit of the workspace."""
249
-
250
- ai_usage: Annotated[float, pydantic.Field(alias="aiUsage")]
251
- r"""The AI usage of the workspace."""
252
-
253
- ai_limit: Annotated[float, pydantic.Field(alias="aiLimit")]
254
- r"""The AI limit of the workspace."""
255
-
256
- conversion_enabled: Annotated[bool, pydantic.Field(alias="conversionEnabled")]
257
- r"""Whether the workspace has conversion tracking enabled automatically for new links (d.to/conversions)."""
258
-
259
- dot_link_claimed: Annotated[bool, pydantic.Field(alias="dotLinkClaimed")]
260
- r"""Whether the workspace has claimed a free .link domain. (dub.link/free)"""
261
-
262
- created_at: Annotated[str, pydantic.Field(alias="createdAt")]
263
- r"""The date and time when the workspace was created."""
264
-
265
- users: List[Users]
266
- r"""The role of the authenticated user in the workspace."""
267
-
268
- domains: List[Domains]
269
- r"""The domains of the workspace."""
270
-
271
- store: Nullable[Dict[str, Any]]
272
- r"""The miscellaneous key-value store of the workspace."""
273
-
274
- allowed_hostnames: Annotated[
275
- Nullable[List[str]], pydantic.Field(alias="allowedHostnames")
276
- ]
277
- r"""Specifies hostnames permitted for client-side click tracking."""
278
-
279
- sso_email_domain: Annotated[Nullable[str], pydantic.Field(alias="ssoEmailDomain")]
280
-
281
- sso_enforced_at: Annotated[Nullable[str], pydantic.Field(alias="ssoEnforcedAt")]
282
-
283
- logo: OptionalNullable[str] = None
284
- r"""The logo of the workspace."""
285
-
286
- flags: Optional[Dict[str, bool]] = None
287
- r"""The feature flags of the workspace, indicating which features are enabled."""
288
-
289
- @model_serializer(mode="wrap")
290
- def serialize_model(self, handler):
291
- optional_fields = ["logo", "flags"]
292
- nullable_fields = [
293
- "logo",
294
- "inviteCode",
295
- "planTier",
296
- "stripeId",
297
- "paymentFailedAt",
298
- "stripeConnectId",
299
- "store",
300
- "allowedHostnames",
301
- "ssoEmailDomain",
302
- "ssoEnforcedAt",
303
- ]
304
- null_default_fields = ["logo"]
305
-
306
- serialized = handler(self)
307
-
308
- m = {}
309
-
310
- for n, f in type(self).model_fields.items():
311
- k = f.alias or n
312
- val = serialized.get(k)
313
- serialized.pop(k, None)
314
-
315
- optional_nullable = k in optional_fields and k in nullable_fields
316
- is_set = (
317
- self.__pydantic_fields_set__.intersection({n})
318
- or k in null_default_fields
319
- ) # pylint: disable=no-member
320
-
321
- if val is not None and val != UNSET_SENTINEL:
322
- m[k] = val
323
- elif val != UNSET_SENTINEL and (
324
- not k in optional_fields or (optional_nullable and is_set)
325
- ):
326
- m[k] = val
327
-
328
- return m
@@ -1,21 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from dub.types import BaseModel
5
- from dub.utils import FieldMetadata, PathParamMetadata
6
- import pydantic
7
- from typing_extensions import Annotated, TypedDict
8
-
9
-
10
- class GetWorkspaceRequestTypedDict(TypedDict):
11
- id_or_slug: str
12
- r"""The ID or slug of the workspace."""
13
-
14
-
15
- class GetWorkspaceRequest(BaseModel):
16
- id_or_slug: Annotated[
17
- str,
18
- pydantic.Field(alias="idOrSlug"),
19
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
20
- ]
21
- r"""The ID or slug of the workspace."""
@@ -1,78 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from dub.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from dub.utils import FieldMetadata, PathParamMetadata, RequestMetadata
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing import Any, Optional
9
- from typing_extensions import Annotated, NotRequired, TypedDict
10
-
11
-
12
- class UpdateWorkspaceRequestBodyTypedDict(TypedDict):
13
- name: NotRequired[str]
14
- slug: NotRequired[str]
15
- logo: NotRequired[Nullable[Any]]
16
- conversion_enabled: NotRequired[bool]
17
-
18
-
19
- class UpdateWorkspaceRequestBody(BaseModel):
20
- name: Optional[str] = None
21
-
22
- slug: Optional[str] = None
23
-
24
- logo: OptionalNullable[Any] = UNSET
25
-
26
- conversion_enabled: Annotated[
27
- Optional[bool], pydantic.Field(alias="conversionEnabled")
28
- ] = None
29
-
30
- @model_serializer(mode="wrap")
31
- def serialize_model(self, handler):
32
- optional_fields = ["name", "slug", "logo", "conversionEnabled"]
33
- nullable_fields = ["logo"]
34
- null_default_fields = []
35
-
36
- serialized = handler(self)
37
-
38
- m = {}
39
-
40
- for n, f in type(self).model_fields.items():
41
- k = f.alias or n
42
- val = serialized.get(k)
43
- serialized.pop(k, None)
44
-
45
- optional_nullable = k in optional_fields and k in nullable_fields
46
- is_set = (
47
- self.__pydantic_fields_set__.intersection({n})
48
- or k in null_default_fields
49
- ) # pylint: disable=no-member
50
-
51
- if val is not None and val != UNSET_SENTINEL:
52
- m[k] = val
53
- elif val != UNSET_SENTINEL and (
54
- not k in optional_fields or (optional_nullable and is_set)
55
- ):
56
- m[k] = val
57
-
58
- return m
59
-
60
-
61
- class UpdateWorkspaceRequestTypedDict(TypedDict):
62
- id_or_slug: str
63
- r"""The ID or slug of the workspace to update."""
64
- request_body: NotRequired[UpdateWorkspaceRequestBodyTypedDict]
65
-
66
-
67
- class UpdateWorkspaceRequest(BaseModel):
68
- id_or_slug: Annotated[
69
- str,
70
- pydantic.Field(alias="idOrSlug"),
71
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
72
- ]
73
- r"""The ID or slug of the workspace to update."""
74
-
75
- request_body: Annotated[
76
- Optional[UpdateWorkspaceRequestBody],
77
- FieldMetadata(request=RequestMetadata(media_type="application/json")),
78
- ] = None