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
|
@@ -40,17 +40,6 @@ if TYPE_CHECKING:
|
|
|
40
40
|
AnalyticsTriggersTypedDict,
|
|
41
41
|
Trigger,
|
|
42
42
|
)
|
|
43
|
-
from .clickevent import (
|
|
44
|
-
Click,
|
|
45
|
-
ClickEvent,
|
|
46
|
-
ClickEventTestVariants,
|
|
47
|
-
ClickEventTestVariantsTypedDict,
|
|
48
|
-
ClickEventTypedDict,
|
|
49
|
-
ClickTypedDict,
|
|
50
|
-
Event,
|
|
51
|
-
Link,
|
|
52
|
-
LinkTypedDict,
|
|
53
|
-
)
|
|
54
43
|
from .commissioncreatedevent import (
|
|
55
44
|
CommissionCreatedEvent,
|
|
56
45
|
CommissionCreatedEventCustomer,
|
|
@@ -64,7 +53,6 @@ if TYPE_CHECKING:
|
|
|
64
53
|
CommissionCreatedEventType,
|
|
65
54
|
CommissionCreatedEventTypedDict,
|
|
66
55
|
)
|
|
67
|
-
from .continentcode import ContinentCode
|
|
68
56
|
from .domainschema import (
|
|
69
57
|
DomainSchema,
|
|
70
58
|
DomainSchemaTypedDict,
|
|
@@ -73,11 +61,11 @@ if TYPE_CHECKING:
|
|
|
73
61
|
)
|
|
74
62
|
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
|
|
75
63
|
from .leadcreatedevent import (
|
|
64
|
+
Customer,
|
|
65
|
+
CustomerTypedDict,
|
|
76
66
|
LeadCreatedEvent,
|
|
77
67
|
LeadCreatedEventClick,
|
|
78
68
|
LeadCreatedEventClickTypedDict,
|
|
79
|
-
LeadCreatedEventCustomer,
|
|
80
|
-
LeadCreatedEventCustomerTypedDict,
|
|
81
69
|
LeadCreatedEventData,
|
|
82
70
|
LeadCreatedEventDataTypedDict,
|
|
83
71
|
LeadCreatedEventEvent,
|
|
@@ -89,31 +77,18 @@ if TYPE_CHECKING:
|
|
|
89
77
|
Partner,
|
|
90
78
|
PartnerTypedDict,
|
|
91
79
|
)
|
|
92
|
-
from .leadevent import (
|
|
93
|
-
Customer,
|
|
94
|
-
CustomerTypedDict,
|
|
95
|
-
LeadEvent,
|
|
96
|
-
LeadEventClick,
|
|
97
|
-
LeadEventClickTypedDict,
|
|
98
|
-
LeadEventEvent,
|
|
99
|
-
LeadEventLink,
|
|
100
|
-
LeadEventLinkTypedDict,
|
|
101
|
-
LeadEventTestVariants,
|
|
102
|
-
LeadEventTestVariantsTypedDict,
|
|
103
|
-
LeadEventTypedDict,
|
|
104
|
-
)
|
|
105
80
|
from .linkclickedevent import (
|
|
106
|
-
|
|
107
|
-
|
|
81
|
+
Click,
|
|
82
|
+
ClickTypedDict,
|
|
83
|
+
Link,
|
|
108
84
|
LinkClickedEvent,
|
|
109
|
-
|
|
110
|
-
|
|
85
|
+
LinkClickedEventData,
|
|
86
|
+
LinkClickedEventDataTypedDict,
|
|
111
87
|
LinkClickedEventEvent,
|
|
112
|
-
LinkClickedEventLink,
|
|
113
|
-
LinkClickedEventLinkTypedDict,
|
|
114
88
|
LinkClickedEventTestVariants,
|
|
115
89
|
LinkClickedEventTestVariantsTypedDict,
|
|
116
90
|
LinkClickedEventTypedDict,
|
|
91
|
+
LinkTypedDict,
|
|
117
92
|
)
|
|
118
93
|
from .linkerrorschema import Code, LinkErrorSchema, LinkErrorSchemaTypedDict
|
|
119
94
|
from .linkschema import (
|
|
@@ -122,13 +97,18 @@ if TYPE_CHECKING:
|
|
|
122
97
|
TestVariants,
|
|
123
98
|
TestVariantsTypedDict,
|
|
124
99
|
)
|
|
125
|
-
from .linktagschema import
|
|
100
|
+
from .linktagschema import LinkTagSchema, LinkTagSchemaColor, LinkTagSchemaTypedDict
|
|
101
|
+
from .linktagschemaoutput import (
|
|
102
|
+
Color,
|
|
103
|
+
LinkTagSchemaOutput,
|
|
104
|
+
LinkTagSchemaOutputTypedDict,
|
|
105
|
+
)
|
|
126
106
|
from .linkwebhookevent import (
|
|
107
|
+
Data,
|
|
108
|
+
DataTypedDict,
|
|
109
|
+
Event,
|
|
110
|
+
EventTypedDict,
|
|
127
111
|
LinkWebhookEvent,
|
|
128
|
-
LinkWebhookEventEvent,
|
|
129
|
-
LinkWebhookEventEventTypedDict,
|
|
130
|
-
LinkWebhookEventLink,
|
|
131
|
-
LinkWebhookEventLinkTypedDict,
|
|
132
112
|
LinkWebhookEventTestVariants,
|
|
133
113
|
LinkWebhookEventTestVariantsTypedDict,
|
|
134
114
|
LinkWebhookEventTypedDict,
|
|
@@ -148,18 +128,31 @@ if TYPE_CHECKING:
|
|
|
148
128
|
PartnerAnalyticsTopLinks,
|
|
149
129
|
PartnerAnalyticsTopLinksTypedDict,
|
|
150
130
|
)
|
|
131
|
+
from .partnerapplicationsubmittedevent import (
|
|
132
|
+
ApplicationFormData,
|
|
133
|
+
ApplicationFormDataTypedDict,
|
|
134
|
+
PartnerApplicationSubmittedEvent,
|
|
135
|
+
PartnerApplicationSubmittedEventData,
|
|
136
|
+
PartnerApplicationSubmittedEventDataTypedDict,
|
|
137
|
+
PartnerApplicationSubmittedEventEvent,
|
|
138
|
+
PartnerApplicationSubmittedEventPartner,
|
|
139
|
+
PartnerApplicationSubmittedEventPartnerTypedDict,
|
|
140
|
+
PartnerApplicationSubmittedEventStatus,
|
|
141
|
+
PartnerApplicationSubmittedEventTypedDict,
|
|
142
|
+
)
|
|
151
143
|
from .partnerenrolledevent import (
|
|
152
144
|
BannedReason,
|
|
145
|
+
Links,
|
|
146
|
+
LinksTypedDict,
|
|
153
147
|
PartnerEnrolledEvent,
|
|
154
148
|
PartnerEnrolledEventData,
|
|
155
149
|
PartnerEnrolledEventDataTypedDict,
|
|
156
150
|
PartnerEnrolledEventEvent,
|
|
157
|
-
PartnerEnrolledEventLink,
|
|
158
|
-
PartnerEnrolledEventLinkTypedDict,
|
|
159
151
|
PartnerEnrolledEventTypedDict,
|
|
160
152
|
Status,
|
|
161
153
|
)
|
|
162
154
|
from .salecreatedevent import (
|
|
155
|
+
Sale,
|
|
163
156
|
SaleCreatedEvent,
|
|
164
157
|
SaleCreatedEventClick,
|
|
165
158
|
SaleCreatedEventClickTypedDict,
|
|
@@ -172,26 +165,9 @@ if TYPE_CHECKING:
|
|
|
172
165
|
SaleCreatedEventLinkTypedDict,
|
|
173
166
|
SaleCreatedEventPartner,
|
|
174
167
|
SaleCreatedEventPartnerTypedDict,
|
|
175
|
-
SaleCreatedEventSale,
|
|
176
|
-
SaleCreatedEventSaleTypedDict,
|
|
177
168
|
SaleCreatedEventTestVariants,
|
|
178
169
|
SaleCreatedEventTestVariantsTypedDict,
|
|
179
170
|
SaleCreatedEventTypedDict,
|
|
180
|
-
)
|
|
181
|
-
from .saleevent import (
|
|
182
|
-
PaymentProcessor,
|
|
183
|
-
Sale,
|
|
184
|
-
SaleEvent,
|
|
185
|
-
SaleEventClick,
|
|
186
|
-
SaleEventClickTypedDict,
|
|
187
|
-
SaleEventCustomer,
|
|
188
|
-
SaleEventCustomerTypedDict,
|
|
189
|
-
SaleEventEvent,
|
|
190
|
-
SaleEventLink,
|
|
191
|
-
SaleEventLinkTypedDict,
|
|
192
|
-
SaleEventTestVariants,
|
|
193
|
-
SaleEventTestVariantsTypedDict,
|
|
194
|
-
SaleEventTypedDict,
|
|
195
171
|
SaleTypedDict,
|
|
196
172
|
)
|
|
197
173
|
from .security import Security, SecurityTypedDict
|
|
@@ -238,13 +214,11 @@ __all__ = [
|
|
|
238
214
|
"AnalyticsTopUrlsTypedDict",
|
|
239
215
|
"AnalyticsTriggers",
|
|
240
216
|
"AnalyticsTriggersTypedDict",
|
|
217
|
+
"ApplicationFormData",
|
|
218
|
+
"ApplicationFormDataTypedDict",
|
|
241
219
|
"BannedReason",
|
|
242
220
|
"City",
|
|
243
221
|
"Click",
|
|
244
|
-
"ClickEvent",
|
|
245
|
-
"ClickEventTestVariants",
|
|
246
|
-
"ClickEventTestVariantsTypedDict",
|
|
247
|
-
"ClickEventTypedDict",
|
|
248
222
|
"ClickTypedDict",
|
|
249
223
|
"Code",
|
|
250
224
|
"Color",
|
|
@@ -260,7 +234,6 @@ __all__ = [
|
|
|
260
234
|
"CommissionCreatedEventType",
|
|
261
235
|
"CommissionCreatedEventTypedDict",
|
|
262
236
|
"Continent",
|
|
263
|
-
"ContinentCode",
|
|
264
237
|
"Customer",
|
|
265
238
|
"CustomerTypedDict",
|
|
266
239
|
"Data",
|
|
@@ -270,13 +243,12 @@ __all__ = [
|
|
|
270
243
|
"Domains",
|
|
271
244
|
"DomainsTypedDict",
|
|
272
245
|
"Event",
|
|
246
|
+
"EventTypedDict",
|
|
273
247
|
"FolderSchema",
|
|
274
248
|
"FolderSchemaTypedDict",
|
|
275
249
|
"LeadCreatedEvent",
|
|
276
250
|
"LeadCreatedEventClick",
|
|
277
251
|
"LeadCreatedEventClickTypedDict",
|
|
278
|
-
"LeadCreatedEventCustomer",
|
|
279
|
-
"LeadCreatedEventCustomerTypedDict",
|
|
280
252
|
"LeadCreatedEventData",
|
|
281
253
|
"LeadCreatedEventDataTypedDict",
|
|
282
254
|
"LeadCreatedEventEvent",
|
|
@@ -285,22 +257,11 @@ __all__ = [
|
|
|
285
257
|
"LeadCreatedEventTestVariants",
|
|
286
258
|
"LeadCreatedEventTestVariantsTypedDict",
|
|
287
259
|
"LeadCreatedEventTypedDict",
|
|
288
|
-
"LeadEvent",
|
|
289
|
-
"LeadEventClick",
|
|
290
|
-
"LeadEventClickTypedDict",
|
|
291
|
-
"LeadEventEvent",
|
|
292
|
-
"LeadEventLink",
|
|
293
|
-
"LeadEventLinkTypedDict",
|
|
294
|
-
"LeadEventTestVariants",
|
|
295
|
-
"LeadEventTestVariantsTypedDict",
|
|
296
|
-
"LeadEventTypedDict",
|
|
297
260
|
"Link",
|
|
298
261
|
"LinkClickedEvent",
|
|
299
|
-
"
|
|
300
|
-
"
|
|
262
|
+
"LinkClickedEventData",
|
|
263
|
+
"LinkClickedEventDataTypedDict",
|
|
301
264
|
"LinkClickedEventEvent",
|
|
302
|
-
"LinkClickedEventLink",
|
|
303
|
-
"LinkClickedEventLinkTypedDict",
|
|
304
265
|
"LinkClickedEventTestVariants",
|
|
305
266
|
"LinkClickedEventTestVariantsTypedDict",
|
|
306
267
|
"LinkClickedEventTypedDict",
|
|
@@ -309,16 +270,17 @@ __all__ = [
|
|
|
309
270
|
"LinkSchema",
|
|
310
271
|
"LinkSchemaTypedDict",
|
|
311
272
|
"LinkTagSchema",
|
|
273
|
+
"LinkTagSchemaColor",
|
|
274
|
+
"LinkTagSchemaOutput",
|
|
275
|
+
"LinkTagSchemaOutputTypedDict",
|
|
312
276
|
"LinkTagSchemaTypedDict",
|
|
313
277
|
"LinkTypedDict",
|
|
314
278
|
"LinkWebhookEvent",
|
|
315
|
-
"LinkWebhookEventEvent",
|
|
316
|
-
"LinkWebhookEventEventTypedDict",
|
|
317
|
-
"LinkWebhookEventLink",
|
|
318
|
-
"LinkWebhookEventLinkTypedDict",
|
|
319
279
|
"LinkWebhookEventTestVariants",
|
|
320
280
|
"LinkWebhookEventTestVariantsTypedDict",
|
|
321
281
|
"LinkWebhookEventTypedDict",
|
|
282
|
+
"Links",
|
|
283
|
+
"LinksTypedDict",
|
|
322
284
|
"One",
|
|
323
285
|
"Partner",
|
|
324
286
|
"PartnerAnalyticsCount",
|
|
@@ -327,15 +289,20 @@ __all__ = [
|
|
|
327
289
|
"PartnerAnalyticsTimeseriesTypedDict",
|
|
328
290
|
"PartnerAnalyticsTopLinks",
|
|
329
291
|
"PartnerAnalyticsTopLinksTypedDict",
|
|
292
|
+
"PartnerApplicationSubmittedEvent",
|
|
293
|
+
"PartnerApplicationSubmittedEventData",
|
|
294
|
+
"PartnerApplicationSubmittedEventDataTypedDict",
|
|
295
|
+
"PartnerApplicationSubmittedEventEvent",
|
|
296
|
+
"PartnerApplicationSubmittedEventPartner",
|
|
297
|
+
"PartnerApplicationSubmittedEventPartnerTypedDict",
|
|
298
|
+
"PartnerApplicationSubmittedEventStatus",
|
|
299
|
+
"PartnerApplicationSubmittedEventTypedDict",
|
|
330
300
|
"PartnerEnrolledEvent",
|
|
331
301
|
"PartnerEnrolledEventData",
|
|
332
302
|
"PartnerEnrolledEventDataTypedDict",
|
|
333
303
|
"PartnerEnrolledEventEvent",
|
|
334
|
-
"PartnerEnrolledEventLink",
|
|
335
|
-
"PartnerEnrolledEventLinkTypedDict",
|
|
336
304
|
"PartnerEnrolledEventTypedDict",
|
|
337
305
|
"PartnerTypedDict",
|
|
338
|
-
"PaymentProcessor",
|
|
339
306
|
"Plan",
|
|
340
307
|
"Region",
|
|
341
308
|
"RegisteredDomain",
|
|
@@ -354,22 +321,9 @@ __all__ = [
|
|
|
354
321
|
"SaleCreatedEventLinkTypedDict",
|
|
355
322
|
"SaleCreatedEventPartner",
|
|
356
323
|
"SaleCreatedEventPartnerTypedDict",
|
|
357
|
-
"SaleCreatedEventSale",
|
|
358
|
-
"SaleCreatedEventSaleTypedDict",
|
|
359
324
|
"SaleCreatedEventTestVariants",
|
|
360
325
|
"SaleCreatedEventTestVariantsTypedDict",
|
|
361
326
|
"SaleCreatedEventTypedDict",
|
|
362
|
-
"SaleEvent",
|
|
363
|
-
"SaleEventClick",
|
|
364
|
-
"SaleEventClickTypedDict",
|
|
365
|
-
"SaleEventCustomer",
|
|
366
|
-
"SaleEventCustomerTypedDict",
|
|
367
|
-
"SaleEventEvent",
|
|
368
|
-
"SaleEventLink",
|
|
369
|
-
"SaleEventLinkTypedDict",
|
|
370
|
-
"SaleEventTestVariants",
|
|
371
|
-
"SaleEventTestVariantsTypedDict",
|
|
372
|
-
"SaleEventTypedDict",
|
|
373
327
|
"SaleTypedDict",
|
|
374
328
|
"Security",
|
|
375
329
|
"SecurityTypedDict",
|
|
@@ -422,15 +376,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
422
376
|
"AnalyticsTriggers": ".analyticstriggers",
|
|
423
377
|
"AnalyticsTriggersTypedDict": ".analyticstriggers",
|
|
424
378
|
"Trigger": ".analyticstriggers",
|
|
425
|
-
"Click": ".clickevent",
|
|
426
|
-
"ClickEvent": ".clickevent",
|
|
427
|
-
"ClickEventTestVariants": ".clickevent",
|
|
428
|
-
"ClickEventTestVariantsTypedDict": ".clickevent",
|
|
429
|
-
"ClickEventTypedDict": ".clickevent",
|
|
430
|
-
"ClickTypedDict": ".clickevent",
|
|
431
|
-
"Event": ".clickevent",
|
|
432
|
-
"Link": ".clickevent",
|
|
433
|
-
"LinkTypedDict": ".clickevent",
|
|
434
379
|
"CommissionCreatedEvent": ".commissioncreatedevent",
|
|
435
380
|
"CommissionCreatedEventCustomer": ".commissioncreatedevent",
|
|
436
381
|
"CommissionCreatedEventCustomerTypedDict": ".commissioncreatedevent",
|
|
@@ -442,7 +387,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
442
387
|
"CommissionCreatedEventStatus": ".commissioncreatedevent",
|
|
443
388
|
"CommissionCreatedEventType": ".commissioncreatedevent",
|
|
444
389
|
"CommissionCreatedEventTypedDict": ".commissioncreatedevent",
|
|
445
|
-
"ContinentCode": ".continentcode",
|
|
446
390
|
"DomainSchema": ".domainschema",
|
|
447
391
|
"DomainSchemaTypedDict": ".domainschema",
|
|
448
392
|
"RegisteredDomain": ".domainschema",
|
|
@@ -451,11 +395,11 @@ _dynamic_imports: dict[str, str] = {
|
|
|
451
395
|
"FolderSchema": ".folderschema",
|
|
452
396
|
"FolderSchemaTypedDict": ".folderschema",
|
|
453
397
|
"Type": ".folderschema",
|
|
398
|
+
"Customer": ".leadcreatedevent",
|
|
399
|
+
"CustomerTypedDict": ".leadcreatedevent",
|
|
454
400
|
"LeadCreatedEvent": ".leadcreatedevent",
|
|
455
401
|
"LeadCreatedEventClick": ".leadcreatedevent",
|
|
456
402
|
"LeadCreatedEventClickTypedDict": ".leadcreatedevent",
|
|
457
|
-
"LeadCreatedEventCustomer": ".leadcreatedevent",
|
|
458
|
-
"LeadCreatedEventCustomerTypedDict": ".leadcreatedevent",
|
|
459
403
|
"LeadCreatedEventData": ".leadcreatedevent",
|
|
460
404
|
"LeadCreatedEventDataTypedDict": ".leadcreatedevent",
|
|
461
405
|
"LeadCreatedEventEvent": ".leadcreatedevent",
|
|
@@ -466,28 +410,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
466
410
|
"LeadCreatedEventTypedDict": ".leadcreatedevent",
|
|
467
411
|
"Partner": ".leadcreatedevent",
|
|
468
412
|
"PartnerTypedDict": ".leadcreatedevent",
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"LeadEventClick": ".leadevent",
|
|
473
|
-
"LeadEventClickTypedDict": ".leadevent",
|
|
474
|
-
"LeadEventEvent": ".leadevent",
|
|
475
|
-
"LeadEventLink": ".leadevent",
|
|
476
|
-
"LeadEventLinkTypedDict": ".leadevent",
|
|
477
|
-
"LeadEventTestVariants": ".leadevent",
|
|
478
|
-
"LeadEventTestVariantsTypedDict": ".leadevent",
|
|
479
|
-
"LeadEventTypedDict": ".leadevent",
|
|
480
|
-
"Data": ".linkclickedevent",
|
|
481
|
-
"DataTypedDict": ".linkclickedevent",
|
|
413
|
+
"Click": ".linkclickedevent",
|
|
414
|
+
"ClickTypedDict": ".linkclickedevent",
|
|
415
|
+
"Link": ".linkclickedevent",
|
|
482
416
|
"LinkClickedEvent": ".linkclickedevent",
|
|
483
|
-
"
|
|
484
|
-
"
|
|
417
|
+
"LinkClickedEventData": ".linkclickedevent",
|
|
418
|
+
"LinkClickedEventDataTypedDict": ".linkclickedevent",
|
|
485
419
|
"LinkClickedEventEvent": ".linkclickedevent",
|
|
486
|
-
"LinkClickedEventLink": ".linkclickedevent",
|
|
487
|
-
"LinkClickedEventLinkTypedDict": ".linkclickedevent",
|
|
488
420
|
"LinkClickedEventTestVariants": ".linkclickedevent",
|
|
489
421
|
"LinkClickedEventTestVariantsTypedDict": ".linkclickedevent",
|
|
490
422
|
"LinkClickedEventTypedDict": ".linkclickedevent",
|
|
423
|
+
"LinkTypedDict": ".linkclickedevent",
|
|
491
424
|
"Code": ".linkerrorschema",
|
|
492
425
|
"LinkErrorSchema": ".linkerrorschema",
|
|
493
426
|
"LinkErrorSchemaTypedDict": ".linkerrorschema",
|
|
@@ -495,14 +428,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
495
428
|
"LinkSchemaTypedDict": ".linkschema",
|
|
496
429
|
"TestVariants": ".linkschema",
|
|
497
430
|
"TestVariantsTypedDict": ".linkschema",
|
|
498
|
-
"Color": ".linktagschema",
|
|
499
431
|
"LinkTagSchema": ".linktagschema",
|
|
432
|
+
"LinkTagSchemaColor": ".linktagschema",
|
|
500
433
|
"LinkTagSchemaTypedDict": ".linktagschema",
|
|
434
|
+
"Color": ".linktagschemaoutput",
|
|
435
|
+
"LinkTagSchemaOutput": ".linktagschemaoutput",
|
|
436
|
+
"LinkTagSchemaOutputTypedDict": ".linktagschemaoutput",
|
|
437
|
+
"Data": ".linkwebhookevent",
|
|
438
|
+
"DataTypedDict": ".linkwebhookevent",
|
|
439
|
+
"Event": ".linkwebhookevent",
|
|
440
|
+
"EventTypedDict": ".linkwebhookevent",
|
|
501
441
|
"LinkWebhookEvent": ".linkwebhookevent",
|
|
502
|
-
"LinkWebhookEventEvent": ".linkwebhookevent",
|
|
503
|
-
"LinkWebhookEventEventTypedDict": ".linkwebhookevent",
|
|
504
|
-
"LinkWebhookEventLink": ".linkwebhookevent",
|
|
505
|
-
"LinkWebhookEventLinkTypedDict": ".linkwebhookevent",
|
|
506
442
|
"LinkWebhookEventTestVariants": ".linkwebhookevent",
|
|
507
443
|
"LinkWebhookEventTestVariantsTypedDict": ".linkwebhookevent",
|
|
508
444
|
"LinkWebhookEventTypedDict": ".linkwebhookevent",
|
|
@@ -515,15 +451,26 @@ _dynamic_imports: dict[str, str] = {
|
|
|
515
451
|
"PartnerAnalyticsTimeseriesTypedDict": ".partneranalyticstimeseries",
|
|
516
452
|
"PartnerAnalyticsTopLinks": ".partneranalyticstoplinks",
|
|
517
453
|
"PartnerAnalyticsTopLinksTypedDict": ".partneranalyticstoplinks",
|
|
454
|
+
"ApplicationFormData": ".partnerapplicationsubmittedevent",
|
|
455
|
+
"ApplicationFormDataTypedDict": ".partnerapplicationsubmittedevent",
|
|
456
|
+
"PartnerApplicationSubmittedEvent": ".partnerapplicationsubmittedevent",
|
|
457
|
+
"PartnerApplicationSubmittedEventData": ".partnerapplicationsubmittedevent",
|
|
458
|
+
"PartnerApplicationSubmittedEventDataTypedDict": ".partnerapplicationsubmittedevent",
|
|
459
|
+
"PartnerApplicationSubmittedEventEvent": ".partnerapplicationsubmittedevent",
|
|
460
|
+
"PartnerApplicationSubmittedEventPartner": ".partnerapplicationsubmittedevent",
|
|
461
|
+
"PartnerApplicationSubmittedEventPartnerTypedDict": ".partnerapplicationsubmittedevent",
|
|
462
|
+
"PartnerApplicationSubmittedEventStatus": ".partnerapplicationsubmittedevent",
|
|
463
|
+
"PartnerApplicationSubmittedEventTypedDict": ".partnerapplicationsubmittedevent",
|
|
518
464
|
"BannedReason": ".partnerenrolledevent",
|
|
465
|
+
"Links": ".partnerenrolledevent",
|
|
466
|
+
"LinksTypedDict": ".partnerenrolledevent",
|
|
519
467
|
"PartnerEnrolledEvent": ".partnerenrolledevent",
|
|
520
468
|
"PartnerEnrolledEventData": ".partnerenrolledevent",
|
|
521
469
|
"PartnerEnrolledEventDataTypedDict": ".partnerenrolledevent",
|
|
522
470
|
"PartnerEnrolledEventEvent": ".partnerenrolledevent",
|
|
523
|
-
"PartnerEnrolledEventLink": ".partnerenrolledevent",
|
|
524
|
-
"PartnerEnrolledEventLinkTypedDict": ".partnerenrolledevent",
|
|
525
471
|
"PartnerEnrolledEventTypedDict": ".partnerenrolledevent",
|
|
526
472
|
"Status": ".partnerenrolledevent",
|
|
473
|
+
"Sale": ".salecreatedevent",
|
|
527
474
|
"SaleCreatedEvent": ".salecreatedevent",
|
|
528
475
|
"SaleCreatedEventClick": ".salecreatedevent",
|
|
529
476
|
"SaleCreatedEventClickTypedDict": ".salecreatedevent",
|
|
@@ -536,25 +483,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
536
483
|
"SaleCreatedEventLinkTypedDict": ".salecreatedevent",
|
|
537
484
|
"SaleCreatedEventPartner": ".salecreatedevent",
|
|
538
485
|
"SaleCreatedEventPartnerTypedDict": ".salecreatedevent",
|
|
539
|
-
"SaleCreatedEventSale": ".salecreatedevent",
|
|
540
|
-
"SaleCreatedEventSaleTypedDict": ".salecreatedevent",
|
|
541
486
|
"SaleCreatedEventTestVariants": ".salecreatedevent",
|
|
542
487
|
"SaleCreatedEventTestVariantsTypedDict": ".salecreatedevent",
|
|
543
488
|
"SaleCreatedEventTypedDict": ".salecreatedevent",
|
|
544
|
-
"
|
|
545
|
-
"Sale": ".saleevent",
|
|
546
|
-
"SaleEvent": ".saleevent",
|
|
547
|
-
"SaleEventClick": ".saleevent",
|
|
548
|
-
"SaleEventClickTypedDict": ".saleevent",
|
|
549
|
-
"SaleEventCustomer": ".saleevent",
|
|
550
|
-
"SaleEventCustomerTypedDict": ".saleevent",
|
|
551
|
-
"SaleEventEvent": ".saleevent",
|
|
552
|
-
"SaleEventLink": ".saleevent",
|
|
553
|
-
"SaleEventLinkTypedDict": ".saleevent",
|
|
554
|
-
"SaleEventTestVariants": ".saleevent",
|
|
555
|
-
"SaleEventTestVariantsTypedDict": ".saleevent",
|
|
556
|
-
"SaleEventTypedDict": ".saleevent",
|
|
557
|
-
"SaleTypedDict": ".saleevent",
|
|
489
|
+
"SaleTypedDict": ".salecreatedevent",
|
|
558
490
|
"Security": ".security",
|
|
559
491
|
"SecurityTypedDict": ".security",
|
|
560
492
|
"WebhookEvent": ".webhookevent",
|
|
@@ -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"""
|
|
@@ -14,7 +14,7 @@ class LeadCreatedEventEvent(str, Enum):
|
|
|
14
14
|
LEAD_CREATED = "lead.created"
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class CustomerTypedDict(TypedDict):
|
|
18
18
|
id: str
|
|
19
19
|
r"""The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."""
|
|
20
20
|
external_id: str
|
|
@@ -35,7 +35,7 @@ class LeadCreatedEventCustomerTypedDict(TypedDict):
|
|
|
35
35
|
r"""Total amount of sales for the customer."""
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Customer(BaseModel):
|
|
39
39
|
id: str
|
|
40
40
|
r"""The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."""
|
|
41
41
|
|
|
@@ -207,6 +207,7 @@ class LeadCreatedEventLinkTypedDict(TypedDict):
|
|
|
207
207
|
archived: bool
|
|
208
208
|
expires_at: str
|
|
209
209
|
expired_url: Nullable[str]
|
|
210
|
+
disabled_at: str
|
|
210
211
|
password: Nullable[str]
|
|
211
212
|
r"""The password required to access the destination URL of the short link."""
|
|
212
213
|
proxy: bool
|
|
@@ -249,8 +250,8 @@ class LeadCreatedEventLinkTypedDict(TypedDict):
|
|
|
249
250
|
r"""The UTM term of the short link."""
|
|
250
251
|
utm_content: Nullable[str]
|
|
251
252
|
r"""The UTM content of the short link."""
|
|
252
|
-
test_started_at:
|
|
253
|
-
test_completed_at:
|
|
253
|
+
test_started_at: str
|
|
254
|
+
test_completed_at: str
|
|
254
255
|
user_id: Nullable[str]
|
|
255
256
|
workspace_id: str
|
|
256
257
|
r"""The workspace ID of the short link."""
|
|
@@ -307,6 +308,8 @@ class LeadCreatedEventLink(BaseModel):
|
|
|
307
308
|
|
|
308
309
|
expired_url: Annotated[Nullable[str], pydantic.Field(alias="expiredUrl")]
|
|
309
310
|
|
|
311
|
+
disabled_at: Annotated[str, pydantic.Field(alias="disabledAt")]
|
|
312
|
+
|
|
310
313
|
password: Nullable[str]
|
|
311
314
|
r"""The password required to access the destination URL of the short link."""
|
|
312
315
|
|
|
@@ -372,9 +375,9 @@ class LeadCreatedEventLink(BaseModel):
|
|
|
372
375
|
utm_content: Nullable[str]
|
|
373
376
|
r"""The UTM content of the short link."""
|
|
374
377
|
|
|
375
|
-
test_started_at: Annotated[
|
|
378
|
+
test_started_at: Annotated[str, pydantic.Field(alias="testStartedAt")]
|
|
376
379
|
|
|
377
|
-
test_completed_at: Annotated[
|
|
380
|
+
test_completed_at: Annotated[str, pydantic.Field(alias="testCompletedAt")]
|
|
378
381
|
|
|
379
382
|
user_id: Annotated[Nullable[str], pydantic.Field(alias="userId")]
|
|
380
383
|
|
|
@@ -459,8 +462,6 @@ class LeadCreatedEventLink(BaseModel):
|
|
|
459
462
|
"utm_term",
|
|
460
463
|
"utm_content",
|
|
461
464
|
"testVariants",
|
|
462
|
-
"testStartedAt",
|
|
463
|
-
"testCompletedAt",
|
|
464
465
|
"userId",
|
|
465
466
|
"tagId",
|
|
466
467
|
]
|
|
@@ -581,29 +582,29 @@ class Partner(BaseModel):
|
|
|
581
582
|
|
|
582
583
|
class LeadCreatedEventDataTypedDict(TypedDict):
|
|
583
584
|
event_name: str
|
|
584
|
-
customer:
|
|
585
|
+
customer: CustomerTypedDict
|
|
585
586
|
click: LeadCreatedEventClickTypedDict
|
|
586
587
|
link: LeadCreatedEventLinkTypedDict
|
|
587
|
-
metadata: Nullable[Dict[str, Any]]
|
|
588
588
|
partner: NotRequired[Nullable[PartnerTypedDict]]
|
|
589
|
+
metadata: NotRequired[Nullable[Dict[str, Any]]]
|
|
589
590
|
|
|
590
591
|
|
|
591
592
|
class LeadCreatedEventData(BaseModel):
|
|
592
593
|
event_name: Annotated[str, pydantic.Field(alias="eventName")]
|
|
593
594
|
|
|
594
|
-
customer:
|
|
595
|
+
customer: Customer
|
|
595
596
|
|
|
596
597
|
click: LeadCreatedEventClick
|
|
597
598
|
|
|
598
599
|
link: LeadCreatedEventLink
|
|
599
600
|
|
|
600
|
-
metadata: Nullable[Dict[str, Any]]
|
|
601
|
-
|
|
602
601
|
partner: OptionalNullable[Partner] = UNSET
|
|
603
602
|
|
|
603
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET
|
|
604
|
+
|
|
604
605
|
@model_serializer(mode="wrap")
|
|
605
606
|
def serialize_model(self, handler):
|
|
606
|
-
optional_fields = ["partner"]
|
|
607
|
+
optional_fields = ["partner", "metadata"]
|
|
607
608
|
nullable_fields = ["partner", "metadata"]
|
|
608
609
|
null_default_fields = []
|
|
609
610
|
|
|
@@ -14,7 +14,7 @@ class LinkClickedEventEvent(str, Enum):
|
|
|
14
14
|
LINK_CLICKED = "link.clicked"
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class ClickTypedDict(TypedDict):
|
|
18
18
|
id: str
|
|
19
19
|
timestamp: str
|
|
20
20
|
url: str
|
|
@@ -32,7 +32,7 @@ class LinkClickedEventClickTypedDict(TypedDict):
|
|
|
32
32
|
trigger: NotRequired[Nullable[str]]
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Click(BaseModel):
|
|
36
36
|
id: str
|
|
37
37
|
|
|
38
38
|
timestamp: str
|
|
@@ -105,7 +105,7 @@ class LinkClickedEventTestVariants(BaseModel):
|
|
|
105
105
|
percentage: float
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
class
|
|
108
|
+
class LinkTypedDict(TypedDict):
|
|
109
109
|
id: str
|
|
110
110
|
r"""The unique ID of the short link."""
|
|
111
111
|
domain: str
|
|
@@ -125,6 +125,7 @@ class LinkClickedEventLinkTypedDict(TypedDict):
|
|
|
125
125
|
archived: bool
|
|
126
126
|
expires_at: str
|
|
127
127
|
expired_url: Nullable[str]
|
|
128
|
+
disabled_at: str
|
|
128
129
|
password: Nullable[str]
|
|
129
130
|
r"""The password required to access the destination URL of the short link."""
|
|
130
131
|
proxy: bool
|
|
@@ -167,8 +168,8 @@ class LinkClickedEventLinkTypedDict(TypedDict):
|
|
|
167
168
|
r"""The UTM term of the short link."""
|
|
168
169
|
utm_content: Nullable[str]
|
|
169
170
|
r"""The UTM content of the short link."""
|
|
170
|
-
test_started_at:
|
|
171
|
-
test_completed_at:
|
|
171
|
+
test_started_at: str
|
|
172
|
+
test_completed_at: str
|
|
172
173
|
user_id: Nullable[str]
|
|
173
174
|
workspace_id: str
|
|
174
175
|
r"""The workspace ID of the short link."""
|
|
@@ -193,7 +194,7 @@ class LinkClickedEventLinkTypedDict(TypedDict):
|
|
|
193
194
|
r"""The total dollar value of sales (in cents) generated by the short link."""
|
|
194
195
|
|
|
195
196
|
|
|
196
|
-
class
|
|
197
|
+
class Link(BaseModel):
|
|
197
198
|
id: str
|
|
198
199
|
r"""The unique ID of the short link."""
|
|
199
200
|
|
|
@@ -225,6 +226,8 @@ class LinkClickedEventLink(BaseModel):
|
|
|
225
226
|
|
|
226
227
|
expired_url: Annotated[Nullable[str], pydantic.Field(alias="expiredUrl")]
|
|
227
228
|
|
|
229
|
+
disabled_at: Annotated[str, pydantic.Field(alias="disabledAt")]
|
|
230
|
+
|
|
228
231
|
password: Nullable[str]
|
|
229
232
|
r"""The password required to access the destination URL of the short link."""
|
|
230
233
|
|
|
@@ -290,9 +293,9 @@ class LinkClickedEventLink(BaseModel):
|
|
|
290
293
|
utm_content: Nullable[str]
|
|
291
294
|
r"""The UTM content of the short link."""
|
|
292
295
|
|
|
293
|
-
test_started_at: Annotated[
|
|
296
|
+
test_started_at: Annotated[str, pydantic.Field(alias="testStartedAt")]
|
|
294
297
|
|
|
295
|
-
test_completed_at: Annotated[
|
|
298
|
+
test_completed_at: Annotated[str, pydantic.Field(alias="testCompletedAt")]
|
|
296
299
|
|
|
297
300
|
user_id: Annotated[Nullable[str], pydantic.Field(alias="userId")]
|
|
298
301
|
|
|
@@ -377,8 +380,6 @@ class LinkClickedEventLink(BaseModel):
|
|
|
377
380
|
"utm_term",
|
|
378
381
|
"utm_content",
|
|
379
382
|
"testVariants",
|
|
380
|
-
"testStartedAt",
|
|
381
|
-
"testCompletedAt",
|
|
382
383
|
"userId",
|
|
383
384
|
"tagId",
|
|
384
385
|
]
|
|
@@ -409,15 +410,15 @@ class LinkClickedEventLink(BaseModel):
|
|
|
409
410
|
return m
|
|
410
411
|
|
|
411
412
|
|
|
412
|
-
class
|
|
413
|
-
click:
|
|
414
|
-
link:
|
|
413
|
+
class LinkClickedEventDataTypedDict(TypedDict):
|
|
414
|
+
click: ClickTypedDict
|
|
415
|
+
link: LinkTypedDict
|
|
415
416
|
|
|
416
417
|
|
|
417
|
-
class
|
|
418
|
-
click:
|
|
418
|
+
class LinkClickedEventData(BaseModel):
|
|
419
|
+
click: Click
|
|
419
420
|
|
|
420
|
-
link:
|
|
421
|
+
link: Link
|
|
421
422
|
|
|
422
423
|
|
|
423
424
|
class LinkClickedEventTypedDict(TypedDict):
|
|
@@ -426,7 +427,7 @@ class LinkClickedEventTypedDict(TypedDict):
|
|
|
426
427
|
id: str
|
|
427
428
|
event: LinkClickedEventEvent
|
|
428
429
|
created_at: str
|
|
429
|
-
data:
|
|
430
|
+
data: LinkClickedEventDataTypedDict
|
|
430
431
|
|
|
431
432
|
|
|
432
433
|
class LinkClickedEvent(BaseModel):
|
|
@@ -438,4 +439,4 @@ class LinkClickedEvent(BaseModel):
|
|
|
438
439
|
|
|
439
440
|
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
440
441
|
|
|
441
|
-
data:
|
|
442
|
+
data: LinkClickedEventData
|