dub 0.73.0 → 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.
Files changed (111) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/models/components/leadcreatedevent.d.ts +7 -5
  4. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/leadcreatedevent.js +2 -2
  6. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  7. package/dist/commonjs/models/components/linkclickedevent.d.ts +7 -5
  8. package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/linkclickedevent.js +2 -2
  10. package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
  11. package/dist/commonjs/models/components/linkschema.d.ts +6 -4
  12. package/dist/commonjs/models/components/linkschema.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/linkschema.js +1 -1
  14. package/dist/commonjs/models/components/linkschema.js.map +1 -1
  15. package/dist/commonjs/models/components/linkwebhookevent.d.ts +7 -5
  16. package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/linkwebhookevent.js +2 -2
  18. package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -1
  19. package/dist/commonjs/models/components/salecreatedevent.d.ts +7 -5
  20. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/salecreatedevent.js +2 -2
  22. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  23. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +7 -5
  24. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/bulkcreatelinks.js +1 -1
  26. package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
  27. package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +7 -5
  28. package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/bulkupdatelinks.js +1 -1
  30. package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
  31. package/dist/commonjs/models/operations/createlink.d.ts +7 -5
  32. package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/createlink.js +1 -1
  34. package/dist/commonjs/models/operations/createlink.js.map +1 -1
  35. package/dist/commonjs/models/operations/listevents.d.ts +18 -12
  36. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/listevents.js +3 -3
  38. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  39. package/dist/commonjs/models/operations/tracklead.js +1 -1
  40. package/dist/commonjs/models/operations/tracklead.js.map +1 -1
  41. package/dist/commonjs/models/operations/updatelink.d.ts +7 -5
  42. package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/updatelink.js +1 -1
  44. package/dist/commonjs/models/operations/updatelink.js.map +1 -1
  45. package/dist/commonjs/models/operations/upsertlink.d.ts +7 -5
  46. package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/upsertlink.js +1 -1
  48. package/dist/commonjs/models/operations/upsertlink.js.map +1 -1
  49. package/dist/esm/lib/config.d.ts +3 -3
  50. package/dist/esm/lib/config.js +3 -3
  51. package/dist/esm/models/components/leadcreatedevent.d.ts +7 -5
  52. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  53. package/dist/esm/models/components/leadcreatedevent.js +2 -2
  54. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  55. package/dist/esm/models/components/linkclickedevent.d.ts +7 -5
  56. package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
  57. package/dist/esm/models/components/linkclickedevent.js +2 -2
  58. package/dist/esm/models/components/linkclickedevent.js.map +1 -1
  59. package/dist/esm/models/components/linkschema.d.ts +6 -4
  60. package/dist/esm/models/components/linkschema.d.ts.map +1 -1
  61. package/dist/esm/models/components/linkschema.js +1 -1
  62. package/dist/esm/models/components/linkschema.js.map +1 -1
  63. package/dist/esm/models/components/linkwebhookevent.d.ts +7 -5
  64. package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -1
  65. package/dist/esm/models/components/linkwebhookevent.js +2 -2
  66. package/dist/esm/models/components/linkwebhookevent.js.map +1 -1
  67. package/dist/esm/models/components/salecreatedevent.d.ts +7 -5
  68. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  69. package/dist/esm/models/components/salecreatedevent.js +2 -2
  70. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  71. package/dist/esm/models/operations/bulkcreatelinks.d.ts +7 -5
  72. package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
  73. package/dist/esm/models/operations/bulkcreatelinks.js +1 -1
  74. package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
  75. package/dist/esm/models/operations/bulkupdatelinks.d.ts +7 -5
  76. package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
  77. package/dist/esm/models/operations/bulkupdatelinks.js +1 -1
  78. package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
  79. package/dist/esm/models/operations/createlink.d.ts +7 -5
  80. package/dist/esm/models/operations/createlink.d.ts.map +1 -1
  81. package/dist/esm/models/operations/createlink.js +1 -1
  82. package/dist/esm/models/operations/createlink.js.map +1 -1
  83. package/dist/esm/models/operations/listevents.d.ts +18 -12
  84. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  85. package/dist/esm/models/operations/listevents.js +3 -3
  86. package/dist/esm/models/operations/listevents.js.map +1 -1
  87. package/dist/esm/models/operations/tracklead.js +1 -1
  88. package/dist/esm/models/operations/tracklead.js.map +1 -1
  89. package/dist/esm/models/operations/updatelink.d.ts +7 -5
  90. package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
  91. package/dist/esm/models/operations/updatelink.js +1 -1
  92. package/dist/esm/models/operations/updatelink.js.map +1 -1
  93. package/dist/esm/models/operations/upsertlink.d.ts +7 -5
  94. package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
  95. package/dist/esm/models/operations/upsertlink.js +1 -1
  96. package/dist/esm/models/operations/upsertlink.js.map +1 -1
  97. package/jsr.json +1 -1
  98. package/package.json +1 -1
  99. package/src/lib/config.ts +3 -3
  100. package/src/models/components/leadcreatedevent.ts +9 -7
  101. package/src/models/components/linkclickedevent.ts +9 -7
  102. package/src/models/components/linkschema.ts +7 -5
  103. package/src/models/components/linkwebhookevent.ts +9 -7
  104. package/src/models/components/salecreatedevent.ts +9 -7
  105. package/src/models/operations/bulkcreatelinks.ts +8 -6
  106. package/src/models/operations/bulkupdatelinks.ts +8 -6
  107. package/src/models/operations/createlink.ts +8 -6
  108. package/src/models/operations/listevents.ts +21 -15
  109. package/src/models/operations/tracklead.ts +1 -1
  110. package/src/models/operations/updatelink.ts +8 -6
  111. package/src/models/operations/upsertlink.ts +8 -6
@@ -123,10 +123,6 @@ export type Link = {
123
123
  * The unique ID of the folder assigned to the short link.
124
124
  */
125
125
  folderId: string | null;
126
- /**
127
- * The IDs of the webhooks that the short link is associated with.
128
- */
129
- webhookIds: Array<string>;
130
126
  /**
131
127
  * The comments for the short link.
132
128
  */
@@ -205,6 +201,12 @@ export type Link = {
205
201
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
206
202
  */
207
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>;
208
210
  };
209
211
 
210
212
  export type LinkClickedEventData = {
@@ -382,7 +384,6 @@ export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
382
384
  publicStats: z.boolean(),
383
385
  tags: z.nullable(z.array(LinkTagSchema$inboundSchema)),
384
386
  folderId: z.nullable(z.string()),
385
- webhookIds: z.array(z.string()),
386
387
  comments: z.nullable(z.string()),
387
388
  shortLink: z.string(),
388
389
  qrCode: z.string(),
@@ -408,6 +409,7 @@ export const Link$inboundSchema: z.ZodType<Link, z.ZodTypeDef, unknown> = z
408
409
  updatedAt: z.string(),
409
410
  tagId: z.nullable(z.string()),
410
411
  projectId: z.string(),
412
+ webhookIds: z.array(z.string()),
411
413
  }).transform((v) => {
412
414
  return remap$(v, {
413
415
  "utm_source": "utmSource",
@@ -446,7 +448,6 @@ export type Link$Outbound = {
446
448
  publicStats: boolean;
447
449
  tags: Array<LinkTagSchema$Outbound> | null;
448
450
  folderId: string | null;
449
- webhookIds: Array<string>;
450
451
  comments: string | null;
451
452
  shortLink: string;
452
453
  qrCode: string;
@@ -473,6 +474,7 @@ export type Link$Outbound = {
473
474
  updatedAt: string;
474
475
  tagId: string | null;
475
476
  projectId: string;
477
+ webhookIds: Array<string>;
476
478
  };
477
479
 
478
480
  /** @internal */
@@ -505,7 +507,6 @@ export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
505
507
  publicStats: z.boolean(),
506
508
  tags: z.nullable(z.array(LinkTagSchema$outboundSchema)),
507
509
  folderId: z.nullable(z.string()),
508
- webhookIds: z.array(z.string()),
509
510
  comments: z.nullable(z.string()),
510
511
  shortLink: z.string(),
511
512
  qrCode: z.string(),
@@ -531,6 +532,7 @@ export const Link$outboundSchema: z.ZodType<Link$Outbound, z.ZodTypeDef, Link> =
531
532
  updatedAt: z.string(),
532
533
  tagId: z.nullable(z.string()),
533
534
  projectId: z.string(),
535
+ webhookIds: z.array(z.string()),
534
536
  }).transform((v) => {
535
537
  return remap$(v, {
536
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",
@@ -174,10 +174,6 @@ export type SaleCreatedEventLink = {
174
174
  * The unique ID of the folder assigned to the short link.
175
175
  */
176
176
  folderId: string | null;
177
- /**
178
- * The IDs of the webhooks that the short link is associated with.
179
- */
180
- webhookIds: Array<string>;
181
177
  /**
182
178
  * The comments for the short link.
183
179
  */
@@ -256,6 +252,12 @@ export type SaleCreatedEventLink = {
256
252
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
257
253
  */
258
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>;
259
261
  };
260
262
 
261
263
  export type Sale = {
@@ -561,7 +563,6 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
561
563
  publicStats: z.boolean(),
562
564
  tags: z.nullable(z.array(LinkTagSchema$inboundSchema)),
563
565
  folderId: z.nullable(z.string()),
564
- webhookIds: z.array(z.string()),
565
566
  comments: z.nullable(z.string()),
566
567
  shortLink: z.string(),
567
568
  qrCode: z.string(),
@@ -587,6 +588,7 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
587
588
  updatedAt: z.string(),
588
589
  tagId: z.nullable(z.string()),
589
590
  projectId: z.string(),
591
+ webhookIds: z.array(z.string()),
590
592
  }).transform((v) => {
591
593
  return remap$(v, {
592
594
  "utm_source": "utmSource",
@@ -625,7 +627,6 @@ export type SaleCreatedEventLink$Outbound = {
625
627
  publicStats: boolean;
626
628
  tags: Array<LinkTagSchema$Outbound> | null;
627
629
  folderId: string | null;
628
- webhookIds: Array<string>;
629
630
  comments: string | null;
630
631
  shortLink: string;
631
632
  qrCode: string;
@@ -652,6 +653,7 @@ export type SaleCreatedEventLink$Outbound = {
652
653
  updatedAt: string;
653
654
  tagId: string | null;
654
655
  projectId: string;
656
+ webhookIds: Array<string>;
655
657
  };
656
658
 
657
659
  /** @internal */
@@ -687,7 +689,6 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
687
689
  publicStats: z.boolean(),
688
690
  tags: z.nullable(z.array(LinkTagSchema$outboundSchema)),
689
691
  folderId: z.nullable(z.string()),
690
- webhookIds: z.array(z.string()),
691
692
  comments: z.nullable(z.string()),
692
693
  shortLink: z.string(),
693
694
  qrCode: z.string(),
@@ -713,6 +714,7 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
713
714
  updatedAt: z.string(),
714
715
  tagId: z.nullable(z.string()),
715
716
  projectId: z.string(),
717
+ webhookIds: z.array(z.string()),
716
718
  }).transform((v) => {
717
719
  return remap$(v, {
718
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",
@@ -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",
@@ -385,10 +385,6 @@ export type ListEventsResponseBodyLink = {
385
385
  * The unique ID of the folder assigned to the short link.
386
386
  */
387
387
  folderId: string | null;
388
- /**
389
- * The IDs of the webhooks that the short link is associated with.
390
- */
391
- webhookIds: Array<string>;
392
388
  /**
393
389
  * The comments for the short link.
394
390
  */
@@ -470,6 +466,12 @@ export type ListEventsResponseBodyLink = {
470
466
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
471
467
  */
472
468
  projectId: string;
469
+ /**
470
+ * 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.
471
+ *
472
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
473
+ */
474
+ webhookIds: Array<string>;
473
475
  };
474
476
 
475
477
  export type ListEventsResponseBodyClick = {
@@ -753,10 +755,6 @@ export type ResponseBodyLink = {
753
755
  * The unique ID of the folder assigned to the short link.
754
756
  */
755
757
  folderId: string | null;
756
- /**
757
- * The IDs of the webhooks that the short link is associated with.
758
- */
759
- webhookIds: Array<string>;
760
758
  /**
761
759
  * The comments for the short link.
762
760
  */
@@ -835,6 +833,12 @@ export type ResponseBodyLink = {
835
833
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
836
834
  */
837
835
  projectId: string;
836
+ /**
837
+ * 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.
838
+ *
839
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
840
+ */
841
+ webhookIds: Array<string>;
838
842
  };
839
843
 
840
844
  export type ListEventsResponseBodyCustomer = {
@@ -1080,10 +1084,6 @@ export type ListEventsResponseBodyEventsLink = {
1080
1084
  * The unique ID of the folder assigned to the short link.
1081
1085
  */
1082
1086
  folderId: string | null;
1083
- /**
1084
- * The IDs of the webhooks that the short link is associated with.
1085
- */
1086
- webhookIds: Array<string>;
1087
1087
  /**
1088
1088
  * The comments for the short link.
1089
1089
  */
@@ -1162,6 +1162,12 @@ export type ListEventsResponseBodyEventsLink = {
1162
1162
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1163
1163
  */
1164
1164
  projectId: string;
1165
+ /**
1166
+ * 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.
1167
+ *
1168
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1169
+ */
1170
+ webhookIds: Array<string>;
1165
1171
  };
1166
1172
 
1167
1173
  export type ClickEvent = {
@@ -1481,7 +1487,6 @@ export const ListEventsResponseBodyLink$inboundSchema: z.ZodType<
1481
1487
  publicStats: z.boolean(),
1482
1488
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1483
1489
  folderId: z.nullable(z.string()),
1484
- webhookIds: z.array(z.string()),
1485
1490
  comments: z.nullable(z.string()),
1486
1491
  shortLink: z.string(),
1487
1492
  qrCode: z.string(),
@@ -1509,6 +1514,7 @@ export const ListEventsResponseBodyLink$inboundSchema: z.ZodType<
1509
1514
  updatedAt: z.string(),
1510
1515
  tagId: z.nullable(z.string()),
1511
1516
  projectId: z.string(),
1517
+ webhookIds: z.array(z.string()),
1512
1518
  }).transform((v) => {
1513
1519
  return remap$(v, {
1514
1520
  "utm_source": "utmSource",
@@ -1731,7 +1737,6 @@ export const ResponseBodyLink$inboundSchema: z.ZodType<
1731
1737
  publicStats: z.boolean(),
1732
1738
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1733
1739
  folderId: z.nullable(z.string()),
1734
- webhookIds: z.array(z.string()),
1735
1740
  comments: z.nullable(z.string()),
1736
1741
  shortLink: z.string(),
1737
1742
  qrCode: z.string(),
@@ -1757,6 +1762,7 @@ export const ResponseBodyLink$inboundSchema: z.ZodType<
1757
1762
  updatedAt: z.string(),
1758
1763
  tagId: z.nullable(z.string()),
1759
1764
  projectId: z.string(),
1765
+ webhookIds: z.array(z.string()),
1760
1766
  }).transform((v) => {
1761
1767
  return remap$(v, {
1762
1768
  "utm_source": "utmSource",
@@ -1938,7 +1944,6 @@ export const ListEventsResponseBodyEventsLink$inboundSchema: z.ZodType<
1938
1944
  publicStats: z.boolean(),
1939
1945
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1940
1946
  folderId: z.nullable(z.string()),
1941
- webhookIds: z.array(z.string()),
1942
1947
  comments: z.nullable(z.string()),
1943
1948
  shortLink: z.string(),
1944
1949
  qrCode: z.string(),
@@ -1964,6 +1969,7 @@ export const ListEventsResponseBodyEventsLink$inboundSchema: z.ZodType<
1964
1969
  updatedAt: z.string(),
1965
1970
  tagId: z.nullable(z.string()),
1966
1971
  projectId: z.string(),
1972
+ webhookIds: z.array(z.string()),
1967
1973
  }).transform((v) => {
1968
1974
  return remap$(v, {
1969
1975
  "utm_source": "utmSource",
@@ -150,7 +150,7 @@ export const TrackLeadRequestBody$outboundSchema: z.ZodType<
150
150
  customerEmail: z.nullable(z.string()).default(null),
151
151
  customerAvatar: z.nullable(z.string()).default(null),
152
152
  mode: Mode$outboundSchema.default("async"),
153
- eventQuantity: z.nullable(z.number()).optional(),
153
+ eventQuantity: z.nullable(z.number().int()).optional(),
154
154
  metadata: z.nullable(z.record(z.any())).optional(),
155
155
  });
156
156
 
@@ -143,10 +143,6 @@ export type UpdateLinkRequestBody = {
143
143
  * The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
144
144
  */
145
145
  ref?: string | null | undefined;
146
- /**
147
- * An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
148
- */
149
- webhookIds?: Array<string> | null | undefined;
150
146
  /**
151
147
  * An array of A/B test URLs and the percentage of traffic to send to each URL.
152
148
  */
@@ -171,6 +167,12 @@ export type UpdateLinkRequestBody = {
171
167
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
172
168
  */
173
169
  tagId?: string | null | undefined;
170
+ /**
171
+ * 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.
172
+ *
173
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
174
+ */
175
+ webhookIds?: Array<string> | null | undefined;
174
176
  };
175
177
 
176
178
  export type UpdateLinkRequest = {
@@ -275,12 +277,12 @@ export type UpdateLinkRequestBody$Outbound = {
275
277
  utm_term?: string | null | undefined;
276
278
  utm_content?: string | null | undefined;
277
279
  ref?: string | null | undefined;
278
- webhookIds?: Array<string> | null | undefined;
279
280
  testVariants?: Array<UpdateLinkTestVariants$Outbound> | null | undefined;
280
281
  testStartedAt?: string | null | undefined;
281
282
  testCompletedAt?: string | null | undefined;
282
283
  publicStats?: boolean | undefined;
283
284
  tagId?: string | null | undefined;
285
+ webhookIds?: Array<string> | null | undefined;
284
286
  };
285
287
 
286
288
  /** @internal */
@@ -321,7 +323,6 @@ export const UpdateLinkRequestBody$outboundSchema: z.ZodType<
321
323
  utmTerm: z.nullable(z.string()).optional(),
322
324
  utmContent: z.nullable(z.string()).optional(),
323
325
  ref: z.nullable(z.string()).optional(),
324
- webhookIds: z.nullable(z.array(z.string())).optional(),
325
326
  testVariants: z.nullable(
326
327
  z.array(z.lazy(() => UpdateLinkTestVariants$outboundSchema)),
327
328
  ).optional(),
@@ -329,6 +330,7 @@ export const UpdateLinkRequestBody$outboundSchema: z.ZodType<
329
330
  testCompletedAt: z.nullable(z.string()).optional(),
330
331
  publicStats: z.boolean().optional(),
331
332
  tagId: z.nullable(z.string()).optional(),
333
+ webhookIds: z.nullable(z.array(z.string())).optional(),
332
334
  }).transform((v) => {
333
335
  return remap$(v, {
334
336
  utmSource: "utm_source",
@@ -157,10 +157,6 @@ export type UpsertLinkRequestBody = {
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 UpsertLinkRequestBody = {
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 */
@@ -283,12 +285,12 @@ export type UpsertLinkRequestBody$Outbound = {
283
285
  utm_term?: string | null | undefined;
284
286
  utm_content?: string | null | undefined;
285
287
  ref?: string | null | undefined;
286
- webhookIds?: Array<string> | null | undefined;
287
288
  testVariants?: Array<UpsertLinkTestVariants$Outbound> | null | undefined;
288
289
  testStartedAt?: string | null | undefined;
289
290
  testCompletedAt?: string | null | undefined;
290
291
  publicStats?: boolean | undefined;
291
292
  tagId?: string | null | undefined;
293
+ webhookIds?: Array<string> | null | undefined;
292
294
  };
293
295
 
294
296
  /** @internal */
@@ -331,7 +333,6 @@ export const UpsertLinkRequestBody$outboundSchema: z.ZodType<
331
333
  utmTerm: z.nullable(z.string()).optional(),
332
334
  utmContent: z.nullable(z.string()).optional(),
333
335
  ref: z.nullable(z.string()).optional(),
334
- webhookIds: z.nullable(z.array(z.string())).optional(),
335
336
  testVariants: z.nullable(
336
337
  z.array(z.lazy(() => UpsertLinkTestVariants$outboundSchema)),
337
338
  ).optional(),
@@ -339,6 +340,7 @@ export const UpsertLinkRequestBody$outboundSchema: z.ZodType<
339
340
  testCompletedAt: z.nullable(z.string()).optional(),
340
341
  publicStats: z.boolean().optional(),
341
342
  tagId: z.nullable(z.string()).optional(),
343
+ webhookIds: z.nullable(z.array(z.string())).optional(),
342
344
  }).transform((v) => {
343
345
  return remap$(v, {
344
346
  utmSource: "utm_source",