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/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "dub"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.33.0"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.763.3"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.33.0 2.763.3 0.0.1 dub"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
dub/analytics.py
CHANGED
|
@@ -21,7 +21,7 @@ class Analytics(BaseSDK):
|
|
|
21
21
|
server_url: Optional[str] = None,
|
|
22
22
|
timeout_ms: Optional[int] = None,
|
|
23
23
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
24
|
-
) ->
|
|
24
|
+
) -> operations.RetrieveAnalyticsResponseBody:
|
|
25
25
|
r"""Retrieve analytics for a link, a domain, or the authenticated workspace.
|
|
26
26
|
|
|
27
27
|
Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.
|
|
@@ -75,7 +75,7 @@ class Analytics(BaseSDK):
|
|
|
75
75
|
config=self.sdk_configuration,
|
|
76
76
|
base_url=base_url or "",
|
|
77
77
|
operation_id="retrieveAnalytics",
|
|
78
|
-
oauth2_scopes=
|
|
78
|
+
oauth2_scopes=None,
|
|
79
79
|
security_source=self.sdk_configuration.security,
|
|
80
80
|
),
|
|
81
81
|
request=req,
|
|
@@ -98,7 +98,7 @@ class Analytics(BaseSDK):
|
|
|
98
98
|
response_data: Any = None
|
|
99
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
100
100
|
return unmarshal_json_response(
|
|
101
|
-
|
|
101
|
+
operations.RetrieveAnalyticsResponseBody, http_res
|
|
102
102
|
)
|
|
103
103
|
if utils.match_response(http_res, "400", "application/json"):
|
|
104
104
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -153,7 +153,7 @@ class Analytics(BaseSDK):
|
|
|
153
153
|
server_url: Optional[str] = None,
|
|
154
154
|
timeout_ms: Optional[int] = None,
|
|
155
155
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
156
|
-
) ->
|
|
156
|
+
) -> operations.RetrieveAnalyticsResponseBody:
|
|
157
157
|
r"""Retrieve analytics for a link, a domain, or the authenticated workspace.
|
|
158
158
|
|
|
159
159
|
Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.
|
|
@@ -207,7 +207,7 @@ class Analytics(BaseSDK):
|
|
|
207
207
|
config=self.sdk_configuration,
|
|
208
208
|
base_url=base_url or "",
|
|
209
209
|
operation_id="retrieveAnalytics",
|
|
210
|
-
oauth2_scopes=
|
|
210
|
+
oauth2_scopes=None,
|
|
211
211
|
security_source=self.sdk_configuration.security,
|
|
212
212
|
),
|
|
213
213
|
request=req,
|
|
@@ -230,7 +230,7 @@ class Analytics(BaseSDK):
|
|
|
230
230
|
response_data: Any = None
|
|
231
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
232
232
|
return unmarshal_json_response(
|
|
233
|
-
|
|
233
|
+
operations.RetrieveAnalyticsResponseBody, http_res
|
|
234
234
|
)
|
|
235
235
|
if utils.match_response(http_res, "400", "application/json"):
|
|
236
236
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
dub/commissions.py
CHANGED
|
@@ -21,7 +21,7 @@ class Commissions(BaseSDK):
|
|
|
21
21
|
server_url: Optional[str] = None,
|
|
22
22
|
timeout_ms: Optional[int] = None,
|
|
23
23
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
24
|
-
) ->
|
|
24
|
+
) -> List[operations.ListCommissionsResponseBody]:
|
|
25
25
|
r"""Get commissions for a program.
|
|
26
26
|
|
|
27
27
|
Retrieve a list of commissions for a program.
|
|
@@ -75,7 +75,7 @@ class Commissions(BaseSDK):
|
|
|
75
75
|
config=self.sdk_configuration,
|
|
76
76
|
base_url=base_url or "",
|
|
77
77
|
operation_id="listCommissions",
|
|
78
|
-
oauth2_scopes=
|
|
78
|
+
oauth2_scopes=None,
|
|
79
79
|
security_source=self.sdk_configuration.security,
|
|
80
80
|
),
|
|
81
81
|
request=req,
|
|
@@ -98,7 +98,7 @@ class Commissions(BaseSDK):
|
|
|
98
98
|
response_data: Any = None
|
|
99
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
100
100
|
return unmarshal_json_response(
|
|
101
|
-
|
|
101
|
+
List[operations.ListCommissionsResponseBody], http_res
|
|
102
102
|
)
|
|
103
103
|
if utils.match_response(http_res, "400", "application/json"):
|
|
104
104
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -153,7 +153,7 @@ class Commissions(BaseSDK):
|
|
|
153
153
|
server_url: Optional[str] = None,
|
|
154
154
|
timeout_ms: Optional[int] = None,
|
|
155
155
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
156
|
-
) ->
|
|
156
|
+
) -> List[operations.ListCommissionsResponseBody]:
|
|
157
157
|
r"""Get commissions for a program.
|
|
158
158
|
|
|
159
159
|
Retrieve a list of commissions for a program.
|
|
@@ -207,7 +207,7 @@ class Commissions(BaseSDK):
|
|
|
207
207
|
config=self.sdk_configuration,
|
|
208
208
|
base_url=base_url or "",
|
|
209
209
|
operation_id="listCommissions",
|
|
210
|
-
oauth2_scopes=
|
|
210
|
+
oauth2_scopes=None,
|
|
211
211
|
security_source=self.sdk_configuration.security,
|
|
212
212
|
),
|
|
213
213
|
request=req,
|
|
@@ -230,7 +230,7 @@ class Commissions(BaseSDK):
|
|
|
230
230
|
response_data: Any = None
|
|
231
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
232
232
|
return unmarshal_json_response(
|
|
233
|
-
|
|
233
|
+
List[operations.ListCommissionsResponseBody], http_res
|
|
234
234
|
)
|
|
235
235
|
if utils.match_response(http_res, "400", "application/json"):
|
|
236
236
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -285,7 +285,7 @@ class Commissions(BaseSDK):
|
|
|
285
285
|
server_url: Optional[str] = None,
|
|
286
286
|
timeout_ms: Optional[int] = None,
|
|
287
287
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
288
|
-
) ->
|
|
288
|
+
) -> operations.UpdateCommissionResponseBody:
|
|
289
289
|
r"""Update a commission.
|
|
290
290
|
|
|
291
291
|
Update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.
|
|
@@ -346,7 +346,7 @@ class Commissions(BaseSDK):
|
|
|
346
346
|
config=self.sdk_configuration,
|
|
347
347
|
base_url=base_url or "",
|
|
348
348
|
operation_id="updateCommission",
|
|
349
|
-
oauth2_scopes=
|
|
349
|
+
oauth2_scopes=None,
|
|
350
350
|
security_source=self.sdk_configuration.security,
|
|
351
351
|
),
|
|
352
352
|
request=req,
|
|
@@ -369,7 +369,7 @@ class Commissions(BaseSDK):
|
|
|
369
369
|
response_data: Any = None
|
|
370
370
|
if utils.match_response(http_res, "200", "application/json"):
|
|
371
371
|
return unmarshal_json_response(
|
|
372
|
-
|
|
372
|
+
operations.UpdateCommissionResponseBody, http_res
|
|
373
373
|
)
|
|
374
374
|
if utils.match_response(http_res, "400", "application/json"):
|
|
375
375
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -424,7 +424,7 @@ class Commissions(BaseSDK):
|
|
|
424
424
|
server_url: Optional[str] = None,
|
|
425
425
|
timeout_ms: Optional[int] = None,
|
|
426
426
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
427
|
-
) ->
|
|
427
|
+
) -> operations.UpdateCommissionResponseBody:
|
|
428
428
|
r"""Update a commission.
|
|
429
429
|
|
|
430
430
|
Update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.
|
|
@@ -485,7 +485,7 @@ class Commissions(BaseSDK):
|
|
|
485
485
|
config=self.sdk_configuration,
|
|
486
486
|
base_url=base_url or "",
|
|
487
487
|
operation_id="updateCommission",
|
|
488
|
-
oauth2_scopes=
|
|
488
|
+
oauth2_scopes=None,
|
|
489
489
|
security_source=self.sdk_configuration.security,
|
|
490
490
|
),
|
|
491
491
|
request=req,
|
|
@@ -508,7 +508,7 @@ class Commissions(BaseSDK):
|
|
|
508
508
|
response_data: Any = None
|
|
509
509
|
if utils.match_response(http_res, "200", "application/json"):
|
|
510
510
|
return unmarshal_json_response(
|
|
511
|
-
|
|
511
|
+
operations.UpdateCommissionResponseBody, http_res
|
|
512
512
|
)
|
|
513
513
|
if utils.match_response(http_res, "400", "application/json"):
|
|
514
514
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|