@clientcasa/sdk 0.3.0 → 0.4.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 (368) hide show
  1. package/README.md +19 -24
  2. package/esm/funcs/catalog-items-list.js +1 -0
  3. package/esm/funcs/catalog-items-list.js.map +1 -1
  4. package/esm/funcs/{inquiries-get.d.ts → form-submissions-get.d.ts} +3 -3
  5. package/esm/funcs/form-submissions-get.d.ts.map +1 -0
  6. package/esm/funcs/{inquiries-delete.js → form-submissions-get.js} +9 -8
  7. package/esm/funcs/form-submissions-get.js.map +1 -0
  8. package/esm/funcs/form-submissions-list.d.ts +21 -0
  9. package/esm/funcs/form-submissions-list.d.ts.map +1 -0
  10. package/esm/funcs/{inquiries-list.js → form-submissions-list.js} +14 -9
  11. package/esm/funcs/form-submissions-list.js.map +1 -0
  12. package/esm/funcs/{proposals-get.d.ts → forms-and-agreements-get.d.ts} +2 -2
  13. package/esm/funcs/forms-and-agreements-get.d.ts.map +1 -0
  14. package/esm/funcs/{proposals-get.js → forms-and-agreements-get.js} +6 -6
  15. package/esm/funcs/forms-and-agreements-get.js.map +1 -0
  16. package/esm/funcs/{inquiries-delete.d.ts → forms-and-agreements-list.d.ts} +6 -3
  17. package/esm/funcs/forms-and-agreements-list.d.ts.map +1 -0
  18. package/esm/funcs/{proposals-list.js → forms-and-agreements-list.js} +8 -8
  19. package/esm/funcs/forms-and-agreements-list.js.map +1 -0
  20. package/esm/funcs/{proposals-list.d.ts → forms-get.d.ts} +4 -6
  21. package/esm/funcs/forms-get.d.ts.map +1 -0
  22. package/esm/funcs/{inquiries-get.js → forms-get.js} +7 -7
  23. package/esm/funcs/forms-get.js.map +1 -0
  24. package/esm/funcs/{inquiries-list.d.ts → forms-list.d.ts} +3 -3
  25. package/esm/funcs/forms-list.d.ts.map +1 -0
  26. package/esm/funcs/forms-list.js +138 -0
  27. package/esm/funcs/forms-list.js.map +1 -0
  28. package/esm/funcs/milestones-create.d.ts +1 -1
  29. package/esm/funcs/milestones-create.js +1 -1
  30. package/esm/hooks/types.d.ts +1 -0
  31. package/esm/hooks/types.d.ts.map +1 -1
  32. package/esm/lib/config.d.ts +3 -3
  33. package/esm/lib/config.js +3 -3
  34. package/esm/lib/sdks.d.ts.map +1 -1
  35. package/esm/lib/sdks.js +13 -4
  36. package/esm/lib/sdks.js.map +1 -1
  37. package/esm/models/api-error.d.ts +1 -0
  38. package/esm/models/api-error.d.ts.map +1 -1
  39. package/esm/models/api-error.js +1 -0
  40. package/esm/models/api-error.js.map +1 -1
  41. package/esm/models/catalog-item.d.ts +17 -0
  42. package/esm/models/catalog-item.d.ts.map +1 -1
  43. package/esm/models/catalog-item.js +15 -0
  44. package/esm/models/catalog-item.js.map +1 -1
  45. package/esm/models/client-create.d.ts +5 -1
  46. package/esm/models/client-create.d.ts.map +1 -1
  47. package/esm/models/client-create.js +5 -1
  48. package/esm/models/client-create.js.map +1 -1
  49. package/esm/models/client-document-list.d.ts +13 -0
  50. package/esm/models/client-document-list.d.ts.map +1 -0
  51. package/esm/models/client-document-list.js +16 -0
  52. package/esm/models/client-document-list.js.map +1 -0
  53. package/esm/models/client-document.d.ts +70 -0
  54. package/esm/models/client-document.d.ts.map +1 -0
  55. package/esm/models/client-document.js +45 -0
  56. package/esm/models/client-document.js.map +1 -0
  57. package/esm/models/client-update.d.ts +5 -1
  58. package/esm/models/client-update.d.ts.map +1 -1
  59. package/esm/models/client-update.js +5 -1
  60. package/esm/models/client-update.js.map +1 -1
  61. package/esm/models/client.d.ts +5 -1
  62. package/esm/models/client.d.ts.map +1 -1
  63. package/esm/models/client.js +5 -1
  64. package/esm/models/client.js.map +1 -1
  65. package/esm/models/contact.d.ts +1 -1
  66. package/esm/models/contact.d.ts.map +1 -1
  67. package/esm/models/contact.js +1 -1
  68. package/esm/models/contact.js.map +1 -1
  69. package/esm/models/contract-create.d.ts +0 -5
  70. package/esm/models/contract-create.d.ts.map +1 -1
  71. package/esm/models/contract-create.js +0 -1
  72. package/esm/models/contract-create.js.map +1 -1
  73. package/esm/models/contract.d.ts +0 -4
  74. package/esm/models/contract.d.ts.map +1 -1
  75. package/esm/models/contract.js +0 -1
  76. package/esm/models/contract.js.map +1 -1
  77. package/esm/models/form-list.d.ts +13 -0
  78. package/esm/models/form-list.d.ts.map +1 -0
  79. package/esm/models/form-list.js +17 -0
  80. package/esm/models/form-list.js.map +1 -0
  81. package/esm/models/form-submission-answer.d.ts +12 -0
  82. package/esm/models/form-submission-answer.d.ts.map +1 -0
  83. package/esm/models/form-submission-answer.js +16 -0
  84. package/esm/models/form-submission-answer.js.map +1 -0
  85. package/esm/models/form-submission-list.d.ts +13 -0
  86. package/esm/models/form-submission-list.d.ts.map +1 -0
  87. package/esm/models/form-submission-list.js +16 -0
  88. package/esm/models/form-submission-list.js.map +1 -0
  89. package/esm/models/form-submission.d.ts +54 -0
  90. package/esm/models/form-submission.d.ts.map +1 -0
  91. package/esm/models/form-submission.js +38 -0
  92. package/esm/models/form-submission.js.map +1 -0
  93. package/esm/models/form.d.ts +36 -0
  94. package/esm/models/form.d.ts.map +1 -0
  95. package/esm/models/form.js +30 -0
  96. package/esm/models/form.js.map +1 -0
  97. package/esm/models/index.d.ts +7 -8
  98. package/esm/models/index.d.ts.map +1 -1
  99. package/esm/models/index.js +7 -8
  100. package/esm/models/index.js.map +1 -1
  101. package/esm/models/milestone-create.d.ts +1 -1
  102. package/esm/models/milestone-create.js +1 -1
  103. package/esm/models/milestone-create.js.map +1 -1
  104. package/esm/models/milestone.d.ts +1 -1
  105. package/esm/models/milestone.js +1 -1
  106. package/esm/models/milestone.js.map +1 -1
  107. package/esm/models/operations/get-client-document.d.ts +27 -0
  108. package/esm/models/operations/get-client-document.d.ts.map +1 -0
  109. package/esm/models/operations/get-client-document.js +20 -0
  110. package/esm/models/operations/get-client-document.js.map +1 -0
  111. package/esm/models/operations/get-form-submission.d.ts +27 -0
  112. package/esm/models/operations/get-form-submission.d.ts.map +1 -0
  113. package/esm/models/operations/get-form-submission.js +20 -0
  114. package/esm/models/operations/get-form-submission.js.map +1 -0
  115. package/esm/models/operations/get-form.d.ts +27 -0
  116. package/esm/models/operations/get-form.d.ts.map +1 -0
  117. package/esm/models/operations/get-form.js +20 -0
  118. package/esm/models/operations/get-form.js.map +1 -0
  119. package/esm/models/operations/index.d.ts +6 -10
  120. package/esm/models/operations/index.d.ts.map +1 -1
  121. package/esm/models/operations/index.js +6 -10
  122. package/esm/models/operations/index.js.map +1 -1
  123. package/esm/models/operations/list-catalog-items.d.ts +9 -0
  124. package/esm/models/operations/list-catalog-items.d.ts.map +1 -1
  125. package/esm/models/operations/list-catalog-items.js +8 -0
  126. package/esm/models/operations/list-catalog-items.js.map +1 -1
  127. package/esm/models/operations/list-client-documents.d.ts +61 -0
  128. package/esm/models/operations/list-client-documents.d.ts.map +1 -0
  129. package/esm/models/operations/list-client-documents.js +50 -0
  130. package/esm/models/operations/list-client-documents.js.map +1 -0
  131. package/esm/models/operations/list-clients.d.ts +5 -1
  132. package/esm/models/operations/list-clients.d.ts.map +1 -1
  133. package/esm/models/operations/list-clients.js +5 -1
  134. package/esm/models/operations/list-clients.js.map +1 -1
  135. package/esm/models/operations/list-form-submissions.d.ts +64 -0
  136. package/esm/models/operations/list-form-submissions.d.ts.map +1 -0
  137. package/esm/models/operations/list-form-submissions.js +51 -0
  138. package/esm/models/operations/list-form-submissions.js.map +1 -0
  139. package/esm/models/operations/list-forms.d.ts +47 -0
  140. package/esm/models/operations/list-forms.d.ts.map +1 -0
  141. package/esm/models/operations/list-forms.js +43 -0
  142. package/esm/models/operations/list-forms.js.map +1 -0
  143. package/esm/models/operations/list-milestones.d.ts +1 -1
  144. package/esm/models/operations/list-milestones.js +1 -1
  145. package/esm/models/operations/list-milestones.js.map +1 -1
  146. package/esm/models/operations/list-payments.d.ts +4 -4
  147. package/esm/models/operations/list-payments.d.ts.map +1 -1
  148. package/esm/models/operations/list-payments.js +3 -3
  149. package/esm/models/operations/list-payments.js.map +1 -1
  150. package/esm/models/operations/list-webhooks.d.ts +10 -11
  151. package/esm/models/operations/list-webhooks.d.ts.map +1 -1
  152. package/esm/models/operations/list-webhooks.js +10 -11
  153. package/esm/models/operations/list-webhooks.js.map +1 -1
  154. package/esm/models/webhook-create.d.ts +10 -11
  155. package/esm/models/webhook-create.d.ts.map +1 -1
  156. package/esm/models/webhook-create.js +10 -11
  157. package/esm/models/webhook-create.js.map +1 -1
  158. package/esm/models/webhook-update.d.ts +10 -11
  159. package/esm/models/webhook-update.d.ts.map +1 -1
  160. package/esm/models/webhook-update.js +10 -11
  161. package/esm/models/webhook-update.js.map +1 -1
  162. package/esm/models/webhook.d.ts +10 -11
  163. package/esm/models/webhook.d.ts.map +1 -1
  164. package/esm/models/webhook.js +10 -11
  165. package/esm/models/webhook.js.map +1 -1
  166. package/esm/sdk/form-submissions.d.ts +20 -0
  167. package/esm/sdk/form-submissions.d.ts.map +1 -0
  168. package/esm/sdk/form-submissions.js +26 -0
  169. package/esm/sdk/form-submissions.js.map +1 -0
  170. package/esm/sdk/forms-and-agreements.d.ts +17 -0
  171. package/esm/sdk/forms-and-agreements.d.ts.map +1 -0
  172. package/esm/sdk/forms-and-agreements.js +23 -0
  173. package/esm/sdk/forms-and-agreements.js.map +1 -0
  174. package/esm/sdk/forms.d.ts +17 -0
  175. package/esm/sdk/forms.d.ts.map +1 -0
  176. package/esm/sdk/forms.js +23 -0
  177. package/esm/sdk/forms.js.map +1 -0
  178. package/esm/sdk/milestones.d.ts +1 -1
  179. package/esm/sdk/milestones.js +1 -1
  180. package/esm/sdk/sdk.d.ts +9 -6
  181. package/esm/sdk/sdk.d.ts.map +1 -1
  182. package/esm/sdk/sdk.js +15 -10
  183. package/esm/sdk/sdk.js.map +1 -1
  184. package/jsr.json +1 -1
  185. package/package.json +1 -1
  186. package/src/funcs/catalog-items-list.ts +1 -0
  187. package/src/funcs/{proposals-delete.ts → form-submissions-get.ts} +16 -14
  188. package/src/funcs/form-submissions-list.ts +284 -0
  189. package/src/funcs/{proposals-get.ts → forms-and-agreements-get.ts} +13 -12
  190. package/src/funcs/{proposals-list.ts → forms-and-agreements-list.ts} +15 -15
  191. package/src/funcs/{inquiries-get.ts → forms-get.ts} +13 -13
  192. package/src/funcs/{inquiries-list.ts → forms-list.ts} +17 -22
  193. package/src/funcs/milestones-create.ts +1 -1
  194. package/src/hooks/types.ts +1 -0
  195. package/src/lib/config.ts +3 -3
  196. package/src/lib/sdks.ts +13 -4
  197. package/src/models/api-error.ts +1 -0
  198. package/src/models/catalog-item.ts +28 -0
  199. package/src/models/client-create.ts +5 -1
  200. package/src/models/client-document-list.ts +40 -0
  201. package/src/models/client-document.ts +114 -0
  202. package/src/models/client-update.ts +5 -1
  203. package/src/models/client.ts +5 -1
  204. package/src/models/contact.ts +2 -2
  205. package/src/models/contract-create.ts +0 -6
  206. package/src/models/contract.ts +0 -5
  207. package/src/models/{inquiry-list.ts → form-list.ts} +9 -9
  208. package/src/models/form-submission-answer.ts +35 -0
  209. package/src/models/form-submission-list.ts +40 -0
  210. package/src/models/form-submission.ts +99 -0
  211. package/src/models/form.ts +67 -0
  212. package/src/models/index.ts +7 -8
  213. package/src/models/milestone-create.ts +1 -1
  214. package/src/models/milestone.ts +1 -1
  215. package/src/models/operations/get-client-document.ts +61 -0
  216. package/src/models/operations/get-form-submission.ts +61 -0
  217. package/src/models/operations/get-form.ts +55 -0
  218. package/src/models/operations/index.ts +6 -10
  219. package/src/models/operations/list-catalog-items.ts +13 -0
  220. package/src/models/operations/list-client-documents.ts +132 -0
  221. package/src/models/operations/list-clients.ts +5 -1
  222. package/src/models/operations/list-form-submissions.ts +142 -0
  223. package/src/models/operations/list-forms.ts +112 -0
  224. package/src/models/operations/list-milestones.ts +1 -1
  225. package/src/models/operations/list-payments.ts +7 -5
  226. package/src/models/operations/list-webhooks.ts +10 -11
  227. package/src/models/webhook-create.ts +10 -11
  228. package/src/models/webhook-update.ts +10 -11
  229. package/src/models/webhook.ts +10 -11
  230. package/src/sdk/form-submissions.ts +50 -0
  231. package/src/sdk/forms-and-agreements.ts +47 -0
  232. package/src/sdk/forms.ts +45 -0
  233. package/src/sdk/milestones.ts +1 -1
  234. package/src/sdk/sdk.ts +18 -12
  235. package/esm/funcs/inquiries-create.d.ts +0 -19
  236. package/esm/funcs/inquiries-create.d.ts.map +0 -1
  237. package/esm/funcs/inquiries-create.js +0 -96
  238. package/esm/funcs/inquiries-create.js.map +0 -1
  239. package/esm/funcs/inquiries-delete.d.ts.map +0 -1
  240. package/esm/funcs/inquiries-delete.js.map +0 -1
  241. package/esm/funcs/inquiries-get.d.ts.map +0 -1
  242. package/esm/funcs/inquiries-get.js.map +0 -1
  243. package/esm/funcs/inquiries-list.d.ts.map +0 -1
  244. package/esm/funcs/inquiries-list.js.map +0 -1
  245. package/esm/funcs/inquiries-update.d.ts +0 -19
  246. package/esm/funcs/inquiries-update.d.ts.map +0 -1
  247. package/esm/funcs/inquiries-update.js +0 -111
  248. package/esm/funcs/inquiries-update.js.map +0 -1
  249. package/esm/funcs/proposals-create.d.ts +0 -19
  250. package/esm/funcs/proposals-create.d.ts.map +0 -1
  251. package/esm/funcs/proposals-create.js +0 -96
  252. package/esm/funcs/proposals-create.js.map +0 -1
  253. package/esm/funcs/proposals-delete.d.ts +0 -15
  254. package/esm/funcs/proposals-delete.d.ts.map +0 -1
  255. package/esm/funcs/proposals-delete.js +0 -106
  256. package/esm/funcs/proposals-delete.js.map +0 -1
  257. package/esm/funcs/proposals-get.d.ts.map +0 -1
  258. package/esm/funcs/proposals-get.js.map +0 -1
  259. package/esm/funcs/proposals-list.d.ts.map +0 -1
  260. package/esm/funcs/proposals-list.js.map +0 -1
  261. package/esm/funcs/proposals-update.d.ts +0 -19
  262. package/esm/funcs/proposals-update.d.ts.map +0 -1
  263. package/esm/funcs/proposals-update.js +0 -111
  264. package/esm/funcs/proposals-update.js.map +0 -1
  265. package/esm/models/inquiry-create.d.ts +0 -45
  266. package/esm/models/inquiry-create.d.ts.map +0 -1
  267. package/esm/models/inquiry-create.js +0 -28
  268. package/esm/models/inquiry-create.js.map +0 -1
  269. package/esm/models/inquiry-list.d.ts +0 -13
  270. package/esm/models/inquiry-list.d.ts.map +0 -1
  271. package/esm/models/inquiry-list.js +0 -17
  272. package/esm/models/inquiry-list.js.map +0 -1
  273. package/esm/models/inquiry-update.d.ts +0 -45
  274. package/esm/models/inquiry-update.d.ts.map +0 -1
  275. package/esm/models/inquiry-update.js +0 -29
  276. package/esm/models/inquiry-update.js.map +0 -1
  277. package/esm/models/inquiry.d.ts +0 -78
  278. package/esm/models/inquiry.d.ts.map +0 -1
  279. package/esm/models/inquiry.js +0 -51
  280. package/esm/models/inquiry.js.map +0 -1
  281. package/esm/models/operations/create-inquiry.d.ts +0 -30
  282. package/esm/models/operations/create-inquiry.d.ts.map +0 -1
  283. package/esm/models/operations/create-inquiry.js +0 -27
  284. package/esm/models/operations/create-inquiry.js.map +0 -1
  285. package/esm/models/operations/create-proposal.d.ts +0 -30
  286. package/esm/models/operations/create-proposal.d.ts.map +0 -1
  287. package/esm/models/operations/create-proposal.js +0 -27
  288. package/esm/models/operations/create-proposal.js.map +0 -1
  289. package/esm/models/operations/delete-inquiry.d.ts +0 -27
  290. package/esm/models/operations/delete-inquiry.d.ts.map +0 -1
  291. package/esm/models/operations/delete-inquiry.js +0 -20
  292. package/esm/models/operations/delete-inquiry.js.map +0 -1
  293. package/esm/models/operations/delete-proposal.d.ts +0 -27
  294. package/esm/models/operations/delete-proposal.d.ts.map +0 -1
  295. package/esm/models/operations/delete-proposal.js +0 -20
  296. package/esm/models/operations/delete-proposal.js.map +0 -1
  297. package/esm/models/operations/get-inquiry.d.ts +0 -27
  298. package/esm/models/operations/get-inquiry.d.ts.map +0 -1
  299. package/esm/models/operations/get-inquiry.js +0 -20
  300. package/esm/models/operations/get-inquiry.js.map +0 -1
  301. package/esm/models/operations/get-proposal.d.ts +0 -27
  302. package/esm/models/operations/get-proposal.d.ts.map +0 -1
  303. package/esm/models/operations/get-proposal.js +0 -20
  304. package/esm/models/operations/get-proposal.js.map +0 -1
  305. package/esm/models/operations/list-inquiries.d.ts +0 -60
  306. package/esm/models/operations/list-inquiries.d.ts.map +0 -1
  307. package/esm/models/operations/list-inquiries.js +0 -55
  308. package/esm/models/operations/list-inquiries.js.map +0 -1
  309. package/esm/models/operations/list-proposals.d.ts +0 -56
  310. package/esm/models/operations/list-proposals.d.ts.map +0 -1
  311. package/esm/models/operations/list-proposals.js +0 -48
  312. package/esm/models/operations/list-proposals.js.map +0 -1
  313. package/esm/models/operations/update-inquiry.d.ts +0 -30
  314. package/esm/models/operations/update-inquiry.d.ts.map +0 -1
  315. package/esm/models/operations/update-inquiry.js +0 -22
  316. package/esm/models/operations/update-inquiry.js.map +0 -1
  317. package/esm/models/operations/update-proposal.d.ts +0 -30
  318. package/esm/models/operations/update-proposal.d.ts.map +0 -1
  319. package/esm/models/operations/update-proposal.js +0 -22
  320. package/esm/models/operations/update-proposal.js.map +0 -1
  321. package/esm/models/proposal-create.d.ts +0 -45
  322. package/esm/models/proposal-create.d.ts.map +0 -1
  323. package/esm/models/proposal-create.js +0 -26
  324. package/esm/models/proposal-create.js.map +0 -1
  325. package/esm/models/proposal-list.d.ts +0 -13
  326. package/esm/models/proposal-list.d.ts.map +0 -1
  327. package/esm/models/proposal-list.js +0 -16
  328. package/esm/models/proposal-list.js.map +0 -1
  329. package/esm/models/proposal-update.d.ts +0 -43
  330. package/esm/models/proposal-update.d.ts.map +0 -1
  331. package/esm/models/proposal-update.js +0 -27
  332. package/esm/models/proposal-update.js.map +0 -1
  333. package/esm/models/proposal.d.ts +0 -70
  334. package/esm/models/proposal.d.ts.map +0 -1
  335. package/esm/models/proposal.js +0 -52
  336. package/esm/models/proposal.js.map +0 -1
  337. package/esm/sdk/inquiries.d.ts +0 -35
  338. package/esm/sdk/inquiries.d.ts.map +0 -1
  339. package/esm/sdk/inquiries.js +0 -50
  340. package/esm/sdk/inquiries.js.map +0 -1
  341. package/esm/sdk/proposals.d.ts +0 -35
  342. package/esm/sdk/proposals.d.ts.map +0 -1
  343. package/esm/sdk/proposals.js +0 -50
  344. package/esm/sdk/proposals.js.map +0 -1
  345. package/src/funcs/inquiries-create.ts +0 -195
  346. package/src/funcs/inquiries-delete.ts +0 -201
  347. package/src/funcs/inquiries-update.ts +0 -206
  348. package/src/funcs/proposals-create.ts +0 -195
  349. package/src/funcs/proposals-update.ts +0 -206
  350. package/src/models/inquiry-create.ts +0 -72
  351. package/src/models/inquiry-update.ts +0 -80
  352. package/src/models/inquiry.ts +0 -123
  353. package/src/models/operations/create-inquiry.ts +0 -73
  354. package/src/models/operations/create-proposal.ts +0 -73
  355. package/src/models/operations/delete-inquiry.ts +0 -61
  356. package/src/models/operations/delete-proposal.ts +0 -61
  357. package/src/models/operations/get-inquiry.ts +0 -61
  358. package/src/models/operations/get-proposal.ts +0 -61
  359. package/src/models/operations/list-inquiries.ts +0 -130
  360. package/src/models/operations/list-proposals.ts +0 -123
  361. package/src/models/operations/update-inquiry.ts +0 -65
  362. package/src/models/operations/update-proposal.ts +0 -65
  363. package/src/models/proposal-create.ts +0 -86
  364. package/src/models/proposal-list.ts +0 -35
  365. package/src/models/proposal-update.ts +0 -84
  366. package/src/models/proposal.ts +0 -120
  367. package/src/sdk/inquiries.ts +0 -102
  368. package/src/sdk/proposals.ts +0 -102
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
9
+ import {
10
+ FormSubmission,
11
+ FormSubmission$inboundSchema,
12
+ } from "./form-submission.js";
13
+ import {
14
+ PaginationMeta,
15
+ PaginationMeta$inboundSchema,
16
+ } from "./pagination-meta.js";
17
+
18
+ export type FormSubmissionList = {
19
+ data: Array<FormSubmission>;
20
+ pagination: PaginationMeta;
21
+ };
22
+
23
+ /** @internal */
24
+ export const FormSubmissionList$inboundSchema: z.ZodMiniType<
25
+ FormSubmissionList,
26
+ unknown
27
+ > = z.object({
28
+ data: z.array(FormSubmission$inboundSchema),
29
+ pagination: PaginationMeta$inboundSchema,
30
+ });
31
+
32
+ export function formSubmissionListFromJSON(
33
+ jsonString: string,
34
+ ): SafeParseResult<FormSubmissionList, SDKValidationError> {
35
+ return safeParse(
36
+ jsonString,
37
+ (x) => FormSubmissionList$inboundSchema.parse(JSON.parse(x)),
38
+ `Failed to parse 'FormSubmissionList' from JSON`,
39
+ );
40
+ }
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import { OpenEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import * as types from "../types/primitives.js";
11
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
+ import {
13
+ FormSubmissionAnswer,
14
+ FormSubmissionAnswer$inboundSchema,
15
+ } from "./form-submission-answer.js";
16
+
17
+ export const FormSubmissionKind = {
18
+ Inquiry: "inquiry",
19
+ Questionnaire: "questionnaire",
20
+ } as const;
21
+ export type FormSubmissionKind = OpenEnum<typeof FormSubmissionKind>;
22
+
23
+ export const FormSubmissionStatus = {
24
+ InProgress: "in_progress",
25
+ Submitted: "submitted",
26
+ } as const;
27
+ export type FormSubmissionStatus = OpenEnum<typeof FormSubmissionStatus>;
28
+
29
+ export type FormSubmission = {
30
+ /**
31
+ * UUID v4
32
+ */
33
+ id: string;
34
+ /**
35
+ * UUID v4
36
+ */
37
+ formId: string;
38
+ kind: FormSubmissionKind | null;
39
+ status: FormSubmissionStatus;
40
+ /**
41
+ * UUID v4
42
+ */
43
+ contactId: string | null;
44
+ /**
45
+ * UUID v4
46
+ */
47
+ clientId: string | null;
48
+ source: string | null;
49
+ submittedAt: Date | null;
50
+ answers: Array<FormSubmissionAnswer> | null;
51
+ /**
52
+ * ISO 8601 timestamp (UTC)
53
+ */
54
+ createdAt: Date;
55
+ /**
56
+ * ISO 8601 timestamp (UTC)
57
+ */
58
+ updatedAt: Date;
59
+ };
60
+
61
+ /** @internal */
62
+ export const FormSubmissionKind$inboundSchema: z.ZodMiniType<
63
+ FormSubmissionKind,
64
+ unknown
65
+ > = openEnums.inboundSchema(FormSubmissionKind);
66
+
67
+ /** @internal */
68
+ export const FormSubmissionStatus$inboundSchema: z.ZodMiniType<
69
+ FormSubmissionStatus,
70
+ unknown
71
+ > = openEnums.inboundSchema(FormSubmissionStatus);
72
+
73
+ /** @internal */
74
+ export const FormSubmission$inboundSchema: z.ZodMiniType<
75
+ FormSubmission,
76
+ unknown
77
+ > = z.object({
78
+ id: types.string(),
79
+ formId: types.string(),
80
+ kind: types.nullable(FormSubmissionKind$inboundSchema),
81
+ status: FormSubmissionStatus$inboundSchema,
82
+ contactId: types.nullable(types.string()),
83
+ clientId: types.nullable(types.string()),
84
+ source: types.nullable(types.string()),
85
+ submittedAt: types.nullable(types.date()),
86
+ answers: types.nullable(z.array(FormSubmissionAnswer$inboundSchema)),
87
+ createdAt: types.date(),
88
+ updatedAt: types.date(),
89
+ });
90
+
91
+ export function formSubmissionFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<FormSubmission, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => FormSubmission$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'FormSubmission' from JSON`,
98
+ );
99
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import { OpenEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import * as types from "../types/primitives.js";
11
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
+
13
+ export const FormKind = {
14
+ Inquiry: "inquiry",
15
+ Questionnaire: "questionnaire",
16
+ } as const;
17
+ export type FormKind = OpenEnum<typeof FormKind>;
18
+
19
+ export type Form = {
20
+ /**
21
+ * UUID v4
22
+ */
23
+ id: string;
24
+ name: string;
25
+ title: string | null;
26
+ description: string | null;
27
+ kind: FormKind;
28
+ slug: string | null;
29
+ enabled: boolean;
30
+ isDefault: boolean;
31
+ /**
32
+ * ISO 8601 timestamp (UTC)
33
+ */
34
+ createdAt: Date;
35
+ /**
36
+ * ISO 8601 timestamp (UTC)
37
+ */
38
+ updatedAt: Date;
39
+ };
40
+
41
+ /** @internal */
42
+ export const FormKind$inboundSchema: z.ZodMiniType<FormKind, unknown> =
43
+ openEnums.inboundSchema(FormKind);
44
+
45
+ /** @internal */
46
+ export const Form$inboundSchema: z.ZodMiniType<Form, unknown> = z.object({
47
+ id: types.string(),
48
+ name: types.string(),
49
+ title: types.nullable(types.string()),
50
+ description: types.nullable(types.string()),
51
+ kind: FormKind$inboundSchema,
52
+ slug: types.nullable(types.string()),
53
+ enabled: types.boolean(),
54
+ isDefault: types.boolean(),
55
+ createdAt: types.date(),
56
+ updatedAt: types.date(),
57
+ });
58
+
59
+ export function formFromJSON(
60
+ jsonString: string,
61
+ ): SafeParseResult<Form, SDKValidationError> {
62
+ return safeParse(
63
+ jsonString,
64
+ (x) => Form$inboundSchema.parse(JSON.parse(x)),
65
+ `Failed to parse 'Form' from JSON`,
66
+ );
67
+ }
@@ -12,6 +12,8 @@ export * from "./catalog-item-list.js";
12
12
  export * from "./catalog-item-update.js";
13
13
  export * from "./catalog-item.js";
14
14
  export * from "./client-create.js";
15
+ export * from "./client-document-list.js";
16
+ export * from "./client-document.js";
15
17
  export * from "./client-list.js";
16
18
  export * from "./client-update.js";
17
19
  export * from "./client.js";
@@ -23,10 +25,11 @@ export * from "./contract-create.js";
23
25
  export * from "./contract-list.js";
24
26
  export * from "./contract-update.js";
25
27
  export * from "./contract.js";
26
- export * from "./inquiry-create.js";
27
- export * from "./inquiry-list.js";
28
- export * from "./inquiry-update.js";
29
- export * from "./inquiry.js";
28
+ export * from "./form-list.js";
29
+ export * from "./form-submission-answer.js";
30
+ export * from "./form-submission-list.js";
31
+ export * from "./form-submission.js";
32
+ export * from "./form.js";
30
33
  export * from "./invoice-create.js";
31
34
  export * from "./invoice-line-item.js";
32
35
  export * from "./invoice-list.js";
@@ -47,10 +50,6 @@ export * from "./project-create.js";
47
50
  export * from "./project-list.js";
48
51
  export * from "./project-update.js";
49
52
  export * from "./project.js";
50
- export * from "./proposal-create.js";
51
- export * from "./proposal-list.js";
52
- export * from "./proposal-update.js";
53
- export * from "./proposal.js";
54
53
  export * from "./security.js";
55
54
  export * from "./time-entry-create.js";
56
55
  export * from "./time-entry-list.js";
@@ -6,8 +6,8 @@ import * as z from "zod/v4-mini";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const MilestoneCreateParentType = {
9
- Proposals: "proposals",
10
9
  Projects: "projects",
10
+ ClientDocuments: "client-documents",
11
11
  } as const;
12
12
  export type MilestoneCreateParentType = ClosedEnum<
13
13
  typeof MilestoneCreateParentType
@@ -11,8 +11,8 @@ import * as types from "../types/primitives.js";
11
11
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
12
 
13
13
  export const MilestoneParentType = {
14
- Proposals: "proposals",
15
14
  Projects: "projects",
15
+ ClientDocuments: "client-documents",
16
16
  } as const;
17
17
  export type MilestoneParentType = OpenEnum<typeof MilestoneParentType>;
18
18
 
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetClientDocumentSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetClientDocumentRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetClientDocumentSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetClientDocumentSecurity$outboundSchema: z.ZodMiniType<
27
+ GetClientDocumentSecurity$Outbound,
28
+ GetClientDocumentSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getClientDocumentSecurityToJSON(
35
+ getClientDocumentSecurity: GetClientDocumentSecurity,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetClientDocumentSecurity$outboundSchema.parse(getClientDocumentSecurity),
39
+ );
40
+ }
41
+
42
+ /** @internal */
43
+ export type GetClientDocumentRequest$Outbound = {
44
+ id: string;
45
+ };
46
+
47
+ /** @internal */
48
+ export const GetClientDocumentRequest$outboundSchema: z.ZodMiniType<
49
+ GetClientDocumentRequest$Outbound,
50
+ GetClientDocumentRequest
51
+ > = z.object({
52
+ id: z.string(),
53
+ });
54
+
55
+ export function getClientDocumentRequestToJSON(
56
+ getClientDocumentRequest: GetClientDocumentRequest,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GetClientDocumentRequest$outboundSchema.parse(getClientDocumentRequest),
60
+ );
61
+ }
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetFormSubmissionSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetFormSubmissionRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetFormSubmissionSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetFormSubmissionSecurity$outboundSchema: z.ZodMiniType<
27
+ GetFormSubmissionSecurity$Outbound,
28
+ GetFormSubmissionSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getFormSubmissionSecurityToJSON(
35
+ getFormSubmissionSecurity: GetFormSubmissionSecurity,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetFormSubmissionSecurity$outboundSchema.parse(getFormSubmissionSecurity),
39
+ );
40
+ }
41
+
42
+ /** @internal */
43
+ export type GetFormSubmissionRequest$Outbound = {
44
+ id: string;
45
+ };
46
+
47
+ /** @internal */
48
+ export const GetFormSubmissionRequest$outboundSchema: z.ZodMiniType<
49
+ GetFormSubmissionRequest$Outbound,
50
+ GetFormSubmissionRequest
51
+ > = z.object({
52
+ id: z.string(),
53
+ });
54
+
55
+ export function getFormSubmissionRequestToJSON(
56
+ getFormSubmissionRequest: GetFormSubmissionRequest,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GetFormSubmissionRequest$outboundSchema.parse(getFormSubmissionRequest),
60
+ );
61
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetFormSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetFormRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetFormSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetFormSecurity$outboundSchema: z.ZodMiniType<
27
+ GetFormSecurity$Outbound,
28
+ GetFormSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getFormSecurityToJSON(
35
+ getFormSecurity: GetFormSecurity,
36
+ ): string {
37
+ return JSON.stringify(GetFormSecurity$outboundSchema.parse(getFormSecurity));
38
+ }
39
+
40
+ /** @internal */
41
+ export type GetFormRequest$Outbound = {
42
+ id: string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const GetFormRequest$outboundSchema: z.ZodMiniType<
47
+ GetFormRequest$Outbound,
48
+ GetFormRequest
49
+ > = z.object({
50
+ id: z.string(),
51
+ });
52
+
53
+ export function getFormRequestToJSON(getFormRequest: GetFormRequest): string {
54
+ return JSON.stringify(GetFormRequest$outboundSchema.parse(getFormRequest));
55
+ }
@@ -7,12 +7,10 @@ export * from "./create-catalog-item.js";
7
7
  export * from "./create-client.js";
8
8
  export * from "./create-contact.js";
9
9
  export * from "./create-contract.js";
10
- export * from "./create-inquiry.js";
11
10
  export * from "./create-invoice.js";
12
11
  export * from "./create-milestone.js";
13
12
  export * from "./create-payment.js";
14
13
  export * from "./create-project.js";
15
- export * from "./create-proposal.js";
16
14
  export * from "./create-time-entry.js";
17
15
  export * from "./create-transaction.js";
18
16
  export * from "./create-webhook.js";
@@ -21,41 +19,41 @@ export * from "./delete-catalog-item.js";
21
19
  export * from "./delete-client.js";
22
20
  export * from "./delete-contact.js";
23
21
  export * from "./delete-contract.js";
24
- export * from "./delete-inquiry.js";
25
22
  export * from "./delete-invoice.js";
26
23
  export * from "./delete-milestone.js";
27
24
  export * from "./delete-project.js";
28
- export * from "./delete-proposal.js";
29
25
  export * from "./delete-time-entry.js";
30
26
  export * from "./delete-transaction.js";
31
27
  export * from "./delete-webhook.js";
32
28
  export * from "./get-calendar-event.js";
33
29
  export * from "./get-catalog-item.js";
30
+ export * from "./get-client-document.js";
34
31
  export * from "./get-client.js";
35
32
  export * from "./get-contact.js";
36
33
  export * from "./get-contract.js";
37
- export * from "./get-inquiry.js";
34
+ export * from "./get-form-submission.js";
35
+ export * from "./get-form.js";
38
36
  export * from "./get-invoice.js";
39
37
  export * from "./get-milestone.js";
40
38
  export * from "./get-payment.js";
41
39
  export * from "./get-payout.js";
42
40
  export * from "./get-project.js";
43
- export * from "./get-proposal.js";
44
41
  export * from "./get-time-entry.js";
45
42
  export * from "./get-transaction.js";
46
43
  export * from "./get-webhook.js";
47
44
  export * from "./list-calendar-events.js";
48
45
  export * from "./list-catalog-items.js";
46
+ export * from "./list-client-documents.js";
49
47
  export * from "./list-clients.js";
50
48
  export * from "./list-contacts.js";
51
49
  export * from "./list-contracts.js";
52
- export * from "./list-inquiries.js";
50
+ export * from "./list-form-submissions.js";
51
+ export * from "./list-forms.js";
53
52
  export * from "./list-invoices.js";
54
53
  export * from "./list-milestones.js";
55
54
  export * from "./list-payments.js";
56
55
  export * from "./list-payouts.js";
57
56
  export * from "./list-projects.js";
58
- export * from "./list-proposals.js";
59
57
  export * from "./list-time-entries.js";
60
58
  export * from "./list-transactions.js";
61
59
  export * from "./list-webhooks.js";
@@ -64,12 +62,10 @@ export * from "./update-catalog-item.js";
64
62
  export * from "./update-client.js";
65
63
  export * from "./update-contact.js";
66
64
  export * from "./update-contract.js";
67
- export * from "./update-inquiry.js";
68
65
  export * from "./update-invoice.js";
69
66
  export * from "./update-milestone.js";
70
67
  export * from "./update-payment.js";
71
68
  export * from "./update-project.js";
72
- export * from "./update-proposal.js";
73
69
  export * from "./update-time-entry.js";
74
70
  export * from "./update-transaction.js";
75
71
  export * from "./update-webhook.js";
@@ -28,11 +28,18 @@ export const ListCatalogItemsStatus = {
28
28
  } as const;
29
29
  export type ListCatalogItemsStatus = ClosedEnum<typeof ListCatalogItemsStatus>;
30
30
 
31
+ export const Composition = {
32
+ Atom: "atom",
33
+ Bundle: "bundle",
34
+ } as const;
35
+ export type Composition = ClosedEnum<typeof Composition>;
36
+
31
37
  export type ListCatalogItemsRequest = {
32
38
  page?: number | undefined;
33
39
  pageSize?: number | undefined;
34
40
  type?: Type | undefined;
35
41
  status?: ListCatalogItemsStatus | undefined;
42
+ composition?: Composition | undefined;
36
43
  /**
37
44
  * UUID v4
38
45
  */
@@ -74,12 +81,17 @@ export const ListCatalogItemsStatus$outboundSchema: z.ZodMiniEnum<
74
81
  typeof ListCatalogItemsStatus
75
82
  > = z.enum(ListCatalogItemsStatus);
76
83
 
84
+ /** @internal */
85
+ export const Composition$outboundSchema: z.ZodMiniEnum<typeof Composition> = z
86
+ .enum(Composition);
87
+
77
88
  /** @internal */
78
89
  export type ListCatalogItemsRequest$Outbound = {
79
90
  page: number;
80
91
  pageSize: number;
81
92
  type?: string | undefined;
82
93
  status?: string | undefined;
94
+ composition?: string | undefined;
83
95
  clientId?: string | undefined;
84
96
  };
85
97
 
@@ -92,6 +104,7 @@ export const ListCatalogItemsRequest$outboundSchema: z.ZodMiniType<
92
104
  pageSize: z._default(z.int(), 25),
93
105
  type: z.optional(Type$outboundSchema),
94
106
  status: z.optional(ListCatalogItemsStatus$outboundSchema),
107
+ composition: z.optional(Composition$outboundSchema),
95
108
  clientId: z.optional(z.string()),
96
109
  });
97
110
 
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
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/sdk-validation-error.js";
11
+ import * as models from "../index.js";
12
+
13
+ export type ListClientDocumentsSecurity = {
14
+ apiKey?: string | undefined;
15
+ bearer?: string | undefined;
16
+ };
17
+
18
+ export const ListClientDocumentsStatus = {
19
+ Draft: "draft",
20
+ Sent: "sent",
21
+ Viewed: "viewed",
22
+ InProgress: "in_progress",
23
+ Accepted: "accepted",
24
+ Completed: "completed",
25
+ Expired: "expired",
26
+ Void: "void",
27
+ } as const;
28
+ export type ListClientDocumentsStatus = ClosedEnum<
29
+ typeof ListClientDocumentsStatus
30
+ >;
31
+
32
+ export type ListClientDocumentsRequest = {
33
+ page?: number | undefined;
34
+ pageSize?: number | undefined;
35
+ status?: ListClientDocumentsStatus | undefined;
36
+ /**
37
+ * UUID v4
38
+ */
39
+ clientId?: string | undefined;
40
+ /**
41
+ * UUID v4
42
+ */
43
+ contactId?: string | undefined;
44
+ };
45
+
46
+ export type ListClientDocumentsResponse = {
47
+ result: models.ClientDocumentList;
48
+ };
49
+
50
+ /** @internal */
51
+ export type ListClientDocumentsSecurity$Outbound = {
52
+ apiKey?: string | undefined;
53
+ bearer?: string | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const ListClientDocumentsSecurity$outboundSchema: z.ZodMiniType<
58
+ ListClientDocumentsSecurity$Outbound,
59
+ ListClientDocumentsSecurity
60
+ > = z.object({
61
+ apiKey: z.optional(z.string()),
62
+ bearer: z.optional(z.string()),
63
+ });
64
+
65
+ export function listClientDocumentsSecurityToJSON(
66
+ listClientDocumentsSecurity: ListClientDocumentsSecurity,
67
+ ): string {
68
+ return JSON.stringify(
69
+ ListClientDocumentsSecurity$outboundSchema.parse(
70
+ listClientDocumentsSecurity,
71
+ ),
72
+ );
73
+ }
74
+
75
+ /** @internal */
76
+ export const ListClientDocumentsStatus$outboundSchema: z.ZodMiniEnum<
77
+ typeof ListClientDocumentsStatus
78
+ > = z.enum(ListClientDocumentsStatus);
79
+
80
+ /** @internal */
81
+ export type ListClientDocumentsRequest$Outbound = {
82
+ page: number;
83
+ pageSize: number;
84
+ status?: string | undefined;
85
+ clientId?: string | undefined;
86
+ contactId?: string | undefined;
87
+ };
88
+
89
+ /** @internal */
90
+ export const ListClientDocumentsRequest$outboundSchema: z.ZodMiniType<
91
+ ListClientDocumentsRequest$Outbound,
92
+ ListClientDocumentsRequest
93
+ > = z.object({
94
+ page: z._default(z.int(), 1),
95
+ pageSize: z._default(z.int(), 25),
96
+ status: z.optional(ListClientDocumentsStatus$outboundSchema),
97
+ clientId: z.optional(z.string()),
98
+ contactId: z.optional(z.string()),
99
+ });
100
+
101
+ export function listClientDocumentsRequestToJSON(
102
+ listClientDocumentsRequest: ListClientDocumentsRequest,
103
+ ): string {
104
+ return JSON.stringify(
105
+ ListClientDocumentsRequest$outboundSchema.parse(listClientDocumentsRequest),
106
+ );
107
+ }
108
+
109
+ /** @internal */
110
+ export const ListClientDocumentsResponse$inboundSchema: z.ZodMiniType<
111
+ ListClientDocumentsResponse,
112
+ unknown
113
+ > = z.pipe(
114
+ z.object({
115
+ Result: models.ClientDocumentList$inboundSchema,
116
+ }),
117
+ z.transform((v) => {
118
+ return remap$(v, {
119
+ "Result": "result",
120
+ });
121
+ }),
122
+ );
123
+
124
+ export function listClientDocumentsResponseFromJSON(
125
+ jsonString: string,
126
+ ): SafeParseResult<ListClientDocumentsResponse, SDKValidationError> {
127
+ return safeParse(
128
+ jsonString,
129
+ (x) => ListClientDocumentsResponse$inboundSchema.parse(JSON.parse(x)),
130
+ `Failed to parse 'ListClientDocumentsResponse' from JSON`,
131
+ );
132
+ }