dub 0.63.6 → 0.64.0

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 (261) hide show
  1. package/README.md +9 -9
  2. package/bin/mcp-server.js +349 -1196
  3. package/bin/mcp-server.js.map +37 -38
  4. package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts +1 -1
  5. package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/partnersRetrieveLinks.js +3 -4
  7. package/dist/commonjs/funcs/partnersRetrieveLinks.js.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  11. package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
  12. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  13. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
  14. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  15. package/dist/commonjs/mcp-server/cli/start/impl.js +0 -2
  16. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  17. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  18. package/dist/commonjs/mcp-server/server.js +1 -1
  19. package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.d.ts +1 -1
  20. package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.js +1 -1
  21. package/dist/commonjs/mcp-server/tools/partnersRetrieveLinks.js.map +1 -1
  22. package/dist/commonjs/models/components/analyticscities.d.ts +2 -778
  23. package/dist/commonjs/models/components/analyticscities.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/analyticscities.js +3 -273
  25. package/dist/commonjs/models/components/analyticscities.js.map +1 -1
  26. package/dist/commonjs/models/components/analyticscountries.d.ts +2 -777
  27. package/dist/commonjs/models/components/analyticscountries.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/analyticscountries.js +3 -274
  29. package/dist/commonjs/models/components/analyticscountries.js.map +1 -1
  30. package/dist/commonjs/models/components/analyticsregions.d.ts +3 -778
  31. package/dist/commonjs/models/components/analyticsregions.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/analyticsregions.js +3 -273
  33. package/dist/commonjs/models/components/analyticsregions.js.map +1 -1
  34. package/dist/commonjs/models/components/countrycode.d.ts +2 -2
  35. package/dist/commonjs/models/components/countrycode.js +1 -1
  36. package/dist/commonjs/models/components/saleevent.d.ts +1 -1
  37. package/dist/commonjs/models/components/workspaceschema.d.ts +5 -0
  38. package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/workspaceschema.js +2 -0
  40. package/dist/commonjs/models/components/workspaceschema.js.map +1 -1
  41. package/dist/commonjs/models/errors/badrequest.d.ts.map +1 -1
  42. package/dist/commonjs/models/errors/badrequest.js +2 -1
  43. package/dist/commonjs/models/errors/badrequest.js.map +1 -1
  44. package/dist/commonjs/models/errors/conflict.d.ts.map +1 -1
  45. package/dist/commonjs/models/errors/conflict.js +2 -1
  46. package/dist/commonjs/models/errors/conflict.js.map +1 -1
  47. package/dist/commonjs/models/errors/forbidden.d.ts.map +1 -1
  48. package/dist/commonjs/models/errors/forbidden.js +2 -1
  49. package/dist/commonjs/models/errors/forbidden.js.map +1 -1
  50. package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
  51. package/dist/commonjs/models/errors/internalservererror.js +2 -1
  52. package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
  53. package/dist/commonjs/models/errors/inviteexpired.d.ts.map +1 -1
  54. package/dist/commonjs/models/errors/inviteexpired.js +2 -1
  55. package/dist/commonjs/models/errors/inviteexpired.js.map +1 -1
  56. package/dist/commonjs/models/errors/notfound.d.ts.map +1 -1
  57. package/dist/commonjs/models/errors/notfound.js +2 -1
  58. package/dist/commonjs/models/errors/notfound.js.map +1 -1
  59. package/dist/commonjs/models/errors/ratelimitexceeded.d.ts.map +1 -1
  60. package/dist/commonjs/models/errors/ratelimitexceeded.js +2 -1
  61. package/dist/commonjs/models/errors/ratelimitexceeded.js.map +1 -1
  62. package/dist/commonjs/models/errors/sdkerror.d.ts.map +1 -1
  63. package/dist/commonjs/models/errors/sdkerror.js +8 -2
  64. package/dist/commonjs/models/errors/sdkerror.js.map +1 -1
  65. package/dist/commonjs/models/errors/unauthorized.d.ts.map +1 -1
  66. package/dist/commonjs/models/errors/unauthorized.js +2 -1
  67. package/dist/commonjs/models/errors/unauthorized.js.map +1 -1
  68. package/dist/commonjs/models/errors/unprocessableentity.d.ts.map +1 -1
  69. package/dist/commonjs/models/errors/unprocessableentity.js +2 -1
  70. package/dist/commonjs/models/errors/unprocessableentity.js.map +1 -1
  71. package/dist/commonjs/models/operations/createcustomer.d.ts +2 -0
  72. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  73. package/dist/commonjs/models/operations/createcustomer.js +2 -0
  74. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  75. package/dist/commonjs/models/operations/createpartner.d.ts +15 -15
  76. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  77. package/dist/commonjs/models/operations/createpartner.js +5 -5
  78. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  79. package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts +15 -15
  80. package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts.map +1 -1
  81. package/dist/commonjs/models/operations/createreferralsembedtoken.js +5 -5
  82. package/dist/commonjs/models/operations/createreferralsembedtoken.js.map +1 -1
  83. package/dist/commonjs/models/operations/getcustomer.d.ts +2 -0
  84. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  85. package/dist/commonjs/models/operations/getcustomer.js +2 -0
  86. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  87. package/dist/commonjs/models/operations/getcustomers.d.ts +2 -0
  88. package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
  89. package/dist/commonjs/models/operations/getcustomers.js +2 -0
  90. package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
  91. package/dist/commonjs/models/operations/listevents.d.ts +1 -1
  92. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +1 -1
  93. package/dist/commonjs/models/operations/retrievelinks.d.ts +0 -2
  94. package/dist/commonjs/models/operations/retrievelinks.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/retrievelinks.js +0 -2
  96. package/dist/commonjs/models/operations/retrievelinks.js.map +1 -1
  97. package/dist/commonjs/models/operations/tracklead.d.ts +5 -5
  98. package/dist/commonjs/models/operations/tracklead.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/tracklead.js +2 -2
  100. package/dist/commonjs/models/operations/tracklead.js.map +1 -1
  101. package/dist/commonjs/models/operations/tracksale.d.ts +12 -12
  102. package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/tracksale.js +4 -4
  104. package/dist/commonjs/models/operations/tracksale.js.map +1 -1
  105. package/dist/commonjs/models/operations/updatecustomer.d.ts +2 -0
  106. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/updatecustomer.js +2 -0
  108. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  109. package/dist/commonjs/sdk/partners.d.ts +1 -1
  110. package/dist/commonjs/sdk/partners.d.ts.map +1 -1
  111. package/dist/commonjs/sdk/partners.js.map +1 -1
  112. package/dist/esm/funcs/partnersRetrieveLinks.d.ts +1 -1
  113. package/dist/esm/funcs/partnersRetrieveLinks.d.ts.map +1 -1
  114. package/dist/esm/funcs/partnersRetrieveLinks.js +3 -4
  115. package/dist/esm/funcs/partnersRetrieveLinks.js.map +1 -1
  116. package/dist/esm/lib/config.d.ts +3 -3
  117. package/dist/esm/lib/config.js +3 -3
  118. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  119. package/dist/esm/mcp-server/cli/start/command.js +0 -12
  120. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  121. package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
  122. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  123. package/dist/esm/mcp-server/cli/start/impl.js +0 -2
  124. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  125. package/dist/esm/mcp-server/mcp-server.js +1 -1
  126. package/dist/esm/mcp-server/server.js +1 -1
  127. package/dist/esm/mcp-server/tools/partnersRetrieveLinks.d.ts +1 -1
  128. package/dist/esm/mcp-server/tools/partnersRetrieveLinks.js +1 -1
  129. package/dist/esm/mcp-server/tools/partnersRetrieveLinks.js.map +1 -1
  130. package/dist/esm/models/components/analyticscities.d.ts +2 -778
  131. package/dist/esm/models/components/analyticscities.d.ts.map +1 -1
  132. package/dist/esm/models/components/analyticscities.js +2 -272
  133. package/dist/esm/models/components/analyticscities.js.map +1 -1
  134. package/dist/esm/models/components/analyticscountries.d.ts +2 -777
  135. package/dist/esm/models/components/analyticscountries.d.ts.map +1 -1
  136. package/dist/esm/models/components/analyticscountries.js +2 -273
  137. package/dist/esm/models/components/analyticscountries.js.map +1 -1
  138. package/dist/esm/models/components/analyticsregions.d.ts +3 -778
  139. package/dist/esm/models/components/analyticsregions.d.ts.map +1 -1
  140. package/dist/esm/models/components/analyticsregions.js +2 -272
  141. package/dist/esm/models/components/analyticsregions.js.map +1 -1
  142. package/dist/esm/models/components/countrycode.d.ts +2 -2
  143. package/dist/esm/models/components/countrycode.js +1 -1
  144. package/dist/esm/models/components/saleevent.d.ts +1 -1
  145. package/dist/esm/models/components/workspaceschema.d.ts +5 -0
  146. package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
  147. package/dist/esm/models/components/workspaceschema.js +2 -0
  148. package/dist/esm/models/components/workspaceschema.js.map +1 -1
  149. package/dist/esm/models/errors/badrequest.d.ts.map +1 -1
  150. package/dist/esm/models/errors/badrequest.js +2 -1
  151. package/dist/esm/models/errors/badrequest.js.map +1 -1
  152. package/dist/esm/models/errors/conflict.d.ts.map +1 -1
  153. package/dist/esm/models/errors/conflict.js +2 -1
  154. package/dist/esm/models/errors/conflict.js.map +1 -1
  155. package/dist/esm/models/errors/forbidden.d.ts.map +1 -1
  156. package/dist/esm/models/errors/forbidden.js +2 -1
  157. package/dist/esm/models/errors/forbidden.js.map +1 -1
  158. package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
  159. package/dist/esm/models/errors/internalservererror.js +2 -1
  160. package/dist/esm/models/errors/internalservererror.js.map +1 -1
  161. package/dist/esm/models/errors/inviteexpired.d.ts.map +1 -1
  162. package/dist/esm/models/errors/inviteexpired.js +2 -1
  163. package/dist/esm/models/errors/inviteexpired.js.map +1 -1
  164. package/dist/esm/models/errors/notfound.d.ts.map +1 -1
  165. package/dist/esm/models/errors/notfound.js +2 -1
  166. package/dist/esm/models/errors/notfound.js.map +1 -1
  167. package/dist/esm/models/errors/ratelimitexceeded.d.ts.map +1 -1
  168. package/dist/esm/models/errors/ratelimitexceeded.js +2 -1
  169. package/dist/esm/models/errors/ratelimitexceeded.js.map +1 -1
  170. package/dist/esm/models/errors/sdkerror.d.ts.map +1 -1
  171. package/dist/esm/models/errors/sdkerror.js +8 -2
  172. package/dist/esm/models/errors/sdkerror.js.map +1 -1
  173. package/dist/esm/models/errors/unauthorized.d.ts.map +1 -1
  174. package/dist/esm/models/errors/unauthorized.js +2 -1
  175. package/dist/esm/models/errors/unauthorized.js.map +1 -1
  176. package/dist/esm/models/errors/unprocessableentity.d.ts.map +1 -1
  177. package/dist/esm/models/errors/unprocessableentity.js +2 -1
  178. package/dist/esm/models/errors/unprocessableentity.js.map +1 -1
  179. package/dist/esm/models/operations/createcustomer.d.ts +2 -0
  180. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  181. package/dist/esm/models/operations/createcustomer.js +2 -0
  182. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  183. package/dist/esm/models/operations/createpartner.d.ts +15 -15
  184. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  185. package/dist/esm/models/operations/createpartner.js +5 -5
  186. package/dist/esm/models/operations/createpartner.js.map +1 -1
  187. package/dist/esm/models/operations/createreferralsembedtoken.d.ts +15 -15
  188. package/dist/esm/models/operations/createreferralsembedtoken.d.ts.map +1 -1
  189. package/dist/esm/models/operations/createreferralsembedtoken.js +5 -5
  190. package/dist/esm/models/operations/createreferralsembedtoken.js.map +1 -1
  191. package/dist/esm/models/operations/getcustomer.d.ts +2 -0
  192. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  193. package/dist/esm/models/operations/getcustomer.js +2 -0
  194. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  195. package/dist/esm/models/operations/getcustomers.d.ts +2 -0
  196. package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
  197. package/dist/esm/models/operations/getcustomers.js +2 -0
  198. package/dist/esm/models/operations/getcustomers.js.map +1 -1
  199. package/dist/esm/models/operations/listevents.d.ts +1 -1
  200. package/dist/esm/models/operations/retrieveanalytics.d.ts +1 -1
  201. package/dist/esm/models/operations/retrievelinks.d.ts +0 -2
  202. package/dist/esm/models/operations/retrievelinks.d.ts.map +1 -1
  203. package/dist/esm/models/operations/retrievelinks.js +0 -2
  204. package/dist/esm/models/operations/retrievelinks.js.map +1 -1
  205. package/dist/esm/models/operations/tracklead.d.ts +5 -5
  206. package/dist/esm/models/operations/tracklead.d.ts.map +1 -1
  207. package/dist/esm/models/operations/tracklead.js +2 -2
  208. package/dist/esm/models/operations/tracklead.js.map +1 -1
  209. package/dist/esm/models/operations/tracksale.d.ts +12 -12
  210. package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
  211. package/dist/esm/models/operations/tracksale.js +4 -4
  212. package/dist/esm/models/operations/tracksale.js.map +1 -1
  213. package/dist/esm/models/operations/updatecustomer.d.ts +2 -0
  214. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  215. package/dist/esm/models/operations/updatecustomer.js +2 -0
  216. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  217. package/dist/esm/sdk/partners.d.ts +1 -1
  218. package/dist/esm/sdk/partners.d.ts.map +1 -1
  219. package/dist/esm/sdk/partners.js.map +1 -1
  220. package/docs/sdks/partners/README.md +2 -6
  221. package/examples/README.md +26 -0
  222. package/examples/linksCreate.example.ts +24 -0
  223. package/examples/package-lock.json +629 -0
  224. package/examples/package.json +18 -0
  225. package/jsr.json +1 -1
  226. package/package.json +3 -3
  227. package/src/funcs/partnersRetrieveLinks.ts +6 -6
  228. package/src/lib/config.ts +3 -3
  229. package/src/mcp-server/cli/start/command.ts +0 -13
  230. package/src/mcp-server/cli/start/impl.ts +0 -4
  231. package/src/mcp-server/mcp-server.ts +1 -1
  232. package/src/mcp-server/server.ts +1 -1
  233. package/src/mcp-server/tools/partnersRetrieveLinks.ts +1 -1
  234. package/src/models/components/analyticscities.ts +4 -286
  235. package/src/models/components/analyticscountries.ts +4 -283
  236. package/src/models/components/analyticsregions.ts +5 -288
  237. package/src/models/components/countrycode.ts +2 -2
  238. package/src/models/components/saleevent.ts +1 -1
  239. package/src/models/components/workspaceschema.ts +7 -0
  240. package/src/models/errors/badrequest.ts +2 -1
  241. package/src/models/errors/conflict.ts +2 -1
  242. package/src/models/errors/forbidden.ts +2 -1
  243. package/src/models/errors/internalservererror.ts +2 -1
  244. package/src/models/errors/inviteexpired.ts +2 -1
  245. package/src/models/errors/notfound.ts +2 -1
  246. package/src/models/errors/ratelimitexceeded.ts +2 -1
  247. package/src/models/errors/sdkerror.ts +8 -2
  248. package/src/models/errors/unauthorized.ts +2 -1
  249. package/src/models/errors/unprocessableentity.ts +2 -1
  250. package/src/models/operations/createcustomer.ts +4 -0
  251. package/src/models/operations/createpartner.ts +19 -19
  252. package/src/models/operations/createreferralsembedtoken.ts +19 -19
  253. package/src/models/operations/getcustomer.ts +4 -0
  254. package/src/models/operations/getcustomers.ts +4 -0
  255. package/src/models/operations/listevents.ts +1 -1
  256. package/src/models/operations/retrieveanalytics.ts +1 -1
  257. package/src/models/operations/retrievelinks.ts +0 -4
  258. package/src/models/operations/tracklead.ts +7 -7
  259. package/src/models/operations/tracksale.ts +16 -16
  260. package/src/models/operations/updatecustomer.ts +4 -0
  261. package/src/sdk/partners.ts +1 -1
@@ -56,7 +56,8 @@ export class Conflict extends DubError {
56
56
  err: ConflictData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -56,7 +56,8 @@ export class Forbidden extends DubError {
56
56
  err: ForbiddenData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -58,7 +58,8 @@ export class InternalServerError extends DubError {
58
58
  err: InternalServerErrorData,
59
59
  httpMeta: { response: Response; request: Request; body: string },
60
60
  ) {
61
- const message = err.error?.message || "API error occurred";
61
+ const message = err.error?.message
62
+ || `API error occurred: ${JSON.stringify(err)}`;
62
63
  super(message, httpMeta);
63
64
  this.data$ = err;
64
65
  this.error = err.error;
@@ -56,7 +56,8 @@ export class InviteExpired extends DubError {
56
56
  err: InviteExpiredData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -56,7 +56,8 @@ export class NotFound extends DubError {
56
56
  err: NotFoundData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -56,7 +56,8 @@ export class RateLimitExceeded extends DubError {
56
56
  err: RateLimitExceededData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -25,8 +25,14 @@ export class SDKError extends DubError {
25
25
  }`;
26
26
  }
27
27
  const body = httpMeta.body || `""`;
28
- message += body.length > 100 ? "\n" : " ";
29
- message += `Body ${body}`;
28
+ message += body.length > 100 ? "\n" : ". ";
29
+ let bodyDisplay = body;
30
+ if (body.length > 10000) {
31
+ const truncated = body.substring(0, 10000);
32
+ const remaining = body.length - 10000;
33
+ bodyDisplay = `${truncated}...and ${remaining} more chars`;
34
+ }
35
+ message += `Body: ${bodyDisplay}`;
30
36
  message = message.trim();
31
37
  super(message, httpMeta);
32
38
  this.name = "SDKError";
@@ -56,7 +56,8 @@ export class Unauthorized extends DubError {
56
56
  err: UnauthorizedData,
57
57
  httpMeta: { response: Response; request: Request; body: string },
58
58
  ) {
59
- const message = err.error?.message || "API error occurred";
59
+ const message = err.error?.message
60
+ || `API error occurred: ${JSON.stringify(err)}`;
60
61
  super(message, httpMeta);
61
62
  this.data$ = err;
62
63
  this.error = err.error;
@@ -58,7 +58,8 @@ export class UnprocessableEntity extends DubError {
58
58
  err: UnprocessableEntityData,
59
59
  httpMeta: { response: Response; request: Request; body: string },
60
60
  ) {
61
- const message = err.error?.message || "API error occurred";
61
+ const message = err.error?.message
62
+ || `API error occurred: ${JSON.stringify(err)}`;
62
63
  super(message, httpMeta);
63
64
  this.data$ = err;
64
65
  this.error = err.error;
@@ -88,6 +88,7 @@ export type CreateCustomerDiscount = {
88
88
  couponId: string | null;
89
89
  couponTestId: string | null;
90
90
  partnersCount?: number | null | undefined;
91
+ default: boolean;
91
92
  };
92
93
 
93
94
  /**
@@ -366,6 +367,7 @@ export const CreateCustomerDiscount$inboundSchema: z.ZodType<
366
367
  couponId: z.nullable(z.string()),
367
368
  couponTestId: z.nullable(z.string()),
368
369
  partnersCount: z.nullable(z.number()).optional(),
370
+ default: z.boolean(),
369
371
  });
370
372
 
371
373
  /** @internal */
@@ -378,6 +380,7 @@ export type CreateCustomerDiscount$Outbound = {
378
380
  couponId: string | null;
379
381
  couponTestId: string | null;
380
382
  partnersCount?: number | null | undefined;
383
+ default: boolean;
381
384
  };
382
385
 
383
386
  /** @internal */
@@ -394,6 +397,7 @@ export const CreateCustomerDiscount$outboundSchema: z.ZodType<
394
397
  couponId: z.nullable(z.string()),
395
398
  couponTestId: z.nullable(z.string()),
396
399
  partnersCount: z.nullable(z.number()).optional(),
400
+ default: z.boolean(),
397
401
  });
398
402
 
399
403
  /**
@@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * Country where the partner is based.
13
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
14
14
  */
15
15
  export const Country = {
16
16
  Af: "AF",
@@ -265,7 +265,7 @@ export const Country = {
265
265
  Xk: "XK",
266
266
  } as const;
267
267
  /**
268
- * Country where the partner is based.
268
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
269
269
  */
270
270
  export type Country = ClosedEnum<typeof Country>;
271
271
 
@@ -412,33 +412,33 @@ export type LinkProps = {
412
412
 
413
413
  export type CreatePartnerRequestBody = {
414
414
  /**
415
- * Full legal name of the partner.
415
+ * The partner's full name. If undefined, the partner's email will be used in lieu of their name (e.g. `john@acme.com`)
416
416
  */
417
- name: string;
417
+ name?: string | null | undefined;
418
418
  /**
419
- * Email for the partner in your system. Partners will be able to claim their profile by signing up to Dub Partners with this email.
419
+ * The partner's email address. Partners will be able to claim their profile by signing up at `partners.dub.co` with this email.
420
420
  */
421
421
  email: string;
422
422
  /**
423
- * A unique username for the partner in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
423
+ * The partner's unique username in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
424
424
  */
425
425
  username?: string | null | undefined;
426
426
  /**
427
- * Avatar image for the partner – if not provided, a default avatar will be used.
427
+ * The partner's avatar image. If not provided, a default avatar will be used.
428
428
  */
429
429
  image?: string | null | undefined;
430
430
  /**
431
- * Country where the partner is based.
431
+ * The partner's unique ID in your system. Useful for retrieving the partner's links and stats later on. If not provided, the partner will be created as a standalone partner.
432
432
  */
433
- country?: Country | null | undefined;
433
+ tenantId?: string | undefined;
434
434
  /**
435
- * A brief description of the partner and their background.
435
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
436
436
  */
437
- description?: string | null | undefined;
437
+ country?: Country | null | undefined;
438
438
  /**
439
- * The ID of the partner in your system.
439
+ * A brief description of the partner and their background. Max 5,000 characters.
440
440
  */
441
- tenantId?: string | undefined;
441
+ description?: string | null | undefined;
442
442
  /**
443
443
  * Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
444
444
  */
@@ -952,25 +952,25 @@ export const CreatePartnerRequestBody$inboundSchema: z.ZodType<
952
952
  z.ZodTypeDef,
953
953
  unknown
954
954
  > = z.object({
955
- name: z.string(),
955
+ name: z.nullable(z.string()).optional(),
956
956
  email: z.string(),
957
957
  username: z.nullable(z.string()).optional(),
958
958
  image: z.nullable(z.string()).optional(),
959
+ tenantId: z.string().optional(),
959
960
  country: z.nullable(Country$inboundSchema).optional(),
960
961
  description: z.nullable(z.string()).optional(),
961
- tenantId: z.string().optional(),
962
962
  linkProps: z.lazy(() => LinkProps$inboundSchema).optional(),
963
963
  });
964
964
 
965
965
  /** @internal */
966
966
  export type CreatePartnerRequestBody$Outbound = {
967
- name: string;
967
+ name?: string | null | undefined;
968
968
  email: string;
969
969
  username?: string | null | undefined;
970
970
  image?: string | null | undefined;
971
+ tenantId?: string | undefined;
971
972
  country?: string | null | undefined;
972
973
  description?: string | null | undefined;
973
- tenantId?: string | undefined;
974
974
  linkProps?: LinkProps$Outbound | undefined;
975
975
  };
976
976
 
@@ -980,13 +980,13 @@ export const CreatePartnerRequestBody$outboundSchema: z.ZodType<
980
980
  z.ZodTypeDef,
981
981
  CreatePartnerRequestBody
982
982
  > = z.object({
983
- name: z.string(),
983
+ name: z.nullable(z.string()).optional(),
984
984
  email: z.string(),
985
985
  username: z.nullable(z.string()).optional(),
986
986
  image: z.nullable(z.string()).optional(),
987
+ tenantId: z.string().optional(),
987
988
  country: z.nullable(Country$outboundSchema).optional(),
988
989
  description: z.nullable(z.string()).optional(),
989
- tenantId: z.string().optional(),
990
990
  linkProps: z.lazy(() => LinkProps$outboundSchema).optional(),
991
991
  });
992
992
 
@@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * Country where the partner is based.
13
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
14
14
  */
15
15
  export const CreateReferralsEmbedTokenCountry = {
16
16
  Af: "AF",
@@ -265,7 +265,7 @@ export const CreateReferralsEmbedTokenCountry = {
265
265
  Xk: "XK",
266
266
  } as const;
267
267
  /**
268
- * Country where the partner is based.
268
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
269
269
  */
270
270
  export type CreateReferralsEmbedTokenCountry = ClosedEnum<
271
271
  typeof CreateReferralsEmbedTokenCountry
@@ -417,33 +417,33 @@ export type CreateReferralsEmbedTokenLinkProps = {
417
417
 
418
418
  export type Partner = {
419
419
  /**
420
- * Full legal name of the partner.
420
+ * The partner's full name. If undefined, the partner's email will be used in lieu of their name (e.g. `john@acme.com`)
421
421
  */
422
- name: string;
422
+ name?: string | null | undefined;
423
423
  /**
424
- * Email for the partner in your system. Partners will be able to claim their profile by signing up to Dub Partners with this email.
424
+ * The partner's email address. Partners will be able to claim their profile by signing up at `partners.dub.co` with this email.
425
425
  */
426
426
  email: string;
427
427
  /**
428
- * A unique username for the partner in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
428
+ * The partner's unique username in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
429
429
  */
430
430
  username?: string | null | undefined;
431
431
  /**
432
- * Avatar image for the partner – if not provided, a default avatar will be used.
432
+ * The partner's avatar image. If not provided, a default avatar will be used.
433
433
  */
434
434
  image?: string | null | undefined;
435
435
  /**
436
- * Country where the partner is based.
436
+ * The partner's unique ID in your system. Useful for retrieving the partner's links and stats later on. If not provided, the partner will be created as a standalone partner.
437
437
  */
438
- country?: CreateReferralsEmbedTokenCountry | null | undefined;
438
+ tenantId?: string | undefined;
439
439
  /**
440
- * A brief description of the partner and their background.
440
+ * The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
441
441
  */
442
- description?: string | null | undefined;
442
+ country?: CreateReferralsEmbedTokenCountry | null | undefined;
443
443
  /**
444
- * The ID of the partner in your system.
444
+ * A brief description of the partner and their background. Max 5,000 characters.
445
445
  */
446
- tenantId?: string | undefined;
446
+ description?: string | null | undefined;
447
447
  /**
448
448
  * Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
449
449
  */
@@ -819,27 +819,27 @@ export function createReferralsEmbedTokenLinkPropsFromJSON(
819
819
  /** @internal */
820
820
  export const Partner$inboundSchema: z.ZodType<Partner, z.ZodTypeDef, unknown> =
821
821
  z.object({
822
- name: z.string(),
822
+ name: z.nullable(z.string()).optional(),
823
823
  email: z.string(),
824
824
  username: z.nullable(z.string()).optional(),
825
825
  image: z.nullable(z.string()).optional(),
826
+ tenantId: z.string().optional(),
826
827
  country: z.nullable(CreateReferralsEmbedTokenCountry$inboundSchema)
827
828
  .optional(),
828
829
  description: z.nullable(z.string()).optional(),
829
- tenantId: z.string().optional(),
830
830
  linkProps: z.lazy(() => CreateReferralsEmbedTokenLinkProps$inboundSchema)
831
831
  .optional(),
832
832
  });
833
833
 
834
834
  /** @internal */
835
835
  export type Partner$Outbound = {
836
- name: string;
836
+ name?: string | null | undefined;
837
837
  email: string;
838
838
  username?: string | null | undefined;
839
839
  image?: string | null | undefined;
840
+ tenantId?: string | undefined;
840
841
  country?: string | null | undefined;
841
842
  description?: string | null | undefined;
842
- tenantId?: string | undefined;
843
843
  linkProps?: CreateReferralsEmbedTokenLinkProps$Outbound | undefined;
844
844
  };
845
845
 
@@ -849,14 +849,14 @@ export const Partner$outboundSchema: z.ZodType<
849
849
  z.ZodTypeDef,
850
850
  Partner
851
851
  > = z.object({
852
- name: z.string(),
852
+ name: z.nullable(z.string()).optional(),
853
853
  email: z.string(),
854
854
  username: z.nullable(z.string()).optional(),
855
855
  image: z.nullable(z.string()).optional(),
856
+ tenantId: z.string().optional(),
856
857
  country: z.nullable(CreateReferralsEmbedTokenCountry$outboundSchema)
857
858
  .optional(),
858
859
  description: z.nullable(z.string()).optional(),
859
- tenantId: z.string().optional(),
860
860
  linkProps: z.lazy(() => CreateReferralsEmbedTokenLinkProps$outboundSchema)
861
861
  .optional(),
862
862
  });
@@ -80,6 +80,7 @@ export type GetCustomerDiscount = {
80
80
  couponId: string | null;
81
81
  couponTestId: string | null;
82
82
  partnersCount?: number | null | undefined;
83
+ default: boolean;
83
84
  };
84
85
 
85
86
  /**
@@ -350,6 +351,7 @@ export const GetCustomerDiscount$inboundSchema: z.ZodType<
350
351
  couponId: z.nullable(z.string()),
351
352
  couponTestId: z.nullable(z.string()),
352
353
  partnersCount: z.nullable(z.number()).optional(),
354
+ default: z.boolean(),
353
355
  });
354
356
 
355
357
  /** @internal */
@@ -362,6 +364,7 @@ export type GetCustomerDiscount$Outbound = {
362
364
  couponId: string | null;
363
365
  couponTestId: string | null;
364
366
  partnersCount?: number | null | undefined;
367
+ default: boolean;
365
368
  };
366
369
 
367
370
  /** @internal */
@@ -378,6 +381,7 @@ export const GetCustomerDiscount$outboundSchema: z.ZodType<
378
381
  couponId: z.nullable(z.string()),
379
382
  couponTestId: z.nullable(z.string()),
380
383
  partnersCount: z.nullable(z.number()).optional(),
384
+ default: z.boolean(),
381
385
  });
382
386
 
383
387
  /**
@@ -140,6 +140,7 @@ export type Discount = {
140
140
  couponId: string | null;
141
141
  couponTestId: string | null;
142
142
  partnersCount?: number | null | undefined;
143
+ default: boolean;
143
144
  };
144
145
 
145
146
  export type GetCustomersResponseBody = {
@@ -475,6 +476,7 @@ export const Discount$inboundSchema: z.ZodType<
475
476
  couponId: z.nullable(z.string()),
476
477
  couponTestId: z.nullable(z.string()),
477
478
  partnersCount: z.nullable(z.number()).optional(),
479
+ default: z.boolean(),
478
480
  });
479
481
 
480
482
  /** @internal */
@@ -487,6 +489,7 @@ export type Discount$Outbound = {
487
489
  couponId: string | null;
488
490
  couponTestId: string | null;
489
491
  partnersCount?: number | null | undefined;
492
+ default: boolean;
490
493
  };
491
494
 
492
495
  /** @internal */
@@ -503,6 +506,7 @@ export const Discount$outboundSchema: z.ZodType<
503
506
  couponId: z.nullable(z.string()),
504
507
  couponTestId: z.nullable(z.string()),
505
508
  partnersCount: z.nullable(z.number()).optional(),
509
+ default: z.boolean(),
506
510
  });
507
511
 
508
512
  /**
@@ -152,7 +152,7 @@ export type ListEventsRequest = {
152
152
  */
153
153
  timezone?: string | undefined;
154
154
  /**
155
- * The country to retrieve analytics for.
155
+ * The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
156
156
  */
157
157
  country?: components.CountryCode | undefined;
158
158
  /**
@@ -149,7 +149,7 @@ export type RetrieveAnalyticsRequest = {
149
149
  */
150
150
  timezone?: string | undefined;
151
151
  /**
152
- * The country to retrieve analytics for.
152
+ * The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
153
153
  */
154
154
  country?: components.CountryCode | undefined;
155
155
  /**
@@ -8,7 +8,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type RetrieveLinksRequest = {
11
- programId: string;
12
11
  partnerId?: string | undefined;
13
12
  tenantId?: string | undefined;
14
13
  };
@@ -58,14 +57,12 @@ export const RetrieveLinksRequest$inboundSchema: z.ZodType<
58
57
  z.ZodTypeDef,
59
58
  unknown
60
59
  > = z.object({
61
- programId: z.string(),
62
60
  partnerId: z.string().optional(),
63
61
  tenantId: z.string().optional(),
64
62
  });
65
63
 
66
64
  /** @internal */
67
65
  export type RetrieveLinksRequest$Outbound = {
68
- programId: string;
69
66
  partnerId?: string | undefined;
70
67
  tenantId?: string | undefined;
71
68
  };
@@ -76,7 +73,6 @@ export const RetrieveLinksRequest$outboundSchema: z.ZodType<
76
73
  z.ZodTypeDef,
77
74
  RetrieveLinksRequest
78
75
  > = z.object({
79
- programId: z.string(),
80
76
  partnerId: z.string().optional(),
81
77
  tenantId: z.string().optional(),
82
78
  });
@@ -29,10 +29,6 @@ export type TrackLeadRequestBody = {
29
29
  * The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the `leadEventName` prop in `/track/sale`).
30
30
  */
31
31
  eventName: string;
32
- /**
33
- * The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.
34
- */
35
- eventQuantity?: number | null | undefined;
36
32
  /**
37
33
  * The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer.
38
34
  */
@@ -49,6 +45,10 @@ export type TrackLeadRequestBody = {
49
45
  * The avatar URL of the customer.
50
46
  */
51
47
  customerAvatar?: string | null | undefined;
48
+ /**
49
+ * The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.
50
+ */
51
+ eventQuantity?: number | null | undefined;
52
52
  /**
53
53
  * The mode to use for tracking the lead event. `async` will not block the request; `wait` will block the request until the lead event is fully recorded in Dub.
54
54
  */
@@ -106,11 +106,11 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
106
106
  > = z.object({
107
107
  clickId: z.string(),
108
108
  eventName: z.string(),
109
- eventQuantity: z.nullable(z.number()).optional(),
110
109
  externalId: z.string(),
111
110
  customerName: z.nullable(z.string()).default(null),
112
111
  customerEmail: z.nullable(z.string()).default(null),
113
112
  customerAvatar: z.nullable(z.string()).default(null),
113
+ eventQuantity: z.nullable(z.number()).optional(),
114
114
  mode: Mode$inboundSchema.default("async"),
115
115
  metadata: z.nullable(z.record(z.any())).optional(),
116
116
  });
@@ -119,11 +119,11 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
119
119
  export type TrackLeadRequestBody$Outbound = {
120
120
  clickId: string;
121
121
  eventName: string;
122
- eventQuantity?: number | null | undefined;
123
122
  externalId: string;
124
123
  customerName: string | null;
125
124
  customerEmail: string | null;
126
125
  customerAvatar: string | null;
126
+ eventQuantity?: number | null | undefined;
127
127
  mode: string;
128
128
  metadata?: { [k: string]: any } | null | undefined;
129
129
  };
@@ -136,11 +136,11 @@ export const TrackLeadRequestBody$outboundSchema: z.ZodType<
136
136
  > = z.object({
137
137
  clickId: z.string(),
138
138
  eventName: z.string(),
139
- eventQuantity: z.nullable(z.number()).optional(),
140
139
  externalId: z.string(),
141
140
  customerName: z.nullable(z.string()).default(null),
142
141
  customerEmail: z.nullable(z.string()).default(null),
143
142
  customerAvatar: z.nullable(z.string()).default(null),
143
+ eventQuantity: z.nullable(z.number()).optional(),
144
144
  mode: Mode$outboundSchema.default("async"),
145
145
  metadata: z.nullable(z.record(z.any())).optional(),
146
146
  });
@@ -29,31 +29,31 @@ export type TrackSaleRequestBody = {
29
29
  */
30
30
  externalId: string;
31
31
  /**
32
- * The amount of the sale in cents.
32
+ * The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency
33
33
  */
34
34
  amount: number;
35
35
  /**
36
- * The payment processor via which the sale was made.
36
+ * The currency of the sale. Accepts ISO 4217 currency codes. Sales will be automatically converted and stored as USD at the latest exchange rates. Learn more: https://d.to/currency
37
37
  */
38
- paymentProcessor: PaymentProcessor;
38
+ currency?: string | undefined;
39
39
  /**
40
- * The name of the sale event.
40
+ * The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`.
41
41
  */
42
42
  eventName?: string | undefined;
43
43
  /**
44
- * The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID.
44
+ * The payment processor via which the sale was made.
45
45
  */
46
- invoiceId?: string | null | undefined;
46
+ paymentProcessor: PaymentProcessor;
47
47
  /**
48
- * The currency of the sale. Accepts ISO 4217 currency codes.
48
+ * The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID.
49
49
  */
50
- currency?: string | undefined;
50
+ invoiceId?: string | null | undefined;
51
51
  /**
52
- * The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior).
52
+ * The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior).
53
53
  */
54
54
  leadEventName?: string | null | undefined;
55
55
  /**
56
- * Additional metadata to be stored with the sale event. Max 10,000 characters.
56
+ * Additional metadata to be stored with the sale event. Max 10,000 characters when stringified.
57
57
  */
58
58
  metadata?: { [k: string]: any } | null | undefined;
59
59
  };
@@ -112,10 +112,10 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
112
112
  > = z.object({
113
113
  externalId: z.string(),
114
114
  amount: z.number().int(),
115
- paymentProcessor: PaymentProcessor$inboundSchema,
115
+ currency: z.string().default("usd"),
116
116
  eventName: z.string().default("Purchase"),
117
+ paymentProcessor: PaymentProcessor$inboundSchema,
117
118
  invoiceId: z.nullable(z.string()).default(null),
118
- currency: z.string().default("usd"),
119
119
  leadEventName: z.nullable(z.string()).default(null),
120
120
  metadata: z.nullable(z.record(z.any())).optional(),
121
121
  });
@@ -124,10 +124,10 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
124
124
  export type TrackSaleRequestBody$Outbound = {
125
125
  externalId: string;
126
126
  amount: number;
127
- paymentProcessor: string;
127
+ currency: string;
128
128
  eventName: string;
129
+ paymentProcessor: string;
129
130
  invoiceId: string | null;
130
- currency: string;
131
131
  leadEventName: string | null;
132
132
  metadata?: { [k: string]: any } | null | undefined;
133
133
  };
@@ -140,10 +140,10 @@ export const TrackSaleRequestBody$outboundSchema: z.ZodType<
140
140
  > = z.object({
141
141
  externalId: z.string(),
142
142
  amount: z.number().int(),
143
- paymentProcessor: PaymentProcessor$outboundSchema,
143
+ currency: z.string().default("usd"),
144
144
  eventName: z.string().default("Purchase"),
145
+ paymentProcessor: PaymentProcessor$outboundSchema,
145
146
  invoiceId: z.nullable(z.string()).default(null),
146
- currency: z.string().default("usd"),
147
147
  leadEventName: z.nullable(z.string()).default(null),
148
148
  metadata: z.nullable(z.record(z.any())).optional(),
149
149
  });
@@ -101,6 +101,7 @@ export type UpdateCustomerDiscount = {
101
101
  couponId: string | null;
102
102
  couponTestId: string | null;
103
103
  partnersCount?: number | null | undefined;
104
+ default: boolean;
104
105
  };
105
106
 
106
107
  /**
@@ -448,6 +449,7 @@ export const UpdateCustomerDiscount$inboundSchema: z.ZodType<
448
449
  couponId: z.nullable(z.string()),
449
450
  couponTestId: z.nullable(z.string()),
450
451
  partnersCount: z.nullable(z.number()).optional(),
452
+ default: z.boolean(),
451
453
  });
452
454
 
453
455
  /** @internal */
@@ -460,6 +462,7 @@ export type UpdateCustomerDiscount$Outbound = {
460
462
  couponId: string | null;
461
463
  couponTestId: string | null;
462
464
  partnersCount?: number | null | undefined;
465
+ default: boolean;
463
466
  };
464
467
 
465
468
  /** @internal */
@@ -476,6 +479,7 @@ export const UpdateCustomerDiscount$outboundSchema: z.ZodType<
476
479
  couponId: z.nullable(z.string()),
477
480
  couponTestId: z.nullable(z.string()),
478
481
  partnersCount: z.nullable(z.number()).optional(),
482
+ default: z.boolean(),
479
483
  });
480
484
 
481
485
  /**
@@ -54,7 +54,7 @@ export class Partners extends ClientSDK {
54
54
  * Retrieve a partner's links by their partner ID or tenant ID.
55
55
  */
56
56
  async retrieveLinks(
57
- request: operations.RetrieveLinksRequest,
57
+ request?: operations.RetrieveLinksRequest | undefined,
58
58
  options?: RequestOptions,
59
59
  ): Promise<Array<operations.Link>> {
60
60
  return unwrapAsync(partnersRetrieveLinks(