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