dub 0.32.0__py3-none-any.whl → 0.34.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.
- dub/_version.py +3 -3
- dub/analytics.py +6 -4
- dub/basesdk.py +6 -0
- dub/commissions.py +12 -8
- dub/customers.py +24 -313
- dub/domains.py +34 -26
- dub/embed_tokens.py +6 -4
- dub/events.py +6 -4
- dub/folders.py +24 -20
- dub/links.py +58 -54
- dub/models/components/__init__.py +81 -149
- dub/models/components/analyticstopurls.py +2 -2
- dub/models/components/leadcreatedevent.py +15 -14
- dub/models/components/linkclickedevent.py +19 -18
- dub/models/components/linkerrorschema.py +12 -12
- dub/models/components/linkschema.py +9 -3
- dub/models/components/linktagschema.py +3 -3
- dub/models/components/linktagschemaoutput.py +38 -0
- dub/models/components/linkwebhookevent.py +15 -16
- dub/models/components/partnerapplicationsubmittedevent.py +269 -0
- dub/models/components/partnerenrolledevent.py +68 -8
- dub/models/components/salecreatedevent.py +15 -14
- dub/models/components/webhookevent.py +6 -0
- dub/models/components/workspaceschema.py +6 -0
- dub/models/operations/__init__.py +147 -57
- dub/models/operations/banpartner.py +83 -0
- dub/models/operations/createpartner.py +68 -59
- dub/models/operations/createpartnerlink.py +0 -51
- dub/models/operations/createreferralsembedtoken.py +0 -51
- dub/models/operations/getcustomers.py +18 -0
- dub/models/operations/getlinkinfo.py +0 -2
- dub/models/operations/getlinks.py +2 -2
- dub/models/operations/getlinkscount.py +2 -2
- dub/models/operations/getqrcode.py +1 -1
- dub/models/operations/listcommissions.py +13 -2
- dub/models/operations/listdomains.py +1 -1
- dub/models/operations/listevents.py +2026 -21
- dub/models/operations/listpartners.py +75 -8
- dub/models/operations/retrieveanalytics.py +28 -5
- dub/models/operations/retrievelinks.py +44 -9
- dub/models/operations/retrievepartneranalytics.py +51 -11
- dub/models/operations/tracklead.py +4 -4
- dub/models/operations/updatecommission.py +7 -2
- dub/models/operations/updatecustomer.py +23 -11
- dub/models/operations/updatelink.py +0 -2
- dub/models/operations/updateworkspace.py +3 -3
- dub/models/operations/upsertpartnerlink.py +0 -51
- dub/partners.py +316 -24
- dub/qr_codes.py +4 -2
- dub/tags.py +24 -20
- dub/track.py +12 -16
- dub/types/basemodel.py +41 -3
- dub/utils/__init__.py +0 -3
- dub/utils/enums.py +60 -0
- dub/utils/forms.py +21 -10
- dub/utils/queryparams.py +14 -2
- dub/utils/requestbodies.py +3 -3
- dub/utils/retries.py +69 -5
- dub/utils/serializers.py +0 -20
- dub/utils/unmarshal_json_response.py +15 -1
- dub/workspaces.py +12 -16
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/METADATA +15 -33
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/RECORD +65 -67
- dub/models/components/clickevent.py +0 -556
- dub/models/components/continentcode.py +0 -16
- dub/models/components/leadevent.py +0 -680
- dub/models/components/saleevent.py +0 -779
- dub/models/operations/createcustomer.py +0 -382
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/licenses/LICENSE +0 -0
dub/domains.py
CHANGED
|
@@ -24,7 +24,7 @@ class Domains(BaseSDK):
|
|
|
24
24
|
server_url: Optional[str] = None,
|
|
25
25
|
timeout_ms: Optional[int] = None,
|
|
26
26
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
27
|
-
) ->
|
|
27
|
+
) -> components.DomainSchema:
|
|
28
28
|
r"""Create a domain
|
|
29
29
|
|
|
30
30
|
Create a domain for the authenticated workspace.
|
|
@@ -71,6 +71,7 @@ class Domains(BaseSDK):
|
|
|
71
71
|
"json",
|
|
72
72
|
Optional[operations.CreateDomainRequestBody],
|
|
73
73
|
),
|
|
74
|
+
allow_empty_value=None,
|
|
74
75
|
timeout_ms=timeout_ms,
|
|
75
76
|
)
|
|
76
77
|
|
|
@@ -109,7 +110,7 @@ class Domains(BaseSDK):
|
|
|
109
110
|
|
|
110
111
|
response_data: Any = None
|
|
111
112
|
if utils.match_response(http_res, "201", "application/json"):
|
|
112
|
-
return unmarshal_json_response(
|
|
113
|
+
return unmarshal_json_response(components.DomainSchema, http_res)
|
|
113
114
|
if utils.match_response(http_res, "400", "application/json"):
|
|
114
115
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
115
116
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -165,7 +166,7 @@ class Domains(BaseSDK):
|
|
|
165
166
|
server_url: Optional[str] = None,
|
|
166
167
|
timeout_ms: Optional[int] = None,
|
|
167
168
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
168
|
-
) ->
|
|
169
|
+
) -> components.DomainSchema:
|
|
169
170
|
r"""Create a domain
|
|
170
171
|
|
|
171
172
|
Create a domain for the authenticated workspace.
|
|
@@ -212,6 +213,7 @@ class Domains(BaseSDK):
|
|
|
212
213
|
"json",
|
|
213
214
|
Optional[operations.CreateDomainRequestBody],
|
|
214
215
|
),
|
|
216
|
+
allow_empty_value=None,
|
|
215
217
|
timeout_ms=timeout_ms,
|
|
216
218
|
)
|
|
217
219
|
|
|
@@ -250,7 +252,7 @@ class Domains(BaseSDK):
|
|
|
250
252
|
|
|
251
253
|
response_data: Any = None
|
|
252
254
|
if utils.match_response(http_res, "201", "application/json"):
|
|
253
|
-
return unmarshal_json_response(
|
|
255
|
+
return unmarshal_json_response(components.DomainSchema, http_res)
|
|
254
256
|
if utils.match_response(http_res, "400", "application/json"):
|
|
255
257
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
256
258
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -341,6 +343,7 @@ class Domains(BaseSDK):
|
|
|
341
343
|
accept_header_value="application/json",
|
|
342
344
|
http_headers=http_headers,
|
|
343
345
|
security=self.sdk_configuration.security,
|
|
346
|
+
allow_empty_value=None,
|
|
344
347
|
timeout_ms=timeout_ms,
|
|
345
348
|
)
|
|
346
349
|
|
|
@@ -404,9 +407,7 @@ class Domains(BaseSDK):
|
|
|
404
407
|
response_data: Any = None
|
|
405
408
|
if utils.match_response(http_res, "200", "application/json"):
|
|
406
409
|
return operations.ListDomainsResponse(
|
|
407
|
-
result=unmarshal_json_response(
|
|
408
|
-
Optional[List[components.DomainSchema]], http_res
|
|
409
|
-
),
|
|
410
|
+
result=unmarshal_json_response(List[components.DomainSchema], http_res),
|
|
410
411
|
next=next_func,
|
|
411
412
|
)
|
|
412
413
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -499,6 +500,7 @@ class Domains(BaseSDK):
|
|
|
499
500
|
accept_header_value="application/json",
|
|
500
501
|
http_headers=http_headers,
|
|
501
502
|
security=self.sdk_configuration.security,
|
|
503
|
+
allow_empty_value=None,
|
|
502
504
|
timeout_ms=timeout_ms,
|
|
503
505
|
)
|
|
504
506
|
|
|
@@ -562,9 +564,7 @@ class Domains(BaseSDK):
|
|
|
562
564
|
response_data: Any = None
|
|
563
565
|
if utils.match_response(http_res, "200", "application/json"):
|
|
564
566
|
return operations.ListDomainsResponse(
|
|
565
|
-
result=unmarshal_json_response(
|
|
566
|
-
Optional[List[components.DomainSchema]], http_res
|
|
567
|
-
),
|
|
567
|
+
result=unmarshal_json_response(List[components.DomainSchema], http_res),
|
|
568
568
|
next=next_func,
|
|
569
569
|
)
|
|
570
570
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -623,7 +623,7 @@ class Domains(BaseSDK):
|
|
|
623
623
|
server_url: Optional[str] = None,
|
|
624
624
|
timeout_ms: Optional[int] = None,
|
|
625
625
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
626
|
-
) ->
|
|
626
|
+
) -> components.DomainSchema:
|
|
627
627
|
r"""Update a domain
|
|
628
628
|
|
|
629
629
|
Update a domain for the authenticated workspace.
|
|
@@ -672,6 +672,7 @@ class Domains(BaseSDK):
|
|
|
672
672
|
"json",
|
|
673
673
|
Optional[operations.UpdateDomainRequestBody],
|
|
674
674
|
),
|
|
675
|
+
allow_empty_value=None,
|
|
675
676
|
timeout_ms=timeout_ms,
|
|
676
677
|
)
|
|
677
678
|
|
|
@@ -710,7 +711,7 @@ class Domains(BaseSDK):
|
|
|
710
711
|
|
|
711
712
|
response_data: Any = None
|
|
712
713
|
if utils.match_response(http_res, "200", "application/json"):
|
|
713
|
-
return unmarshal_json_response(
|
|
714
|
+
return unmarshal_json_response(components.DomainSchema, http_res)
|
|
714
715
|
if utils.match_response(http_res, "400", "application/json"):
|
|
715
716
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
716
717
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -767,7 +768,7 @@ class Domains(BaseSDK):
|
|
|
767
768
|
server_url: Optional[str] = None,
|
|
768
769
|
timeout_ms: Optional[int] = None,
|
|
769
770
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
770
|
-
) ->
|
|
771
|
+
) -> components.DomainSchema:
|
|
771
772
|
r"""Update a domain
|
|
772
773
|
|
|
773
774
|
Update a domain for the authenticated workspace.
|
|
@@ -816,6 +817,7 @@ class Domains(BaseSDK):
|
|
|
816
817
|
"json",
|
|
817
818
|
Optional[operations.UpdateDomainRequestBody],
|
|
818
819
|
),
|
|
820
|
+
allow_empty_value=None,
|
|
819
821
|
timeout_ms=timeout_ms,
|
|
820
822
|
)
|
|
821
823
|
|
|
@@ -854,7 +856,7 @@ class Domains(BaseSDK):
|
|
|
854
856
|
|
|
855
857
|
response_data: Any = None
|
|
856
858
|
if utils.match_response(http_res, "200", "application/json"):
|
|
857
|
-
return unmarshal_json_response(
|
|
859
|
+
return unmarshal_json_response(components.DomainSchema, http_res)
|
|
858
860
|
if utils.match_response(http_res, "400", "application/json"):
|
|
859
861
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
860
862
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -905,7 +907,7 @@ class Domains(BaseSDK):
|
|
|
905
907
|
server_url: Optional[str] = None,
|
|
906
908
|
timeout_ms: Optional[int] = None,
|
|
907
909
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
908
|
-
) ->
|
|
910
|
+
) -> operations.DeleteDomainResponseBody:
|
|
909
911
|
r"""Delete a domain
|
|
910
912
|
|
|
911
913
|
Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
|
|
@@ -943,6 +945,7 @@ class Domains(BaseSDK):
|
|
|
943
945
|
accept_header_value="application/json",
|
|
944
946
|
http_headers=http_headers,
|
|
945
947
|
security=self.sdk_configuration.security,
|
|
948
|
+
allow_empty_value=None,
|
|
946
949
|
timeout_ms=timeout_ms,
|
|
947
950
|
)
|
|
948
951
|
|
|
@@ -982,7 +985,7 @@ class Domains(BaseSDK):
|
|
|
982
985
|
response_data: Any = None
|
|
983
986
|
if utils.match_response(http_res, "200", "application/json"):
|
|
984
987
|
return unmarshal_json_response(
|
|
985
|
-
|
|
988
|
+
operations.DeleteDomainResponseBody, http_res
|
|
986
989
|
)
|
|
987
990
|
if utils.match_response(http_res, "400", "application/json"):
|
|
988
991
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -1034,7 +1037,7 @@ class Domains(BaseSDK):
|
|
|
1034
1037
|
server_url: Optional[str] = None,
|
|
1035
1038
|
timeout_ms: Optional[int] = None,
|
|
1036
1039
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1037
|
-
) ->
|
|
1040
|
+
) -> operations.DeleteDomainResponseBody:
|
|
1038
1041
|
r"""Delete a domain
|
|
1039
1042
|
|
|
1040
1043
|
Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
|
|
@@ -1072,6 +1075,7 @@ class Domains(BaseSDK):
|
|
|
1072
1075
|
accept_header_value="application/json",
|
|
1073
1076
|
http_headers=http_headers,
|
|
1074
1077
|
security=self.sdk_configuration.security,
|
|
1078
|
+
allow_empty_value=None,
|
|
1075
1079
|
timeout_ms=timeout_ms,
|
|
1076
1080
|
)
|
|
1077
1081
|
|
|
@@ -1111,7 +1115,7 @@ class Domains(BaseSDK):
|
|
|
1111
1115
|
response_data: Any = None
|
|
1112
1116
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1113
1117
|
return unmarshal_json_response(
|
|
1114
|
-
|
|
1118
|
+
operations.DeleteDomainResponseBody, http_res
|
|
1115
1119
|
)
|
|
1116
1120
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1117
1121
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -1168,7 +1172,7 @@ class Domains(BaseSDK):
|
|
|
1168
1172
|
server_url: Optional[str] = None,
|
|
1169
1173
|
timeout_ms: Optional[int] = None,
|
|
1170
1174
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1171
|
-
) ->
|
|
1175
|
+
) -> operations.RegisterDomainResponseBody:
|
|
1172
1176
|
r"""Register a domain
|
|
1173
1177
|
|
|
1174
1178
|
Register a domain for the authenticated workspace. Only available for Enterprise Plans.
|
|
@@ -1215,6 +1219,7 @@ class Domains(BaseSDK):
|
|
|
1215
1219
|
"json",
|
|
1216
1220
|
Optional[operations.RegisterDomainRequestBody],
|
|
1217
1221
|
),
|
|
1222
|
+
allow_empty_value=None,
|
|
1218
1223
|
timeout_ms=timeout_ms,
|
|
1219
1224
|
)
|
|
1220
1225
|
|
|
@@ -1254,7 +1259,7 @@ class Domains(BaseSDK):
|
|
|
1254
1259
|
response_data: Any = None
|
|
1255
1260
|
if utils.match_response(http_res, "201", "application/json"):
|
|
1256
1261
|
return unmarshal_json_response(
|
|
1257
|
-
|
|
1262
|
+
operations.RegisterDomainResponseBody, http_res
|
|
1258
1263
|
)
|
|
1259
1264
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1260
1265
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -1311,7 +1316,7 @@ class Domains(BaseSDK):
|
|
|
1311
1316
|
server_url: Optional[str] = None,
|
|
1312
1317
|
timeout_ms: Optional[int] = None,
|
|
1313
1318
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1314
|
-
) ->
|
|
1319
|
+
) -> operations.RegisterDomainResponseBody:
|
|
1315
1320
|
r"""Register a domain
|
|
1316
1321
|
|
|
1317
1322
|
Register a domain for the authenticated workspace. Only available for Enterprise Plans.
|
|
@@ -1358,6 +1363,7 @@ class Domains(BaseSDK):
|
|
|
1358
1363
|
"json",
|
|
1359
1364
|
Optional[operations.RegisterDomainRequestBody],
|
|
1360
1365
|
),
|
|
1366
|
+
allow_empty_value=None,
|
|
1361
1367
|
timeout_ms=timeout_ms,
|
|
1362
1368
|
)
|
|
1363
1369
|
|
|
@@ -1397,7 +1403,7 @@ class Domains(BaseSDK):
|
|
|
1397
1403
|
response_data: Any = None
|
|
1398
1404
|
if utils.match_response(http_res, "201", "application/json"):
|
|
1399
1405
|
return unmarshal_json_response(
|
|
1400
|
-
|
|
1406
|
+
operations.RegisterDomainResponseBody, http_res
|
|
1401
1407
|
)
|
|
1402
1408
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1403
1409
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -1452,7 +1458,7 @@ class Domains(BaseSDK):
|
|
|
1452
1458
|
server_url: Optional[str] = None,
|
|
1453
1459
|
timeout_ms: Optional[int] = None,
|
|
1454
1460
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1455
|
-
) ->
|
|
1461
|
+
) -> List[operations.CheckDomainStatusResponseBody]:
|
|
1456
1462
|
r"""Check the availability of one or more domains
|
|
1457
1463
|
|
|
1458
1464
|
Check if a domain name is available for purchase. You can check multiple domains at once.
|
|
@@ -1490,6 +1496,7 @@ class Domains(BaseSDK):
|
|
|
1490
1496
|
accept_header_value="application/json",
|
|
1491
1497
|
http_headers=http_headers,
|
|
1492
1498
|
security=self.sdk_configuration.security,
|
|
1499
|
+
allow_empty_value=None,
|
|
1493
1500
|
timeout_ms=timeout_ms,
|
|
1494
1501
|
)
|
|
1495
1502
|
|
|
@@ -1529,7 +1536,7 @@ class Domains(BaseSDK):
|
|
|
1529
1536
|
response_data: Any = None
|
|
1530
1537
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1531
1538
|
return unmarshal_json_response(
|
|
1532
|
-
|
|
1539
|
+
List[operations.CheckDomainStatusResponseBody], http_res
|
|
1533
1540
|
)
|
|
1534
1541
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1535
1542
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -1584,7 +1591,7 @@ class Domains(BaseSDK):
|
|
|
1584
1591
|
server_url: Optional[str] = None,
|
|
1585
1592
|
timeout_ms: Optional[int] = None,
|
|
1586
1593
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1587
|
-
) ->
|
|
1594
|
+
) -> List[operations.CheckDomainStatusResponseBody]:
|
|
1588
1595
|
r"""Check the availability of one or more domains
|
|
1589
1596
|
|
|
1590
1597
|
Check if a domain name is available for purchase. You can check multiple domains at once.
|
|
@@ -1622,6 +1629,7 @@ class Domains(BaseSDK):
|
|
|
1622
1629
|
accept_header_value="application/json",
|
|
1623
1630
|
http_headers=http_headers,
|
|
1624
1631
|
security=self.sdk_configuration.security,
|
|
1632
|
+
allow_empty_value=None,
|
|
1625
1633
|
timeout_ms=timeout_ms,
|
|
1626
1634
|
)
|
|
1627
1635
|
|
|
@@ -1661,7 +1669,7 @@ class Domains(BaseSDK):
|
|
|
1661
1669
|
response_data: Any = None
|
|
1662
1670
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1663
1671
|
return unmarshal_json_response(
|
|
1664
|
-
|
|
1672
|
+
List[operations.CheckDomainStatusResponseBody], http_res
|
|
1665
1673
|
)
|
|
1666
1674
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1667
1675
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
dub/embed_tokens.py
CHANGED
|
@@ -23,7 +23,7 @@ class EmbedTokens(BaseSDK):
|
|
|
23
23
|
server_url: Optional[str] = None,
|
|
24
24
|
timeout_ms: Optional[int] = None,
|
|
25
25
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
26
|
-
) ->
|
|
26
|
+
) -> operations.CreateReferralsEmbedTokenResponseBody:
|
|
27
27
|
r"""Create a referrals embed token
|
|
28
28
|
|
|
29
29
|
Create a referrals embed token for the given partner/tenant.
|
|
@@ -72,6 +72,7 @@ class EmbedTokens(BaseSDK):
|
|
|
72
72
|
"json",
|
|
73
73
|
Optional[operations.CreateReferralsEmbedTokenRequestBody],
|
|
74
74
|
),
|
|
75
|
+
allow_empty_value=None,
|
|
75
76
|
timeout_ms=timeout_ms,
|
|
76
77
|
)
|
|
77
78
|
|
|
@@ -111,7 +112,7 @@ class EmbedTokens(BaseSDK):
|
|
|
111
112
|
response_data: Any = None
|
|
112
113
|
if utils.match_response(http_res, "201", "application/json"):
|
|
113
114
|
return unmarshal_json_response(
|
|
114
|
-
|
|
115
|
+
operations.CreateReferralsEmbedTokenResponseBody, http_res
|
|
115
116
|
)
|
|
116
117
|
if utils.match_response(http_res, "400", "application/json"):
|
|
117
118
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -168,7 +169,7 @@ class EmbedTokens(BaseSDK):
|
|
|
168
169
|
server_url: Optional[str] = None,
|
|
169
170
|
timeout_ms: Optional[int] = None,
|
|
170
171
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
171
|
-
) ->
|
|
172
|
+
) -> operations.CreateReferralsEmbedTokenResponseBody:
|
|
172
173
|
r"""Create a referrals embed token
|
|
173
174
|
|
|
174
175
|
Create a referrals embed token for the given partner/tenant.
|
|
@@ -217,6 +218,7 @@ class EmbedTokens(BaseSDK):
|
|
|
217
218
|
"json",
|
|
218
219
|
Optional[operations.CreateReferralsEmbedTokenRequestBody],
|
|
219
220
|
),
|
|
221
|
+
allow_empty_value=None,
|
|
220
222
|
timeout_ms=timeout_ms,
|
|
221
223
|
)
|
|
222
224
|
|
|
@@ -256,7 +258,7 @@ class EmbedTokens(BaseSDK):
|
|
|
256
258
|
response_data: Any = None
|
|
257
259
|
if utils.match_response(http_res, "201", "application/json"):
|
|
258
260
|
return unmarshal_json_response(
|
|
259
|
-
|
|
261
|
+
operations.CreateReferralsEmbedTokenResponseBody, http_res
|
|
260
262
|
)
|
|
261
263
|
if utils.match_response(http_res, "400", "application/json"):
|
|
262
264
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
dub/events.py
CHANGED
|
@@ -20,7 +20,7 @@ class Events(BaseSDK):
|
|
|
20
20
|
server_url: Optional[str] = None,
|
|
21
21
|
timeout_ms: Optional[int] = None,
|
|
22
22
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
|
-
) ->
|
|
23
|
+
) -> List[operations.ListEventsResponseBody]:
|
|
24
24
|
r"""Retrieve a list of events
|
|
25
25
|
|
|
26
26
|
Retrieve a paginated list of events for the authenticated workspace.
|
|
@@ -58,6 +58,7 @@ class Events(BaseSDK):
|
|
|
58
58
|
accept_header_value="application/json",
|
|
59
59
|
http_headers=http_headers,
|
|
60
60
|
security=self.sdk_configuration.security,
|
|
61
|
+
allow_empty_value=None,
|
|
61
62
|
timeout_ms=timeout_ms,
|
|
62
63
|
)
|
|
63
64
|
|
|
@@ -97,7 +98,7 @@ class Events(BaseSDK):
|
|
|
97
98
|
response_data: Any = None
|
|
98
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
99
100
|
return unmarshal_json_response(
|
|
100
|
-
|
|
101
|
+
List[operations.ListEventsResponseBody], http_res
|
|
101
102
|
)
|
|
102
103
|
if utils.match_response(http_res, "400", "application/json"):
|
|
103
104
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -151,7 +152,7 @@ class Events(BaseSDK):
|
|
|
151
152
|
server_url: Optional[str] = None,
|
|
152
153
|
timeout_ms: Optional[int] = None,
|
|
153
154
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
154
|
-
) ->
|
|
155
|
+
) -> List[operations.ListEventsResponseBody]:
|
|
155
156
|
r"""Retrieve a list of events
|
|
156
157
|
|
|
157
158
|
Retrieve a paginated list of events for the authenticated workspace.
|
|
@@ -189,6 +190,7 @@ class Events(BaseSDK):
|
|
|
189
190
|
accept_header_value="application/json",
|
|
190
191
|
http_headers=http_headers,
|
|
191
192
|
security=self.sdk_configuration.security,
|
|
193
|
+
allow_empty_value=None,
|
|
192
194
|
timeout_ms=timeout_ms,
|
|
193
195
|
)
|
|
194
196
|
|
|
@@ -228,7 +230,7 @@ class Events(BaseSDK):
|
|
|
228
230
|
response_data: Any = None
|
|
229
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
230
232
|
return unmarshal_json_response(
|
|
231
|
-
|
|
233
|
+
List[operations.ListEventsResponseBody], http_res
|
|
232
234
|
)
|
|
233
235
|
if utils.match_response(http_res, "400", "application/json"):
|
|
234
236
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
dub/folders.py
CHANGED
|
@@ -23,7 +23,7 @@ class Folders(BaseSDK):
|
|
|
23
23
|
server_url: Optional[str] = None,
|
|
24
24
|
timeout_ms: Optional[int] = None,
|
|
25
25
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
26
|
-
) ->
|
|
26
|
+
) -> components.FolderSchema:
|
|
27
27
|
r"""Create a folder
|
|
28
28
|
|
|
29
29
|
Create a folder for the authenticated workspace.
|
|
@@ -70,6 +70,7 @@ class Folders(BaseSDK):
|
|
|
70
70
|
"json",
|
|
71
71
|
Optional[operations.CreateFolderRequestBody],
|
|
72
72
|
),
|
|
73
|
+
allow_empty_value=None,
|
|
73
74
|
timeout_ms=timeout_ms,
|
|
74
75
|
)
|
|
75
76
|
|
|
@@ -108,7 +109,7 @@ class Folders(BaseSDK):
|
|
|
108
109
|
|
|
109
110
|
response_data: Any = None
|
|
110
111
|
if utils.match_response(http_res, "201", "application/json"):
|
|
111
|
-
return unmarshal_json_response(
|
|
112
|
+
return unmarshal_json_response(components.FolderSchema, http_res)
|
|
112
113
|
if utils.match_response(http_res, "400", "application/json"):
|
|
113
114
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
114
115
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -164,7 +165,7 @@ class Folders(BaseSDK):
|
|
|
164
165
|
server_url: Optional[str] = None,
|
|
165
166
|
timeout_ms: Optional[int] = None,
|
|
166
167
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
167
|
-
) ->
|
|
168
|
+
) -> components.FolderSchema:
|
|
168
169
|
r"""Create a folder
|
|
169
170
|
|
|
170
171
|
Create a folder for the authenticated workspace.
|
|
@@ -211,6 +212,7 @@ class Folders(BaseSDK):
|
|
|
211
212
|
"json",
|
|
212
213
|
Optional[operations.CreateFolderRequestBody],
|
|
213
214
|
),
|
|
215
|
+
allow_empty_value=None,
|
|
214
216
|
timeout_ms=timeout_ms,
|
|
215
217
|
)
|
|
216
218
|
|
|
@@ -249,7 +251,7 @@ class Folders(BaseSDK):
|
|
|
249
251
|
|
|
250
252
|
response_data: Any = None
|
|
251
253
|
if utils.match_response(http_res, "201", "application/json"):
|
|
252
|
-
return unmarshal_json_response(
|
|
254
|
+
return unmarshal_json_response(components.FolderSchema, http_res)
|
|
253
255
|
if utils.match_response(http_res, "400", "application/json"):
|
|
254
256
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
255
257
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -302,7 +304,7 @@ class Folders(BaseSDK):
|
|
|
302
304
|
server_url: Optional[str] = None,
|
|
303
305
|
timeout_ms: Optional[int] = None,
|
|
304
306
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
305
|
-
) ->
|
|
307
|
+
) -> List[components.FolderSchema]:
|
|
306
308
|
r"""Retrieve a list of folders
|
|
307
309
|
|
|
308
310
|
Retrieve a list of folders for the authenticated workspace.
|
|
@@ -340,6 +342,7 @@ class Folders(BaseSDK):
|
|
|
340
342
|
accept_header_value="application/json",
|
|
341
343
|
http_headers=http_headers,
|
|
342
344
|
security=self.sdk_configuration.security,
|
|
345
|
+
allow_empty_value=None,
|
|
343
346
|
timeout_ms=timeout_ms,
|
|
344
347
|
)
|
|
345
348
|
|
|
@@ -378,9 +381,7 @@ class Folders(BaseSDK):
|
|
|
378
381
|
|
|
379
382
|
response_data: Any = None
|
|
380
383
|
if utils.match_response(http_res, "200", "application/json"):
|
|
381
|
-
return unmarshal_json_response(
|
|
382
|
-
Optional[List[components.FolderSchema]], http_res
|
|
383
|
-
)
|
|
384
|
+
return unmarshal_json_response(List[components.FolderSchema], http_res)
|
|
384
385
|
if utils.match_response(http_res, "400", "application/json"):
|
|
385
386
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
386
387
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -433,7 +434,7 @@ class Folders(BaseSDK):
|
|
|
433
434
|
server_url: Optional[str] = None,
|
|
434
435
|
timeout_ms: Optional[int] = None,
|
|
435
436
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
436
|
-
) ->
|
|
437
|
+
) -> List[components.FolderSchema]:
|
|
437
438
|
r"""Retrieve a list of folders
|
|
438
439
|
|
|
439
440
|
Retrieve a list of folders for the authenticated workspace.
|
|
@@ -471,6 +472,7 @@ class Folders(BaseSDK):
|
|
|
471
472
|
accept_header_value="application/json",
|
|
472
473
|
http_headers=http_headers,
|
|
473
474
|
security=self.sdk_configuration.security,
|
|
475
|
+
allow_empty_value=None,
|
|
474
476
|
timeout_ms=timeout_ms,
|
|
475
477
|
)
|
|
476
478
|
|
|
@@ -509,9 +511,7 @@ class Folders(BaseSDK):
|
|
|
509
511
|
|
|
510
512
|
response_data: Any = None
|
|
511
513
|
if utils.match_response(http_res, "200", "application/json"):
|
|
512
|
-
return unmarshal_json_response(
|
|
513
|
-
Optional[List[components.FolderSchema]], http_res
|
|
514
|
-
)
|
|
514
|
+
return unmarshal_json_response(List[components.FolderSchema], http_res)
|
|
515
515
|
if utils.match_response(http_res, "400", "application/json"):
|
|
516
516
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
517
517
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -568,7 +568,7 @@ class Folders(BaseSDK):
|
|
|
568
568
|
server_url: Optional[str] = None,
|
|
569
569
|
timeout_ms: Optional[int] = None,
|
|
570
570
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
571
|
-
) ->
|
|
571
|
+
) -> components.FolderSchema:
|
|
572
572
|
r"""Update a folder
|
|
573
573
|
|
|
574
574
|
Update a folder in the workspace.
|
|
@@ -617,6 +617,7 @@ class Folders(BaseSDK):
|
|
|
617
617
|
"json",
|
|
618
618
|
Optional[operations.UpdateFolderRequestBody],
|
|
619
619
|
),
|
|
620
|
+
allow_empty_value=None,
|
|
620
621
|
timeout_ms=timeout_ms,
|
|
621
622
|
)
|
|
622
623
|
|
|
@@ -655,7 +656,7 @@ class Folders(BaseSDK):
|
|
|
655
656
|
|
|
656
657
|
response_data: Any = None
|
|
657
658
|
if utils.match_response(http_res, "200", "application/json"):
|
|
658
|
-
return unmarshal_json_response(
|
|
659
|
+
return unmarshal_json_response(components.FolderSchema, http_res)
|
|
659
660
|
if utils.match_response(http_res, "400", "application/json"):
|
|
660
661
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
661
662
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -712,7 +713,7 @@ class Folders(BaseSDK):
|
|
|
712
713
|
server_url: Optional[str] = None,
|
|
713
714
|
timeout_ms: Optional[int] = None,
|
|
714
715
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
715
|
-
) ->
|
|
716
|
+
) -> components.FolderSchema:
|
|
716
717
|
r"""Update a folder
|
|
717
718
|
|
|
718
719
|
Update a folder in the workspace.
|
|
@@ -761,6 +762,7 @@ class Folders(BaseSDK):
|
|
|
761
762
|
"json",
|
|
762
763
|
Optional[operations.UpdateFolderRequestBody],
|
|
763
764
|
),
|
|
765
|
+
allow_empty_value=None,
|
|
764
766
|
timeout_ms=timeout_ms,
|
|
765
767
|
)
|
|
766
768
|
|
|
@@ -799,7 +801,7 @@ class Folders(BaseSDK):
|
|
|
799
801
|
|
|
800
802
|
response_data: Any = None
|
|
801
803
|
if utils.match_response(http_res, "200", "application/json"):
|
|
802
|
-
return unmarshal_json_response(
|
|
804
|
+
return unmarshal_json_response(components.FolderSchema, http_res)
|
|
803
805
|
if utils.match_response(http_res, "400", "application/json"):
|
|
804
806
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
805
807
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -850,7 +852,7 @@ class Folders(BaseSDK):
|
|
|
850
852
|
server_url: Optional[str] = None,
|
|
851
853
|
timeout_ms: Optional[int] = None,
|
|
852
854
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
853
|
-
) ->
|
|
855
|
+
) -> operations.DeleteFolderResponseBody:
|
|
854
856
|
r"""Delete a folder
|
|
855
857
|
|
|
856
858
|
Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
|
|
@@ -888,6 +890,7 @@ class Folders(BaseSDK):
|
|
|
888
890
|
accept_header_value="application/json",
|
|
889
891
|
http_headers=http_headers,
|
|
890
892
|
security=self.sdk_configuration.security,
|
|
893
|
+
allow_empty_value=None,
|
|
891
894
|
timeout_ms=timeout_ms,
|
|
892
895
|
)
|
|
893
896
|
|
|
@@ -927,7 +930,7 @@ class Folders(BaseSDK):
|
|
|
927
930
|
response_data: Any = None
|
|
928
931
|
if utils.match_response(http_res, "200", "application/json"):
|
|
929
932
|
return unmarshal_json_response(
|
|
930
|
-
|
|
933
|
+
operations.DeleteFolderResponseBody, http_res
|
|
931
934
|
)
|
|
932
935
|
if utils.match_response(http_res, "400", "application/json"):
|
|
933
936
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -979,7 +982,7 @@ class Folders(BaseSDK):
|
|
|
979
982
|
server_url: Optional[str] = None,
|
|
980
983
|
timeout_ms: Optional[int] = None,
|
|
981
984
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
982
|
-
) ->
|
|
985
|
+
) -> operations.DeleteFolderResponseBody:
|
|
983
986
|
r"""Delete a folder
|
|
984
987
|
|
|
985
988
|
Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
|
|
@@ -1017,6 +1020,7 @@ class Folders(BaseSDK):
|
|
|
1017
1020
|
accept_header_value="application/json",
|
|
1018
1021
|
http_headers=http_headers,
|
|
1019
1022
|
security=self.sdk_configuration.security,
|
|
1023
|
+
allow_empty_value=None,
|
|
1020
1024
|
timeout_ms=timeout_ms,
|
|
1021
1025
|
)
|
|
1022
1026
|
|
|
@@ -1056,7 +1060,7 @@ class Folders(BaseSDK):
|
|
|
1056
1060
|
response_data: Any = None
|
|
1057
1061
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1058
1062
|
return unmarshal_json_response(
|
|
1059
|
-
|
|
1063
|
+
operations.DeleteFolderResponseBody, http_res
|
|
1060
1064
|
)
|
|
1061
1065
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1062
1066
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|