dub 0.33.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 +2 -0
- dub/basesdk.py +6 -0
- dub/commissions.py +4 -0
- dub/customers.py +8 -0
- dub/domains.py +12 -0
- dub/embed_tokens.py +2 -0
- dub/events.py +2 -0
- dub/folders.py +8 -0
- dub/links.py +20 -0
- dub/models/components/__init__.py +49 -149
- dub/models/components/leadcreatedevent.py +8 -8
- dub/models/components/linkclickedevent.py +12 -12
- dub/models/components/linkerrorschema.py +12 -12
- dub/models/components/linkschema.py +3 -3
- dub/models/components/linktagschema.py +3 -3
- dub/models/components/linktagschemaoutput.py +38 -0
- dub/models/components/linkwebhookevent.py +8 -10
- dub/models/components/partnerenrolledevent.py +4 -4
- dub/models/components/salecreatedevent.py +8 -8
- dub/models/operations/__init__.py +130 -22
- dub/models/operations/createpartner.py +4 -55
- 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/listdomains.py +1 -1
- dub/models/operations/listevents.py +2016 -21
- dub/models/operations/listpartners.py +4 -4
- dub/models/operations/retrieveanalytics.py +16 -5
- dub/models/operations/retrievelinks.py +2 -2
- dub/models/operations/tracklead.py +4 -4
- 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 +22 -4
- dub/qr_codes.py +2 -0
- dub/tags.py +24 -12
- dub/track.py +4 -0
- 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/serializers.py +0 -20
- dub/workspaces.py +4 -0
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/METADATA +14 -14
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/RECORD +55 -58
- dub/models/components/clickevent.py +0 -557
- dub/models/components/continentcode.py +0 -16
- dub/models/components/leadevent.py +0 -681
- dub/models/components/saleevent.py +0 -780
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
- {dub-0.33.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,
|
|
@@ -162,16 +142,17 @@ if TYPE_CHECKING:
|
|
|
162
142
|
)
|
|
163
143
|
from .partnerenrolledevent import (
|
|
164
144
|
BannedReason,
|
|
145
|
+
Links,
|
|
146
|
+
LinksTypedDict,
|
|
165
147
|
PartnerEnrolledEvent,
|
|
166
148
|
PartnerEnrolledEventData,
|
|
167
149
|
PartnerEnrolledEventDataTypedDict,
|
|
168
150
|
PartnerEnrolledEventEvent,
|
|
169
|
-
PartnerEnrolledEventLink,
|
|
170
|
-
PartnerEnrolledEventLinkTypedDict,
|
|
171
151
|
PartnerEnrolledEventTypedDict,
|
|
172
152
|
Status,
|
|
173
153
|
)
|
|
174
154
|
from .salecreatedevent import (
|
|
155
|
+
Sale,
|
|
175
156
|
SaleCreatedEvent,
|
|
176
157
|
SaleCreatedEventClick,
|
|
177
158
|
SaleCreatedEventClickTypedDict,
|
|
@@ -184,26 +165,9 @@ if TYPE_CHECKING:
|
|
|
184
165
|
SaleCreatedEventLinkTypedDict,
|
|
185
166
|
SaleCreatedEventPartner,
|
|
186
167
|
SaleCreatedEventPartnerTypedDict,
|
|
187
|
-
SaleCreatedEventSale,
|
|
188
|
-
SaleCreatedEventSaleTypedDict,
|
|
189
168
|
SaleCreatedEventTestVariants,
|
|
190
169
|
SaleCreatedEventTestVariantsTypedDict,
|
|
191
170
|
SaleCreatedEventTypedDict,
|
|
192
|
-
)
|
|
193
|
-
from .saleevent import (
|
|
194
|
-
PaymentProcessor,
|
|
195
|
-
Sale,
|
|
196
|
-
SaleEvent,
|
|
197
|
-
SaleEventClick,
|
|
198
|
-
SaleEventClickTypedDict,
|
|
199
|
-
SaleEventCustomer,
|
|
200
|
-
SaleEventCustomerTypedDict,
|
|
201
|
-
SaleEventEvent,
|
|
202
|
-
SaleEventLink,
|
|
203
|
-
SaleEventLinkTypedDict,
|
|
204
|
-
SaleEventTestVariants,
|
|
205
|
-
SaleEventTestVariantsTypedDict,
|
|
206
|
-
SaleEventTypedDict,
|
|
207
171
|
SaleTypedDict,
|
|
208
172
|
)
|
|
209
173
|
from .security import Security, SecurityTypedDict
|
|
@@ -255,10 +219,6 @@ __all__ = [
|
|
|
255
219
|
"BannedReason",
|
|
256
220
|
"City",
|
|
257
221
|
"Click",
|
|
258
|
-
"ClickEvent",
|
|
259
|
-
"ClickEventTestVariants",
|
|
260
|
-
"ClickEventTestVariantsTypedDict",
|
|
261
|
-
"ClickEventTypedDict",
|
|
262
222
|
"ClickTypedDict",
|
|
263
223
|
"Code",
|
|
264
224
|
"Color",
|
|
@@ -274,7 +234,6 @@ __all__ = [
|
|
|
274
234
|
"CommissionCreatedEventType",
|
|
275
235
|
"CommissionCreatedEventTypedDict",
|
|
276
236
|
"Continent",
|
|
277
|
-
"ContinentCode",
|
|
278
237
|
"Customer",
|
|
279
238
|
"CustomerTypedDict",
|
|
280
239
|
"Data",
|
|
@@ -284,13 +243,12 @@ __all__ = [
|
|
|
284
243
|
"Domains",
|
|
285
244
|
"DomainsTypedDict",
|
|
286
245
|
"Event",
|
|
246
|
+
"EventTypedDict",
|
|
287
247
|
"FolderSchema",
|
|
288
248
|
"FolderSchemaTypedDict",
|
|
289
249
|
"LeadCreatedEvent",
|
|
290
250
|
"LeadCreatedEventClick",
|
|
291
251
|
"LeadCreatedEventClickTypedDict",
|
|
292
|
-
"LeadCreatedEventCustomer",
|
|
293
|
-
"LeadCreatedEventCustomerTypedDict",
|
|
294
252
|
"LeadCreatedEventData",
|
|
295
253
|
"LeadCreatedEventDataTypedDict",
|
|
296
254
|
"LeadCreatedEventEvent",
|
|
@@ -299,22 +257,11 @@ __all__ = [
|
|
|
299
257
|
"LeadCreatedEventTestVariants",
|
|
300
258
|
"LeadCreatedEventTestVariantsTypedDict",
|
|
301
259
|
"LeadCreatedEventTypedDict",
|
|
302
|
-
"LeadEvent",
|
|
303
|
-
"LeadEventClick",
|
|
304
|
-
"LeadEventClickTypedDict",
|
|
305
|
-
"LeadEventEvent",
|
|
306
|
-
"LeadEventLink",
|
|
307
|
-
"LeadEventLinkTypedDict",
|
|
308
|
-
"LeadEventTestVariants",
|
|
309
|
-
"LeadEventTestVariantsTypedDict",
|
|
310
|
-
"LeadEventTypedDict",
|
|
311
260
|
"Link",
|
|
312
261
|
"LinkClickedEvent",
|
|
313
|
-
"
|
|
314
|
-
"
|
|
262
|
+
"LinkClickedEventData",
|
|
263
|
+
"LinkClickedEventDataTypedDict",
|
|
315
264
|
"LinkClickedEventEvent",
|
|
316
|
-
"LinkClickedEventLink",
|
|
317
|
-
"LinkClickedEventLinkTypedDict",
|
|
318
265
|
"LinkClickedEventTestVariants",
|
|
319
266
|
"LinkClickedEventTestVariantsTypedDict",
|
|
320
267
|
"LinkClickedEventTypedDict",
|
|
@@ -323,16 +270,17 @@ __all__ = [
|
|
|
323
270
|
"LinkSchema",
|
|
324
271
|
"LinkSchemaTypedDict",
|
|
325
272
|
"LinkTagSchema",
|
|
273
|
+
"LinkTagSchemaColor",
|
|
274
|
+
"LinkTagSchemaOutput",
|
|
275
|
+
"LinkTagSchemaOutputTypedDict",
|
|
326
276
|
"LinkTagSchemaTypedDict",
|
|
327
277
|
"LinkTypedDict",
|
|
328
278
|
"LinkWebhookEvent",
|
|
329
|
-
"LinkWebhookEventEvent",
|
|
330
|
-
"LinkWebhookEventEventTypedDict",
|
|
331
|
-
"LinkWebhookEventLink",
|
|
332
|
-
"LinkWebhookEventLinkTypedDict",
|
|
333
279
|
"LinkWebhookEventTestVariants",
|
|
334
280
|
"LinkWebhookEventTestVariantsTypedDict",
|
|
335
281
|
"LinkWebhookEventTypedDict",
|
|
282
|
+
"Links",
|
|
283
|
+
"LinksTypedDict",
|
|
336
284
|
"One",
|
|
337
285
|
"Partner",
|
|
338
286
|
"PartnerAnalyticsCount",
|
|
@@ -353,11 +301,8 @@ __all__ = [
|
|
|
353
301
|
"PartnerEnrolledEventData",
|
|
354
302
|
"PartnerEnrolledEventDataTypedDict",
|
|
355
303
|
"PartnerEnrolledEventEvent",
|
|
356
|
-
"PartnerEnrolledEventLink",
|
|
357
|
-
"PartnerEnrolledEventLinkTypedDict",
|
|
358
304
|
"PartnerEnrolledEventTypedDict",
|
|
359
305
|
"PartnerTypedDict",
|
|
360
|
-
"PaymentProcessor",
|
|
361
306
|
"Plan",
|
|
362
307
|
"Region",
|
|
363
308
|
"RegisteredDomain",
|
|
@@ -376,22 +321,9 @@ __all__ = [
|
|
|
376
321
|
"SaleCreatedEventLinkTypedDict",
|
|
377
322
|
"SaleCreatedEventPartner",
|
|
378
323
|
"SaleCreatedEventPartnerTypedDict",
|
|
379
|
-
"SaleCreatedEventSale",
|
|
380
|
-
"SaleCreatedEventSaleTypedDict",
|
|
381
324
|
"SaleCreatedEventTestVariants",
|
|
382
325
|
"SaleCreatedEventTestVariantsTypedDict",
|
|
383
326
|
"SaleCreatedEventTypedDict",
|
|
384
|
-
"SaleEvent",
|
|
385
|
-
"SaleEventClick",
|
|
386
|
-
"SaleEventClickTypedDict",
|
|
387
|
-
"SaleEventCustomer",
|
|
388
|
-
"SaleEventCustomerTypedDict",
|
|
389
|
-
"SaleEventEvent",
|
|
390
|
-
"SaleEventLink",
|
|
391
|
-
"SaleEventLinkTypedDict",
|
|
392
|
-
"SaleEventTestVariants",
|
|
393
|
-
"SaleEventTestVariantsTypedDict",
|
|
394
|
-
"SaleEventTypedDict",
|
|
395
327
|
"SaleTypedDict",
|
|
396
328
|
"Security",
|
|
397
329
|
"SecurityTypedDict",
|
|
@@ -444,15 +376,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
444
376
|
"AnalyticsTriggers": ".analyticstriggers",
|
|
445
377
|
"AnalyticsTriggersTypedDict": ".analyticstriggers",
|
|
446
378
|
"Trigger": ".analyticstriggers",
|
|
447
|
-
"Click": ".clickevent",
|
|
448
|
-
"ClickEvent": ".clickevent",
|
|
449
|
-
"ClickEventTestVariants": ".clickevent",
|
|
450
|
-
"ClickEventTestVariantsTypedDict": ".clickevent",
|
|
451
|
-
"ClickEventTypedDict": ".clickevent",
|
|
452
|
-
"ClickTypedDict": ".clickevent",
|
|
453
|
-
"Event": ".clickevent",
|
|
454
|
-
"Link": ".clickevent",
|
|
455
|
-
"LinkTypedDict": ".clickevent",
|
|
456
379
|
"CommissionCreatedEvent": ".commissioncreatedevent",
|
|
457
380
|
"CommissionCreatedEventCustomer": ".commissioncreatedevent",
|
|
458
381
|
"CommissionCreatedEventCustomerTypedDict": ".commissioncreatedevent",
|
|
@@ -464,7 +387,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
464
387
|
"CommissionCreatedEventStatus": ".commissioncreatedevent",
|
|
465
388
|
"CommissionCreatedEventType": ".commissioncreatedevent",
|
|
466
389
|
"CommissionCreatedEventTypedDict": ".commissioncreatedevent",
|
|
467
|
-
"ContinentCode": ".continentcode",
|
|
468
390
|
"DomainSchema": ".domainschema",
|
|
469
391
|
"DomainSchemaTypedDict": ".domainschema",
|
|
470
392
|
"RegisteredDomain": ".domainschema",
|
|
@@ -473,11 +395,11 @@ _dynamic_imports: dict[str, str] = {
|
|
|
473
395
|
"FolderSchema": ".folderschema",
|
|
474
396
|
"FolderSchemaTypedDict": ".folderschema",
|
|
475
397
|
"Type": ".folderschema",
|
|
398
|
+
"Customer": ".leadcreatedevent",
|
|
399
|
+
"CustomerTypedDict": ".leadcreatedevent",
|
|
476
400
|
"LeadCreatedEvent": ".leadcreatedevent",
|
|
477
401
|
"LeadCreatedEventClick": ".leadcreatedevent",
|
|
478
402
|
"LeadCreatedEventClickTypedDict": ".leadcreatedevent",
|
|
479
|
-
"LeadCreatedEventCustomer": ".leadcreatedevent",
|
|
480
|
-
"LeadCreatedEventCustomerTypedDict": ".leadcreatedevent",
|
|
481
403
|
"LeadCreatedEventData": ".leadcreatedevent",
|
|
482
404
|
"LeadCreatedEventDataTypedDict": ".leadcreatedevent",
|
|
483
405
|
"LeadCreatedEventEvent": ".leadcreatedevent",
|
|
@@ -488,28 +410,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
488
410
|
"LeadCreatedEventTypedDict": ".leadcreatedevent",
|
|
489
411
|
"Partner": ".leadcreatedevent",
|
|
490
412
|
"PartnerTypedDict": ".leadcreatedevent",
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
"
|
|
494
|
-
"LeadEventClick": ".leadevent",
|
|
495
|
-
"LeadEventClickTypedDict": ".leadevent",
|
|
496
|
-
"LeadEventEvent": ".leadevent",
|
|
497
|
-
"LeadEventLink": ".leadevent",
|
|
498
|
-
"LeadEventLinkTypedDict": ".leadevent",
|
|
499
|
-
"LeadEventTestVariants": ".leadevent",
|
|
500
|
-
"LeadEventTestVariantsTypedDict": ".leadevent",
|
|
501
|
-
"LeadEventTypedDict": ".leadevent",
|
|
502
|
-
"Data": ".linkclickedevent",
|
|
503
|
-
"DataTypedDict": ".linkclickedevent",
|
|
413
|
+
"Click": ".linkclickedevent",
|
|
414
|
+
"ClickTypedDict": ".linkclickedevent",
|
|
415
|
+
"Link": ".linkclickedevent",
|
|
504
416
|
"LinkClickedEvent": ".linkclickedevent",
|
|
505
|
-
"
|
|
506
|
-
"
|
|
417
|
+
"LinkClickedEventData": ".linkclickedevent",
|
|
418
|
+
"LinkClickedEventDataTypedDict": ".linkclickedevent",
|
|
507
419
|
"LinkClickedEventEvent": ".linkclickedevent",
|
|
508
|
-
"LinkClickedEventLink": ".linkclickedevent",
|
|
509
|
-
"LinkClickedEventLinkTypedDict": ".linkclickedevent",
|
|
510
420
|
"LinkClickedEventTestVariants": ".linkclickedevent",
|
|
511
421
|
"LinkClickedEventTestVariantsTypedDict": ".linkclickedevent",
|
|
512
422
|
"LinkClickedEventTypedDict": ".linkclickedevent",
|
|
423
|
+
"LinkTypedDict": ".linkclickedevent",
|
|
513
424
|
"Code": ".linkerrorschema",
|
|
514
425
|
"LinkErrorSchema": ".linkerrorschema",
|
|
515
426
|
"LinkErrorSchemaTypedDict": ".linkerrorschema",
|
|
@@ -517,14 +428,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
517
428
|
"LinkSchemaTypedDict": ".linkschema",
|
|
518
429
|
"TestVariants": ".linkschema",
|
|
519
430
|
"TestVariantsTypedDict": ".linkschema",
|
|
520
|
-
"Color": ".linktagschema",
|
|
521
431
|
"LinkTagSchema": ".linktagschema",
|
|
432
|
+
"LinkTagSchemaColor": ".linktagschema",
|
|
522
433
|
"LinkTagSchemaTypedDict": ".linktagschema",
|
|
434
|
+
"Color": ".linktagschemaoutput",
|
|
435
|
+
"LinkTagSchemaOutput": ".linktagschemaoutput",
|
|
436
|
+
"LinkTagSchemaOutputTypedDict": ".linktagschemaoutput",
|
|
437
|
+
"Data": ".linkwebhookevent",
|
|
438
|
+
"DataTypedDict": ".linkwebhookevent",
|
|
439
|
+
"Event": ".linkwebhookevent",
|
|
440
|
+
"EventTypedDict": ".linkwebhookevent",
|
|
523
441
|
"LinkWebhookEvent": ".linkwebhookevent",
|
|
524
|
-
"LinkWebhookEventEvent": ".linkwebhookevent",
|
|
525
|
-
"LinkWebhookEventEventTypedDict": ".linkwebhookevent",
|
|
526
|
-
"LinkWebhookEventLink": ".linkwebhookevent",
|
|
527
|
-
"LinkWebhookEventLinkTypedDict": ".linkwebhookevent",
|
|
528
442
|
"LinkWebhookEventTestVariants": ".linkwebhookevent",
|
|
529
443
|
"LinkWebhookEventTestVariantsTypedDict": ".linkwebhookevent",
|
|
530
444
|
"LinkWebhookEventTypedDict": ".linkwebhookevent",
|
|
@@ -548,14 +462,15 @@ _dynamic_imports: dict[str, str] = {
|
|
|
548
462
|
"PartnerApplicationSubmittedEventStatus": ".partnerapplicationsubmittedevent",
|
|
549
463
|
"PartnerApplicationSubmittedEventTypedDict": ".partnerapplicationsubmittedevent",
|
|
550
464
|
"BannedReason": ".partnerenrolledevent",
|
|
465
|
+
"Links": ".partnerenrolledevent",
|
|
466
|
+
"LinksTypedDict": ".partnerenrolledevent",
|
|
551
467
|
"PartnerEnrolledEvent": ".partnerenrolledevent",
|
|
552
468
|
"PartnerEnrolledEventData": ".partnerenrolledevent",
|
|
553
469
|
"PartnerEnrolledEventDataTypedDict": ".partnerenrolledevent",
|
|
554
470
|
"PartnerEnrolledEventEvent": ".partnerenrolledevent",
|
|
555
|
-
"PartnerEnrolledEventLink": ".partnerenrolledevent",
|
|
556
|
-
"PartnerEnrolledEventLinkTypedDict": ".partnerenrolledevent",
|
|
557
471
|
"PartnerEnrolledEventTypedDict": ".partnerenrolledevent",
|
|
558
472
|
"Status": ".partnerenrolledevent",
|
|
473
|
+
"Sale": ".salecreatedevent",
|
|
559
474
|
"SaleCreatedEvent": ".salecreatedevent",
|
|
560
475
|
"SaleCreatedEventClick": ".salecreatedevent",
|
|
561
476
|
"SaleCreatedEventClickTypedDict": ".salecreatedevent",
|
|
@@ -568,25 +483,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
568
483
|
"SaleCreatedEventLinkTypedDict": ".salecreatedevent",
|
|
569
484
|
"SaleCreatedEventPartner": ".salecreatedevent",
|
|
570
485
|
"SaleCreatedEventPartnerTypedDict": ".salecreatedevent",
|
|
571
|
-
"SaleCreatedEventSale": ".salecreatedevent",
|
|
572
|
-
"SaleCreatedEventSaleTypedDict": ".salecreatedevent",
|
|
573
486
|
"SaleCreatedEventTestVariants": ".salecreatedevent",
|
|
574
487
|
"SaleCreatedEventTestVariantsTypedDict": ".salecreatedevent",
|
|
575
488
|
"SaleCreatedEventTypedDict": ".salecreatedevent",
|
|
576
|
-
"
|
|
577
|
-
"Sale": ".saleevent",
|
|
578
|
-
"SaleEvent": ".saleevent",
|
|
579
|
-
"SaleEventClick": ".saleevent",
|
|
580
|
-
"SaleEventClickTypedDict": ".saleevent",
|
|
581
|
-
"SaleEventCustomer": ".saleevent",
|
|
582
|
-
"SaleEventCustomerTypedDict": ".saleevent",
|
|
583
|
-
"SaleEventEvent": ".saleevent",
|
|
584
|
-
"SaleEventLink": ".saleevent",
|
|
585
|
-
"SaleEventLinkTypedDict": ".saleevent",
|
|
586
|
-
"SaleEventTestVariants": ".saleevent",
|
|
587
|
-
"SaleEventTestVariantsTypedDict": ".saleevent",
|
|
588
|
-
"SaleEventTypedDict": ".saleevent",
|
|
589
|
-
"SaleTypedDict": ".saleevent",
|
|
489
|
+
"SaleTypedDict": ".salecreatedevent",
|
|
590
490
|
"Security": ".security",
|
|
591
491
|
"SecurityTypedDict": ".security",
|
|
592
492
|
"WebhookEvent": ".webhookevent",
|
|
@@ -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
|
|
|
@@ -582,29 +582,29 @@ class Partner(BaseModel):
|
|
|
582
582
|
|
|
583
583
|
class LeadCreatedEventDataTypedDict(TypedDict):
|
|
584
584
|
event_name: str
|
|
585
|
-
customer:
|
|
585
|
+
customer: CustomerTypedDict
|
|
586
586
|
click: LeadCreatedEventClickTypedDict
|
|
587
587
|
link: LeadCreatedEventLinkTypedDict
|
|
588
|
-
metadata: Nullable[Dict[str, Any]]
|
|
589
588
|
partner: NotRequired[Nullable[PartnerTypedDict]]
|
|
589
|
+
metadata: NotRequired[Nullable[Dict[str, Any]]]
|
|
590
590
|
|
|
591
591
|
|
|
592
592
|
class LeadCreatedEventData(BaseModel):
|
|
593
593
|
event_name: Annotated[str, pydantic.Field(alias="eventName")]
|
|
594
594
|
|
|
595
|
-
customer:
|
|
595
|
+
customer: Customer
|
|
596
596
|
|
|
597
597
|
click: LeadCreatedEventClick
|
|
598
598
|
|
|
599
599
|
link: LeadCreatedEventLink
|
|
600
600
|
|
|
601
|
-
metadata: Nullable[Dict[str, Any]]
|
|
602
|
-
|
|
603
601
|
partner: OptionalNullable[Partner] = UNSET
|
|
604
602
|
|
|
603
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET
|
|
604
|
+
|
|
605
605
|
@model_serializer(mode="wrap")
|
|
606
606
|
def serialize_model(self, handler):
|
|
607
|
-
optional_fields = ["partner"]
|
|
607
|
+
optional_fields = ["partner", "metadata"]
|
|
608
608
|
nullable_fields = ["partner", "metadata"]
|
|
609
609
|
null_default_fields = []
|
|
610
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
|
|
@@ -194,7 +194,7 @@ class LinkClickedEventLinkTypedDict(TypedDict):
|
|
|
194
194
|
r"""The total dollar value of sales (in cents) generated by the short link."""
|
|
195
195
|
|
|
196
196
|
|
|
197
|
-
class
|
|
197
|
+
class Link(BaseModel):
|
|
198
198
|
id: str
|
|
199
199
|
r"""The unique ID of the short link."""
|
|
200
200
|
|
|
@@ -410,15 +410,15 @@ class LinkClickedEventLink(BaseModel):
|
|
|
410
410
|
return m
|
|
411
411
|
|
|
412
412
|
|
|
413
|
-
class
|
|
414
|
-
click:
|
|
415
|
-
link:
|
|
413
|
+
class LinkClickedEventDataTypedDict(TypedDict):
|
|
414
|
+
click: ClickTypedDict
|
|
415
|
+
link: LinkTypedDict
|
|
416
416
|
|
|
417
417
|
|
|
418
|
-
class
|
|
419
|
-
click:
|
|
418
|
+
class LinkClickedEventData(BaseModel):
|
|
419
|
+
click: Click
|
|
420
420
|
|
|
421
|
-
link:
|
|
421
|
+
link: Link
|
|
422
422
|
|
|
423
423
|
|
|
424
424
|
class LinkClickedEventTypedDict(TypedDict):
|
|
@@ -427,7 +427,7 @@ class LinkClickedEventTypedDict(TypedDict):
|
|
|
427
427
|
id: str
|
|
428
428
|
event: LinkClickedEventEvent
|
|
429
429
|
created_at: str
|
|
430
|
-
data:
|
|
430
|
+
data: LinkClickedEventDataTypedDict
|
|
431
431
|
|
|
432
432
|
|
|
433
433
|
class LinkClickedEvent(BaseModel):
|
|
@@ -439,4 +439,4 @@ class LinkClickedEvent(BaseModel):
|
|
|
439
439
|
|
|
440
440
|
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
441
441
|
|
|
442
|
-
data:
|
|
442
|
+
data: LinkClickedEventData
|
|
@@ -3,41 +3,41 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from dub.types import BaseModel
|
|
5
5
|
from enum import Enum
|
|
6
|
-
from typing import Any
|
|
7
|
-
from typing_extensions import
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing_extensions import TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Code(str, Enum):
|
|
11
11
|
r"""The error code."""
|
|
12
12
|
|
|
13
13
|
BAD_REQUEST = "bad_request"
|
|
14
|
-
NOT_FOUND = "not_found"
|
|
15
|
-
INTERNAL_SERVER_ERROR = "internal_server_error"
|
|
16
14
|
UNAUTHORIZED = "unauthorized"
|
|
17
15
|
FORBIDDEN = "forbidden"
|
|
18
|
-
RATE_LIMIT_EXCEEDED = "rate_limit_exceeded"
|
|
19
|
-
INVITE_EXPIRED = "invite_expired"
|
|
20
|
-
INVITE_PENDING = "invite_pending"
|
|
21
16
|
EXCEEDED_LIMIT = "exceeded_limit"
|
|
17
|
+
NOT_FOUND = "not_found"
|
|
22
18
|
CONFLICT = "conflict"
|
|
19
|
+
INVITE_PENDING = "invite_pending"
|
|
20
|
+
INVITE_EXPIRED = "invite_expired"
|
|
23
21
|
UNPROCESSABLE_ENTITY = "unprocessable_entity"
|
|
22
|
+
RATE_LIMIT_EXCEEDED = "rate_limit_exceeded"
|
|
23
|
+
INTERNAL_SERVER_ERROR = "internal_server_error"
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class LinkErrorSchemaTypedDict(TypedDict):
|
|
27
|
+
link: Any
|
|
28
|
+
r"""The link that caused the error."""
|
|
27
29
|
error: str
|
|
28
30
|
r"""The error message."""
|
|
29
31
|
code: Code
|
|
30
32
|
r"""The error code."""
|
|
31
|
-
link: NotRequired[Any]
|
|
32
|
-
r"""The link that caused the error."""
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class LinkErrorSchema(BaseModel):
|
|
36
|
+
link: Any
|
|
37
|
+
r"""The link that caused the error."""
|
|
38
|
+
|
|
36
39
|
error: str
|
|
37
40
|
r"""The error message."""
|
|
38
41
|
|
|
39
42
|
code: Code
|
|
40
43
|
r"""The error code."""
|
|
41
|
-
|
|
42
|
-
link: Optional[Any] = None
|
|
43
|
-
r"""The link that caused the error."""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .linktagschemaoutput import LinkTagSchemaOutput, LinkTagSchemaOutputTypedDict
|
|
5
5
|
from dub.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
6
|
import pydantic
|
|
7
7
|
from pydantic import model_serializer
|
|
@@ -63,7 +63,7 @@ class LinkSchemaTypedDict(TypedDict):
|
|
|
63
63
|
r"""The Android destination URL for the short link for Android device targeting."""
|
|
64
64
|
geo: Nullable[Dict[str, str]]
|
|
65
65
|
r"""Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. See https://d.to/geo for more information."""
|
|
66
|
-
tags: Nullable[List[
|
|
66
|
+
tags: Nullable[List[LinkTagSchemaOutputTypedDict]]
|
|
67
67
|
r"""The tags assigned to the short link."""
|
|
68
68
|
folder_id: Nullable[str]
|
|
69
69
|
r"""The unique ID of the folder assigned to the short link."""
|
|
@@ -187,7 +187,7 @@ class LinkSchema(BaseModel):
|
|
|
187
187
|
geo: Nullable[Dict[str, str]]
|
|
188
188
|
r"""Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. See https://d.to/geo for more information."""
|
|
189
189
|
|
|
190
|
-
tags: Nullable[List[
|
|
190
|
+
tags: Nullable[List[LinkTagSchemaOutput]]
|
|
191
191
|
r"""The tags assigned to the short link."""
|
|
192
192
|
|
|
193
193
|
folder_id: Annotated[Nullable[str], pydantic.Field(alias="folderId")]
|
|
@@ -6,7 +6,7 @@ from enum import Enum
|
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class LinkTagSchemaColor(str, Enum):
|
|
10
10
|
r"""The color of the tag."""
|
|
11
11
|
|
|
12
12
|
RED = "red"
|
|
@@ -23,7 +23,7 @@ class LinkTagSchemaTypedDict(TypedDict):
|
|
|
23
23
|
r"""The unique ID of the tag."""
|
|
24
24
|
name: str
|
|
25
25
|
r"""The name of the tag."""
|
|
26
|
-
color:
|
|
26
|
+
color: LinkTagSchemaColor
|
|
27
27
|
r"""The color of the tag."""
|
|
28
28
|
|
|
29
29
|
|
|
@@ -34,5 +34,5 @@ class LinkTagSchema(BaseModel):
|
|
|
34
34
|
name: str
|
|
35
35
|
r"""The name of the tag."""
|
|
36
36
|
|
|
37
|
-
color:
|
|
37
|
+
color: LinkTagSchemaColor
|
|
38
38
|
r"""The color of the tag."""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from dub.types import BaseModel
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Color(str, Enum):
|
|
10
|
+
r"""The color of the tag."""
|
|
11
|
+
|
|
12
|
+
RED = "red"
|
|
13
|
+
YELLOW = "yellow"
|
|
14
|
+
GREEN = "green"
|
|
15
|
+
BLUE = "blue"
|
|
16
|
+
PURPLE = "purple"
|
|
17
|
+
BROWN = "brown"
|
|
18
|
+
PINK = "pink"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class LinkTagSchemaOutputTypedDict(TypedDict):
|
|
22
|
+
id: str
|
|
23
|
+
r"""The unique ID of the tag."""
|
|
24
|
+
name: str
|
|
25
|
+
r"""The name of the tag."""
|
|
26
|
+
color: Color
|
|
27
|
+
r"""The color of the tag."""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class LinkTagSchemaOutput(BaseModel):
|
|
31
|
+
id: str
|
|
32
|
+
r"""The unique ID of the tag."""
|
|
33
|
+
|
|
34
|
+
name: str
|
|
35
|
+
r"""The name of the tag."""
|
|
36
|
+
|
|
37
|
+
color: Color
|
|
38
|
+
r"""The color of the tag."""
|