dub 0.43.0 → 0.43.2

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.
Files changed (76) hide show
  1. package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
  2. package/dist/commonjs/funcs/qrCodesGet.js +2 -0
  3. package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/models/components/index.d.ts +4 -0
  7. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/index.js +4 -0
  9. package/dist/commonjs/models/components/index.js.map +1 -1
  10. package/dist/commonjs/models/components/leadcreatedevent.d.ts +884 -0
  11. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -0
  12. package/dist/commonjs/models/components/leadcreatedevent.js +1307 -0
  13. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -0
  14. package/dist/commonjs/models/components/linkclickedevent.d.ts +851 -0
  15. package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -0
  16. package/dist/commonjs/models/components/linkclickedevent.js +1278 -0
  17. package/dist/commonjs/models/components/linkclickedevent.js.map +1 -0
  18. package/dist/commonjs/models/components/linkwebhookevent.d.ts +844 -0
  19. package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/linkwebhookevent.js +1272 -0
  21. package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -0
  22. package/dist/commonjs/models/components/salecreatedevent.d.ts +915 -0
  23. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/salecreatedevent.js +1334 -0
  25. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -0
  26. package/dist/commonjs/models/components/webhookevent.d.ts +6 -3470
  27. package/dist/commonjs/models/components/webhookevent.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/webhookevent.js +13 -5088
  29. package/dist/commonjs/models/components/webhookevent.js.map +1 -1
  30. package/dist/commonjs/models/operations/getqrcode.d.ts +10 -0
  31. package/dist/commonjs/models/operations/getqrcode.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/getqrcode.js +4 -0
  33. package/dist/commonjs/models/operations/getqrcode.js.map +1 -1
  34. package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
  35. package/dist/esm/funcs/qrCodesGet.js +2 -0
  36. package/dist/esm/funcs/qrCodesGet.js.map +1 -1
  37. package/dist/esm/lib/config.d.ts +2 -2
  38. package/dist/esm/lib/config.js +2 -2
  39. package/dist/esm/models/components/index.d.ts +4 -0
  40. package/dist/esm/models/components/index.d.ts.map +1 -1
  41. package/dist/esm/models/components/index.js +4 -0
  42. package/dist/esm/models/components/index.js.map +1 -1
  43. package/dist/esm/models/components/leadcreatedevent.d.ts +884 -0
  44. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -0
  45. package/dist/esm/models/components/leadcreatedevent.js +1281 -0
  46. package/dist/esm/models/components/leadcreatedevent.js.map +1 -0
  47. package/dist/esm/models/components/linkclickedevent.d.ts +851 -0
  48. package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -0
  49. package/dist/esm/models/components/linkclickedevent.js +1252 -0
  50. package/dist/esm/models/components/linkclickedevent.js.map +1 -0
  51. package/dist/esm/models/components/linkwebhookevent.d.ts +844 -0
  52. package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -0
  53. package/dist/esm/models/components/linkwebhookevent.js +1246 -0
  54. package/dist/esm/models/components/linkwebhookevent.js.map +1 -0
  55. package/dist/esm/models/components/salecreatedevent.d.ts +915 -0
  56. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -0
  57. package/dist/esm/models/components/salecreatedevent.js +1308 -0
  58. package/dist/esm/models/components/salecreatedevent.js.map +1 -0
  59. package/dist/esm/models/components/webhookevent.d.ts +6 -3470
  60. package/dist/esm/models/components/webhookevent.d.ts.map +1 -1
  61. package/dist/esm/models/components/webhookevent.js +12 -5086
  62. package/dist/esm/models/components/webhookevent.js.map +1 -1
  63. package/dist/esm/models/operations/getqrcode.d.ts +10 -0
  64. package/dist/esm/models/operations/getqrcode.d.ts.map +1 -1
  65. package/dist/esm/models/operations/getqrcode.js +4 -0
  66. package/dist/esm/models/operations/getqrcode.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/funcs/qrCodesGet.ts +2 -0
  69. package/src/lib/config.ts +2 -2
  70. package/src/models/components/index.ts +4 -0
  71. package/src/models/components/leadcreatedevent.ts +2141 -0
  72. package/src/models/components/linkclickedevent.ts +2081 -0
  73. package/src/models/components/linkwebhookevent.ts +2028 -0
  74. package/src/models/components/salecreatedevent.ts +2197 -0
  75. package/src/models/components/webhookevent.ts +40 -8391
  76. package/src/models/operations/getqrcode.ts +14 -0
@@ -1,3480 +1,16 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { TagSchema, TagSchema$Outbound } from "./tagschema.js";
4
- export declare const WebhookEvent4Event: {
5
- readonly SaleCreated: "sale.created";
6
- };
7
- export type WebhookEvent4Event = ClosedEnum<typeof WebhookEvent4Event>;
8
- export type WebhookEvent4Customer = {
9
- id: string;
10
- name: string | null;
11
- email: string | null;
12
- avatar: string | null;
13
- };
14
- export type WebhookEvent4Click = {
15
- id: string;
16
- url: string;
17
- continent: string;
18
- country: string;
19
- city: string;
20
- device: string;
21
- browser: string;
22
- os: string;
23
- referer: string;
24
- refererUrl: string;
25
- qr?: boolean | undefined;
26
- ip: string;
27
- };
28
- /**
29
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
30
- */
31
- export type WebhookEvent4Geo = {
32
- af?: string | undefined;
33
- al?: string | undefined;
34
- dz?: string | undefined;
35
- as?: string | undefined;
36
- ad?: string | undefined;
37
- ao?: string | undefined;
38
- ai?: string | undefined;
39
- aq?: string | undefined;
40
- ag?: string | undefined;
41
- ar?: string | undefined;
42
- am?: string | undefined;
43
- aw?: string | undefined;
44
- au?: string | undefined;
45
- at?: string | undefined;
46
- az?: string | undefined;
47
- bs?: string | undefined;
48
- bh?: string | undefined;
49
- bd?: string | undefined;
50
- bb?: string | undefined;
51
- by?: string | undefined;
52
- be?: string | undefined;
53
- bz?: string | undefined;
54
- bj?: string | undefined;
55
- bm?: string | undefined;
56
- bt?: string | undefined;
57
- bo?: string | undefined;
58
- ba?: string | undefined;
59
- bw?: string | undefined;
60
- bv?: string | undefined;
61
- br?: string | undefined;
62
- io?: string | undefined;
63
- bn?: string | undefined;
64
- bg?: string | undefined;
65
- bf?: string | undefined;
66
- bi?: string | undefined;
67
- kh?: string | undefined;
68
- cm?: string | undefined;
69
- ca?: string | undefined;
70
- cv?: string | undefined;
71
- ky?: string | undefined;
72
- cf?: string | undefined;
73
- td?: string | undefined;
74
- cl?: string | undefined;
75
- cn?: string | undefined;
76
- cx?: string | undefined;
77
- cc?: string | undefined;
78
- co?: string | undefined;
79
- km?: string | undefined;
80
- cg?: string | undefined;
81
- cd?: string | undefined;
82
- ck?: string | undefined;
83
- cr?: string | undefined;
84
- ci?: string | undefined;
85
- hr?: string | undefined;
86
- cu?: string | undefined;
87
- cy?: string | undefined;
88
- cz?: string | undefined;
89
- dk?: string | undefined;
90
- dj?: string | undefined;
91
- dm?: string | undefined;
92
- do?: string | undefined;
93
- ec?: string | undefined;
94
- eg?: string | undefined;
95
- sv?: string | undefined;
96
- gq?: string | undefined;
97
- er?: string | undefined;
98
- ee?: string | undefined;
99
- et?: string | undefined;
100
- fk?: string | undefined;
101
- fo?: string | undefined;
102
- fj?: string | undefined;
103
- fi?: string | undefined;
104
- fr?: string | undefined;
105
- gf?: string | undefined;
106
- pf?: string | undefined;
107
- tf?: string | undefined;
108
- ga?: string | undefined;
109
- gm?: string | undefined;
110
- ge?: string | undefined;
111
- de?: string | undefined;
112
- gh?: string | undefined;
113
- gi?: string | undefined;
114
- gr?: string | undefined;
115
- gl?: string | undefined;
116
- gd?: string | undefined;
117
- gp?: string | undefined;
118
- gu?: string | undefined;
119
- gt?: string | undefined;
120
- gn?: string | undefined;
121
- gw?: string | undefined;
122
- gy?: string | undefined;
123
- ht?: string | undefined;
124
- hm?: string | undefined;
125
- va?: string | undefined;
126
- hn?: string | undefined;
127
- hk?: string | undefined;
128
- hu?: string | undefined;
129
- is?: string | undefined;
130
- in?: string | undefined;
131
- id?: string | undefined;
132
- ir?: string | undefined;
133
- iq?: string | undefined;
134
- ie?: string | undefined;
135
- il?: string | undefined;
136
- it?: string | undefined;
137
- jm?: string | undefined;
138
- jp?: string | undefined;
139
- jo?: string | undefined;
140
- kz?: string | undefined;
141
- ke?: string | undefined;
142
- ki?: string | undefined;
143
- kp?: string | undefined;
144
- kr?: string | undefined;
145
- kw?: string | undefined;
146
- kg?: string | undefined;
147
- la?: string | undefined;
148
- lv?: string | undefined;
149
- lb?: string | undefined;
150
- ls?: string | undefined;
151
- lr?: string | undefined;
152
- ly?: string | undefined;
153
- li?: string | undefined;
154
- lt?: string | undefined;
155
- lu?: string | undefined;
156
- mo?: string | undefined;
157
- mg?: string | undefined;
158
- mw?: string | undefined;
159
- my?: string | undefined;
160
- mv?: string | undefined;
161
- ml?: string | undefined;
162
- mt?: string | undefined;
163
- mh?: string | undefined;
164
- mq?: string | undefined;
165
- mr?: string | undefined;
166
- mu?: string | undefined;
167
- yt?: string | undefined;
168
- mx?: string | undefined;
169
- fm?: string | undefined;
170
- md?: string | undefined;
171
- mc?: string | undefined;
172
- mn?: string | undefined;
173
- ms?: string | undefined;
174
- ma?: string | undefined;
175
- mz?: string | undefined;
176
- mm?: string | undefined;
177
- na?: string | undefined;
178
- nr?: string | undefined;
179
- np?: string | undefined;
180
- nl?: string | undefined;
181
- nc?: string | undefined;
182
- nz?: string | undefined;
183
- ni?: string | undefined;
184
- ne?: string | undefined;
185
- ng?: string | undefined;
186
- nu?: string | undefined;
187
- nf?: string | undefined;
188
- mk?: string | undefined;
189
- mp?: string | undefined;
190
- no?: string | undefined;
191
- om?: string | undefined;
192
- pk?: string | undefined;
193
- pw?: string | undefined;
194
- ps?: string | undefined;
195
- pa?: string | undefined;
196
- pg?: string | undefined;
197
- py?: string | undefined;
198
- pe?: string | undefined;
199
- ph?: string | undefined;
200
- pn?: string | undefined;
201
- pl?: string | undefined;
202
- pt?: string | undefined;
203
- pr?: string | undefined;
204
- qa?: string | undefined;
205
- re?: string | undefined;
206
- ro?: string | undefined;
207
- ru?: string | undefined;
208
- rw?: string | undefined;
209
- sh?: string | undefined;
210
- kn?: string | undefined;
211
- lc?: string | undefined;
212
- pm?: string | undefined;
213
- vc?: string | undefined;
214
- ws?: string | undefined;
215
- sm?: string | undefined;
216
- st?: string | undefined;
217
- sa?: string | undefined;
218
- sn?: string | undefined;
219
- sc?: string | undefined;
220
- sl?: string | undefined;
221
- sg?: string | undefined;
222
- sk?: string | undefined;
223
- si?: string | undefined;
224
- sb?: string | undefined;
225
- so?: string | undefined;
226
- za?: string | undefined;
227
- gs?: string | undefined;
228
- es?: string | undefined;
229
- lk?: string | undefined;
230
- sd?: string | undefined;
231
- sr?: string | undefined;
232
- sj?: string | undefined;
233
- sz?: string | undefined;
234
- se?: string | undefined;
235
- ch?: string | undefined;
236
- sy?: string | undefined;
237
- tw?: string | undefined;
238
- tj?: string | undefined;
239
- tz?: string | undefined;
240
- th?: string | undefined;
241
- tl?: string | undefined;
242
- tg?: string | undefined;
243
- tk?: string | undefined;
244
- to?: string | undefined;
245
- tt?: string | undefined;
246
- tn?: string | undefined;
247
- tr?: string | undefined;
248
- tm?: string | undefined;
249
- tc?: string | undefined;
250
- tv?: string | undefined;
251
- ug?: string | undefined;
252
- ua?: string | undefined;
253
- ae?: string | undefined;
254
- gb?: string | undefined;
255
- us?: string | undefined;
256
- um?: string | undefined;
257
- uy?: string | undefined;
258
- uz?: string | undefined;
259
- vu?: string | undefined;
260
- ve?: string | undefined;
261
- vn?: string | undefined;
262
- vg?: string | undefined;
263
- vi?: string | undefined;
264
- wf?: string | undefined;
265
- eh?: string | undefined;
266
- ye?: string | undefined;
267
- zm?: string | undefined;
268
- zw?: string | undefined;
269
- ax?: string | undefined;
270
- bq?: string | undefined;
271
- cw?: string | undefined;
272
- gg?: string | undefined;
273
- im?: string | undefined;
274
- je?: string | undefined;
275
- me?: string | undefined;
276
- bl?: string | undefined;
277
- mf?: string | undefined;
278
- rs?: string | undefined;
279
- sx?: string | undefined;
280
- ss?: string | undefined;
281
- xk?: string | undefined;
282
- };
283
- export type WebhookEvent4Link = {
284
- /**
285
- * The unique ID of the short link.
286
- */
287
- id: string;
288
- /**
289
- * 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).
290
- */
291
- domain: string;
292
- /**
293
- * The short link slug. If not provided, a random 7-character slug will be generated.
294
- */
295
- key: string;
296
- url: string;
297
- trackConversion?: boolean | undefined;
298
- /**
299
- * This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.
300
- */
301
- externalId: string | null;
302
- /**
303
- * The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
304
- */
305
- identifier: string | null;
306
- archived?: boolean | undefined;
307
- expiresAt: string;
308
- /**
309
- * The URL to redirect to when the short link has expired.
310
- */
311
- expiredUrl: string | null;
312
- /**
313
- * The password required to access the destination URL of the short link.
314
- */
315
- password: string | null;
316
- proxy?: boolean | undefined;
317
- /**
318
- * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
319
- */
320
- title: string | null;
321
- /**
322
- * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
323
- */
324
- description: string | null;
325
- /**
326
- * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
327
- */
328
- image: string | null;
329
- /**
330
- * The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
331
- */
332
- video: string | null;
333
- rewrite?: boolean | undefined;
334
- doIndex?: boolean | undefined;
335
- /**
336
- * The iOS destination URL for the short link for iOS device targeting.
337
- */
338
- ios: string | null;
339
- /**
340
- * The Android destination URL for the short link for Android device targeting.
341
- */
342
- android: string | null;
343
- /**
344
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
345
- */
346
- geo: WebhookEvent4Geo | null;
347
- publicStats?: boolean | undefined;
348
- /**
349
- * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
350
- *
351
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
352
- */
353
- tagId: string | null;
354
- /**
355
- * The tags assigned to the short link.
356
- */
357
- tags: Array<TagSchema> | null;
358
- /**
359
- * The comments for the short link.
360
- */
361
- comments: string | null;
362
- /**
363
- * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
364
- */
365
- shortLink: string;
366
- /**
367
- * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
368
- */
369
- qrCode: string;
370
- /**
371
- * The UTM source of the short link.
372
- */
373
- utmSource: string | null;
374
- /**
375
- * The UTM medium of the short link.
376
- */
377
- utmMedium: string | null;
378
- /**
379
- * The UTM campaign of the short link.
380
- */
381
- utmCampaign: string | null;
382
- /**
383
- * The UTM term of the short link.
384
- */
385
- utmTerm: string | null;
386
- /**
387
- * The UTM content of the short link.
388
- */
389
- utmContent: string | null;
390
- userId: string | null;
391
- /**
392
- * The workspace ID of the short link.
393
- */
394
- workspaceId: string;
395
- /**
396
- * The number of clicks on the short link.
397
- */
398
- clicks?: number | undefined;
399
- lastClicked: string;
400
- /**
401
- * [BETA]: The number of leads the short links has generated.
402
- */
403
- leads?: number | undefined;
404
- /**
405
- * [BETA]: The number of sales the short links has generated.
406
- */
407
- sales?: number | undefined;
408
- /**
409
- * [BETA]: The total dollar amount of sales the short links has generated (in cents).
410
- */
411
- saleAmount?: number | undefined;
412
- createdAt: string;
413
- updatedAt: string;
414
- /**
415
- * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
416
- *
417
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
418
- */
419
- projectId: string;
420
- };
421
- export type WebhookEventSale = {
422
- amount: number;
423
- currency: string;
424
- paymentProcessor: string;
425
- invoiceId: string | null;
426
- };
427
- export type WebhookEvent4Data = {
428
- eventName: string;
429
- customer: WebhookEvent4Customer;
430
- click: WebhookEvent4Click;
431
- link: WebhookEvent4Link;
432
- sale: WebhookEventSale;
433
- };
434
- export type Four = {
435
- id: string;
436
- event: WebhookEvent4Event;
437
- createdAt: string;
438
- data: WebhookEvent4Data;
439
- };
440
- export declare const WebhookEvent3Event: {
441
- readonly LeadCreated: "lead.created";
442
- };
443
- export type WebhookEvent3Event = ClosedEnum<typeof WebhookEvent3Event>;
444
- export type WebhookEventCustomer = {
445
- id: string;
446
- name: string | null;
447
- email: string | null;
448
- avatar: string | null;
449
- };
450
- export type WebhookEvent3Click = {
451
- id: string;
452
- url: string;
453
- continent: string;
454
- country: string;
455
- city: string;
456
- device: string;
457
- browser: string;
458
- os: string;
459
- referer: string;
460
- refererUrl: string;
461
- qr?: boolean | undefined;
462
- ip: string;
463
- };
464
- /**
465
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
466
- */
467
- export type WebhookEvent3Geo = {
468
- af?: string | undefined;
469
- al?: string | undefined;
470
- dz?: string | undefined;
471
- as?: string | undefined;
472
- ad?: string | undefined;
473
- ao?: string | undefined;
474
- ai?: string | undefined;
475
- aq?: string | undefined;
476
- ag?: string | undefined;
477
- ar?: string | undefined;
478
- am?: string | undefined;
479
- aw?: string | undefined;
480
- au?: string | undefined;
481
- at?: string | undefined;
482
- az?: string | undefined;
483
- bs?: string | undefined;
484
- bh?: string | undefined;
485
- bd?: string | undefined;
486
- bb?: string | undefined;
487
- by?: string | undefined;
488
- be?: string | undefined;
489
- bz?: string | undefined;
490
- bj?: string | undefined;
491
- bm?: string | undefined;
492
- bt?: string | undefined;
493
- bo?: string | undefined;
494
- ba?: string | undefined;
495
- bw?: string | undefined;
496
- bv?: string | undefined;
497
- br?: string | undefined;
498
- io?: string | undefined;
499
- bn?: string | undefined;
500
- bg?: string | undefined;
501
- bf?: string | undefined;
502
- bi?: string | undefined;
503
- kh?: string | undefined;
504
- cm?: string | undefined;
505
- ca?: string | undefined;
506
- cv?: string | undefined;
507
- ky?: string | undefined;
508
- cf?: string | undefined;
509
- td?: string | undefined;
510
- cl?: string | undefined;
511
- cn?: string | undefined;
512
- cx?: string | undefined;
513
- cc?: string | undefined;
514
- co?: string | undefined;
515
- km?: string | undefined;
516
- cg?: string | undefined;
517
- cd?: string | undefined;
518
- ck?: string | undefined;
519
- cr?: string | undefined;
520
- ci?: string | undefined;
521
- hr?: string | undefined;
522
- cu?: string | undefined;
523
- cy?: string | undefined;
524
- cz?: string | undefined;
525
- dk?: string | undefined;
526
- dj?: string | undefined;
527
- dm?: string | undefined;
528
- do?: string | undefined;
529
- ec?: string | undefined;
530
- eg?: string | undefined;
531
- sv?: string | undefined;
532
- gq?: string | undefined;
533
- er?: string | undefined;
534
- ee?: string | undefined;
535
- et?: string | undefined;
536
- fk?: string | undefined;
537
- fo?: string | undefined;
538
- fj?: string | undefined;
539
- fi?: string | undefined;
540
- fr?: string | undefined;
541
- gf?: string | undefined;
542
- pf?: string | undefined;
543
- tf?: string | undefined;
544
- ga?: string | undefined;
545
- gm?: string | undefined;
546
- ge?: string | undefined;
547
- de?: string | undefined;
548
- gh?: string | undefined;
549
- gi?: string | undefined;
550
- gr?: string | undefined;
551
- gl?: string | undefined;
552
- gd?: string | undefined;
553
- gp?: string | undefined;
554
- gu?: string | undefined;
555
- gt?: string | undefined;
556
- gn?: string | undefined;
557
- gw?: string | undefined;
558
- gy?: string | undefined;
559
- ht?: string | undefined;
560
- hm?: string | undefined;
561
- va?: string | undefined;
562
- hn?: string | undefined;
563
- hk?: string | undefined;
564
- hu?: string | undefined;
565
- is?: string | undefined;
566
- in?: string | undefined;
567
- id?: string | undefined;
568
- ir?: string | undefined;
569
- iq?: string | undefined;
570
- ie?: string | undefined;
571
- il?: string | undefined;
572
- it?: string | undefined;
573
- jm?: string | undefined;
574
- jp?: string | undefined;
575
- jo?: string | undefined;
576
- kz?: string | undefined;
577
- ke?: string | undefined;
578
- ki?: string | undefined;
579
- kp?: string | undefined;
580
- kr?: string | undefined;
581
- kw?: string | undefined;
582
- kg?: string | undefined;
583
- la?: string | undefined;
584
- lv?: string | undefined;
585
- lb?: string | undefined;
586
- ls?: string | undefined;
587
- lr?: string | undefined;
588
- ly?: string | undefined;
589
- li?: string | undefined;
590
- lt?: string | undefined;
591
- lu?: string | undefined;
592
- mo?: string | undefined;
593
- mg?: string | undefined;
594
- mw?: string | undefined;
595
- my?: string | undefined;
596
- mv?: string | undefined;
597
- ml?: string | undefined;
598
- mt?: string | undefined;
599
- mh?: string | undefined;
600
- mq?: string | undefined;
601
- mr?: string | undefined;
602
- mu?: string | undefined;
603
- yt?: string | undefined;
604
- mx?: string | undefined;
605
- fm?: string | undefined;
606
- md?: string | undefined;
607
- mc?: string | undefined;
608
- mn?: string | undefined;
609
- ms?: string | undefined;
610
- ma?: string | undefined;
611
- mz?: string | undefined;
612
- mm?: string | undefined;
613
- na?: string | undefined;
614
- nr?: string | undefined;
615
- np?: string | undefined;
616
- nl?: string | undefined;
617
- nc?: string | undefined;
618
- nz?: string | undefined;
619
- ni?: string | undefined;
620
- ne?: string | undefined;
621
- ng?: string | undefined;
622
- nu?: string | undefined;
623
- nf?: string | undefined;
624
- mk?: string | undefined;
625
- mp?: string | undefined;
626
- no?: string | undefined;
627
- om?: string | undefined;
628
- pk?: string | undefined;
629
- pw?: string | undefined;
630
- ps?: string | undefined;
631
- pa?: string | undefined;
632
- pg?: string | undefined;
633
- py?: string | undefined;
634
- pe?: string | undefined;
635
- ph?: string | undefined;
636
- pn?: string | undefined;
637
- pl?: string | undefined;
638
- pt?: string | undefined;
639
- pr?: string | undefined;
640
- qa?: string | undefined;
641
- re?: string | undefined;
642
- ro?: string | undefined;
643
- ru?: string | undefined;
644
- rw?: string | undefined;
645
- sh?: string | undefined;
646
- kn?: string | undefined;
647
- lc?: string | undefined;
648
- pm?: string | undefined;
649
- vc?: string | undefined;
650
- ws?: string | undefined;
651
- sm?: string | undefined;
652
- st?: string | undefined;
653
- sa?: string | undefined;
654
- sn?: string | undefined;
655
- sc?: string | undefined;
656
- sl?: string | undefined;
657
- sg?: string | undefined;
658
- sk?: string | undefined;
659
- si?: string | undefined;
660
- sb?: string | undefined;
661
- so?: string | undefined;
662
- za?: string | undefined;
663
- gs?: string | undefined;
664
- es?: string | undefined;
665
- lk?: string | undefined;
666
- sd?: string | undefined;
667
- sr?: string | undefined;
668
- sj?: string | undefined;
669
- sz?: string | undefined;
670
- se?: string | undefined;
671
- ch?: string | undefined;
672
- sy?: string | undefined;
673
- tw?: string | undefined;
674
- tj?: string | undefined;
675
- tz?: string | undefined;
676
- th?: string | undefined;
677
- tl?: string | undefined;
678
- tg?: string | undefined;
679
- tk?: string | undefined;
680
- to?: string | undefined;
681
- tt?: string | undefined;
682
- tn?: string | undefined;
683
- tr?: string | undefined;
684
- tm?: string | undefined;
685
- tc?: string | undefined;
686
- tv?: string | undefined;
687
- ug?: string | undefined;
688
- ua?: string | undefined;
689
- ae?: string | undefined;
690
- gb?: string | undefined;
691
- us?: string | undefined;
692
- um?: string | undefined;
693
- uy?: string | undefined;
694
- uz?: string | undefined;
695
- vu?: string | undefined;
696
- ve?: string | undefined;
697
- vn?: string | undefined;
698
- vg?: string | undefined;
699
- vi?: string | undefined;
700
- wf?: string | undefined;
701
- eh?: string | undefined;
702
- ye?: string | undefined;
703
- zm?: string | undefined;
704
- zw?: string | undefined;
705
- ax?: string | undefined;
706
- bq?: string | undefined;
707
- cw?: string | undefined;
708
- gg?: string | undefined;
709
- im?: string | undefined;
710
- je?: string | undefined;
711
- me?: string | undefined;
712
- bl?: string | undefined;
713
- mf?: string | undefined;
714
- rs?: string | undefined;
715
- sx?: string | undefined;
716
- ss?: string | undefined;
717
- xk?: string | undefined;
718
- };
719
- export type WebhookEvent3Link = {
720
- /**
721
- * The unique ID of the short link.
722
- */
723
- id: string;
724
- /**
725
- * 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).
726
- */
727
- domain: string;
728
- /**
729
- * The short link slug. If not provided, a random 7-character slug will be generated.
730
- */
731
- key: string;
732
- url: string;
733
- trackConversion?: boolean | undefined;
734
- /**
735
- * This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.
736
- */
737
- externalId: string | null;
738
- /**
739
- * The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
740
- */
741
- identifier: string | null;
742
- archived?: boolean | undefined;
743
- expiresAt: string;
744
- /**
745
- * The URL to redirect to when the short link has expired.
746
- */
747
- expiredUrl: string | null;
748
- /**
749
- * The password required to access the destination URL of the short link.
750
- */
751
- password: string | null;
752
- proxy?: boolean | undefined;
753
- /**
754
- * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
755
- */
756
- title: string | null;
757
- /**
758
- * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
759
- */
760
- description: string | null;
761
- /**
762
- * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
763
- */
764
- image: string | null;
765
- /**
766
- * The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
767
- */
768
- video: string | null;
769
- rewrite?: boolean | undefined;
770
- doIndex?: boolean | undefined;
771
- /**
772
- * The iOS destination URL for the short link for iOS device targeting.
773
- */
774
- ios: string | null;
775
- /**
776
- * The Android destination URL for the short link for Android device targeting.
777
- */
778
- android: string | null;
779
- /**
780
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
781
- */
782
- geo: WebhookEvent3Geo | null;
783
- publicStats?: boolean | undefined;
784
- /**
785
- * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
786
- *
787
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
788
- */
789
- tagId: string | null;
790
- /**
791
- * The tags assigned to the short link.
792
- */
793
- tags: Array<TagSchema> | null;
794
- /**
795
- * The comments for the short link.
796
- */
797
- comments: string | null;
798
- /**
799
- * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
800
- */
801
- shortLink: string;
802
- /**
803
- * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
804
- */
805
- qrCode: string;
806
- /**
807
- * The UTM source of the short link.
808
- */
809
- utmSource: string | null;
810
- /**
811
- * The UTM medium of the short link.
812
- */
813
- utmMedium: string | null;
814
- /**
815
- * The UTM campaign of the short link.
816
- */
817
- utmCampaign: string | null;
818
- /**
819
- * The UTM term of the short link.
820
- */
821
- utmTerm: string | null;
822
- /**
823
- * The UTM content of the short link.
824
- */
825
- utmContent: string | null;
826
- userId: string | null;
827
- /**
828
- * The workspace ID of the short link.
829
- */
830
- workspaceId: string;
831
- /**
832
- * The number of clicks on the short link.
833
- */
834
- clicks?: number | undefined;
835
- lastClicked: string;
836
- /**
837
- * [BETA]: The number of leads the short links has generated.
838
- */
839
- leads?: number | undefined;
840
- /**
841
- * [BETA]: The number of sales the short links has generated.
842
- */
843
- sales?: number | undefined;
844
- /**
845
- * [BETA]: The total dollar amount of sales the short links has generated (in cents).
846
- */
847
- saleAmount?: number | undefined;
848
- createdAt: string;
849
- updatedAt: string;
850
- /**
851
- * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
852
- *
853
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
854
- */
855
- projectId: string;
856
- };
857
- export type WebhookEvent3Data = {
858
- eventName: string;
859
- customer: WebhookEventCustomer;
860
- click: WebhookEvent3Click;
861
- link: WebhookEvent3Link;
862
- };
863
- export type Three = {
864
- id: string;
865
- event: WebhookEvent3Event;
866
- createdAt: string;
867
- data: WebhookEvent3Data;
868
- };
869
- export declare const WebhookEvent2Event: {
870
- readonly LinkClicked: "link.clicked";
871
- };
872
- export type WebhookEvent2Event = ClosedEnum<typeof WebhookEvent2Event>;
873
- export type WebhookEventClick = {
874
- id: string;
875
- url: string;
876
- continent: string;
877
- country: string;
878
- city: string;
879
- device: string;
880
- browser: string;
881
- os: string;
882
- referer: string;
883
- refererUrl: string;
884
- qr?: boolean | undefined;
885
- ip: string;
886
- };
887
- /**
888
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
889
- */
890
- export type WebhookEvent2Geo = {
891
- af?: string | undefined;
892
- al?: string | undefined;
893
- dz?: string | undefined;
894
- as?: string | undefined;
895
- ad?: string | undefined;
896
- ao?: string | undefined;
897
- ai?: string | undefined;
898
- aq?: string | undefined;
899
- ag?: string | undefined;
900
- ar?: string | undefined;
901
- am?: string | undefined;
902
- aw?: string | undefined;
903
- au?: string | undefined;
904
- at?: string | undefined;
905
- az?: string | undefined;
906
- bs?: string | undefined;
907
- bh?: string | undefined;
908
- bd?: string | undefined;
909
- bb?: string | undefined;
910
- by?: string | undefined;
911
- be?: string | undefined;
912
- bz?: string | undefined;
913
- bj?: string | undefined;
914
- bm?: string | undefined;
915
- bt?: string | undefined;
916
- bo?: string | undefined;
917
- ba?: string | undefined;
918
- bw?: string | undefined;
919
- bv?: string | undefined;
920
- br?: string | undefined;
921
- io?: string | undefined;
922
- bn?: string | undefined;
923
- bg?: string | undefined;
924
- bf?: string | undefined;
925
- bi?: string | undefined;
926
- kh?: string | undefined;
927
- cm?: string | undefined;
928
- ca?: string | undefined;
929
- cv?: string | undefined;
930
- ky?: string | undefined;
931
- cf?: string | undefined;
932
- td?: string | undefined;
933
- cl?: string | undefined;
934
- cn?: string | undefined;
935
- cx?: string | undefined;
936
- cc?: string | undefined;
937
- co?: string | undefined;
938
- km?: string | undefined;
939
- cg?: string | undefined;
940
- cd?: string | undefined;
941
- ck?: string | undefined;
942
- cr?: string | undefined;
943
- ci?: string | undefined;
944
- hr?: string | undefined;
945
- cu?: string | undefined;
946
- cy?: string | undefined;
947
- cz?: string | undefined;
948
- dk?: string | undefined;
949
- dj?: string | undefined;
950
- dm?: string | undefined;
951
- do?: string | undefined;
952
- ec?: string | undefined;
953
- eg?: string | undefined;
954
- sv?: string | undefined;
955
- gq?: string | undefined;
956
- er?: string | undefined;
957
- ee?: string | undefined;
958
- et?: string | undefined;
959
- fk?: string | undefined;
960
- fo?: string | undefined;
961
- fj?: string | undefined;
962
- fi?: string | undefined;
963
- fr?: string | undefined;
964
- gf?: string | undefined;
965
- pf?: string | undefined;
966
- tf?: string | undefined;
967
- ga?: string | undefined;
968
- gm?: string | undefined;
969
- ge?: string | undefined;
970
- de?: string | undefined;
971
- gh?: string | undefined;
972
- gi?: string | undefined;
973
- gr?: string | undefined;
974
- gl?: string | undefined;
975
- gd?: string | undefined;
976
- gp?: string | undefined;
977
- gu?: string | undefined;
978
- gt?: string | undefined;
979
- gn?: string | undefined;
980
- gw?: string | undefined;
981
- gy?: string | undefined;
982
- ht?: string | undefined;
983
- hm?: string | undefined;
984
- va?: string | undefined;
985
- hn?: string | undefined;
986
- hk?: string | undefined;
987
- hu?: string | undefined;
988
- is?: string | undefined;
989
- in?: string | undefined;
990
- id?: string | undefined;
991
- ir?: string | undefined;
992
- iq?: string | undefined;
993
- ie?: string | undefined;
994
- il?: string | undefined;
995
- it?: string | undefined;
996
- jm?: string | undefined;
997
- jp?: string | undefined;
998
- jo?: string | undefined;
999
- kz?: string | undefined;
1000
- ke?: string | undefined;
1001
- ki?: string | undefined;
1002
- kp?: string | undefined;
1003
- kr?: string | undefined;
1004
- kw?: string | undefined;
1005
- kg?: string | undefined;
1006
- la?: string | undefined;
1007
- lv?: string | undefined;
1008
- lb?: string | undefined;
1009
- ls?: string | undefined;
1010
- lr?: string | undefined;
1011
- ly?: string | undefined;
1012
- li?: string | undefined;
1013
- lt?: string | undefined;
1014
- lu?: string | undefined;
1015
- mo?: string | undefined;
1016
- mg?: string | undefined;
1017
- mw?: string | undefined;
1018
- my?: string | undefined;
1019
- mv?: string | undefined;
1020
- ml?: string | undefined;
1021
- mt?: string | undefined;
1022
- mh?: string | undefined;
1023
- mq?: string | undefined;
1024
- mr?: string | undefined;
1025
- mu?: string | undefined;
1026
- yt?: string | undefined;
1027
- mx?: string | undefined;
1028
- fm?: string | undefined;
1029
- md?: string | undefined;
1030
- mc?: string | undefined;
1031
- mn?: string | undefined;
1032
- ms?: string | undefined;
1033
- ma?: string | undefined;
1034
- mz?: string | undefined;
1035
- mm?: string | undefined;
1036
- na?: string | undefined;
1037
- nr?: string | undefined;
1038
- np?: string | undefined;
1039
- nl?: string | undefined;
1040
- nc?: string | undefined;
1041
- nz?: string | undefined;
1042
- ni?: string | undefined;
1043
- ne?: string | undefined;
1044
- ng?: string | undefined;
1045
- nu?: string | undefined;
1046
- nf?: string | undefined;
1047
- mk?: string | undefined;
1048
- mp?: string | undefined;
1049
- no?: string | undefined;
1050
- om?: string | undefined;
1051
- pk?: string | undefined;
1052
- pw?: string | undefined;
1053
- ps?: string | undefined;
1054
- pa?: string | undefined;
1055
- pg?: string | undefined;
1056
- py?: string | undefined;
1057
- pe?: string | undefined;
1058
- ph?: string | undefined;
1059
- pn?: string | undefined;
1060
- pl?: string | undefined;
1061
- pt?: string | undefined;
1062
- pr?: string | undefined;
1063
- qa?: string | undefined;
1064
- re?: string | undefined;
1065
- ro?: string | undefined;
1066
- ru?: string | undefined;
1067
- rw?: string | undefined;
1068
- sh?: string | undefined;
1069
- kn?: string | undefined;
1070
- lc?: string | undefined;
1071
- pm?: string | undefined;
1072
- vc?: string | undefined;
1073
- ws?: string | undefined;
1074
- sm?: string | undefined;
1075
- st?: string | undefined;
1076
- sa?: string | undefined;
1077
- sn?: string | undefined;
1078
- sc?: string | undefined;
1079
- sl?: string | undefined;
1080
- sg?: string | undefined;
1081
- sk?: string | undefined;
1082
- si?: string | undefined;
1083
- sb?: string | undefined;
1084
- so?: string | undefined;
1085
- za?: string | undefined;
1086
- gs?: string | undefined;
1087
- es?: string | undefined;
1088
- lk?: string | undefined;
1089
- sd?: string | undefined;
1090
- sr?: string | undefined;
1091
- sj?: string | undefined;
1092
- sz?: string | undefined;
1093
- se?: string | undefined;
1094
- ch?: string | undefined;
1095
- sy?: string | undefined;
1096
- tw?: string | undefined;
1097
- tj?: string | undefined;
1098
- tz?: string | undefined;
1099
- th?: string | undefined;
1100
- tl?: string | undefined;
1101
- tg?: string | undefined;
1102
- tk?: string | undefined;
1103
- to?: string | undefined;
1104
- tt?: string | undefined;
1105
- tn?: string | undefined;
1106
- tr?: string | undefined;
1107
- tm?: string | undefined;
1108
- tc?: string | undefined;
1109
- tv?: string | undefined;
1110
- ug?: string | undefined;
1111
- ua?: string | undefined;
1112
- ae?: string | undefined;
1113
- gb?: string | undefined;
1114
- us?: string | undefined;
1115
- um?: string | undefined;
1116
- uy?: string | undefined;
1117
- uz?: string | undefined;
1118
- vu?: string | undefined;
1119
- ve?: string | undefined;
1120
- vn?: string | undefined;
1121
- vg?: string | undefined;
1122
- vi?: string | undefined;
1123
- wf?: string | undefined;
1124
- eh?: string | undefined;
1125
- ye?: string | undefined;
1126
- zm?: string | undefined;
1127
- zw?: string | undefined;
1128
- ax?: string | undefined;
1129
- bq?: string | undefined;
1130
- cw?: string | undefined;
1131
- gg?: string | undefined;
1132
- im?: string | undefined;
1133
- je?: string | undefined;
1134
- me?: string | undefined;
1135
- bl?: string | undefined;
1136
- mf?: string | undefined;
1137
- rs?: string | undefined;
1138
- sx?: string | undefined;
1139
- ss?: string | undefined;
1140
- xk?: string | undefined;
1141
- };
1142
- export type WebhookEventLink = {
1143
- /**
1144
- * The unique ID of the short link.
1145
- */
1146
- id: string;
1147
- /**
1148
- * 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).
1149
- */
1150
- domain: string;
1151
- /**
1152
- * The short link slug. If not provided, a random 7-character slug will be generated.
1153
- */
1154
- key: string;
1155
- url: string;
1156
- trackConversion?: boolean | undefined;
1157
- /**
1158
- * This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.
1159
- */
1160
- externalId: string | null;
1161
- /**
1162
- * The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
1163
- */
1164
- identifier: string | null;
1165
- archived?: boolean | undefined;
1166
- expiresAt: string;
1167
- /**
1168
- * The URL to redirect to when the short link has expired.
1169
- */
1170
- expiredUrl: string | null;
1171
- /**
1172
- * The password required to access the destination URL of the short link.
1173
- */
1174
- password: string | null;
1175
- proxy?: boolean | undefined;
1176
- /**
1177
- * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1178
- */
1179
- title: string | null;
1180
- /**
1181
- * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1182
- */
1183
- description: string | null;
1184
- /**
1185
- * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1186
- */
1187
- image: string | null;
1188
- /**
1189
- * The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
1190
- */
1191
- video: string | null;
1192
- rewrite?: boolean | undefined;
1193
- doIndex?: boolean | undefined;
1194
- /**
1195
- * The iOS destination URL for the short link for iOS device targeting.
1196
- */
1197
- ios: string | null;
1198
- /**
1199
- * The Android destination URL for the short link for Android device targeting.
1200
- */
1201
- android: string | null;
1202
- /**
1203
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
1204
- */
1205
- geo: WebhookEvent2Geo | null;
1206
- publicStats?: boolean | undefined;
1207
- /**
1208
- * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
1209
- *
1210
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1211
- */
1212
- tagId: string | null;
1213
- /**
1214
- * The tags assigned to the short link.
1215
- */
1216
- tags: Array<TagSchema> | null;
1217
- /**
1218
- * The comments for the short link.
1219
- */
1220
- comments: string | null;
1221
- /**
1222
- * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
1223
- */
1224
- shortLink: string;
1225
- /**
1226
- * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
1227
- */
1228
- qrCode: string;
1229
- /**
1230
- * The UTM source of the short link.
1231
- */
1232
- utmSource: string | null;
1233
- /**
1234
- * The UTM medium of the short link.
1235
- */
1236
- utmMedium: string | null;
1237
- /**
1238
- * The UTM campaign of the short link.
1239
- */
1240
- utmCampaign: string | null;
1241
- /**
1242
- * The UTM term of the short link.
1243
- */
1244
- utmTerm: string | null;
1245
- /**
1246
- * The UTM content of the short link.
1247
- */
1248
- utmContent: string | null;
1249
- userId: string | null;
1250
- /**
1251
- * The workspace ID of the short link.
1252
- */
1253
- workspaceId: string;
1254
- /**
1255
- * The number of clicks on the short link.
1256
- */
1257
- clicks?: number | undefined;
1258
- lastClicked: string;
1259
- /**
1260
- * [BETA]: The number of leads the short links has generated.
1261
- */
1262
- leads?: number | undefined;
1263
- /**
1264
- * [BETA]: The number of sales the short links has generated.
1265
- */
1266
- sales?: number | undefined;
1267
- /**
1268
- * [BETA]: The total dollar amount of sales the short links has generated (in cents).
1269
- */
1270
- saleAmount?: number | undefined;
1271
- createdAt: string;
1272
- updatedAt: string;
1273
- /**
1274
- * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
1275
- *
1276
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1277
- */
1278
- projectId: string;
1279
- };
1280
- export type WebhookEventData = {
1281
- click: WebhookEventClick;
1282
- link: WebhookEventLink;
1283
- };
1284
- export type Two = {
1285
- id: string;
1286
- event: WebhookEvent2Event;
1287
- createdAt: string;
1288
- data: WebhookEventData;
1289
- };
1290
- export declare const Event3: {
1291
- readonly LinkDeleted: "link.deleted";
1292
- };
1293
- export type Event3 = ClosedEnum<typeof Event3>;
1294
- export declare const Event2: {
1295
- readonly LinkUpdated: "link.updated";
1296
- };
1297
- export type Event2 = ClosedEnum<typeof Event2>;
1298
- export declare const Event1: {
1299
- readonly LinkCreated: "link.created";
1300
- };
1301
- export type Event1 = ClosedEnum<typeof Event1>;
1302
- export type WebhookEventEvent = Event1 | Event2 | Event3;
1303
- /**
1304
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
1305
- */
1306
- export type WebhookEventGeo = {
1307
- af?: string | undefined;
1308
- al?: string | undefined;
1309
- dz?: string | undefined;
1310
- as?: string | undefined;
1311
- ad?: string | undefined;
1312
- ao?: string | undefined;
1313
- ai?: string | undefined;
1314
- aq?: string | undefined;
1315
- ag?: string | undefined;
1316
- ar?: string | undefined;
1317
- am?: string | undefined;
1318
- aw?: string | undefined;
1319
- au?: string | undefined;
1320
- at?: string | undefined;
1321
- az?: string | undefined;
1322
- bs?: string | undefined;
1323
- bh?: string | undefined;
1324
- bd?: string | undefined;
1325
- bb?: string | undefined;
1326
- by?: string | undefined;
1327
- be?: string | undefined;
1328
- bz?: string | undefined;
1329
- bj?: string | undefined;
1330
- bm?: string | undefined;
1331
- bt?: string | undefined;
1332
- bo?: string | undefined;
1333
- ba?: string | undefined;
1334
- bw?: string | undefined;
1335
- bv?: string | undefined;
1336
- br?: string | undefined;
1337
- io?: string | undefined;
1338
- bn?: string | undefined;
1339
- bg?: string | undefined;
1340
- bf?: string | undefined;
1341
- bi?: string | undefined;
1342
- kh?: string | undefined;
1343
- cm?: string | undefined;
1344
- ca?: string | undefined;
1345
- cv?: string | undefined;
1346
- ky?: string | undefined;
1347
- cf?: string | undefined;
1348
- td?: string | undefined;
1349
- cl?: string | undefined;
1350
- cn?: string | undefined;
1351
- cx?: string | undefined;
1352
- cc?: string | undefined;
1353
- co?: string | undefined;
1354
- km?: string | undefined;
1355
- cg?: string | undefined;
1356
- cd?: string | undefined;
1357
- ck?: string | undefined;
1358
- cr?: string | undefined;
1359
- ci?: string | undefined;
1360
- hr?: string | undefined;
1361
- cu?: string | undefined;
1362
- cy?: string | undefined;
1363
- cz?: string | undefined;
1364
- dk?: string | undefined;
1365
- dj?: string | undefined;
1366
- dm?: string | undefined;
1367
- do?: string | undefined;
1368
- ec?: string | undefined;
1369
- eg?: string | undefined;
1370
- sv?: string | undefined;
1371
- gq?: string | undefined;
1372
- er?: string | undefined;
1373
- ee?: string | undefined;
1374
- et?: string | undefined;
1375
- fk?: string | undefined;
1376
- fo?: string | undefined;
1377
- fj?: string | undefined;
1378
- fi?: string | undefined;
1379
- fr?: string | undefined;
1380
- gf?: string | undefined;
1381
- pf?: string | undefined;
1382
- tf?: string | undefined;
1383
- ga?: string | undefined;
1384
- gm?: string | undefined;
1385
- ge?: string | undefined;
1386
- de?: string | undefined;
1387
- gh?: string | undefined;
1388
- gi?: string | undefined;
1389
- gr?: string | undefined;
1390
- gl?: string | undefined;
1391
- gd?: string | undefined;
1392
- gp?: string | undefined;
1393
- gu?: string | undefined;
1394
- gt?: string | undefined;
1395
- gn?: string | undefined;
1396
- gw?: string | undefined;
1397
- gy?: string | undefined;
1398
- ht?: string | undefined;
1399
- hm?: string | undefined;
1400
- va?: string | undefined;
1401
- hn?: string | undefined;
1402
- hk?: string | undefined;
1403
- hu?: string | undefined;
1404
- is?: string | undefined;
1405
- in?: string | undefined;
1406
- id?: string | undefined;
1407
- ir?: string | undefined;
1408
- iq?: string | undefined;
1409
- ie?: string | undefined;
1410
- il?: string | undefined;
1411
- it?: string | undefined;
1412
- jm?: string | undefined;
1413
- jp?: string | undefined;
1414
- jo?: string | undefined;
1415
- kz?: string | undefined;
1416
- ke?: string | undefined;
1417
- ki?: string | undefined;
1418
- kp?: string | undefined;
1419
- kr?: string | undefined;
1420
- kw?: string | undefined;
1421
- kg?: string | undefined;
1422
- la?: string | undefined;
1423
- lv?: string | undefined;
1424
- lb?: string | undefined;
1425
- ls?: string | undefined;
1426
- lr?: string | undefined;
1427
- ly?: string | undefined;
1428
- li?: string | undefined;
1429
- lt?: string | undefined;
1430
- lu?: string | undefined;
1431
- mo?: string | undefined;
1432
- mg?: string | undefined;
1433
- mw?: string | undefined;
1434
- my?: string | undefined;
1435
- mv?: string | undefined;
1436
- ml?: string | undefined;
1437
- mt?: string | undefined;
1438
- mh?: string | undefined;
1439
- mq?: string | undefined;
1440
- mr?: string | undefined;
1441
- mu?: string | undefined;
1442
- yt?: string | undefined;
1443
- mx?: string | undefined;
1444
- fm?: string | undefined;
1445
- md?: string | undefined;
1446
- mc?: string | undefined;
1447
- mn?: string | undefined;
1448
- ms?: string | undefined;
1449
- ma?: string | undefined;
1450
- mz?: string | undefined;
1451
- mm?: string | undefined;
1452
- na?: string | undefined;
1453
- nr?: string | undefined;
1454
- np?: string | undefined;
1455
- nl?: string | undefined;
1456
- nc?: string | undefined;
1457
- nz?: string | undefined;
1458
- ni?: string | undefined;
1459
- ne?: string | undefined;
1460
- ng?: string | undefined;
1461
- nu?: string | undefined;
1462
- nf?: string | undefined;
1463
- mk?: string | undefined;
1464
- mp?: string | undefined;
1465
- no?: string | undefined;
1466
- om?: string | undefined;
1467
- pk?: string | undefined;
1468
- pw?: string | undefined;
1469
- ps?: string | undefined;
1470
- pa?: string | undefined;
1471
- pg?: string | undefined;
1472
- py?: string | undefined;
1473
- pe?: string | undefined;
1474
- ph?: string | undefined;
1475
- pn?: string | undefined;
1476
- pl?: string | undefined;
1477
- pt?: string | undefined;
1478
- pr?: string | undefined;
1479
- qa?: string | undefined;
1480
- re?: string | undefined;
1481
- ro?: string | undefined;
1482
- ru?: string | undefined;
1483
- rw?: string | undefined;
1484
- sh?: string | undefined;
1485
- kn?: string | undefined;
1486
- lc?: string | undefined;
1487
- pm?: string | undefined;
1488
- vc?: string | undefined;
1489
- ws?: string | undefined;
1490
- sm?: string | undefined;
1491
- st?: string | undefined;
1492
- sa?: string | undefined;
1493
- sn?: string | undefined;
1494
- sc?: string | undefined;
1495
- sl?: string | undefined;
1496
- sg?: string | undefined;
1497
- sk?: string | undefined;
1498
- si?: string | undefined;
1499
- sb?: string | undefined;
1500
- so?: string | undefined;
1501
- za?: string | undefined;
1502
- gs?: string | undefined;
1503
- es?: string | undefined;
1504
- lk?: string | undefined;
1505
- sd?: string | undefined;
1506
- sr?: string | undefined;
1507
- sj?: string | undefined;
1508
- sz?: string | undefined;
1509
- se?: string | undefined;
1510
- ch?: string | undefined;
1511
- sy?: string | undefined;
1512
- tw?: string | undefined;
1513
- tj?: string | undefined;
1514
- tz?: string | undefined;
1515
- th?: string | undefined;
1516
- tl?: string | undefined;
1517
- tg?: string | undefined;
1518
- tk?: string | undefined;
1519
- to?: string | undefined;
1520
- tt?: string | undefined;
1521
- tn?: string | undefined;
1522
- tr?: string | undefined;
1523
- tm?: string | undefined;
1524
- tc?: string | undefined;
1525
- tv?: string | undefined;
1526
- ug?: string | undefined;
1527
- ua?: string | undefined;
1528
- ae?: string | undefined;
1529
- gb?: string | undefined;
1530
- us?: string | undefined;
1531
- um?: string | undefined;
1532
- uy?: string | undefined;
1533
- uz?: string | undefined;
1534
- vu?: string | undefined;
1535
- ve?: string | undefined;
1536
- vn?: string | undefined;
1537
- vg?: string | undefined;
1538
- vi?: string | undefined;
1539
- wf?: string | undefined;
1540
- eh?: string | undefined;
1541
- ye?: string | undefined;
1542
- zm?: string | undefined;
1543
- zw?: string | undefined;
1544
- ax?: string | undefined;
1545
- bq?: string | undefined;
1546
- cw?: string | undefined;
1547
- gg?: string | undefined;
1548
- im?: string | undefined;
1549
- je?: string | undefined;
1550
- me?: string | undefined;
1551
- bl?: string | undefined;
1552
- mf?: string | undefined;
1553
- rs?: string | undefined;
1554
- sx?: string | undefined;
1555
- ss?: string | undefined;
1556
- xk?: string | undefined;
1557
- };
1558
- export type Data = {
1559
- /**
1560
- * The unique ID of the short link.
1561
- */
1562
- id: string;
1563
- /**
1564
- * 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).
1565
- */
1566
- domain: string;
1567
- /**
1568
- * The short link slug. If not provided, a random 7-character slug will be generated.
1569
- */
1570
- key: string;
1571
- url: string;
1572
- trackConversion?: boolean | undefined;
1573
- /**
1574
- * This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.
1575
- */
1576
- externalId: string | null;
1577
- /**
1578
- * The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
1579
- */
1580
- identifier: string | null;
1581
- archived?: boolean | undefined;
1582
- expiresAt: string;
1583
- /**
1584
- * The URL to redirect to when the short link has expired.
1585
- */
1586
- expiredUrl: string | null;
1587
- /**
1588
- * The password required to access the destination URL of the short link.
1589
- */
1590
- password: string | null;
1591
- proxy?: boolean | undefined;
1592
- /**
1593
- * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1594
- */
1595
- title: string | null;
1596
- /**
1597
- * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1598
- */
1599
- description: string | null;
1600
- /**
1601
- * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
1602
- */
1603
- image: string | null;
1604
- /**
1605
- * The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
1606
- */
1607
- video: string | null;
1608
- rewrite?: boolean | undefined;
1609
- doIndex?: boolean | undefined;
1610
- /**
1611
- * The iOS destination URL for the short link for iOS device targeting.
1612
- */
1613
- ios: string | null;
1614
- /**
1615
- * The Android destination URL for the short link for Android device targeting.
1616
- */
1617
- android: string | null;
1618
- /**
1619
- * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
1620
- */
1621
- geo: WebhookEventGeo | null;
1622
- publicStats?: boolean | undefined;
1623
- /**
1624
- * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
1625
- *
1626
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1627
- */
1628
- tagId: string | null;
1629
- /**
1630
- * The tags assigned to the short link.
1631
- */
1632
- tags: Array<TagSchema> | null;
1633
- /**
1634
- * The comments for the short link.
1635
- */
1636
- comments: string | null;
1637
- /**
1638
- * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
1639
- */
1640
- shortLink: string;
1641
- /**
1642
- * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
1643
- */
1644
- qrCode: string;
1645
- /**
1646
- * The UTM source of the short link.
1647
- */
1648
- utmSource: string | null;
1649
- /**
1650
- * The UTM medium of the short link.
1651
- */
1652
- utmMedium: string | null;
1653
- /**
1654
- * The UTM campaign of the short link.
1655
- */
1656
- utmCampaign: string | null;
1657
- /**
1658
- * The UTM term of the short link.
1659
- */
1660
- utmTerm: string | null;
1661
- /**
1662
- * The UTM content of the short link.
1663
- */
1664
- utmContent: string | null;
1665
- userId: string | null;
1666
- /**
1667
- * The workspace ID of the short link.
1668
- */
1669
- workspaceId: string;
1670
- /**
1671
- * The number of clicks on the short link.
1672
- */
1673
- clicks?: number | undefined;
1674
- lastClicked: string;
1675
- /**
1676
- * [BETA]: The number of leads the short links has generated.
1677
- */
1678
- leads?: number | undefined;
1679
- /**
1680
- * [BETA]: The number of sales the short links has generated.
1681
- */
1682
- sales?: number | undefined;
1683
- /**
1684
- * [BETA]: The total dollar amount of sales the short links has generated (in cents).
1685
- */
1686
- saleAmount?: number | undefined;
1687
- createdAt: string;
1688
- updatedAt: string;
1689
- /**
1690
- * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
1691
- *
1692
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1693
- */
1694
- projectId: string;
1695
- };
1696
- export type One = {
1697
- id: string;
1698
- event: Event1 | Event2 | Event3;
1699
- createdAt: string;
1700
- data: Data;
1701
- };
2
+ import { LeadCreatedEvent, LeadCreatedEvent$Outbound } from "./leadcreatedevent.js";
3
+ import { LinkClickedEvent, LinkClickedEvent$Outbound } from "./linkclickedevent.js";
4
+ import { LinkWebhookEvent, LinkWebhookEvent$Outbound } from "./linkwebhookevent.js";
5
+ import { SaleCreatedEvent, SaleCreatedEvent$Outbound } from "./salecreatedevent.js";
1702
6
  /**
1703
7
  * Webhook event schema
1704
8
  */
1705
- export type WebhookEvent = One | Two | Three | Four;
1706
- /** @internal */
1707
- export declare const WebhookEvent4Event$inboundSchema: z.ZodNativeEnum<typeof WebhookEvent4Event>;
1708
- /** @internal */
1709
- export declare const WebhookEvent4Event$outboundSchema: z.ZodNativeEnum<typeof WebhookEvent4Event>;
1710
- /**
1711
- * @internal
1712
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1713
- */
1714
- export declare namespace WebhookEvent4Event$ {
1715
- /** @deprecated use `WebhookEvent4Event$inboundSchema` instead. */
1716
- const inboundSchema: z.ZodNativeEnum<{
1717
- readonly SaleCreated: "sale.created";
1718
- }>;
1719
- /** @deprecated use `WebhookEvent4Event$outboundSchema` instead. */
1720
- const outboundSchema: z.ZodNativeEnum<{
1721
- readonly SaleCreated: "sale.created";
1722
- }>;
1723
- }
1724
- /** @internal */
1725
- export declare const WebhookEvent4Customer$inboundSchema: z.ZodType<WebhookEvent4Customer, z.ZodTypeDef, unknown>;
1726
- /** @internal */
1727
- export type WebhookEvent4Customer$Outbound = {
1728
- id: string;
1729
- name: string | null;
1730
- email: string | null;
1731
- avatar: string | null;
1732
- };
1733
- /** @internal */
1734
- export declare const WebhookEvent4Customer$outboundSchema: z.ZodType<WebhookEvent4Customer$Outbound, z.ZodTypeDef, WebhookEvent4Customer>;
1735
- /**
1736
- * @internal
1737
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1738
- */
1739
- export declare namespace WebhookEvent4Customer$ {
1740
- /** @deprecated use `WebhookEvent4Customer$inboundSchema` instead. */
1741
- const inboundSchema: z.ZodType<WebhookEvent4Customer, z.ZodTypeDef, unknown>;
1742
- /** @deprecated use `WebhookEvent4Customer$outboundSchema` instead. */
1743
- const outboundSchema: z.ZodType<WebhookEvent4Customer$Outbound, z.ZodTypeDef, WebhookEvent4Customer>;
1744
- /** @deprecated use `WebhookEvent4Customer$Outbound` instead. */
1745
- type Outbound = WebhookEvent4Customer$Outbound;
1746
- }
1747
- /** @internal */
1748
- export declare const WebhookEvent4Click$inboundSchema: z.ZodType<WebhookEvent4Click, z.ZodTypeDef, unknown>;
1749
- /** @internal */
1750
- export type WebhookEvent4Click$Outbound = {
1751
- id: string;
1752
- url: string;
1753
- continent: string;
1754
- country: string;
1755
- city: string;
1756
- device: string;
1757
- browser: string;
1758
- os: string;
1759
- referer: string;
1760
- refererUrl: string;
1761
- qr?: boolean | undefined;
1762
- ip: string;
1763
- };
1764
- /** @internal */
1765
- export declare const WebhookEvent4Click$outboundSchema: z.ZodType<WebhookEvent4Click$Outbound, z.ZodTypeDef, WebhookEvent4Click>;
1766
- /**
1767
- * @internal
1768
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1769
- */
1770
- export declare namespace WebhookEvent4Click$ {
1771
- /** @deprecated use `WebhookEvent4Click$inboundSchema` instead. */
1772
- const inboundSchema: z.ZodType<WebhookEvent4Click, z.ZodTypeDef, unknown>;
1773
- /** @deprecated use `WebhookEvent4Click$outboundSchema` instead. */
1774
- const outboundSchema: z.ZodType<WebhookEvent4Click$Outbound, z.ZodTypeDef, WebhookEvent4Click>;
1775
- /** @deprecated use `WebhookEvent4Click$Outbound` instead. */
1776
- type Outbound = WebhookEvent4Click$Outbound;
1777
- }
1778
- /** @internal */
1779
- export declare const WebhookEvent4Geo$inboundSchema: z.ZodType<WebhookEvent4Geo, z.ZodTypeDef, unknown>;
1780
- /** @internal */
1781
- export type WebhookEvent4Geo$Outbound = {
1782
- AF?: string | undefined;
1783
- AL?: string | undefined;
1784
- DZ?: string | undefined;
1785
- AS?: string | undefined;
1786
- AD?: string | undefined;
1787
- AO?: string | undefined;
1788
- AI?: string | undefined;
1789
- AQ?: string | undefined;
1790
- AG?: string | undefined;
1791
- AR?: string | undefined;
1792
- AM?: string | undefined;
1793
- AW?: string | undefined;
1794
- AU?: string | undefined;
1795
- AT?: string | undefined;
1796
- AZ?: string | undefined;
1797
- BS?: string | undefined;
1798
- BH?: string | undefined;
1799
- BD?: string | undefined;
1800
- BB?: string | undefined;
1801
- BY?: string | undefined;
1802
- BE?: string | undefined;
1803
- BZ?: string | undefined;
1804
- BJ?: string | undefined;
1805
- BM?: string | undefined;
1806
- BT?: string | undefined;
1807
- BO?: string | undefined;
1808
- BA?: string | undefined;
1809
- BW?: string | undefined;
1810
- BV?: string | undefined;
1811
- BR?: string | undefined;
1812
- IO?: string | undefined;
1813
- BN?: string | undefined;
1814
- BG?: string | undefined;
1815
- BF?: string | undefined;
1816
- BI?: string | undefined;
1817
- KH?: string | undefined;
1818
- CM?: string | undefined;
1819
- CA?: string | undefined;
1820
- CV?: string | undefined;
1821
- KY?: string | undefined;
1822
- CF?: string | undefined;
1823
- TD?: string | undefined;
1824
- CL?: string | undefined;
1825
- CN?: string | undefined;
1826
- CX?: string | undefined;
1827
- CC?: string | undefined;
1828
- CO?: string | undefined;
1829
- KM?: string | undefined;
1830
- CG?: string | undefined;
1831
- CD?: string | undefined;
1832
- CK?: string | undefined;
1833
- CR?: string | undefined;
1834
- CI?: string | undefined;
1835
- HR?: string | undefined;
1836
- CU?: string | undefined;
1837
- CY?: string | undefined;
1838
- CZ?: string | undefined;
1839
- DK?: string | undefined;
1840
- DJ?: string | undefined;
1841
- DM?: string | undefined;
1842
- DO?: string | undefined;
1843
- EC?: string | undefined;
1844
- EG?: string | undefined;
1845
- SV?: string | undefined;
1846
- GQ?: string | undefined;
1847
- ER?: string | undefined;
1848
- EE?: string | undefined;
1849
- ET?: string | undefined;
1850
- FK?: string | undefined;
1851
- FO?: string | undefined;
1852
- FJ?: string | undefined;
1853
- FI?: string | undefined;
1854
- FR?: string | undefined;
1855
- GF?: string | undefined;
1856
- PF?: string | undefined;
1857
- TF?: string | undefined;
1858
- GA?: string | undefined;
1859
- GM?: string | undefined;
1860
- GE?: string | undefined;
1861
- DE?: string | undefined;
1862
- GH?: string | undefined;
1863
- GI?: string | undefined;
1864
- GR?: string | undefined;
1865
- GL?: string | undefined;
1866
- GD?: string | undefined;
1867
- GP?: string | undefined;
1868
- GU?: string | undefined;
1869
- GT?: string | undefined;
1870
- GN?: string | undefined;
1871
- GW?: string | undefined;
1872
- GY?: string | undefined;
1873
- HT?: string | undefined;
1874
- HM?: string | undefined;
1875
- VA?: string | undefined;
1876
- HN?: string | undefined;
1877
- HK?: string | undefined;
1878
- HU?: string | undefined;
1879
- IS?: string | undefined;
1880
- IN?: string | undefined;
1881
- ID?: string | undefined;
1882
- IR?: string | undefined;
1883
- IQ?: string | undefined;
1884
- IE?: string | undefined;
1885
- IL?: string | undefined;
1886
- IT?: string | undefined;
1887
- JM?: string | undefined;
1888
- JP?: string | undefined;
1889
- JO?: string | undefined;
1890
- KZ?: string | undefined;
1891
- KE?: string | undefined;
1892
- KI?: string | undefined;
1893
- KP?: string | undefined;
1894
- KR?: string | undefined;
1895
- KW?: string | undefined;
1896
- KG?: string | undefined;
1897
- LA?: string | undefined;
1898
- LV?: string | undefined;
1899
- LB?: string | undefined;
1900
- LS?: string | undefined;
1901
- LR?: string | undefined;
1902
- LY?: string | undefined;
1903
- LI?: string | undefined;
1904
- LT?: string | undefined;
1905
- LU?: string | undefined;
1906
- MO?: string | undefined;
1907
- MG?: string | undefined;
1908
- MW?: string | undefined;
1909
- MY?: string | undefined;
1910
- MV?: string | undefined;
1911
- ML?: string | undefined;
1912
- MT?: string | undefined;
1913
- MH?: string | undefined;
1914
- MQ?: string | undefined;
1915
- MR?: string | undefined;
1916
- MU?: string | undefined;
1917
- YT?: string | undefined;
1918
- MX?: string | undefined;
1919
- FM?: string | undefined;
1920
- MD?: string | undefined;
1921
- MC?: string | undefined;
1922
- MN?: string | undefined;
1923
- MS?: string | undefined;
1924
- MA?: string | undefined;
1925
- MZ?: string | undefined;
1926
- MM?: string | undefined;
1927
- NA?: string | undefined;
1928
- NR?: string | undefined;
1929
- NP?: string | undefined;
1930
- NL?: string | undefined;
1931
- NC?: string | undefined;
1932
- NZ?: string | undefined;
1933
- NI?: string | undefined;
1934
- NE?: string | undefined;
1935
- NG?: string | undefined;
1936
- NU?: string | undefined;
1937
- NF?: string | undefined;
1938
- MK?: string | undefined;
1939
- MP?: string | undefined;
1940
- NO?: string | undefined;
1941
- OM?: string | undefined;
1942
- PK?: string | undefined;
1943
- PW?: string | undefined;
1944
- PS?: string | undefined;
1945
- PA?: string | undefined;
1946
- PG?: string | undefined;
1947
- PY?: string | undefined;
1948
- PE?: string | undefined;
1949
- PH?: string | undefined;
1950
- PN?: string | undefined;
1951
- PL?: string | undefined;
1952
- PT?: string | undefined;
1953
- PR?: string | undefined;
1954
- QA?: string | undefined;
1955
- RE?: string | undefined;
1956
- RO?: string | undefined;
1957
- RU?: string | undefined;
1958
- RW?: string | undefined;
1959
- SH?: string | undefined;
1960
- KN?: string | undefined;
1961
- LC?: string | undefined;
1962
- PM?: string | undefined;
1963
- VC?: string | undefined;
1964
- WS?: string | undefined;
1965
- SM?: string | undefined;
1966
- ST?: string | undefined;
1967
- SA?: string | undefined;
1968
- SN?: string | undefined;
1969
- SC?: string | undefined;
1970
- SL?: string | undefined;
1971
- SG?: string | undefined;
1972
- SK?: string | undefined;
1973
- SI?: string | undefined;
1974
- SB?: string | undefined;
1975
- SO?: string | undefined;
1976
- ZA?: string | undefined;
1977
- GS?: string | undefined;
1978
- ES?: string | undefined;
1979
- LK?: string | undefined;
1980
- SD?: string | undefined;
1981
- SR?: string | undefined;
1982
- SJ?: string | undefined;
1983
- SZ?: string | undefined;
1984
- SE?: string | undefined;
1985
- CH?: string | undefined;
1986
- SY?: string | undefined;
1987
- TW?: string | undefined;
1988
- TJ?: string | undefined;
1989
- TZ?: string | undefined;
1990
- TH?: string | undefined;
1991
- TL?: string | undefined;
1992
- TG?: string | undefined;
1993
- TK?: string | undefined;
1994
- TO?: string | undefined;
1995
- TT?: string | undefined;
1996
- TN?: string | undefined;
1997
- TR?: string | undefined;
1998
- TM?: string | undefined;
1999
- TC?: string | undefined;
2000
- TV?: string | undefined;
2001
- UG?: string | undefined;
2002
- UA?: string | undefined;
2003
- AE?: string | undefined;
2004
- GB?: string | undefined;
2005
- US?: string | undefined;
2006
- UM?: string | undefined;
2007
- UY?: string | undefined;
2008
- UZ?: string | undefined;
2009
- VU?: string | undefined;
2010
- VE?: string | undefined;
2011
- VN?: string | undefined;
2012
- VG?: string | undefined;
2013
- VI?: string | undefined;
2014
- WF?: string | undefined;
2015
- EH?: string | undefined;
2016
- YE?: string | undefined;
2017
- ZM?: string | undefined;
2018
- ZW?: string | undefined;
2019
- AX?: string | undefined;
2020
- BQ?: string | undefined;
2021
- CW?: string | undefined;
2022
- GG?: string | undefined;
2023
- IM?: string | undefined;
2024
- JE?: string | undefined;
2025
- ME?: string | undefined;
2026
- BL?: string | undefined;
2027
- MF?: string | undefined;
2028
- RS?: string | undefined;
2029
- SX?: string | undefined;
2030
- SS?: string | undefined;
2031
- XK?: string | undefined;
2032
- };
2033
- /** @internal */
2034
- export declare const WebhookEvent4Geo$outboundSchema: z.ZodType<WebhookEvent4Geo$Outbound, z.ZodTypeDef, WebhookEvent4Geo>;
2035
- /**
2036
- * @internal
2037
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2038
- */
2039
- export declare namespace WebhookEvent4Geo$ {
2040
- /** @deprecated use `WebhookEvent4Geo$inboundSchema` instead. */
2041
- const inboundSchema: z.ZodType<WebhookEvent4Geo, z.ZodTypeDef, unknown>;
2042
- /** @deprecated use `WebhookEvent4Geo$outboundSchema` instead. */
2043
- const outboundSchema: z.ZodType<WebhookEvent4Geo$Outbound, z.ZodTypeDef, WebhookEvent4Geo>;
2044
- /** @deprecated use `WebhookEvent4Geo$Outbound` instead. */
2045
- type Outbound = WebhookEvent4Geo$Outbound;
2046
- }
2047
- /** @internal */
2048
- export declare const WebhookEvent4Link$inboundSchema: z.ZodType<WebhookEvent4Link, z.ZodTypeDef, unknown>;
2049
- /** @internal */
2050
- export type WebhookEvent4Link$Outbound = {
2051
- id: string;
2052
- domain: string;
2053
- key: string;
2054
- url: string;
2055
- trackConversion?: boolean | undefined;
2056
- externalId: string | null;
2057
- identifier: string | null;
2058
- archived?: boolean | undefined;
2059
- expiresAt: string;
2060
- expiredUrl: string | null;
2061
- password: string | null;
2062
- proxy?: boolean | undefined;
2063
- title: string | null;
2064
- description: string | null;
2065
- image: string | null;
2066
- video: string | null;
2067
- rewrite?: boolean | undefined;
2068
- doIndex?: boolean | undefined;
2069
- ios: string | null;
2070
- android: string | null;
2071
- geo: WebhookEvent4Geo$Outbound | null;
2072
- publicStats?: boolean | undefined;
2073
- tagId: string | null;
2074
- tags: Array<TagSchema$Outbound> | null;
2075
- comments: string | null;
2076
- shortLink: string;
2077
- qrCode: string;
2078
- utm_source: string | null;
2079
- utm_medium: string | null;
2080
- utm_campaign: string | null;
2081
- utm_term: string | null;
2082
- utm_content: string | null;
2083
- userId: string | null;
2084
- workspaceId: string;
2085
- clicks: number;
2086
- lastClicked: string;
2087
- leads: number;
2088
- sales: number;
2089
- saleAmount: number;
2090
- createdAt: string;
2091
- updatedAt: string;
2092
- projectId: string;
2093
- };
2094
- /** @internal */
2095
- export declare const WebhookEvent4Link$outboundSchema: z.ZodType<WebhookEvent4Link$Outbound, z.ZodTypeDef, WebhookEvent4Link>;
2096
- /**
2097
- * @internal
2098
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2099
- */
2100
- export declare namespace WebhookEvent4Link$ {
2101
- /** @deprecated use `WebhookEvent4Link$inboundSchema` instead. */
2102
- const inboundSchema: z.ZodType<WebhookEvent4Link, z.ZodTypeDef, unknown>;
2103
- /** @deprecated use `WebhookEvent4Link$outboundSchema` instead. */
2104
- const outboundSchema: z.ZodType<WebhookEvent4Link$Outbound, z.ZodTypeDef, WebhookEvent4Link>;
2105
- /** @deprecated use `WebhookEvent4Link$Outbound` instead. */
2106
- type Outbound = WebhookEvent4Link$Outbound;
2107
- }
2108
- /** @internal */
2109
- export declare const WebhookEventSale$inboundSchema: z.ZodType<WebhookEventSale, z.ZodTypeDef, unknown>;
2110
- /** @internal */
2111
- export type WebhookEventSale$Outbound = {
2112
- amount: number;
2113
- currency: string;
2114
- paymentProcessor: string;
2115
- invoiceId: string | null;
2116
- };
2117
- /** @internal */
2118
- export declare const WebhookEventSale$outboundSchema: z.ZodType<WebhookEventSale$Outbound, z.ZodTypeDef, WebhookEventSale>;
2119
- /**
2120
- * @internal
2121
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2122
- */
2123
- export declare namespace WebhookEventSale$ {
2124
- /** @deprecated use `WebhookEventSale$inboundSchema` instead. */
2125
- const inboundSchema: z.ZodType<WebhookEventSale, z.ZodTypeDef, unknown>;
2126
- /** @deprecated use `WebhookEventSale$outboundSchema` instead. */
2127
- const outboundSchema: z.ZodType<WebhookEventSale$Outbound, z.ZodTypeDef, WebhookEventSale>;
2128
- /** @deprecated use `WebhookEventSale$Outbound` instead. */
2129
- type Outbound = WebhookEventSale$Outbound;
2130
- }
2131
- /** @internal */
2132
- export declare const WebhookEvent4Data$inboundSchema: z.ZodType<WebhookEvent4Data, z.ZodTypeDef, unknown>;
2133
- /** @internal */
2134
- export type WebhookEvent4Data$Outbound = {
2135
- eventName: string;
2136
- customer: WebhookEvent4Customer$Outbound;
2137
- click: WebhookEvent4Click$Outbound;
2138
- link: WebhookEvent4Link$Outbound;
2139
- sale: WebhookEventSale$Outbound;
2140
- };
2141
- /** @internal */
2142
- export declare const WebhookEvent4Data$outboundSchema: z.ZodType<WebhookEvent4Data$Outbound, z.ZodTypeDef, WebhookEvent4Data>;
2143
- /**
2144
- * @internal
2145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2146
- */
2147
- export declare namespace WebhookEvent4Data$ {
2148
- /** @deprecated use `WebhookEvent4Data$inboundSchema` instead. */
2149
- const inboundSchema: z.ZodType<WebhookEvent4Data, z.ZodTypeDef, unknown>;
2150
- /** @deprecated use `WebhookEvent4Data$outboundSchema` instead. */
2151
- const outboundSchema: z.ZodType<WebhookEvent4Data$Outbound, z.ZodTypeDef, WebhookEvent4Data>;
2152
- /** @deprecated use `WebhookEvent4Data$Outbound` instead. */
2153
- type Outbound = WebhookEvent4Data$Outbound;
2154
- }
2155
- /** @internal */
2156
- export declare const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
2157
- /** @internal */
2158
- export type Four$Outbound = {
2159
- id: string;
2160
- event: string;
2161
- createdAt: string;
2162
- data: WebhookEvent4Data$Outbound;
2163
- };
2164
- /** @internal */
2165
- export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
2166
- /**
2167
- * @internal
2168
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2169
- */
2170
- export declare namespace Four$ {
2171
- /** @deprecated use `Four$inboundSchema` instead. */
2172
- const inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
2173
- /** @deprecated use `Four$outboundSchema` instead. */
2174
- const outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
2175
- /** @deprecated use `Four$Outbound` instead. */
2176
- type Outbound = Four$Outbound;
2177
- }
2178
- /** @internal */
2179
- export declare const WebhookEvent3Event$inboundSchema: z.ZodNativeEnum<typeof WebhookEvent3Event>;
2180
- /** @internal */
2181
- export declare const WebhookEvent3Event$outboundSchema: z.ZodNativeEnum<typeof WebhookEvent3Event>;
2182
- /**
2183
- * @internal
2184
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2185
- */
2186
- export declare namespace WebhookEvent3Event$ {
2187
- /** @deprecated use `WebhookEvent3Event$inboundSchema` instead. */
2188
- const inboundSchema: z.ZodNativeEnum<{
2189
- readonly LeadCreated: "lead.created";
2190
- }>;
2191
- /** @deprecated use `WebhookEvent3Event$outboundSchema` instead. */
2192
- const outboundSchema: z.ZodNativeEnum<{
2193
- readonly LeadCreated: "lead.created";
2194
- }>;
2195
- }
2196
- /** @internal */
2197
- export declare const WebhookEventCustomer$inboundSchema: z.ZodType<WebhookEventCustomer, z.ZodTypeDef, unknown>;
2198
- /** @internal */
2199
- export type WebhookEventCustomer$Outbound = {
2200
- id: string;
2201
- name: string | null;
2202
- email: string | null;
2203
- avatar: string | null;
2204
- };
2205
- /** @internal */
2206
- export declare const WebhookEventCustomer$outboundSchema: z.ZodType<WebhookEventCustomer$Outbound, z.ZodTypeDef, WebhookEventCustomer>;
2207
- /**
2208
- * @internal
2209
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2210
- */
2211
- export declare namespace WebhookEventCustomer$ {
2212
- /** @deprecated use `WebhookEventCustomer$inboundSchema` instead. */
2213
- const inboundSchema: z.ZodType<WebhookEventCustomer, z.ZodTypeDef, unknown>;
2214
- /** @deprecated use `WebhookEventCustomer$outboundSchema` instead. */
2215
- const outboundSchema: z.ZodType<WebhookEventCustomer$Outbound, z.ZodTypeDef, WebhookEventCustomer>;
2216
- /** @deprecated use `WebhookEventCustomer$Outbound` instead. */
2217
- type Outbound = WebhookEventCustomer$Outbound;
2218
- }
2219
- /** @internal */
2220
- export declare const WebhookEvent3Click$inboundSchema: z.ZodType<WebhookEvent3Click, z.ZodTypeDef, unknown>;
2221
- /** @internal */
2222
- export type WebhookEvent3Click$Outbound = {
2223
- id: string;
2224
- url: string;
2225
- continent: string;
2226
- country: string;
2227
- city: string;
2228
- device: string;
2229
- browser: string;
2230
- os: string;
2231
- referer: string;
2232
- refererUrl: string;
2233
- qr?: boolean | undefined;
2234
- ip: string;
2235
- };
2236
- /** @internal */
2237
- export declare const WebhookEvent3Click$outboundSchema: z.ZodType<WebhookEvent3Click$Outbound, z.ZodTypeDef, WebhookEvent3Click>;
2238
- /**
2239
- * @internal
2240
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2241
- */
2242
- export declare namespace WebhookEvent3Click$ {
2243
- /** @deprecated use `WebhookEvent3Click$inboundSchema` instead. */
2244
- const inboundSchema: z.ZodType<WebhookEvent3Click, z.ZodTypeDef, unknown>;
2245
- /** @deprecated use `WebhookEvent3Click$outboundSchema` instead. */
2246
- const outboundSchema: z.ZodType<WebhookEvent3Click$Outbound, z.ZodTypeDef, WebhookEvent3Click>;
2247
- /** @deprecated use `WebhookEvent3Click$Outbound` instead. */
2248
- type Outbound = WebhookEvent3Click$Outbound;
2249
- }
2250
- /** @internal */
2251
- export declare const WebhookEvent3Geo$inboundSchema: z.ZodType<WebhookEvent3Geo, z.ZodTypeDef, unknown>;
2252
- /** @internal */
2253
- export type WebhookEvent3Geo$Outbound = {
2254
- AF?: string | undefined;
2255
- AL?: string | undefined;
2256
- DZ?: string | undefined;
2257
- AS?: string | undefined;
2258
- AD?: string | undefined;
2259
- AO?: string | undefined;
2260
- AI?: string | undefined;
2261
- AQ?: string | undefined;
2262
- AG?: string | undefined;
2263
- AR?: string | undefined;
2264
- AM?: string | undefined;
2265
- AW?: string | undefined;
2266
- AU?: string | undefined;
2267
- AT?: string | undefined;
2268
- AZ?: string | undefined;
2269
- BS?: string | undefined;
2270
- BH?: string | undefined;
2271
- BD?: string | undefined;
2272
- BB?: string | undefined;
2273
- BY?: string | undefined;
2274
- BE?: string | undefined;
2275
- BZ?: string | undefined;
2276
- BJ?: string | undefined;
2277
- BM?: string | undefined;
2278
- BT?: string | undefined;
2279
- BO?: string | undefined;
2280
- BA?: string | undefined;
2281
- BW?: string | undefined;
2282
- BV?: string | undefined;
2283
- BR?: string | undefined;
2284
- IO?: string | undefined;
2285
- BN?: string | undefined;
2286
- BG?: string | undefined;
2287
- BF?: string | undefined;
2288
- BI?: string | undefined;
2289
- KH?: string | undefined;
2290
- CM?: string | undefined;
2291
- CA?: string | undefined;
2292
- CV?: string | undefined;
2293
- KY?: string | undefined;
2294
- CF?: string | undefined;
2295
- TD?: string | undefined;
2296
- CL?: string | undefined;
2297
- CN?: string | undefined;
2298
- CX?: string | undefined;
2299
- CC?: string | undefined;
2300
- CO?: string | undefined;
2301
- KM?: string | undefined;
2302
- CG?: string | undefined;
2303
- CD?: string | undefined;
2304
- CK?: string | undefined;
2305
- CR?: string | undefined;
2306
- CI?: string | undefined;
2307
- HR?: string | undefined;
2308
- CU?: string | undefined;
2309
- CY?: string | undefined;
2310
- CZ?: string | undefined;
2311
- DK?: string | undefined;
2312
- DJ?: string | undefined;
2313
- DM?: string | undefined;
2314
- DO?: string | undefined;
2315
- EC?: string | undefined;
2316
- EG?: string | undefined;
2317
- SV?: string | undefined;
2318
- GQ?: string | undefined;
2319
- ER?: string | undefined;
2320
- EE?: string | undefined;
2321
- ET?: string | undefined;
2322
- FK?: string | undefined;
2323
- FO?: string | undefined;
2324
- FJ?: string | undefined;
2325
- FI?: string | undefined;
2326
- FR?: string | undefined;
2327
- GF?: string | undefined;
2328
- PF?: string | undefined;
2329
- TF?: string | undefined;
2330
- GA?: string | undefined;
2331
- GM?: string | undefined;
2332
- GE?: string | undefined;
2333
- DE?: string | undefined;
2334
- GH?: string | undefined;
2335
- GI?: string | undefined;
2336
- GR?: string | undefined;
2337
- GL?: string | undefined;
2338
- GD?: string | undefined;
2339
- GP?: string | undefined;
2340
- GU?: string | undefined;
2341
- GT?: string | undefined;
2342
- GN?: string | undefined;
2343
- GW?: string | undefined;
2344
- GY?: string | undefined;
2345
- HT?: string | undefined;
2346
- HM?: string | undefined;
2347
- VA?: string | undefined;
2348
- HN?: string | undefined;
2349
- HK?: string | undefined;
2350
- HU?: string | undefined;
2351
- IS?: string | undefined;
2352
- IN?: string | undefined;
2353
- ID?: string | undefined;
2354
- IR?: string | undefined;
2355
- IQ?: string | undefined;
2356
- IE?: string | undefined;
2357
- IL?: string | undefined;
2358
- IT?: string | undefined;
2359
- JM?: string | undefined;
2360
- JP?: string | undefined;
2361
- JO?: string | undefined;
2362
- KZ?: string | undefined;
2363
- KE?: string | undefined;
2364
- KI?: string | undefined;
2365
- KP?: string | undefined;
2366
- KR?: string | undefined;
2367
- KW?: string | undefined;
2368
- KG?: string | undefined;
2369
- LA?: string | undefined;
2370
- LV?: string | undefined;
2371
- LB?: string | undefined;
2372
- LS?: string | undefined;
2373
- LR?: string | undefined;
2374
- LY?: string | undefined;
2375
- LI?: string | undefined;
2376
- LT?: string | undefined;
2377
- LU?: string | undefined;
2378
- MO?: string | undefined;
2379
- MG?: string | undefined;
2380
- MW?: string | undefined;
2381
- MY?: string | undefined;
2382
- MV?: string | undefined;
2383
- ML?: string | undefined;
2384
- MT?: string | undefined;
2385
- MH?: string | undefined;
2386
- MQ?: string | undefined;
2387
- MR?: string | undefined;
2388
- MU?: string | undefined;
2389
- YT?: string | undefined;
2390
- MX?: string | undefined;
2391
- FM?: string | undefined;
2392
- MD?: string | undefined;
2393
- MC?: string | undefined;
2394
- MN?: string | undefined;
2395
- MS?: string | undefined;
2396
- MA?: string | undefined;
2397
- MZ?: string | undefined;
2398
- MM?: string | undefined;
2399
- NA?: string | undefined;
2400
- NR?: string | undefined;
2401
- NP?: string | undefined;
2402
- NL?: string | undefined;
2403
- NC?: string | undefined;
2404
- NZ?: string | undefined;
2405
- NI?: string | undefined;
2406
- NE?: string | undefined;
2407
- NG?: string | undefined;
2408
- NU?: string | undefined;
2409
- NF?: string | undefined;
2410
- MK?: string | undefined;
2411
- MP?: string | undefined;
2412
- NO?: string | undefined;
2413
- OM?: string | undefined;
2414
- PK?: string | undefined;
2415
- PW?: string | undefined;
2416
- PS?: string | undefined;
2417
- PA?: string | undefined;
2418
- PG?: string | undefined;
2419
- PY?: string | undefined;
2420
- PE?: string | undefined;
2421
- PH?: string | undefined;
2422
- PN?: string | undefined;
2423
- PL?: string | undefined;
2424
- PT?: string | undefined;
2425
- PR?: string | undefined;
2426
- QA?: string | undefined;
2427
- RE?: string | undefined;
2428
- RO?: string | undefined;
2429
- RU?: string | undefined;
2430
- RW?: string | undefined;
2431
- SH?: string | undefined;
2432
- KN?: string | undefined;
2433
- LC?: string | undefined;
2434
- PM?: string | undefined;
2435
- VC?: string | undefined;
2436
- WS?: string | undefined;
2437
- SM?: string | undefined;
2438
- ST?: string | undefined;
2439
- SA?: string | undefined;
2440
- SN?: string | undefined;
2441
- SC?: string | undefined;
2442
- SL?: string | undefined;
2443
- SG?: string | undefined;
2444
- SK?: string | undefined;
2445
- SI?: string | undefined;
2446
- SB?: string | undefined;
2447
- SO?: string | undefined;
2448
- ZA?: string | undefined;
2449
- GS?: string | undefined;
2450
- ES?: string | undefined;
2451
- LK?: string | undefined;
2452
- SD?: string | undefined;
2453
- SR?: string | undefined;
2454
- SJ?: string | undefined;
2455
- SZ?: string | undefined;
2456
- SE?: string | undefined;
2457
- CH?: string | undefined;
2458
- SY?: string | undefined;
2459
- TW?: string | undefined;
2460
- TJ?: string | undefined;
2461
- TZ?: string | undefined;
2462
- TH?: string | undefined;
2463
- TL?: string | undefined;
2464
- TG?: string | undefined;
2465
- TK?: string | undefined;
2466
- TO?: string | undefined;
2467
- TT?: string | undefined;
2468
- TN?: string | undefined;
2469
- TR?: string | undefined;
2470
- TM?: string | undefined;
2471
- TC?: string | undefined;
2472
- TV?: string | undefined;
2473
- UG?: string | undefined;
2474
- UA?: string | undefined;
2475
- AE?: string | undefined;
2476
- GB?: string | undefined;
2477
- US?: string | undefined;
2478
- UM?: string | undefined;
2479
- UY?: string | undefined;
2480
- UZ?: string | undefined;
2481
- VU?: string | undefined;
2482
- VE?: string | undefined;
2483
- VN?: string | undefined;
2484
- VG?: string | undefined;
2485
- VI?: string | undefined;
2486
- WF?: string | undefined;
2487
- EH?: string | undefined;
2488
- YE?: string | undefined;
2489
- ZM?: string | undefined;
2490
- ZW?: string | undefined;
2491
- AX?: string | undefined;
2492
- BQ?: string | undefined;
2493
- CW?: string | undefined;
2494
- GG?: string | undefined;
2495
- IM?: string | undefined;
2496
- JE?: string | undefined;
2497
- ME?: string | undefined;
2498
- BL?: string | undefined;
2499
- MF?: string | undefined;
2500
- RS?: string | undefined;
2501
- SX?: string | undefined;
2502
- SS?: string | undefined;
2503
- XK?: string | undefined;
2504
- };
2505
- /** @internal */
2506
- export declare const WebhookEvent3Geo$outboundSchema: z.ZodType<WebhookEvent3Geo$Outbound, z.ZodTypeDef, WebhookEvent3Geo>;
2507
- /**
2508
- * @internal
2509
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2510
- */
2511
- export declare namespace WebhookEvent3Geo$ {
2512
- /** @deprecated use `WebhookEvent3Geo$inboundSchema` instead. */
2513
- const inboundSchema: z.ZodType<WebhookEvent3Geo, z.ZodTypeDef, unknown>;
2514
- /** @deprecated use `WebhookEvent3Geo$outboundSchema` instead. */
2515
- const outboundSchema: z.ZodType<WebhookEvent3Geo$Outbound, z.ZodTypeDef, WebhookEvent3Geo>;
2516
- /** @deprecated use `WebhookEvent3Geo$Outbound` instead. */
2517
- type Outbound = WebhookEvent3Geo$Outbound;
2518
- }
2519
- /** @internal */
2520
- export declare const WebhookEvent3Link$inboundSchema: z.ZodType<WebhookEvent3Link, z.ZodTypeDef, unknown>;
2521
- /** @internal */
2522
- export type WebhookEvent3Link$Outbound = {
2523
- id: string;
2524
- domain: string;
2525
- key: string;
2526
- url: string;
2527
- trackConversion?: boolean | undefined;
2528
- externalId: string | null;
2529
- identifier: string | null;
2530
- archived?: boolean | undefined;
2531
- expiresAt: string;
2532
- expiredUrl: string | null;
2533
- password: string | null;
2534
- proxy?: boolean | undefined;
2535
- title: string | null;
2536
- description: string | null;
2537
- image: string | null;
2538
- video: string | null;
2539
- rewrite?: boolean | undefined;
2540
- doIndex?: boolean | undefined;
2541
- ios: string | null;
2542
- android: string | null;
2543
- geo: WebhookEvent3Geo$Outbound | null;
2544
- publicStats?: boolean | undefined;
2545
- tagId: string | null;
2546
- tags: Array<TagSchema$Outbound> | null;
2547
- comments: string | null;
2548
- shortLink: string;
2549
- qrCode: string;
2550
- utm_source: string | null;
2551
- utm_medium: string | null;
2552
- utm_campaign: string | null;
2553
- utm_term: string | null;
2554
- utm_content: string | null;
2555
- userId: string | null;
2556
- workspaceId: string;
2557
- clicks: number;
2558
- lastClicked: string;
2559
- leads: number;
2560
- sales: number;
2561
- saleAmount: number;
2562
- createdAt: string;
2563
- updatedAt: string;
2564
- projectId: string;
2565
- };
2566
- /** @internal */
2567
- export declare const WebhookEvent3Link$outboundSchema: z.ZodType<WebhookEvent3Link$Outbound, z.ZodTypeDef, WebhookEvent3Link>;
2568
- /**
2569
- * @internal
2570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2571
- */
2572
- export declare namespace WebhookEvent3Link$ {
2573
- /** @deprecated use `WebhookEvent3Link$inboundSchema` instead. */
2574
- const inboundSchema: z.ZodType<WebhookEvent3Link, z.ZodTypeDef, unknown>;
2575
- /** @deprecated use `WebhookEvent3Link$outboundSchema` instead. */
2576
- const outboundSchema: z.ZodType<WebhookEvent3Link$Outbound, z.ZodTypeDef, WebhookEvent3Link>;
2577
- /** @deprecated use `WebhookEvent3Link$Outbound` instead. */
2578
- type Outbound = WebhookEvent3Link$Outbound;
2579
- }
2580
- /** @internal */
2581
- export declare const WebhookEvent3Data$inboundSchema: z.ZodType<WebhookEvent3Data, z.ZodTypeDef, unknown>;
2582
- /** @internal */
2583
- export type WebhookEvent3Data$Outbound = {
2584
- eventName: string;
2585
- customer: WebhookEventCustomer$Outbound;
2586
- click: WebhookEvent3Click$Outbound;
2587
- link: WebhookEvent3Link$Outbound;
2588
- };
2589
- /** @internal */
2590
- export declare const WebhookEvent3Data$outboundSchema: z.ZodType<WebhookEvent3Data$Outbound, z.ZodTypeDef, WebhookEvent3Data>;
2591
- /**
2592
- * @internal
2593
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2594
- */
2595
- export declare namespace WebhookEvent3Data$ {
2596
- /** @deprecated use `WebhookEvent3Data$inboundSchema` instead. */
2597
- const inboundSchema: z.ZodType<WebhookEvent3Data, z.ZodTypeDef, unknown>;
2598
- /** @deprecated use `WebhookEvent3Data$outboundSchema` instead. */
2599
- const outboundSchema: z.ZodType<WebhookEvent3Data$Outbound, z.ZodTypeDef, WebhookEvent3Data>;
2600
- /** @deprecated use `WebhookEvent3Data$Outbound` instead. */
2601
- type Outbound = WebhookEvent3Data$Outbound;
2602
- }
2603
- /** @internal */
2604
- export declare const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown>;
2605
- /** @internal */
2606
- export type Three$Outbound = {
2607
- id: string;
2608
- event: string;
2609
- createdAt: string;
2610
- data: WebhookEvent3Data$Outbound;
2611
- };
2612
- /** @internal */
2613
- export declare const Three$outboundSchema: z.ZodType<Three$Outbound, z.ZodTypeDef, Three>;
2614
- /**
2615
- * @internal
2616
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2617
- */
2618
- export declare namespace Three$ {
2619
- /** @deprecated use `Three$inboundSchema` instead. */
2620
- const inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown>;
2621
- /** @deprecated use `Three$outboundSchema` instead. */
2622
- const outboundSchema: z.ZodType<Three$Outbound, z.ZodTypeDef, Three>;
2623
- /** @deprecated use `Three$Outbound` instead. */
2624
- type Outbound = Three$Outbound;
2625
- }
2626
- /** @internal */
2627
- export declare const WebhookEvent2Event$inboundSchema: z.ZodNativeEnum<typeof WebhookEvent2Event>;
2628
- /** @internal */
2629
- export declare const WebhookEvent2Event$outboundSchema: z.ZodNativeEnum<typeof WebhookEvent2Event>;
2630
- /**
2631
- * @internal
2632
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2633
- */
2634
- export declare namespace WebhookEvent2Event$ {
2635
- /** @deprecated use `WebhookEvent2Event$inboundSchema` instead. */
2636
- const inboundSchema: z.ZodNativeEnum<{
2637
- readonly LinkClicked: "link.clicked";
2638
- }>;
2639
- /** @deprecated use `WebhookEvent2Event$outboundSchema` instead. */
2640
- const outboundSchema: z.ZodNativeEnum<{
2641
- readonly LinkClicked: "link.clicked";
2642
- }>;
2643
- }
2644
- /** @internal */
2645
- export declare const WebhookEventClick$inboundSchema: z.ZodType<WebhookEventClick, z.ZodTypeDef, unknown>;
2646
- /** @internal */
2647
- export type WebhookEventClick$Outbound = {
2648
- id: string;
2649
- url: string;
2650
- continent: string;
2651
- country: string;
2652
- city: string;
2653
- device: string;
2654
- browser: string;
2655
- os: string;
2656
- referer: string;
2657
- refererUrl: string;
2658
- qr?: boolean | undefined;
2659
- ip: string;
2660
- };
2661
- /** @internal */
2662
- export declare const WebhookEventClick$outboundSchema: z.ZodType<WebhookEventClick$Outbound, z.ZodTypeDef, WebhookEventClick>;
2663
- /**
2664
- * @internal
2665
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2666
- */
2667
- export declare namespace WebhookEventClick$ {
2668
- /** @deprecated use `WebhookEventClick$inboundSchema` instead. */
2669
- const inboundSchema: z.ZodType<WebhookEventClick, z.ZodTypeDef, unknown>;
2670
- /** @deprecated use `WebhookEventClick$outboundSchema` instead. */
2671
- const outboundSchema: z.ZodType<WebhookEventClick$Outbound, z.ZodTypeDef, WebhookEventClick>;
2672
- /** @deprecated use `WebhookEventClick$Outbound` instead. */
2673
- type Outbound = WebhookEventClick$Outbound;
2674
- }
2675
- /** @internal */
2676
- export declare const WebhookEvent2Geo$inboundSchema: z.ZodType<WebhookEvent2Geo, z.ZodTypeDef, unknown>;
2677
- /** @internal */
2678
- export type WebhookEvent2Geo$Outbound = {
2679
- AF?: string | undefined;
2680
- AL?: string | undefined;
2681
- DZ?: string | undefined;
2682
- AS?: string | undefined;
2683
- AD?: string | undefined;
2684
- AO?: string | undefined;
2685
- AI?: string | undefined;
2686
- AQ?: string | undefined;
2687
- AG?: string | undefined;
2688
- AR?: string | undefined;
2689
- AM?: string | undefined;
2690
- AW?: string | undefined;
2691
- AU?: string | undefined;
2692
- AT?: string | undefined;
2693
- AZ?: string | undefined;
2694
- BS?: string | undefined;
2695
- BH?: string | undefined;
2696
- BD?: string | undefined;
2697
- BB?: string | undefined;
2698
- BY?: string | undefined;
2699
- BE?: string | undefined;
2700
- BZ?: string | undefined;
2701
- BJ?: string | undefined;
2702
- BM?: string | undefined;
2703
- BT?: string | undefined;
2704
- BO?: string | undefined;
2705
- BA?: string | undefined;
2706
- BW?: string | undefined;
2707
- BV?: string | undefined;
2708
- BR?: string | undefined;
2709
- IO?: string | undefined;
2710
- BN?: string | undefined;
2711
- BG?: string | undefined;
2712
- BF?: string | undefined;
2713
- BI?: string | undefined;
2714
- KH?: string | undefined;
2715
- CM?: string | undefined;
2716
- CA?: string | undefined;
2717
- CV?: string | undefined;
2718
- KY?: string | undefined;
2719
- CF?: string | undefined;
2720
- TD?: string | undefined;
2721
- CL?: string | undefined;
2722
- CN?: string | undefined;
2723
- CX?: string | undefined;
2724
- CC?: string | undefined;
2725
- CO?: string | undefined;
2726
- KM?: string | undefined;
2727
- CG?: string | undefined;
2728
- CD?: string | undefined;
2729
- CK?: string | undefined;
2730
- CR?: string | undefined;
2731
- CI?: string | undefined;
2732
- HR?: string | undefined;
2733
- CU?: string | undefined;
2734
- CY?: string | undefined;
2735
- CZ?: string | undefined;
2736
- DK?: string | undefined;
2737
- DJ?: string | undefined;
2738
- DM?: string | undefined;
2739
- DO?: string | undefined;
2740
- EC?: string | undefined;
2741
- EG?: string | undefined;
2742
- SV?: string | undefined;
2743
- GQ?: string | undefined;
2744
- ER?: string | undefined;
2745
- EE?: string | undefined;
2746
- ET?: string | undefined;
2747
- FK?: string | undefined;
2748
- FO?: string | undefined;
2749
- FJ?: string | undefined;
2750
- FI?: string | undefined;
2751
- FR?: string | undefined;
2752
- GF?: string | undefined;
2753
- PF?: string | undefined;
2754
- TF?: string | undefined;
2755
- GA?: string | undefined;
2756
- GM?: string | undefined;
2757
- GE?: string | undefined;
2758
- DE?: string | undefined;
2759
- GH?: string | undefined;
2760
- GI?: string | undefined;
2761
- GR?: string | undefined;
2762
- GL?: string | undefined;
2763
- GD?: string | undefined;
2764
- GP?: string | undefined;
2765
- GU?: string | undefined;
2766
- GT?: string | undefined;
2767
- GN?: string | undefined;
2768
- GW?: string | undefined;
2769
- GY?: string | undefined;
2770
- HT?: string | undefined;
2771
- HM?: string | undefined;
2772
- VA?: string | undefined;
2773
- HN?: string | undefined;
2774
- HK?: string | undefined;
2775
- HU?: string | undefined;
2776
- IS?: string | undefined;
2777
- IN?: string | undefined;
2778
- ID?: string | undefined;
2779
- IR?: string | undefined;
2780
- IQ?: string | undefined;
2781
- IE?: string | undefined;
2782
- IL?: string | undefined;
2783
- IT?: string | undefined;
2784
- JM?: string | undefined;
2785
- JP?: string | undefined;
2786
- JO?: string | undefined;
2787
- KZ?: string | undefined;
2788
- KE?: string | undefined;
2789
- KI?: string | undefined;
2790
- KP?: string | undefined;
2791
- KR?: string | undefined;
2792
- KW?: string | undefined;
2793
- KG?: string | undefined;
2794
- LA?: string | undefined;
2795
- LV?: string | undefined;
2796
- LB?: string | undefined;
2797
- LS?: string | undefined;
2798
- LR?: string | undefined;
2799
- LY?: string | undefined;
2800
- LI?: string | undefined;
2801
- LT?: string | undefined;
2802
- LU?: string | undefined;
2803
- MO?: string | undefined;
2804
- MG?: string | undefined;
2805
- MW?: string | undefined;
2806
- MY?: string | undefined;
2807
- MV?: string | undefined;
2808
- ML?: string | undefined;
2809
- MT?: string | undefined;
2810
- MH?: string | undefined;
2811
- MQ?: string | undefined;
2812
- MR?: string | undefined;
2813
- MU?: string | undefined;
2814
- YT?: string | undefined;
2815
- MX?: string | undefined;
2816
- FM?: string | undefined;
2817
- MD?: string | undefined;
2818
- MC?: string | undefined;
2819
- MN?: string | undefined;
2820
- MS?: string | undefined;
2821
- MA?: string | undefined;
2822
- MZ?: string | undefined;
2823
- MM?: string | undefined;
2824
- NA?: string | undefined;
2825
- NR?: string | undefined;
2826
- NP?: string | undefined;
2827
- NL?: string | undefined;
2828
- NC?: string | undefined;
2829
- NZ?: string | undefined;
2830
- NI?: string | undefined;
2831
- NE?: string | undefined;
2832
- NG?: string | undefined;
2833
- NU?: string | undefined;
2834
- NF?: string | undefined;
2835
- MK?: string | undefined;
2836
- MP?: string | undefined;
2837
- NO?: string | undefined;
2838
- OM?: string | undefined;
2839
- PK?: string | undefined;
2840
- PW?: string | undefined;
2841
- PS?: string | undefined;
2842
- PA?: string | undefined;
2843
- PG?: string | undefined;
2844
- PY?: string | undefined;
2845
- PE?: string | undefined;
2846
- PH?: string | undefined;
2847
- PN?: string | undefined;
2848
- PL?: string | undefined;
2849
- PT?: string | undefined;
2850
- PR?: string | undefined;
2851
- QA?: string | undefined;
2852
- RE?: string | undefined;
2853
- RO?: string | undefined;
2854
- RU?: string | undefined;
2855
- RW?: string | undefined;
2856
- SH?: string | undefined;
2857
- KN?: string | undefined;
2858
- LC?: string | undefined;
2859
- PM?: string | undefined;
2860
- VC?: string | undefined;
2861
- WS?: string | undefined;
2862
- SM?: string | undefined;
2863
- ST?: string | undefined;
2864
- SA?: string | undefined;
2865
- SN?: string | undefined;
2866
- SC?: string | undefined;
2867
- SL?: string | undefined;
2868
- SG?: string | undefined;
2869
- SK?: string | undefined;
2870
- SI?: string | undefined;
2871
- SB?: string | undefined;
2872
- SO?: string | undefined;
2873
- ZA?: string | undefined;
2874
- GS?: string | undefined;
2875
- ES?: string | undefined;
2876
- LK?: string | undefined;
2877
- SD?: string | undefined;
2878
- SR?: string | undefined;
2879
- SJ?: string | undefined;
2880
- SZ?: string | undefined;
2881
- SE?: string | undefined;
2882
- CH?: string | undefined;
2883
- SY?: string | undefined;
2884
- TW?: string | undefined;
2885
- TJ?: string | undefined;
2886
- TZ?: string | undefined;
2887
- TH?: string | undefined;
2888
- TL?: string | undefined;
2889
- TG?: string | undefined;
2890
- TK?: string | undefined;
2891
- TO?: string | undefined;
2892
- TT?: string | undefined;
2893
- TN?: string | undefined;
2894
- TR?: string | undefined;
2895
- TM?: string | undefined;
2896
- TC?: string | undefined;
2897
- TV?: string | undefined;
2898
- UG?: string | undefined;
2899
- UA?: string | undefined;
2900
- AE?: string | undefined;
2901
- GB?: string | undefined;
2902
- US?: string | undefined;
2903
- UM?: string | undefined;
2904
- UY?: string | undefined;
2905
- UZ?: string | undefined;
2906
- VU?: string | undefined;
2907
- VE?: string | undefined;
2908
- VN?: string | undefined;
2909
- VG?: string | undefined;
2910
- VI?: string | undefined;
2911
- WF?: string | undefined;
2912
- EH?: string | undefined;
2913
- YE?: string | undefined;
2914
- ZM?: string | undefined;
2915
- ZW?: string | undefined;
2916
- AX?: string | undefined;
2917
- BQ?: string | undefined;
2918
- CW?: string | undefined;
2919
- GG?: string | undefined;
2920
- IM?: string | undefined;
2921
- JE?: string | undefined;
2922
- ME?: string | undefined;
2923
- BL?: string | undefined;
2924
- MF?: string | undefined;
2925
- RS?: string | undefined;
2926
- SX?: string | undefined;
2927
- SS?: string | undefined;
2928
- XK?: string | undefined;
2929
- };
2930
- /** @internal */
2931
- export declare const WebhookEvent2Geo$outboundSchema: z.ZodType<WebhookEvent2Geo$Outbound, z.ZodTypeDef, WebhookEvent2Geo>;
2932
- /**
2933
- * @internal
2934
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2935
- */
2936
- export declare namespace WebhookEvent2Geo$ {
2937
- /** @deprecated use `WebhookEvent2Geo$inboundSchema` instead. */
2938
- const inboundSchema: z.ZodType<WebhookEvent2Geo, z.ZodTypeDef, unknown>;
2939
- /** @deprecated use `WebhookEvent2Geo$outboundSchema` instead. */
2940
- const outboundSchema: z.ZodType<WebhookEvent2Geo$Outbound, z.ZodTypeDef, WebhookEvent2Geo>;
2941
- /** @deprecated use `WebhookEvent2Geo$Outbound` instead. */
2942
- type Outbound = WebhookEvent2Geo$Outbound;
2943
- }
2944
- /** @internal */
2945
- export declare const WebhookEventLink$inboundSchema: z.ZodType<WebhookEventLink, z.ZodTypeDef, unknown>;
2946
- /** @internal */
2947
- export type WebhookEventLink$Outbound = {
2948
- id: string;
2949
- domain: string;
2950
- key: string;
2951
- url: string;
2952
- trackConversion?: boolean | undefined;
2953
- externalId: string | null;
2954
- identifier: string | null;
2955
- archived?: boolean | undefined;
2956
- expiresAt: string;
2957
- expiredUrl: string | null;
2958
- password: string | null;
2959
- proxy?: boolean | undefined;
2960
- title: string | null;
2961
- description: string | null;
2962
- image: string | null;
2963
- video: string | null;
2964
- rewrite?: boolean | undefined;
2965
- doIndex?: boolean | undefined;
2966
- ios: string | null;
2967
- android: string | null;
2968
- geo: WebhookEvent2Geo$Outbound | null;
2969
- publicStats?: boolean | undefined;
2970
- tagId: string | null;
2971
- tags: Array<TagSchema$Outbound> | null;
2972
- comments: string | null;
2973
- shortLink: string;
2974
- qrCode: string;
2975
- utm_source: string | null;
2976
- utm_medium: string | null;
2977
- utm_campaign: string | null;
2978
- utm_term: string | null;
2979
- utm_content: string | null;
2980
- userId: string | null;
2981
- workspaceId: string;
2982
- clicks: number;
2983
- lastClicked: string;
2984
- leads: number;
2985
- sales: number;
2986
- saleAmount: number;
2987
- createdAt: string;
2988
- updatedAt: string;
2989
- projectId: string;
2990
- };
2991
- /** @internal */
2992
- export declare const WebhookEventLink$outboundSchema: z.ZodType<WebhookEventLink$Outbound, z.ZodTypeDef, WebhookEventLink>;
2993
- /**
2994
- * @internal
2995
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2996
- */
2997
- export declare namespace WebhookEventLink$ {
2998
- /** @deprecated use `WebhookEventLink$inboundSchema` instead. */
2999
- const inboundSchema: z.ZodType<WebhookEventLink, z.ZodTypeDef, unknown>;
3000
- /** @deprecated use `WebhookEventLink$outboundSchema` instead. */
3001
- const outboundSchema: z.ZodType<WebhookEventLink$Outbound, z.ZodTypeDef, WebhookEventLink>;
3002
- /** @deprecated use `WebhookEventLink$Outbound` instead. */
3003
- type Outbound = WebhookEventLink$Outbound;
3004
- }
3005
- /** @internal */
3006
- export declare const WebhookEventData$inboundSchema: z.ZodType<WebhookEventData, z.ZodTypeDef, unknown>;
3007
- /** @internal */
3008
- export type WebhookEventData$Outbound = {
3009
- click: WebhookEventClick$Outbound;
3010
- link: WebhookEventLink$Outbound;
3011
- };
3012
- /** @internal */
3013
- export declare const WebhookEventData$outboundSchema: z.ZodType<WebhookEventData$Outbound, z.ZodTypeDef, WebhookEventData>;
3014
- /**
3015
- * @internal
3016
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3017
- */
3018
- export declare namespace WebhookEventData$ {
3019
- /** @deprecated use `WebhookEventData$inboundSchema` instead. */
3020
- const inboundSchema: z.ZodType<WebhookEventData, z.ZodTypeDef, unknown>;
3021
- /** @deprecated use `WebhookEventData$outboundSchema` instead. */
3022
- const outboundSchema: z.ZodType<WebhookEventData$Outbound, z.ZodTypeDef, WebhookEventData>;
3023
- /** @deprecated use `WebhookEventData$Outbound` instead. */
3024
- type Outbound = WebhookEventData$Outbound;
3025
- }
3026
- /** @internal */
3027
- export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
3028
- /** @internal */
3029
- export type Two$Outbound = {
3030
- id: string;
3031
- event: string;
3032
- createdAt: string;
3033
- data: WebhookEventData$Outbound;
3034
- };
3035
- /** @internal */
3036
- export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
3037
- /**
3038
- * @internal
3039
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3040
- */
3041
- export declare namespace Two$ {
3042
- /** @deprecated use `Two$inboundSchema` instead. */
3043
- const inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
3044
- /** @deprecated use `Two$outboundSchema` instead. */
3045
- const outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
3046
- /** @deprecated use `Two$Outbound` instead. */
3047
- type Outbound = Two$Outbound;
3048
- }
3049
- /** @internal */
3050
- export declare const Event3$inboundSchema: z.ZodNativeEnum<typeof Event3>;
3051
- /** @internal */
3052
- export declare const Event3$outboundSchema: z.ZodNativeEnum<typeof Event3>;
3053
- /**
3054
- * @internal
3055
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3056
- */
3057
- export declare namespace Event3$ {
3058
- /** @deprecated use `Event3$inboundSchema` instead. */
3059
- const inboundSchema: z.ZodNativeEnum<{
3060
- readonly LinkDeleted: "link.deleted";
3061
- }>;
3062
- /** @deprecated use `Event3$outboundSchema` instead. */
3063
- const outboundSchema: z.ZodNativeEnum<{
3064
- readonly LinkDeleted: "link.deleted";
3065
- }>;
3066
- }
3067
- /** @internal */
3068
- export declare const Event2$inboundSchema: z.ZodNativeEnum<typeof Event2>;
3069
- /** @internal */
3070
- export declare const Event2$outboundSchema: z.ZodNativeEnum<typeof Event2>;
3071
- /**
3072
- * @internal
3073
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3074
- */
3075
- export declare namespace Event2$ {
3076
- /** @deprecated use `Event2$inboundSchema` instead. */
3077
- const inboundSchema: z.ZodNativeEnum<{
3078
- readonly LinkUpdated: "link.updated";
3079
- }>;
3080
- /** @deprecated use `Event2$outboundSchema` instead. */
3081
- const outboundSchema: z.ZodNativeEnum<{
3082
- readonly LinkUpdated: "link.updated";
3083
- }>;
3084
- }
3085
- /** @internal */
3086
- export declare const Event1$inboundSchema: z.ZodNativeEnum<typeof Event1>;
3087
- /** @internal */
3088
- export declare const Event1$outboundSchema: z.ZodNativeEnum<typeof Event1>;
3089
- /**
3090
- * @internal
3091
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3092
- */
3093
- export declare namespace Event1$ {
3094
- /** @deprecated use `Event1$inboundSchema` instead. */
3095
- const inboundSchema: z.ZodNativeEnum<{
3096
- readonly LinkCreated: "link.created";
3097
- }>;
3098
- /** @deprecated use `Event1$outboundSchema` instead. */
3099
- const outboundSchema: z.ZodNativeEnum<{
3100
- readonly LinkCreated: "link.created";
3101
- }>;
3102
- }
3103
- /** @internal */
3104
- export declare const WebhookEventEvent$inboundSchema: z.ZodType<WebhookEventEvent, z.ZodTypeDef, unknown>;
3105
- /** @internal */
3106
- export type WebhookEventEvent$Outbound = string | string | string;
3107
- /** @internal */
3108
- export declare const WebhookEventEvent$outboundSchema: z.ZodType<WebhookEventEvent$Outbound, z.ZodTypeDef, WebhookEventEvent>;
3109
- /**
3110
- * @internal
3111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3112
- */
3113
- export declare namespace WebhookEventEvent$ {
3114
- /** @deprecated use `WebhookEventEvent$inboundSchema` instead. */
3115
- const inboundSchema: z.ZodType<WebhookEventEvent, z.ZodTypeDef, unknown>;
3116
- /** @deprecated use `WebhookEventEvent$outboundSchema` instead. */
3117
- const outboundSchema: z.ZodType<string, z.ZodTypeDef, WebhookEventEvent>;
3118
- /** @deprecated use `WebhookEventEvent$Outbound` instead. */
3119
- type Outbound = WebhookEventEvent$Outbound;
3120
- }
3121
- /** @internal */
3122
- export declare const WebhookEventGeo$inboundSchema: z.ZodType<WebhookEventGeo, z.ZodTypeDef, unknown>;
3123
- /** @internal */
3124
- export type WebhookEventGeo$Outbound = {
3125
- AF?: string | undefined;
3126
- AL?: string | undefined;
3127
- DZ?: string | undefined;
3128
- AS?: string | undefined;
3129
- AD?: string | undefined;
3130
- AO?: string | undefined;
3131
- AI?: string | undefined;
3132
- AQ?: string | undefined;
3133
- AG?: string | undefined;
3134
- AR?: string | undefined;
3135
- AM?: string | undefined;
3136
- AW?: string | undefined;
3137
- AU?: string | undefined;
3138
- AT?: string | undefined;
3139
- AZ?: string | undefined;
3140
- BS?: string | undefined;
3141
- BH?: string | undefined;
3142
- BD?: string | undefined;
3143
- BB?: string | undefined;
3144
- BY?: string | undefined;
3145
- BE?: string | undefined;
3146
- BZ?: string | undefined;
3147
- BJ?: string | undefined;
3148
- BM?: string | undefined;
3149
- BT?: string | undefined;
3150
- BO?: string | undefined;
3151
- BA?: string | undefined;
3152
- BW?: string | undefined;
3153
- BV?: string | undefined;
3154
- BR?: string | undefined;
3155
- IO?: string | undefined;
3156
- BN?: string | undefined;
3157
- BG?: string | undefined;
3158
- BF?: string | undefined;
3159
- BI?: string | undefined;
3160
- KH?: string | undefined;
3161
- CM?: string | undefined;
3162
- CA?: string | undefined;
3163
- CV?: string | undefined;
3164
- KY?: string | undefined;
3165
- CF?: string | undefined;
3166
- TD?: string | undefined;
3167
- CL?: string | undefined;
3168
- CN?: string | undefined;
3169
- CX?: string | undefined;
3170
- CC?: string | undefined;
3171
- CO?: string | undefined;
3172
- KM?: string | undefined;
3173
- CG?: string | undefined;
3174
- CD?: string | undefined;
3175
- CK?: string | undefined;
3176
- CR?: string | undefined;
3177
- CI?: string | undefined;
3178
- HR?: string | undefined;
3179
- CU?: string | undefined;
3180
- CY?: string | undefined;
3181
- CZ?: string | undefined;
3182
- DK?: string | undefined;
3183
- DJ?: string | undefined;
3184
- DM?: string | undefined;
3185
- DO?: string | undefined;
3186
- EC?: string | undefined;
3187
- EG?: string | undefined;
3188
- SV?: string | undefined;
3189
- GQ?: string | undefined;
3190
- ER?: string | undefined;
3191
- EE?: string | undefined;
3192
- ET?: string | undefined;
3193
- FK?: string | undefined;
3194
- FO?: string | undefined;
3195
- FJ?: string | undefined;
3196
- FI?: string | undefined;
3197
- FR?: string | undefined;
3198
- GF?: string | undefined;
3199
- PF?: string | undefined;
3200
- TF?: string | undefined;
3201
- GA?: string | undefined;
3202
- GM?: string | undefined;
3203
- GE?: string | undefined;
3204
- DE?: string | undefined;
3205
- GH?: string | undefined;
3206
- GI?: string | undefined;
3207
- GR?: string | undefined;
3208
- GL?: string | undefined;
3209
- GD?: string | undefined;
3210
- GP?: string | undefined;
3211
- GU?: string | undefined;
3212
- GT?: string | undefined;
3213
- GN?: string | undefined;
3214
- GW?: string | undefined;
3215
- GY?: string | undefined;
3216
- HT?: string | undefined;
3217
- HM?: string | undefined;
3218
- VA?: string | undefined;
3219
- HN?: string | undefined;
3220
- HK?: string | undefined;
3221
- HU?: string | undefined;
3222
- IS?: string | undefined;
3223
- IN?: string | undefined;
3224
- ID?: string | undefined;
3225
- IR?: string | undefined;
3226
- IQ?: string | undefined;
3227
- IE?: string | undefined;
3228
- IL?: string | undefined;
3229
- IT?: string | undefined;
3230
- JM?: string | undefined;
3231
- JP?: string | undefined;
3232
- JO?: string | undefined;
3233
- KZ?: string | undefined;
3234
- KE?: string | undefined;
3235
- KI?: string | undefined;
3236
- KP?: string | undefined;
3237
- KR?: string | undefined;
3238
- KW?: string | undefined;
3239
- KG?: string | undefined;
3240
- LA?: string | undefined;
3241
- LV?: string | undefined;
3242
- LB?: string | undefined;
3243
- LS?: string | undefined;
3244
- LR?: string | undefined;
3245
- LY?: string | undefined;
3246
- LI?: string | undefined;
3247
- LT?: string | undefined;
3248
- LU?: string | undefined;
3249
- MO?: string | undefined;
3250
- MG?: string | undefined;
3251
- MW?: string | undefined;
3252
- MY?: string | undefined;
3253
- MV?: string | undefined;
3254
- ML?: string | undefined;
3255
- MT?: string | undefined;
3256
- MH?: string | undefined;
3257
- MQ?: string | undefined;
3258
- MR?: string | undefined;
3259
- MU?: string | undefined;
3260
- YT?: string | undefined;
3261
- MX?: string | undefined;
3262
- FM?: string | undefined;
3263
- MD?: string | undefined;
3264
- MC?: string | undefined;
3265
- MN?: string | undefined;
3266
- MS?: string | undefined;
3267
- MA?: string | undefined;
3268
- MZ?: string | undefined;
3269
- MM?: string | undefined;
3270
- NA?: string | undefined;
3271
- NR?: string | undefined;
3272
- NP?: string | undefined;
3273
- NL?: string | undefined;
3274
- NC?: string | undefined;
3275
- NZ?: string | undefined;
3276
- NI?: string | undefined;
3277
- NE?: string | undefined;
3278
- NG?: string | undefined;
3279
- NU?: string | undefined;
3280
- NF?: string | undefined;
3281
- MK?: string | undefined;
3282
- MP?: string | undefined;
3283
- NO?: string | undefined;
3284
- OM?: string | undefined;
3285
- PK?: string | undefined;
3286
- PW?: string | undefined;
3287
- PS?: string | undefined;
3288
- PA?: string | undefined;
3289
- PG?: string | undefined;
3290
- PY?: string | undefined;
3291
- PE?: string | undefined;
3292
- PH?: string | undefined;
3293
- PN?: string | undefined;
3294
- PL?: string | undefined;
3295
- PT?: string | undefined;
3296
- PR?: string | undefined;
3297
- QA?: string | undefined;
3298
- RE?: string | undefined;
3299
- RO?: string | undefined;
3300
- RU?: string | undefined;
3301
- RW?: string | undefined;
3302
- SH?: string | undefined;
3303
- KN?: string | undefined;
3304
- LC?: string | undefined;
3305
- PM?: string | undefined;
3306
- VC?: string | undefined;
3307
- WS?: string | undefined;
3308
- SM?: string | undefined;
3309
- ST?: string | undefined;
3310
- SA?: string | undefined;
3311
- SN?: string | undefined;
3312
- SC?: string | undefined;
3313
- SL?: string | undefined;
3314
- SG?: string | undefined;
3315
- SK?: string | undefined;
3316
- SI?: string | undefined;
3317
- SB?: string | undefined;
3318
- SO?: string | undefined;
3319
- ZA?: string | undefined;
3320
- GS?: string | undefined;
3321
- ES?: string | undefined;
3322
- LK?: string | undefined;
3323
- SD?: string | undefined;
3324
- SR?: string | undefined;
3325
- SJ?: string | undefined;
3326
- SZ?: string | undefined;
3327
- SE?: string | undefined;
3328
- CH?: string | undefined;
3329
- SY?: string | undefined;
3330
- TW?: string | undefined;
3331
- TJ?: string | undefined;
3332
- TZ?: string | undefined;
3333
- TH?: string | undefined;
3334
- TL?: string | undefined;
3335
- TG?: string | undefined;
3336
- TK?: string | undefined;
3337
- TO?: string | undefined;
3338
- TT?: string | undefined;
3339
- TN?: string | undefined;
3340
- TR?: string | undefined;
3341
- TM?: string | undefined;
3342
- TC?: string | undefined;
3343
- TV?: string | undefined;
3344
- UG?: string | undefined;
3345
- UA?: string | undefined;
3346
- AE?: string | undefined;
3347
- GB?: string | undefined;
3348
- US?: string | undefined;
3349
- UM?: string | undefined;
3350
- UY?: string | undefined;
3351
- UZ?: string | undefined;
3352
- VU?: string | undefined;
3353
- VE?: string | undefined;
3354
- VN?: string | undefined;
3355
- VG?: string | undefined;
3356
- VI?: string | undefined;
3357
- WF?: string | undefined;
3358
- EH?: string | undefined;
3359
- YE?: string | undefined;
3360
- ZM?: string | undefined;
3361
- ZW?: string | undefined;
3362
- AX?: string | undefined;
3363
- BQ?: string | undefined;
3364
- CW?: string | undefined;
3365
- GG?: string | undefined;
3366
- IM?: string | undefined;
3367
- JE?: string | undefined;
3368
- ME?: string | undefined;
3369
- BL?: string | undefined;
3370
- MF?: string | undefined;
3371
- RS?: string | undefined;
3372
- SX?: string | undefined;
3373
- SS?: string | undefined;
3374
- XK?: string | undefined;
3375
- };
3376
- /** @internal */
3377
- export declare const WebhookEventGeo$outboundSchema: z.ZodType<WebhookEventGeo$Outbound, z.ZodTypeDef, WebhookEventGeo>;
3378
- /**
3379
- * @internal
3380
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3381
- */
3382
- export declare namespace WebhookEventGeo$ {
3383
- /** @deprecated use `WebhookEventGeo$inboundSchema` instead. */
3384
- const inboundSchema: z.ZodType<WebhookEventGeo, z.ZodTypeDef, unknown>;
3385
- /** @deprecated use `WebhookEventGeo$outboundSchema` instead. */
3386
- const outboundSchema: z.ZodType<WebhookEventGeo$Outbound, z.ZodTypeDef, WebhookEventGeo>;
3387
- /** @deprecated use `WebhookEventGeo$Outbound` instead. */
3388
- type Outbound = WebhookEventGeo$Outbound;
3389
- }
3390
- /** @internal */
3391
- export declare const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
3392
- /** @internal */
3393
- export type Data$Outbound = {
3394
- id: string;
3395
- domain: string;
3396
- key: string;
3397
- url: string;
3398
- trackConversion?: boolean | undefined;
3399
- externalId: string | null;
3400
- identifier: string | null;
3401
- archived?: boolean | undefined;
3402
- expiresAt: string;
3403
- expiredUrl: string | null;
3404
- password: string | null;
3405
- proxy?: boolean | undefined;
3406
- title: string | null;
3407
- description: string | null;
3408
- image: string | null;
3409
- video: string | null;
3410
- rewrite?: boolean | undefined;
3411
- doIndex?: boolean | undefined;
3412
- ios: string | null;
3413
- android: string | null;
3414
- geo: WebhookEventGeo$Outbound | null;
3415
- publicStats?: boolean | undefined;
3416
- tagId: string | null;
3417
- tags: Array<TagSchema$Outbound> | null;
3418
- comments: string | null;
3419
- shortLink: string;
3420
- qrCode: string;
3421
- utm_source: string | null;
3422
- utm_medium: string | null;
3423
- utm_campaign: string | null;
3424
- utm_term: string | null;
3425
- utm_content: string | null;
3426
- userId: string | null;
3427
- workspaceId: string;
3428
- clicks: number;
3429
- lastClicked: string;
3430
- leads: number;
3431
- sales: number;
3432
- saleAmount: number;
3433
- createdAt: string;
3434
- updatedAt: string;
3435
- projectId: string;
3436
- };
3437
- /** @internal */
3438
- export declare const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
3439
- /**
3440
- * @internal
3441
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3442
- */
3443
- export declare namespace Data$ {
3444
- /** @deprecated use `Data$inboundSchema` instead. */
3445
- const inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
3446
- /** @deprecated use `Data$outboundSchema` instead. */
3447
- const outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
3448
- /** @deprecated use `Data$Outbound` instead. */
3449
- type Outbound = Data$Outbound;
3450
- }
3451
- /** @internal */
3452
- export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
3453
- /** @internal */
3454
- export type One$Outbound = {
3455
- id: string;
3456
- event: string | string | string;
3457
- createdAt: string;
3458
- data: Data$Outbound;
3459
- };
3460
- /** @internal */
3461
- export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
3462
- /**
3463
- * @internal
3464
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3465
- */
3466
- export declare namespace One$ {
3467
- /** @deprecated use `One$inboundSchema` instead. */
3468
- const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
3469
- /** @deprecated use `One$outboundSchema` instead. */
3470
- const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
3471
- /** @deprecated use `One$Outbound` instead. */
3472
- type Outbound = One$Outbound;
3473
- }
9
+ export type WebhookEvent = LinkWebhookEvent | LinkClickedEvent | LeadCreatedEvent | SaleCreatedEvent;
3474
10
  /** @internal */
3475
11
  export declare const WebhookEvent$inboundSchema: z.ZodType<WebhookEvent, z.ZodTypeDef, unknown>;
3476
12
  /** @internal */
3477
- export type WebhookEvent$Outbound = One$Outbound | Two$Outbound | Three$Outbound | Four$Outbound;
13
+ export type WebhookEvent$Outbound = LinkWebhookEvent$Outbound | LinkClickedEvent$Outbound | LeadCreatedEvent$Outbound | SaleCreatedEvent$Outbound;
3478
14
  /** @internal */
3479
15
  export declare const WebhookEvent$outboundSchema: z.ZodType<WebhookEvent$Outbound, z.ZodTypeDef, WebhookEvent>;
3480
16
  /**