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
@@ -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 = {
@@ -483,6 +485,7 @@ export type ListEventsResponseBodyClick = {
483
485
  device: string;
484
486
  browser: string;
485
487
  os: string;
488
+ ua?: string | null | undefined;
486
489
  trigger?: string | null | undefined;
487
490
  referer: string;
488
491
  refererUrl: string;
@@ -660,6 +663,7 @@ export type ResponseBodyClick = {
660
663
  device: string;
661
664
  browser: string;
662
665
  os: string;
666
+ ua?: string | null | undefined;
663
667
  trigger?: string | null | undefined;
664
668
  referer: string;
665
669
  refererUrl: string;
@@ -751,10 +755,6 @@ export type ResponseBodyLink = {
751
755
  * The unique ID of the folder assigned to the short link.
752
756
  */
753
757
  folderId: string | null;
754
- /**
755
- * The IDs of the webhooks that the short link is associated with.
756
- */
757
- webhookIds: Array<string>;
758
758
  /**
759
759
  * The comments for the short link.
760
760
  */
@@ -833,6 +833,12 @@ export type ResponseBodyLink = {
833
833
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
834
834
  */
835
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>;
836
842
  };
837
843
 
838
844
  export type ListEventsResponseBodyCustomer = {
@@ -986,6 +992,7 @@ export type ListEventsResponseBodyEventsClick = {
986
992
  device: string;
987
993
  browser: string;
988
994
  os: string;
995
+ ua?: string | null | undefined;
989
996
  trigger?: string | null | undefined;
990
997
  referer: string;
991
998
  refererUrl: string;
@@ -1077,10 +1084,6 @@ export type ListEventsResponseBodyEventsLink = {
1077
1084
  * The unique ID of the folder assigned to the short link.
1078
1085
  */
1079
1086
  folderId: string | null;
1080
- /**
1081
- * The IDs of the webhooks that the short link is associated with.
1082
- */
1083
- webhookIds: Array<string>;
1084
1087
  /**
1085
1088
  * The comments for the short link.
1086
1089
  */
@@ -1159,6 +1162,12 @@ export type ListEventsResponseBodyEventsLink = {
1159
1162
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1160
1163
  */
1161
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>;
1162
1171
  };
1163
1172
 
1164
1173
  export type ClickEvent = {
@@ -1478,7 +1487,6 @@ export const ListEventsResponseBodyLink$inboundSchema: z.ZodType<
1478
1487
  publicStats: z.boolean(),
1479
1488
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1480
1489
  folderId: z.nullable(z.string()),
1481
- webhookIds: z.array(z.string()),
1482
1490
  comments: z.nullable(z.string()),
1483
1491
  shortLink: z.string(),
1484
1492
  qrCode: z.string(),
@@ -1506,6 +1514,7 @@ export const ListEventsResponseBodyLink$inboundSchema: z.ZodType<
1506
1514
  updatedAt: z.string(),
1507
1515
  tagId: z.nullable(z.string()),
1508
1516
  projectId: z.string(),
1517
+ webhookIds: z.array(z.string()),
1509
1518
  }).transform((v) => {
1510
1519
  return remap$(v, {
1511
1520
  "utm_source": "utmSource",
@@ -1542,6 +1551,7 @@ export const ListEventsResponseBodyClick$inboundSchema: z.ZodType<
1542
1551
  device: z.string(),
1543
1552
  browser: z.string(),
1544
1553
  os: z.string(),
1554
+ ua: z.nullable(z.string()).optional(),
1545
1555
  trigger: z.nullable(z.string()).optional(),
1546
1556
  referer: z.string(),
1547
1557
  refererUrl: z.string(),
@@ -1655,6 +1665,7 @@ export const ResponseBodyClick$inboundSchema: z.ZodType<
1655
1665
  device: z.string(),
1656
1666
  browser: z.string(),
1657
1667
  os: z.string(),
1668
+ ua: z.nullable(z.string()).optional(),
1658
1669
  trigger: z.nullable(z.string()).optional(),
1659
1670
  referer: z.string(),
1660
1671
  refererUrl: z.string(),
@@ -1726,7 +1737,6 @@ export const ResponseBodyLink$inboundSchema: z.ZodType<
1726
1737
  publicStats: z.boolean(),
1727
1738
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1728
1739
  folderId: z.nullable(z.string()),
1729
- webhookIds: z.array(z.string()),
1730
1740
  comments: z.nullable(z.string()),
1731
1741
  shortLink: z.string(),
1732
1742
  qrCode: z.string(),
@@ -1752,6 +1762,7 @@ export const ResponseBodyLink$inboundSchema: z.ZodType<
1752
1762
  updatedAt: z.string(),
1753
1763
  tagId: z.nullable(z.string()),
1754
1764
  projectId: z.string(),
1765
+ webhookIds: z.array(z.string()),
1755
1766
  }).transform((v) => {
1756
1767
  return remap$(v, {
1757
1768
  "utm_source": "utmSource",
@@ -1862,6 +1873,7 @@ export const ListEventsResponseBodyEventsClick$inboundSchema: z.ZodType<
1862
1873
  device: z.string(),
1863
1874
  browser: z.string(),
1864
1875
  os: z.string(),
1876
+ ua: z.nullable(z.string()).optional(),
1865
1877
  trigger: z.nullable(z.string()).optional(),
1866
1878
  referer: z.string(),
1867
1879
  refererUrl: z.string(),
@@ -1932,7 +1944,6 @@ export const ListEventsResponseBodyEventsLink$inboundSchema: z.ZodType<
1932
1944
  publicStats: z.boolean(),
1933
1945
  tags: z.nullable(z.array(components.LinkTagSchemaOutput$inboundSchema)),
1934
1946
  folderId: z.nullable(z.string()),
1935
- webhookIds: z.array(z.string()),
1936
1947
  comments: z.nullable(z.string()),
1937
1948
  shortLink: z.string(),
1938
1949
  qrCode: z.string(),
@@ -1958,6 +1969,7 @@ export const ListEventsResponseBodyEventsLink$inboundSchema: z.ZodType<
1958
1969
  updatedAt: z.string(),
1959
1970
  tagId: z.nullable(z.string()),
1960
1971
  projectId: z.string(),
1972
+ webhookIds: z.array(z.string()),
1961
1973
  }).transform((v) => {
1962
1974
  return remap$(v, {
1963
1975
  "utm_source": "utmSource",
@@ -132,6 +132,7 @@ export const DefaultPayoutMethod = {
132
132
  Connect: "connect",
133
133
  Stablecoin: "stablecoin",
134
134
  Paypal: "paypal",
135
+ Tremendous: "tremendous",
135
136
  } as const;
136
137
  /**
137
138
  * 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
@@ -73,6 +73,10 @@ export type ListPayoutsRequest = {
73
73
  * Filter the list of payouts by invoice ID (the unique ID of the invoice you receive for each batch payout you process on Dub). Pending payouts will not have an invoice ID.
74
74
  */
75
75
  invoiceId?: string | undefined;
76
+ /**
77
+ * Filter the list of payouts by the associated partner group. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `group_abc`, `group_abc,group_xyz`, `-group_abc`.
78
+ */
79
+ groupId?: string | undefined;
76
80
  /**
77
81
  * The field to sort the list of payouts by.
78
82
  */
@@ -112,6 +116,7 @@ export const Method = {
112
116
  Connect: "connect",
113
117
  Stablecoin: "stablecoin",
114
118
  Paypal: "paypal",
119
+ Tremendous: "tremendous",
115
120
  } as const;
116
121
  export type Method = ClosedEnum<typeof Method>;
117
122
 
@@ -122,6 +127,7 @@ export const ListPayoutsDefaultPayoutMethod = {
122
127
  Connect: "connect",
123
128
  Stablecoin: "stablecoin",
124
129
  Paypal: "paypal",
130
+ Tremendous: "tremendous",
125
131
  } as const;
126
132
  /**
127
133
  * 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
@@ -218,6 +224,7 @@ export type ListPayoutsRequest$Outbound = {
218
224
  partnerId?: string | undefined;
219
225
  tenantId?: string | undefined;
220
226
  invoiceId?: string | undefined;
227
+ groupId?: string | undefined;
221
228
  sortBy: string;
222
229
  sortOrder: string;
223
230
  page?: number | undefined;
@@ -234,6 +241,7 @@ export const ListPayoutsRequest$outboundSchema: z.ZodType<
234
241
  partnerId: z.string().optional(),
235
242
  tenantId: z.string().optional(),
236
243
  invoiceId: z.string().optional(),
244
+ groupId: z.string().optional(),
237
245
  sortBy: ListPayoutsQueryParamSortBy$outboundSchema.default("amount"),
238
246
  sortOrder: ListPayoutsQueryParamSortOrder$outboundSchema.default("desc"),
239
247
  page: z.number().optional(),
@@ -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",
@@ -1,14 +0,0 @@
1
- /**
2
- * @param obj The object to walk
3
- * @param key The key path to walk the object with
4
- * @param def A default value to return if the result is undefined
5
- *
6
- * @example
7
- * dlv(obj, "a.b.c.d")
8
- * @example
9
- * dlv(object, ["a", "b", "c", "d"])
10
- * @example
11
- * dlv(object, "foo.bar.baz", "Hello, default value!")
12
- */
13
- export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
14
- //# sourceMappingURL=dlv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.dlv = dlv;
7
- /*
8
- MIT License
9
-
10
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy of
13
- this software and associated documentation files (the "Software"), to deal in
14
- the Software without restriction, including without limitation the rights to
15
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16
- the Software, and to permit persons to whom the Software is furnished to do so,
17
- subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- /**
30
- * @param obj The object to walk
31
- * @param key The key path to walk the object with
32
- * @param def A default value to return if the result is undefined
33
- *
34
- * @example
35
- * dlv(obj, "a.b.c.d")
36
- * @example
37
- * dlv(object, ["a", "b", "c", "d"])
38
- * @example
39
- * dlv(object, "foo.bar.baz", "Hello, default value!")
40
- */
41
- function dlv(obj, key, def, p, undef) {
42
- key = Array.isArray(key) ? key : key.split(".");
43
- for (p = 0; p < key.length; p++) {
44
- const k = key[p];
45
- obj = k != null && obj ? obj[k] : undef;
46
- }
47
- return obj === undef ? def : obj;
48
- }
49
- //# sourceMappingURL=dlv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.js","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAqCH,kBAaC;AAhDD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function isPlainObject(value: unknown): value is object;
2
- //# sourceMappingURL=is-plain-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isPlainObject = isPlainObject;
7
- /*
8
- MIT License
9
-
10
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy of
13
- this software and associated documentation files (the "Software"), to deal in
14
- the Software without restriction, including without limitation the rights to
15
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16
- the Software, and to permit persons to whom the Software is furnished to do so,
17
- subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
30
- function isPlainObject(value) {
31
- if (typeof value !== "object" || value === null) {
32
- return false;
33
- }
34
- const prototype = Object.getPrototypeOf(value);
35
- return ((prototype === null ||
36
- prototype === Object.prototype ||
37
- Object.getPrototypeOf(prototype) === null) &&
38
- !(Symbol.toStringTag in value) &&
39
- !(Symbol.iterator in value));
40
- }
41
- //# sourceMappingURL=is-plain-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA2BH,sCAaC;AAtCD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,SAAgB,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * @param obj The object to walk
3
- * @param key The key path to walk the object with
4
- * @param def A default value to return if the result is undefined
5
- *
6
- * @example
7
- * dlv(obj, "a.b.c.d")
8
- * @example
9
- * dlv(object, ["a", "b", "c", "d"])
10
- * @example
11
- * dlv(object, "foo.bar.baz", "Hello, default value!")
12
- */
13
- export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
14
- //# sourceMappingURL=dlv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
@@ -1,46 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- /**
27
- * @param obj The object to walk
28
- * @param key The key path to walk the object with
29
- * @param def A default value to return if the result is undefined
30
- *
31
- * @example
32
- * dlv(obj, "a.b.c.d")
33
- * @example
34
- * dlv(object, ["a", "b", "c", "d"])
35
- * @example
36
- * dlv(object, "foo.bar.baz", "Hello, default value!")
37
- */
38
- export function dlv(obj, key, def, p, undef) {
39
- key = Array.isArray(key) ? key : key.split(".");
40
- for (p = 0; p < key.length; p++) {
41
- const k = key[p];
42
- obj = k != null && obj ? obj[k] : undef;
43
- }
44
- return obj === undef ? def : obj;
45
- }
46
- //# sourceMappingURL=dlv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.js","sourceRoot":"","sources":["../../../src/lib/dlv.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function isPlainObject(value: unknown): value is object;
2
- //# sourceMappingURL=is-plain-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
27
- export function isPlainObject(value) {
28
- if (typeof value !== "object" || value === null) {
29
- return false;
30
- }
31
- const prototype = Object.getPrototypeOf(value);
32
- return ((prototype === null ||
33
- prototype === Object.prototype ||
34
- Object.getPrototypeOf(prototype) === null) &&
35
- !(Symbol.toStringTag in value) &&
36
- !(Symbol.iterator in value));
37
- }
38
- //# sourceMappingURL=is-plain-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
package/src/lib/dlv.ts DELETED
@@ -1,53 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- /*
6
- MIT License
7
-
8
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy of
11
- this software and associated documentation files (the "Software"), to deal in
12
- the Software without restriction, including without limitation the rights to
13
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
- the Software, and to permit persons to whom the Software is furnished to do so,
15
- subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
- */
27
-
28
- /**
29
- * @param obj The object to walk
30
- * @param key The key path to walk the object with
31
- * @param def A default value to return if the result is undefined
32
- *
33
- * @example
34
- * dlv(obj, "a.b.c.d")
35
- * @example
36
- * dlv(object, ["a", "b", "c", "d"])
37
- * @example
38
- * dlv(object, "foo.bar.baz", "Hello, default value!")
39
- */
40
- export function dlv<T = any>(
41
- obj: any,
42
- key: string | string[],
43
- def?: T,
44
- p?: number,
45
- undef?: never,
46
- ): T | undefined {
47
- key = Array.isArray(key) ? key : key.split(".");
48
- for (p = 0; p < key.length; p++) {
49
- const k = key[p];
50
- obj = k != null && obj ? obj[k] : undef;
51
- }
52
- return obj === undef ? def : obj;
53
- }