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,261 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * The reason for rejecting the submission.
14
+ */
15
+ export const RejectionReason = {
16
+ InvalidProof: "invalidProof",
17
+ DuplicateSubmission: "duplicateSubmission",
18
+ OutOfTimeWindow: "outOfTimeWindow",
19
+ DidNotMeetCriteria: "didNotMeetCriteria",
20
+ Other: "other",
21
+ } as const;
22
+ /**
23
+ * The reason for rejecting the submission.
24
+ */
25
+ export type RejectionReason = ClosedEnum<typeof RejectionReason>;
26
+
27
+ export type RejectBountySubmissionRequestBody = {
28
+ /**
29
+ * The reason for rejecting the submission.
30
+ */
31
+ rejectionReason?: RejectionReason | undefined;
32
+ /**
33
+ * The note for rejecting the submission.
34
+ */
35
+ rejectionNote?: string | undefined;
36
+ };
37
+
38
+ export type RejectBountySubmissionRequest = {
39
+ /**
40
+ * The ID of the bounty
41
+ */
42
+ bountyId: string;
43
+ /**
44
+ * The ID of the bounty submission
45
+ */
46
+ submissionId: string;
47
+ requestBody?: RejectBountySubmissionRequestBody | undefined;
48
+ };
49
+
50
+ export type RejectBountySubmissionFiles = {
51
+ /**
52
+ * The URL of the uploaded file.
53
+ */
54
+ url: string;
55
+ /**
56
+ * The original file name.
57
+ */
58
+ fileName: string;
59
+ /**
60
+ * The file size in bytes.
61
+ */
62
+ size: number;
63
+ };
64
+
65
+ /**
66
+ * The status of the submission
67
+ */
68
+ export const RejectBountySubmissionStatus = {
69
+ Draft: "draft",
70
+ Submitted: "submitted",
71
+ Approved: "approved",
72
+ Rejected: "rejected",
73
+ } as const;
74
+ /**
75
+ * The status of the submission
76
+ */
77
+ export type RejectBountySubmissionStatus = ClosedEnum<
78
+ typeof RejectBountySubmissionStatus
79
+ >;
80
+
81
+ /**
82
+ * The rejected bounty submission.
83
+ */
84
+ export type RejectBountySubmissionResponseBody = {
85
+ /**
86
+ * The ID of the bounty submission
87
+ */
88
+ id: string;
89
+ /**
90
+ * The ID of the bounty
91
+ */
92
+ bountyId: string;
93
+ /**
94
+ * The ID of the partner
95
+ */
96
+ partnerId: string;
97
+ /**
98
+ * The description of the submission
99
+ */
100
+ description: string | null;
101
+ /**
102
+ * The URLs submitted for the submission
103
+ */
104
+ urls: Array<string> | null;
105
+ /**
106
+ * The files uploaded for the submission
107
+ */
108
+ files: Array<RejectBountySubmissionFiles> | null;
109
+ /**
110
+ * The status of the submission
111
+ */
112
+ status: RejectBountySubmissionStatus;
113
+ /**
114
+ * The performance count of the submission
115
+ */
116
+ performanceCount: number | null;
117
+ /**
118
+ * The date and time the submission was created
119
+ */
120
+ createdAt: string;
121
+ /**
122
+ * The date and time the submission was completed
123
+ */
124
+ completedAt: string | null;
125
+ /**
126
+ * The date and time the submission was reviewed
127
+ */
128
+ reviewedAt: string | null;
129
+ /**
130
+ * The reason for rejecting the submission
131
+ */
132
+ rejectionReason: string | null;
133
+ /**
134
+ * The note for rejecting the submission
135
+ */
136
+ rejectionNote: string | null;
137
+ };
138
+
139
+ /** @internal */
140
+ export const RejectionReason$outboundSchema: z.ZodNativeEnum<
141
+ typeof RejectionReason
142
+ > = z.nativeEnum(RejectionReason);
143
+
144
+ /** @internal */
145
+ export type RejectBountySubmissionRequestBody$Outbound = {
146
+ rejectionReason?: string | undefined;
147
+ rejectionNote?: string | undefined;
148
+ };
149
+
150
+ /** @internal */
151
+ export const RejectBountySubmissionRequestBody$outboundSchema: z.ZodType<
152
+ RejectBountySubmissionRequestBody$Outbound,
153
+ z.ZodTypeDef,
154
+ RejectBountySubmissionRequestBody
155
+ > = z.object({
156
+ rejectionReason: RejectionReason$outboundSchema.optional(),
157
+ rejectionNote: z.string().optional(),
158
+ });
159
+
160
+ export function rejectBountySubmissionRequestBodyToJSON(
161
+ rejectBountySubmissionRequestBody: RejectBountySubmissionRequestBody,
162
+ ): string {
163
+ return JSON.stringify(
164
+ RejectBountySubmissionRequestBody$outboundSchema.parse(
165
+ rejectBountySubmissionRequestBody,
166
+ ),
167
+ );
168
+ }
169
+
170
+ /** @internal */
171
+ export type RejectBountySubmissionRequest$Outbound = {
172
+ bountyId: string;
173
+ submissionId: string;
174
+ RequestBody?: RejectBountySubmissionRequestBody$Outbound | undefined;
175
+ };
176
+
177
+ /** @internal */
178
+ export const RejectBountySubmissionRequest$outboundSchema: z.ZodType<
179
+ RejectBountySubmissionRequest$Outbound,
180
+ z.ZodTypeDef,
181
+ RejectBountySubmissionRequest
182
+ > = z.object({
183
+ bountyId: z.string(),
184
+ submissionId: z.string(),
185
+ requestBody: z.lazy(() => RejectBountySubmissionRequestBody$outboundSchema)
186
+ .optional(),
187
+ }).transform((v) => {
188
+ return remap$(v, {
189
+ requestBody: "RequestBody",
190
+ });
191
+ });
192
+
193
+ export function rejectBountySubmissionRequestToJSON(
194
+ rejectBountySubmissionRequest: RejectBountySubmissionRequest,
195
+ ): string {
196
+ return JSON.stringify(
197
+ RejectBountySubmissionRequest$outboundSchema.parse(
198
+ rejectBountySubmissionRequest,
199
+ ),
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const RejectBountySubmissionFiles$inboundSchema: z.ZodType<
205
+ RejectBountySubmissionFiles,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ url: z.string(),
210
+ fileName: z.string(),
211
+ size: z.number(),
212
+ });
213
+
214
+ export function rejectBountySubmissionFilesFromJSON(
215
+ jsonString: string,
216
+ ): SafeParseResult<RejectBountySubmissionFiles, SDKValidationError> {
217
+ return safeParse(
218
+ jsonString,
219
+ (x) => RejectBountySubmissionFiles$inboundSchema.parse(JSON.parse(x)),
220
+ `Failed to parse 'RejectBountySubmissionFiles' from JSON`,
221
+ );
222
+ }
223
+
224
+ /** @internal */
225
+ export const RejectBountySubmissionStatus$inboundSchema: z.ZodNativeEnum<
226
+ typeof RejectBountySubmissionStatus
227
+ > = z.nativeEnum(RejectBountySubmissionStatus);
228
+
229
+ /** @internal */
230
+ export const RejectBountySubmissionResponseBody$inboundSchema: z.ZodType<
231
+ RejectBountySubmissionResponseBody,
232
+ z.ZodTypeDef,
233
+ unknown
234
+ > = z.object({
235
+ id: z.string(),
236
+ bountyId: z.string(),
237
+ partnerId: z.string(),
238
+ description: z.nullable(z.string()),
239
+ urls: z.nullable(z.array(z.string())),
240
+ files: z.nullable(
241
+ z.array(z.lazy(() => RejectBountySubmissionFiles$inboundSchema)),
242
+ ),
243
+ status: RejectBountySubmissionStatus$inboundSchema,
244
+ performanceCount: z.nullable(z.number()),
245
+ createdAt: z.string(),
246
+ completedAt: z.nullable(z.string()),
247
+ reviewedAt: z.nullable(z.string()),
248
+ rejectionReason: z.nullable(z.string()),
249
+ rejectionNote: z.nullable(z.string()),
250
+ });
251
+
252
+ export function rejectBountySubmissionResponseBodyFromJSON(
253
+ jsonString: string,
254
+ ): SafeParseResult<RejectBountySubmissionResponseBody, SDKValidationError> {
255
+ return safeParse(
256
+ jsonString,
257
+ (x) =>
258
+ RejectBountySubmissionResponseBody$inboundSchema.parse(JSON.parse(x)),
259
+ `Failed to parse 'RejectBountySubmissionResponseBody' from JSON`,
260
+ );
261
+ }
@@ -105,10 +105,6 @@ export type UpdateCommissionCustomer = {
105
105
  * 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`).
106
106
  */
107
107
  id: string;
108
- /**
109
- * Unique identifier for the customer in the client's app.
110
- */
111
- externalId: string;
112
108
  /**
113
109
  * Name of the customer.
114
110
  */
@@ -121,6 +117,14 @@ export type UpdateCommissionCustomer = {
121
117
  * Avatar URL of the customer.
122
118
  */
123
119
  avatar?: string | null | undefined;
120
+ /**
121
+ * Unique identifier for the customer in the client's app.
122
+ */
123
+ externalId: string;
124
+ /**
125
+ * The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
126
+ */
127
+ stripeCustomerId?: string | null | undefined;
124
128
  /**
125
129
  * Country of the customer.
126
130
  */
@@ -134,9 +138,17 @@ export type UpdateCommissionCustomer = {
134
138
  */
135
139
  saleAmount?: number | null | undefined;
136
140
  /**
137
- * The date the customer was created.
141
+ * The date the customer was created (usually the signup date or trial start date).
138
142
  */
139
143
  createdAt: string;
144
+ /**
145
+ * The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
146
+ */
147
+ firstSaleAt?: string | null | undefined;
148
+ /**
149
+ * The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
150
+ */
151
+ subscriptionCanceledAt?: string | null | undefined;
140
152
  };
141
153
 
142
154
  /**
@@ -270,14 +282,17 @@ export const UpdateCommissionCustomer$inboundSchema: z.ZodType<
270
282
  unknown
271
283
  > = z.object({
272
284
  id: z.string(),
273
- externalId: z.string(),
274
285
  name: z.string(),
275
286
  email: z.nullable(z.string()).optional(),
276
287
  avatar: z.nullable(z.string()).optional(),
288
+ externalId: z.string(),
289
+ stripeCustomerId: z.nullable(z.string()).optional(),
277
290
  country: z.nullable(z.string()).optional(),
278
291
  sales: z.nullable(z.number()).optional(),
279
292
  saleAmount: z.nullable(z.number()).optional(),
280
293
  createdAt: z.string(),
294
+ firstSaleAt: z.nullable(z.string()).optional(),
295
+ subscriptionCanceledAt: z.nullable(z.string()).optional(),
281
296
  });
282
297
 
283
298
  export function updateCommissionCustomerFromJSON(
@@ -119,10 +119,6 @@ export type UpdateCustomerResponseBody = {
119
119
  * 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`).
120
120
  */
121
121
  id: string;
122
- /**
123
- * Unique identifier for the customer in the client's app.
124
- */
125
- externalId: string;
126
122
  /**
127
123
  * Name of the customer.
128
124
  */
@@ -135,6 +131,14 @@ export type UpdateCustomerResponseBody = {
135
131
  * Avatar URL of the customer.
136
132
  */
137
133
  avatar?: string | null | undefined;
134
+ /**
135
+ * Unique identifier for the customer in the client's app.
136
+ */
137
+ externalId: string;
138
+ /**
139
+ * The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
140
+ */
141
+ stripeCustomerId?: string | null | undefined;
138
142
  /**
139
143
  * Country of the customer.
140
144
  */
@@ -148,9 +152,17 @@ export type UpdateCustomerResponseBody = {
148
152
  */
149
153
  saleAmount?: number | null | undefined;
150
154
  /**
151
- * The date the customer was created.
155
+ * The date the customer was created (usually the signup date or trial start date).
152
156
  */
153
157
  createdAt: string;
158
+ /**
159
+ * The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
160
+ */
161
+ firstSaleAt?: string | null | undefined;
162
+ /**
163
+ * The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
164
+ */
165
+ subscriptionCanceledAt?: string | null | undefined;
154
166
  link?: UpdateCustomerLink | null | undefined;
155
167
  programId?: string | null | undefined;
156
168
  partner?: UpdateCustomerPartner | null | undefined;
@@ -304,14 +316,17 @@ export const UpdateCustomerResponseBody$inboundSchema: z.ZodType<
304
316
  unknown
305
317
  > = z.object({
306
318
  id: z.string(),
307
- externalId: z.string(),
308
319
  name: z.string(),
309
320
  email: z.nullable(z.string()).optional(),
310
321
  avatar: z.nullable(z.string()).optional(),
322
+ externalId: z.string(),
323
+ stripeCustomerId: z.nullable(z.string()).optional(),
311
324
  country: z.nullable(z.string()).optional(),
312
325
  sales: z.nullable(z.number()).optional(),
313
326
  saleAmount: z.nullable(z.number()).optional(),
314
327
  createdAt: z.string(),
328
+ firstSaleAt: z.nullable(z.string()).optional(),
329
+ subscriptionCanceledAt: z.nullable(z.string()).optional(),
315
330
  link: z.nullable(z.lazy(() => UpdateCustomerLink$inboundSchema)).optional(),
316
331
  programId: z.nullable(z.string()).optional(),
317
332
  partner: z.nullable(z.lazy(() => UpdateCustomerPartner$inboundSchema))
@@ -127,9 +127,9 @@ export type UpsertPartnerLinkRequestBody = {
127
127
  */
128
128
  tenantId?: string | null | undefined;
129
129
  /**
130
- * The URL to shorten (if not provided, the program's default URL will be used). Will throw an error if the domain doesn't match the program's default URL domain.
130
+ * The URL to upsert for. Will throw an error if the domain doesn't match the program's default URL domain.
131
131
  */
132
- url?: string | null | undefined;
132
+ url: string;
133
133
  /**
134
134
  * The short link slug. If not provided, a random 7-character slug will be generated.
135
135
  */
@@ -281,7 +281,7 @@ export function upsertPartnerLinkLinkPropsToJSON(
281
281
  export type UpsertPartnerLinkRequestBody$Outbound = {
282
282
  partnerId?: string | null | undefined;
283
283
  tenantId?: string | null | undefined;
284
- url?: string | null | undefined;
284
+ url: string;
285
285
  key?: string | undefined;
286
286
  comments?: string | null | undefined;
287
287
  linkProps?: UpsertPartnerLinkLinkProps$Outbound | undefined;
@@ -295,7 +295,7 @@ export const UpsertPartnerLinkRequestBody$outboundSchema: z.ZodType<
295
295
  > = z.object({
296
296
  partnerId: z.nullable(z.string()).optional(),
297
297
  tenantId: z.nullable(z.string()).optional(),
298
- url: z.nullable(z.string()).optional(),
298
+ url: z.string(),
299
299
  key: z.string().optional(),
300
300
  comments: z.nullable(z.string()).optional(),
301
301
  linkProps: z.lazy(() => UpsertPartnerLinkLinkProps$outboundSchema).optional(),
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { bountiesApproveSubmission } from "../funcs/bountiesApproveSubmission.js";
6
+ import { bountiesListSubmissions } from "../funcs/bountiesListSubmissions.js";
7
+ import { bountiesRejectSubmission } from "../funcs/bountiesRejectSubmission.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class Bounties extends ClientSDK {
13
+ /**
14
+ * List bounty submissions
15
+ *
16
+ * @remarks
17
+ * List all submissions for a specific bounty.
18
+ */
19
+ async listSubmissions(
20
+ request: operations.ListBountySubmissionsRequest,
21
+ options?: RequestOptions,
22
+ ): Promise<Array<operations.ListBountySubmissionsResponseBody>> {
23
+ return unwrapAsync(bountiesListSubmissions(
24
+ this,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Approve a bounty submission
32
+ *
33
+ * @remarks
34
+ * Approve a bounty submission. Optionally specify a custom reward amount.
35
+ */
36
+ async approveSubmission(
37
+ request: operations.ApproveBountySubmissionRequest,
38
+ options?: RequestOptions,
39
+ ): Promise<operations.ApproveBountySubmissionResponseBody> {
40
+ return unwrapAsync(bountiesApproveSubmission(
41
+ this,
42
+ request,
43
+ options,
44
+ ));
45
+ }
46
+
47
+ /**
48
+ * Reject a bounty submission
49
+ *
50
+ * @remarks
51
+ * Reject a bounty submission with a specified reason and optional note.
52
+ */
53
+ async rejectSubmission(
54
+ request: operations.RejectBountySubmissionRequest,
55
+ options?: RequestOptions,
56
+ ): Promise<operations.RejectBountySubmissionResponseBody> {
57
+ return unwrapAsync(bountiesRejectSubmission(
58
+ this,
59
+ request,
60
+ options,
61
+ ));
62
+ }
63
+ }
@@ -6,6 +6,7 @@ import { partnersAnalytics } from "../funcs/partnersAnalytics.js";
6
6
  import { partnersBan } from "../funcs/partnersBan.js";
7
7
  import { partnersCreate } from "../funcs/partnersCreate.js";
8
8
  import { partnersCreateLink } from "../funcs/partnersCreateLink.js";
9
+ import { partnersDeactivate } from "../funcs/partnersDeactivate.js";
9
10
  import { partnersList } from "../funcs/partnersList.js";
10
11
  import { partnersRetrieveLinks } from "../funcs/partnersRetrieveLinks.js";
11
12
  import { partnersUpsertLink } from "../funcs/partnersUpsertLink.js";
@@ -133,4 +134,21 @@ export class Partners extends ClientSDK {
133
134
  options,
134
135
  ));
135
136
  }
137
+
138
+ /**
139
+ * Deactivate a partner
140
+ *
141
+ * @remarks
142
+ * This will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate them later if needed.
143
+ */
144
+ async deactivate(
145
+ request?: operations.DeactivatePartnerRequestBody | undefined,
146
+ options?: RequestOptions,
147
+ ): Promise<operations.DeactivatePartnerResponseBody> {
148
+ return unwrapAsync(partnersDeactivate(
149
+ this,
150
+ request,
151
+ options,
152
+ ));
153
+ }
136
154
  }
package/src/sdk/sdk.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { Analytics } from "./analytics.js";
7
+ import { Bounties } from "./bounties.js";
7
8
  import { Commissions } from "./commissions.js";
8
9
  import { Customers } from "./customers.js";
9
10
  import { Domains } from "./domains.js";
@@ -15,7 +16,6 @@ import { Partners } from "./partners.js";
15
16
  import { QRCodes } from "./qrcodes.js";
16
17
  import { Tags } from "./tags.js";
17
18
  import { Track } from "./track.js";
18
- import { Workspaces } from "./workspaces.js";
19
19
 
20
20
  export class Dub extends ClientSDK {
21
21
  private _links?: Links;
@@ -68,11 +68,6 @@ export class Dub extends ClientSDK {
68
68
  return (this._commissions ??= new Commissions(this._options));
69
69
  }
70
70
 
71
- private _workspaces?: Workspaces;
72
- get workspaces(): Workspaces {
73
- return (this._workspaces ??= new Workspaces(this._options));
74
- }
75
-
76
71
  private _embedTokens?: EmbedTokens;
77
72
  get embedTokens(): EmbedTokens {
78
73
  return (this._embedTokens ??= new EmbedTokens(this._options));
@@ -82,4 +77,9 @@ export class Dub extends ClientSDK {
82
77
  get qrCodes(): QRCodes {
83
78
  return (this._qrCodes ??= new QRCodes(this._options));
84
79
  }
80
+
81
+ private _bounties?: Bounties;
82
+ get bounties(): Bounties {
83
+ return (this._bounties ??= new Bounties(this._options));
84
+ }
85
85
  }
@@ -1,19 +0,0 @@
1
- import { DubCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { DubError } from "../models/errors/duberror.js";
5
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
- import * as errors from "../models/errors/index.js";
7
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- /**
13
- * Retrieve a workspace
14
- *
15
- * @remarks
16
- * Retrieve a workspace for the authenticated user.
17
- */
18
- export declare function workspacesGet(client: DubCore, request: operations.GetWorkspaceRequest, options?: RequestOptions): APIPromise<Result<components.WorkspaceSchema, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | DubError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
- //# sourceMappingURL=workspacesGet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspacesGet.d.ts","sourceRoot":"","sources":["../../../src/funcs/workspacesGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC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,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,19 +0,0 @@
1
- import { DubCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { DubError } from "../models/errors/duberror.js";
5
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
- import * as errors from "../models/errors/index.js";
7
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- /**
13
- * Update a workspace
14
- *
15
- * @remarks
16
- * Update a workspace by ID or slug.
17
- */
18
- export declare function workspacesUpdate(client: DubCore, idOrSlug: string, requestBody?: operations.UpdateWorkspaceRequestBody | undefined, options?: RequestOptions): APIPromise<Result<components.WorkspaceSchema, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | DubError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
- //# sourceMappingURL=workspacesUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspacesUpdate.d.ts","sourceRoot":"","sources":["../../../src/funcs/workspacesUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,UAAU,CAAC,0BAA0B,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,eAAe,EACxB,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,uBAAuB,GACvB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