dub 0.70.0 → 0.71.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 (290) hide show
  1. package/README.md +11 -7
  2. package/dist/commonjs/funcs/bountiesApproveSubmission.d.ts +18 -0
  3. package/dist/commonjs/funcs/bountiesApproveSubmission.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/bountiesApproveSubmission.js +140 -0
  5. package/dist/commonjs/funcs/bountiesApproveSubmission.js.map +1 -0
  6. package/dist/commonjs/funcs/bountiesListSubmissions.d.ts +18 -0
  7. package/dist/commonjs/funcs/bountiesListSubmissions.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/bountiesListSubmissions.js +146 -0
  9. package/dist/commonjs/funcs/bountiesListSubmissions.js.map +1 -0
  10. package/dist/commonjs/funcs/bountiesRejectSubmission.d.ts +18 -0
  11. package/dist/commonjs/funcs/bountiesRejectSubmission.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/{workspacesUpdate.js → bountiesRejectSubmission.js} +17 -18
  13. package/dist/commonjs/funcs/bountiesRejectSubmission.js.map +1 -0
  14. package/dist/commonjs/funcs/partnersDeactivate.d.ts +18 -0
  15. package/dist/commonjs/funcs/partnersDeactivate.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/{workspacesGet.js → partnersDeactivate.js} +14 -18
  17. package/dist/commonjs/funcs/partnersDeactivate.js.map +1 -0
  18. package/dist/commonjs/lib/config.d.ts +3 -3
  19. package/dist/commonjs/lib/config.js +3 -3
  20. package/dist/commonjs/models/components/commissioncreatedevent.d.ts +54 -6
  21. package/dist/commonjs/models/components/commissioncreatedevent.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/commissioncreatedevent.js +33 -3
  23. package/dist/commonjs/models/components/commissioncreatedevent.js.map +1 -1
  24. package/dist/commonjs/models/components/index.d.ts +0 -1
  25. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/index.js +0 -1
  27. package/dist/commonjs/models/components/index.js.map +1 -1
  28. package/dist/commonjs/models/components/leadcreatedevent.d.ts +21 -6
  29. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/leadcreatedevent.js +8 -2
  31. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  32. package/dist/commonjs/models/components/partnerenrolledevent.d.ts +402 -0
  33. package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/partnerenrolledevent.js +421 -1
  35. package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
  36. package/dist/commonjs/models/components/salecreatedevent.d.ts +21 -6
  37. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/salecreatedevent.js +8 -2
  39. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  40. package/dist/commonjs/models/operations/approvebountysubmission.d.ts +130 -0
  41. package/dist/commonjs/models/operations/approvebountysubmission.d.ts.map +1 -0
  42. package/dist/commonjs/models/operations/approvebountysubmission.js +107 -0
  43. package/dist/commonjs/models/operations/approvebountysubmission.js.map +1 -0
  44. package/dist/commonjs/models/operations/createpartner.d.ts +130 -0
  45. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/createpartner.js +183 -1
  47. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  48. package/dist/commonjs/models/operations/deactivatepartner.d.ts +34 -0
  49. package/dist/commonjs/models/operations/deactivatepartner.d.ts.map +1 -0
  50. package/dist/commonjs/models/operations/{getworkspace.js → deactivatepartner.js} +17 -7
  51. package/dist/commonjs/models/operations/deactivatepartner.js.map +1 -0
  52. package/dist/commonjs/models/operations/getcustomer.d.ts +17 -5
  53. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/getcustomer.js +4 -1
  55. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  56. package/dist/commonjs/models/operations/getcustomers.d.ts +19 -5
  57. package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/getcustomers.js +6 -1
  59. package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
  60. package/dist/commonjs/models/operations/index.d.ts +4 -2
  61. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/index.js +4 -2
  63. package/dist/commonjs/models/operations/index.js.map +1 -1
  64. package/dist/commonjs/models/operations/listbountysubmissions.d.ts +183 -0
  65. package/dist/commonjs/models/operations/listbountysubmissions.d.ts.map +1 -0
  66. package/dist/commonjs/models/operations/listbountysubmissions.js +129 -0
  67. package/dist/commonjs/models/operations/listbountysubmissions.js.map +1 -0
  68. package/dist/commonjs/models/operations/listcommissions.d.ts +17 -5
  69. package/dist/commonjs/models/operations/listcommissions.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/listcommissions.js +4 -1
  71. package/dist/commonjs/models/operations/listcommissions.js.map +1 -1
  72. package/dist/commonjs/models/operations/listevents.d.ts +34 -10
  73. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/listevents.js +8 -2
  75. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  76. package/dist/commonjs/models/operations/listpartners.d.ts +130 -0
  77. package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/listpartners.js +179 -1
  79. package/dist/commonjs/models/operations/listpartners.js.map +1 -1
  80. package/dist/commonjs/models/operations/rejectbountysubmission.d.ts +151 -0
  81. package/dist/commonjs/models/operations/rejectbountysubmission.d.ts.map +1 -0
  82. package/dist/commonjs/models/operations/rejectbountysubmission.js +120 -0
  83. package/dist/commonjs/models/operations/rejectbountysubmission.js.map +1 -0
  84. package/dist/commonjs/models/operations/updatecommission.d.ts +17 -5
  85. package/dist/commonjs/models/operations/updatecommission.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/updatecommission.js +4 -1
  87. package/dist/commonjs/models/operations/updatecommission.js.map +1 -1
  88. package/dist/commonjs/models/operations/updatecustomer.d.ts +17 -5
  89. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/updatecustomer.js +4 -1
  91. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  92. package/dist/commonjs/models/operations/upsertpartnerlink.d.ts +3 -3
  93. package/dist/commonjs/models/operations/upsertpartnerlink.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/upsertpartnerlink.js +1 -1
  95. package/dist/commonjs/models/operations/upsertpartnerlink.js.map +1 -1
  96. package/dist/commonjs/sdk/bounties.d.ts +26 -0
  97. package/dist/commonjs/sdk/bounties.d.ts.map +1 -0
  98. package/dist/commonjs/sdk/bounties.js +42 -0
  99. package/dist/commonjs/sdk/bounties.js.map +1 -0
  100. package/dist/commonjs/sdk/partners.d.ts +7 -0
  101. package/dist/commonjs/sdk/partners.d.ts.map +1 -1
  102. package/dist/commonjs/sdk/partners.js +10 -0
  103. package/dist/commonjs/sdk/partners.js.map +1 -1
  104. package/dist/commonjs/sdk/sdk.d.ts +3 -3
  105. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  106. package/dist/commonjs/sdk/sdk.js +4 -4
  107. package/dist/commonjs/sdk/sdk.js.map +1 -1
  108. package/dist/esm/funcs/bountiesApproveSubmission.d.ts +18 -0
  109. package/dist/esm/funcs/bountiesApproveSubmission.d.ts.map +1 -0
  110. package/dist/esm/funcs/bountiesApproveSubmission.js +104 -0
  111. package/dist/esm/funcs/bountiesApproveSubmission.js.map +1 -0
  112. package/dist/esm/funcs/bountiesListSubmissions.d.ts +18 -0
  113. package/dist/esm/funcs/bountiesListSubmissions.d.ts.map +1 -0
  114. package/dist/esm/funcs/bountiesListSubmissions.js +110 -0
  115. package/dist/esm/funcs/bountiesListSubmissions.js.map +1 -0
  116. package/dist/esm/funcs/bountiesRejectSubmission.d.ts +18 -0
  117. package/dist/esm/funcs/bountiesRejectSubmission.d.ts.map +1 -0
  118. package/dist/esm/funcs/{workspacesUpdate.js → bountiesRejectSubmission.js} +16 -17
  119. package/dist/esm/funcs/bountiesRejectSubmission.js.map +1 -0
  120. package/dist/esm/funcs/partnersDeactivate.d.ts +18 -0
  121. package/dist/esm/funcs/partnersDeactivate.d.ts.map +1 -0
  122. package/dist/esm/funcs/{workspacesGet.js → partnersDeactivate.js} +14 -18
  123. package/dist/esm/funcs/partnersDeactivate.js.map +1 -0
  124. package/dist/esm/lib/config.d.ts +3 -3
  125. package/dist/esm/lib/config.js +3 -3
  126. package/dist/esm/models/components/commissioncreatedevent.d.ts +54 -6
  127. package/dist/esm/models/components/commissioncreatedevent.d.ts.map +1 -1
  128. package/dist/esm/models/components/commissioncreatedevent.js +30 -2
  129. package/dist/esm/models/components/commissioncreatedevent.js.map +1 -1
  130. package/dist/esm/models/components/index.d.ts +0 -1
  131. package/dist/esm/models/components/index.d.ts.map +1 -1
  132. package/dist/esm/models/components/index.js +0 -1
  133. package/dist/esm/models/components/index.js.map +1 -1
  134. package/dist/esm/models/components/leadcreatedevent.d.ts +21 -6
  135. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  136. package/dist/esm/models/components/leadcreatedevent.js +8 -2
  137. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  138. package/dist/esm/models/components/partnerenrolledevent.d.ts +402 -0
  139. package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
  140. package/dist/esm/models/components/partnerenrolledevent.js +391 -0
  141. package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
  142. package/dist/esm/models/components/salecreatedevent.d.ts +21 -6
  143. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  144. package/dist/esm/models/components/salecreatedevent.js +8 -2
  145. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  146. package/dist/esm/models/operations/approvebountysubmission.d.ts +130 -0
  147. package/dist/esm/models/operations/approvebountysubmission.d.ts.map +1 -0
  148. package/dist/esm/models/operations/approvebountysubmission.js +67 -0
  149. package/dist/esm/models/operations/approvebountysubmission.js.map +1 -0
  150. package/dist/esm/models/operations/createpartner.d.ts +130 -0
  151. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  152. package/dist/esm/models/operations/createpartner.js +168 -0
  153. package/dist/esm/models/operations/createpartner.js.map +1 -1
  154. package/dist/esm/models/operations/deactivatepartner.d.ts +34 -0
  155. package/dist/esm/models/operations/deactivatepartner.d.ts.map +1 -0
  156. package/dist/esm/models/operations/deactivatepartner.js +21 -0
  157. package/dist/esm/models/operations/deactivatepartner.js.map +1 -0
  158. package/dist/esm/models/operations/getcustomer.d.ts +17 -5
  159. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  160. package/dist/esm/models/operations/getcustomer.js +4 -1
  161. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  162. package/dist/esm/models/operations/getcustomers.d.ts +19 -5
  163. package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
  164. package/dist/esm/models/operations/getcustomers.js +6 -1
  165. package/dist/esm/models/operations/getcustomers.js.map +1 -1
  166. package/dist/esm/models/operations/index.d.ts +4 -2
  167. package/dist/esm/models/operations/index.d.ts.map +1 -1
  168. package/dist/esm/models/operations/index.js +4 -2
  169. package/dist/esm/models/operations/index.js.map +1 -1
  170. package/dist/esm/models/operations/listbountysubmissions.d.ts +183 -0
  171. package/dist/esm/models/operations/listbountysubmissions.d.ts.map +1 -0
  172. package/dist/esm/models/operations/listbountysubmissions.js +90 -0
  173. package/dist/esm/models/operations/listbountysubmissions.js.map +1 -0
  174. package/dist/esm/models/operations/listcommissions.d.ts +17 -5
  175. package/dist/esm/models/operations/listcommissions.d.ts.map +1 -1
  176. package/dist/esm/models/operations/listcommissions.js +4 -1
  177. package/dist/esm/models/operations/listcommissions.js.map +1 -1
  178. package/dist/esm/models/operations/listevents.d.ts +34 -10
  179. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  180. package/dist/esm/models/operations/listevents.js +8 -2
  181. package/dist/esm/models/operations/listevents.js.map +1 -1
  182. package/dist/esm/models/operations/listpartners.d.ts +130 -0
  183. package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
  184. package/dist/esm/models/operations/listpartners.js +164 -0
  185. package/dist/esm/models/operations/listpartners.js.map +1 -1
  186. package/dist/esm/models/operations/rejectbountysubmission.d.ts +151 -0
  187. package/dist/esm/models/operations/rejectbountysubmission.d.ts.map +1 -0
  188. package/dist/esm/models/operations/rejectbountysubmission.js +80 -0
  189. package/dist/esm/models/operations/rejectbountysubmission.js.map +1 -0
  190. package/dist/esm/models/operations/updatecommission.d.ts +17 -5
  191. package/dist/esm/models/operations/updatecommission.d.ts.map +1 -1
  192. package/dist/esm/models/operations/updatecommission.js +4 -1
  193. package/dist/esm/models/operations/updatecommission.js.map +1 -1
  194. package/dist/esm/models/operations/updatecustomer.d.ts +17 -5
  195. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  196. package/dist/esm/models/operations/updatecustomer.js +4 -1
  197. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  198. package/dist/esm/models/operations/upsertpartnerlink.d.ts +3 -3
  199. package/dist/esm/models/operations/upsertpartnerlink.d.ts.map +1 -1
  200. package/dist/esm/models/operations/upsertpartnerlink.js +1 -1
  201. package/dist/esm/models/operations/upsertpartnerlink.js.map +1 -1
  202. package/dist/esm/sdk/bounties.d.ts +26 -0
  203. package/dist/esm/sdk/bounties.d.ts.map +1 -0
  204. package/dist/esm/sdk/bounties.js +38 -0
  205. package/dist/esm/sdk/bounties.js.map +1 -0
  206. package/dist/esm/sdk/partners.d.ts +7 -0
  207. package/dist/esm/sdk/partners.d.ts.map +1 -1
  208. package/dist/esm/sdk/partners.js +10 -0
  209. package/dist/esm/sdk/partners.js.map +1 -1
  210. package/dist/esm/sdk/sdk.d.ts +3 -3
  211. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  212. package/dist/esm/sdk/sdk.js +4 -4
  213. package/dist/esm/sdk/sdk.js.map +1 -1
  214. package/examples/package-lock.json +1 -1
  215. package/jsr.json +1 -1
  216. package/package.json +1 -1
  217. package/src/funcs/bountiesApproveSubmission.ts +227 -0
  218. package/src/funcs/bountiesListSubmissions.ts +235 -0
  219. package/src/funcs/{workspacesUpdate.ts → bountiesRejectSubmission.ts} +23 -25
  220. package/src/funcs/{workspacesGet.ts → partnersDeactivate.ts} +21 -23
  221. package/src/lib/config.ts +3 -3
  222. package/src/models/components/commissioncreatedevent.ts +100 -8
  223. package/src/models/components/index.ts +0 -1
  224. package/src/models/components/leadcreatedevent.ts +29 -8
  225. package/src/models/components/partnerenrolledevent.ts +959 -0
  226. package/src/models/components/salecreatedevent.ts +29 -8
  227. package/src/models/operations/approvebountysubmission.ts +235 -0
  228. package/src/models/operations/createpartner.ts +415 -0
  229. package/src/models/operations/deactivatepartner.ts +74 -0
  230. package/src/models/operations/getcustomer.ts +21 -6
  231. package/src/models/operations/getcustomers.ts +23 -6
  232. package/src/models/operations/index.ts +4 -2
  233. package/src/models/operations/listbountysubmissions.ts +287 -0
  234. package/src/models/operations/listcommissions.ts +21 -6
  235. package/src/models/operations/listevents.ts +42 -12
  236. package/src/models/operations/listpartners.ts +446 -0
  237. package/src/models/operations/rejectbountysubmission.ts +261 -0
  238. package/src/models/operations/updatecommission.ts +21 -6
  239. package/src/models/operations/updatecustomer.ts +21 -6
  240. package/src/models/operations/upsertpartnerlink.ts +4 -4
  241. package/src/sdk/bounties.ts +63 -0
  242. package/src/sdk/partners.ts +18 -0
  243. package/src/sdk/sdk.ts +6 -6
  244. package/dist/commonjs/funcs/workspacesGet.d.ts +0 -19
  245. package/dist/commonjs/funcs/workspacesGet.d.ts.map +0 -1
  246. package/dist/commonjs/funcs/workspacesGet.js.map +0 -1
  247. package/dist/commonjs/funcs/workspacesUpdate.d.ts +0 -19
  248. package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +0 -1
  249. package/dist/commonjs/funcs/workspacesUpdate.js.map +0 -1
  250. package/dist/commonjs/models/components/workspaceschema.d.ts +0 -222
  251. package/dist/commonjs/models/components/workspaceschema.d.ts.map +0 -1
  252. package/dist/commonjs/models/components/workspaceschema.js +0 -131
  253. package/dist/commonjs/models/components/workspaceschema.js.map +0 -1
  254. package/dist/commonjs/models/operations/getworkspace.d.ts +0 -15
  255. package/dist/commonjs/models/operations/getworkspace.d.ts.map +0 -1
  256. package/dist/commonjs/models/operations/getworkspace.js.map +0 -1
  257. package/dist/commonjs/models/operations/updateworkspace.d.ts +0 -33
  258. package/dist/commonjs/models/operations/updateworkspace.d.ts.map +0 -1
  259. package/dist/commonjs/models/operations/updateworkspace.js +0 -67
  260. package/dist/commonjs/models/operations/updateworkspace.js.map +0 -1
  261. package/dist/commonjs/sdk/workspaces.d.ts +0 -20
  262. package/dist/commonjs/sdk/workspaces.d.ts.map +0 -1
  263. package/dist/commonjs/sdk/workspaces.js +0 -32
  264. package/dist/commonjs/sdk/workspaces.js.map +0 -1
  265. package/dist/esm/funcs/workspacesGet.d.ts +0 -19
  266. package/dist/esm/funcs/workspacesGet.d.ts.map +0 -1
  267. package/dist/esm/funcs/workspacesGet.js.map +0 -1
  268. package/dist/esm/funcs/workspacesUpdate.d.ts +0 -19
  269. package/dist/esm/funcs/workspacesUpdate.d.ts.map +0 -1
  270. package/dist/esm/funcs/workspacesUpdate.js.map +0 -1
  271. package/dist/esm/models/components/workspaceschema.d.ts +0 -222
  272. package/dist/esm/models/components/workspaceschema.d.ts.map +0 -1
  273. package/dist/esm/models/components/workspaceschema.js +0 -92
  274. package/dist/esm/models/components/workspaceschema.js.map +0 -1
  275. package/dist/esm/models/operations/getworkspace.d.ts +0 -15
  276. package/dist/esm/models/operations/getworkspace.d.ts.map +0 -1
  277. package/dist/esm/models/operations/getworkspace.js +0 -12
  278. package/dist/esm/models/operations/getworkspace.js.map +0 -1
  279. package/dist/esm/models/operations/updateworkspace.d.ts +0 -33
  280. package/dist/esm/models/operations/updateworkspace.d.ts.map +0 -1
  281. package/dist/esm/models/operations/updateworkspace.js +0 -29
  282. package/dist/esm/models/operations/updateworkspace.js.map +0 -1
  283. package/dist/esm/sdk/workspaces.d.ts +0 -20
  284. package/dist/esm/sdk/workspaces.d.ts.map +0 -1
  285. package/dist/esm/sdk/workspaces.js +0 -28
  286. package/dist/esm/sdk/workspaces.js.map +0 -1
  287. package/src/models/components/workspaceschema.ts +0 -315
  288. package/src/models/operations/getworkspace.ts +0 -34
  289. package/src/models/operations/updateworkspace.ts +0 -78
  290. package/src/sdk/workspaces.ts +0 -48
@@ -0,0 +1,287 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The status of the submissions to list.
13
+ */
14
+ export const ListBountySubmissionsQueryParamStatus = {
15
+ Draft: "draft",
16
+ Submitted: "submitted",
17
+ Approved: "approved",
18
+ Rejected: "rejected",
19
+ } as const;
20
+ /**
21
+ * The status of the submissions to list.
22
+ */
23
+ export type ListBountySubmissionsQueryParamStatus = ClosedEnum<
24
+ typeof ListBountySubmissionsQueryParamStatus
25
+ >;
26
+
27
+ /**
28
+ * The field to sort the submissions by.
29
+ */
30
+ export const ListBountySubmissionsQueryParamSortBy = {
31
+ CompletedAt: "completedAt",
32
+ PerformanceCount: "performanceCount",
33
+ } as const;
34
+ /**
35
+ * The field to sort the submissions by.
36
+ */
37
+ export type ListBountySubmissionsQueryParamSortBy = ClosedEnum<
38
+ typeof ListBountySubmissionsQueryParamSortBy
39
+ >;
40
+
41
+ /**
42
+ * The order to sort the submissions by.
43
+ */
44
+ export const ListBountySubmissionsQueryParamSortOrder = {
45
+ Asc: "asc",
46
+ Desc: "desc",
47
+ } as const;
48
+ /**
49
+ * The order to sort the submissions by.
50
+ */
51
+ export type ListBountySubmissionsQueryParamSortOrder = ClosedEnum<
52
+ typeof ListBountySubmissionsQueryParamSortOrder
53
+ >;
54
+
55
+ export type ListBountySubmissionsRequest = {
56
+ /**
57
+ * The ID of the bounty
58
+ */
59
+ bountyId: string;
60
+ /**
61
+ * The status of the submissions to list.
62
+ */
63
+ status?: ListBountySubmissionsQueryParamStatus | undefined;
64
+ /**
65
+ * The ID of the group to list submissions for.
66
+ */
67
+ groupId?: string | undefined;
68
+ /**
69
+ * The ID of the partner to list submissions for.
70
+ */
71
+ partnerId?: string | undefined;
72
+ /**
73
+ * The field to sort the submissions by.
74
+ */
75
+ sortBy?: ListBountySubmissionsQueryParamSortBy | undefined;
76
+ /**
77
+ * The order to sort the submissions by.
78
+ */
79
+ sortOrder?: ListBountySubmissionsQueryParamSortOrder | undefined;
80
+ /**
81
+ * The page number for pagination.
82
+ */
83
+ page?: number | undefined;
84
+ /**
85
+ * The number of items per page.
86
+ */
87
+ pageSize?: number | undefined;
88
+ };
89
+
90
+ export type Files = {
91
+ /**
92
+ * The URL of the uploaded file.
93
+ */
94
+ url: string;
95
+ /**
96
+ * The original file name.
97
+ */
98
+ fileName: string;
99
+ /**
100
+ * The file size in bytes.
101
+ */
102
+ size: number;
103
+ };
104
+
105
+ /**
106
+ * The status of the submission
107
+ */
108
+ export const ListBountySubmissionsStatus = {
109
+ Draft: "draft",
110
+ Submitted: "submitted",
111
+ Approved: "approved",
112
+ Rejected: "rejected",
113
+ } as const;
114
+ /**
115
+ * The status of the submission
116
+ */
117
+ export type ListBountySubmissionsStatus = ClosedEnum<
118
+ typeof ListBountySubmissionsStatus
119
+ >;
120
+
121
+ export type ListBountySubmissionsResponseBody = {
122
+ /**
123
+ * The ID of the bounty submission
124
+ */
125
+ id: string;
126
+ /**
127
+ * The ID of the bounty
128
+ */
129
+ bountyId: string;
130
+ /**
131
+ * The ID of the partner
132
+ */
133
+ partnerId: string;
134
+ /**
135
+ * The description of the submission
136
+ */
137
+ description: string | null;
138
+ /**
139
+ * The URLs submitted for the submission
140
+ */
141
+ urls: Array<string> | null;
142
+ /**
143
+ * The files uploaded for the submission
144
+ */
145
+ files: Array<Files> | null;
146
+ /**
147
+ * The status of the submission
148
+ */
149
+ status: ListBountySubmissionsStatus;
150
+ /**
151
+ * The performance count of the submission
152
+ */
153
+ performanceCount: number | null;
154
+ /**
155
+ * The date and time the submission was created
156
+ */
157
+ createdAt: string;
158
+ /**
159
+ * The date and time the submission was completed
160
+ */
161
+ completedAt: string | null;
162
+ /**
163
+ * The date and time the submission was reviewed
164
+ */
165
+ reviewedAt: string | null;
166
+ /**
167
+ * The reason for rejecting the submission
168
+ */
169
+ rejectionReason: string | null;
170
+ /**
171
+ * The note for rejecting the submission
172
+ */
173
+ rejectionNote: string | null;
174
+ };
175
+
176
+ /** @internal */
177
+ export const ListBountySubmissionsQueryParamStatus$outboundSchema:
178
+ z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamStatus> = z.nativeEnum(
179
+ ListBountySubmissionsQueryParamStatus,
180
+ );
181
+
182
+ /** @internal */
183
+ export const ListBountySubmissionsQueryParamSortBy$outboundSchema:
184
+ z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamSortBy> = z.nativeEnum(
185
+ ListBountySubmissionsQueryParamSortBy,
186
+ );
187
+
188
+ /** @internal */
189
+ export const ListBountySubmissionsQueryParamSortOrder$outboundSchema:
190
+ z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamSortOrder> = z
191
+ .nativeEnum(ListBountySubmissionsQueryParamSortOrder);
192
+
193
+ /** @internal */
194
+ export type ListBountySubmissionsRequest$Outbound = {
195
+ bountyId: string;
196
+ status?: string | undefined;
197
+ groupId?: string | undefined;
198
+ partnerId?: string | undefined;
199
+ sortBy: string;
200
+ sortOrder: string;
201
+ page: number;
202
+ pageSize: number;
203
+ };
204
+
205
+ /** @internal */
206
+ export const ListBountySubmissionsRequest$outboundSchema: z.ZodType<
207
+ ListBountySubmissionsRequest$Outbound,
208
+ z.ZodTypeDef,
209
+ ListBountySubmissionsRequest
210
+ > = z.object({
211
+ bountyId: z.string(),
212
+ status: ListBountySubmissionsQueryParamStatus$outboundSchema.optional(),
213
+ groupId: z.string().optional(),
214
+ partnerId: z.string().optional(),
215
+ sortBy: ListBountySubmissionsQueryParamSortBy$outboundSchema.default(
216
+ "completedAt",
217
+ ),
218
+ sortOrder: ListBountySubmissionsQueryParamSortOrder$outboundSchema.default(
219
+ "asc",
220
+ ),
221
+ page: z.number().default(1),
222
+ pageSize: z.number().default(100),
223
+ });
224
+
225
+ export function listBountySubmissionsRequestToJSON(
226
+ listBountySubmissionsRequest: ListBountySubmissionsRequest,
227
+ ): string {
228
+ return JSON.stringify(
229
+ ListBountySubmissionsRequest$outboundSchema.parse(
230
+ listBountySubmissionsRequest,
231
+ ),
232
+ );
233
+ }
234
+
235
+ /** @internal */
236
+ export const Files$inboundSchema: z.ZodType<Files, z.ZodTypeDef, unknown> = z
237
+ .object({
238
+ url: z.string(),
239
+ fileName: z.string(),
240
+ size: z.number(),
241
+ });
242
+
243
+ export function filesFromJSON(
244
+ jsonString: string,
245
+ ): SafeParseResult<Files, SDKValidationError> {
246
+ return safeParse(
247
+ jsonString,
248
+ (x) => Files$inboundSchema.parse(JSON.parse(x)),
249
+ `Failed to parse 'Files' from JSON`,
250
+ );
251
+ }
252
+
253
+ /** @internal */
254
+ export const ListBountySubmissionsStatus$inboundSchema: z.ZodNativeEnum<
255
+ typeof ListBountySubmissionsStatus
256
+ > = z.nativeEnum(ListBountySubmissionsStatus);
257
+
258
+ /** @internal */
259
+ export const ListBountySubmissionsResponseBody$inboundSchema: z.ZodType<
260
+ ListBountySubmissionsResponseBody,
261
+ z.ZodTypeDef,
262
+ unknown
263
+ > = z.object({
264
+ id: z.string(),
265
+ bountyId: z.string(),
266
+ partnerId: z.string(),
267
+ description: z.nullable(z.string()),
268
+ urls: z.nullable(z.array(z.string())),
269
+ files: z.nullable(z.array(z.lazy(() => Files$inboundSchema))),
270
+ status: ListBountySubmissionsStatus$inboundSchema,
271
+ performanceCount: z.nullable(z.number()),
272
+ createdAt: z.string(),
273
+ completedAt: z.nullable(z.string()),
274
+ reviewedAt: z.nullable(z.string()),
275
+ rejectionReason: z.nullable(z.string()),
276
+ rejectionNote: z.nullable(z.string()),
277
+ });
278
+
279
+ export function listBountySubmissionsResponseBodyFromJSON(
280
+ jsonString: string,
281
+ ): SafeParseResult<ListBountySubmissionsResponseBody, SDKValidationError> {
282
+ return safeParse(
283
+ jsonString,
284
+ (x) => ListBountySubmissionsResponseBody$inboundSchema.parse(JSON.parse(x)),
285
+ `Failed to parse 'ListBountySubmissionsResponseBody' from JSON`,
286
+ );
287
+ }
@@ -198,10 +198,6 @@ export type ListCommissionsCustomer = {
198
198
  * The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
199
199
  */
200
200
  id: string;
201
- /**
202
- * Unique identifier for the customer in the client's app.
203
- */
204
- externalId: string;
205
201
  /**
206
202
  * Name of the customer.
207
203
  */
@@ -214,6 +210,14 @@ export type ListCommissionsCustomer = {
214
210
  * Avatar URL of the customer.
215
211
  */
216
212
  avatar?: string | null | undefined;
213
+ /**
214
+ * Unique identifier for the customer in the client's app.
215
+ */
216
+ externalId: string;
217
+ /**
218
+ * The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
219
+ */
220
+ stripeCustomerId?: string | null | undefined;
217
221
  /**
218
222
  * Country of the customer.
219
223
  */
@@ -227,9 +231,17 @@ export type ListCommissionsCustomer = {
227
231
  */
228
232
  saleAmount?: number | null | undefined;
229
233
  /**
230
- * The date the customer was created.
234
+ * The date the customer was created (usually the signup date or trial start date).
231
235
  */
232
236
  createdAt: string;
237
+ /**
238
+ * The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
239
+ */
240
+ firstSaleAt?: string | null | undefined;
241
+ /**
242
+ * The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
243
+ */
244
+ subscriptionCanceledAt?: string | null | undefined;
233
245
  };
234
246
 
235
247
  export type ListCommissionsResponseBody = {
@@ -374,14 +386,17 @@ export const ListCommissionsCustomer$inboundSchema: z.ZodType<
374
386
  unknown
375
387
  > = z.object({
376
388
  id: z.string(),
377
- externalId: z.string(),
378
389
  name: z.string(),
379
390
  email: z.nullable(z.string()).optional(),
380
391
  avatar: z.nullable(z.string()).optional(),
392
+ externalId: z.string(),
393
+ stripeCustomerId: z.nullable(z.string()).optional(),
381
394
  country: z.nullable(z.string()).optional(),
382
395
  sales: z.nullable(z.number()).optional(),
383
396
  saleAmount: z.nullable(z.number()).optional(),
384
397
  createdAt: z.string(),
398
+ firstSaleAt: z.nullable(z.string()).optional(),
399
+ subscriptionCanceledAt: z.nullable(z.string()).optional(),
385
400
  });
386
401
 
387
402
  export function listCommissionsCustomerFromJSON(
@@ -525,10 +525,6 @@ export type ResponseBodyCustomer = {
525
525
  * The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
526
526
  */
527
527
  id: string;
528
- /**
529
- * Unique identifier for the customer in the client's app.
530
- */
531
- externalId: string;
532
528
  /**
533
529
  * Name of the customer.
534
530
  */
@@ -541,6 +537,14 @@ export type ResponseBodyCustomer = {
541
537
  * Avatar URL of the customer.
542
538
  */
543
539
  avatar?: string | null | undefined;
540
+ /**
541
+ * Unique identifier for the customer in the client's app.
542
+ */
543
+ externalId: string;
544
+ /**
545
+ * The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
546
+ */
547
+ stripeCustomerId?: string | null | undefined;
544
548
  /**
545
549
  * Country of the customer.
546
550
  */
@@ -554,9 +558,17 @@ export type ResponseBodyCustomer = {
554
558
  */
555
559
  saleAmount?: number | null | undefined;
556
560
  /**
557
- * The date the customer was created.
561
+ * The date the customer was created (usually the signup date or trial start date).
558
562
  */
559
563
  createdAt: string;
564
+ /**
565
+ * The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
566
+ */
567
+ firstSaleAt?: string | null | undefined;
568
+ /**
569
+ * The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
570
+ */
571
+ subscriptionCanceledAt?: string | null | undefined;
560
572
  };
561
573
 
562
574
  export type SaleEvent = {
@@ -858,10 +870,6 @@ export type ListEventsResponseBodyCustomer = {
858
870
  * The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
859
871
  */
860
872
  id: string;
861
- /**
862
- * Unique identifier for the customer in the client's app.
863
- */
864
- externalId: string;
865
873
  /**
866
874
  * Name of the customer.
867
875
  */
@@ -874,6 +882,14 @@ export type ListEventsResponseBodyCustomer = {
874
882
  * Avatar URL of the customer.
875
883
  */
876
884
  avatar?: string | null | undefined;
885
+ /**
886
+ * Unique identifier for the customer in the client's app.
887
+ */
888
+ externalId: string;
889
+ /**
890
+ * The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
891
+ */
892
+ stripeCustomerId?: string | null | undefined;
877
893
  /**
878
894
  * Country of the customer.
879
895
  */
@@ -887,9 +903,17 @@ export type ListEventsResponseBodyCustomer = {
887
903
  */
888
904
  saleAmount?: number | null | undefined;
889
905
  /**
890
- * The date the customer was created.
906
+ * The date the customer was created (usually the signup date or trial start date).
891
907
  */
892
908
  createdAt: string;
909
+ /**
910
+ * The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
911
+ */
912
+ firstSaleAt?: string | null | undefined;
913
+ /**
914
+ * The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
915
+ */
916
+ subscriptionCanceledAt?: string | null | undefined;
893
917
  };
894
918
 
895
919
  export type LeadEvent = {
@@ -1601,14 +1625,17 @@ export const ResponseBodyCustomer$inboundSchema: z.ZodType<
1601
1625
  unknown
1602
1626
  > = z.object({
1603
1627
  id: z.string(),
1604
- externalId: z.string(),
1605
1628
  name: z.string(),
1606
1629
  email: z.nullable(z.string()).optional(),
1607
1630
  avatar: z.nullable(z.string()).optional(),
1631
+ externalId: z.string(),
1632
+ stripeCustomerId: z.nullable(z.string()).optional(),
1608
1633
  country: z.nullable(z.string()).optional(),
1609
1634
  sales: z.nullable(z.number()).optional(),
1610
1635
  saleAmount: z.nullable(z.number()).optional(),
1611
1636
  createdAt: z.string(),
1637
+ firstSaleAt: z.nullable(z.string()).optional(),
1638
+ subscriptionCanceledAt: z.nullable(z.string()).optional(),
1612
1639
  });
1613
1640
 
1614
1641
  export function responseBodyCustomerFromJSON(
@@ -1811,14 +1838,17 @@ export const ListEventsResponseBodyCustomer$inboundSchema: z.ZodType<
1811
1838
  unknown
1812
1839
  > = z.object({
1813
1840
  id: z.string(),
1814
- externalId: z.string(),
1815
1841
  name: z.string(),
1816
1842
  email: z.nullable(z.string()).optional(),
1817
1843
  avatar: z.nullable(z.string()).optional(),
1844
+ externalId: z.string(),
1845
+ stripeCustomerId: z.nullable(z.string()).optional(),
1818
1846
  country: z.nullable(z.string()).optional(),
1819
1847
  sales: z.nullable(z.number()).optional(),
1820
1848
  saleAmount: z.nullable(z.number()).optional(),
1821
1849
  createdAt: z.string(),
1850
+ firstSaleAt: z.nullable(z.string()).optional(),
1851
+ subscriptionCanceledAt: z.nullable(z.string()).optional(),
1822
1852
  });
1823
1853
 
1824
1854
  export function listEventsResponseBodyCustomerFromJSON(