dub 0.33.0__py3-none-any.whl → 0.34.1__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/bounties.py +841 -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 +55 -149
- dub/models/components/commissioncreatedevent.py +29 -1
- 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 +223 -22
- dub/models/operations/approvebountysubmission.py +185 -0
- 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/listbountysubmissions.py +212 -0
- dub/models/operations/listdomains.py +1 -1
- dub/models/operations/listevents.py +2016 -21
- dub/models/operations/listpartners.py +4 -4
- dub/models/operations/rejectbountysubmission.py +174 -0
- 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 +7 -65
- dub/partners.py +22 -4
- dub/qr_codes.py +2 -0
- dub/sdk.py +3 -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.1.dist-info}/METADATA +20 -14
- {dub-0.33.0.dist-info → dub-0.34.1.dist-info}/RECORD +61 -60
- 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.1.dist-info}/WHEEL +0 -0
- {dub-0.33.0.dist-info → dub-0.34.1.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,
|
|
@@ -58,13 +47,14 @@ if TYPE_CHECKING:
|
|
|
58
47
|
CommissionCreatedEventData,
|
|
59
48
|
CommissionCreatedEventDataTypedDict,
|
|
60
49
|
CommissionCreatedEventEvent,
|
|
50
|
+
CommissionCreatedEventLink,
|
|
51
|
+
CommissionCreatedEventLinkTypedDict,
|
|
61
52
|
CommissionCreatedEventPartner,
|
|
62
53
|
CommissionCreatedEventPartnerTypedDict,
|
|
63
54
|
CommissionCreatedEventStatus,
|
|
64
55
|
CommissionCreatedEventType,
|
|
65
56
|
CommissionCreatedEventTypedDict,
|
|
66
57
|
)
|
|
67
|
-
from .continentcode import ContinentCode
|
|
68
58
|
from .domainschema import (
|
|
69
59
|
DomainSchema,
|
|
70
60
|
DomainSchemaTypedDict,
|
|
@@ -73,11 +63,11 @@ if TYPE_CHECKING:
|
|
|
73
63
|
)
|
|
74
64
|
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
|
|
75
65
|
from .leadcreatedevent import (
|
|
66
|
+
Customer,
|
|
67
|
+
CustomerTypedDict,
|
|
76
68
|
LeadCreatedEvent,
|
|
77
69
|
LeadCreatedEventClick,
|
|
78
70
|
LeadCreatedEventClickTypedDict,
|
|
79
|
-
LeadCreatedEventCustomer,
|
|
80
|
-
LeadCreatedEventCustomerTypedDict,
|
|
81
71
|
LeadCreatedEventData,
|
|
82
72
|
LeadCreatedEventDataTypedDict,
|
|
83
73
|
LeadCreatedEventEvent,
|
|
@@ -89,31 +79,18 @@ if TYPE_CHECKING:
|
|
|
89
79
|
Partner,
|
|
90
80
|
PartnerTypedDict,
|
|
91
81
|
)
|
|
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
82
|
from .linkclickedevent import (
|
|
106
|
-
|
|
107
|
-
|
|
83
|
+
Click,
|
|
84
|
+
ClickTypedDict,
|
|
85
|
+
Link,
|
|
108
86
|
LinkClickedEvent,
|
|
109
|
-
|
|
110
|
-
|
|
87
|
+
LinkClickedEventData,
|
|
88
|
+
LinkClickedEventDataTypedDict,
|
|
111
89
|
LinkClickedEventEvent,
|
|
112
|
-
LinkClickedEventLink,
|
|
113
|
-
LinkClickedEventLinkTypedDict,
|
|
114
90
|
LinkClickedEventTestVariants,
|
|
115
91
|
LinkClickedEventTestVariantsTypedDict,
|
|
116
92
|
LinkClickedEventTypedDict,
|
|
93
|
+
LinkTypedDict,
|
|
117
94
|
)
|
|
118
95
|
from .linkerrorschema import Code, LinkErrorSchema, LinkErrorSchemaTypedDict
|
|
119
96
|
from .linkschema import (
|
|
@@ -122,13 +99,18 @@ if TYPE_CHECKING:
|
|
|
122
99
|
TestVariants,
|
|
123
100
|
TestVariantsTypedDict,
|
|
124
101
|
)
|
|
125
|
-
from .linktagschema import
|
|
102
|
+
from .linktagschema import LinkTagSchema, LinkTagSchemaColor, LinkTagSchemaTypedDict
|
|
103
|
+
from .linktagschemaoutput import (
|
|
104
|
+
Color,
|
|
105
|
+
LinkTagSchemaOutput,
|
|
106
|
+
LinkTagSchemaOutputTypedDict,
|
|
107
|
+
)
|
|
126
108
|
from .linkwebhookevent import (
|
|
109
|
+
Data,
|
|
110
|
+
DataTypedDict,
|
|
111
|
+
Event,
|
|
112
|
+
EventTypedDict,
|
|
127
113
|
LinkWebhookEvent,
|
|
128
|
-
LinkWebhookEventEvent,
|
|
129
|
-
LinkWebhookEventEventTypedDict,
|
|
130
|
-
LinkWebhookEventLink,
|
|
131
|
-
LinkWebhookEventLinkTypedDict,
|
|
132
114
|
LinkWebhookEventTestVariants,
|
|
133
115
|
LinkWebhookEventTestVariantsTypedDict,
|
|
134
116
|
LinkWebhookEventTypedDict,
|
|
@@ -162,16 +144,17 @@ if TYPE_CHECKING:
|
|
|
162
144
|
)
|
|
163
145
|
from .partnerenrolledevent import (
|
|
164
146
|
BannedReason,
|
|
147
|
+
Links,
|
|
148
|
+
LinksTypedDict,
|
|
165
149
|
PartnerEnrolledEvent,
|
|
166
150
|
PartnerEnrolledEventData,
|
|
167
151
|
PartnerEnrolledEventDataTypedDict,
|
|
168
152
|
PartnerEnrolledEventEvent,
|
|
169
|
-
PartnerEnrolledEventLink,
|
|
170
|
-
PartnerEnrolledEventLinkTypedDict,
|
|
171
153
|
PartnerEnrolledEventTypedDict,
|
|
172
154
|
Status,
|
|
173
155
|
)
|
|
174
156
|
from .salecreatedevent import (
|
|
157
|
+
Sale,
|
|
175
158
|
SaleCreatedEvent,
|
|
176
159
|
SaleCreatedEventClick,
|
|
177
160
|
SaleCreatedEventClickTypedDict,
|
|
@@ -184,26 +167,9 @@ if TYPE_CHECKING:
|
|
|
184
167
|
SaleCreatedEventLinkTypedDict,
|
|
185
168
|
SaleCreatedEventPartner,
|
|
186
169
|
SaleCreatedEventPartnerTypedDict,
|
|
187
|
-
SaleCreatedEventSale,
|
|
188
|
-
SaleCreatedEventSaleTypedDict,
|
|
189
170
|
SaleCreatedEventTestVariants,
|
|
190
171
|
SaleCreatedEventTestVariantsTypedDict,
|
|
191
172
|
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
173
|
SaleTypedDict,
|
|
208
174
|
)
|
|
209
175
|
from .security import Security, SecurityTypedDict
|
|
@@ -255,10 +221,6 @@ __all__ = [
|
|
|
255
221
|
"BannedReason",
|
|
256
222
|
"City",
|
|
257
223
|
"Click",
|
|
258
|
-
"ClickEvent",
|
|
259
|
-
"ClickEventTestVariants",
|
|
260
|
-
"ClickEventTestVariantsTypedDict",
|
|
261
|
-
"ClickEventTypedDict",
|
|
262
224
|
"ClickTypedDict",
|
|
263
225
|
"Code",
|
|
264
226
|
"Color",
|
|
@@ -268,13 +230,14 @@ __all__ = [
|
|
|
268
230
|
"CommissionCreatedEventData",
|
|
269
231
|
"CommissionCreatedEventDataTypedDict",
|
|
270
232
|
"CommissionCreatedEventEvent",
|
|
233
|
+
"CommissionCreatedEventLink",
|
|
234
|
+
"CommissionCreatedEventLinkTypedDict",
|
|
271
235
|
"CommissionCreatedEventPartner",
|
|
272
236
|
"CommissionCreatedEventPartnerTypedDict",
|
|
273
237
|
"CommissionCreatedEventStatus",
|
|
274
238
|
"CommissionCreatedEventType",
|
|
275
239
|
"CommissionCreatedEventTypedDict",
|
|
276
240
|
"Continent",
|
|
277
|
-
"ContinentCode",
|
|
278
241
|
"Customer",
|
|
279
242
|
"CustomerTypedDict",
|
|
280
243
|
"Data",
|
|
@@ -284,13 +247,12 @@ __all__ = [
|
|
|
284
247
|
"Domains",
|
|
285
248
|
"DomainsTypedDict",
|
|
286
249
|
"Event",
|
|
250
|
+
"EventTypedDict",
|
|
287
251
|
"FolderSchema",
|
|
288
252
|
"FolderSchemaTypedDict",
|
|
289
253
|
"LeadCreatedEvent",
|
|
290
254
|
"LeadCreatedEventClick",
|
|
291
255
|
"LeadCreatedEventClickTypedDict",
|
|
292
|
-
"LeadCreatedEventCustomer",
|
|
293
|
-
"LeadCreatedEventCustomerTypedDict",
|
|
294
256
|
"LeadCreatedEventData",
|
|
295
257
|
"LeadCreatedEventDataTypedDict",
|
|
296
258
|
"LeadCreatedEventEvent",
|
|
@@ -299,22 +261,11 @@ __all__ = [
|
|
|
299
261
|
"LeadCreatedEventTestVariants",
|
|
300
262
|
"LeadCreatedEventTestVariantsTypedDict",
|
|
301
263
|
"LeadCreatedEventTypedDict",
|
|
302
|
-
"LeadEvent",
|
|
303
|
-
"LeadEventClick",
|
|
304
|
-
"LeadEventClickTypedDict",
|
|
305
|
-
"LeadEventEvent",
|
|
306
|
-
"LeadEventLink",
|
|
307
|
-
"LeadEventLinkTypedDict",
|
|
308
|
-
"LeadEventTestVariants",
|
|
309
|
-
"LeadEventTestVariantsTypedDict",
|
|
310
|
-
"LeadEventTypedDict",
|
|
311
264
|
"Link",
|
|
312
265
|
"LinkClickedEvent",
|
|
313
|
-
"
|
|
314
|
-
"
|
|
266
|
+
"LinkClickedEventData",
|
|
267
|
+
"LinkClickedEventDataTypedDict",
|
|
315
268
|
"LinkClickedEventEvent",
|
|
316
|
-
"LinkClickedEventLink",
|
|
317
|
-
"LinkClickedEventLinkTypedDict",
|
|
318
269
|
"LinkClickedEventTestVariants",
|
|
319
270
|
"LinkClickedEventTestVariantsTypedDict",
|
|
320
271
|
"LinkClickedEventTypedDict",
|
|
@@ -323,16 +274,17 @@ __all__ = [
|
|
|
323
274
|
"LinkSchema",
|
|
324
275
|
"LinkSchemaTypedDict",
|
|
325
276
|
"LinkTagSchema",
|
|
277
|
+
"LinkTagSchemaColor",
|
|
278
|
+
"LinkTagSchemaOutput",
|
|
279
|
+
"LinkTagSchemaOutputTypedDict",
|
|
326
280
|
"LinkTagSchemaTypedDict",
|
|
327
281
|
"LinkTypedDict",
|
|
328
282
|
"LinkWebhookEvent",
|
|
329
|
-
"LinkWebhookEventEvent",
|
|
330
|
-
"LinkWebhookEventEventTypedDict",
|
|
331
|
-
"LinkWebhookEventLink",
|
|
332
|
-
"LinkWebhookEventLinkTypedDict",
|
|
333
283
|
"LinkWebhookEventTestVariants",
|
|
334
284
|
"LinkWebhookEventTestVariantsTypedDict",
|
|
335
285
|
"LinkWebhookEventTypedDict",
|
|
286
|
+
"Links",
|
|
287
|
+
"LinksTypedDict",
|
|
336
288
|
"One",
|
|
337
289
|
"Partner",
|
|
338
290
|
"PartnerAnalyticsCount",
|
|
@@ -353,11 +305,8 @@ __all__ = [
|
|
|
353
305
|
"PartnerEnrolledEventData",
|
|
354
306
|
"PartnerEnrolledEventDataTypedDict",
|
|
355
307
|
"PartnerEnrolledEventEvent",
|
|
356
|
-
"PartnerEnrolledEventLink",
|
|
357
|
-
"PartnerEnrolledEventLinkTypedDict",
|
|
358
308
|
"PartnerEnrolledEventTypedDict",
|
|
359
309
|
"PartnerTypedDict",
|
|
360
|
-
"PaymentProcessor",
|
|
361
310
|
"Plan",
|
|
362
311
|
"Region",
|
|
363
312
|
"RegisteredDomain",
|
|
@@ -376,22 +325,9 @@ __all__ = [
|
|
|
376
325
|
"SaleCreatedEventLinkTypedDict",
|
|
377
326
|
"SaleCreatedEventPartner",
|
|
378
327
|
"SaleCreatedEventPartnerTypedDict",
|
|
379
|
-
"SaleCreatedEventSale",
|
|
380
|
-
"SaleCreatedEventSaleTypedDict",
|
|
381
328
|
"SaleCreatedEventTestVariants",
|
|
382
329
|
"SaleCreatedEventTestVariantsTypedDict",
|
|
383
330
|
"SaleCreatedEventTypedDict",
|
|
384
|
-
"SaleEvent",
|
|
385
|
-
"SaleEventClick",
|
|
386
|
-
"SaleEventClickTypedDict",
|
|
387
|
-
"SaleEventCustomer",
|
|
388
|
-
"SaleEventCustomerTypedDict",
|
|
389
|
-
"SaleEventEvent",
|
|
390
|
-
"SaleEventLink",
|
|
391
|
-
"SaleEventLinkTypedDict",
|
|
392
|
-
"SaleEventTestVariants",
|
|
393
|
-
"SaleEventTestVariantsTypedDict",
|
|
394
|
-
"SaleEventTypedDict",
|
|
395
331
|
"SaleTypedDict",
|
|
396
332
|
"Security",
|
|
397
333
|
"SecurityTypedDict",
|
|
@@ -444,27 +380,19 @@ _dynamic_imports: dict[str, str] = {
|
|
|
444
380
|
"AnalyticsTriggers": ".analyticstriggers",
|
|
445
381
|
"AnalyticsTriggersTypedDict": ".analyticstriggers",
|
|
446
382
|
"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
383
|
"CommissionCreatedEvent": ".commissioncreatedevent",
|
|
457
384
|
"CommissionCreatedEventCustomer": ".commissioncreatedevent",
|
|
458
385
|
"CommissionCreatedEventCustomerTypedDict": ".commissioncreatedevent",
|
|
459
386
|
"CommissionCreatedEventData": ".commissioncreatedevent",
|
|
460
387
|
"CommissionCreatedEventDataTypedDict": ".commissioncreatedevent",
|
|
461
388
|
"CommissionCreatedEventEvent": ".commissioncreatedevent",
|
|
389
|
+
"CommissionCreatedEventLink": ".commissioncreatedevent",
|
|
390
|
+
"CommissionCreatedEventLinkTypedDict": ".commissioncreatedevent",
|
|
462
391
|
"CommissionCreatedEventPartner": ".commissioncreatedevent",
|
|
463
392
|
"CommissionCreatedEventPartnerTypedDict": ".commissioncreatedevent",
|
|
464
393
|
"CommissionCreatedEventStatus": ".commissioncreatedevent",
|
|
465
394
|
"CommissionCreatedEventType": ".commissioncreatedevent",
|
|
466
395
|
"CommissionCreatedEventTypedDict": ".commissioncreatedevent",
|
|
467
|
-
"ContinentCode": ".continentcode",
|
|
468
396
|
"DomainSchema": ".domainschema",
|
|
469
397
|
"DomainSchemaTypedDict": ".domainschema",
|
|
470
398
|
"RegisteredDomain": ".domainschema",
|
|
@@ -473,11 +401,11 @@ _dynamic_imports: dict[str, str] = {
|
|
|
473
401
|
"FolderSchema": ".folderschema",
|
|
474
402
|
"FolderSchemaTypedDict": ".folderschema",
|
|
475
403
|
"Type": ".folderschema",
|
|
404
|
+
"Customer": ".leadcreatedevent",
|
|
405
|
+
"CustomerTypedDict": ".leadcreatedevent",
|
|
476
406
|
"LeadCreatedEvent": ".leadcreatedevent",
|
|
477
407
|
"LeadCreatedEventClick": ".leadcreatedevent",
|
|
478
408
|
"LeadCreatedEventClickTypedDict": ".leadcreatedevent",
|
|
479
|
-
"LeadCreatedEventCustomer": ".leadcreatedevent",
|
|
480
|
-
"LeadCreatedEventCustomerTypedDict": ".leadcreatedevent",
|
|
481
409
|
"LeadCreatedEventData": ".leadcreatedevent",
|
|
482
410
|
"LeadCreatedEventDataTypedDict": ".leadcreatedevent",
|
|
483
411
|
"LeadCreatedEventEvent": ".leadcreatedevent",
|
|
@@ -488,28 +416,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
488
416
|
"LeadCreatedEventTypedDict": ".leadcreatedevent",
|
|
489
417
|
"Partner": ".leadcreatedevent",
|
|
490
418
|
"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",
|
|
419
|
+
"Click": ".linkclickedevent",
|
|
420
|
+
"ClickTypedDict": ".linkclickedevent",
|
|
421
|
+
"Link": ".linkclickedevent",
|
|
504
422
|
"LinkClickedEvent": ".linkclickedevent",
|
|
505
|
-
"
|
|
506
|
-
"
|
|
423
|
+
"LinkClickedEventData": ".linkclickedevent",
|
|
424
|
+
"LinkClickedEventDataTypedDict": ".linkclickedevent",
|
|
507
425
|
"LinkClickedEventEvent": ".linkclickedevent",
|
|
508
|
-
"LinkClickedEventLink": ".linkclickedevent",
|
|
509
|
-
"LinkClickedEventLinkTypedDict": ".linkclickedevent",
|
|
510
426
|
"LinkClickedEventTestVariants": ".linkclickedevent",
|
|
511
427
|
"LinkClickedEventTestVariantsTypedDict": ".linkclickedevent",
|
|
512
428
|
"LinkClickedEventTypedDict": ".linkclickedevent",
|
|
429
|
+
"LinkTypedDict": ".linkclickedevent",
|
|
513
430
|
"Code": ".linkerrorschema",
|
|
514
431
|
"LinkErrorSchema": ".linkerrorschema",
|
|
515
432
|
"LinkErrorSchemaTypedDict": ".linkerrorschema",
|
|
@@ -517,14 +434,17 @@ _dynamic_imports: dict[str, str] = {
|
|
|
517
434
|
"LinkSchemaTypedDict": ".linkschema",
|
|
518
435
|
"TestVariants": ".linkschema",
|
|
519
436
|
"TestVariantsTypedDict": ".linkschema",
|
|
520
|
-
"Color": ".linktagschema",
|
|
521
437
|
"LinkTagSchema": ".linktagschema",
|
|
438
|
+
"LinkTagSchemaColor": ".linktagschema",
|
|
522
439
|
"LinkTagSchemaTypedDict": ".linktagschema",
|
|
440
|
+
"Color": ".linktagschemaoutput",
|
|
441
|
+
"LinkTagSchemaOutput": ".linktagschemaoutput",
|
|
442
|
+
"LinkTagSchemaOutputTypedDict": ".linktagschemaoutput",
|
|
443
|
+
"Data": ".linkwebhookevent",
|
|
444
|
+
"DataTypedDict": ".linkwebhookevent",
|
|
445
|
+
"Event": ".linkwebhookevent",
|
|
446
|
+
"EventTypedDict": ".linkwebhookevent",
|
|
523
447
|
"LinkWebhookEvent": ".linkwebhookevent",
|
|
524
|
-
"LinkWebhookEventEvent": ".linkwebhookevent",
|
|
525
|
-
"LinkWebhookEventEventTypedDict": ".linkwebhookevent",
|
|
526
|
-
"LinkWebhookEventLink": ".linkwebhookevent",
|
|
527
|
-
"LinkWebhookEventLinkTypedDict": ".linkwebhookevent",
|
|
528
448
|
"LinkWebhookEventTestVariants": ".linkwebhookevent",
|
|
529
449
|
"LinkWebhookEventTestVariantsTypedDict": ".linkwebhookevent",
|
|
530
450
|
"LinkWebhookEventTypedDict": ".linkwebhookevent",
|
|
@@ -548,14 +468,15 @@ _dynamic_imports: dict[str, str] = {
|
|
|
548
468
|
"PartnerApplicationSubmittedEventStatus": ".partnerapplicationsubmittedevent",
|
|
549
469
|
"PartnerApplicationSubmittedEventTypedDict": ".partnerapplicationsubmittedevent",
|
|
550
470
|
"BannedReason": ".partnerenrolledevent",
|
|
471
|
+
"Links": ".partnerenrolledevent",
|
|
472
|
+
"LinksTypedDict": ".partnerenrolledevent",
|
|
551
473
|
"PartnerEnrolledEvent": ".partnerenrolledevent",
|
|
552
474
|
"PartnerEnrolledEventData": ".partnerenrolledevent",
|
|
553
475
|
"PartnerEnrolledEventDataTypedDict": ".partnerenrolledevent",
|
|
554
476
|
"PartnerEnrolledEventEvent": ".partnerenrolledevent",
|
|
555
|
-
"PartnerEnrolledEventLink": ".partnerenrolledevent",
|
|
556
|
-
"PartnerEnrolledEventLinkTypedDict": ".partnerenrolledevent",
|
|
557
477
|
"PartnerEnrolledEventTypedDict": ".partnerenrolledevent",
|
|
558
478
|
"Status": ".partnerenrolledevent",
|
|
479
|
+
"Sale": ".salecreatedevent",
|
|
559
480
|
"SaleCreatedEvent": ".salecreatedevent",
|
|
560
481
|
"SaleCreatedEventClick": ".salecreatedevent",
|
|
561
482
|
"SaleCreatedEventClickTypedDict": ".salecreatedevent",
|
|
@@ -568,25 +489,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
568
489
|
"SaleCreatedEventLinkTypedDict": ".salecreatedevent",
|
|
569
490
|
"SaleCreatedEventPartner": ".salecreatedevent",
|
|
570
491
|
"SaleCreatedEventPartnerTypedDict": ".salecreatedevent",
|
|
571
|
-
"SaleCreatedEventSale": ".salecreatedevent",
|
|
572
|
-
"SaleCreatedEventSaleTypedDict": ".salecreatedevent",
|
|
573
492
|
"SaleCreatedEventTestVariants": ".salecreatedevent",
|
|
574
493
|
"SaleCreatedEventTestVariantsTypedDict": ".salecreatedevent",
|
|
575
494
|
"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",
|
|
495
|
+
"SaleTypedDict": ".salecreatedevent",
|
|
590
496
|
"Security": ".security",
|
|
591
497
|
"SecurityTypedDict": ".security",
|
|
592
498
|
"WebhookEvent": ".webhookevent",
|
|
@@ -200,6 +200,31 @@ class CommissionCreatedEventCustomer(BaseModel):
|
|
|
200
200
|
return m
|
|
201
201
|
|
|
202
202
|
|
|
203
|
+
class CommissionCreatedEventLinkTypedDict(TypedDict):
|
|
204
|
+
id: str
|
|
205
|
+
r"""The unique ID of the short link."""
|
|
206
|
+
short_link: str
|
|
207
|
+
r"""The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`)."""
|
|
208
|
+
domain: str
|
|
209
|
+
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)."""
|
|
210
|
+
key: str
|
|
211
|
+
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class CommissionCreatedEventLink(BaseModel):
|
|
215
|
+
id: str
|
|
216
|
+
r"""The unique ID of the short link."""
|
|
217
|
+
|
|
218
|
+
short_link: Annotated[str, pydantic.Field(alias="shortLink")]
|
|
219
|
+
r"""The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`)."""
|
|
220
|
+
|
|
221
|
+
domain: str
|
|
222
|
+
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)."""
|
|
223
|
+
|
|
224
|
+
key: str
|
|
225
|
+
r"""The short link slug. If not provided, a random 7-character slug will be generated."""
|
|
226
|
+
|
|
227
|
+
|
|
203
228
|
class CommissionCreatedEventDataTypedDict(TypedDict):
|
|
204
229
|
id: str
|
|
205
230
|
r"""The commission's unique ID on Dub."""
|
|
@@ -213,6 +238,7 @@ class CommissionCreatedEventDataTypedDict(TypedDict):
|
|
|
213
238
|
created_at: str
|
|
214
239
|
updated_at: str
|
|
215
240
|
partner: CommissionCreatedEventPartnerTypedDict
|
|
241
|
+
link: Nullable[CommissionCreatedEventLinkTypedDict]
|
|
216
242
|
type: NotRequired[CommissionCreatedEventType]
|
|
217
243
|
user_id: NotRequired[Nullable[str]]
|
|
218
244
|
r"""The user who created the manual commission."""
|
|
@@ -243,6 +269,8 @@ class CommissionCreatedEventData(BaseModel):
|
|
|
243
269
|
|
|
244
270
|
partner: CommissionCreatedEventPartner
|
|
245
271
|
|
|
272
|
+
link: Nullable[CommissionCreatedEventLink]
|
|
273
|
+
|
|
246
274
|
type: Optional[CommissionCreatedEventType] = None
|
|
247
275
|
|
|
248
276
|
user_id: Annotated[OptionalNullable[str], pydantic.Field(alias="userId")] = UNSET
|
|
@@ -253,7 +281,7 @@ class CommissionCreatedEventData(BaseModel):
|
|
|
253
281
|
@model_serializer(mode="wrap")
|
|
254
282
|
def serialize_model(self, handler):
|
|
255
283
|
optional_fields = ["type", "userId", "customer"]
|
|
256
|
-
nullable_fields = ["invoiceId", "description", "userId", "customer"]
|
|
284
|
+
nullable_fields = ["invoiceId", "description", "userId", "customer", "link"]
|
|
257
285
|
null_default_fields = []
|
|
258
286
|
|
|
259
287
|
serialized = handler(self)
|
|
@@ -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")]
|