dub 0.26.9__py3-none-any.whl → 0.26.11__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/models/operations/bulkcreatelinks.py +6 -0
- dub/models/operations/createlink.py +6 -0
- dub/models/operations/createpartner.py +6 -5
- dub/models/operations/createpartnerlink.py +6 -5
- dub/models/operations/createreferralsembedtoken.py +6 -3
- dub/models/operations/listcommissions.py +5 -2
- dub/models/operations/retrievepartneranalytics.py +0 -9
- dub/models/operations/updatecommission.py +5 -2
- dub/models/operations/updatelink.py +0 -6
- dub/models/operations/upsertlink.py +6 -0
- dub/models/operations/upsertpartnerlink.py +6 -5
- {dub-0.26.9.dist-info → dub-0.26.11.dist-info}/METADATA +1 -1
- {dub-0.26.9.dist-info → dub-0.26.11.dist-info}/RECORD +16 -16
- {dub-0.26.9.dist-info → dub-0.26.11.dist-info}/LICENSE +0 -0
- {dub-0.26.9.dist-info → dub-0.26.11.dist-info}/WHEEL +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.26.
|
|
6
|
+
__version__: str = "0.26.11"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.26.
|
|
8
|
+
__gen_version__: str = "2.634.2"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.26.11 2.634.2 0.0.1 dub"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -53,6 +53,8 @@ class RequestBodyTypedDict(TypedDict):
|
|
|
53
53
|
r"""The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains)."""
|
|
54
54
|
key: NotRequired[str]
|
|
55
55
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
56
|
+
key_length: NotRequired[float]
|
|
57
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
56
58
|
external_id: NotRequired[Nullable[str]]
|
|
57
59
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
58
60
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -137,6 +139,9 @@ class RequestBody(BaseModel):
|
|
|
137
139
|
key: Optional[str] = None
|
|
138
140
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
139
141
|
|
|
142
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
143
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
144
|
+
|
|
140
145
|
external_id: Annotated[
|
|
141
146
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
142
147
|
] = UNSET
|
|
@@ -291,6 +296,7 @@ class RequestBody(BaseModel):
|
|
|
291
296
|
optional_fields = [
|
|
292
297
|
"domain",
|
|
293
298
|
"key",
|
|
299
|
+
"keyLength",
|
|
294
300
|
"externalId",
|
|
295
301
|
"tenantId",
|
|
296
302
|
"programId",
|
|
@@ -47,6 +47,8 @@ class CreateLinkRequestBodyTypedDict(TypedDict):
|
|
|
47
47
|
r"""The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains)."""
|
|
48
48
|
key: NotRequired[str]
|
|
49
49
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
50
|
+
key_length: NotRequired[float]
|
|
51
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
50
52
|
external_id: NotRequired[Nullable[str]]
|
|
51
53
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
52
54
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -131,6 +133,9 @@ class CreateLinkRequestBody(BaseModel):
|
|
|
131
133
|
key: Optional[str] = None
|
|
132
134
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
133
135
|
|
|
136
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
137
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
138
|
+
|
|
134
139
|
external_id: Annotated[
|
|
135
140
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
136
141
|
] = UNSET
|
|
@@ -280,6 +285,7 @@ class CreateLinkRequestBody(BaseModel):
|
|
|
280
285
|
optional_fields = [
|
|
281
286
|
"domain",
|
|
282
287
|
"key",
|
|
288
|
+
"keyLength",
|
|
283
289
|
"externalId",
|
|
284
290
|
"tenantId",
|
|
285
291
|
"programId",
|
|
@@ -298,6 +298,8 @@ class CreatePartnerTestVariants(BaseModel):
|
|
|
298
298
|
class LinkPropsTypedDict(TypedDict):
|
|
299
299
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
300
300
|
|
|
301
|
+
key_length: NotRequired[float]
|
|
302
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
301
303
|
external_id: NotRequired[Nullable[str]]
|
|
302
304
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
303
305
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -361,6 +363,9 @@ class LinkPropsTypedDict(TypedDict):
|
|
|
361
363
|
class LinkProps(BaseModel):
|
|
362
364
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
363
365
|
|
|
366
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
367
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
368
|
+
|
|
364
369
|
external_id: Annotated[
|
|
365
370
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
366
371
|
] = UNSET
|
|
@@ -472,6 +477,7 @@ class LinkProps(BaseModel):
|
|
|
472
477
|
@model_serializer(mode="wrap")
|
|
473
478
|
def serialize_model(self, handler):
|
|
474
479
|
optional_fields = [
|
|
480
|
+
"keyLength",
|
|
475
481
|
"externalId",
|
|
476
482
|
"tenantId",
|
|
477
483
|
"prefix",
|
|
@@ -554,8 +560,6 @@ class LinkProps(BaseModel):
|
|
|
554
560
|
|
|
555
561
|
|
|
556
562
|
class CreatePartnerRequestBodyTypedDict(TypedDict):
|
|
557
|
-
program_id: str
|
|
558
|
-
r"""The ID of the program to create a partner for."""
|
|
559
563
|
name: str
|
|
560
564
|
r"""Full legal name of the partner."""
|
|
561
565
|
email: str
|
|
@@ -575,9 +579,6 @@ class CreatePartnerRequestBodyTypedDict(TypedDict):
|
|
|
575
579
|
|
|
576
580
|
|
|
577
581
|
class CreatePartnerRequestBody(BaseModel):
|
|
578
|
-
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
579
|
-
r"""The ID of the program to create a partner for."""
|
|
580
|
-
|
|
581
582
|
name: str
|
|
582
583
|
r"""Full legal name of the partner."""
|
|
583
584
|
|
|
@@ -46,6 +46,8 @@ class CreatePartnerLinkTestVariants(BaseModel):
|
|
|
46
46
|
class CreatePartnerLinkLinkPropsTypedDict(TypedDict):
|
|
47
47
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
48
48
|
|
|
49
|
+
key_length: NotRequired[float]
|
|
50
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
49
51
|
external_id: NotRequired[Nullable[str]]
|
|
50
52
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
51
53
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -109,6 +111,9 @@ class CreatePartnerLinkLinkPropsTypedDict(TypedDict):
|
|
|
109
111
|
class CreatePartnerLinkLinkProps(BaseModel):
|
|
110
112
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
111
113
|
|
|
114
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
115
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
116
|
+
|
|
112
117
|
external_id: Annotated[
|
|
113
118
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
114
119
|
] = UNSET
|
|
@@ -220,6 +225,7 @@ class CreatePartnerLinkLinkProps(BaseModel):
|
|
|
220
225
|
@model_serializer(mode="wrap")
|
|
221
226
|
def serialize_model(self, handler):
|
|
222
227
|
optional_fields = [
|
|
228
|
+
"keyLength",
|
|
223
229
|
"externalId",
|
|
224
230
|
"tenantId",
|
|
225
231
|
"prefix",
|
|
@@ -302,8 +308,6 @@ class CreatePartnerLinkLinkProps(BaseModel):
|
|
|
302
308
|
|
|
303
309
|
|
|
304
310
|
class CreatePartnerLinkRequestBodyTypedDict(TypedDict):
|
|
305
|
-
program_id: str
|
|
306
|
-
r"""The ID of the program that the partner is enrolled in."""
|
|
307
311
|
partner_id: NotRequired[Nullable[str]]
|
|
308
312
|
r"""The ID of the partner to create a link for. Will take precedence over `tenantId` if provided."""
|
|
309
313
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -319,9 +323,6 @@ class CreatePartnerLinkRequestBodyTypedDict(TypedDict):
|
|
|
319
323
|
|
|
320
324
|
|
|
321
325
|
class CreatePartnerLinkRequestBody(BaseModel):
|
|
322
|
-
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
323
|
-
r"""The ID of the program that the partner is enrolled in."""
|
|
324
|
-
|
|
325
326
|
partner_id: Annotated[OptionalNullable[str], pydantic.Field(alias="partnerId")] = (
|
|
326
327
|
UNSET
|
|
327
328
|
)
|
|
@@ -302,6 +302,8 @@ class CreateReferralsEmbedTokenTestVariants(BaseModel):
|
|
|
302
302
|
class CreateReferralsEmbedTokenLinkPropsTypedDict(TypedDict):
|
|
303
303
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
304
304
|
|
|
305
|
+
key_length: NotRequired[float]
|
|
306
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
305
307
|
external_id: NotRequired[Nullable[str]]
|
|
306
308
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
307
309
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -367,6 +369,9 @@ class CreateReferralsEmbedTokenLinkPropsTypedDict(TypedDict):
|
|
|
367
369
|
class CreateReferralsEmbedTokenLinkProps(BaseModel):
|
|
368
370
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
369
371
|
|
|
372
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
373
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
374
|
+
|
|
370
375
|
external_id: Annotated[
|
|
371
376
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
372
377
|
] = UNSET
|
|
@@ -478,6 +483,7 @@ class CreateReferralsEmbedTokenLinkProps(BaseModel):
|
|
|
478
483
|
@model_serializer(mode="wrap")
|
|
479
484
|
def serialize_model(self, handler):
|
|
480
485
|
optional_fields = [
|
|
486
|
+
"keyLength",
|
|
481
487
|
"externalId",
|
|
482
488
|
"tenantId",
|
|
483
489
|
"prefix",
|
|
@@ -644,15 +650,12 @@ class Partner(BaseModel):
|
|
|
644
650
|
|
|
645
651
|
|
|
646
652
|
class CreateReferralsEmbedTokenRequestBodyTypedDict(TypedDict):
|
|
647
|
-
program_id: str
|
|
648
653
|
partner_id: NotRequired[str]
|
|
649
654
|
tenant_id: NotRequired[str]
|
|
650
655
|
partner: NotRequired[PartnerTypedDict]
|
|
651
656
|
|
|
652
657
|
|
|
653
658
|
class CreateReferralsEmbedTokenRequestBody(BaseModel):
|
|
654
|
-
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
655
|
-
|
|
656
659
|
partner_id: Annotated[Optional[str], pydantic.Field(alias="partnerId")] = None
|
|
657
660
|
|
|
658
661
|
tenant_id: Annotated[Optional[str], pydantic.Field(alias="tenantId")] = None
|
|
@@ -199,6 +199,7 @@ class ListCommissionsResponseBodyTypedDict(TypedDict):
|
|
|
199
199
|
updated_at: str
|
|
200
200
|
type: NotRequired[ListCommissionsType]
|
|
201
201
|
invoice_id: NotRequired[Nullable[str]]
|
|
202
|
+
description: NotRequired[Nullable[str]]
|
|
202
203
|
|
|
203
204
|
|
|
204
205
|
class ListCommissionsResponseBody(BaseModel):
|
|
@@ -223,10 +224,12 @@ class ListCommissionsResponseBody(BaseModel):
|
|
|
223
224
|
UNSET
|
|
224
225
|
)
|
|
225
226
|
|
|
227
|
+
description: OptionalNullable[str] = UNSET
|
|
228
|
+
|
|
226
229
|
@model_serializer(mode="wrap")
|
|
227
230
|
def serialize_model(self, handler):
|
|
228
|
-
optional_fields = ["type", "invoiceId"]
|
|
229
|
-
nullable_fields = ["invoiceId"]
|
|
231
|
+
optional_fields = ["type", "invoiceId", "description"]
|
|
232
|
+
nullable_fields = ["invoiceId", "description"]
|
|
230
233
|
null_default_fields = []
|
|
231
234
|
|
|
232
235
|
serialized = handler(self)
|
|
@@ -37,8 +37,6 @@ class RetrievePartnerAnalyticsQueryParamGroupBy(str, Enum):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class RetrievePartnerAnalyticsRequestTypedDict(TypedDict):
|
|
40
|
-
program_id: str
|
|
41
|
-
r"""The ID of the program to retrieve analytics for."""
|
|
42
40
|
partner_id: NotRequired[str]
|
|
43
41
|
r"""The ID of the partner to retrieve analytics for."""
|
|
44
42
|
tenant_id: NotRequired[str]
|
|
@@ -56,13 +54,6 @@ class RetrievePartnerAnalyticsRequestTypedDict(TypedDict):
|
|
|
56
54
|
|
|
57
55
|
|
|
58
56
|
class RetrievePartnerAnalyticsRequest(BaseModel):
|
|
59
|
-
program_id: Annotated[
|
|
60
|
-
str,
|
|
61
|
-
pydantic.Field(alias="programId"),
|
|
62
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
63
|
-
]
|
|
64
|
-
r"""The ID of the program to retrieve analytics for."""
|
|
65
|
-
|
|
66
57
|
partner_id: Annotated[
|
|
67
58
|
Optional[str],
|
|
68
59
|
pydantic.Field(alias="partnerId"),
|
|
@@ -94,6 +94,7 @@ class UpdateCommissionResponseBodyTypedDict(TypedDict):
|
|
|
94
94
|
updated_at: str
|
|
95
95
|
type: NotRequired[UpdateCommissionType]
|
|
96
96
|
invoice_id: NotRequired[Nullable[str]]
|
|
97
|
+
description: NotRequired[Nullable[str]]
|
|
97
98
|
|
|
98
99
|
|
|
99
100
|
class UpdateCommissionResponseBody(BaseModel):
|
|
@@ -120,10 +121,12 @@ class UpdateCommissionResponseBody(BaseModel):
|
|
|
120
121
|
UNSET
|
|
121
122
|
)
|
|
122
123
|
|
|
124
|
+
description: OptionalNullable[str] = UNSET
|
|
125
|
+
|
|
123
126
|
@model_serializer(mode="wrap")
|
|
124
127
|
def serialize_model(self, handler):
|
|
125
|
-
optional_fields = ["type", "invoiceId"]
|
|
126
|
-
nullable_fields = ["invoiceId"]
|
|
128
|
+
optional_fields = ["type", "invoiceId", "description"]
|
|
129
|
+
nullable_fields = ["invoiceId", "description"]
|
|
127
130
|
null_default_fields = []
|
|
128
131
|
|
|
129
132
|
serialized = handler(self)
|
|
@@ -56,8 +56,6 @@ class UpdateLinkRequestBodyTypedDict(TypedDict):
|
|
|
56
56
|
r"""The ID of the program the short link is associated with."""
|
|
57
57
|
partner_id: NotRequired[Nullable[str]]
|
|
58
58
|
r"""The ID of the partner the short link is associated with."""
|
|
59
|
-
prefix: NotRequired[str]
|
|
60
|
-
r"""The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided."""
|
|
61
59
|
track_conversion: NotRequired[bool]
|
|
62
60
|
r"""Whether to track conversions for the short link. Defaults to `false` if not provided."""
|
|
63
61
|
archived: NotRequired[bool]
|
|
@@ -151,9 +149,6 @@ class UpdateLinkRequestBody(BaseModel):
|
|
|
151
149
|
)
|
|
152
150
|
r"""The ID of the partner the short link is associated with."""
|
|
153
151
|
|
|
154
|
-
prefix: Optional[str] = None
|
|
155
|
-
r"""The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided."""
|
|
156
|
-
|
|
157
152
|
track_conversion: Annotated[
|
|
158
153
|
Optional[bool], pydantic.Field(alias="trackConversion")
|
|
159
154
|
] = None
|
|
@@ -289,7 +284,6 @@ class UpdateLinkRequestBody(BaseModel):
|
|
|
289
284
|
"tenantId",
|
|
290
285
|
"programId",
|
|
291
286
|
"partnerId",
|
|
292
|
-
"prefix",
|
|
293
287
|
"trackConversion",
|
|
294
288
|
"archived",
|
|
295
289
|
"publicStats",
|
|
@@ -47,6 +47,8 @@ class UpsertLinkRequestBodyTypedDict(TypedDict):
|
|
|
47
47
|
r"""The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains)."""
|
|
48
48
|
key: NotRequired[str]
|
|
49
49
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
50
|
+
key_length: NotRequired[float]
|
|
51
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
50
52
|
external_id: NotRequired[Nullable[str]]
|
|
51
53
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
52
54
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -131,6 +133,9 @@ class UpsertLinkRequestBody(BaseModel):
|
|
|
131
133
|
key: Optional[str] = None
|
|
132
134
|
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
133
135
|
|
|
136
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
137
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
138
|
+
|
|
134
139
|
external_id: Annotated[
|
|
135
140
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
136
141
|
] = UNSET
|
|
@@ -285,6 +290,7 @@ class UpsertLinkRequestBody(BaseModel):
|
|
|
285
290
|
optional_fields = [
|
|
286
291
|
"domain",
|
|
287
292
|
"key",
|
|
293
|
+
"keyLength",
|
|
288
294
|
"externalId",
|
|
289
295
|
"tenantId",
|
|
290
296
|
"programId",
|
|
@@ -46,6 +46,8 @@ class UpsertPartnerLinkTestVariants(BaseModel):
|
|
|
46
46
|
class UpsertPartnerLinkLinkPropsTypedDict(TypedDict):
|
|
47
47
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
48
48
|
|
|
49
|
+
key_length: NotRequired[float]
|
|
50
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
49
51
|
external_id: NotRequired[Nullable[str]]
|
|
50
52
|
r"""The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace."""
|
|
51
53
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -109,6 +111,9 @@ class UpsertPartnerLinkLinkPropsTypedDict(TypedDict):
|
|
|
109
111
|
class UpsertPartnerLinkLinkProps(BaseModel):
|
|
110
112
|
r"""Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner."""
|
|
111
113
|
|
|
114
|
+
key_length: Annotated[Optional[float], pydantic.Field(alias="keyLength")] = None
|
|
115
|
+
r"""The length of the short link slug. Defaults to 7 if not provided. When used with `prefix`, the total length of the key will be `prefix.length + keyLength`."""
|
|
116
|
+
|
|
112
117
|
external_id: Annotated[
|
|
113
118
|
OptionalNullable[str], pydantic.Field(alias="externalId")
|
|
114
119
|
] = UNSET
|
|
@@ -220,6 +225,7 @@ class UpsertPartnerLinkLinkProps(BaseModel):
|
|
|
220
225
|
@model_serializer(mode="wrap")
|
|
221
226
|
def serialize_model(self, handler):
|
|
222
227
|
optional_fields = [
|
|
228
|
+
"keyLength",
|
|
223
229
|
"externalId",
|
|
224
230
|
"tenantId",
|
|
225
231
|
"prefix",
|
|
@@ -302,8 +308,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
|
|
|
302
308
|
|
|
303
309
|
|
|
304
310
|
class UpsertPartnerLinkRequestBodyTypedDict(TypedDict):
|
|
305
|
-
program_id: str
|
|
306
|
-
r"""The ID of the program that the partner is enrolled in."""
|
|
307
311
|
partner_id: NotRequired[Nullable[str]]
|
|
308
312
|
r"""The ID of the partner to create a link for. Will take precedence over `tenantId` if provided."""
|
|
309
313
|
tenant_id: NotRequired[Nullable[str]]
|
|
@@ -319,9 +323,6 @@ class UpsertPartnerLinkRequestBodyTypedDict(TypedDict):
|
|
|
319
323
|
|
|
320
324
|
|
|
321
325
|
class UpsertPartnerLinkRequestBody(BaseModel):
|
|
322
|
-
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
323
|
-
r"""The ID of the program that the partner is enrolled in."""
|
|
324
|
-
|
|
325
326
|
partner_id: Annotated[OptionalNullable[str], pydantic.Field(alias="partnerId")] = (
|
|
326
327
|
UNSET
|
|
327
328
|
)
|
|
@@ -3,7 +3,7 @@ dub/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
|
|
|
3
3
|
dub/_hooks/registration.py,sha256=tT-1Cjp5ax1DL-84HBNWPy4wAwgP-0aI4-asLfnkIlw,625
|
|
4
4
|
dub/_hooks/sdkhooks.py,sha256=2rLEjSz1xFGWabNs1voFn0lXSCqkS38bdKVFdnBJufE,2553
|
|
5
5
|
dub/_hooks/types.py,sha256=5vcNbFBNpCxqI7ZebiBtut7T_Gz2i36L5MjTqGvxV7Y,3035
|
|
6
|
-
dub/_version.py,sha256=
|
|
6
|
+
dub/_version.py,sha256=jrlBlCn3pdQG7L13AOQZ-UTHWJyOM1jU2D0F7JsQwsE,452
|
|
7
7
|
dub/analytics.py,sha256=acVdNv1hS7JDmBS1ena0kG-RNNq64lRZwOV6_2FZn60,13032
|
|
8
8
|
dub/basesdk.py,sha256=nY5yee9uE5SQHkG_9Di9MUoQR0KcPr-WrtTCDHUdRnY,11779
|
|
9
9
|
dub/commissions.py,sha256=H56AkD5M03FuXaIdsd5jY6rWZ7qa8c0gssXQhLkF634,25796
|
|
@@ -64,17 +64,17 @@ dub/models/errors/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs
|
|
|
64
64
|
dub/models/errors/unauthorized.py,sha256=ranMcawvM0oJxxVkShfZsc7V5YYjbz9luhHywE_ObIg,1525
|
|
65
65
|
dub/models/errors/unprocessableentity.py,sha256=TxgP43hrqcBW-UDMo8yJ7B0_o_skIH_dXw3DfEWG_cY,1515
|
|
66
66
|
dub/models/operations/__init__.py,sha256=qQXnwHCbeVw_tQxL3vIkJrD5QPLwPwdLhX94nFQxjYc,39411
|
|
67
|
-
dub/models/operations/bulkcreatelinks.py,sha256=
|
|
67
|
+
dub/models/operations/bulkcreatelinks.py,sha256=aY5XyysI5g-6owMgXx_i1rFN4DPM8S7N1y0MzAJgvzU,17896
|
|
68
68
|
dub/models/operations/bulkdeletelinks.py,sha256=u_hEFC9TZ1UnGGgLhQ-Mf3HNDO98Ur49MtdBnNVIRsE,1151
|
|
69
69
|
dub/models/operations/bulkupdatelinks.py,sha256=qo5t0RnwzxpdQnz5IivH9plgjMaJAX0i7gXJHmCck_M,15972
|
|
70
70
|
dub/models/operations/checkdomainstatus.py,sha256=W085WT-gUgU73qDi4LlXppdiPVC0Pm1CpPXTqTM56sI,2538
|
|
71
71
|
dub/models/operations/createcustomer.py,sha256=gAwfJB7hXlbCKbfypCYxshq7LnWkTqAPdMIl1d5UOZQ,12006
|
|
72
72
|
dub/models/operations/createdomain.py,sha256=dHRvCzE6knsndN4FTFjfijHVmTi8NXKpURz8cM_C-bk,3900
|
|
73
73
|
dub/models/operations/createfolder.py,sha256=j9z0CIsc22VsWAwlCGNwxo6a3VsetD6t4T2LdCELYGE,1884
|
|
74
|
-
dub/models/operations/createlink.py,sha256=
|
|
75
|
-
dub/models/operations/createpartner.py,sha256=
|
|
76
|
-
dub/models/operations/createpartnerlink.py,sha256=
|
|
77
|
-
dub/models/operations/createreferralsembedtoken.py,sha256
|
|
74
|
+
dub/models/operations/createlink.py,sha256=Fy934a9A1vWA_GLI-FQ7FQDlMskV-EElvtvFQKd_vmU,17263
|
|
75
|
+
dub/models/operations/createpartner.py,sha256=mFRgjctLgmaXuLPl-fDbbqkLRhxvaZFOHU7xouxoubs,30747
|
|
76
|
+
dub/models/operations/createpartnerlink.py,sha256=rOlnyEQdBk2jb5T3ryzvboWney3cRXIG9rCxuwQO58I,17091
|
|
77
|
+
dub/models/operations/createreferralsembedtoken.py,sha256=DgEd8UQGwqP-los3hSlqFHOt6T3WXcf3AT6iSAu9Nic,22010
|
|
78
78
|
dub/models/operations/createtag.py,sha256=XUKuFcLoenYk1oxdeou-gI_s3A4YxtIJKgRiXtLfOpQ,1497
|
|
79
79
|
dub/models/operations/deletecustomer.py,sha256=sq1efo3bhCzQnVacAo9tg7JoHs68IbeheNp1uAlD8AU,1529
|
|
80
80
|
dub/models/operations/deletedomain.py,sha256=VtuDxUCmAcEmNn1vmrdlSKmASHSFwoho-CoJeGtyBBI,769
|
|
@@ -89,25 +89,25 @@ dub/models/operations/getlinkscount.py,sha256=KvD0gh-Imn1WmiiRAIYUXHBoNNGEnmfBQX
|
|
|
89
89
|
dub/models/operations/getqrcode.py,sha256=ynCPJc8vy_QEt5FP8OU2s-u6UIt1BhmFSNZC-XPmO4I,3848
|
|
90
90
|
dub/models/operations/gettags.py,sha256=c9p_JrHFnTDJURyR5iiKFKpXFHlzJDt3R5X1U-anyYg,2664
|
|
91
91
|
dub/models/operations/getworkspace.py,sha256=V4-NfsEg3M1BTeoE13sDyazefb2_kI4yFxnzgvHPv4s,625
|
|
92
|
-
dub/models/operations/listcommissions.py,sha256=
|
|
92
|
+
dub/models/operations/listcommissions.py,sha256=9gFR2iunDb08rhNYNYKY4KjlyZeaUN6t-OQWoXM_qyQ,8161
|
|
93
93
|
dub/models/operations/listdomains.py,sha256=gbQrJyBIvTGKSeqJo0Jb08iE44Xu39NS9zbfetx4p-s,1936
|
|
94
94
|
dub/models/operations/listevents.py,sha256=AwnXpTWOhhZ_er9FZukptf1U2dD52j-xQtvop9k-J7g,17943
|
|
95
95
|
dub/models/operations/listfolders.py,sha256=5FGf62ZTjquVXjq5axlzQgYGfEnrEwDn8QLlgGH_7jQ,1209
|
|
96
96
|
dub/models/operations/registerdomain.py,sha256=fjozn1tFU-cNarHdAqN_flQoGAE498ob-f4A2bIAiOc,2058
|
|
97
97
|
dub/models/operations/retrieveanalytics.py,sha256=ITNmlEK_ifUwK-opXAIrdjnpZQBW8DK_OgpzNHkfcY8,19211
|
|
98
98
|
dub/models/operations/retrievelinks.py,sha256=1bLrT_Q2y60eU_gdOHTu99VW8c09gX3nkidb0R5qLuk,2988
|
|
99
|
-
dub/models/operations/retrievepartneranalytics.py,sha256=
|
|
99
|
+
dub/models/operations/retrievepartneranalytics.py,sha256=9aldT3YxBAwQtNPu0Mat5Uxrmz6zMGnri5cqaxUDHdk,4968
|
|
100
100
|
dub/models/operations/tracklead.py,sha256=FxdbxL9r3PF0eqo4aOcGXCS7EERq11x07NEdPDkqeps,6855
|
|
101
101
|
dub/models/operations/tracksale.py,sha256=q_IL4dHay_dDTmRYH80zI6JphCyk46yHoLHBFEJEILg,8189
|
|
102
|
-
dub/models/operations/updatecommission.py,sha256=
|
|
102
|
+
dub/models/operations/updatecommission.py,sha256=vA5tD32Xq1-3QObjxrg1fIUwZaxJK1tJOaRc6GJMEbI,5596
|
|
103
103
|
dub/models/operations/updatecustomer.py,sha256=xlW-W99WgdlAsKD4fNhIEw3f1Sipnb4ahPnZFOcisSY,13517
|
|
104
104
|
dub/models/operations/updatedomain.py,sha256=rexCga7uNxgBZLPiCMcaudc2cQGB0E_qX2HI0DgG_3M,4519
|
|
105
105
|
dub/models/operations/updatefolder.py,sha256=dNvSPY67g58SWynB8ic5rcgT-h7THRmyxuzuFdO42GQ,2581
|
|
106
|
-
dub/models/operations/updatelink.py,sha256=
|
|
106
|
+
dub/models/operations/updatelink.py,sha256=QBKRmZ_Pw9_halLBeXxZ4cn0RQiCHumQE2NtxHH2W5g,17070
|
|
107
107
|
dub/models/operations/updatetag.py,sha256=0nGAU6if5BsetDArXCIn8YvlDgG17N1Cp8q1o9F6ff4,2101
|
|
108
108
|
dub/models/operations/updateworkspace.py,sha256=qdlmA-Rz8_fC3iQs7bzmcn0qL9Lu3a04ziEIYfX3Ugo,2690
|
|
109
|
-
dub/models/operations/upsertlink.py,sha256=
|
|
110
|
-
dub/models/operations/upsertpartnerlink.py,sha256=
|
|
109
|
+
dub/models/operations/upsertlink.py,sha256=V5vzhu4GwEszHVmq6U7ZookZW7ty7xIH0zWIzgTZUHA,17386
|
|
110
|
+
dub/models/operations/upsertpartnerlink.py,sha256=Z0xtZHGzePne4wM2XaouR8f_pJrHA6avCmczxEo-9p0,17091
|
|
111
111
|
dub/partners.py,sha256=tR6HFOZ4Uev4svl5etpK6sfZ43AJ6toiVsygJC1_YQs,64833
|
|
112
112
|
dub/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
113
113
|
dub/qr_codes.py,sha256=OJxxYVoLjgvm23RXYEOZT4qFNE305XLQNLsF5OCQlGo,12258
|
|
@@ -134,7 +134,7 @@ dub/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
|
134
134
|
dub/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
135
135
|
dub/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
136
136
|
dub/workspaces.py,sha256=_4KOZwwL0KADDqSrHZWfO7LpEwLi59uvaKm-X7JzAv0,25823
|
|
137
|
-
dub-0.26.
|
|
138
|
-
dub-0.26.
|
|
139
|
-
dub-0.26.
|
|
140
|
-
dub-0.26.
|
|
137
|
+
dub-0.26.11.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
|
|
138
|
+
dub-0.26.11.dist-info/METADATA,sha256=Ow96ygWjLKasDSSsqfI5bYlO_hg4A8VMpiK7q1k9z2Q,28076
|
|
139
|
+
dub-0.26.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
140
|
+
dub-0.26.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|