dub 0.31.0__py3-none-any.whl → 0.33.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 -6
- dub/commissions.py +12 -12
- dub/customers.py +24 -321
- dub/domains.py +34 -38
- dub/embed_tokens.py +6 -6
- dub/events.py +6 -6
- dub/folders.py +24 -28
- dub/links.py +58 -74
- dub/models/components/__init__.py +38 -6
- dub/models/components/analyticstopurls.py +2 -2
- dub/models/components/clickevent.py +10 -9
- dub/models/components/commissioncreatedevent.py +5 -2
- dub/models/components/folderschema.py +6 -1
- dub/models/components/leadcreatedevent.py +15 -11
- dub/models/components/leadevent.py +10 -9
- dub/models/components/linkclickedevent.py +10 -9
- dub/models/components/linkschema.py +9 -3
- dub/models/components/{tagschema.py → linktagschema.py} +2 -2
- dub/models/components/linkwebhookevent.py +10 -9
- dub/models/components/partnerapplicationsubmittedevent.py +269 -0
- dub/models/components/partnerenrolledevent.py +93 -29
- dub/models/components/salecreatedevent.py +15 -11
- dub/models/components/saleevent.py +10 -9
- dub/models/components/webhookevent.py +6 -0
- dub/models/components/workspaceschema.py +11 -0
- dub/models/errors/badrequest.py +1 -1
- dub/models/errors/conflict.py +1 -1
- dub/models/errors/duberror.py +1 -1
- dub/models/errors/forbidden.py +1 -1
- dub/models/errors/internalservererror.py +1 -1
- dub/models/errors/inviteexpired.py +1 -1
- dub/models/errors/no_response_error.py +1 -1
- dub/models/errors/notfound.py +1 -1
- dub/models/errors/ratelimitexceeded.py +1 -1
- dub/models/errors/responsevalidationerror.py +1 -1
- dub/models/errors/sdkerror.py +1 -1
- dub/models/errors/unauthorized.py +1 -1
- dub/models/errors/unprocessableentity.py +1 -1
- dub/models/operations/__init__.py +17 -35
- dub/models/operations/banpartner.py +83 -0
- dub/models/operations/bulkcreatelinks.py +2 -2
- dub/models/operations/createfolder.py +8 -3
- dub/models/operations/createlink.py +2 -2
- dub/models/operations/createpartner.py +93 -29
- dub/models/operations/listcommissions.py +13 -2
- dub/models/operations/listevents.py +10 -0
- dub/models/operations/listpartners.py +107 -47
- dub/models/operations/retrieveanalytics.py +16 -1
- dub/models/operations/retrievelinks.py +42 -7
- dub/models/operations/retrievepartneranalytics.py +51 -11
- dub/models/operations/tracklead.py +2 -2
- dub/models/operations/updatecommission.py +7 -2
- dub/models/operations/updatefolder.py +8 -3
- dub/models/operations/updatelink.py +2 -2
- dub/models/operations/upsertlink.py +2 -2
- dub/partners.py +310 -36
- dub/qr_codes.py +4 -4
- dub/tags.py +24 -32
- dub/track.py +12 -20
- dub/utils/retries.py +69 -5
- dub/utils/unmarshal_json_response.py +15 -1
- dub/workspaces.py +12 -20
- {dub-0.31.0.dist-info → dub-0.33.0.dist-info}/METADATA +2 -21
- {dub-0.31.0.dist-info → dub-0.33.0.dist-info}/RECORD +67 -66
- dub/models/operations/createcustomer.py +0 -382
- {dub-0.31.0.dist-info → dub-0.33.0.dist-info}/WHEEL +0 -0
- {dub-0.31.0.dist-info → dub-0.33.0.dist-info}/licenses/LICENSE +0 -0
dub/links.py
CHANGED
|
@@ -24,7 +24,7 @@ class Links(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.LinkSchema:
|
|
28
28
|
r"""Create a link
|
|
29
29
|
|
|
30
30
|
Create a link for the authenticated workspace.
|
|
@@ -83,7 +83,7 @@ class Links(BaseSDK):
|
|
|
83
83
|
config=self.sdk_configuration,
|
|
84
84
|
base_url=base_url or "",
|
|
85
85
|
operation_id="createLink",
|
|
86
|
-
oauth2_scopes=
|
|
86
|
+
oauth2_scopes=None,
|
|
87
87
|
security_source=self.sdk_configuration.security,
|
|
88
88
|
),
|
|
89
89
|
request=req,
|
|
@@ -105,7 +105,7 @@ class Links(BaseSDK):
|
|
|
105
105
|
|
|
106
106
|
response_data: Any = None
|
|
107
107
|
if utils.match_response(http_res, "200", "application/json"):
|
|
108
|
-
return unmarshal_json_response(
|
|
108
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
109
109
|
if utils.match_response(http_res, "400", "application/json"):
|
|
110
110
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
111
111
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -161,7 +161,7 @@ class Links(BaseSDK):
|
|
|
161
161
|
server_url: Optional[str] = None,
|
|
162
162
|
timeout_ms: Optional[int] = None,
|
|
163
163
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
164
|
-
) ->
|
|
164
|
+
) -> components.LinkSchema:
|
|
165
165
|
r"""Create a link
|
|
166
166
|
|
|
167
167
|
Create a link for the authenticated workspace.
|
|
@@ -220,7 +220,7 @@ class Links(BaseSDK):
|
|
|
220
220
|
config=self.sdk_configuration,
|
|
221
221
|
base_url=base_url or "",
|
|
222
222
|
operation_id="createLink",
|
|
223
|
-
oauth2_scopes=
|
|
223
|
+
oauth2_scopes=None,
|
|
224
224
|
security_source=self.sdk_configuration.security,
|
|
225
225
|
),
|
|
226
226
|
request=req,
|
|
@@ -242,7 +242,7 @@ class Links(BaseSDK):
|
|
|
242
242
|
|
|
243
243
|
response_data: Any = None
|
|
244
244
|
if utils.match_response(http_res, "200", "application/json"):
|
|
245
|
-
return unmarshal_json_response(
|
|
245
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
246
246
|
if utils.match_response(http_res, "400", "application/json"):
|
|
247
247
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
248
248
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -347,7 +347,7 @@ class Links(BaseSDK):
|
|
|
347
347
|
config=self.sdk_configuration,
|
|
348
348
|
base_url=base_url or "",
|
|
349
349
|
operation_id="getLinks",
|
|
350
|
-
oauth2_scopes=
|
|
350
|
+
oauth2_scopes=None,
|
|
351
351
|
security_source=self.sdk_configuration.security,
|
|
352
352
|
),
|
|
353
353
|
request=req,
|
|
@@ -405,9 +405,7 @@ class Links(BaseSDK):
|
|
|
405
405
|
response_data: Any = None
|
|
406
406
|
if utils.match_response(http_res, "200", "application/json"):
|
|
407
407
|
return operations.GetLinksResponse(
|
|
408
|
-
result=unmarshal_json_response(
|
|
409
|
-
Optional[List[components.LinkSchema]], http_res
|
|
410
|
-
),
|
|
408
|
+
result=unmarshal_json_response(List[components.LinkSchema], http_res),
|
|
411
409
|
next=next_func,
|
|
412
410
|
)
|
|
413
411
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -514,7 +512,7 @@ class Links(BaseSDK):
|
|
|
514
512
|
config=self.sdk_configuration,
|
|
515
513
|
base_url=base_url or "",
|
|
516
514
|
operation_id="getLinks",
|
|
517
|
-
oauth2_scopes=
|
|
515
|
+
oauth2_scopes=None,
|
|
518
516
|
security_source=self.sdk_configuration.security,
|
|
519
517
|
),
|
|
520
518
|
request=req,
|
|
@@ -572,9 +570,7 @@ class Links(BaseSDK):
|
|
|
572
570
|
response_data: Any = None
|
|
573
571
|
if utils.match_response(http_res, "200", "application/json"):
|
|
574
572
|
return operations.GetLinksResponse(
|
|
575
|
-
result=unmarshal_json_response(
|
|
576
|
-
Optional[List[components.LinkSchema]], http_res
|
|
577
|
-
),
|
|
573
|
+
result=unmarshal_json_response(List[components.LinkSchema], http_res),
|
|
578
574
|
next=next_func,
|
|
579
575
|
)
|
|
580
576
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -629,7 +625,7 @@ class Links(BaseSDK):
|
|
|
629
625
|
server_url: Optional[str] = None,
|
|
630
626
|
timeout_ms: Optional[int] = None,
|
|
631
627
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
632
|
-
) ->
|
|
628
|
+
) -> float:
|
|
633
629
|
r"""Retrieve links count
|
|
634
630
|
|
|
635
631
|
Retrieve the number of links for the authenticated workspace.
|
|
@@ -683,7 +679,7 @@ class Links(BaseSDK):
|
|
|
683
679
|
config=self.sdk_configuration,
|
|
684
680
|
base_url=base_url or "",
|
|
685
681
|
operation_id="getLinksCount",
|
|
686
|
-
oauth2_scopes=
|
|
682
|
+
oauth2_scopes=None,
|
|
687
683
|
security_source=self.sdk_configuration.security,
|
|
688
684
|
),
|
|
689
685
|
request=req,
|
|
@@ -705,7 +701,7 @@ class Links(BaseSDK):
|
|
|
705
701
|
|
|
706
702
|
response_data: Any = None
|
|
707
703
|
if utils.match_response(http_res, "200", "application/json"):
|
|
708
|
-
return unmarshal_json_response(
|
|
704
|
+
return unmarshal_json_response(float, http_res)
|
|
709
705
|
if utils.match_response(http_res, "400", "application/json"):
|
|
710
706
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
711
707
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -758,7 +754,7 @@ class Links(BaseSDK):
|
|
|
758
754
|
server_url: Optional[str] = None,
|
|
759
755
|
timeout_ms: Optional[int] = None,
|
|
760
756
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
761
|
-
) ->
|
|
757
|
+
) -> float:
|
|
762
758
|
r"""Retrieve links count
|
|
763
759
|
|
|
764
760
|
Retrieve the number of links for the authenticated workspace.
|
|
@@ -812,7 +808,7 @@ class Links(BaseSDK):
|
|
|
812
808
|
config=self.sdk_configuration,
|
|
813
809
|
base_url=base_url or "",
|
|
814
810
|
operation_id="getLinksCount",
|
|
815
|
-
oauth2_scopes=
|
|
811
|
+
oauth2_scopes=None,
|
|
816
812
|
security_source=self.sdk_configuration.security,
|
|
817
813
|
),
|
|
818
814
|
request=req,
|
|
@@ -834,7 +830,7 @@ class Links(BaseSDK):
|
|
|
834
830
|
|
|
835
831
|
response_data: Any = None
|
|
836
832
|
if utils.match_response(http_res, "200", "application/json"):
|
|
837
|
-
return unmarshal_json_response(
|
|
833
|
+
return unmarshal_json_response(float, http_res)
|
|
838
834
|
if utils.match_response(http_res, "400", "application/json"):
|
|
839
835
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
840
836
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -887,7 +883,7 @@ class Links(BaseSDK):
|
|
|
887
883
|
server_url: Optional[str] = None,
|
|
888
884
|
timeout_ms: Optional[int] = None,
|
|
889
885
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
890
|
-
) ->
|
|
886
|
+
) -> components.LinkSchema:
|
|
891
887
|
r"""Retrieve a link
|
|
892
888
|
|
|
893
889
|
Retrieve the info for a link.
|
|
@@ -941,7 +937,7 @@ class Links(BaseSDK):
|
|
|
941
937
|
config=self.sdk_configuration,
|
|
942
938
|
base_url=base_url or "",
|
|
943
939
|
operation_id="getLinkInfo",
|
|
944
|
-
oauth2_scopes=
|
|
940
|
+
oauth2_scopes=None,
|
|
945
941
|
security_source=self.sdk_configuration.security,
|
|
946
942
|
),
|
|
947
943
|
request=req,
|
|
@@ -963,7 +959,7 @@ class Links(BaseSDK):
|
|
|
963
959
|
|
|
964
960
|
response_data: Any = None
|
|
965
961
|
if utils.match_response(http_res, "200", "application/json"):
|
|
966
|
-
return unmarshal_json_response(
|
|
962
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
967
963
|
if utils.match_response(http_res, "400", "application/json"):
|
|
968
964
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
969
965
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1016,7 +1012,7 @@ class Links(BaseSDK):
|
|
|
1016
1012
|
server_url: Optional[str] = None,
|
|
1017
1013
|
timeout_ms: Optional[int] = None,
|
|
1018
1014
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1019
|
-
) ->
|
|
1015
|
+
) -> components.LinkSchema:
|
|
1020
1016
|
r"""Retrieve a link
|
|
1021
1017
|
|
|
1022
1018
|
Retrieve the info for a link.
|
|
@@ -1070,7 +1066,7 @@ class Links(BaseSDK):
|
|
|
1070
1066
|
config=self.sdk_configuration,
|
|
1071
1067
|
base_url=base_url or "",
|
|
1072
1068
|
operation_id="getLinkInfo",
|
|
1073
|
-
oauth2_scopes=
|
|
1069
|
+
oauth2_scopes=None,
|
|
1074
1070
|
security_source=self.sdk_configuration.security,
|
|
1075
1071
|
),
|
|
1076
1072
|
request=req,
|
|
@@ -1092,7 +1088,7 @@ class Links(BaseSDK):
|
|
|
1092
1088
|
|
|
1093
1089
|
response_data: Any = None
|
|
1094
1090
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1095
|
-
return unmarshal_json_response(
|
|
1091
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1096
1092
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1097
1093
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1098
1094
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1149,7 +1145,7 @@ class Links(BaseSDK):
|
|
|
1149
1145
|
server_url: Optional[str] = None,
|
|
1150
1146
|
timeout_ms: Optional[int] = None,
|
|
1151
1147
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1152
|
-
) ->
|
|
1148
|
+
) -> components.LinkSchema:
|
|
1153
1149
|
r"""Update a link
|
|
1154
1150
|
|
|
1155
1151
|
Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
|
@@ -1214,7 +1210,7 @@ class Links(BaseSDK):
|
|
|
1214
1210
|
config=self.sdk_configuration,
|
|
1215
1211
|
base_url=base_url or "",
|
|
1216
1212
|
operation_id="updateLink",
|
|
1217
|
-
oauth2_scopes=
|
|
1213
|
+
oauth2_scopes=None,
|
|
1218
1214
|
security_source=self.sdk_configuration.security,
|
|
1219
1215
|
),
|
|
1220
1216
|
request=req,
|
|
@@ -1236,7 +1232,7 @@ class Links(BaseSDK):
|
|
|
1236
1232
|
|
|
1237
1233
|
response_data: Any = None
|
|
1238
1234
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1239
|
-
return unmarshal_json_response(
|
|
1235
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1240
1236
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1241
1237
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1242
1238
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1293,7 +1289,7 @@ class Links(BaseSDK):
|
|
|
1293
1289
|
server_url: Optional[str] = None,
|
|
1294
1290
|
timeout_ms: Optional[int] = None,
|
|
1295
1291
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1296
|
-
) ->
|
|
1292
|
+
) -> components.LinkSchema:
|
|
1297
1293
|
r"""Update a link
|
|
1298
1294
|
|
|
1299
1295
|
Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
|
@@ -1358,7 +1354,7 @@ class Links(BaseSDK):
|
|
|
1358
1354
|
config=self.sdk_configuration,
|
|
1359
1355
|
base_url=base_url or "",
|
|
1360
1356
|
operation_id="updateLink",
|
|
1361
|
-
oauth2_scopes=
|
|
1357
|
+
oauth2_scopes=None,
|
|
1362
1358
|
security_source=self.sdk_configuration.security,
|
|
1363
1359
|
),
|
|
1364
1360
|
request=req,
|
|
@@ -1380,7 +1376,7 @@ class Links(BaseSDK):
|
|
|
1380
1376
|
|
|
1381
1377
|
response_data: Any = None
|
|
1382
1378
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1383
|
-
return unmarshal_json_response(
|
|
1379
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1384
1380
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1385
1381
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1386
1382
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1431,7 +1427,7 @@ class Links(BaseSDK):
|
|
|
1431
1427
|
server_url: Optional[str] = None,
|
|
1432
1428
|
timeout_ms: Optional[int] = None,
|
|
1433
1429
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1434
|
-
) ->
|
|
1430
|
+
) -> operations.DeleteLinkResponseBody:
|
|
1435
1431
|
r"""Delete a link
|
|
1436
1432
|
|
|
1437
1433
|
Delete a link for the authenticated workspace.
|
|
@@ -1485,7 +1481,7 @@ class Links(BaseSDK):
|
|
|
1485
1481
|
config=self.sdk_configuration,
|
|
1486
1482
|
base_url=base_url or "",
|
|
1487
1483
|
operation_id="deleteLink",
|
|
1488
|
-
oauth2_scopes=
|
|
1484
|
+
oauth2_scopes=None,
|
|
1489
1485
|
security_source=self.sdk_configuration.security,
|
|
1490
1486
|
),
|
|
1491
1487
|
request=req,
|
|
@@ -1507,9 +1503,7 @@ class Links(BaseSDK):
|
|
|
1507
1503
|
|
|
1508
1504
|
response_data: Any = None
|
|
1509
1505
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1510
|
-
return unmarshal_json_response(
|
|
1511
|
-
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1512
|
-
)
|
|
1506
|
+
return unmarshal_json_response(operations.DeleteLinkResponseBody, http_res)
|
|
1513
1507
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1514
1508
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1515
1509
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1560,7 +1554,7 @@ class Links(BaseSDK):
|
|
|
1560
1554
|
server_url: Optional[str] = None,
|
|
1561
1555
|
timeout_ms: Optional[int] = None,
|
|
1562
1556
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1563
|
-
) ->
|
|
1557
|
+
) -> operations.DeleteLinkResponseBody:
|
|
1564
1558
|
r"""Delete a link
|
|
1565
1559
|
|
|
1566
1560
|
Delete a link for the authenticated workspace.
|
|
@@ -1614,7 +1608,7 @@ class Links(BaseSDK):
|
|
|
1614
1608
|
config=self.sdk_configuration,
|
|
1615
1609
|
base_url=base_url or "",
|
|
1616
1610
|
operation_id="deleteLink",
|
|
1617
|
-
oauth2_scopes=
|
|
1611
|
+
oauth2_scopes=None,
|
|
1618
1612
|
security_source=self.sdk_configuration.security,
|
|
1619
1613
|
),
|
|
1620
1614
|
request=req,
|
|
@@ -1636,9 +1630,7 @@ class Links(BaseSDK):
|
|
|
1636
1630
|
|
|
1637
1631
|
response_data: Any = None
|
|
1638
1632
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1639
|
-
return unmarshal_json_response(
|
|
1640
|
-
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1641
|
-
)
|
|
1633
|
+
return unmarshal_json_response(operations.DeleteLinkResponseBody, http_res)
|
|
1642
1634
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1643
1635
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1644
1636
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1691,7 +1683,7 @@ class Links(BaseSDK):
|
|
|
1691
1683
|
server_url: Optional[str] = None,
|
|
1692
1684
|
timeout_ms: Optional[int] = None,
|
|
1693
1685
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1694
|
-
) ->
|
|
1686
|
+
) -> List[operations.ResponseBody]:
|
|
1695
1687
|
r"""Bulk create links
|
|
1696
1688
|
|
|
1697
1689
|
Bulk create up to 100 links for the authenticated workspace.
|
|
@@ -1748,7 +1740,7 @@ class Links(BaseSDK):
|
|
|
1748
1740
|
config=self.sdk_configuration,
|
|
1749
1741
|
base_url=base_url or "",
|
|
1750
1742
|
operation_id="bulkCreateLinks",
|
|
1751
|
-
oauth2_scopes=
|
|
1743
|
+
oauth2_scopes=None,
|
|
1752
1744
|
security_source=self.sdk_configuration.security,
|
|
1753
1745
|
),
|
|
1754
1746
|
request=req,
|
|
@@ -1770,9 +1762,7 @@ class Links(BaseSDK):
|
|
|
1770
1762
|
|
|
1771
1763
|
response_data: Any = None
|
|
1772
1764
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1773
|
-
return unmarshal_json_response(
|
|
1774
|
-
Optional[List[operations.ResponseBody]], http_res
|
|
1775
|
-
)
|
|
1765
|
+
return unmarshal_json_response(List[operations.ResponseBody], http_res)
|
|
1776
1766
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1777
1767
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1778
1768
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1825,7 +1815,7 @@ class Links(BaseSDK):
|
|
|
1825
1815
|
server_url: Optional[str] = None,
|
|
1826
1816
|
timeout_ms: Optional[int] = None,
|
|
1827
1817
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1828
|
-
) ->
|
|
1818
|
+
) -> List[operations.ResponseBody]:
|
|
1829
1819
|
r"""Bulk create links
|
|
1830
1820
|
|
|
1831
1821
|
Bulk create up to 100 links for the authenticated workspace.
|
|
@@ -1882,7 +1872,7 @@ class Links(BaseSDK):
|
|
|
1882
1872
|
config=self.sdk_configuration,
|
|
1883
1873
|
base_url=base_url or "",
|
|
1884
1874
|
operation_id="bulkCreateLinks",
|
|
1885
|
-
oauth2_scopes=
|
|
1875
|
+
oauth2_scopes=None,
|
|
1886
1876
|
security_source=self.sdk_configuration.security,
|
|
1887
1877
|
),
|
|
1888
1878
|
request=req,
|
|
@@ -1904,9 +1894,7 @@ class Links(BaseSDK):
|
|
|
1904
1894
|
|
|
1905
1895
|
response_data: Any = None
|
|
1906
1896
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1907
|
-
return unmarshal_json_response(
|
|
1908
|
-
Optional[List[operations.ResponseBody]], http_res
|
|
1909
|
-
)
|
|
1897
|
+
return unmarshal_json_response(List[operations.ResponseBody], http_res)
|
|
1910
1898
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1911
1899
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1912
1900
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1962,7 +1950,7 @@ class Links(BaseSDK):
|
|
|
1962
1950
|
server_url: Optional[str] = None,
|
|
1963
1951
|
timeout_ms: Optional[int] = None,
|
|
1964
1952
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1965
|
-
) ->
|
|
1953
|
+
) -> List[components.LinkSchema]:
|
|
1966
1954
|
r"""Bulk update links
|
|
1967
1955
|
|
|
1968
1956
|
Bulk update up to 100 links with the same data for the authenticated workspace.
|
|
@@ -2025,7 +2013,7 @@ class Links(BaseSDK):
|
|
|
2025
2013
|
config=self.sdk_configuration,
|
|
2026
2014
|
base_url=base_url or "",
|
|
2027
2015
|
operation_id="bulkUpdateLinks",
|
|
2028
|
-
oauth2_scopes=
|
|
2016
|
+
oauth2_scopes=None,
|
|
2029
2017
|
security_source=self.sdk_configuration.security,
|
|
2030
2018
|
),
|
|
2031
2019
|
request=req,
|
|
@@ -2047,9 +2035,7 @@ class Links(BaseSDK):
|
|
|
2047
2035
|
|
|
2048
2036
|
response_data: Any = None
|
|
2049
2037
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2050
|
-
return unmarshal_json_response(
|
|
2051
|
-
Optional[List[components.LinkSchema]], http_res
|
|
2052
|
-
)
|
|
2038
|
+
return unmarshal_json_response(List[components.LinkSchema], http_res)
|
|
2053
2039
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2054
2040
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2055
2041
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2105,7 +2091,7 @@ class Links(BaseSDK):
|
|
|
2105
2091
|
server_url: Optional[str] = None,
|
|
2106
2092
|
timeout_ms: Optional[int] = None,
|
|
2107
2093
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2108
|
-
) ->
|
|
2094
|
+
) -> List[components.LinkSchema]:
|
|
2109
2095
|
r"""Bulk update links
|
|
2110
2096
|
|
|
2111
2097
|
Bulk update up to 100 links with the same data for the authenticated workspace.
|
|
@@ -2168,7 +2154,7 @@ class Links(BaseSDK):
|
|
|
2168
2154
|
config=self.sdk_configuration,
|
|
2169
2155
|
base_url=base_url or "",
|
|
2170
2156
|
operation_id="bulkUpdateLinks",
|
|
2171
|
-
oauth2_scopes=
|
|
2157
|
+
oauth2_scopes=None,
|
|
2172
2158
|
security_source=self.sdk_configuration.security,
|
|
2173
2159
|
),
|
|
2174
2160
|
request=req,
|
|
@@ -2190,9 +2176,7 @@ class Links(BaseSDK):
|
|
|
2190
2176
|
|
|
2191
2177
|
response_data: Any = None
|
|
2192
2178
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2193
|
-
return unmarshal_json_response(
|
|
2194
|
-
Optional[List[components.LinkSchema]], http_res
|
|
2195
|
-
)
|
|
2179
|
+
return unmarshal_json_response(List[components.LinkSchema], http_res)
|
|
2196
2180
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2197
2181
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2198
2182
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2246,7 +2230,7 @@ class Links(BaseSDK):
|
|
|
2246
2230
|
server_url: Optional[str] = None,
|
|
2247
2231
|
timeout_ms: Optional[int] = None,
|
|
2248
2232
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2249
|
-
) ->
|
|
2233
|
+
) -> operations.BulkDeleteLinksResponseBody:
|
|
2250
2234
|
r"""Bulk delete links
|
|
2251
2235
|
|
|
2252
2236
|
Bulk delete up to 100 links for the authenticated workspace.
|
|
@@ -2300,7 +2284,7 @@ class Links(BaseSDK):
|
|
|
2300
2284
|
config=self.sdk_configuration,
|
|
2301
2285
|
base_url=base_url or "",
|
|
2302
2286
|
operation_id="bulkDeleteLinks",
|
|
2303
|
-
oauth2_scopes=
|
|
2287
|
+
oauth2_scopes=None,
|
|
2304
2288
|
security_source=self.sdk_configuration.security,
|
|
2305
2289
|
),
|
|
2306
2290
|
request=req,
|
|
@@ -2323,7 +2307,7 @@ class Links(BaseSDK):
|
|
|
2323
2307
|
response_data: Any = None
|
|
2324
2308
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2325
2309
|
return unmarshal_json_response(
|
|
2326
|
-
|
|
2310
|
+
operations.BulkDeleteLinksResponseBody, http_res
|
|
2327
2311
|
)
|
|
2328
2312
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2329
2313
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -2378,7 +2362,7 @@ class Links(BaseSDK):
|
|
|
2378
2362
|
server_url: Optional[str] = None,
|
|
2379
2363
|
timeout_ms: Optional[int] = None,
|
|
2380
2364
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2381
|
-
) ->
|
|
2365
|
+
) -> operations.BulkDeleteLinksResponseBody:
|
|
2382
2366
|
r"""Bulk delete links
|
|
2383
2367
|
|
|
2384
2368
|
Bulk delete up to 100 links for the authenticated workspace.
|
|
@@ -2432,7 +2416,7 @@ class Links(BaseSDK):
|
|
|
2432
2416
|
config=self.sdk_configuration,
|
|
2433
2417
|
base_url=base_url or "",
|
|
2434
2418
|
operation_id="bulkDeleteLinks",
|
|
2435
|
-
oauth2_scopes=
|
|
2419
|
+
oauth2_scopes=None,
|
|
2436
2420
|
security_source=self.sdk_configuration.security,
|
|
2437
2421
|
),
|
|
2438
2422
|
request=req,
|
|
@@ -2455,7 +2439,7 @@ class Links(BaseSDK):
|
|
|
2455
2439
|
response_data: Any = None
|
|
2456
2440
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2457
2441
|
return unmarshal_json_response(
|
|
2458
|
-
|
|
2442
|
+
operations.BulkDeleteLinksResponseBody, http_res
|
|
2459
2443
|
)
|
|
2460
2444
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2461
2445
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -2512,7 +2496,7 @@ class Links(BaseSDK):
|
|
|
2512
2496
|
server_url: Optional[str] = None,
|
|
2513
2497
|
timeout_ms: Optional[int] = None,
|
|
2514
2498
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2515
|
-
) ->
|
|
2499
|
+
) -> components.LinkSchema:
|
|
2516
2500
|
r"""Upsert a link
|
|
2517
2501
|
|
|
2518
2502
|
Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
|
|
@@ -2571,7 +2555,7 @@ class Links(BaseSDK):
|
|
|
2571
2555
|
config=self.sdk_configuration,
|
|
2572
2556
|
base_url=base_url or "",
|
|
2573
2557
|
operation_id="upsertLink",
|
|
2574
|
-
oauth2_scopes=
|
|
2558
|
+
oauth2_scopes=None,
|
|
2575
2559
|
security_source=self.sdk_configuration.security,
|
|
2576
2560
|
),
|
|
2577
2561
|
request=req,
|
|
@@ -2593,7 +2577,7 @@ class Links(BaseSDK):
|
|
|
2593
2577
|
|
|
2594
2578
|
response_data: Any = None
|
|
2595
2579
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2596
|
-
return unmarshal_json_response(
|
|
2580
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
2597
2581
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2598
2582
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2599
2583
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2649,7 +2633,7 @@ class Links(BaseSDK):
|
|
|
2649
2633
|
server_url: Optional[str] = None,
|
|
2650
2634
|
timeout_ms: Optional[int] = None,
|
|
2651
2635
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2652
|
-
) ->
|
|
2636
|
+
) -> components.LinkSchema:
|
|
2653
2637
|
r"""Upsert a link
|
|
2654
2638
|
|
|
2655
2639
|
Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
|
|
@@ -2708,7 +2692,7 @@ class Links(BaseSDK):
|
|
|
2708
2692
|
config=self.sdk_configuration,
|
|
2709
2693
|
base_url=base_url or "",
|
|
2710
2694
|
operation_id="upsertLink",
|
|
2711
|
-
oauth2_scopes=
|
|
2695
|
+
oauth2_scopes=None,
|
|
2712
2696
|
security_source=self.sdk_configuration.security,
|
|
2713
2697
|
),
|
|
2714
2698
|
request=req,
|
|
@@ -2730,7 +2714,7 @@ class Links(BaseSDK):
|
|
|
2730
2714
|
|
|
2731
2715
|
response_data: Any = None
|
|
2732
2716
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2733
|
-
return unmarshal_json_response(
|
|
2717
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
2734
2718
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2735
2719
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2736
2720
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -122,6 +122,7 @@ if TYPE_CHECKING:
|
|
|
122
122
|
TestVariants,
|
|
123
123
|
TestVariantsTypedDict,
|
|
124
124
|
)
|
|
125
|
+
from .linktagschema import Color, LinkTagSchema, LinkTagSchemaTypedDict
|
|
125
126
|
from .linkwebhookevent import (
|
|
126
127
|
LinkWebhookEvent,
|
|
127
128
|
LinkWebhookEventEvent,
|
|
@@ -147,6 +148,18 @@ if TYPE_CHECKING:
|
|
|
147
148
|
PartnerAnalyticsTopLinks,
|
|
148
149
|
PartnerAnalyticsTopLinksTypedDict,
|
|
149
150
|
)
|
|
151
|
+
from .partnerapplicationsubmittedevent import (
|
|
152
|
+
ApplicationFormData,
|
|
153
|
+
ApplicationFormDataTypedDict,
|
|
154
|
+
PartnerApplicationSubmittedEvent,
|
|
155
|
+
PartnerApplicationSubmittedEventData,
|
|
156
|
+
PartnerApplicationSubmittedEventDataTypedDict,
|
|
157
|
+
PartnerApplicationSubmittedEventEvent,
|
|
158
|
+
PartnerApplicationSubmittedEventPartner,
|
|
159
|
+
PartnerApplicationSubmittedEventPartnerTypedDict,
|
|
160
|
+
PartnerApplicationSubmittedEventStatus,
|
|
161
|
+
PartnerApplicationSubmittedEventTypedDict,
|
|
162
|
+
)
|
|
150
163
|
from .partnerenrolledevent import (
|
|
151
164
|
BannedReason,
|
|
152
165
|
PartnerEnrolledEvent,
|
|
@@ -194,7 +207,6 @@ if TYPE_CHECKING:
|
|
|
194
207
|
SaleTypedDict,
|
|
195
208
|
)
|
|
196
209
|
from .security import Security, SecurityTypedDict
|
|
197
|
-
from .tagschema import Color, TagSchema, TagSchemaTypedDict
|
|
198
210
|
from .webhookevent import WebhookEvent, WebhookEventTypedDict
|
|
199
211
|
from .workspaceschema import (
|
|
200
212
|
Domains,
|
|
@@ -238,6 +250,8 @@ __all__ = [
|
|
|
238
250
|
"AnalyticsTopUrlsTypedDict",
|
|
239
251
|
"AnalyticsTriggers",
|
|
240
252
|
"AnalyticsTriggersTypedDict",
|
|
253
|
+
"ApplicationFormData",
|
|
254
|
+
"ApplicationFormDataTypedDict",
|
|
241
255
|
"BannedReason",
|
|
242
256
|
"City",
|
|
243
257
|
"Click",
|
|
@@ -308,6 +322,8 @@ __all__ = [
|
|
|
308
322
|
"LinkErrorSchemaTypedDict",
|
|
309
323
|
"LinkSchema",
|
|
310
324
|
"LinkSchemaTypedDict",
|
|
325
|
+
"LinkTagSchema",
|
|
326
|
+
"LinkTagSchemaTypedDict",
|
|
311
327
|
"LinkTypedDict",
|
|
312
328
|
"LinkWebhookEvent",
|
|
313
329
|
"LinkWebhookEventEvent",
|
|
@@ -325,6 +341,14 @@ __all__ = [
|
|
|
325
341
|
"PartnerAnalyticsTimeseriesTypedDict",
|
|
326
342
|
"PartnerAnalyticsTopLinks",
|
|
327
343
|
"PartnerAnalyticsTopLinksTypedDict",
|
|
344
|
+
"PartnerApplicationSubmittedEvent",
|
|
345
|
+
"PartnerApplicationSubmittedEventData",
|
|
346
|
+
"PartnerApplicationSubmittedEventDataTypedDict",
|
|
347
|
+
"PartnerApplicationSubmittedEventEvent",
|
|
348
|
+
"PartnerApplicationSubmittedEventPartner",
|
|
349
|
+
"PartnerApplicationSubmittedEventPartnerTypedDict",
|
|
350
|
+
"PartnerApplicationSubmittedEventStatus",
|
|
351
|
+
"PartnerApplicationSubmittedEventTypedDict",
|
|
328
352
|
"PartnerEnrolledEvent",
|
|
329
353
|
"PartnerEnrolledEventData",
|
|
330
354
|
"PartnerEnrolledEventDataTypedDict",
|
|
@@ -372,8 +396,6 @@ __all__ = [
|
|
|
372
396
|
"Security",
|
|
373
397
|
"SecurityTypedDict",
|
|
374
398
|
"Status",
|
|
375
|
-
"TagSchema",
|
|
376
|
-
"TagSchemaTypedDict",
|
|
377
399
|
"TestVariants",
|
|
378
400
|
"TestVariantsTypedDict",
|
|
379
401
|
"Three",
|
|
@@ -495,6 +517,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
495
517
|
"LinkSchemaTypedDict": ".linkschema",
|
|
496
518
|
"TestVariants": ".linkschema",
|
|
497
519
|
"TestVariantsTypedDict": ".linkschema",
|
|
520
|
+
"Color": ".linktagschema",
|
|
521
|
+
"LinkTagSchema": ".linktagschema",
|
|
522
|
+
"LinkTagSchemaTypedDict": ".linktagschema",
|
|
498
523
|
"LinkWebhookEvent": ".linkwebhookevent",
|
|
499
524
|
"LinkWebhookEventEvent": ".linkwebhookevent",
|
|
500
525
|
"LinkWebhookEventEventTypedDict": ".linkwebhookevent",
|
|
@@ -512,6 +537,16 @@ _dynamic_imports: dict[str, str] = {
|
|
|
512
537
|
"PartnerAnalyticsTimeseriesTypedDict": ".partneranalyticstimeseries",
|
|
513
538
|
"PartnerAnalyticsTopLinks": ".partneranalyticstoplinks",
|
|
514
539
|
"PartnerAnalyticsTopLinksTypedDict": ".partneranalyticstoplinks",
|
|
540
|
+
"ApplicationFormData": ".partnerapplicationsubmittedevent",
|
|
541
|
+
"ApplicationFormDataTypedDict": ".partnerapplicationsubmittedevent",
|
|
542
|
+
"PartnerApplicationSubmittedEvent": ".partnerapplicationsubmittedevent",
|
|
543
|
+
"PartnerApplicationSubmittedEventData": ".partnerapplicationsubmittedevent",
|
|
544
|
+
"PartnerApplicationSubmittedEventDataTypedDict": ".partnerapplicationsubmittedevent",
|
|
545
|
+
"PartnerApplicationSubmittedEventEvent": ".partnerapplicationsubmittedevent",
|
|
546
|
+
"PartnerApplicationSubmittedEventPartner": ".partnerapplicationsubmittedevent",
|
|
547
|
+
"PartnerApplicationSubmittedEventPartnerTypedDict": ".partnerapplicationsubmittedevent",
|
|
548
|
+
"PartnerApplicationSubmittedEventStatus": ".partnerapplicationsubmittedevent",
|
|
549
|
+
"PartnerApplicationSubmittedEventTypedDict": ".partnerapplicationsubmittedevent",
|
|
515
550
|
"BannedReason": ".partnerenrolledevent",
|
|
516
551
|
"PartnerEnrolledEvent": ".partnerenrolledevent",
|
|
517
552
|
"PartnerEnrolledEventData": ".partnerenrolledevent",
|
|
@@ -554,9 +589,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
554
589
|
"SaleTypedDict": ".saleevent",
|
|
555
590
|
"Security": ".security",
|
|
556
591
|
"SecurityTypedDict": ".security",
|
|
557
|
-
"Color": ".tagschema",
|
|
558
|
-
"TagSchema": ".tagschema",
|
|
559
|
-
"TagSchemaTypedDict": ".tagschema",
|
|
560
592
|
"WebhookEvent": ".webhookevent",
|
|
561
593
|
"WebhookEventTypedDict": ".webhookevent",
|
|
562
594
|
"Domains": ".workspaceschema",
|
|
@@ -9,7 +9,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
class AnalyticsTopUrlsTypedDict(TypedDict):
|
|
11
11
|
url: str
|
|
12
|
-
r"""The destination URL"""
|
|
12
|
+
r"""The full destination URL (including query parameters)"""
|
|
13
13
|
clicks: NotRequired[float]
|
|
14
14
|
r"""The number of clicks from this URL"""
|
|
15
15
|
leads: NotRequired[float]
|
|
@@ -22,7 +22,7 @@ class AnalyticsTopUrlsTypedDict(TypedDict):
|
|
|
22
22
|
|
|
23
23
|
class AnalyticsTopUrls(BaseModel):
|
|
24
24
|
url: str
|
|
25
|
-
r"""The destination URL"""
|
|
25
|
+
r"""The full destination URL (including query parameters)"""
|
|
26
26
|
|
|
27
27
|
clicks: Optional[float] = 0
|
|
28
28
|
r"""The number of clicks from this URL"""
|