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,1272 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LinkWebhookEvent$ = exports.LinkWebhookEvent$outboundSchema = exports.LinkWebhookEvent$inboundSchema = exports.Data$ = exports.Data$outboundSchema = exports.Data$inboundSchema = exports.LinkWebhookEventGeo$ = exports.LinkWebhookEventGeo$outboundSchema = exports.LinkWebhookEventGeo$inboundSchema = exports.LinkWebhookEventEvent$ = exports.LinkWebhookEventEvent$outboundSchema = exports.LinkWebhookEventEvent$inboundSchema = exports.One$ = exports.One$outboundSchema = exports.One$inboundSchema = exports.Two$ = exports.Two$outboundSchema = exports.Two$inboundSchema = exports.Three$ = exports.Three$outboundSchema = exports.Three$inboundSchema = exports.One = exports.Two = exports.Three = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const tagschema_js_1 = require("./tagschema.js");
33
+ exports.Three = {
34
+ LinkDeleted: "link.deleted",
35
+ };
36
+ exports.Two = {
37
+ LinkUpdated: "link.updated",
38
+ };
39
+ exports.One = {
40
+ LinkCreated: "link.created",
41
+ };
42
+ /** @internal */
43
+ exports.Three$inboundSchema = z.nativeEnum(exports.Three);
44
+ /** @internal */
45
+ exports.Three$outboundSchema = exports.Three$inboundSchema;
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ var Three$;
51
+ (function (Three$) {
52
+ /** @deprecated use `Three$inboundSchema` instead. */
53
+ Three$.inboundSchema = exports.Three$inboundSchema;
54
+ /** @deprecated use `Three$outboundSchema` instead. */
55
+ Three$.outboundSchema = exports.Three$outboundSchema;
56
+ })(Three$ || (exports.Three$ = Three$ = {}));
57
+ /** @internal */
58
+ exports.Two$inboundSchema = z.nativeEnum(exports.Two);
59
+ /** @internal */
60
+ exports.Two$outboundSchema = exports.Two$inboundSchema;
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ var Two$;
66
+ (function (Two$) {
67
+ /** @deprecated use `Two$inboundSchema` instead. */
68
+ Two$.inboundSchema = exports.Two$inboundSchema;
69
+ /** @deprecated use `Two$outboundSchema` instead. */
70
+ Two$.outboundSchema = exports.Two$outboundSchema;
71
+ })(Two$ || (exports.Two$ = Two$ = {}));
72
+ /** @internal */
73
+ exports.One$inboundSchema = z.nativeEnum(exports.One);
74
+ /** @internal */
75
+ exports.One$outboundSchema = exports.One$inboundSchema;
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ var One$;
81
+ (function (One$) {
82
+ /** @deprecated use `One$inboundSchema` instead. */
83
+ One$.inboundSchema = exports.One$inboundSchema;
84
+ /** @deprecated use `One$outboundSchema` instead. */
85
+ One$.outboundSchema = exports.One$outboundSchema;
86
+ })(One$ || (exports.One$ = One$ = {}));
87
+ /** @internal */
88
+ exports.LinkWebhookEventEvent$inboundSchema = z.union([exports.One$inboundSchema, exports.Two$inboundSchema, exports.Three$inboundSchema]);
89
+ /** @internal */
90
+ exports.LinkWebhookEventEvent$outboundSchema = z.union([exports.One$outboundSchema, exports.Two$outboundSchema, exports.Three$outboundSchema]);
91
+ /**
92
+ * @internal
93
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
+ */
95
+ var LinkWebhookEventEvent$;
96
+ (function (LinkWebhookEventEvent$) {
97
+ /** @deprecated use `LinkWebhookEventEvent$inboundSchema` instead. */
98
+ LinkWebhookEventEvent$.inboundSchema = exports.LinkWebhookEventEvent$inboundSchema;
99
+ /** @deprecated use `LinkWebhookEventEvent$outboundSchema` instead. */
100
+ LinkWebhookEventEvent$.outboundSchema = exports.LinkWebhookEventEvent$outboundSchema;
101
+ })(LinkWebhookEventEvent$ || (exports.LinkWebhookEventEvent$ = LinkWebhookEventEvent$ = {}));
102
+ /** @internal */
103
+ exports.LinkWebhookEventGeo$inboundSchema = z.object({
104
+ AF: z.string().optional(),
105
+ AL: z.string().optional(),
106
+ DZ: z.string().optional(),
107
+ AS: z.string().optional(),
108
+ AD: z.string().optional(),
109
+ AO: z.string().optional(),
110
+ AI: z.string().optional(),
111
+ AQ: z.string().optional(),
112
+ AG: z.string().optional(),
113
+ AR: z.string().optional(),
114
+ AM: z.string().optional(),
115
+ AW: z.string().optional(),
116
+ AU: z.string().optional(),
117
+ AT: z.string().optional(),
118
+ AZ: z.string().optional(),
119
+ BS: z.string().optional(),
120
+ BH: z.string().optional(),
121
+ BD: z.string().optional(),
122
+ BB: z.string().optional(),
123
+ BY: z.string().optional(),
124
+ BE: z.string().optional(),
125
+ BZ: z.string().optional(),
126
+ BJ: z.string().optional(),
127
+ BM: z.string().optional(),
128
+ BT: z.string().optional(),
129
+ BO: z.string().optional(),
130
+ BA: z.string().optional(),
131
+ BW: z.string().optional(),
132
+ BV: z.string().optional(),
133
+ BR: z.string().optional(),
134
+ IO: z.string().optional(),
135
+ BN: z.string().optional(),
136
+ BG: z.string().optional(),
137
+ BF: z.string().optional(),
138
+ BI: z.string().optional(),
139
+ KH: z.string().optional(),
140
+ CM: z.string().optional(),
141
+ CA: z.string().optional(),
142
+ CV: z.string().optional(),
143
+ KY: z.string().optional(),
144
+ CF: z.string().optional(),
145
+ TD: z.string().optional(),
146
+ CL: z.string().optional(),
147
+ CN: z.string().optional(),
148
+ CX: z.string().optional(),
149
+ CC: z.string().optional(),
150
+ CO: z.string().optional(),
151
+ KM: z.string().optional(),
152
+ CG: z.string().optional(),
153
+ CD: z.string().optional(),
154
+ CK: z.string().optional(),
155
+ CR: z.string().optional(),
156
+ CI: z.string().optional(),
157
+ HR: z.string().optional(),
158
+ CU: z.string().optional(),
159
+ CY: z.string().optional(),
160
+ CZ: z.string().optional(),
161
+ DK: z.string().optional(),
162
+ DJ: z.string().optional(),
163
+ DM: z.string().optional(),
164
+ DO: z.string().optional(),
165
+ EC: z.string().optional(),
166
+ EG: z.string().optional(),
167
+ SV: z.string().optional(),
168
+ GQ: z.string().optional(),
169
+ ER: z.string().optional(),
170
+ EE: z.string().optional(),
171
+ ET: z.string().optional(),
172
+ FK: z.string().optional(),
173
+ FO: z.string().optional(),
174
+ FJ: z.string().optional(),
175
+ FI: z.string().optional(),
176
+ FR: z.string().optional(),
177
+ GF: z.string().optional(),
178
+ PF: z.string().optional(),
179
+ TF: z.string().optional(),
180
+ GA: z.string().optional(),
181
+ GM: z.string().optional(),
182
+ GE: z.string().optional(),
183
+ DE: z.string().optional(),
184
+ GH: z.string().optional(),
185
+ GI: z.string().optional(),
186
+ GR: z.string().optional(),
187
+ GL: z.string().optional(),
188
+ GD: z.string().optional(),
189
+ GP: z.string().optional(),
190
+ GU: z.string().optional(),
191
+ GT: z.string().optional(),
192
+ GN: z.string().optional(),
193
+ GW: z.string().optional(),
194
+ GY: z.string().optional(),
195
+ HT: z.string().optional(),
196
+ HM: z.string().optional(),
197
+ VA: z.string().optional(),
198
+ HN: z.string().optional(),
199
+ HK: z.string().optional(),
200
+ HU: z.string().optional(),
201
+ IS: z.string().optional(),
202
+ IN: z.string().optional(),
203
+ ID: z.string().optional(),
204
+ IR: z.string().optional(),
205
+ IQ: z.string().optional(),
206
+ IE: z.string().optional(),
207
+ IL: z.string().optional(),
208
+ IT: z.string().optional(),
209
+ JM: z.string().optional(),
210
+ JP: z.string().optional(),
211
+ JO: z.string().optional(),
212
+ KZ: z.string().optional(),
213
+ KE: z.string().optional(),
214
+ KI: z.string().optional(),
215
+ KP: z.string().optional(),
216
+ KR: z.string().optional(),
217
+ KW: z.string().optional(),
218
+ KG: z.string().optional(),
219
+ LA: z.string().optional(),
220
+ LV: z.string().optional(),
221
+ LB: z.string().optional(),
222
+ LS: z.string().optional(),
223
+ LR: z.string().optional(),
224
+ LY: z.string().optional(),
225
+ LI: z.string().optional(),
226
+ LT: z.string().optional(),
227
+ LU: z.string().optional(),
228
+ MO: z.string().optional(),
229
+ MG: z.string().optional(),
230
+ MW: z.string().optional(),
231
+ MY: z.string().optional(),
232
+ MV: z.string().optional(),
233
+ ML: z.string().optional(),
234
+ MT: z.string().optional(),
235
+ MH: z.string().optional(),
236
+ MQ: z.string().optional(),
237
+ MR: z.string().optional(),
238
+ MU: z.string().optional(),
239
+ YT: z.string().optional(),
240
+ MX: z.string().optional(),
241
+ FM: z.string().optional(),
242
+ MD: z.string().optional(),
243
+ MC: z.string().optional(),
244
+ MN: z.string().optional(),
245
+ MS: z.string().optional(),
246
+ MA: z.string().optional(),
247
+ MZ: z.string().optional(),
248
+ MM: z.string().optional(),
249
+ NA: z.string().optional(),
250
+ NR: z.string().optional(),
251
+ NP: z.string().optional(),
252
+ NL: z.string().optional(),
253
+ NC: z.string().optional(),
254
+ NZ: z.string().optional(),
255
+ NI: z.string().optional(),
256
+ NE: z.string().optional(),
257
+ NG: z.string().optional(),
258
+ NU: z.string().optional(),
259
+ NF: z.string().optional(),
260
+ MK: z.string().optional(),
261
+ MP: z.string().optional(),
262
+ NO: z.string().optional(),
263
+ OM: z.string().optional(),
264
+ PK: z.string().optional(),
265
+ PW: z.string().optional(),
266
+ PS: z.string().optional(),
267
+ PA: z.string().optional(),
268
+ PG: z.string().optional(),
269
+ PY: z.string().optional(),
270
+ PE: z.string().optional(),
271
+ PH: z.string().optional(),
272
+ PN: z.string().optional(),
273
+ PL: z.string().optional(),
274
+ PT: z.string().optional(),
275
+ PR: z.string().optional(),
276
+ QA: z.string().optional(),
277
+ RE: z.string().optional(),
278
+ RO: z.string().optional(),
279
+ RU: z.string().optional(),
280
+ RW: z.string().optional(),
281
+ SH: z.string().optional(),
282
+ KN: z.string().optional(),
283
+ LC: z.string().optional(),
284
+ PM: z.string().optional(),
285
+ VC: z.string().optional(),
286
+ WS: z.string().optional(),
287
+ SM: z.string().optional(),
288
+ ST: z.string().optional(),
289
+ SA: z.string().optional(),
290
+ SN: z.string().optional(),
291
+ SC: z.string().optional(),
292
+ SL: z.string().optional(),
293
+ SG: z.string().optional(),
294
+ SK: z.string().optional(),
295
+ SI: z.string().optional(),
296
+ SB: z.string().optional(),
297
+ SO: z.string().optional(),
298
+ ZA: z.string().optional(),
299
+ GS: z.string().optional(),
300
+ ES: z.string().optional(),
301
+ LK: z.string().optional(),
302
+ SD: z.string().optional(),
303
+ SR: z.string().optional(),
304
+ SJ: z.string().optional(),
305
+ SZ: z.string().optional(),
306
+ SE: z.string().optional(),
307
+ CH: z.string().optional(),
308
+ SY: z.string().optional(),
309
+ TW: z.string().optional(),
310
+ TJ: z.string().optional(),
311
+ TZ: z.string().optional(),
312
+ TH: z.string().optional(),
313
+ TL: z.string().optional(),
314
+ TG: z.string().optional(),
315
+ TK: z.string().optional(),
316
+ TO: z.string().optional(),
317
+ TT: z.string().optional(),
318
+ TN: z.string().optional(),
319
+ TR: z.string().optional(),
320
+ TM: z.string().optional(),
321
+ TC: z.string().optional(),
322
+ TV: z.string().optional(),
323
+ UG: z.string().optional(),
324
+ UA: z.string().optional(),
325
+ AE: z.string().optional(),
326
+ GB: z.string().optional(),
327
+ US: z.string().optional(),
328
+ UM: z.string().optional(),
329
+ UY: z.string().optional(),
330
+ UZ: z.string().optional(),
331
+ VU: z.string().optional(),
332
+ VE: z.string().optional(),
333
+ VN: z.string().optional(),
334
+ VG: z.string().optional(),
335
+ VI: z.string().optional(),
336
+ WF: z.string().optional(),
337
+ EH: z.string().optional(),
338
+ YE: z.string().optional(),
339
+ ZM: z.string().optional(),
340
+ ZW: z.string().optional(),
341
+ AX: z.string().optional(),
342
+ BQ: z.string().optional(),
343
+ CW: z.string().optional(),
344
+ GG: z.string().optional(),
345
+ IM: z.string().optional(),
346
+ JE: z.string().optional(),
347
+ ME: z.string().optional(),
348
+ BL: z.string().optional(),
349
+ MF: z.string().optional(),
350
+ RS: z.string().optional(),
351
+ SX: z.string().optional(),
352
+ SS: z.string().optional(),
353
+ XK: z.string().optional(),
354
+ }).transform((v) => {
355
+ return (0, primitives_js_1.remap)(v, {
356
+ "AF": "af",
357
+ "AL": "al",
358
+ "DZ": "dz",
359
+ "AS": "as",
360
+ "AD": "ad",
361
+ "AO": "ao",
362
+ "AI": "ai",
363
+ "AQ": "aq",
364
+ "AG": "ag",
365
+ "AR": "ar",
366
+ "AM": "am",
367
+ "AW": "aw",
368
+ "AU": "au",
369
+ "AT": "at",
370
+ "AZ": "az",
371
+ "BS": "bs",
372
+ "BH": "bh",
373
+ "BD": "bd",
374
+ "BB": "bb",
375
+ "BY": "by",
376
+ "BE": "be",
377
+ "BZ": "bz",
378
+ "BJ": "bj",
379
+ "BM": "bm",
380
+ "BT": "bt",
381
+ "BO": "bo",
382
+ "BA": "ba",
383
+ "BW": "bw",
384
+ "BV": "bv",
385
+ "BR": "br",
386
+ "IO": "io",
387
+ "BN": "bn",
388
+ "BG": "bg",
389
+ "BF": "bf",
390
+ "BI": "bi",
391
+ "KH": "kh",
392
+ "CM": "cm",
393
+ "CA": "ca",
394
+ "CV": "cv",
395
+ "KY": "ky",
396
+ "CF": "cf",
397
+ "TD": "td",
398
+ "CL": "cl",
399
+ "CN": "cn",
400
+ "CX": "cx",
401
+ "CC": "cc",
402
+ "CO": "co",
403
+ "KM": "km",
404
+ "CG": "cg",
405
+ "CD": "cd",
406
+ "CK": "ck",
407
+ "CR": "cr",
408
+ "CI": "ci",
409
+ "HR": "hr",
410
+ "CU": "cu",
411
+ "CY": "cy",
412
+ "CZ": "cz",
413
+ "DK": "dk",
414
+ "DJ": "dj",
415
+ "DM": "dm",
416
+ "DO": "do",
417
+ "EC": "ec",
418
+ "EG": "eg",
419
+ "SV": "sv",
420
+ "GQ": "gq",
421
+ "ER": "er",
422
+ "EE": "ee",
423
+ "ET": "et",
424
+ "FK": "fk",
425
+ "FO": "fo",
426
+ "FJ": "fj",
427
+ "FI": "fi",
428
+ "FR": "fr",
429
+ "GF": "gf",
430
+ "PF": "pf",
431
+ "TF": "tf",
432
+ "GA": "ga",
433
+ "GM": "gm",
434
+ "GE": "ge",
435
+ "DE": "de",
436
+ "GH": "gh",
437
+ "GI": "gi",
438
+ "GR": "gr",
439
+ "GL": "gl",
440
+ "GD": "gd",
441
+ "GP": "gp",
442
+ "GU": "gu",
443
+ "GT": "gt",
444
+ "GN": "gn",
445
+ "GW": "gw",
446
+ "GY": "gy",
447
+ "HT": "ht",
448
+ "HM": "hm",
449
+ "VA": "va",
450
+ "HN": "hn",
451
+ "HK": "hk",
452
+ "HU": "hu",
453
+ "IS": "is",
454
+ "IN": "in",
455
+ "ID": "id",
456
+ "IR": "ir",
457
+ "IQ": "iq",
458
+ "IE": "ie",
459
+ "IL": "il",
460
+ "IT": "it",
461
+ "JM": "jm",
462
+ "JP": "jp",
463
+ "JO": "jo",
464
+ "KZ": "kz",
465
+ "KE": "ke",
466
+ "KI": "ki",
467
+ "KP": "kp",
468
+ "KR": "kr",
469
+ "KW": "kw",
470
+ "KG": "kg",
471
+ "LA": "la",
472
+ "LV": "lv",
473
+ "LB": "lb",
474
+ "LS": "ls",
475
+ "LR": "lr",
476
+ "LY": "ly",
477
+ "LI": "li",
478
+ "LT": "lt",
479
+ "LU": "lu",
480
+ "MO": "mo",
481
+ "MG": "mg",
482
+ "MW": "mw",
483
+ "MY": "my",
484
+ "MV": "mv",
485
+ "ML": "ml",
486
+ "MT": "mt",
487
+ "MH": "mh",
488
+ "MQ": "mq",
489
+ "MR": "mr",
490
+ "MU": "mu",
491
+ "YT": "yt",
492
+ "MX": "mx",
493
+ "FM": "fm",
494
+ "MD": "md",
495
+ "MC": "mc",
496
+ "MN": "mn",
497
+ "MS": "ms",
498
+ "MA": "ma",
499
+ "MZ": "mz",
500
+ "MM": "mm",
501
+ "NA": "na",
502
+ "NR": "nr",
503
+ "NP": "np",
504
+ "NL": "nl",
505
+ "NC": "nc",
506
+ "NZ": "nz",
507
+ "NI": "ni",
508
+ "NE": "ne",
509
+ "NG": "ng",
510
+ "NU": "nu",
511
+ "NF": "nf",
512
+ "MK": "mk",
513
+ "MP": "mp",
514
+ "NO": "no",
515
+ "OM": "om",
516
+ "PK": "pk",
517
+ "PW": "pw",
518
+ "PS": "ps",
519
+ "PA": "pa",
520
+ "PG": "pg",
521
+ "PY": "py",
522
+ "PE": "pe",
523
+ "PH": "ph",
524
+ "PN": "pn",
525
+ "PL": "pl",
526
+ "PT": "pt",
527
+ "PR": "pr",
528
+ "QA": "qa",
529
+ "RE": "re",
530
+ "RO": "ro",
531
+ "RU": "ru",
532
+ "RW": "rw",
533
+ "SH": "sh",
534
+ "KN": "kn",
535
+ "LC": "lc",
536
+ "PM": "pm",
537
+ "VC": "vc",
538
+ "WS": "ws",
539
+ "SM": "sm",
540
+ "ST": "st",
541
+ "SA": "sa",
542
+ "SN": "sn",
543
+ "SC": "sc",
544
+ "SL": "sl",
545
+ "SG": "sg",
546
+ "SK": "sk",
547
+ "SI": "si",
548
+ "SB": "sb",
549
+ "SO": "so",
550
+ "ZA": "za",
551
+ "GS": "gs",
552
+ "ES": "es",
553
+ "LK": "lk",
554
+ "SD": "sd",
555
+ "SR": "sr",
556
+ "SJ": "sj",
557
+ "SZ": "sz",
558
+ "SE": "se",
559
+ "CH": "ch",
560
+ "SY": "sy",
561
+ "TW": "tw",
562
+ "TJ": "tj",
563
+ "TZ": "tz",
564
+ "TH": "th",
565
+ "TL": "tl",
566
+ "TG": "tg",
567
+ "TK": "tk",
568
+ "TO": "to",
569
+ "TT": "tt",
570
+ "TN": "tn",
571
+ "TR": "tr",
572
+ "TM": "tm",
573
+ "TC": "tc",
574
+ "TV": "tv",
575
+ "UG": "ug",
576
+ "UA": "ua",
577
+ "AE": "ae",
578
+ "GB": "gb",
579
+ "US": "us",
580
+ "UM": "um",
581
+ "UY": "uy",
582
+ "UZ": "uz",
583
+ "VU": "vu",
584
+ "VE": "ve",
585
+ "VN": "vn",
586
+ "VG": "vg",
587
+ "VI": "vi",
588
+ "WF": "wf",
589
+ "EH": "eh",
590
+ "YE": "ye",
591
+ "ZM": "zm",
592
+ "ZW": "zw",
593
+ "AX": "ax",
594
+ "BQ": "bq",
595
+ "CW": "cw",
596
+ "GG": "gg",
597
+ "IM": "im",
598
+ "JE": "je",
599
+ "ME": "me",
600
+ "BL": "bl",
601
+ "MF": "mf",
602
+ "RS": "rs",
603
+ "SX": "sx",
604
+ "SS": "ss",
605
+ "XK": "xk",
606
+ });
607
+ });
608
+ /** @internal */
609
+ exports.LinkWebhookEventGeo$outboundSchema = z.object({
610
+ af: z.string().optional(),
611
+ al: z.string().optional(),
612
+ dz: z.string().optional(),
613
+ as: z.string().optional(),
614
+ ad: z.string().optional(),
615
+ ao: z.string().optional(),
616
+ ai: z.string().optional(),
617
+ aq: z.string().optional(),
618
+ ag: z.string().optional(),
619
+ ar: z.string().optional(),
620
+ am: z.string().optional(),
621
+ aw: z.string().optional(),
622
+ au: z.string().optional(),
623
+ at: z.string().optional(),
624
+ az: z.string().optional(),
625
+ bs: z.string().optional(),
626
+ bh: z.string().optional(),
627
+ bd: z.string().optional(),
628
+ bb: z.string().optional(),
629
+ by: z.string().optional(),
630
+ be: z.string().optional(),
631
+ bz: z.string().optional(),
632
+ bj: z.string().optional(),
633
+ bm: z.string().optional(),
634
+ bt: z.string().optional(),
635
+ bo: z.string().optional(),
636
+ ba: z.string().optional(),
637
+ bw: z.string().optional(),
638
+ bv: z.string().optional(),
639
+ br: z.string().optional(),
640
+ io: z.string().optional(),
641
+ bn: z.string().optional(),
642
+ bg: z.string().optional(),
643
+ bf: z.string().optional(),
644
+ bi: z.string().optional(),
645
+ kh: z.string().optional(),
646
+ cm: z.string().optional(),
647
+ ca: z.string().optional(),
648
+ cv: z.string().optional(),
649
+ ky: z.string().optional(),
650
+ cf: z.string().optional(),
651
+ td: z.string().optional(),
652
+ cl: z.string().optional(),
653
+ cn: z.string().optional(),
654
+ cx: z.string().optional(),
655
+ cc: z.string().optional(),
656
+ co: z.string().optional(),
657
+ km: z.string().optional(),
658
+ cg: z.string().optional(),
659
+ cd: z.string().optional(),
660
+ ck: z.string().optional(),
661
+ cr: z.string().optional(),
662
+ ci: z.string().optional(),
663
+ hr: z.string().optional(),
664
+ cu: z.string().optional(),
665
+ cy: z.string().optional(),
666
+ cz: z.string().optional(),
667
+ dk: z.string().optional(),
668
+ dj: z.string().optional(),
669
+ dm: z.string().optional(),
670
+ do: z.string().optional(),
671
+ ec: z.string().optional(),
672
+ eg: z.string().optional(),
673
+ sv: z.string().optional(),
674
+ gq: z.string().optional(),
675
+ er: z.string().optional(),
676
+ ee: z.string().optional(),
677
+ et: z.string().optional(),
678
+ fk: z.string().optional(),
679
+ fo: z.string().optional(),
680
+ fj: z.string().optional(),
681
+ fi: z.string().optional(),
682
+ fr: z.string().optional(),
683
+ gf: z.string().optional(),
684
+ pf: z.string().optional(),
685
+ tf: z.string().optional(),
686
+ ga: z.string().optional(),
687
+ gm: z.string().optional(),
688
+ ge: z.string().optional(),
689
+ de: z.string().optional(),
690
+ gh: z.string().optional(),
691
+ gi: z.string().optional(),
692
+ gr: z.string().optional(),
693
+ gl: z.string().optional(),
694
+ gd: z.string().optional(),
695
+ gp: z.string().optional(),
696
+ gu: z.string().optional(),
697
+ gt: z.string().optional(),
698
+ gn: z.string().optional(),
699
+ gw: z.string().optional(),
700
+ gy: z.string().optional(),
701
+ ht: z.string().optional(),
702
+ hm: z.string().optional(),
703
+ va: z.string().optional(),
704
+ hn: z.string().optional(),
705
+ hk: z.string().optional(),
706
+ hu: z.string().optional(),
707
+ is: z.string().optional(),
708
+ in: z.string().optional(),
709
+ id: z.string().optional(),
710
+ ir: z.string().optional(),
711
+ iq: z.string().optional(),
712
+ ie: z.string().optional(),
713
+ il: z.string().optional(),
714
+ it: z.string().optional(),
715
+ jm: z.string().optional(),
716
+ jp: z.string().optional(),
717
+ jo: z.string().optional(),
718
+ kz: z.string().optional(),
719
+ ke: z.string().optional(),
720
+ ki: z.string().optional(),
721
+ kp: z.string().optional(),
722
+ kr: z.string().optional(),
723
+ kw: z.string().optional(),
724
+ kg: z.string().optional(),
725
+ la: z.string().optional(),
726
+ lv: z.string().optional(),
727
+ lb: z.string().optional(),
728
+ ls: z.string().optional(),
729
+ lr: z.string().optional(),
730
+ ly: z.string().optional(),
731
+ li: z.string().optional(),
732
+ lt: z.string().optional(),
733
+ lu: z.string().optional(),
734
+ mo: z.string().optional(),
735
+ mg: z.string().optional(),
736
+ mw: z.string().optional(),
737
+ my: z.string().optional(),
738
+ mv: z.string().optional(),
739
+ ml: z.string().optional(),
740
+ mt: z.string().optional(),
741
+ mh: z.string().optional(),
742
+ mq: z.string().optional(),
743
+ mr: z.string().optional(),
744
+ mu: z.string().optional(),
745
+ yt: z.string().optional(),
746
+ mx: z.string().optional(),
747
+ fm: z.string().optional(),
748
+ md: z.string().optional(),
749
+ mc: z.string().optional(),
750
+ mn: z.string().optional(),
751
+ ms: z.string().optional(),
752
+ ma: z.string().optional(),
753
+ mz: z.string().optional(),
754
+ mm: z.string().optional(),
755
+ na: z.string().optional(),
756
+ nr: z.string().optional(),
757
+ np: z.string().optional(),
758
+ nl: z.string().optional(),
759
+ nc: z.string().optional(),
760
+ nz: z.string().optional(),
761
+ ni: z.string().optional(),
762
+ ne: z.string().optional(),
763
+ ng: z.string().optional(),
764
+ nu: z.string().optional(),
765
+ nf: z.string().optional(),
766
+ mk: z.string().optional(),
767
+ mp: z.string().optional(),
768
+ no: z.string().optional(),
769
+ om: z.string().optional(),
770
+ pk: z.string().optional(),
771
+ pw: z.string().optional(),
772
+ ps: z.string().optional(),
773
+ pa: z.string().optional(),
774
+ pg: z.string().optional(),
775
+ py: z.string().optional(),
776
+ pe: z.string().optional(),
777
+ ph: z.string().optional(),
778
+ pn: z.string().optional(),
779
+ pl: z.string().optional(),
780
+ pt: z.string().optional(),
781
+ pr: z.string().optional(),
782
+ qa: z.string().optional(),
783
+ re: z.string().optional(),
784
+ ro: z.string().optional(),
785
+ ru: z.string().optional(),
786
+ rw: z.string().optional(),
787
+ sh: z.string().optional(),
788
+ kn: z.string().optional(),
789
+ lc: z.string().optional(),
790
+ pm: z.string().optional(),
791
+ vc: z.string().optional(),
792
+ ws: z.string().optional(),
793
+ sm: z.string().optional(),
794
+ st: z.string().optional(),
795
+ sa: z.string().optional(),
796
+ sn: z.string().optional(),
797
+ sc: z.string().optional(),
798
+ sl: z.string().optional(),
799
+ sg: z.string().optional(),
800
+ sk: z.string().optional(),
801
+ si: z.string().optional(),
802
+ sb: z.string().optional(),
803
+ so: z.string().optional(),
804
+ za: z.string().optional(),
805
+ gs: z.string().optional(),
806
+ es: z.string().optional(),
807
+ lk: z.string().optional(),
808
+ sd: z.string().optional(),
809
+ sr: z.string().optional(),
810
+ sj: z.string().optional(),
811
+ sz: z.string().optional(),
812
+ se: z.string().optional(),
813
+ ch: z.string().optional(),
814
+ sy: z.string().optional(),
815
+ tw: z.string().optional(),
816
+ tj: z.string().optional(),
817
+ tz: z.string().optional(),
818
+ th: z.string().optional(),
819
+ tl: z.string().optional(),
820
+ tg: z.string().optional(),
821
+ tk: z.string().optional(),
822
+ to: z.string().optional(),
823
+ tt: z.string().optional(),
824
+ tn: z.string().optional(),
825
+ tr: z.string().optional(),
826
+ tm: z.string().optional(),
827
+ tc: z.string().optional(),
828
+ tv: z.string().optional(),
829
+ ug: z.string().optional(),
830
+ ua: z.string().optional(),
831
+ ae: z.string().optional(),
832
+ gb: z.string().optional(),
833
+ us: z.string().optional(),
834
+ um: z.string().optional(),
835
+ uy: z.string().optional(),
836
+ uz: z.string().optional(),
837
+ vu: z.string().optional(),
838
+ ve: z.string().optional(),
839
+ vn: z.string().optional(),
840
+ vg: z.string().optional(),
841
+ vi: z.string().optional(),
842
+ wf: z.string().optional(),
843
+ eh: z.string().optional(),
844
+ ye: z.string().optional(),
845
+ zm: z.string().optional(),
846
+ zw: z.string().optional(),
847
+ ax: z.string().optional(),
848
+ bq: z.string().optional(),
849
+ cw: z.string().optional(),
850
+ gg: z.string().optional(),
851
+ im: z.string().optional(),
852
+ je: z.string().optional(),
853
+ me: z.string().optional(),
854
+ bl: z.string().optional(),
855
+ mf: z.string().optional(),
856
+ rs: z.string().optional(),
857
+ sx: z.string().optional(),
858
+ ss: z.string().optional(),
859
+ xk: z.string().optional(),
860
+ }).transform((v) => {
861
+ return (0, primitives_js_1.remap)(v, {
862
+ af: "AF",
863
+ al: "AL",
864
+ dz: "DZ",
865
+ as: "AS",
866
+ ad: "AD",
867
+ ao: "AO",
868
+ ai: "AI",
869
+ aq: "AQ",
870
+ ag: "AG",
871
+ ar: "AR",
872
+ am: "AM",
873
+ aw: "AW",
874
+ au: "AU",
875
+ at: "AT",
876
+ az: "AZ",
877
+ bs: "BS",
878
+ bh: "BH",
879
+ bd: "BD",
880
+ bb: "BB",
881
+ by: "BY",
882
+ be: "BE",
883
+ bz: "BZ",
884
+ bj: "BJ",
885
+ bm: "BM",
886
+ bt: "BT",
887
+ bo: "BO",
888
+ ba: "BA",
889
+ bw: "BW",
890
+ bv: "BV",
891
+ br: "BR",
892
+ io: "IO",
893
+ bn: "BN",
894
+ bg: "BG",
895
+ bf: "BF",
896
+ bi: "BI",
897
+ kh: "KH",
898
+ cm: "CM",
899
+ ca: "CA",
900
+ cv: "CV",
901
+ ky: "KY",
902
+ cf: "CF",
903
+ td: "TD",
904
+ cl: "CL",
905
+ cn: "CN",
906
+ cx: "CX",
907
+ cc: "CC",
908
+ co: "CO",
909
+ km: "KM",
910
+ cg: "CG",
911
+ cd: "CD",
912
+ ck: "CK",
913
+ cr: "CR",
914
+ ci: "CI",
915
+ hr: "HR",
916
+ cu: "CU",
917
+ cy: "CY",
918
+ cz: "CZ",
919
+ dk: "DK",
920
+ dj: "DJ",
921
+ dm: "DM",
922
+ do: "DO",
923
+ ec: "EC",
924
+ eg: "EG",
925
+ sv: "SV",
926
+ gq: "GQ",
927
+ er: "ER",
928
+ ee: "EE",
929
+ et: "ET",
930
+ fk: "FK",
931
+ fo: "FO",
932
+ fj: "FJ",
933
+ fi: "FI",
934
+ fr: "FR",
935
+ gf: "GF",
936
+ pf: "PF",
937
+ tf: "TF",
938
+ ga: "GA",
939
+ gm: "GM",
940
+ ge: "GE",
941
+ de: "DE",
942
+ gh: "GH",
943
+ gi: "GI",
944
+ gr: "GR",
945
+ gl: "GL",
946
+ gd: "GD",
947
+ gp: "GP",
948
+ gu: "GU",
949
+ gt: "GT",
950
+ gn: "GN",
951
+ gw: "GW",
952
+ gy: "GY",
953
+ ht: "HT",
954
+ hm: "HM",
955
+ va: "VA",
956
+ hn: "HN",
957
+ hk: "HK",
958
+ hu: "HU",
959
+ is: "IS",
960
+ in: "IN",
961
+ id: "ID",
962
+ ir: "IR",
963
+ iq: "IQ",
964
+ ie: "IE",
965
+ il: "IL",
966
+ it: "IT",
967
+ jm: "JM",
968
+ jp: "JP",
969
+ jo: "JO",
970
+ kz: "KZ",
971
+ ke: "KE",
972
+ ki: "KI",
973
+ kp: "KP",
974
+ kr: "KR",
975
+ kw: "KW",
976
+ kg: "KG",
977
+ la: "LA",
978
+ lv: "LV",
979
+ lb: "LB",
980
+ ls: "LS",
981
+ lr: "LR",
982
+ ly: "LY",
983
+ li: "LI",
984
+ lt: "LT",
985
+ lu: "LU",
986
+ mo: "MO",
987
+ mg: "MG",
988
+ mw: "MW",
989
+ my: "MY",
990
+ mv: "MV",
991
+ ml: "ML",
992
+ mt: "MT",
993
+ mh: "MH",
994
+ mq: "MQ",
995
+ mr: "MR",
996
+ mu: "MU",
997
+ yt: "YT",
998
+ mx: "MX",
999
+ fm: "FM",
1000
+ md: "MD",
1001
+ mc: "MC",
1002
+ mn: "MN",
1003
+ ms: "MS",
1004
+ ma: "MA",
1005
+ mz: "MZ",
1006
+ mm: "MM",
1007
+ na: "NA",
1008
+ nr: "NR",
1009
+ np: "NP",
1010
+ nl: "NL",
1011
+ nc: "NC",
1012
+ nz: "NZ",
1013
+ ni: "NI",
1014
+ ne: "NE",
1015
+ ng: "NG",
1016
+ nu: "NU",
1017
+ nf: "NF",
1018
+ mk: "MK",
1019
+ mp: "MP",
1020
+ no: "NO",
1021
+ om: "OM",
1022
+ pk: "PK",
1023
+ pw: "PW",
1024
+ ps: "PS",
1025
+ pa: "PA",
1026
+ pg: "PG",
1027
+ py: "PY",
1028
+ pe: "PE",
1029
+ ph: "PH",
1030
+ pn: "PN",
1031
+ pl: "PL",
1032
+ pt: "PT",
1033
+ pr: "PR",
1034
+ qa: "QA",
1035
+ re: "RE",
1036
+ ro: "RO",
1037
+ ru: "RU",
1038
+ rw: "RW",
1039
+ sh: "SH",
1040
+ kn: "KN",
1041
+ lc: "LC",
1042
+ pm: "PM",
1043
+ vc: "VC",
1044
+ ws: "WS",
1045
+ sm: "SM",
1046
+ st: "ST",
1047
+ sa: "SA",
1048
+ sn: "SN",
1049
+ sc: "SC",
1050
+ sl: "SL",
1051
+ sg: "SG",
1052
+ sk: "SK",
1053
+ si: "SI",
1054
+ sb: "SB",
1055
+ so: "SO",
1056
+ za: "ZA",
1057
+ gs: "GS",
1058
+ es: "ES",
1059
+ lk: "LK",
1060
+ sd: "SD",
1061
+ sr: "SR",
1062
+ sj: "SJ",
1063
+ sz: "SZ",
1064
+ se: "SE",
1065
+ ch: "CH",
1066
+ sy: "SY",
1067
+ tw: "TW",
1068
+ tj: "TJ",
1069
+ tz: "TZ",
1070
+ th: "TH",
1071
+ tl: "TL",
1072
+ tg: "TG",
1073
+ tk: "TK",
1074
+ to: "TO",
1075
+ tt: "TT",
1076
+ tn: "TN",
1077
+ tr: "TR",
1078
+ tm: "TM",
1079
+ tc: "TC",
1080
+ tv: "TV",
1081
+ ug: "UG",
1082
+ ua: "UA",
1083
+ ae: "AE",
1084
+ gb: "GB",
1085
+ us: "US",
1086
+ um: "UM",
1087
+ uy: "UY",
1088
+ uz: "UZ",
1089
+ vu: "VU",
1090
+ ve: "VE",
1091
+ vn: "VN",
1092
+ vg: "VG",
1093
+ vi: "VI",
1094
+ wf: "WF",
1095
+ eh: "EH",
1096
+ ye: "YE",
1097
+ zm: "ZM",
1098
+ zw: "ZW",
1099
+ ax: "AX",
1100
+ bq: "BQ",
1101
+ cw: "CW",
1102
+ gg: "GG",
1103
+ im: "IM",
1104
+ je: "JE",
1105
+ me: "ME",
1106
+ bl: "BL",
1107
+ mf: "MF",
1108
+ rs: "RS",
1109
+ sx: "SX",
1110
+ ss: "SS",
1111
+ xk: "XK",
1112
+ });
1113
+ });
1114
+ /**
1115
+ * @internal
1116
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1117
+ */
1118
+ var LinkWebhookEventGeo$;
1119
+ (function (LinkWebhookEventGeo$) {
1120
+ /** @deprecated use `LinkWebhookEventGeo$inboundSchema` instead. */
1121
+ LinkWebhookEventGeo$.inboundSchema = exports.LinkWebhookEventGeo$inboundSchema;
1122
+ /** @deprecated use `LinkWebhookEventGeo$outboundSchema` instead. */
1123
+ LinkWebhookEventGeo$.outboundSchema = exports.LinkWebhookEventGeo$outboundSchema;
1124
+ })(LinkWebhookEventGeo$ || (exports.LinkWebhookEventGeo$ = LinkWebhookEventGeo$ = {}));
1125
+ /** @internal */
1126
+ exports.Data$inboundSchema = z
1127
+ .object({
1128
+ id: z.string(),
1129
+ domain: z.string(),
1130
+ key: z.string(),
1131
+ url: z.string(),
1132
+ trackConversion: z.boolean().optional(),
1133
+ externalId: z.nullable(z.string()),
1134
+ identifier: z.nullable(z.string()),
1135
+ archived: z.boolean().optional(),
1136
+ expiresAt: z.string(),
1137
+ expiredUrl: z.nullable(z.string()),
1138
+ password: z.nullable(z.string()),
1139
+ proxy: z.boolean().optional(),
1140
+ title: z.nullable(z.string()),
1141
+ description: z.nullable(z.string()),
1142
+ image: z.nullable(z.string()),
1143
+ video: z.nullable(z.string()),
1144
+ rewrite: z.boolean().optional(),
1145
+ doIndex: z.boolean().optional(),
1146
+ ios: z.nullable(z.string()),
1147
+ android: z.nullable(z.string()),
1148
+ geo: z.nullable(z.lazy(() => exports.LinkWebhookEventGeo$inboundSchema)),
1149
+ publicStats: z.boolean().optional(),
1150
+ tagId: z.nullable(z.string()),
1151
+ tags: z.nullable(z.array(tagschema_js_1.TagSchema$inboundSchema)),
1152
+ comments: z.nullable(z.string()),
1153
+ shortLink: z.string(),
1154
+ qrCode: z.string(),
1155
+ utm_source: z.nullable(z.string()),
1156
+ utm_medium: z.nullable(z.string()),
1157
+ utm_campaign: z.nullable(z.string()),
1158
+ utm_term: z.nullable(z.string()),
1159
+ utm_content: z.nullable(z.string()),
1160
+ userId: z.nullable(z.string()),
1161
+ workspaceId: z.string(),
1162
+ clicks: z.number().default(0),
1163
+ lastClicked: z.string(),
1164
+ leads: z.number().default(0),
1165
+ sales: z.number().default(0),
1166
+ saleAmount: z.number().default(0),
1167
+ createdAt: z.string(),
1168
+ updatedAt: z.string(),
1169
+ projectId: z.string(),
1170
+ }).transform((v) => {
1171
+ return (0, primitives_js_1.remap)(v, {
1172
+ "utm_source": "utmSource",
1173
+ "utm_medium": "utmMedium",
1174
+ "utm_campaign": "utmCampaign",
1175
+ "utm_term": "utmTerm",
1176
+ "utm_content": "utmContent",
1177
+ });
1178
+ });
1179
+ /** @internal */
1180
+ exports.Data$outboundSchema = z.object({
1181
+ id: z.string(),
1182
+ domain: z.string(),
1183
+ key: z.string(),
1184
+ url: z.string(),
1185
+ trackConversion: z.boolean().optional(),
1186
+ externalId: z.nullable(z.string()),
1187
+ identifier: z.nullable(z.string()),
1188
+ archived: z.boolean().optional(),
1189
+ expiresAt: z.string(),
1190
+ expiredUrl: z.nullable(z.string()),
1191
+ password: z.nullable(z.string()),
1192
+ proxy: z.boolean().optional(),
1193
+ title: z.nullable(z.string()),
1194
+ description: z.nullable(z.string()),
1195
+ image: z.nullable(z.string()),
1196
+ video: z.nullable(z.string()),
1197
+ rewrite: z.boolean().optional(),
1198
+ doIndex: z.boolean().optional(),
1199
+ ios: z.nullable(z.string()),
1200
+ android: z.nullable(z.string()),
1201
+ geo: z.nullable(z.lazy(() => exports.LinkWebhookEventGeo$outboundSchema)),
1202
+ publicStats: z.boolean().optional(),
1203
+ tagId: z.nullable(z.string()),
1204
+ tags: z.nullable(z.array(tagschema_js_1.TagSchema$outboundSchema)),
1205
+ comments: z.nullable(z.string()),
1206
+ shortLink: z.string(),
1207
+ qrCode: z.string(),
1208
+ utmSource: z.nullable(z.string()),
1209
+ utmMedium: z.nullable(z.string()),
1210
+ utmCampaign: z.nullable(z.string()),
1211
+ utmTerm: z.nullable(z.string()),
1212
+ utmContent: z.nullable(z.string()),
1213
+ userId: z.nullable(z.string()),
1214
+ workspaceId: z.string(),
1215
+ clicks: z.number().default(0),
1216
+ lastClicked: z.string(),
1217
+ leads: z.number().default(0),
1218
+ sales: z.number().default(0),
1219
+ saleAmount: z.number().default(0),
1220
+ createdAt: z.string(),
1221
+ updatedAt: z.string(),
1222
+ projectId: z.string(),
1223
+ }).transform((v) => {
1224
+ return (0, primitives_js_1.remap)(v, {
1225
+ utmSource: "utm_source",
1226
+ utmMedium: "utm_medium",
1227
+ utmCampaign: "utm_campaign",
1228
+ utmTerm: "utm_term",
1229
+ utmContent: "utm_content",
1230
+ });
1231
+ });
1232
+ /**
1233
+ * @internal
1234
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1235
+ */
1236
+ var Data$;
1237
+ (function (Data$) {
1238
+ /** @deprecated use `Data$inboundSchema` instead. */
1239
+ Data$.inboundSchema = exports.Data$inboundSchema;
1240
+ /** @deprecated use `Data$outboundSchema` instead. */
1241
+ Data$.outboundSchema = exports.Data$outboundSchema;
1242
+ })(Data$ || (exports.Data$ = Data$ = {}));
1243
+ /** @internal */
1244
+ exports.LinkWebhookEvent$inboundSchema = z.object({
1245
+ id: z.string(),
1246
+ event: z.union([exports.One$inboundSchema, exports.Two$inboundSchema, exports.Three$inboundSchema]),
1247
+ createdAt: z.string(),
1248
+ data: z.lazy(() => exports.Data$inboundSchema),
1249
+ });
1250
+ /** @internal */
1251
+ exports.LinkWebhookEvent$outboundSchema = z.object({
1252
+ id: z.string(),
1253
+ event: z.union([
1254
+ exports.One$outboundSchema,
1255
+ exports.Two$outboundSchema,
1256
+ exports.Three$outboundSchema,
1257
+ ]),
1258
+ createdAt: z.string(),
1259
+ data: z.lazy(() => exports.Data$outboundSchema),
1260
+ });
1261
+ /**
1262
+ * @internal
1263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1264
+ */
1265
+ var LinkWebhookEvent$;
1266
+ (function (LinkWebhookEvent$) {
1267
+ /** @deprecated use `LinkWebhookEvent$inboundSchema` instead. */
1268
+ LinkWebhookEvent$.inboundSchema = exports.LinkWebhookEvent$inboundSchema;
1269
+ /** @deprecated use `LinkWebhookEvent$outboundSchema` instead. */
1270
+ LinkWebhookEvent$.outboundSchema = exports.LinkWebhookEvent$outboundSchema;
1271
+ })(LinkWebhookEvent$ || (exports.LinkWebhookEvent$ = LinkWebhookEvent$ = {}));
1272
+ //# sourceMappingURL=linkwebhookevent.js.map