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