dub 0.72.1 → 0.73.1
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/payoutsList.js +1 -0
- package/dist/commonjs/funcs/payoutsList.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.js +12 -12
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/matchers.js +3 -3
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +1 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +18 -0
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.js +7 -0
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +50 -16
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/folderschema.d.ts +3 -3
- package/dist/commonjs/models/components/folderschema.js +2 -2
- package/dist/commonjs/models/components/folderschema.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +9 -5
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +4 -2
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.d.ts +9 -5
- package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.js +4 -2
- package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
- package/dist/commonjs/models/components/linkschema.d.ts +6 -4
- package/dist/commonjs/models/components/linkschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkschema.js +1 -1
- package/dist/commonjs/models/components/linkschema.js.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.d.ts +7 -5
- package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.js +2 -2
- package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts +1 -0
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.js +1 -0
- package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +9 -5
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +4 -2
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +7 -5
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +7 -5
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.js +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/checkdomainstatus.d.ts +26 -4
- package/dist/commonjs/models/operations/checkdomainstatus.d.ts.map +1 -1
- package/dist/commonjs/models/operations/checkdomainstatus.js +13 -2
- package/dist/commonjs/models/operations/checkdomainstatus.js.map +1 -1
- package/dist/commonjs/models/operations/createfolder.d.ts +3 -3
- package/dist/commonjs/models/operations/createfolder.js +2 -2
- package/dist/commonjs/models/operations/createfolder.js.map +1 -1
- package/dist/commonjs/models/operations/createlink.d.ts +7 -5
- package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createlink.js +1 -1
- package/dist/commonjs/models/operations/createlink.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +1 -0
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +1 -0
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +21 -12
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +6 -3
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listpartners.d.ts +1 -0
- package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpartners.js +1 -0
- package/dist/commonjs/models/operations/listpartners.js.map +1 -1
- package/dist/commonjs/models/operations/listpayouts.d.ts +7 -0
- package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayouts.js +3 -0
- package/dist/commonjs/models/operations/listpayouts.js.map +1 -1
- package/dist/commonjs/models/operations/tracklead.js +1 -1
- package/dist/commonjs/models/operations/tracklead.js.map +1 -1
- package/dist/commonjs/models/operations/updatelink.d.ts +7 -5
- package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatelink.js +1 -1
- package/dist/commonjs/models/operations/updatelink.js.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.d.ts +7 -5
- package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.js +1 -1
- package/dist/commonjs/models/operations/upsertlink.js.map +1 -1
- package/dist/esm/funcs/payoutsList.js +1 -0
- package/dist/esm/funcs/payoutsList.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.js +1 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/matchers.js +1 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +1 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +17 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.js +7 -0
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +50 -16
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/folderschema.d.ts +3 -3
- package/dist/esm/models/components/folderschema.js +2 -2
- package/dist/esm/models/components/folderschema.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +9 -5
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +4 -2
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/linkclickedevent.d.ts +9 -5
- package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkclickedevent.js +4 -2
- package/dist/esm/models/components/linkclickedevent.js.map +1 -1
- package/dist/esm/models/components/linkschema.d.ts +6 -4
- package/dist/esm/models/components/linkschema.d.ts.map +1 -1
- package/dist/esm/models/components/linkschema.js +1 -1
- package/dist/esm/models/components/linkschema.js.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.d.ts +7 -5
- package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.js +2 -2
- package/dist/esm/models/components/linkwebhookevent.js.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.d.ts +1 -0
- package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.js +1 -0
- package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +9 -5
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +4 -2
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.d.ts +7 -5
- package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.d.ts +7 -5
- package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.js +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/esm/models/operations/checkdomainstatus.d.ts +26 -4
- package/dist/esm/models/operations/checkdomainstatus.d.ts.map +1 -1
- package/dist/esm/models/operations/checkdomainstatus.js +11 -1
- package/dist/esm/models/operations/checkdomainstatus.js.map +1 -1
- package/dist/esm/models/operations/createfolder.d.ts +3 -3
- package/dist/esm/models/operations/createfolder.js +2 -2
- package/dist/esm/models/operations/createfolder.js.map +1 -1
- package/dist/esm/models/operations/createlink.d.ts +7 -5
- package/dist/esm/models/operations/createlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createlink.js +1 -1
- package/dist/esm/models/operations/createlink.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +1 -0
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +1 -0
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +21 -12
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +6 -3
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listpartners.d.ts +1 -0
- package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
- package/dist/esm/models/operations/listpartners.js +1 -0
- package/dist/esm/models/operations/listpartners.js.map +1 -1
- package/dist/esm/models/operations/listpayouts.d.ts +7 -0
- package/dist/esm/models/operations/listpayouts.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayouts.js +3 -0
- package/dist/esm/models/operations/listpayouts.js.map +1 -1
- package/dist/esm/models/operations/tracklead.js +1 -1
- package/dist/esm/models/operations/tracklead.js.map +1 -1
- package/dist/esm/models/operations/updatelink.d.ts +7 -5
- package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
- package/dist/esm/models/operations/updatelink.js +1 -1
- package/dist/esm/models/operations/updatelink.js.map +1 -1
- package/dist/esm/models/operations/upsertlink.d.ts +7 -5
- package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertlink.js +1 -1
- package/dist/esm/models/operations/upsertlink.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/payoutsList.ts +1 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/models/components/folderschema.ts +4 -4
- package/src/models/components/leadcreatedevent.ts +13 -7
- package/src/models/components/linkclickedevent.ts +13 -7
- package/src/models/components/linkschema.ts +7 -5
- package/src/models/components/linkwebhookevent.ts +9 -7
- package/src/models/components/partnerenrolledevent.ts +1 -0
- package/src/models/components/salecreatedevent.ts +13 -7
- package/src/models/operations/bulkcreatelinks.ts +8 -6
- package/src/models/operations/bulkupdatelinks.ts +8 -6
- package/src/models/operations/checkdomainstatus.ts +43 -5
- package/src/models/operations/createfolder.ts +4 -4
- package/src/models/operations/createlink.ts +8 -6
- package/src/models/operations/createpartner.ts +1 -0
- package/src/models/operations/listevents.ts +27 -15
- package/src/models/operations/listpartners.ts +1 -0
- package/src/models/operations/listpayouts.ts +8 -0
- package/src/models/operations/tracklead.ts +1 -1
- package/src/models/operations/updatelink.ts +8 -6
- package/src/models/operations/upsertlink.ts +8 -6
- package/dist/commonjs/lib/dlv.d.ts +0 -14
- package/dist/commonjs/lib/dlv.d.ts.map +0 -1
- package/dist/commonjs/lib/dlv.js +0 -49
- package/dist/commonjs/lib/dlv.js.map +0 -1
- package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
- package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
- package/dist/commonjs/lib/is-plain-object.js +0 -41
- package/dist/commonjs/lib/is-plain-object.js.map +0 -1
- package/dist/esm/lib/dlv.d.ts +0 -14
- package/dist/esm/lib/dlv.d.ts.map +0 -1
- package/dist/esm/lib/dlv.js +0 -46
- package/dist/esm/lib/dlv.js.map +0 -1
- package/dist/esm/lib/is-plain-object.d.ts +0 -2
- package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
- package/dist/esm/lib/is-plain-object.js +0 -38
- package/dist/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -31,6 +31,7 @@ export type Click = {
|
|
|
31
31
|
device: string;
|
|
32
32
|
browser: string;
|
|
33
33
|
os: string;
|
|
34
|
+
ua?: string | null | undefined;
|
|
34
35
|
trigger?: string | null | undefined;
|
|
35
36
|
referer: string;
|
|
36
37
|
refererUrl: string;
|
|
@@ -122,10 +123,6 @@ export type Link = {
|
|
|
122
123
|
* The unique ID of the folder assigned to the short link.
|
|
123
124
|
*/
|
|
124
125
|
folderId: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* The IDs of the webhooks that the short link is associated with.
|
|
127
|
-
*/
|
|
128
|
-
webhookIds: Array<string>;
|
|
129
126
|
/**
|
|
130
127
|
* The comments for the short link.
|
|
131
128
|
*/
|
|
@@ -204,6 +201,12 @@ export type Link = {
|
|
|
204
201
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
205
202
|
*/
|
|
206
203
|
projectId: string;
|
|
204
|
+
/**
|
|
205
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
206
|
+
*
|
|
207
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
208
|
+
*/
|
|
209
|
+
webhookIds: Array<string>;
|
|
207
210
|
};
|
|
208
211
|
|
|
209
212
|
export type LinkClickedEventData = {
|
|
@@ -243,6 +246,7 @@ export const Click$inboundSchema: z.ZodType<Click, z.ZodTypeDef, unknown> = z
|
|
|
243
246
|
device: z.string(),
|
|
244
247
|
browser: z.string(),
|
|
245
248
|
os: z.string(),
|
|
249
|
+
ua: z.nullable(z.string()).optional(),
|
|
246
250
|
trigger: z.nullable(z.string()).optional(),
|
|
247
251
|
referer: z.string(),
|
|
248
252
|
refererUrl: z.string(),
|
|
@@ -261,6 +265,7 @@ export type Click$Outbound = {
|
|
|
261
265
|
device: string;
|
|
262
266
|
browser: string;
|
|
263
267
|
os: string;
|
|
268
|
+
ua?: string | null | undefined;
|
|
264
269
|
trigger?: string | null | undefined;
|
|
265
270
|
referer: string;
|
|
266
271
|
refererUrl: string;
|
|
@@ -284,6 +289,7 @@ export const Click$outboundSchema: z.ZodType<
|
|
|
284
289
|
device: z.string(),
|
|
285
290
|
browser: z.string(),
|
|
286
291
|
os: z.string(),
|
|
292
|
+
ua: z.nullable(z.string()).optional(),
|
|
287
293
|
trigger: z.nullable(z.string()).optional(),
|
|
288
294
|
referer: z.string(),
|
|
289
295
|
refererUrl: z.string(),
|
|
@@ -378,7 +384,6 @@ export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
|
|
|
378
384
|
publicStats: z.boolean(),
|
|
379
385
|
tags: z.nullable(z.array(LinkTagSchema$inboundSchema)),
|
|
380
386
|
folderId: z.nullable(z.string()),
|
|
381
|
-
webhookIds: z.array(z.string()),
|
|
382
387
|
comments: z.nullable(z.string()),
|
|
383
388
|
shortLink: z.string(),
|
|
384
389
|
qrCode: z.string(),
|
|
@@ -404,6 +409,7 @@ export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
|
|
|
404
409
|
updatedAt: z.string(),
|
|
405
410
|
tagId: z.nullable(z.string()),
|
|
406
411
|
projectId: z.string(),
|
|
412
|
+
webhookIds: z.array(z.string()),
|
|
407
413
|
}).transform((v) => {
|
|
408
414
|
return remap$(v, {
|
|
409
415
|
"utm_source": "utmSource",
|
|
@@ -442,7 +448,6 @@ export type Link$Outbound = {
|
|
|
442
448
|
publicStats: boolean;
|
|
443
449
|
tags: Array<LinkTagSchema$Outbound> | null;
|
|
444
450
|
folderId: string | null;
|
|
445
|
-
webhookIds: Array<string>;
|
|
446
451
|
comments: string | null;
|
|
447
452
|
shortLink: string;
|
|
448
453
|
qrCode: string;
|
|
@@ -469,6 +474,7 @@ export type Link$Outbound = {
|
|
|
469
474
|
updatedAt: string;
|
|
470
475
|
tagId: string | null;
|
|
471
476
|
projectId: string;
|
|
477
|
+
webhookIds: Array<string>;
|
|
472
478
|
};
|
|
473
479
|
|
|
474
480
|
/** @internal */
|
|
@@ -501,7 +507,6 @@ export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
|
|
|
501
507
|
publicStats: z.boolean(),
|
|
502
508
|
tags: z.nullable(z.array(LinkTagSchema$outboundSchema)),
|
|
503
509
|
folderId: z.nullable(z.string()),
|
|
504
|
-
webhookIds: z.array(z.string()),
|
|
505
510
|
comments: z.nullable(z.string()),
|
|
506
511
|
shortLink: z.string(),
|
|
507
512
|
qrCode: z.string(),
|
|
@@ -527,6 +532,7 @@ export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
|
|
|
527
532
|
updatedAt: z.string(),
|
|
528
533
|
tagId: z.nullable(z.string()),
|
|
529
534
|
projectId: z.string(),
|
|
535
|
+
webhookIds: z.array(z.string()),
|
|
530
536
|
}).transform((v) => {
|
|
531
537
|
return remap$(v, {
|
|
532
538
|
utmSource: "utm_source",
|
|
@@ -126,10 +126,6 @@ export type LinkSchema = {
|
|
|
126
126
|
* The unique ID of the folder assigned to the short link.
|
|
127
127
|
*/
|
|
128
128
|
folderId: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* The IDs of the webhooks that the short link is associated with.
|
|
131
|
-
*/
|
|
132
|
-
webhookIds: Array<string>;
|
|
133
129
|
/**
|
|
134
130
|
* The comments for the short link.
|
|
135
131
|
*/
|
|
@@ -226,6 +222,12 @@ export type LinkSchema = {
|
|
|
226
222
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
227
223
|
*/
|
|
228
224
|
projectId: string;
|
|
225
|
+
/**
|
|
226
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
227
|
+
*
|
|
228
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
229
|
+
*/
|
|
230
|
+
webhookIds: Array<string>;
|
|
229
231
|
};
|
|
230
232
|
|
|
231
233
|
/** @internal */
|
|
@@ -281,7 +283,6 @@ export const LinkSchema$inboundSchema: z.ZodType<
|
|
|
281
283
|
publicStats: z.boolean().default(false),
|
|
282
284
|
tags: z.nullable(z.array(LinkTagSchemaOutput$inboundSchema)),
|
|
283
285
|
folderId: z.nullable(z.string()),
|
|
284
|
-
webhookIds: z.array(z.string()),
|
|
285
286
|
comments: z.nullable(z.string()),
|
|
286
287
|
shortLink: z.string(),
|
|
287
288
|
qrCode: z.string(),
|
|
@@ -306,6 +307,7 @@ export const LinkSchema$inboundSchema: z.ZodType<
|
|
|
306
307
|
updatedAt: z.string(),
|
|
307
308
|
tagId: z.nullable(z.string()),
|
|
308
309
|
projectId: z.string(),
|
|
310
|
+
webhookIds: z.array(z.string()),
|
|
309
311
|
}).transform((v) => {
|
|
310
312
|
return remap$(v, {
|
|
311
313
|
"utm_source": "utmSource",
|
|
@@ -116,10 +116,6 @@ export type Data = {
|
|
|
116
116
|
* The unique ID of the folder assigned to the short link.
|
|
117
117
|
*/
|
|
118
118
|
folderId: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* The IDs of the webhooks that the short link is associated with.
|
|
121
|
-
*/
|
|
122
|
-
webhookIds: Array<string>;
|
|
123
119
|
/**
|
|
124
120
|
* The comments for the short link.
|
|
125
121
|
*/
|
|
@@ -198,6 +194,12 @@ export type Data = {
|
|
|
198
194
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
199
195
|
*/
|
|
200
196
|
projectId: string;
|
|
197
|
+
/**
|
|
198
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
199
|
+
*
|
|
200
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
201
|
+
*/
|
|
202
|
+
webhookIds: Array<string>;
|
|
201
203
|
};
|
|
202
204
|
|
|
203
205
|
/**
|
|
@@ -330,7 +332,6 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
330
332
|
publicStats: z.boolean(),
|
|
331
333
|
tags: z.nullable(z.array(LinkTagSchema$inboundSchema)),
|
|
332
334
|
folderId: z.nullable(z.string()),
|
|
333
|
-
webhookIds: z.array(z.string()),
|
|
334
335
|
comments: z.nullable(z.string()),
|
|
335
336
|
shortLink: z.string(),
|
|
336
337
|
qrCode: z.string(),
|
|
@@ -356,6 +357,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
356
357
|
updatedAt: z.string(),
|
|
357
358
|
tagId: z.nullable(z.string()),
|
|
358
359
|
projectId: z.string(),
|
|
360
|
+
webhookIds: z.array(z.string()),
|
|
359
361
|
}).transform((v) => {
|
|
360
362
|
return remap$(v, {
|
|
361
363
|
"utm_source": "utmSource",
|
|
@@ -394,7 +396,6 @@ export type Data$Outbound = {
|
|
|
394
396
|
publicStats: boolean;
|
|
395
397
|
tags: Array<LinkTagSchema$Outbound> | null;
|
|
396
398
|
folderId: string | null;
|
|
397
|
-
webhookIds: Array<string>;
|
|
398
399
|
comments: string | null;
|
|
399
400
|
shortLink: string;
|
|
400
401
|
qrCode: string;
|
|
@@ -421,6 +422,7 @@ export type Data$Outbound = {
|
|
|
421
422
|
updatedAt: string;
|
|
422
423
|
tagId: string | null;
|
|
423
424
|
projectId: string;
|
|
425
|
+
webhookIds: Array<string>;
|
|
424
426
|
};
|
|
425
427
|
|
|
426
428
|
/** @internal */
|
|
@@ -453,7 +455,6 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
453
455
|
publicStats: z.boolean(),
|
|
454
456
|
tags: z.nullable(z.array(LinkTagSchema$outboundSchema)),
|
|
455
457
|
folderId: z.nullable(z.string()),
|
|
456
|
-
webhookIds: z.array(z.string()),
|
|
457
458
|
comments: z.nullable(z.string()),
|
|
458
459
|
shortLink: z.string(),
|
|
459
460
|
qrCode: z.string(),
|
|
@@ -479,6 +480,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
479
480
|
updatedAt: z.string(),
|
|
480
481
|
tagId: z.nullable(z.string()),
|
|
481
482
|
projectId: z.string(),
|
|
483
|
+
webhookIds: z.array(z.string()),
|
|
482
484
|
}).transform((v) => {
|
|
483
485
|
return remap$(v, {
|
|
484
486
|
utmSource: "utm_source",
|
|
@@ -37,6 +37,7 @@ export const DefaultPayoutMethod = {
|
|
|
37
37
|
Connect: "connect",
|
|
38
38
|
Stablecoin: "stablecoin",
|
|
39
39
|
Paypal: "paypal",
|
|
40
|
+
Tremendous: "tremendous",
|
|
40
41
|
} as const;
|
|
41
42
|
/**
|
|
42
43
|
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|
|
@@ -82,6 +82,7 @@ export type SaleCreatedEventClick = {
|
|
|
82
82
|
device: string;
|
|
83
83
|
browser: string;
|
|
84
84
|
os: string;
|
|
85
|
+
ua?: string | null | undefined;
|
|
85
86
|
trigger?: string | null | undefined;
|
|
86
87
|
referer: string;
|
|
87
88
|
refererUrl: string;
|
|
@@ -173,10 +174,6 @@ export type SaleCreatedEventLink = {
|
|
|
173
174
|
* The unique ID of the folder assigned to the short link.
|
|
174
175
|
*/
|
|
175
176
|
folderId: string | null;
|
|
176
|
-
/**
|
|
177
|
-
* The IDs of the webhooks that the short link is associated with.
|
|
178
|
-
*/
|
|
179
|
-
webhookIds: Array<string>;
|
|
180
177
|
/**
|
|
181
178
|
* The comments for the short link.
|
|
182
179
|
*/
|
|
@@ -255,6 +252,12 @@ export type SaleCreatedEventLink = {
|
|
|
255
252
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
256
253
|
*/
|
|
257
254
|
projectId: string;
|
|
255
|
+
/**
|
|
256
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
257
|
+
*
|
|
258
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
259
|
+
*/
|
|
260
|
+
webhookIds: Array<string>;
|
|
258
261
|
};
|
|
259
262
|
|
|
260
263
|
export type Sale = {
|
|
@@ -415,6 +418,7 @@ export const SaleCreatedEventClick$inboundSchema: z.ZodType<
|
|
|
415
418
|
device: z.string(),
|
|
416
419
|
browser: z.string(),
|
|
417
420
|
os: z.string(),
|
|
421
|
+
ua: z.nullable(z.string()).optional(),
|
|
418
422
|
trigger: z.nullable(z.string()).optional(),
|
|
419
423
|
referer: z.string(),
|
|
420
424
|
refererUrl: z.string(),
|
|
@@ -433,6 +437,7 @@ export type SaleCreatedEventClick$Outbound = {
|
|
|
433
437
|
device: string;
|
|
434
438
|
browser: string;
|
|
435
439
|
os: string;
|
|
440
|
+
ua?: string | null | undefined;
|
|
436
441
|
trigger?: string | null | undefined;
|
|
437
442
|
referer: string;
|
|
438
443
|
refererUrl: string;
|
|
@@ -456,6 +461,7 @@ export const SaleCreatedEventClick$outboundSchema: z.ZodType<
|
|
|
456
461
|
device: z.string(),
|
|
457
462
|
browser: z.string(),
|
|
458
463
|
os: z.string(),
|
|
464
|
+
ua: z.nullable(z.string()).optional(),
|
|
459
465
|
trigger: z.nullable(z.string()).optional(),
|
|
460
466
|
referer: z.string(),
|
|
461
467
|
refererUrl: z.string(),
|
|
@@ -557,7 +563,6 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
|
|
|
557
563
|
publicStats: z.boolean(),
|
|
558
564
|
tags: z.nullable(z.array(LinkTagSchema$inboundSchema)),
|
|
559
565
|
folderId: z.nullable(z.string()),
|
|
560
|
-
webhookIds: z.array(z.string()),
|
|
561
566
|
comments: z.nullable(z.string()),
|
|
562
567
|
shortLink: z.string(),
|
|
563
568
|
qrCode: z.string(),
|
|
@@ -583,6 +588,7 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
|
|
|
583
588
|
updatedAt: z.string(),
|
|
584
589
|
tagId: z.nullable(z.string()),
|
|
585
590
|
projectId: z.string(),
|
|
591
|
+
webhookIds: z.array(z.string()),
|
|
586
592
|
}).transform((v) => {
|
|
587
593
|
return remap$(v, {
|
|
588
594
|
"utm_source": "utmSource",
|
|
@@ -621,7 +627,6 @@ export type SaleCreatedEventLink$Outbound = {
|
|
|
621
627
|
publicStats: boolean;
|
|
622
628
|
tags: Array<LinkTagSchema$Outbound> | null;
|
|
623
629
|
folderId: string | null;
|
|
624
|
-
webhookIds: Array<string>;
|
|
625
630
|
comments: string | null;
|
|
626
631
|
shortLink: string;
|
|
627
632
|
qrCode: string;
|
|
@@ -648,6 +653,7 @@ export type SaleCreatedEventLink$Outbound = {
|
|
|
648
653
|
updatedAt: string;
|
|
649
654
|
tagId: string | null;
|
|
650
655
|
projectId: string;
|
|
656
|
+
webhookIds: Array<string>;
|
|
651
657
|
};
|
|
652
658
|
|
|
653
659
|
/** @internal */
|
|
@@ -683,7 +689,6 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
|
|
|
683
689
|
publicStats: z.boolean(),
|
|
684
690
|
tags: z.nullable(z.array(LinkTagSchema$outboundSchema)),
|
|
685
691
|
folderId: z.nullable(z.string()),
|
|
686
|
-
webhookIds: z.array(z.string()),
|
|
687
692
|
comments: z.nullable(z.string()),
|
|
688
693
|
shortLink: z.string(),
|
|
689
694
|
qrCode: z.string(),
|
|
@@ -709,6 +714,7 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
|
|
|
709
714
|
updatedAt: z.string(),
|
|
710
715
|
tagId: z.nullable(z.string()),
|
|
711
716
|
projectId: z.string(),
|
|
717
|
+
webhookIds: z.array(z.string()),
|
|
712
718
|
}).transform((v) => {
|
|
713
719
|
return remap$(v, {
|
|
714
720
|
utmSource: "utm_source",
|
|
@@ -161,10 +161,6 @@ export type RequestBody = {
|
|
|
161
161
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
162
162
|
*/
|
|
163
163
|
ref?: string | null | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
166
|
-
*/
|
|
167
|
-
webhookIds?: Array<string> | null | undefined;
|
|
168
164
|
/**
|
|
169
165
|
* An array of A/B test URLs and the percentage of traffic to send to each URL.
|
|
170
166
|
*/
|
|
@@ -189,6 +185,12 @@ export type RequestBody = {
|
|
|
189
185
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
190
186
|
*/
|
|
191
187
|
tagId?: string | null | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
190
|
+
*
|
|
191
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
192
|
+
*/
|
|
193
|
+
webhookIds?: Array<string> | null | undefined;
|
|
192
194
|
};
|
|
193
195
|
|
|
194
196
|
export type ResponseBody = components.LinkSchema | components.LinkErrorSchema;
|
|
@@ -291,12 +293,12 @@ export type RequestBody$Outbound = {
|
|
|
291
293
|
utm_term?: string | null | undefined;
|
|
292
294
|
utm_content?: string | null | undefined;
|
|
293
295
|
ref?: string | null | undefined;
|
|
294
|
-
webhookIds?: Array<string> | null | undefined;
|
|
295
296
|
testVariants?: Array<BulkCreateLinksTestVariants$Outbound> | null | undefined;
|
|
296
297
|
testStartedAt?: string | null | undefined;
|
|
297
298
|
testCompletedAt?: string | null | undefined;
|
|
298
299
|
publicStats?: boolean | undefined;
|
|
299
300
|
tagId?: string | null | undefined;
|
|
301
|
+
webhookIds?: Array<string> | null | undefined;
|
|
300
302
|
};
|
|
301
303
|
|
|
302
304
|
/** @internal */
|
|
@@ -339,7 +341,6 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
339
341
|
utmTerm: z.nullable(z.string()).optional(),
|
|
340
342
|
utmContent: z.nullable(z.string()).optional(),
|
|
341
343
|
ref: z.nullable(z.string()).optional(),
|
|
342
|
-
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
343
344
|
testVariants: z.nullable(
|
|
344
345
|
z.array(z.lazy(() => BulkCreateLinksTestVariants$outboundSchema)),
|
|
345
346
|
).optional(),
|
|
@@ -347,6 +348,7 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
347
348
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
348
349
|
publicStats: z.boolean().optional(),
|
|
349
350
|
tagId: z.nullable(z.string()).optional(),
|
|
351
|
+
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
350
352
|
}).transform((v) => {
|
|
351
353
|
return remap$(v, {
|
|
352
354
|
utmSource: "utm_source",
|
|
@@ -137,10 +137,6 @@ export type Data = {
|
|
|
137
137
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
138
138
|
*/
|
|
139
139
|
ref?: string | null | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
142
|
-
*/
|
|
143
|
-
webhookIds?: Array<string> | null | undefined;
|
|
144
140
|
/**
|
|
145
141
|
* An array of A/B test URLs and the percentage of traffic to send to each URL.
|
|
146
142
|
*/
|
|
@@ -165,6 +161,12 @@ export type Data = {
|
|
|
165
161
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
166
162
|
*/
|
|
167
163
|
tagId?: string | null | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
166
|
+
*
|
|
167
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
168
|
+
*/
|
|
169
|
+
webhookIds?: Array<string> | null | undefined;
|
|
168
170
|
};
|
|
169
171
|
|
|
170
172
|
export type BulkUpdateLinksRequestBody = {
|
|
@@ -272,12 +274,12 @@ export type Data$Outbound = {
|
|
|
272
274
|
utm_term?: string | null | undefined;
|
|
273
275
|
utm_content?: string | null | undefined;
|
|
274
276
|
ref?: string | null | undefined;
|
|
275
|
-
webhookIds?: Array<string> | null | undefined;
|
|
276
277
|
testVariants?: Array<BulkUpdateLinksTestVariants$Outbound> | null | undefined;
|
|
277
278
|
testStartedAt?: string | null | undefined;
|
|
278
279
|
testCompletedAt?: string | null | undefined;
|
|
279
280
|
publicStats?: boolean | undefined;
|
|
280
281
|
tagId?: string | null | undefined;
|
|
282
|
+
webhookIds?: Array<string> | null | undefined;
|
|
281
283
|
};
|
|
282
284
|
|
|
283
285
|
/** @internal */
|
|
@@ -312,7 +314,6 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
312
314
|
utmTerm: z.nullable(z.string()).optional(),
|
|
313
315
|
utmContent: z.nullable(z.string()).optional(),
|
|
314
316
|
ref: z.nullable(z.string()).optional(),
|
|
315
|
-
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
316
317
|
testVariants: z.nullable(
|
|
317
318
|
z.array(z.lazy(() => BulkUpdateLinksTestVariants$outboundSchema)),
|
|
318
319
|
).optional(),
|
|
@@ -320,6 +321,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
320
321
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
321
322
|
publicStats: z.boolean().optional(),
|
|
322
323
|
tagId: z.nullable(z.string()).optional(),
|
|
324
|
+
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
323
325
|
}).transform((v) => {
|
|
324
326
|
return remap$(v, {
|
|
325
327
|
utmSource: "utm_source",
|
|
@@ -19,6 +19,20 @@ export type CheckDomainStatusRequest = {
|
|
|
19
19
|
domains: string | Array<string>;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Price details for the domain. Will be null if the domain is not available.
|
|
24
|
+
*/
|
|
25
|
+
export type Prices = {
|
|
26
|
+
/**
|
|
27
|
+
* The domain's registration price in USD cents.
|
|
28
|
+
*/
|
|
29
|
+
registration: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* The domain's renewal price in USD cents.
|
|
32
|
+
*/
|
|
33
|
+
renewal: number | null;
|
|
34
|
+
};
|
|
35
|
+
|
|
22
36
|
export type CheckDomainStatusResponseBody = {
|
|
23
37
|
/**
|
|
24
38
|
* The domain name.
|
|
@@ -28,14 +42,20 @@ export type CheckDomainStatusResponseBody = {
|
|
|
28
42
|
* Whether the domain is available.
|
|
29
43
|
*/
|
|
30
44
|
available: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* The price description.
|
|
33
|
-
*/
|
|
34
|
-
price: string | null;
|
|
35
45
|
/**
|
|
36
46
|
* Whether the domain is a premium domain.
|
|
37
47
|
*/
|
|
38
48
|
premium: boolean | null;
|
|
49
|
+
/**
|
|
50
|
+
* Price details for the domain. Will be null if the domain is not available.
|
|
51
|
+
*/
|
|
52
|
+
prices: Prices | null;
|
|
53
|
+
/**
|
|
54
|
+
* Deprecated: Use `prices` instead.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
57
|
+
*/
|
|
58
|
+
price: string | null;
|
|
39
59
|
};
|
|
40
60
|
|
|
41
61
|
/** @internal */
|
|
@@ -74,6 +94,23 @@ export function checkDomainStatusRequestToJSON(
|
|
|
74
94
|
);
|
|
75
95
|
}
|
|
76
96
|
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const Prices$inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown> = z
|
|
99
|
+
.object({
|
|
100
|
+
registration: z.nullable(z.number()),
|
|
101
|
+
renewal: z.nullable(z.number()),
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export function pricesFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<Prices, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => Prices$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'Prices' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
77
114
|
/** @internal */
|
|
78
115
|
export const CheckDomainStatusResponseBody$inboundSchema: z.ZodType<
|
|
79
116
|
CheckDomainStatusResponseBody,
|
|
@@ -82,8 +119,9 @@ export const CheckDomainStatusResponseBody$inboundSchema: z.ZodType<
|
|
|
82
119
|
> = z.object({
|
|
83
120
|
domain: z.string(),
|
|
84
121
|
available: z.boolean(),
|
|
85
|
-
price: z.nullable(z.string()),
|
|
86
122
|
premium: z.nullable(z.boolean()),
|
|
123
|
+
prices: z.nullable(z.lazy(() => Prices$inboundSchema)),
|
|
124
|
+
price: z.nullable(z.string()),
|
|
87
125
|
});
|
|
88
126
|
|
|
89
127
|
export function checkDomainStatusResponseBodyFromJSON(
|
|
@@ -6,14 +6,14 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The access level
|
|
9
|
+
* The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.
|
|
10
10
|
*/
|
|
11
11
|
export const AccessLevel = {
|
|
12
12
|
Write: "write",
|
|
13
13
|
Read: "read",
|
|
14
14
|
} as const;
|
|
15
15
|
/**
|
|
16
|
-
* The access level
|
|
16
|
+
* The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.
|
|
17
17
|
*/
|
|
18
18
|
export type AccessLevel = ClosedEnum<typeof AccessLevel>;
|
|
19
19
|
|
|
@@ -27,7 +27,7 @@ export type CreateFolderRequestBody = {
|
|
|
27
27
|
*/
|
|
28
28
|
description?: string | null | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* The access level
|
|
30
|
+
* The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.
|
|
31
31
|
*/
|
|
32
32
|
accessLevel?: AccessLevel | null | undefined;
|
|
33
33
|
};
|
|
@@ -51,7 +51,7 @@ export const CreateFolderRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
> = z.object({
|
|
52
52
|
name: z.string(),
|
|
53
53
|
description: z.nullable(z.string()).optional(),
|
|
54
|
-
accessLevel: z.nullable(AccessLevel$outboundSchema
|
|
54
|
+
accessLevel: z.nullable(AccessLevel$outboundSchema.default("write")),
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
export function createFolderRequestBodyToJSON(
|
|
@@ -157,10 +157,6 @@ export type CreateLinkRequestBody = {
|
|
|
157
157
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
158
158
|
*/
|
|
159
159
|
ref?: string | null | undefined;
|
|
160
|
-
/**
|
|
161
|
-
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
162
|
-
*/
|
|
163
|
-
webhookIds?: Array<string> | null | undefined;
|
|
164
160
|
/**
|
|
165
161
|
* An array of A/B test URLs and the percentage of traffic to send to each URL.
|
|
166
162
|
*/
|
|
@@ -185,6 +181,12 @@ export type CreateLinkRequestBody = {
|
|
|
185
181
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
186
182
|
*/
|
|
187
183
|
tagId?: string | null | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
186
|
+
*
|
|
187
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
188
|
+
*/
|
|
189
|
+
webhookIds?: Array<string> | null | undefined;
|
|
188
190
|
};
|
|
189
191
|
|
|
190
192
|
/** @internal */
|
|
@@ -271,12 +273,12 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
271
273
|
utm_term?: string | null | undefined;
|
|
272
274
|
utm_content?: string | null | undefined;
|
|
273
275
|
ref?: string | null | undefined;
|
|
274
|
-
webhookIds?: Array<string> | null | undefined;
|
|
275
276
|
testVariants?: Array<TestVariants$Outbound> | null | undefined;
|
|
276
277
|
testStartedAt?: string | null | undefined;
|
|
277
278
|
testCompletedAt?: string | null | undefined;
|
|
278
279
|
publicStats?: boolean | undefined;
|
|
279
280
|
tagId?: string | null | undefined;
|
|
281
|
+
webhookIds?: Array<string> | null | undefined;
|
|
280
282
|
};
|
|
281
283
|
|
|
282
284
|
/** @internal */
|
|
@@ -319,13 +321,13 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
319
321
|
utmTerm: z.nullable(z.string()).optional(),
|
|
320
322
|
utmContent: z.nullable(z.string()).optional(),
|
|
321
323
|
ref: z.nullable(z.string()).optional(),
|
|
322
|
-
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
323
324
|
testVariants: z.nullable(z.array(z.lazy(() => TestVariants$outboundSchema)))
|
|
324
325
|
.optional(),
|
|
325
326
|
testStartedAt: z.nullable(z.string()).optional(),
|
|
326
327
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
327
328
|
publicStats: z.boolean().optional(),
|
|
328
329
|
tagId: z.nullable(z.string()).optional(),
|
|
330
|
+
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
329
331
|
}).transform((v) => {
|
|
330
332
|
return remap$(v, {
|
|
331
333
|
utmSource: "utm_source",
|
|
@@ -180,6 +180,7 @@ export const CreatePartnerDefaultPayoutMethod = {
|
|
|
180
180
|
Connect: "connect",
|
|
181
181
|
Stablecoin: "stablecoin",
|
|
182
182
|
Paypal: "paypal",
|
|
183
|
+
Tremendous: "tremendous",
|
|
183
184
|
} as const;
|
|
184
185
|
/**
|
|
185
186
|
* The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
|