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
@@ -0,0 +1,2081 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import {
9
+ TagSchema,
10
+ TagSchema$inboundSchema,
11
+ TagSchema$Outbound,
12
+ TagSchema$outboundSchema,
13
+ } from "./tagschema.js";
14
+
15
+ export const LinkClickedEventEvent = {
16
+ LinkClicked: "link.clicked",
17
+ } as const;
18
+ export type LinkClickedEventEvent = ClosedEnum<typeof LinkClickedEventEvent>;
19
+
20
+ export type LinkClickedEventClick = {
21
+ id: string;
22
+ url: string;
23
+ continent: string;
24
+ country: string;
25
+ city: string;
26
+ device: string;
27
+ browser: string;
28
+ os: string;
29
+ referer: string;
30
+ refererUrl: string;
31
+ qr?: boolean | undefined;
32
+ ip: string;
33
+ };
34
+
35
+ /**
36
+ * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
37
+ */
38
+ export type LinkClickedEventGeo = {
39
+ af?: string | undefined;
40
+ al?: string | undefined;
41
+ dz?: string | undefined;
42
+ as?: string | undefined;
43
+ ad?: string | undefined;
44
+ ao?: string | undefined;
45
+ ai?: string | undefined;
46
+ aq?: string | undefined;
47
+ ag?: string | undefined;
48
+ ar?: string | undefined;
49
+ am?: string | undefined;
50
+ aw?: string | undefined;
51
+ au?: string | undefined;
52
+ at?: string | undefined;
53
+ az?: string | undefined;
54
+ bs?: string | undefined;
55
+ bh?: string | undefined;
56
+ bd?: string | undefined;
57
+ bb?: string | undefined;
58
+ by?: string | undefined;
59
+ be?: string | undefined;
60
+ bz?: string | undefined;
61
+ bj?: string | undefined;
62
+ bm?: string | undefined;
63
+ bt?: string | undefined;
64
+ bo?: string | undefined;
65
+ ba?: string | undefined;
66
+ bw?: string | undefined;
67
+ bv?: string | undefined;
68
+ br?: string | undefined;
69
+ io?: string | undefined;
70
+ bn?: string | undefined;
71
+ bg?: string | undefined;
72
+ bf?: string | undefined;
73
+ bi?: string | undefined;
74
+ kh?: string | undefined;
75
+ cm?: string | undefined;
76
+ ca?: string | undefined;
77
+ cv?: string | undefined;
78
+ ky?: string | undefined;
79
+ cf?: string | undefined;
80
+ td?: string | undefined;
81
+ cl?: string | undefined;
82
+ cn?: string | undefined;
83
+ cx?: string | undefined;
84
+ cc?: string | undefined;
85
+ co?: string | undefined;
86
+ km?: string | undefined;
87
+ cg?: string | undefined;
88
+ cd?: string | undefined;
89
+ ck?: string | undefined;
90
+ cr?: string | undefined;
91
+ ci?: string | undefined;
92
+ hr?: string | undefined;
93
+ cu?: string | undefined;
94
+ cy?: string | undefined;
95
+ cz?: string | undefined;
96
+ dk?: string | undefined;
97
+ dj?: string | undefined;
98
+ dm?: string | undefined;
99
+ do?: string | undefined;
100
+ ec?: string | undefined;
101
+ eg?: string | undefined;
102
+ sv?: string | undefined;
103
+ gq?: string | undefined;
104
+ er?: string | undefined;
105
+ ee?: string | undefined;
106
+ et?: string | undefined;
107
+ fk?: string | undefined;
108
+ fo?: string | undefined;
109
+ fj?: string | undefined;
110
+ fi?: string | undefined;
111
+ fr?: string | undefined;
112
+ gf?: string | undefined;
113
+ pf?: string | undefined;
114
+ tf?: string | undefined;
115
+ ga?: string | undefined;
116
+ gm?: string | undefined;
117
+ ge?: string | undefined;
118
+ de?: string | undefined;
119
+ gh?: string | undefined;
120
+ gi?: string | undefined;
121
+ gr?: string | undefined;
122
+ gl?: string | undefined;
123
+ gd?: string | undefined;
124
+ gp?: string | undefined;
125
+ gu?: string | undefined;
126
+ gt?: string | undefined;
127
+ gn?: string | undefined;
128
+ gw?: string | undefined;
129
+ gy?: string | undefined;
130
+ ht?: string | undefined;
131
+ hm?: string | undefined;
132
+ va?: string | undefined;
133
+ hn?: string | undefined;
134
+ hk?: string | undefined;
135
+ hu?: string | undefined;
136
+ is?: string | undefined;
137
+ in?: string | undefined;
138
+ id?: string | undefined;
139
+ ir?: string | undefined;
140
+ iq?: string | undefined;
141
+ ie?: string | undefined;
142
+ il?: string | undefined;
143
+ it?: string | undefined;
144
+ jm?: string | undefined;
145
+ jp?: string | undefined;
146
+ jo?: string | undefined;
147
+ kz?: string | undefined;
148
+ ke?: string | undefined;
149
+ ki?: string | undefined;
150
+ kp?: string | undefined;
151
+ kr?: string | undefined;
152
+ kw?: string | undefined;
153
+ kg?: string | undefined;
154
+ la?: string | undefined;
155
+ lv?: string | undefined;
156
+ lb?: string | undefined;
157
+ ls?: string | undefined;
158
+ lr?: string | undefined;
159
+ ly?: string | undefined;
160
+ li?: string | undefined;
161
+ lt?: string | undefined;
162
+ lu?: string | undefined;
163
+ mo?: string | undefined;
164
+ mg?: string | undefined;
165
+ mw?: string | undefined;
166
+ my?: string | undefined;
167
+ mv?: string | undefined;
168
+ ml?: string | undefined;
169
+ mt?: string | undefined;
170
+ mh?: string | undefined;
171
+ mq?: string | undefined;
172
+ mr?: string | undefined;
173
+ mu?: string | undefined;
174
+ yt?: string | undefined;
175
+ mx?: string | undefined;
176
+ fm?: string | undefined;
177
+ md?: string | undefined;
178
+ mc?: string | undefined;
179
+ mn?: string | undefined;
180
+ ms?: string | undefined;
181
+ ma?: string | undefined;
182
+ mz?: string | undefined;
183
+ mm?: string | undefined;
184
+ na?: string | undefined;
185
+ nr?: string | undefined;
186
+ np?: string | undefined;
187
+ nl?: string | undefined;
188
+ nc?: string | undefined;
189
+ nz?: string | undefined;
190
+ ni?: string | undefined;
191
+ ne?: string | undefined;
192
+ ng?: string | undefined;
193
+ nu?: string | undefined;
194
+ nf?: string | undefined;
195
+ mk?: string | undefined;
196
+ mp?: string | undefined;
197
+ no?: string | undefined;
198
+ om?: string | undefined;
199
+ pk?: string | undefined;
200
+ pw?: string | undefined;
201
+ ps?: string | undefined;
202
+ pa?: string | undefined;
203
+ pg?: string | undefined;
204
+ py?: string | undefined;
205
+ pe?: string | undefined;
206
+ ph?: string | undefined;
207
+ pn?: string | undefined;
208
+ pl?: string | undefined;
209
+ pt?: string | undefined;
210
+ pr?: string | undefined;
211
+ qa?: string | undefined;
212
+ re?: string | undefined;
213
+ ro?: string | undefined;
214
+ ru?: string | undefined;
215
+ rw?: string | undefined;
216
+ sh?: string | undefined;
217
+ kn?: string | undefined;
218
+ lc?: string | undefined;
219
+ pm?: string | undefined;
220
+ vc?: string | undefined;
221
+ ws?: string | undefined;
222
+ sm?: string | undefined;
223
+ st?: string | undefined;
224
+ sa?: string | undefined;
225
+ sn?: string | undefined;
226
+ sc?: string | undefined;
227
+ sl?: string | undefined;
228
+ sg?: string | undefined;
229
+ sk?: string | undefined;
230
+ si?: string | undefined;
231
+ sb?: string | undefined;
232
+ so?: string | undefined;
233
+ za?: string | undefined;
234
+ gs?: string | undefined;
235
+ es?: string | undefined;
236
+ lk?: string | undefined;
237
+ sd?: string | undefined;
238
+ sr?: string | undefined;
239
+ sj?: string | undefined;
240
+ sz?: string | undefined;
241
+ se?: string | undefined;
242
+ ch?: string | undefined;
243
+ sy?: string | undefined;
244
+ tw?: string | undefined;
245
+ tj?: string | undefined;
246
+ tz?: string | undefined;
247
+ th?: string | undefined;
248
+ tl?: string | undefined;
249
+ tg?: string | undefined;
250
+ tk?: string | undefined;
251
+ to?: string | undefined;
252
+ tt?: string | undefined;
253
+ tn?: string | undefined;
254
+ tr?: string | undefined;
255
+ tm?: string | undefined;
256
+ tc?: string | undefined;
257
+ tv?: string | undefined;
258
+ ug?: string | undefined;
259
+ ua?: string | undefined;
260
+ ae?: string | undefined;
261
+ gb?: string | undefined;
262
+ us?: string | undefined;
263
+ um?: string | undefined;
264
+ uy?: string | undefined;
265
+ uz?: string | undefined;
266
+ vu?: string | undefined;
267
+ ve?: string | undefined;
268
+ vn?: string | undefined;
269
+ vg?: string | undefined;
270
+ vi?: string | undefined;
271
+ wf?: string | undefined;
272
+ eh?: string | undefined;
273
+ ye?: string | undefined;
274
+ zm?: string | undefined;
275
+ zw?: string | undefined;
276
+ ax?: string | undefined;
277
+ bq?: string | undefined;
278
+ cw?: string | undefined;
279
+ gg?: string | undefined;
280
+ im?: string | undefined;
281
+ je?: string | undefined;
282
+ me?: string | undefined;
283
+ bl?: string | undefined;
284
+ mf?: string | undefined;
285
+ rs?: string | undefined;
286
+ sx?: string | undefined;
287
+ ss?: string | undefined;
288
+ xk?: string | undefined;
289
+ };
290
+
291
+ export type LinkClickedEventLink = {
292
+ /**
293
+ * The unique ID of the short link.
294
+ */
295
+ id: string;
296
+ /**
297
+ * 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).
298
+ */
299
+ domain: string;
300
+ /**
301
+ * The short link slug. If not provided, a random 7-character slug will be generated.
302
+ */
303
+ key: string;
304
+ url: string;
305
+ trackConversion?: boolean | undefined;
306
+ /**
307
+ * 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.
308
+ */
309
+ externalId: string | null;
310
+ /**
311
+ * 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.
312
+ */
313
+ identifier: string | null;
314
+ archived?: boolean | undefined;
315
+ expiresAt: string;
316
+ /**
317
+ * The URL to redirect to when the short link has expired.
318
+ */
319
+ expiredUrl: string | null;
320
+ /**
321
+ * The password required to access the destination URL of the short link.
322
+ */
323
+ password: string | null;
324
+ proxy?: boolean | undefined;
325
+ /**
326
+ * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
327
+ */
328
+ title: string | null;
329
+ /**
330
+ * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
331
+ */
332
+ description: string | null;
333
+ /**
334
+ * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
335
+ */
336
+ image: string | null;
337
+ /**
338
+ * 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
339
+ */
340
+ video: string | null;
341
+ rewrite?: boolean | undefined;
342
+ doIndex?: boolean | undefined;
343
+ /**
344
+ * The iOS destination URL for the short link for iOS device targeting.
345
+ */
346
+ ios: string | null;
347
+ /**
348
+ * The Android destination URL for the short link for Android device targeting.
349
+ */
350
+ android: string | null;
351
+ /**
352
+ * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
353
+ */
354
+ geo: LinkClickedEventGeo | null;
355
+ publicStats?: boolean | undefined;
356
+ /**
357
+ * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
358
+ *
359
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
360
+ */
361
+ tagId: string | null;
362
+ /**
363
+ * The tags assigned to the short link.
364
+ */
365
+ tags: Array<TagSchema> | null;
366
+ /**
367
+ * The comments for the short link.
368
+ */
369
+ comments: string | null;
370
+ /**
371
+ * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
372
+ */
373
+ shortLink: string;
374
+ /**
375
+ * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
376
+ */
377
+ qrCode: string;
378
+ /**
379
+ * The UTM source of the short link.
380
+ */
381
+ utmSource: string | null;
382
+ /**
383
+ * The UTM medium of the short link.
384
+ */
385
+ utmMedium: string | null;
386
+ /**
387
+ * The UTM campaign of the short link.
388
+ */
389
+ utmCampaign: string | null;
390
+ /**
391
+ * The UTM term of the short link.
392
+ */
393
+ utmTerm: string | null;
394
+ /**
395
+ * The UTM content of the short link.
396
+ */
397
+ utmContent: string | null;
398
+ userId: string | null;
399
+ /**
400
+ * The workspace ID of the short link.
401
+ */
402
+ workspaceId: string;
403
+ /**
404
+ * The number of clicks on the short link.
405
+ */
406
+ clicks?: number | undefined;
407
+ lastClicked: string;
408
+ /**
409
+ * [BETA]: The number of leads the short links has generated.
410
+ */
411
+ leads?: number | undefined;
412
+ /**
413
+ * [BETA]: The number of sales the short links has generated.
414
+ */
415
+ sales?: number | undefined;
416
+ /**
417
+ * [BETA]: The total dollar amount of sales the short links has generated (in cents).
418
+ */
419
+ saleAmount?: number | undefined;
420
+ createdAt: string;
421
+ updatedAt: string;
422
+ /**
423
+ * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
424
+ *
425
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
426
+ */
427
+ projectId: string;
428
+ };
429
+
430
+ export type LinkClickedEventData = {
431
+ click: LinkClickedEventClick;
432
+ link: LinkClickedEventLink;
433
+ };
434
+
435
+ /**
436
+ * Triggered when a link is clicked.
437
+ */
438
+ export type LinkClickedEvent = {
439
+ id: string;
440
+ event: LinkClickedEventEvent;
441
+ createdAt: string;
442
+ data: LinkClickedEventData;
443
+ };
444
+
445
+ /** @internal */
446
+ export const LinkClickedEventEvent$inboundSchema: z.ZodNativeEnum<
447
+ typeof LinkClickedEventEvent
448
+ > = z.nativeEnum(LinkClickedEventEvent);
449
+
450
+ /** @internal */
451
+ export const LinkClickedEventEvent$outboundSchema: z.ZodNativeEnum<
452
+ typeof LinkClickedEventEvent
453
+ > = LinkClickedEventEvent$inboundSchema;
454
+
455
+ /**
456
+ * @internal
457
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
458
+ */
459
+ export namespace LinkClickedEventEvent$ {
460
+ /** @deprecated use `LinkClickedEventEvent$inboundSchema` instead. */
461
+ export const inboundSchema = LinkClickedEventEvent$inboundSchema;
462
+ /** @deprecated use `LinkClickedEventEvent$outboundSchema` instead. */
463
+ export const outboundSchema = LinkClickedEventEvent$outboundSchema;
464
+ }
465
+
466
+ /** @internal */
467
+ export const LinkClickedEventClick$inboundSchema: z.ZodType<
468
+ LinkClickedEventClick,
469
+ z.ZodTypeDef,
470
+ unknown
471
+ > = z.object({
472
+ id: z.string(),
473
+ url: z.string(),
474
+ continent: z.string(),
475
+ country: z.string(),
476
+ city: z.string(),
477
+ device: z.string(),
478
+ browser: z.string(),
479
+ os: z.string(),
480
+ referer: z.string(),
481
+ refererUrl: z.string(),
482
+ qr: z.boolean().optional(),
483
+ ip: z.string(),
484
+ });
485
+
486
+ /** @internal */
487
+ export type LinkClickedEventClick$Outbound = {
488
+ id: string;
489
+ url: string;
490
+ continent: string;
491
+ country: string;
492
+ city: string;
493
+ device: string;
494
+ browser: string;
495
+ os: string;
496
+ referer: string;
497
+ refererUrl: string;
498
+ qr?: boolean | undefined;
499
+ ip: string;
500
+ };
501
+
502
+ /** @internal */
503
+ export const LinkClickedEventClick$outboundSchema: z.ZodType<
504
+ LinkClickedEventClick$Outbound,
505
+ z.ZodTypeDef,
506
+ LinkClickedEventClick
507
+ > = z.object({
508
+ id: z.string(),
509
+ url: z.string(),
510
+ continent: z.string(),
511
+ country: z.string(),
512
+ city: z.string(),
513
+ device: z.string(),
514
+ browser: z.string(),
515
+ os: z.string(),
516
+ referer: z.string(),
517
+ refererUrl: z.string(),
518
+ qr: z.boolean().optional(),
519
+ ip: z.string(),
520
+ });
521
+
522
+ /**
523
+ * @internal
524
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
525
+ */
526
+ export namespace LinkClickedEventClick$ {
527
+ /** @deprecated use `LinkClickedEventClick$inboundSchema` instead. */
528
+ export const inboundSchema = LinkClickedEventClick$inboundSchema;
529
+ /** @deprecated use `LinkClickedEventClick$outboundSchema` instead. */
530
+ export const outboundSchema = LinkClickedEventClick$outboundSchema;
531
+ /** @deprecated use `LinkClickedEventClick$Outbound` instead. */
532
+ export type Outbound = LinkClickedEventClick$Outbound;
533
+ }
534
+
535
+ /** @internal */
536
+ export const LinkClickedEventGeo$inboundSchema: z.ZodType<
537
+ LinkClickedEventGeo,
538
+ z.ZodTypeDef,
539
+ unknown
540
+ > = z.object({
541
+ AF: z.string().optional(),
542
+ AL: z.string().optional(),
543
+ DZ: z.string().optional(),
544
+ AS: z.string().optional(),
545
+ AD: z.string().optional(),
546
+ AO: z.string().optional(),
547
+ AI: z.string().optional(),
548
+ AQ: z.string().optional(),
549
+ AG: z.string().optional(),
550
+ AR: z.string().optional(),
551
+ AM: z.string().optional(),
552
+ AW: z.string().optional(),
553
+ AU: z.string().optional(),
554
+ AT: z.string().optional(),
555
+ AZ: z.string().optional(),
556
+ BS: z.string().optional(),
557
+ BH: z.string().optional(),
558
+ BD: z.string().optional(),
559
+ BB: z.string().optional(),
560
+ BY: z.string().optional(),
561
+ BE: z.string().optional(),
562
+ BZ: z.string().optional(),
563
+ BJ: z.string().optional(),
564
+ BM: z.string().optional(),
565
+ BT: z.string().optional(),
566
+ BO: z.string().optional(),
567
+ BA: z.string().optional(),
568
+ BW: z.string().optional(),
569
+ BV: z.string().optional(),
570
+ BR: z.string().optional(),
571
+ IO: z.string().optional(),
572
+ BN: z.string().optional(),
573
+ BG: z.string().optional(),
574
+ BF: z.string().optional(),
575
+ BI: z.string().optional(),
576
+ KH: z.string().optional(),
577
+ CM: z.string().optional(),
578
+ CA: z.string().optional(),
579
+ CV: z.string().optional(),
580
+ KY: z.string().optional(),
581
+ CF: z.string().optional(),
582
+ TD: z.string().optional(),
583
+ CL: z.string().optional(),
584
+ CN: z.string().optional(),
585
+ CX: z.string().optional(),
586
+ CC: z.string().optional(),
587
+ CO: z.string().optional(),
588
+ KM: z.string().optional(),
589
+ CG: z.string().optional(),
590
+ CD: z.string().optional(),
591
+ CK: z.string().optional(),
592
+ CR: z.string().optional(),
593
+ CI: z.string().optional(),
594
+ HR: z.string().optional(),
595
+ CU: z.string().optional(),
596
+ CY: z.string().optional(),
597
+ CZ: z.string().optional(),
598
+ DK: z.string().optional(),
599
+ DJ: z.string().optional(),
600
+ DM: z.string().optional(),
601
+ DO: z.string().optional(),
602
+ EC: z.string().optional(),
603
+ EG: z.string().optional(),
604
+ SV: z.string().optional(),
605
+ GQ: z.string().optional(),
606
+ ER: z.string().optional(),
607
+ EE: z.string().optional(),
608
+ ET: z.string().optional(),
609
+ FK: z.string().optional(),
610
+ FO: z.string().optional(),
611
+ FJ: z.string().optional(),
612
+ FI: z.string().optional(),
613
+ FR: z.string().optional(),
614
+ GF: z.string().optional(),
615
+ PF: z.string().optional(),
616
+ TF: z.string().optional(),
617
+ GA: z.string().optional(),
618
+ GM: z.string().optional(),
619
+ GE: z.string().optional(),
620
+ DE: z.string().optional(),
621
+ GH: z.string().optional(),
622
+ GI: z.string().optional(),
623
+ GR: z.string().optional(),
624
+ GL: z.string().optional(),
625
+ GD: z.string().optional(),
626
+ GP: z.string().optional(),
627
+ GU: z.string().optional(),
628
+ GT: z.string().optional(),
629
+ GN: z.string().optional(),
630
+ GW: z.string().optional(),
631
+ GY: z.string().optional(),
632
+ HT: z.string().optional(),
633
+ HM: z.string().optional(),
634
+ VA: z.string().optional(),
635
+ HN: z.string().optional(),
636
+ HK: z.string().optional(),
637
+ HU: z.string().optional(),
638
+ IS: z.string().optional(),
639
+ IN: z.string().optional(),
640
+ ID: z.string().optional(),
641
+ IR: z.string().optional(),
642
+ IQ: z.string().optional(),
643
+ IE: z.string().optional(),
644
+ IL: z.string().optional(),
645
+ IT: z.string().optional(),
646
+ JM: z.string().optional(),
647
+ JP: z.string().optional(),
648
+ JO: z.string().optional(),
649
+ KZ: z.string().optional(),
650
+ KE: z.string().optional(),
651
+ KI: z.string().optional(),
652
+ KP: z.string().optional(),
653
+ KR: z.string().optional(),
654
+ KW: z.string().optional(),
655
+ KG: z.string().optional(),
656
+ LA: z.string().optional(),
657
+ LV: z.string().optional(),
658
+ LB: z.string().optional(),
659
+ LS: z.string().optional(),
660
+ LR: z.string().optional(),
661
+ LY: z.string().optional(),
662
+ LI: z.string().optional(),
663
+ LT: z.string().optional(),
664
+ LU: z.string().optional(),
665
+ MO: z.string().optional(),
666
+ MG: z.string().optional(),
667
+ MW: z.string().optional(),
668
+ MY: z.string().optional(),
669
+ MV: z.string().optional(),
670
+ ML: z.string().optional(),
671
+ MT: z.string().optional(),
672
+ MH: z.string().optional(),
673
+ MQ: z.string().optional(),
674
+ MR: z.string().optional(),
675
+ MU: z.string().optional(),
676
+ YT: z.string().optional(),
677
+ MX: z.string().optional(),
678
+ FM: z.string().optional(),
679
+ MD: z.string().optional(),
680
+ MC: z.string().optional(),
681
+ MN: z.string().optional(),
682
+ MS: z.string().optional(),
683
+ MA: z.string().optional(),
684
+ MZ: z.string().optional(),
685
+ MM: z.string().optional(),
686
+ NA: z.string().optional(),
687
+ NR: z.string().optional(),
688
+ NP: z.string().optional(),
689
+ NL: z.string().optional(),
690
+ NC: z.string().optional(),
691
+ NZ: z.string().optional(),
692
+ NI: z.string().optional(),
693
+ NE: z.string().optional(),
694
+ NG: z.string().optional(),
695
+ NU: z.string().optional(),
696
+ NF: z.string().optional(),
697
+ MK: z.string().optional(),
698
+ MP: z.string().optional(),
699
+ NO: z.string().optional(),
700
+ OM: z.string().optional(),
701
+ PK: z.string().optional(),
702
+ PW: z.string().optional(),
703
+ PS: z.string().optional(),
704
+ PA: z.string().optional(),
705
+ PG: z.string().optional(),
706
+ PY: z.string().optional(),
707
+ PE: z.string().optional(),
708
+ PH: z.string().optional(),
709
+ PN: z.string().optional(),
710
+ PL: z.string().optional(),
711
+ PT: z.string().optional(),
712
+ PR: z.string().optional(),
713
+ QA: z.string().optional(),
714
+ RE: z.string().optional(),
715
+ RO: z.string().optional(),
716
+ RU: z.string().optional(),
717
+ RW: z.string().optional(),
718
+ SH: z.string().optional(),
719
+ KN: z.string().optional(),
720
+ LC: z.string().optional(),
721
+ PM: z.string().optional(),
722
+ VC: z.string().optional(),
723
+ WS: z.string().optional(),
724
+ SM: z.string().optional(),
725
+ ST: z.string().optional(),
726
+ SA: z.string().optional(),
727
+ SN: z.string().optional(),
728
+ SC: z.string().optional(),
729
+ SL: z.string().optional(),
730
+ SG: z.string().optional(),
731
+ SK: z.string().optional(),
732
+ SI: z.string().optional(),
733
+ SB: z.string().optional(),
734
+ SO: z.string().optional(),
735
+ ZA: z.string().optional(),
736
+ GS: z.string().optional(),
737
+ ES: z.string().optional(),
738
+ LK: z.string().optional(),
739
+ SD: z.string().optional(),
740
+ SR: z.string().optional(),
741
+ SJ: z.string().optional(),
742
+ SZ: z.string().optional(),
743
+ SE: z.string().optional(),
744
+ CH: z.string().optional(),
745
+ SY: z.string().optional(),
746
+ TW: z.string().optional(),
747
+ TJ: z.string().optional(),
748
+ TZ: z.string().optional(),
749
+ TH: z.string().optional(),
750
+ TL: z.string().optional(),
751
+ TG: z.string().optional(),
752
+ TK: z.string().optional(),
753
+ TO: z.string().optional(),
754
+ TT: z.string().optional(),
755
+ TN: z.string().optional(),
756
+ TR: z.string().optional(),
757
+ TM: z.string().optional(),
758
+ TC: z.string().optional(),
759
+ TV: z.string().optional(),
760
+ UG: z.string().optional(),
761
+ UA: z.string().optional(),
762
+ AE: z.string().optional(),
763
+ GB: z.string().optional(),
764
+ US: z.string().optional(),
765
+ UM: z.string().optional(),
766
+ UY: z.string().optional(),
767
+ UZ: z.string().optional(),
768
+ VU: z.string().optional(),
769
+ VE: z.string().optional(),
770
+ VN: z.string().optional(),
771
+ VG: z.string().optional(),
772
+ VI: z.string().optional(),
773
+ WF: z.string().optional(),
774
+ EH: z.string().optional(),
775
+ YE: z.string().optional(),
776
+ ZM: z.string().optional(),
777
+ ZW: z.string().optional(),
778
+ AX: z.string().optional(),
779
+ BQ: z.string().optional(),
780
+ CW: z.string().optional(),
781
+ GG: z.string().optional(),
782
+ IM: z.string().optional(),
783
+ JE: z.string().optional(),
784
+ ME: z.string().optional(),
785
+ BL: z.string().optional(),
786
+ MF: z.string().optional(),
787
+ RS: z.string().optional(),
788
+ SX: z.string().optional(),
789
+ SS: z.string().optional(),
790
+ XK: z.string().optional(),
791
+ }).transform((v) => {
792
+ return remap$(v, {
793
+ "AF": "af",
794
+ "AL": "al",
795
+ "DZ": "dz",
796
+ "AS": "as",
797
+ "AD": "ad",
798
+ "AO": "ao",
799
+ "AI": "ai",
800
+ "AQ": "aq",
801
+ "AG": "ag",
802
+ "AR": "ar",
803
+ "AM": "am",
804
+ "AW": "aw",
805
+ "AU": "au",
806
+ "AT": "at",
807
+ "AZ": "az",
808
+ "BS": "bs",
809
+ "BH": "bh",
810
+ "BD": "bd",
811
+ "BB": "bb",
812
+ "BY": "by",
813
+ "BE": "be",
814
+ "BZ": "bz",
815
+ "BJ": "bj",
816
+ "BM": "bm",
817
+ "BT": "bt",
818
+ "BO": "bo",
819
+ "BA": "ba",
820
+ "BW": "bw",
821
+ "BV": "bv",
822
+ "BR": "br",
823
+ "IO": "io",
824
+ "BN": "bn",
825
+ "BG": "bg",
826
+ "BF": "bf",
827
+ "BI": "bi",
828
+ "KH": "kh",
829
+ "CM": "cm",
830
+ "CA": "ca",
831
+ "CV": "cv",
832
+ "KY": "ky",
833
+ "CF": "cf",
834
+ "TD": "td",
835
+ "CL": "cl",
836
+ "CN": "cn",
837
+ "CX": "cx",
838
+ "CC": "cc",
839
+ "CO": "co",
840
+ "KM": "km",
841
+ "CG": "cg",
842
+ "CD": "cd",
843
+ "CK": "ck",
844
+ "CR": "cr",
845
+ "CI": "ci",
846
+ "HR": "hr",
847
+ "CU": "cu",
848
+ "CY": "cy",
849
+ "CZ": "cz",
850
+ "DK": "dk",
851
+ "DJ": "dj",
852
+ "DM": "dm",
853
+ "DO": "do",
854
+ "EC": "ec",
855
+ "EG": "eg",
856
+ "SV": "sv",
857
+ "GQ": "gq",
858
+ "ER": "er",
859
+ "EE": "ee",
860
+ "ET": "et",
861
+ "FK": "fk",
862
+ "FO": "fo",
863
+ "FJ": "fj",
864
+ "FI": "fi",
865
+ "FR": "fr",
866
+ "GF": "gf",
867
+ "PF": "pf",
868
+ "TF": "tf",
869
+ "GA": "ga",
870
+ "GM": "gm",
871
+ "GE": "ge",
872
+ "DE": "de",
873
+ "GH": "gh",
874
+ "GI": "gi",
875
+ "GR": "gr",
876
+ "GL": "gl",
877
+ "GD": "gd",
878
+ "GP": "gp",
879
+ "GU": "gu",
880
+ "GT": "gt",
881
+ "GN": "gn",
882
+ "GW": "gw",
883
+ "GY": "gy",
884
+ "HT": "ht",
885
+ "HM": "hm",
886
+ "VA": "va",
887
+ "HN": "hn",
888
+ "HK": "hk",
889
+ "HU": "hu",
890
+ "IS": "is",
891
+ "IN": "in",
892
+ "ID": "id",
893
+ "IR": "ir",
894
+ "IQ": "iq",
895
+ "IE": "ie",
896
+ "IL": "il",
897
+ "IT": "it",
898
+ "JM": "jm",
899
+ "JP": "jp",
900
+ "JO": "jo",
901
+ "KZ": "kz",
902
+ "KE": "ke",
903
+ "KI": "ki",
904
+ "KP": "kp",
905
+ "KR": "kr",
906
+ "KW": "kw",
907
+ "KG": "kg",
908
+ "LA": "la",
909
+ "LV": "lv",
910
+ "LB": "lb",
911
+ "LS": "ls",
912
+ "LR": "lr",
913
+ "LY": "ly",
914
+ "LI": "li",
915
+ "LT": "lt",
916
+ "LU": "lu",
917
+ "MO": "mo",
918
+ "MG": "mg",
919
+ "MW": "mw",
920
+ "MY": "my",
921
+ "MV": "mv",
922
+ "ML": "ml",
923
+ "MT": "mt",
924
+ "MH": "mh",
925
+ "MQ": "mq",
926
+ "MR": "mr",
927
+ "MU": "mu",
928
+ "YT": "yt",
929
+ "MX": "mx",
930
+ "FM": "fm",
931
+ "MD": "md",
932
+ "MC": "mc",
933
+ "MN": "mn",
934
+ "MS": "ms",
935
+ "MA": "ma",
936
+ "MZ": "mz",
937
+ "MM": "mm",
938
+ "NA": "na",
939
+ "NR": "nr",
940
+ "NP": "np",
941
+ "NL": "nl",
942
+ "NC": "nc",
943
+ "NZ": "nz",
944
+ "NI": "ni",
945
+ "NE": "ne",
946
+ "NG": "ng",
947
+ "NU": "nu",
948
+ "NF": "nf",
949
+ "MK": "mk",
950
+ "MP": "mp",
951
+ "NO": "no",
952
+ "OM": "om",
953
+ "PK": "pk",
954
+ "PW": "pw",
955
+ "PS": "ps",
956
+ "PA": "pa",
957
+ "PG": "pg",
958
+ "PY": "py",
959
+ "PE": "pe",
960
+ "PH": "ph",
961
+ "PN": "pn",
962
+ "PL": "pl",
963
+ "PT": "pt",
964
+ "PR": "pr",
965
+ "QA": "qa",
966
+ "RE": "re",
967
+ "RO": "ro",
968
+ "RU": "ru",
969
+ "RW": "rw",
970
+ "SH": "sh",
971
+ "KN": "kn",
972
+ "LC": "lc",
973
+ "PM": "pm",
974
+ "VC": "vc",
975
+ "WS": "ws",
976
+ "SM": "sm",
977
+ "ST": "st",
978
+ "SA": "sa",
979
+ "SN": "sn",
980
+ "SC": "sc",
981
+ "SL": "sl",
982
+ "SG": "sg",
983
+ "SK": "sk",
984
+ "SI": "si",
985
+ "SB": "sb",
986
+ "SO": "so",
987
+ "ZA": "za",
988
+ "GS": "gs",
989
+ "ES": "es",
990
+ "LK": "lk",
991
+ "SD": "sd",
992
+ "SR": "sr",
993
+ "SJ": "sj",
994
+ "SZ": "sz",
995
+ "SE": "se",
996
+ "CH": "ch",
997
+ "SY": "sy",
998
+ "TW": "tw",
999
+ "TJ": "tj",
1000
+ "TZ": "tz",
1001
+ "TH": "th",
1002
+ "TL": "tl",
1003
+ "TG": "tg",
1004
+ "TK": "tk",
1005
+ "TO": "to",
1006
+ "TT": "tt",
1007
+ "TN": "tn",
1008
+ "TR": "tr",
1009
+ "TM": "tm",
1010
+ "TC": "tc",
1011
+ "TV": "tv",
1012
+ "UG": "ug",
1013
+ "UA": "ua",
1014
+ "AE": "ae",
1015
+ "GB": "gb",
1016
+ "US": "us",
1017
+ "UM": "um",
1018
+ "UY": "uy",
1019
+ "UZ": "uz",
1020
+ "VU": "vu",
1021
+ "VE": "ve",
1022
+ "VN": "vn",
1023
+ "VG": "vg",
1024
+ "VI": "vi",
1025
+ "WF": "wf",
1026
+ "EH": "eh",
1027
+ "YE": "ye",
1028
+ "ZM": "zm",
1029
+ "ZW": "zw",
1030
+ "AX": "ax",
1031
+ "BQ": "bq",
1032
+ "CW": "cw",
1033
+ "GG": "gg",
1034
+ "IM": "im",
1035
+ "JE": "je",
1036
+ "ME": "me",
1037
+ "BL": "bl",
1038
+ "MF": "mf",
1039
+ "RS": "rs",
1040
+ "SX": "sx",
1041
+ "SS": "ss",
1042
+ "XK": "xk",
1043
+ });
1044
+ });
1045
+
1046
+ /** @internal */
1047
+ export type LinkClickedEventGeo$Outbound = {
1048
+ AF?: string | undefined;
1049
+ AL?: string | undefined;
1050
+ DZ?: string | undefined;
1051
+ AS?: string | undefined;
1052
+ AD?: string | undefined;
1053
+ AO?: string | undefined;
1054
+ AI?: string | undefined;
1055
+ AQ?: string | undefined;
1056
+ AG?: string | undefined;
1057
+ AR?: string | undefined;
1058
+ AM?: string | undefined;
1059
+ AW?: string | undefined;
1060
+ AU?: string | undefined;
1061
+ AT?: string | undefined;
1062
+ AZ?: string | undefined;
1063
+ BS?: string | undefined;
1064
+ BH?: string | undefined;
1065
+ BD?: string | undefined;
1066
+ BB?: string | undefined;
1067
+ BY?: string | undefined;
1068
+ BE?: string | undefined;
1069
+ BZ?: string | undefined;
1070
+ BJ?: string | undefined;
1071
+ BM?: string | undefined;
1072
+ BT?: string | undefined;
1073
+ BO?: string | undefined;
1074
+ BA?: string | undefined;
1075
+ BW?: string | undefined;
1076
+ BV?: string | undefined;
1077
+ BR?: string | undefined;
1078
+ IO?: string | undefined;
1079
+ BN?: string | undefined;
1080
+ BG?: string | undefined;
1081
+ BF?: string | undefined;
1082
+ BI?: string | undefined;
1083
+ KH?: string | undefined;
1084
+ CM?: string | undefined;
1085
+ CA?: string | undefined;
1086
+ CV?: string | undefined;
1087
+ KY?: string | undefined;
1088
+ CF?: string | undefined;
1089
+ TD?: string | undefined;
1090
+ CL?: string | undefined;
1091
+ CN?: string | undefined;
1092
+ CX?: string | undefined;
1093
+ CC?: string | undefined;
1094
+ CO?: string | undefined;
1095
+ KM?: string | undefined;
1096
+ CG?: string | undefined;
1097
+ CD?: string | undefined;
1098
+ CK?: string | undefined;
1099
+ CR?: string | undefined;
1100
+ CI?: string | undefined;
1101
+ HR?: string | undefined;
1102
+ CU?: string | undefined;
1103
+ CY?: string | undefined;
1104
+ CZ?: string | undefined;
1105
+ DK?: string | undefined;
1106
+ DJ?: string | undefined;
1107
+ DM?: string | undefined;
1108
+ DO?: string | undefined;
1109
+ EC?: string | undefined;
1110
+ EG?: string | undefined;
1111
+ SV?: string | undefined;
1112
+ GQ?: string | undefined;
1113
+ ER?: string | undefined;
1114
+ EE?: string | undefined;
1115
+ ET?: string | undefined;
1116
+ FK?: string | undefined;
1117
+ FO?: string | undefined;
1118
+ FJ?: string | undefined;
1119
+ FI?: string | undefined;
1120
+ FR?: string | undefined;
1121
+ GF?: string | undefined;
1122
+ PF?: string | undefined;
1123
+ TF?: string | undefined;
1124
+ GA?: string | undefined;
1125
+ GM?: string | undefined;
1126
+ GE?: string | undefined;
1127
+ DE?: string | undefined;
1128
+ GH?: string | undefined;
1129
+ GI?: string | undefined;
1130
+ GR?: string | undefined;
1131
+ GL?: string | undefined;
1132
+ GD?: string | undefined;
1133
+ GP?: string | undefined;
1134
+ GU?: string | undefined;
1135
+ GT?: string | undefined;
1136
+ GN?: string | undefined;
1137
+ GW?: string | undefined;
1138
+ GY?: string | undefined;
1139
+ HT?: string | undefined;
1140
+ HM?: string | undefined;
1141
+ VA?: string | undefined;
1142
+ HN?: string | undefined;
1143
+ HK?: string | undefined;
1144
+ HU?: string | undefined;
1145
+ IS?: string | undefined;
1146
+ IN?: string | undefined;
1147
+ ID?: string | undefined;
1148
+ IR?: string | undefined;
1149
+ IQ?: string | undefined;
1150
+ IE?: string | undefined;
1151
+ IL?: string | undefined;
1152
+ IT?: string | undefined;
1153
+ JM?: string | undefined;
1154
+ JP?: string | undefined;
1155
+ JO?: string | undefined;
1156
+ KZ?: string | undefined;
1157
+ KE?: string | undefined;
1158
+ KI?: string | undefined;
1159
+ KP?: string | undefined;
1160
+ KR?: string | undefined;
1161
+ KW?: string | undefined;
1162
+ KG?: string | undefined;
1163
+ LA?: string | undefined;
1164
+ LV?: string | undefined;
1165
+ LB?: string | undefined;
1166
+ LS?: string | undefined;
1167
+ LR?: string | undefined;
1168
+ LY?: string | undefined;
1169
+ LI?: string | undefined;
1170
+ LT?: string | undefined;
1171
+ LU?: string | undefined;
1172
+ MO?: string | undefined;
1173
+ MG?: string | undefined;
1174
+ MW?: string | undefined;
1175
+ MY?: string | undefined;
1176
+ MV?: string | undefined;
1177
+ ML?: string | undefined;
1178
+ MT?: string | undefined;
1179
+ MH?: string | undefined;
1180
+ MQ?: string | undefined;
1181
+ MR?: string | undefined;
1182
+ MU?: string | undefined;
1183
+ YT?: string | undefined;
1184
+ MX?: string | undefined;
1185
+ FM?: string | undefined;
1186
+ MD?: string | undefined;
1187
+ MC?: string | undefined;
1188
+ MN?: string | undefined;
1189
+ MS?: string | undefined;
1190
+ MA?: string | undefined;
1191
+ MZ?: string | undefined;
1192
+ MM?: string | undefined;
1193
+ NA?: string | undefined;
1194
+ NR?: string | undefined;
1195
+ NP?: string | undefined;
1196
+ NL?: string | undefined;
1197
+ NC?: string | undefined;
1198
+ NZ?: string | undefined;
1199
+ NI?: string | undefined;
1200
+ NE?: string | undefined;
1201
+ NG?: string | undefined;
1202
+ NU?: string | undefined;
1203
+ NF?: string | undefined;
1204
+ MK?: string | undefined;
1205
+ MP?: string | undefined;
1206
+ NO?: string | undefined;
1207
+ OM?: string | undefined;
1208
+ PK?: string | undefined;
1209
+ PW?: string | undefined;
1210
+ PS?: string | undefined;
1211
+ PA?: string | undefined;
1212
+ PG?: string | undefined;
1213
+ PY?: string | undefined;
1214
+ PE?: string | undefined;
1215
+ PH?: string | undefined;
1216
+ PN?: string | undefined;
1217
+ PL?: string | undefined;
1218
+ PT?: string | undefined;
1219
+ PR?: string | undefined;
1220
+ QA?: string | undefined;
1221
+ RE?: string | undefined;
1222
+ RO?: string | undefined;
1223
+ RU?: string | undefined;
1224
+ RW?: string | undefined;
1225
+ SH?: string | undefined;
1226
+ KN?: string | undefined;
1227
+ LC?: string | undefined;
1228
+ PM?: string | undefined;
1229
+ VC?: string | undefined;
1230
+ WS?: string | undefined;
1231
+ SM?: string | undefined;
1232
+ ST?: string | undefined;
1233
+ SA?: string | undefined;
1234
+ SN?: string | undefined;
1235
+ SC?: string | undefined;
1236
+ SL?: string | undefined;
1237
+ SG?: string | undefined;
1238
+ SK?: string | undefined;
1239
+ SI?: string | undefined;
1240
+ SB?: string | undefined;
1241
+ SO?: string | undefined;
1242
+ ZA?: string | undefined;
1243
+ GS?: string | undefined;
1244
+ ES?: string | undefined;
1245
+ LK?: string | undefined;
1246
+ SD?: string | undefined;
1247
+ SR?: string | undefined;
1248
+ SJ?: string | undefined;
1249
+ SZ?: string | undefined;
1250
+ SE?: string | undefined;
1251
+ CH?: string | undefined;
1252
+ SY?: string | undefined;
1253
+ TW?: string | undefined;
1254
+ TJ?: string | undefined;
1255
+ TZ?: string | undefined;
1256
+ TH?: string | undefined;
1257
+ TL?: string | undefined;
1258
+ TG?: string | undefined;
1259
+ TK?: string | undefined;
1260
+ TO?: string | undefined;
1261
+ TT?: string | undefined;
1262
+ TN?: string | undefined;
1263
+ TR?: string | undefined;
1264
+ TM?: string | undefined;
1265
+ TC?: string | undefined;
1266
+ TV?: string | undefined;
1267
+ UG?: string | undefined;
1268
+ UA?: string | undefined;
1269
+ AE?: string | undefined;
1270
+ GB?: string | undefined;
1271
+ US?: string | undefined;
1272
+ UM?: string | undefined;
1273
+ UY?: string | undefined;
1274
+ UZ?: string | undefined;
1275
+ VU?: string | undefined;
1276
+ VE?: string | undefined;
1277
+ VN?: string | undefined;
1278
+ VG?: string | undefined;
1279
+ VI?: string | undefined;
1280
+ WF?: string | undefined;
1281
+ EH?: string | undefined;
1282
+ YE?: string | undefined;
1283
+ ZM?: string | undefined;
1284
+ ZW?: string | undefined;
1285
+ AX?: string | undefined;
1286
+ BQ?: string | undefined;
1287
+ CW?: string | undefined;
1288
+ GG?: string | undefined;
1289
+ IM?: string | undefined;
1290
+ JE?: string | undefined;
1291
+ ME?: string | undefined;
1292
+ BL?: string | undefined;
1293
+ MF?: string | undefined;
1294
+ RS?: string | undefined;
1295
+ SX?: string | undefined;
1296
+ SS?: string | undefined;
1297
+ XK?: string | undefined;
1298
+ };
1299
+
1300
+ /** @internal */
1301
+ export const LinkClickedEventGeo$outboundSchema: z.ZodType<
1302
+ LinkClickedEventGeo$Outbound,
1303
+ z.ZodTypeDef,
1304
+ LinkClickedEventGeo
1305
+ > = z.object({
1306
+ af: z.string().optional(),
1307
+ al: z.string().optional(),
1308
+ dz: z.string().optional(),
1309
+ as: z.string().optional(),
1310
+ ad: z.string().optional(),
1311
+ ao: z.string().optional(),
1312
+ ai: z.string().optional(),
1313
+ aq: z.string().optional(),
1314
+ ag: z.string().optional(),
1315
+ ar: z.string().optional(),
1316
+ am: z.string().optional(),
1317
+ aw: z.string().optional(),
1318
+ au: z.string().optional(),
1319
+ at: z.string().optional(),
1320
+ az: z.string().optional(),
1321
+ bs: z.string().optional(),
1322
+ bh: z.string().optional(),
1323
+ bd: z.string().optional(),
1324
+ bb: z.string().optional(),
1325
+ by: z.string().optional(),
1326
+ be: z.string().optional(),
1327
+ bz: z.string().optional(),
1328
+ bj: z.string().optional(),
1329
+ bm: z.string().optional(),
1330
+ bt: z.string().optional(),
1331
+ bo: z.string().optional(),
1332
+ ba: z.string().optional(),
1333
+ bw: z.string().optional(),
1334
+ bv: z.string().optional(),
1335
+ br: z.string().optional(),
1336
+ io: z.string().optional(),
1337
+ bn: z.string().optional(),
1338
+ bg: z.string().optional(),
1339
+ bf: z.string().optional(),
1340
+ bi: z.string().optional(),
1341
+ kh: z.string().optional(),
1342
+ cm: z.string().optional(),
1343
+ ca: z.string().optional(),
1344
+ cv: z.string().optional(),
1345
+ ky: z.string().optional(),
1346
+ cf: z.string().optional(),
1347
+ td: z.string().optional(),
1348
+ cl: z.string().optional(),
1349
+ cn: z.string().optional(),
1350
+ cx: z.string().optional(),
1351
+ cc: z.string().optional(),
1352
+ co: z.string().optional(),
1353
+ km: z.string().optional(),
1354
+ cg: z.string().optional(),
1355
+ cd: z.string().optional(),
1356
+ ck: z.string().optional(),
1357
+ cr: z.string().optional(),
1358
+ ci: z.string().optional(),
1359
+ hr: z.string().optional(),
1360
+ cu: z.string().optional(),
1361
+ cy: z.string().optional(),
1362
+ cz: z.string().optional(),
1363
+ dk: z.string().optional(),
1364
+ dj: z.string().optional(),
1365
+ dm: z.string().optional(),
1366
+ do: z.string().optional(),
1367
+ ec: z.string().optional(),
1368
+ eg: z.string().optional(),
1369
+ sv: z.string().optional(),
1370
+ gq: z.string().optional(),
1371
+ er: z.string().optional(),
1372
+ ee: z.string().optional(),
1373
+ et: z.string().optional(),
1374
+ fk: z.string().optional(),
1375
+ fo: z.string().optional(),
1376
+ fj: z.string().optional(),
1377
+ fi: z.string().optional(),
1378
+ fr: z.string().optional(),
1379
+ gf: z.string().optional(),
1380
+ pf: z.string().optional(),
1381
+ tf: z.string().optional(),
1382
+ ga: z.string().optional(),
1383
+ gm: z.string().optional(),
1384
+ ge: z.string().optional(),
1385
+ de: z.string().optional(),
1386
+ gh: z.string().optional(),
1387
+ gi: z.string().optional(),
1388
+ gr: z.string().optional(),
1389
+ gl: z.string().optional(),
1390
+ gd: z.string().optional(),
1391
+ gp: z.string().optional(),
1392
+ gu: z.string().optional(),
1393
+ gt: z.string().optional(),
1394
+ gn: z.string().optional(),
1395
+ gw: z.string().optional(),
1396
+ gy: z.string().optional(),
1397
+ ht: z.string().optional(),
1398
+ hm: z.string().optional(),
1399
+ va: z.string().optional(),
1400
+ hn: z.string().optional(),
1401
+ hk: z.string().optional(),
1402
+ hu: z.string().optional(),
1403
+ is: z.string().optional(),
1404
+ in: z.string().optional(),
1405
+ id: z.string().optional(),
1406
+ ir: z.string().optional(),
1407
+ iq: z.string().optional(),
1408
+ ie: z.string().optional(),
1409
+ il: z.string().optional(),
1410
+ it: z.string().optional(),
1411
+ jm: z.string().optional(),
1412
+ jp: z.string().optional(),
1413
+ jo: z.string().optional(),
1414
+ kz: z.string().optional(),
1415
+ ke: z.string().optional(),
1416
+ ki: z.string().optional(),
1417
+ kp: z.string().optional(),
1418
+ kr: z.string().optional(),
1419
+ kw: z.string().optional(),
1420
+ kg: z.string().optional(),
1421
+ la: z.string().optional(),
1422
+ lv: z.string().optional(),
1423
+ lb: z.string().optional(),
1424
+ ls: z.string().optional(),
1425
+ lr: z.string().optional(),
1426
+ ly: z.string().optional(),
1427
+ li: z.string().optional(),
1428
+ lt: z.string().optional(),
1429
+ lu: z.string().optional(),
1430
+ mo: z.string().optional(),
1431
+ mg: z.string().optional(),
1432
+ mw: z.string().optional(),
1433
+ my: z.string().optional(),
1434
+ mv: z.string().optional(),
1435
+ ml: z.string().optional(),
1436
+ mt: z.string().optional(),
1437
+ mh: z.string().optional(),
1438
+ mq: z.string().optional(),
1439
+ mr: z.string().optional(),
1440
+ mu: z.string().optional(),
1441
+ yt: z.string().optional(),
1442
+ mx: z.string().optional(),
1443
+ fm: z.string().optional(),
1444
+ md: z.string().optional(),
1445
+ mc: z.string().optional(),
1446
+ mn: z.string().optional(),
1447
+ ms: z.string().optional(),
1448
+ ma: z.string().optional(),
1449
+ mz: z.string().optional(),
1450
+ mm: z.string().optional(),
1451
+ na: z.string().optional(),
1452
+ nr: z.string().optional(),
1453
+ np: z.string().optional(),
1454
+ nl: z.string().optional(),
1455
+ nc: z.string().optional(),
1456
+ nz: z.string().optional(),
1457
+ ni: z.string().optional(),
1458
+ ne: z.string().optional(),
1459
+ ng: z.string().optional(),
1460
+ nu: z.string().optional(),
1461
+ nf: z.string().optional(),
1462
+ mk: z.string().optional(),
1463
+ mp: z.string().optional(),
1464
+ no: z.string().optional(),
1465
+ om: z.string().optional(),
1466
+ pk: z.string().optional(),
1467
+ pw: z.string().optional(),
1468
+ ps: z.string().optional(),
1469
+ pa: z.string().optional(),
1470
+ pg: z.string().optional(),
1471
+ py: z.string().optional(),
1472
+ pe: z.string().optional(),
1473
+ ph: z.string().optional(),
1474
+ pn: z.string().optional(),
1475
+ pl: z.string().optional(),
1476
+ pt: z.string().optional(),
1477
+ pr: z.string().optional(),
1478
+ qa: z.string().optional(),
1479
+ re: z.string().optional(),
1480
+ ro: z.string().optional(),
1481
+ ru: z.string().optional(),
1482
+ rw: z.string().optional(),
1483
+ sh: z.string().optional(),
1484
+ kn: z.string().optional(),
1485
+ lc: z.string().optional(),
1486
+ pm: z.string().optional(),
1487
+ vc: z.string().optional(),
1488
+ ws: z.string().optional(),
1489
+ sm: z.string().optional(),
1490
+ st: z.string().optional(),
1491
+ sa: z.string().optional(),
1492
+ sn: z.string().optional(),
1493
+ sc: z.string().optional(),
1494
+ sl: z.string().optional(),
1495
+ sg: z.string().optional(),
1496
+ sk: z.string().optional(),
1497
+ si: z.string().optional(),
1498
+ sb: z.string().optional(),
1499
+ so: z.string().optional(),
1500
+ za: z.string().optional(),
1501
+ gs: z.string().optional(),
1502
+ es: z.string().optional(),
1503
+ lk: z.string().optional(),
1504
+ sd: z.string().optional(),
1505
+ sr: z.string().optional(),
1506
+ sj: z.string().optional(),
1507
+ sz: z.string().optional(),
1508
+ se: z.string().optional(),
1509
+ ch: z.string().optional(),
1510
+ sy: z.string().optional(),
1511
+ tw: z.string().optional(),
1512
+ tj: z.string().optional(),
1513
+ tz: z.string().optional(),
1514
+ th: z.string().optional(),
1515
+ tl: z.string().optional(),
1516
+ tg: z.string().optional(),
1517
+ tk: z.string().optional(),
1518
+ to: z.string().optional(),
1519
+ tt: z.string().optional(),
1520
+ tn: z.string().optional(),
1521
+ tr: z.string().optional(),
1522
+ tm: z.string().optional(),
1523
+ tc: z.string().optional(),
1524
+ tv: z.string().optional(),
1525
+ ug: z.string().optional(),
1526
+ ua: z.string().optional(),
1527
+ ae: z.string().optional(),
1528
+ gb: z.string().optional(),
1529
+ us: z.string().optional(),
1530
+ um: z.string().optional(),
1531
+ uy: z.string().optional(),
1532
+ uz: z.string().optional(),
1533
+ vu: z.string().optional(),
1534
+ ve: z.string().optional(),
1535
+ vn: z.string().optional(),
1536
+ vg: z.string().optional(),
1537
+ vi: z.string().optional(),
1538
+ wf: z.string().optional(),
1539
+ eh: z.string().optional(),
1540
+ ye: z.string().optional(),
1541
+ zm: z.string().optional(),
1542
+ zw: z.string().optional(),
1543
+ ax: z.string().optional(),
1544
+ bq: z.string().optional(),
1545
+ cw: z.string().optional(),
1546
+ gg: z.string().optional(),
1547
+ im: z.string().optional(),
1548
+ je: z.string().optional(),
1549
+ me: z.string().optional(),
1550
+ bl: z.string().optional(),
1551
+ mf: z.string().optional(),
1552
+ rs: z.string().optional(),
1553
+ sx: z.string().optional(),
1554
+ ss: z.string().optional(),
1555
+ xk: z.string().optional(),
1556
+ }).transform((v) => {
1557
+ return remap$(v, {
1558
+ af: "AF",
1559
+ al: "AL",
1560
+ dz: "DZ",
1561
+ as: "AS",
1562
+ ad: "AD",
1563
+ ao: "AO",
1564
+ ai: "AI",
1565
+ aq: "AQ",
1566
+ ag: "AG",
1567
+ ar: "AR",
1568
+ am: "AM",
1569
+ aw: "AW",
1570
+ au: "AU",
1571
+ at: "AT",
1572
+ az: "AZ",
1573
+ bs: "BS",
1574
+ bh: "BH",
1575
+ bd: "BD",
1576
+ bb: "BB",
1577
+ by: "BY",
1578
+ be: "BE",
1579
+ bz: "BZ",
1580
+ bj: "BJ",
1581
+ bm: "BM",
1582
+ bt: "BT",
1583
+ bo: "BO",
1584
+ ba: "BA",
1585
+ bw: "BW",
1586
+ bv: "BV",
1587
+ br: "BR",
1588
+ io: "IO",
1589
+ bn: "BN",
1590
+ bg: "BG",
1591
+ bf: "BF",
1592
+ bi: "BI",
1593
+ kh: "KH",
1594
+ cm: "CM",
1595
+ ca: "CA",
1596
+ cv: "CV",
1597
+ ky: "KY",
1598
+ cf: "CF",
1599
+ td: "TD",
1600
+ cl: "CL",
1601
+ cn: "CN",
1602
+ cx: "CX",
1603
+ cc: "CC",
1604
+ co: "CO",
1605
+ km: "KM",
1606
+ cg: "CG",
1607
+ cd: "CD",
1608
+ ck: "CK",
1609
+ cr: "CR",
1610
+ ci: "CI",
1611
+ hr: "HR",
1612
+ cu: "CU",
1613
+ cy: "CY",
1614
+ cz: "CZ",
1615
+ dk: "DK",
1616
+ dj: "DJ",
1617
+ dm: "DM",
1618
+ do: "DO",
1619
+ ec: "EC",
1620
+ eg: "EG",
1621
+ sv: "SV",
1622
+ gq: "GQ",
1623
+ er: "ER",
1624
+ ee: "EE",
1625
+ et: "ET",
1626
+ fk: "FK",
1627
+ fo: "FO",
1628
+ fj: "FJ",
1629
+ fi: "FI",
1630
+ fr: "FR",
1631
+ gf: "GF",
1632
+ pf: "PF",
1633
+ tf: "TF",
1634
+ ga: "GA",
1635
+ gm: "GM",
1636
+ ge: "GE",
1637
+ de: "DE",
1638
+ gh: "GH",
1639
+ gi: "GI",
1640
+ gr: "GR",
1641
+ gl: "GL",
1642
+ gd: "GD",
1643
+ gp: "GP",
1644
+ gu: "GU",
1645
+ gt: "GT",
1646
+ gn: "GN",
1647
+ gw: "GW",
1648
+ gy: "GY",
1649
+ ht: "HT",
1650
+ hm: "HM",
1651
+ va: "VA",
1652
+ hn: "HN",
1653
+ hk: "HK",
1654
+ hu: "HU",
1655
+ is: "IS",
1656
+ in: "IN",
1657
+ id: "ID",
1658
+ ir: "IR",
1659
+ iq: "IQ",
1660
+ ie: "IE",
1661
+ il: "IL",
1662
+ it: "IT",
1663
+ jm: "JM",
1664
+ jp: "JP",
1665
+ jo: "JO",
1666
+ kz: "KZ",
1667
+ ke: "KE",
1668
+ ki: "KI",
1669
+ kp: "KP",
1670
+ kr: "KR",
1671
+ kw: "KW",
1672
+ kg: "KG",
1673
+ la: "LA",
1674
+ lv: "LV",
1675
+ lb: "LB",
1676
+ ls: "LS",
1677
+ lr: "LR",
1678
+ ly: "LY",
1679
+ li: "LI",
1680
+ lt: "LT",
1681
+ lu: "LU",
1682
+ mo: "MO",
1683
+ mg: "MG",
1684
+ mw: "MW",
1685
+ my: "MY",
1686
+ mv: "MV",
1687
+ ml: "ML",
1688
+ mt: "MT",
1689
+ mh: "MH",
1690
+ mq: "MQ",
1691
+ mr: "MR",
1692
+ mu: "MU",
1693
+ yt: "YT",
1694
+ mx: "MX",
1695
+ fm: "FM",
1696
+ md: "MD",
1697
+ mc: "MC",
1698
+ mn: "MN",
1699
+ ms: "MS",
1700
+ ma: "MA",
1701
+ mz: "MZ",
1702
+ mm: "MM",
1703
+ na: "NA",
1704
+ nr: "NR",
1705
+ np: "NP",
1706
+ nl: "NL",
1707
+ nc: "NC",
1708
+ nz: "NZ",
1709
+ ni: "NI",
1710
+ ne: "NE",
1711
+ ng: "NG",
1712
+ nu: "NU",
1713
+ nf: "NF",
1714
+ mk: "MK",
1715
+ mp: "MP",
1716
+ no: "NO",
1717
+ om: "OM",
1718
+ pk: "PK",
1719
+ pw: "PW",
1720
+ ps: "PS",
1721
+ pa: "PA",
1722
+ pg: "PG",
1723
+ py: "PY",
1724
+ pe: "PE",
1725
+ ph: "PH",
1726
+ pn: "PN",
1727
+ pl: "PL",
1728
+ pt: "PT",
1729
+ pr: "PR",
1730
+ qa: "QA",
1731
+ re: "RE",
1732
+ ro: "RO",
1733
+ ru: "RU",
1734
+ rw: "RW",
1735
+ sh: "SH",
1736
+ kn: "KN",
1737
+ lc: "LC",
1738
+ pm: "PM",
1739
+ vc: "VC",
1740
+ ws: "WS",
1741
+ sm: "SM",
1742
+ st: "ST",
1743
+ sa: "SA",
1744
+ sn: "SN",
1745
+ sc: "SC",
1746
+ sl: "SL",
1747
+ sg: "SG",
1748
+ sk: "SK",
1749
+ si: "SI",
1750
+ sb: "SB",
1751
+ so: "SO",
1752
+ za: "ZA",
1753
+ gs: "GS",
1754
+ es: "ES",
1755
+ lk: "LK",
1756
+ sd: "SD",
1757
+ sr: "SR",
1758
+ sj: "SJ",
1759
+ sz: "SZ",
1760
+ se: "SE",
1761
+ ch: "CH",
1762
+ sy: "SY",
1763
+ tw: "TW",
1764
+ tj: "TJ",
1765
+ tz: "TZ",
1766
+ th: "TH",
1767
+ tl: "TL",
1768
+ tg: "TG",
1769
+ tk: "TK",
1770
+ to: "TO",
1771
+ tt: "TT",
1772
+ tn: "TN",
1773
+ tr: "TR",
1774
+ tm: "TM",
1775
+ tc: "TC",
1776
+ tv: "TV",
1777
+ ug: "UG",
1778
+ ua: "UA",
1779
+ ae: "AE",
1780
+ gb: "GB",
1781
+ us: "US",
1782
+ um: "UM",
1783
+ uy: "UY",
1784
+ uz: "UZ",
1785
+ vu: "VU",
1786
+ ve: "VE",
1787
+ vn: "VN",
1788
+ vg: "VG",
1789
+ vi: "VI",
1790
+ wf: "WF",
1791
+ eh: "EH",
1792
+ ye: "YE",
1793
+ zm: "ZM",
1794
+ zw: "ZW",
1795
+ ax: "AX",
1796
+ bq: "BQ",
1797
+ cw: "CW",
1798
+ gg: "GG",
1799
+ im: "IM",
1800
+ je: "JE",
1801
+ me: "ME",
1802
+ bl: "BL",
1803
+ mf: "MF",
1804
+ rs: "RS",
1805
+ sx: "SX",
1806
+ ss: "SS",
1807
+ xk: "XK",
1808
+ });
1809
+ });
1810
+
1811
+ /**
1812
+ * @internal
1813
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1814
+ */
1815
+ export namespace LinkClickedEventGeo$ {
1816
+ /** @deprecated use `LinkClickedEventGeo$inboundSchema` instead. */
1817
+ export const inboundSchema = LinkClickedEventGeo$inboundSchema;
1818
+ /** @deprecated use `LinkClickedEventGeo$outboundSchema` instead. */
1819
+ export const outboundSchema = LinkClickedEventGeo$outboundSchema;
1820
+ /** @deprecated use `LinkClickedEventGeo$Outbound` instead. */
1821
+ export type Outbound = LinkClickedEventGeo$Outbound;
1822
+ }
1823
+
1824
+ /** @internal */
1825
+ export const LinkClickedEventLink$inboundSchema: z.ZodType<
1826
+ LinkClickedEventLink,
1827
+ z.ZodTypeDef,
1828
+ unknown
1829
+ > = z.object({
1830
+ id: z.string(),
1831
+ domain: z.string(),
1832
+ key: z.string(),
1833
+ url: z.string(),
1834
+ trackConversion: z.boolean().optional(),
1835
+ externalId: z.nullable(z.string()),
1836
+ identifier: z.nullable(z.string()),
1837
+ archived: z.boolean().optional(),
1838
+ expiresAt: z.string(),
1839
+ expiredUrl: z.nullable(z.string()),
1840
+ password: z.nullable(z.string()),
1841
+ proxy: z.boolean().optional(),
1842
+ title: z.nullable(z.string()),
1843
+ description: z.nullable(z.string()),
1844
+ image: z.nullable(z.string()),
1845
+ video: z.nullable(z.string()),
1846
+ rewrite: z.boolean().optional(),
1847
+ doIndex: z.boolean().optional(),
1848
+ ios: z.nullable(z.string()),
1849
+ android: z.nullable(z.string()),
1850
+ geo: z.nullable(z.lazy(() => LinkClickedEventGeo$inboundSchema)),
1851
+ publicStats: z.boolean().optional(),
1852
+ tagId: z.nullable(z.string()),
1853
+ tags: z.nullable(z.array(TagSchema$inboundSchema)),
1854
+ comments: z.nullable(z.string()),
1855
+ shortLink: z.string(),
1856
+ qrCode: z.string(),
1857
+ utm_source: z.nullable(z.string()),
1858
+ utm_medium: z.nullable(z.string()),
1859
+ utm_campaign: z.nullable(z.string()),
1860
+ utm_term: z.nullable(z.string()),
1861
+ utm_content: z.nullable(z.string()),
1862
+ userId: z.nullable(z.string()),
1863
+ workspaceId: z.string(),
1864
+ clicks: z.number().default(0),
1865
+ lastClicked: z.string(),
1866
+ leads: z.number().default(0),
1867
+ sales: z.number().default(0),
1868
+ saleAmount: z.number().default(0),
1869
+ createdAt: z.string(),
1870
+ updatedAt: z.string(),
1871
+ projectId: z.string(),
1872
+ }).transform((v) => {
1873
+ return remap$(v, {
1874
+ "utm_source": "utmSource",
1875
+ "utm_medium": "utmMedium",
1876
+ "utm_campaign": "utmCampaign",
1877
+ "utm_term": "utmTerm",
1878
+ "utm_content": "utmContent",
1879
+ });
1880
+ });
1881
+
1882
+ /** @internal */
1883
+ export type LinkClickedEventLink$Outbound = {
1884
+ id: string;
1885
+ domain: string;
1886
+ key: string;
1887
+ url: string;
1888
+ trackConversion?: boolean | undefined;
1889
+ externalId: string | null;
1890
+ identifier: string | null;
1891
+ archived?: boolean | undefined;
1892
+ expiresAt: string;
1893
+ expiredUrl: string | null;
1894
+ password: string | null;
1895
+ proxy?: boolean | undefined;
1896
+ title: string | null;
1897
+ description: string | null;
1898
+ image: string | null;
1899
+ video: string | null;
1900
+ rewrite?: boolean | undefined;
1901
+ doIndex?: boolean | undefined;
1902
+ ios: string | null;
1903
+ android: string | null;
1904
+ geo: LinkClickedEventGeo$Outbound | null;
1905
+ publicStats?: boolean | undefined;
1906
+ tagId: string | null;
1907
+ tags: Array<TagSchema$Outbound> | null;
1908
+ comments: string | null;
1909
+ shortLink: string;
1910
+ qrCode: string;
1911
+ utm_source: string | null;
1912
+ utm_medium: string | null;
1913
+ utm_campaign: string | null;
1914
+ utm_term: string | null;
1915
+ utm_content: string | null;
1916
+ userId: string | null;
1917
+ workspaceId: string;
1918
+ clicks: number;
1919
+ lastClicked: string;
1920
+ leads: number;
1921
+ sales: number;
1922
+ saleAmount: number;
1923
+ createdAt: string;
1924
+ updatedAt: string;
1925
+ projectId: string;
1926
+ };
1927
+
1928
+ /** @internal */
1929
+ export const LinkClickedEventLink$outboundSchema: z.ZodType<
1930
+ LinkClickedEventLink$Outbound,
1931
+ z.ZodTypeDef,
1932
+ LinkClickedEventLink
1933
+ > = z.object({
1934
+ id: z.string(),
1935
+ domain: z.string(),
1936
+ key: z.string(),
1937
+ url: z.string(),
1938
+ trackConversion: z.boolean().optional(),
1939
+ externalId: z.nullable(z.string()),
1940
+ identifier: z.nullable(z.string()),
1941
+ archived: z.boolean().optional(),
1942
+ expiresAt: z.string(),
1943
+ expiredUrl: z.nullable(z.string()),
1944
+ password: z.nullable(z.string()),
1945
+ proxy: z.boolean().optional(),
1946
+ title: z.nullable(z.string()),
1947
+ description: z.nullable(z.string()),
1948
+ image: z.nullable(z.string()),
1949
+ video: z.nullable(z.string()),
1950
+ rewrite: z.boolean().optional(),
1951
+ doIndex: z.boolean().optional(),
1952
+ ios: z.nullable(z.string()),
1953
+ android: z.nullable(z.string()),
1954
+ geo: z.nullable(z.lazy(() => LinkClickedEventGeo$outboundSchema)),
1955
+ publicStats: z.boolean().optional(),
1956
+ tagId: z.nullable(z.string()),
1957
+ tags: z.nullable(z.array(TagSchema$outboundSchema)),
1958
+ comments: z.nullable(z.string()),
1959
+ shortLink: z.string(),
1960
+ qrCode: z.string(),
1961
+ utmSource: z.nullable(z.string()),
1962
+ utmMedium: z.nullable(z.string()),
1963
+ utmCampaign: z.nullable(z.string()),
1964
+ utmTerm: z.nullable(z.string()),
1965
+ utmContent: z.nullable(z.string()),
1966
+ userId: z.nullable(z.string()),
1967
+ workspaceId: z.string(),
1968
+ clicks: z.number().default(0),
1969
+ lastClicked: z.string(),
1970
+ leads: z.number().default(0),
1971
+ sales: z.number().default(0),
1972
+ saleAmount: z.number().default(0),
1973
+ createdAt: z.string(),
1974
+ updatedAt: z.string(),
1975
+ projectId: z.string(),
1976
+ }).transform((v) => {
1977
+ return remap$(v, {
1978
+ utmSource: "utm_source",
1979
+ utmMedium: "utm_medium",
1980
+ utmCampaign: "utm_campaign",
1981
+ utmTerm: "utm_term",
1982
+ utmContent: "utm_content",
1983
+ });
1984
+ });
1985
+
1986
+ /**
1987
+ * @internal
1988
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1989
+ */
1990
+ export namespace LinkClickedEventLink$ {
1991
+ /** @deprecated use `LinkClickedEventLink$inboundSchema` instead. */
1992
+ export const inboundSchema = LinkClickedEventLink$inboundSchema;
1993
+ /** @deprecated use `LinkClickedEventLink$outboundSchema` instead. */
1994
+ export const outboundSchema = LinkClickedEventLink$outboundSchema;
1995
+ /** @deprecated use `LinkClickedEventLink$Outbound` instead. */
1996
+ export type Outbound = LinkClickedEventLink$Outbound;
1997
+ }
1998
+
1999
+ /** @internal */
2000
+ export const LinkClickedEventData$inboundSchema: z.ZodType<
2001
+ LinkClickedEventData,
2002
+ z.ZodTypeDef,
2003
+ unknown
2004
+ > = z.object({
2005
+ click: z.lazy(() => LinkClickedEventClick$inboundSchema),
2006
+ link: z.lazy(() => LinkClickedEventLink$inboundSchema),
2007
+ });
2008
+
2009
+ /** @internal */
2010
+ export type LinkClickedEventData$Outbound = {
2011
+ click: LinkClickedEventClick$Outbound;
2012
+ link: LinkClickedEventLink$Outbound;
2013
+ };
2014
+
2015
+ /** @internal */
2016
+ export const LinkClickedEventData$outboundSchema: z.ZodType<
2017
+ LinkClickedEventData$Outbound,
2018
+ z.ZodTypeDef,
2019
+ LinkClickedEventData
2020
+ > = z.object({
2021
+ click: z.lazy(() => LinkClickedEventClick$outboundSchema),
2022
+ link: z.lazy(() => LinkClickedEventLink$outboundSchema),
2023
+ });
2024
+
2025
+ /**
2026
+ * @internal
2027
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2028
+ */
2029
+ export namespace LinkClickedEventData$ {
2030
+ /** @deprecated use `LinkClickedEventData$inboundSchema` instead. */
2031
+ export const inboundSchema = LinkClickedEventData$inboundSchema;
2032
+ /** @deprecated use `LinkClickedEventData$outboundSchema` instead. */
2033
+ export const outboundSchema = LinkClickedEventData$outboundSchema;
2034
+ /** @deprecated use `LinkClickedEventData$Outbound` instead. */
2035
+ export type Outbound = LinkClickedEventData$Outbound;
2036
+ }
2037
+
2038
+ /** @internal */
2039
+ export const LinkClickedEvent$inboundSchema: z.ZodType<
2040
+ LinkClickedEvent,
2041
+ z.ZodTypeDef,
2042
+ unknown
2043
+ > = z.object({
2044
+ id: z.string(),
2045
+ event: LinkClickedEventEvent$inboundSchema,
2046
+ createdAt: z.string(),
2047
+ data: z.lazy(() => LinkClickedEventData$inboundSchema),
2048
+ });
2049
+
2050
+ /** @internal */
2051
+ export type LinkClickedEvent$Outbound = {
2052
+ id: string;
2053
+ event: string;
2054
+ createdAt: string;
2055
+ data: LinkClickedEventData$Outbound;
2056
+ };
2057
+
2058
+ /** @internal */
2059
+ export const LinkClickedEvent$outboundSchema: z.ZodType<
2060
+ LinkClickedEvent$Outbound,
2061
+ z.ZodTypeDef,
2062
+ LinkClickedEvent
2063
+ > = z.object({
2064
+ id: z.string(),
2065
+ event: LinkClickedEventEvent$outboundSchema,
2066
+ createdAt: z.string(),
2067
+ data: z.lazy(() => LinkClickedEventData$outboundSchema),
2068
+ });
2069
+
2070
+ /**
2071
+ * @internal
2072
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2073
+ */
2074
+ export namespace LinkClickedEvent$ {
2075
+ /** @deprecated use `LinkClickedEvent$inboundSchema` instead. */
2076
+ export const inboundSchema = LinkClickedEvent$inboundSchema;
2077
+ /** @deprecated use `LinkClickedEvent$outboundSchema` instead. */
2078
+ export const outboundSchema = LinkClickedEvent$outboundSchema;
2079
+ /** @deprecated use `LinkClickedEvent$Outbound` instead. */
2080
+ export type Outbound = LinkClickedEvent$Outbound;
2081
+ }