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.
Files changed (229) hide show
  1. package/dist/commonjs/funcs/payoutsList.js +1 -0
  2. package/dist/commonjs/funcs/payoutsList.js.map +1 -1
  3. package/dist/commonjs/hooks/types.d.ts +1 -0
  4. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/lib/encodings.js +12 -12
  8. package/dist/commonjs/lib/encodings.js.map +1 -1
  9. package/dist/commonjs/lib/matchers.js +3 -3
  10. package/dist/commonjs/lib/matchers.js.map +1 -1
  11. package/dist/commonjs/lib/primitives.d.ts +1 -0
  12. package/dist/commonjs/lib/primitives.d.ts.map +1 -1
  13. package/dist/commonjs/lib/primitives.js +18 -0
  14. package/dist/commonjs/lib/primitives.js.map +1 -1
  15. package/dist/commonjs/lib/retries.js +7 -0
  16. package/dist/commonjs/lib/retries.js.map +1 -1
  17. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  18. package/dist/commonjs/lib/sdks.js +50 -16
  19. package/dist/commonjs/lib/sdks.js.map +1 -1
  20. package/dist/commonjs/models/components/folderschema.d.ts +3 -3
  21. package/dist/commonjs/models/components/folderschema.js +2 -2
  22. package/dist/commonjs/models/components/folderschema.js.map +1 -1
  23. package/dist/commonjs/models/components/leadcreatedevent.d.ts +9 -5
  24. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/leadcreatedevent.js +4 -2
  26. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  27. package/dist/commonjs/models/components/linkclickedevent.d.ts +9 -5
  28. package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/linkclickedevent.js +4 -2
  30. package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
  31. package/dist/commonjs/models/components/linkschema.d.ts +6 -4
  32. package/dist/commonjs/models/components/linkschema.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/linkschema.js +1 -1
  34. package/dist/commonjs/models/components/linkschema.js.map +1 -1
  35. package/dist/commonjs/models/components/linkwebhookevent.d.ts +7 -5
  36. package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/linkwebhookevent.js +2 -2
  38. package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -1
  39. package/dist/commonjs/models/components/partnerenrolledevent.d.ts +1 -0
  40. package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/partnerenrolledevent.js +1 -0
  42. package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
  43. package/dist/commonjs/models/components/salecreatedevent.d.ts +9 -5
  44. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/salecreatedevent.js +4 -2
  46. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  47. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +7 -5
  48. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
  49. package/dist/commonjs/models/operations/bulkcreatelinks.js +1 -1
  50. package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
  51. package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +7 -5
  52. package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
  53. package/dist/commonjs/models/operations/bulkupdatelinks.js +1 -1
  54. package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
  55. package/dist/commonjs/models/operations/checkdomainstatus.d.ts +26 -4
  56. package/dist/commonjs/models/operations/checkdomainstatus.d.ts.map +1 -1
  57. package/dist/commonjs/models/operations/checkdomainstatus.js +13 -2
  58. package/dist/commonjs/models/operations/checkdomainstatus.js.map +1 -1
  59. package/dist/commonjs/models/operations/createfolder.d.ts +3 -3
  60. package/dist/commonjs/models/operations/createfolder.js +2 -2
  61. package/dist/commonjs/models/operations/createfolder.js.map +1 -1
  62. package/dist/commonjs/models/operations/createlink.d.ts +7 -5
  63. package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/createlink.js +1 -1
  65. package/dist/commonjs/models/operations/createlink.js.map +1 -1
  66. package/dist/commonjs/models/operations/createpartner.d.ts +1 -0
  67. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/createpartner.js +1 -0
  69. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  70. package/dist/commonjs/models/operations/listevents.d.ts +21 -12
  71. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/listevents.js +6 -3
  73. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  74. package/dist/commonjs/models/operations/listpartners.d.ts +1 -0
  75. package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/listpartners.js +1 -0
  77. package/dist/commonjs/models/operations/listpartners.js.map +1 -1
  78. package/dist/commonjs/models/operations/listpayouts.d.ts +7 -0
  79. package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/listpayouts.js +3 -0
  81. package/dist/commonjs/models/operations/listpayouts.js.map +1 -1
  82. package/dist/commonjs/models/operations/tracklead.js +1 -1
  83. package/dist/commonjs/models/operations/tracklead.js.map +1 -1
  84. package/dist/commonjs/models/operations/updatelink.d.ts +7 -5
  85. package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/updatelink.js +1 -1
  87. package/dist/commonjs/models/operations/updatelink.js.map +1 -1
  88. package/dist/commonjs/models/operations/upsertlink.d.ts +7 -5
  89. package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/upsertlink.js +1 -1
  91. package/dist/commonjs/models/operations/upsertlink.js.map +1 -1
  92. package/dist/esm/funcs/payoutsList.js +1 -0
  93. package/dist/esm/funcs/payoutsList.js.map +1 -1
  94. package/dist/esm/hooks/types.d.ts +1 -0
  95. package/dist/esm/hooks/types.d.ts.map +1 -1
  96. package/dist/esm/lib/config.d.ts +3 -3
  97. package/dist/esm/lib/config.js +3 -3
  98. package/dist/esm/lib/encodings.js +1 -1
  99. package/dist/esm/lib/encodings.js.map +1 -1
  100. package/dist/esm/lib/matchers.js +1 -1
  101. package/dist/esm/lib/matchers.js.map +1 -1
  102. package/dist/esm/lib/primitives.d.ts +1 -0
  103. package/dist/esm/lib/primitives.d.ts.map +1 -1
  104. package/dist/esm/lib/primitives.js +17 -0
  105. package/dist/esm/lib/primitives.js.map +1 -1
  106. package/dist/esm/lib/retries.js +7 -0
  107. package/dist/esm/lib/retries.js.map +1 -1
  108. package/dist/esm/lib/sdks.d.ts.map +1 -1
  109. package/dist/esm/lib/sdks.js +50 -16
  110. package/dist/esm/lib/sdks.js.map +1 -1
  111. package/dist/esm/models/components/folderschema.d.ts +3 -3
  112. package/dist/esm/models/components/folderschema.js +2 -2
  113. package/dist/esm/models/components/folderschema.js.map +1 -1
  114. package/dist/esm/models/components/leadcreatedevent.d.ts +9 -5
  115. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  116. package/dist/esm/models/components/leadcreatedevent.js +4 -2
  117. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  118. package/dist/esm/models/components/linkclickedevent.d.ts +9 -5
  119. package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
  120. package/dist/esm/models/components/linkclickedevent.js +4 -2
  121. package/dist/esm/models/components/linkclickedevent.js.map +1 -1
  122. package/dist/esm/models/components/linkschema.d.ts +6 -4
  123. package/dist/esm/models/components/linkschema.d.ts.map +1 -1
  124. package/dist/esm/models/components/linkschema.js +1 -1
  125. package/dist/esm/models/components/linkschema.js.map +1 -1
  126. package/dist/esm/models/components/linkwebhookevent.d.ts +7 -5
  127. package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -1
  128. package/dist/esm/models/components/linkwebhookevent.js +2 -2
  129. package/dist/esm/models/components/linkwebhookevent.js.map +1 -1
  130. package/dist/esm/models/components/partnerenrolledevent.d.ts +1 -0
  131. package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
  132. package/dist/esm/models/components/partnerenrolledevent.js +1 -0
  133. package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
  134. package/dist/esm/models/components/salecreatedevent.d.ts +9 -5
  135. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  136. package/dist/esm/models/components/salecreatedevent.js +4 -2
  137. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  138. package/dist/esm/models/operations/bulkcreatelinks.d.ts +7 -5
  139. package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
  140. package/dist/esm/models/operations/bulkcreatelinks.js +1 -1
  141. package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
  142. package/dist/esm/models/operations/bulkupdatelinks.d.ts +7 -5
  143. package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
  144. package/dist/esm/models/operations/bulkupdatelinks.js +1 -1
  145. package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
  146. package/dist/esm/models/operations/checkdomainstatus.d.ts +26 -4
  147. package/dist/esm/models/operations/checkdomainstatus.d.ts.map +1 -1
  148. package/dist/esm/models/operations/checkdomainstatus.js +11 -1
  149. package/dist/esm/models/operations/checkdomainstatus.js.map +1 -1
  150. package/dist/esm/models/operations/createfolder.d.ts +3 -3
  151. package/dist/esm/models/operations/createfolder.js +2 -2
  152. package/dist/esm/models/operations/createfolder.js.map +1 -1
  153. package/dist/esm/models/operations/createlink.d.ts +7 -5
  154. package/dist/esm/models/operations/createlink.d.ts.map +1 -1
  155. package/dist/esm/models/operations/createlink.js +1 -1
  156. package/dist/esm/models/operations/createlink.js.map +1 -1
  157. package/dist/esm/models/operations/createpartner.d.ts +1 -0
  158. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  159. package/dist/esm/models/operations/createpartner.js +1 -0
  160. package/dist/esm/models/operations/createpartner.js.map +1 -1
  161. package/dist/esm/models/operations/listevents.d.ts +21 -12
  162. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  163. package/dist/esm/models/operations/listevents.js +6 -3
  164. package/dist/esm/models/operations/listevents.js.map +1 -1
  165. package/dist/esm/models/operations/listpartners.d.ts +1 -0
  166. package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
  167. package/dist/esm/models/operations/listpartners.js +1 -0
  168. package/dist/esm/models/operations/listpartners.js.map +1 -1
  169. package/dist/esm/models/operations/listpayouts.d.ts +7 -0
  170. package/dist/esm/models/operations/listpayouts.d.ts.map +1 -1
  171. package/dist/esm/models/operations/listpayouts.js +3 -0
  172. package/dist/esm/models/operations/listpayouts.js.map +1 -1
  173. package/dist/esm/models/operations/tracklead.js +1 -1
  174. package/dist/esm/models/operations/tracklead.js.map +1 -1
  175. package/dist/esm/models/operations/updatelink.d.ts +7 -5
  176. package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
  177. package/dist/esm/models/operations/updatelink.js +1 -1
  178. package/dist/esm/models/operations/updatelink.js.map +1 -1
  179. package/dist/esm/models/operations/upsertlink.d.ts +7 -5
  180. package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
  181. package/dist/esm/models/operations/upsertlink.js +1 -1
  182. package/dist/esm/models/operations/upsertlink.js.map +1 -1
  183. package/jsr.json +1 -1
  184. package/package.json +1 -1
  185. package/src/funcs/payoutsList.ts +1 -0
  186. package/src/hooks/types.ts +1 -0
  187. package/src/lib/config.ts +3 -3
  188. package/src/lib/encodings.ts +1 -1
  189. package/src/lib/matchers.ts +1 -1
  190. package/src/lib/primitives.ts +16 -0
  191. package/src/lib/retries.ts +8 -0
  192. package/src/lib/sdks.ts +54 -17
  193. package/src/models/components/folderschema.ts +4 -4
  194. package/src/models/components/leadcreatedevent.ts +13 -7
  195. package/src/models/components/linkclickedevent.ts +13 -7
  196. package/src/models/components/linkschema.ts +7 -5
  197. package/src/models/components/linkwebhookevent.ts +9 -7
  198. package/src/models/components/partnerenrolledevent.ts +1 -0
  199. package/src/models/components/salecreatedevent.ts +13 -7
  200. package/src/models/operations/bulkcreatelinks.ts +8 -6
  201. package/src/models/operations/bulkupdatelinks.ts +8 -6
  202. package/src/models/operations/checkdomainstatus.ts +43 -5
  203. package/src/models/operations/createfolder.ts +4 -4
  204. package/src/models/operations/createlink.ts +8 -6
  205. package/src/models/operations/createpartner.ts +1 -0
  206. package/src/models/operations/listevents.ts +27 -15
  207. package/src/models/operations/listpartners.ts +1 -0
  208. package/src/models/operations/listpayouts.ts +8 -0
  209. package/src/models/operations/tracklead.ts +1 -1
  210. package/src/models/operations/updatelink.ts +8 -6
  211. package/src/models/operations/upsertlink.ts +8 -6
  212. package/dist/commonjs/lib/dlv.d.ts +0 -14
  213. package/dist/commonjs/lib/dlv.d.ts.map +0 -1
  214. package/dist/commonjs/lib/dlv.js +0 -49
  215. package/dist/commonjs/lib/dlv.js.map +0 -1
  216. package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
  217. package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
  218. package/dist/commonjs/lib/is-plain-object.js +0 -41
  219. package/dist/commonjs/lib/is-plain-object.js.map +0 -1
  220. package/dist/esm/lib/dlv.d.ts +0 -14
  221. package/dist/esm/lib/dlv.d.ts.map +0 -1
  222. package/dist/esm/lib/dlv.js +0 -46
  223. package/dist/esm/lib/dlv.js.map +0 -1
  224. package/dist/esm/lib/is-plain-object.d.ts +0 -2
  225. package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
  226. package/dist/esm/lib/is-plain-object.js +0 -38
  227. package/dist/esm/lib/is-plain-object.js.map +0 -1
  228. package/src/lib/dlv.ts +0 -53
  229. 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 of the folder within the workspace.
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 of the folder within the workspace.
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 of the folder within the workspace.
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).default(null),
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