@apideck/unify 0.20.0 → 0.21.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 (514) hide show
  1. package/README.md +68 -51
  2. package/docs/sdks/agedcreditors/README.md +115 -0
  3. package/docs/sdks/attachments/README.md +97 -0
  4. package/docs/sdks/bills/README.md +24 -20
  5. package/docs/sdks/connections/README.md +100 -80
  6. package/docs/sdks/connectionsettings/README.md +100 -80
  7. package/docs/sdks/creditnotes/README.md +20 -20
  8. package/docs/sdks/expenses/README.md +8 -0
  9. package/docs/sdks/invoiceitems/README.md +16 -0
  10. package/docs/sdks/invoices/README.md +16 -16
  11. package/docs/sdks/journalentries/README.md +20 -0
  12. package/docs/sdks/pipelines/README.md +632 -0
  13. package/docs/sdks/purchaseorders/README.md +106 -186
  14. package/docs/sdks/uploadsessions/README.md +95 -0
  15. package/funcs/accountingAgedCreditorsGet.d.ts +17 -0
  16. package/funcs/accountingAgedCreditorsGet.d.ts.map +1 -0
  17. package/funcs/accountingAgedCreditorsGet.js +128 -0
  18. package/funcs/accountingAgedCreditorsGet.js.map +1 -0
  19. package/funcs/accountingAttachmentsUpload.d.ts +17 -0
  20. package/funcs/accountingAttachmentsUpload.d.ts.map +1 -0
  21. package/funcs/accountingAttachmentsUpload.js +141 -0
  22. package/funcs/accountingAttachmentsUpload.js.map +1 -0
  23. package/funcs/crmPipelinesCreate.d.ts +17 -0
  24. package/funcs/crmPipelinesCreate.d.ts.map +1 -0
  25. package/funcs/crmPipelinesCreate.js +127 -0
  26. package/funcs/crmPipelinesCreate.js.map +1 -0
  27. package/funcs/crmPipelinesDelete.d.ts +17 -0
  28. package/funcs/crmPipelinesDelete.d.ts.map +1 -0
  29. package/funcs/crmPipelinesDelete.js +132 -0
  30. package/funcs/crmPipelinesDelete.js.map +1 -0
  31. package/funcs/crmPipelinesGet.d.ts +17 -0
  32. package/funcs/crmPipelinesGet.d.ts.map +1 -0
  33. package/funcs/crmPipelinesGet.js +133 -0
  34. package/funcs/crmPipelinesGet.js.map +1 -0
  35. package/funcs/crmPipelinesUpdate.d.ts +17 -0
  36. package/funcs/crmPipelinesUpdate.d.ts.map +1 -0
  37. package/funcs/crmPipelinesUpdate.js +133 -0
  38. package/funcs/crmPipelinesUpdate.js.map +1 -0
  39. package/funcs/fileStorageUploadSessionsUpload.d.ts +17 -0
  40. package/funcs/fileStorageUploadSessionsUpload.d.ts.map +1 -0
  41. package/funcs/fileStorageUploadSessionsUpload.js +139 -0
  42. package/funcs/fileStorageUploadSessionsUpload.js.map +1 -0
  43. package/hooks/types.d.ts +1 -1
  44. package/hooks/types.d.ts.map +1 -1
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +4 -4
  47. package/lib/config.js +4 -4
  48. package/lib/security.d.ts +4 -3
  49. package/lib/security.d.ts.map +1 -1
  50. package/lib/security.js +6 -1
  51. package/lib/security.js.map +1 -1
  52. package/models/components/{accountinglocation.d.ts → accountinglocationinput.d.ts} +58 -58
  53. package/models/components/accountinglocationinput.d.ts.map +1 -0
  54. package/models/components/{accountinglocation.js → accountinglocationinput.js} +56 -56
  55. package/models/components/accountinglocationinput.js.map +1 -0
  56. package/models/components/address.d.ts +8 -8
  57. package/models/components/address.d.ts.map +1 -1
  58. package/models/components/address.js +13 -14
  59. package/models/components/address.js.map +1 -1
  60. package/models/components/agedcreditors.d.ts +51 -0
  61. package/models/components/agedcreditors.d.ts.map +1 -0
  62. package/models/components/agedcreditors.js +88 -0
  63. package/models/components/agedcreditors.js.map +1 -0
  64. package/models/components/{applicant.d.ts → applicantinput.d.ts} +79 -79
  65. package/models/components/applicantinput.d.ts.map +1 -0
  66. package/models/components/{applicant.js → applicantinput.js} +85 -85
  67. package/models/components/applicantinput.js.map +1 -0
  68. package/models/components/billlineitem.d.ts +4 -4
  69. package/models/components/{billpayment.d.ts → billpaymentinput.d.ts} +102 -102
  70. package/models/components/billpaymentinput.d.ts.map +1 -0
  71. package/models/components/{billpayment.js → billpaymentinput.js} +100 -100
  72. package/models/components/billpaymentinput.js.map +1 -0
  73. package/models/components/connectionimportdata.d.ts +15 -15
  74. package/models/components/connectionimportdata.d.ts.map +1 -1
  75. package/models/components/connectionimportdata.js +18 -19
  76. package/models/components/connectionimportdata.js.map +1 -1
  77. package/models/components/{connection.d.ts → connectioninput.d.ts} +139 -139
  78. package/models/components/connectioninput.d.ts.map +1 -0
  79. package/models/components/{connection.js → connectioninput.js} +150 -150
  80. package/models/components/connectioninput.js.map +1 -0
  81. package/models/components/consumerconnection.d.ts +6 -26
  82. package/models/components/consumerconnection.d.ts.map +1 -1
  83. package/models/components/consumerconnection.js +3 -26
  84. package/models/components/consumerconnection.js.map +1 -1
  85. package/models/components/{contact.d.ts → contactinput.d.ts} +71 -71
  86. package/models/components/contactinput.d.ts.map +1 -0
  87. package/models/components/{contact.js → contactinput.js} +72 -71
  88. package/models/components/{contact.js.map → contactinput.js.map} +1 -1
  89. package/models/components/createattachmentresponse.d.ts +70 -0
  90. package/models/components/createattachmentresponse.d.ts.map +1 -0
  91. package/models/components/createattachmentresponse.js +83 -0
  92. package/models/components/createattachmentresponse.js.map +1 -0
  93. package/models/components/createconnectionresponse.d.ts +1 -1
  94. package/models/components/createconnectionresponse.d.ts.map +1 -1
  95. package/models/components/createconnectionresponse.js +3 -3
  96. package/models/components/createconnectionresponse.js.map +1 -1
  97. package/models/components/createpipelineresponse.d.ts +70 -0
  98. package/models/components/createpipelineresponse.d.ts.map +1 -0
  99. package/models/components/createpipelineresponse.js +83 -0
  100. package/models/components/createpipelineresponse.js.map +1 -0
  101. package/models/components/{creditnote.d.ts → creditnoteinput.d.ts} +74 -74
  102. package/models/components/creditnoteinput.d.ts.map +1 -0
  103. package/models/components/{creditnote.js → creditnoteinput.js} +69 -69
  104. package/models/components/creditnoteinput.js.map +1 -0
  105. package/models/components/{customer.d.ts → customerinput.d.ts} +70 -70
  106. package/models/components/customerinput.d.ts.map +1 -0
  107. package/models/components/{customer.js → customerinput.js} +64 -64
  108. package/models/components/customerinput.js.map +1 -0
  109. package/models/components/deletepipelineresponse.d.ts +70 -0
  110. package/models/components/deletepipelineresponse.d.ts.map +1 -0
  111. package/models/components/deletepipelineresponse.js +83 -0
  112. package/models/components/deletepipelineresponse.js.map +1 -0
  113. package/models/components/{employeecompensation.d.ts → employeecompensationinput.d.ts} +37 -37
  114. package/models/components/employeecompensationinput.d.ts.map +1 -0
  115. package/models/components/{employeecompensation.js → employeecompensationinput.js} +36 -36
  116. package/models/components/employeecompensationinput.js.map +1 -0
  117. package/models/components/{employee.d.ts → employeeinput.d.ts} +70 -65
  118. package/models/components/employeeinput.d.ts.map +1 -0
  119. package/models/components/{employee.js → employeeinput.js} +67 -63
  120. package/models/components/employeeinput.js.map +1 -0
  121. package/models/components/employeeschedules.d.ts +1 -1
  122. package/models/components/employeeschedules.d.ts.map +1 -1
  123. package/models/components/employeeschedules.js +3 -3
  124. package/models/components/employeeschedules.js.map +1 -1
  125. package/models/components/employeesfilter.d.ts +5 -0
  126. package/models/components/employeesfilter.d.ts.map +1 -1
  127. package/models/components/employeesfilter.js +2 -0
  128. package/models/components/employeesfilter.js.map +1 -1
  129. package/models/components/{expense.d.ts → expenseinput.d.ts} +61 -61
  130. package/models/components/expenseinput.d.ts.map +1 -0
  131. package/models/components/{expense.js → expenseinput.js} +56 -56
  132. package/models/components/expenseinput.js.map +1 -0
  133. package/models/components/expenselineitem.d.ts +11 -6
  134. package/models/components/expenselineitem.d.ts.map +1 -1
  135. package/models/components/expenselineitem.js +8 -4
  136. package/models/components/expenselineitem.js.map +1 -1
  137. package/models/components/expenselineiteminput.d.ts +11 -6
  138. package/models/components/expenselineiteminput.d.ts.map +1 -1
  139. package/models/components/expenselineiteminput.js +8 -4
  140. package/models/components/expenselineiteminput.js.map +1 -1
  141. package/models/components/formfieldoption.d.ts +10 -2
  142. package/models/components/formfieldoption.d.ts.map +1 -1
  143. package/models/components/formfieldoption.js +12 -4
  144. package/models/components/formfieldoption.js.map +1 -1
  145. package/models/components/formfieldoptiongroup.d.ts +29 -4
  146. package/models/components/formfieldoptiongroup.d.ts.map +1 -1
  147. package/models/components/formfieldoptiongroup.js +34 -5
  148. package/models/components/formfieldoptiongroup.js.map +1 -1
  149. package/models/components/getaccountinglocationresponse.d.ts +1 -1
  150. package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
  151. package/models/components/getaccountinglocationresponse.js +3 -3
  152. package/models/components/getaccountinglocationresponse.js.map +1 -1
  153. package/models/components/getaccountinglocationsresponse.d.ts +1 -1
  154. package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
  155. package/models/components/getaccountinglocationsresponse.js +3 -3
  156. package/models/components/getaccountinglocationsresponse.js.map +1 -1
  157. package/models/components/getagedcreditorsresponse.d.ts +67 -0
  158. package/models/components/getagedcreditorsresponse.d.ts.map +1 -0
  159. package/models/components/getagedcreditorsresponse.js +83 -0
  160. package/models/components/getagedcreditorsresponse.js.map +1 -0
  161. package/models/components/getapplicantresponse.d.ts +1 -1
  162. package/models/components/getapplicantresponse.d.ts.map +1 -1
  163. package/models/components/getapplicantresponse.js +3 -3
  164. package/models/components/getapplicantresponse.js.map +1 -1
  165. package/models/components/getapplicantsresponse.d.ts +1 -1
  166. package/models/components/getapplicantsresponse.d.ts.map +1 -1
  167. package/models/components/getapplicantsresponse.js +3 -3
  168. package/models/components/getapplicantsresponse.js.map +1 -1
  169. package/models/components/getbillpaymentresponse.d.ts +1 -1
  170. package/models/components/getbillpaymentresponse.d.ts.map +1 -1
  171. package/models/components/getbillpaymentresponse.js +3 -3
  172. package/models/components/getbillpaymentresponse.js.map +1 -1
  173. package/models/components/getbillpaymentsresponse.d.ts +1 -1
  174. package/models/components/getbillpaymentsresponse.d.ts.map +1 -1
  175. package/models/components/getbillpaymentsresponse.js +3 -3
  176. package/models/components/getbillpaymentsresponse.js.map +1 -1
  177. package/models/components/getconnectionresponse.d.ts +1 -1
  178. package/models/components/getconnectionresponse.d.ts.map +1 -1
  179. package/models/components/getconnectionresponse.js +3 -3
  180. package/models/components/getconnectionresponse.js.map +1 -1
  181. package/models/components/getconnectionsresponse.d.ts +1 -1
  182. package/models/components/getconnectionsresponse.d.ts.map +1 -1
  183. package/models/components/getconnectionsresponse.js +3 -3
  184. package/models/components/getconnectionsresponse.js.map +1 -1
  185. package/models/components/getcontactresponse.d.ts +1 -1
  186. package/models/components/getcontactresponse.d.ts.map +1 -1
  187. package/models/components/getcontactresponse.js +3 -3
  188. package/models/components/getcontactresponse.js.map +1 -1
  189. package/models/components/getcontactsresponse.d.ts +1 -1
  190. package/models/components/getcontactsresponse.d.ts.map +1 -1
  191. package/models/components/getcontactsresponse.js +3 -3
  192. package/models/components/getcontactsresponse.js.map +1 -1
  193. package/models/components/getcreditnoteresponse.d.ts +1 -1
  194. package/models/components/getcreditnoteresponse.d.ts.map +1 -1
  195. package/models/components/getcreditnoteresponse.js +3 -3
  196. package/models/components/getcreditnoteresponse.js.map +1 -1
  197. package/models/components/getcreditnotesresponse.d.ts +1 -1
  198. package/models/components/getcreditnotesresponse.d.ts.map +1 -1
  199. package/models/components/getcreditnotesresponse.js +3 -3
  200. package/models/components/getcreditnotesresponse.js.map +1 -1
  201. package/models/components/getcustomerresponse.d.ts +1 -1
  202. package/models/components/getcustomerresponse.d.ts.map +1 -1
  203. package/models/components/getcustomerresponse.js +3 -3
  204. package/models/components/getcustomerresponse.js.map +1 -1
  205. package/models/components/getcustomersresponse.d.ts +1 -1
  206. package/models/components/getcustomersresponse.d.ts.map +1 -1
  207. package/models/components/getcustomersresponse.js +3 -3
  208. package/models/components/getcustomersresponse.js.map +1 -1
  209. package/models/components/getemployeeresponse.d.ts +1 -1
  210. package/models/components/getemployeeresponse.d.ts.map +1 -1
  211. package/models/components/getemployeeresponse.js +3 -3
  212. package/models/components/getemployeeresponse.js.map +1 -1
  213. package/models/components/getemployeesresponse.d.ts +1 -1
  214. package/models/components/getemployeesresponse.d.ts.map +1 -1
  215. package/models/components/getemployeesresponse.js +3 -3
  216. package/models/components/getemployeesresponse.js.map +1 -1
  217. package/models/components/getexpenseresponse.d.ts +1 -1
  218. package/models/components/getexpenseresponse.d.ts.map +1 -1
  219. package/models/components/getexpenseresponse.js +3 -3
  220. package/models/components/getexpenseresponse.js.map +1 -1
  221. package/models/components/getexpensesresponse.d.ts +1 -1
  222. package/models/components/getexpensesresponse.d.ts.map +1 -1
  223. package/models/components/getexpensesresponse.js +3 -3
  224. package/models/components/getexpensesresponse.js.map +1 -1
  225. package/models/components/gethriscompaniesresponse.d.ts +1 -1
  226. package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
  227. package/models/components/gethriscompaniesresponse.js +3 -3
  228. package/models/components/gethriscompaniesresponse.js.map +1 -1
  229. package/models/components/gethriscompanyresponse.d.ts +1 -1
  230. package/models/components/gethriscompanyresponse.d.ts.map +1 -1
  231. package/models/components/gethriscompanyresponse.js +3 -3
  232. package/models/components/gethriscompanyresponse.js.map +1 -1
  233. package/models/components/getinvoiceresponse.d.ts +1 -1
  234. package/models/components/getinvoiceresponse.d.ts.map +1 -1
  235. package/models/components/getinvoiceresponse.js +3 -3
  236. package/models/components/getinvoiceresponse.js.map +1 -1
  237. package/models/components/getinvoicesresponse.d.ts +1 -1
  238. package/models/components/getinvoicesresponse.d.ts.map +1 -1
  239. package/models/components/getinvoicesresponse.js +3 -3
  240. package/models/components/getinvoicesresponse.js.map +1 -1
  241. package/models/components/getledgeraccountresponse.d.ts +1 -1
  242. package/models/components/getledgeraccountresponse.d.ts.map +1 -1
  243. package/models/components/getledgeraccountresponse.js +3 -3
  244. package/models/components/getledgeraccountresponse.js.map +1 -1
  245. package/models/components/getledgeraccountsresponse.d.ts +1 -1
  246. package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
  247. package/models/components/getledgeraccountsresponse.js +3 -3
  248. package/models/components/getledgeraccountsresponse.js.map +1 -1
  249. package/models/components/getpipelineresponse.d.ts +67 -0
  250. package/models/components/getpipelineresponse.d.ts.map +1 -0
  251. package/models/components/getpipelineresponse.js +83 -0
  252. package/models/components/getpipelineresponse.js.map +1 -0
  253. package/models/components/getsupplierresponse.d.ts +1 -1
  254. package/models/components/getsupplierresponse.d.ts.map +1 -1
  255. package/models/components/getsupplierresponse.js +3 -3
  256. package/models/components/getsupplierresponse.js.map +1 -1
  257. package/models/components/getsuppliersresponse.d.ts +1 -1
  258. package/models/components/getsuppliersresponse.d.ts.map +1 -1
  259. package/models/components/getsuppliersresponse.js +3 -3
  260. package/models/components/getsuppliersresponse.js.map +1 -1
  261. package/models/components/getticketresponse.d.ts +1 -1
  262. package/models/components/getticketresponse.d.ts.map +1 -1
  263. package/models/components/getticketresponse.js +3 -3
  264. package/models/components/getticketresponse.js.map +1 -1
  265. package/models/components/getticketsresponse.d.ts +1 -1
  266. package/models/components/getticketsresponse.d.ts.map +1 -1
  267. package/models/components/getticketsresponse.js +3 -3
  268. package/models/components/getticketsresponse.js.map +1 -1
  269. package/models/components/{hriscompany.d.ts → hriscompanyinput.d.ts} +55 -55
  270. package/models/components/hriscompanyinput.d.ts.map +1 -0
  271. package/models/components/{hriscompany.js → hriscompanyinput.js} +54 -54
  272. package/models/components/hriscompanyinput.js.map +1 -0
  273. package/models/components/index.d.ts +26 -16
  274. package/models/components/index.d.ts.map +1 -1
  275. package/models/components/index.js +26 -16
  276. package/models/components/index.js.map +1 -1
  277. package/models/components/{invoice.d.ts → invoiceinput.d.ts} +74 -74
  278. package/models/components/invoiceinput.d.ts.map +1 -0
  279. package/models/components/{invoice.js → invoiceinput.js} +72 -72
  280. package/models/components/{invoice.js.map → invoiceinput.js.map} +1 -1
  281. package/models/components/invoiceitem.d.ts +46 -0
  282. package/models/components/invoiceitem.d.ts.map +1 -1
  283. package/models/components/invoiceitem.js +34 -0
  284. package/models/components/invoiceitem.js.map +1 -1
  285. package/models/components/{invoicelineitem.d.ts → invoicelineiteminput.d.ts} +59 -59
  286. package/models/components/invoicelineiteminput.d.ts.map +1 -0
  287. package/models/components/{invoicelineitem.js → invoicelineiteminput.js} +54 -54
  288. package/models/components/invoicelineiteminput.js.map +1 -0
  289. package/models/components/journalentrylineitem.d.ts +16 -6
  290. package/models/components/journalentrylineitem.d.ts.map +1 -1
  291. package/models/components/journalentrylineitem.js +12 -4
  292. package/models/components/journalentrylineitem.js.map +1 -1
  293. package/models/components/{ledgeraccount.d.ts → ledgeraccountinput.d.ts} +129 -129
  294. package/models/components/ledgeraccountinput.d.ts.map +1 -0
  295. package/models/components/{ledgeraccount.js → ledgeraccountinput.js} +128 -128
  296. package/models/components/ledgeraccountinput.js.map +1 -0
  297. package/models/components/linkedecommercecustomer.d.ts +6 -6
  298. package/models/components/linkedecommercecustomer.d.ts.map +1 -1
  299. package/models/components/linkedecommercecustomer.js +6 -6
  300. package/models/components/linkedecommercecustomer.js.map +1 -1
  301. package/models/components/outstandingbalancebysupplier.d.ts +40 -0
  302. package/models/components/outstandingbalancebysupplier.d.ts.map +1 -0
  303. package/models/components/outstandingbalancebysupplier.js +77 -0
  304. package/models/components/outstandingbalancebysupplier.js.map +1 -0
  305. package/models/components/pipelineinput.d.ts +117 -0
  306. package/models/components/pipelineinput.d.ts.map +1 -0
  307. package/models/components/pipelineinput.js +133 -0
  308. package/models/components/pipelineinput.js.map +1 -0
  309. package/models/components/purchaseorder.d.ts +6 -1
  310. package/models/components/purchaseorder.d.ts.map +1 -1
  311. package/models/components/purchaseorder.js +14 -5
  312. package/models/components/purchaseorder.js.map +1 -1
  313. package/models/components/simpleformfieldoption.d.ts +27 -2
  314. package/models/components/simpleformfieldoption.d.ts.map +1 -1
  315. package/models/components/simpleformfieldoption.js +33 -3
  316. package/models/components/simpleformfieldoption.js.map +1 -1
  317. package/models/components/{supplier.d.ts → supplierinput.d.ts} +70 -70
  318. package/models/components/supplierinput.d.ts.map +1 -0
  319. package/models/components/{supplier.js → supplierinput.js} +64 -64
  320. package/models/components/supplierinput.js.map +1 -0
  321. package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
  322. package/models/components/ticketinput.d.ts.map +1 -0
  323. package/models/components/{ticket.js → ticketinput.js} +59 -59
  324. package/models/components/ticketinput.js.map +1 -0
  325. package/models/components/updateconnectionresponse.d.ts +1 -1
  326. package/models/components/updateconnectionresponse.d.ts.map +1 -1
  327. package/models/components/updateconnectionresponse.js +3 -3
  328. package/models/components/updateconnectionresponse.js.map +1 -1
  329. package/models/components/updatepipelineresponse.d.ts +70 -0
  330. package/models/components/updatepipelineresponse.d.ts.map +1 -0
  331. package/models/components/updatepipelineresponse.js +83 -0
  332. package/models/components/updatepipelineresponse.js.map +1 -0
  333. package/models/components/updateuploadsessionresponse.d.ts +70 -0
  334. package/models/components/updateuploadsessionresponse.d.ts.map +1 -0
  335. package/models/components/updateuploadsessionresponse.js +83 -0
  336. package/models/components/updateuploadsessionresponse.js.map +1 -0
  337. package/models/operations/accountingagedcreditorsone.d.ts +135 -0
  338. package/models/operations/accountingagedcreditorsone.d.ts.map +1 -0
  339. package/models/operations/accountingagedcreditorsone.js +157 -0
  340. package/models/operations/accountingagedcreditorsone.js.map +1 -0
  341. package/models/operations/accountingattachmentsupload.d.ts +134 -0
  342. package/models/operations/accountingattachmentsupload.d.ts.map +1 -0
  343. package/models/operations/accountingattachmentsupload.js +178 -0
  344. package/models/operations/accountingattachmentsupload.js.map +1 -0
  345. package/models/operations/crmpipelinesadd.d.ts +118 -0
  346. package/models/operations/crmpipelinesadd.d.ts.map +1 -0
  347. package/models/operations/crmpipelinesadd.js +153 -0
  348. package/models/operations/crmpipelinesadd.js.map +1 -0
  349. package/models/operations/crmpipelinesdelete.d.ts +121 -0
  350. package/models/operations/crmpipelinesdelete.d.ts.map +1 -0
  351. package/models/operations/crmpipelinesdelete.js +145 -0
  352. package/models/operations/crmpipelinesdelete.js.map +1 -0
  353. package/models/operations/crmpipelinesone.d.ts +126 -0
  354. package/models/operations/crmpipelinesone.d.ts.map +1 -0
  355. package/models/operations/crmpipelinesone.js +145 -0
  356. package/models/operations/crmpipelinesone.js.map +1 -0
  357. package/models/operations/crmpipelinesupdate.d.ts +123 -0
  358. package/models/operations/crmpipelinesupdate.d.ts.map +1 -0
  359. package/models/operations/crmpipelinesupdate.js +155 -0
  360. package/models/operations/crmpipelinesupdate.js.map +1 -0
  361. package/models/operations/filestorageuploadsessionsupload.d.ts +134 -0
  362. package/models/operations/filestorageuploadsessionsupload.d.ts.map +1 -0
  363. package/models/operations/filestorageuploadsessionsupload.js +174 -0
  364. package/models/operations/filestorageuploadsessionsupload.js.map +1 -0
  365. package/models/operations/index.d.ts +7 -0
  366. package/models/operations/index.d.ts.map +1 -1
  367. package/models/operations/index.js +7 -0
  368. package/models/operations/index.js.map +1 -1
  369. package/package.json +1 -1
  370. package/sdk/accounting.d.ts +3 -0
  371. package/sdk/accounting.d.ts.map +1 -1
  372. package/sdk/accounting.js +4 -0
  373. package/sdk/accounting.js.map +1 -1
  374. package/sdk/agedcreditors.d.ts +12 -0
  375. package/sdk/agedcreditors.d.ts.map +1 -0
  376. package/sdk/agedcreditors.js +22 -0
  377. package/sdk/agedcreditors.js.map +1 -0
  378. package/sdk/attachments.d.ts +7 -0
  379. package/sdk/attachments.d.ts.map +1 -1
  380. package/sdk/attachments.js +10 -0
  381. package/sdk/attachments.js.map +1 -1
  382. package/sdk/pipelines.d.ts +28 -0
  383. package/sdk/pipelines.d.ts.map +1 -1
  384. package/sdk/pipelines.js +41 -0
  385. package/sdk/pipelines.js.map +1 -1
  386. package/sdk/uploadsessions.d.ts +7 -0
  387. package/sdk/uploadsessions.d.ts.map +1 -1
  388. package/sdk/uploadsessions.js +10 -0
  389. package/sdk/uploadsessions.js.map +1 -1
  390. package/src/funcs/accountingAgedCreditorsGet.ts +228 -0
  391. package/src/funcs/accountingAttachmentsUpload.ts +241 -0
  392. package/src/funcs/crmPipelinesCreate.ts +214 -0
  393. package/src/funcs/crmPipelinesDelete.ts +220 -0
  394. package/src/funcs/crmPipelinesGet.ts +221 -0
  395. package/src/funcs/crmPipelinesUpdate.ts +221 -0
  396. package/src/funcs/fileStorageUploadSessionsUpload.ts +239 -0
  397. package/src/hooks/types.ts +1 -1
  398. package/src/lib/config.ts +4 -4
  399. package/src/lib/security.ts +11 -3
  400. package/src/models/components/address.ts +15 -14
  401. package/src/models/components/agedcreditors.ts +120 -0
  402. package/src/models/components/billlineitem.ts +4 -4
  403. package/src/models/components/connectionimportdata.ts +24 -33
  404. package/src/models/components/consumerconnection.ts +4 -53
  405. package/src/models/components/{contact.ts → contactinput.ts} +232 -233
  406. package/src/models/components/createattachmentresponse.ts +131 -0
  407. package/src/models/components/createconnectionresponse.ts +1 -1
  408. package/src/models/components/createpipelineresponse.ts +131 -0
  409. package/src/models/components/{creditnote.ts → creditnoteinput.ts} +131 -131
  410. package/src/models/components/deletepipelineresponse.ts +131 -0
  411. package/src/models/components/{employee.ts → employeeinput.ts} +123 -114
  412. package/src/models/components/employeeschedules.ts +1 -1
  413. package/src/models/components/employeesfilter.ts +7 -0
  414. package/src/models/components/{expense.ts → expenseinput.ts} +166 -166
  415. package/src/models/components/expenselineitem.ts +19 -10
  416. package/src/models/components/expenselineiteminput.ts +19 -10
  417. package/src/models/components/formfieldoption.ts +25 -7
  418. package/src/models/components/formfieldoptiongroup.ts +50 -8
  419. package/src/models/components/getaccountinglocationresponse.ts +1 -1
  420. package/src/models/components/getaccountinglocationsresponse.ts +1 -1
  421. package/src/models/components/getagedcreditorsresponse.ts +128 -0
  422. package/src/models/components/getapplicantresponse.ts +1 -1
  423. package/src/models/components/getapplicantsresponse.ts +1 -1
  424. package/src/models/components/getbillpaymentresponse.ts +1 -1
  425. package/src/models/components/getbillpaymentsresponse.ts +1 -1
  426. package/src/models/components/getconnectionresponse.ts +1 -1
  427. package/src/models/components/getconnectionsresponse.ts +1 -1
  428. package/src/models/components/getcontactresponse.ts +1 -1
  429. package/src/models/components/getcontactsresponse.ts +1 -1
  430. package/src/models/components/getcreditnoteresponse.ts +1 -1
  431. package/src/models/components/getcreditnotesresponse.ts +1 -1
  432. package/src/models/components/getcustomerresponse.ts +1 -1
  433. package/src/models/components/getcustomersresponse.ts +1 -1
  434. package/src/models/components/getemployeeresponse.ts +1 -1
  435. package/src/models/components/getemployeesresponse.ts +1 -1
  436. package/src/models/components/getexpenseresponse.ts +1 -1
  437. package/src/models/components/getexpensesresponse.ts +1 -1
  438. package/src/models/components/gethriscompaniesresponse.ts +1 -1
  439. package/src/models/components/gethriscompanyresponse.ts +1 -1
  440. package/src/models/components/getinvoiceresponse.ts +1 -1
  441. package/src/models/components/getinvoicesresponse.ts +1 -1
  442. package/src/models/components/getledgeraccountresponse.ts +1 -1
  443. package/src/models/components/getledgeraccountsresponse.ts +1 -1
  444. package/src/models/components/getpipelineresponse.ts +128 -0
  445. package/src/models/components/getsupplierresponse.ts +1 -1
  446. package/src/models/components/getsuppliersresponse.ts +1 -1
  447. package/src/models/components/getticketresponse.ts +1 -1
  448. package/src/models/components/getticketsresponse.ts +1 -1
  449. package/src/models/components/index.ts +26 -16
  450. package/src/models/components/{invoice.ts → invoiceinput.ts} +274 -274
  451. package/src/models/components/invoiceitem.ts +74 -0
  452. package/src/models/components/{invoicelineitem.ts → invoicelineiteminput.ts} +104 -104
  453. package/src/models/components/journalentrylineitem.ts +28 -10
  454. package/src/models/components/linkedecommercecustomer.ts +12 -12
  455. package/src/models/components/outstandingbalancebysupplier.ts +109 -0
  456. package/src/models/components/pipelineinput.ts +233 -0
  457. package/src/models/components/purchaseorder.ts +19 -1
  458. package/src/models/components/simpleformfieldoption.ts +42 -4
  459. package/src/models/components/updateconnectionresponse.ts +1 -1
  460. package/src/models/components/updatepipelineresponse.ts +131 -0
  461. package/src/models/components/updateuploadsessionresponse.ts +133 -0
  462. package/src/models/operations/accountingagedcreditorsone.ts +291 -0
  463. package/src/models/operations/accountingattachmentsupload.ts +318 -0
  464. package/src/models/operations/crmpipelinesadd.ts +264 -0
  465. package/src/models/operations/crmpipelinesdelete.ts +259 -0
  466. package/src/models/operations/crmpipelinesone.ts +262 -0
  467. package/src/models/operations/crmpipelinesupdate.ts +271 -0
  468. package/src/models/operations/filestorageuploadsessionsupload.ts +326 -0
  469. package/src/models/operations/index.ts +7 -0
  470. package/src/sdk/accounting.ts +6 -0
  471. package/src/sdk/agedcreditors.ts +27 -0
  472. package/src/sdk/attachments.ts +18 -0
  473. package/src/sdk/pipelines.ts +73 -0
  474. package/src/sdk/uploadsessions.ts +18 -0
  475. package/models/components/accountinglocation.d.ts.map +0 -1
  476. package/models/components/accountinglocation.js.map +0 -1
  477. package/models/components/applicant.d.ts.map +0 -1
  478. package/models/components/applicant.js.map +0 -1
  479. package/models/components/billpayment.d.ts.map +0 -1
  480. package/models/components/billpayment.js.map +0 -1
  481. package/models/components/connection.d.ts.map +0 -1
  482. package/models/components/connection.js.map +0 -1
  483. package/models/components/contact.d.ts.map +0 -1
  484. package/models/components/creditnote.d.ts.map +0 -1
  485. package/models/components/creditnote.js.map +0 -1
  486. package/models/components/customer.d.ts.map +0 -1
  487. package/models/components/customer.js.map +0 -1
  488. package/models/components/employee.d.ts.map +0 -1
  489. package/models/components/employee.js.map +0 -1
  490. package/models/components/employeecompensation.d.ts.map +0 -1
  491. package/models/components/employeecompensation.js.map +0 -1
  492. package/models/components/expense.d.ts.map +0 -1
  493. package/models/components/expense.js.map +0 -1
  494. package/models/components/hriscompany.d.ts.map +0 -1
  495. package/models/components/hriscompany.js.map +0 -1
  496. package/models/components/invoice.d.ts.map +0 -1
  497. package/models/components/invoicelineitem.d.ts.map +0 -1
  498. package/models/components/invoicelineitem.js.map +0 -1
  499. package/models/components/ledgeraccount.d.ts.map +0 -1
  500. package/models/components/ledgeraccount.js.map +0 -1
  501. package/models/components/supplier.d.ts.map +0 -1
  502. package/models/components/supplier.js.map +0 -1
  503. package/models/components/ticket.d.ts.map +0 -1
  504. package/models/components/ticket.js.map +0 -1
  505. package/src/models/components/{accountinglocation.ts → accountinglocationinput.ts} +106 -106
  506. package/src/models/components/{applicant.ts → applicantinput.ts} +157 -157
  507. package/src/models/components/{billpayment.ts → billpaymentinput.ts} +183 -183
  508. package/src/models/components/{connection.ts → connectioninput.ts} +347 -347
  509. package/src/models/components/{customer.ts → customerinput.ts} +121 -121
  510. package/src/models/components/{employeecompensation.ts → employeecompensationinput.ts} +58 -58
  511. package/src/models/components/{hriscompany.ts → hriscompanyinput.ts} +101 -101
  512. package/src/models/components/{ledgeraccount.ts → ledgeraccountinput.ts} +253 -253
  513. package/src/models/components/{supplier.ts → supplierinput.ts} +121 -121
  514. package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
@@ -59,6 +59,52 @@ import {
59
59
  WebhookSubscription$outboundSchema,
60
60
  } from "./webhooksubscription.js";
61
61
 
62
+ export type Value5 = string | number | number;
63
+
64
+ export type ConnectionValue =
65
+ | string
66
+ | number
67
+ | number
68
+ | boolean
69
+ | Array<string | number | number>;
70
+
71
+ export type ConnectionDefaults = {
72
+ id?: string | undefined;
73
+ options?: Array<FormFieldOption> | undefined;
74
+ value?:
75
+ | string
76
+ | number
77
+ | number
78
+ | boolean
79
+ | Array<string | number | number>
80
+ | undefined;
81
+ };
82
+
83
+ export type ConnectionConfiguration = {
84
+ resource?: string | undefined;
85
+ defaults?: Array<ConnectionDefaults> | undefined;
86
+ };
87
+
88
+ export type ConnectionInput = {
89
+ /**
90
+ * Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
91
+ */
92
+ enabled?: boolean | undefined;
93
+ /**
94
+ * Connection settings. Values will persist to `form_fields` with corresponding id
95
+ */
96
+ settings?: { [k: string]: any } | null | undefined;
97
+ /**
98
+ * Attach your own consumer specific metadata
99
+ */
100
+ metadata?: { [k: string]: any } | null | undefined;
101
+ configuration?: Array<ConnectionConfiguration> | undefined;
102
+ /**
103
+ * List of custom mappings configured for this connection
104
+ */
105
+ customMappings?: Array<CustomMappingInput> | undefined;
106
+ };
107
+
62
108
  /**
63
109
  * Status of the connection.
64
110
  */
@@ -78,15 +124,6 @@ export const Target = {
78
124
  } as const;
79
125
  export type Target = ClosedEnum<typeof Target>;
80
126
 
81
- export type Value5 = string | number | number;
82
-
83
- export type ConnectionValue =
84
- | string
85
- | number
86
- | number
87
- | boolean
88
- | Array<string | number | number>;
89
-
90
127
  export type Defaults = {
91
128
  target?: Target | undefined;
92
129
  id?: string | undefined;
@@ -202,83 +239,6 @@ export type Connection = {
202
239
  updatedAt?: number | null | undefined;
203
240
  };
204
241
 
205
- export type ConnectionDefaults = {
206
- id?: string | undefined;
207
- options?: Array<FormFieldOption> | undefined;
208
- value?:
209
- | string
210
- | number
211
- | number
212
- | boolean
213
- | Array<string | number | number>
214
- | undefined;
215
- };
216
-
217
- export type ConnectionConfiguration = {
218
- resource?: string | undefined;
219
- defaults?: Array<ConnectionDefaults> | undefined;
220
- };
221
-
222
- export type ConnectionInput = {
223
- /**
224
- * Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
225
- */
226
- enabled?: boolean | undefined;
227
- /**
228
- * Connection settings. Values will persist to `form_fields` with corresponding id
229
- */
230
- settings?: { [k: string]: any } | null | undefined;
231
- /**
232
- * Attach your own consumer specific metadata
233
- */
234
- metadata?: { [k: string]: any } | null | undefined;
235
- configuration?: Array<ConnectionConfiguration> | undefined;
236
- /**
237
- * List of custom mappings configured for this connection
238
- */
239
- customMappings?: Array<CustomMappingInput> | undefined;
240
- };
241
-
242
- /** @internal */
243
- export const ConnectionStatus$inboundSchema: z.ZodNativeEnum<
244
- typeof ConnectionStatus
245
- > = z.nativeEnum(ConnectionStatus);
246
-
247
- /** @internal */
248
- export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
249
- typeof ConnectionStatus
250
- > = ConnectionStatus$inboundSchema;
251
-
252
- /**
253
- * @internal
254
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
255
- */
256
- export namespace ConnectionStatus$ {
257
- /** @deprecated use `ConnectionStatus$inboundSchema` instead. */
258
- export const inboundSchema = ConnectionStatus$inboundSchema;
259
- /** @deprecated use `ConnectionStatus$outboundSchema` instead. */
260
- export const outboundSchema = ConnectionStatus$outboundSchema;
261
- }
262
-
263
- /** @internal */
264
- export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
265
- .nativeEnum(Target);
266
-
267
- /** @internal */
268
- export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
269
- Target$inboundSchema;
270
-
271
- /**
272
- * @internal
273
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
274
- */
275
- export namespace Target$ {
276
- /** @deprecated use `Target$inboundSchema` instead. */
277
- export const inboundSchema = Target$inboundSchema;
278
- /** @deprecated use `Target$outboundSchema` instead. */
279
- export const outboundSchema = Target$outboundSchema;
280
- }
281
-
282
242
  /** @internal */
283
243
  export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
284
244
  .union([z.string(), z.number().int(), z.number()]);
@@ -384,12 +344,11 @@ export function connectionValueFromJSON(
384
344
  }
385
345
 
386
346
  /** @internal */
387
- export const Defaults$inboundSchema: z.ZodType<
388
- Defaults,
347
+ export const ConnectionDefaults$inboundSchema: z.ZodType<
348
+ ConnectionDefaults,
389
349
  z.ZodTypeDef,
390
350
  unknown
391
351
  > = z.object({
392
- target: Target$inboundSchema.optional(),
393
352
  id: z.string().optional(),
394
353
  options: z.array(FormFieldOption$inboundSchema).optional(),
395
354
  value: z.union([
@@ -402,8 +361,7 @@ export const Defaults$inboundSchema: z.ZodType<
402
361
  });
403
362
 
404
363
  /** @internal */
405
- export type Defaults$Outbound = {
406
- target?: string | undefined;
364
+ export type ConnectionDefaults$Outbound = {
407
365
  id?: string | undefined;
408
366
  options?: Array<FormFieldOption$Outbound> | undefined;
409
367
  value?:
@@ -416,12 +374,11 @@ export type Defaults$Outbound = {
416
374
  };
417
375
 
418
376
  /** @internal */
419
- export const Defaults$outboundSchema: z.ZodType<
420
- Defaults$Outbound,
377
+ export const ConnectionDefaults$outboundSchema: z.ZodType<
378
+ ConnectionDefaults$Outbound,
421
379
  z.ZodTypeDef,
422
- Defaults
380
+ ConnectionDefaults
423
381
  > = z.object({
424
- target: Target$outboundSchema.optional(),
425
382
  id: z.string().optional(),
426
383
  options: z.array(FormFieldOption$outboundSchema).optional(),
427
384
  value: z.union([
@@ -437,236 +394,132 @@ export const Defaults$outboundSchema: z.ZodType<
437
394
  * @internal
438
395
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
439
396
  */
440
- export namespace Defaults$ {
441
- /** @deprecated use `Defaults$inboundSchema` instead. */
442
- export const inboundSchema = Defaults$inboundSchema;
443
- /** @deprecated use `Defaults$outboundSchema` instead. */
444
- export const outboundSchema = Defaults$outboundSchema;
445
- /** @deprecated use `Defaults$Outbound` instead. */
446
- export type Outbound = Defaults$Outbound;
397
+ export namespace ConnectionDefaults$ {
398
+ /** @deprecated use `ConnectionDefaults$inboundSchema` instead. */
399
+ export const inboundSchema = ConnectionDefaults$inboundSchema;
400
+ /** @deprecated use `ConnectionDefaults$outboundSchema` instead. */
401
+ export const outboundSchema = ConnectionDefaults$outboundSchema;
402
+ /** @deprecated use `ConnectionDefaults$Outbound` instead. */
403
+ export type Outbound = ConnectionDefaults$Outbound;
447
404
  }
448
405
 
449
- export function defaultsToJSON(defaults: Defaults): string {
450
- return JSON.stringify(Defaults$outboundSchema.parse(defaults));
406
+ export function connectionDefaultsToJSON(
407
+ connectionDefaults: ConnectionDefaults,
408
+ ): string {
409
+ return JSON.stringify(
410
+ ConnectionDefaults$outboundSchema.parse(connectionDefaults),
411
+ );
451
412
  }
452
413
 
453
- export function defaultsFromJSON(
414
+ export function connectionDefaultsFromJSON(
454
415
  jsonString: string,
455
- ): SafeParseResult<Defaults, SDKValidationError> {
416
+ ): SafeParseResult<ConnectionDefaults, SDKValidationError> {
456
417
  return safeParse(
457
418
  jsonString,
458
- (x) => Defaults$inboundSchema.parse(JSON.parse(x)),
459
- `Failed to parse 'Defaults' from JSON`,
419
+ (x) => ConnectionDefaults$inboundSchema.parse(JSON.parse(x)),
420
+ `Failed to parse 'ConnectionDefaults' from JSON`,
460
421
  );
461
422
  }
462
423
 
463
424
  /** @internal */
464
- export const Configuration$inboundSchema: z.ZodType<
465
- Configuration,
425
+ export const ConnectionConfiguration$inboundSchema: z.ZodType<
426
+ ConnectionConfiguration,
466
427
  z.ZodTypeDef,
467
428
  unknown
468
429
  > = z.object({
469
430
  resource: z.string().optional(),
470
- defaults: z.array(z.lazy(() => Defaults$inboundSchema)).optional(),
431
+ defaults: z.array(z.lazy(() => ConnectionDefaults$inboundSchema)).optional(),
471
432
  });
472
433
 
473
434
  /** @internal */
474
- export type Configuration$Outbound = {
435
+ export type ConnectionConfiguration$Outbound = {
475
436
  resource?: string | undefined;
476
- defaults?: Array<Defaults$Outbound> | undefined;
437
+ defaults?: Array<ConnectionDefaults$Outbound> | undefined;
477
438
  };
478
439
 
479
440
  /** @internal */
480
- export const Configuration$outboundSchema: z.ZodType<
481
- Configuration$Outbound,
441
+ export const ConnectionConfiguration$outboundSchema: z.ZodType<
442
+ ConnectionConfiguration$Outbound,
482
443
  z.ZodTypeDef,
483
- Configuration
444
+ ConnectionConfiguration
484
445
  > = z.object({
485
446
  resource: z.string().optional(),
486
- defaults: z.array(z.lazy(() => Defaults$outboundSchema)).optional(),
447
+ defaults: z.array(z.lazy(() => ConnectionDefaults$outboundSchema)).optional(),
487
448
  });
488
449
 
489
450
  /**
490
451
  * @internal
491
452
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
492
453
  */
493
- export namespace Configuration$ {
494
- /** @deprecated use `Configuration$inboundSchema` instead. */
495
- export const inboundSchema = Configuration$inboundSchema;
496
- /** @deprecated use `Configuration$outboundSchema` instead. */
497
- export const outboundSchema = Configuration$outboundSchema;
498
- /** @deprecated use `Configuration$Outbound` instead. */
499
- export type Outbound = Configuration$Outbound;
454
+ export namespace ConnectionConfiguration$ {
455
+ /** @deprecated use `ConnectionConfiguration$inboundSchema` instead. */
456
+ export const inboundSchema = ConnectionConfiguration$inboundSchema;
457
+ /** @deprecated use `ConnectionConfiguration$outboundSchema` instead. */
458
+ export const outboundSchema = ConnectionConfiguration$outboundSchema;
459
+ /** @deprecated use `ConnectionConfiguration$Outbound` instead. */
460
+ export type Outbound = ConnectionConfiguration$Outbound;
500
461
  }
501
462
 
502
- export function configurationToJSON(configuration: Configuration): string {
503
- return JSON.stringify(Configuration$outboundSchema.parse(configuration));
463
+ export function connectionConfigurationToJSON(
464
+ connectionConfiguration: ConnectionConfiguration,
465
+ ): string {
466
+ return JSON.stringify(
467
+ ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
468
+ );
504
469
  }
505
470
 
506
- export function configurationFromJSON(
471
+ export function connectionConfigurationFromJSON(
507
472
  jsonString: string,
508
- ): SafeParseResult<Configuration, SDKValidationError> {
473
+ ): SafeParseResult<ConnectionConfiguration, SDKValidationError> {
509
474
  return safeParse(
510
475
  jsonString,
511
- (x) => Configuration$inboundSchema.parse(JSON.parse(x)),
512
- `Failed to parse 'Configuration' from JSON`,
476
+ (x) => ConnectionConfiguration$inboundSchema.parse(JSON.parse(x)),
477
+ `Failed to parse 'ConnectionConfiguration' from JSON`,
513
478
  );
514
479
  }
515
480
 
516
481
  /** @internal */
517
- export const Connection$inboundSchema: z.ZodType<
518
- Connection,
482
+ export const ConnectionInput$inboundSchema: z.ZodType<
483
+ ConnectionInput,
519
484
  z.ZodTypeDef,
520
485
  unknown
521
486
  > = z.object({
522
- id: z.string().optional(),
523
- service_id: z.string().optional(),
524
- name: z.string().optional(),
525
- tag_line: z.string().optional(),
526
- unified_api: z.string().optional(),
527
- state: ConnectionState$inboundSchema.optional(),
528
- integration_state: IntegrationState$inboundSchema.optional(),
529
- auth_type: AuthType$inboundSchema.optional(),
530
- oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
531
- status: ConnectionStatus$inboundSchema.optional(),
532
487
  enabled: z.boolean().optional(),
533
- website: z.string().optional(),
534
- icon: z.string().optional(),
535
- logo: z.string().optional(),
536
- authorize_url: z.nullable(z.string()).optional(),
537
- revoke_url: z.nullable(z.string()).optional(),
538
488
  settings: z.nullable(z.record(z.any())).optional(),
539
489
  metadata: z.nullable(z.record(z.any())).optional(),
540
- form_fields: z.array(FormField$inboundSchema).optional(),
541
- configuration: z.array(z.lazy(() => Configuration$inboundSchema)).optional(),
542
- configurable_resources: z.array(z.string()).optional(),
543
- resource_schema_support: z.array(z.string()).optional(),
544
- resource_settings_support: z.array(z.string()).optional(),
545
- validation_support: z.boolean().optional(),
546
- schema_support: z.boolean().optional(),
547
- settings_required_for_authorization: z.array(z.string()).optional(),
548
- subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
549
- has_guide: z.boolean().optional(),
550
- created_at: z.number().optional(),
551
- custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
552
- updated_at: z.nullable(z.number()).optional(),
490
+ configuration: z.array(z.lazy(() => ConnectionConfiguration$inboundSchema))
491
+ .optional(),
492
+ custom_mappings: z.array(CustomMappingInput$inboundSchema).optional(),
553
493
  }).transform((v) => {
554
494
  return remap$(v, {
555
- "service_id": "serviceId",
556
- "tag_line": "tagLine",
557
- "unified_api": "unifiedApi",
558
- "integration_state": "integrationState",
559
- "auth_type": "authType",
560
- "oauth_grant_type": "oauthGrantType",
561
- "authorize_url": "authorizeUrl",
562
- "revoke_url": "revokeUrl",
563
- "form_fields": "formFields",
564
- "configurable_resources": "configurableResources",
565
- "resource_schema_support": "resourceSchemaSupport",
566
- "resource_settings_support": "resourceSettingsSupport",
567
- "validation_support": "validationSupport",
568
- "schema_support": "schemaSupport",
569
- "settings_required_for_authorization": "settingsRequiredForAuthorization",
570
- "has_guide": "hasGuide",
571
- "created_at": "createdAt",
572
495
  "custom_mappings": "customMappings",
573
- "updated_at": "updatedAt",
574
496
  });
575
497
  });
576
498
 
577
499
  /** @internal */
578
- export type Connection$Outbound = {
579
- id?: string | undefined;
580
- service_id?: string | undefined;
581
- name?: string | undefined;
582
- tag_line?: string | undefined;
583
- unified_api?: string | undefined;
584
- state?: string | undefined;
585
- integration_state?: string | undefined;
586
- auth_type?: string | undefined;
587
- oauth_grant_type?: string | undefined;
588
- status?: string | undefined;
500
+ export type ConnectionInput$Outbound = {
589
501
  enabled?: boolean | undefined;
590
- website?: string | undefined;
591
- icon?: string | undefined;
592
- logo?: string | undefined;
593
- authorize_url?: string | null | undefined;
594
- revoke_url?: string | null | undefined;
595
502
  settings?: { [k: string]: any } | null | undefined;
596
503
  metadata?: { [k: string]: any } | null | undefined;
597
- form_fields?: Array<FormField$Outbound> | undefined;
598
- configuration?: Array<Configuration$Outbound> | undefined;
599
- configurable_resources?: Array<string> | undefined;
600
- resource_schema_support?: Array<string> | undefined;
601
- resource_settings_support?: Array<string> | undefined;
602
- validation_support?: boolean | undefined;
603
- schema_support?: boolean | undefined;
604
- settings_required_for_authorization?: Array<string> | undefined;
605
- subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
606
- has_guide?: boolean | undefined;
607
- created_at?: number | undefined;
608
- custom_mappings?: Array<CustomMapping$Outbound> | undefined;
609
- updated_at?: number | null | undefined;
504
+ configuration?: Array<ConnectionConfiguration$Outbound> | undefined;
505
+ custom_mappings?: Array<CustomMappingInput$Outbound> | undefined;
610
506
  };
611
507
 
612
508
  /** @internal */
613
- export const Connection$outboundSchema: z.ZodType<
614
- Connection$Outbound,
509
+ export const ConnectionInput$outboundSchema: z.ZodType<
510
+ ConnectionInput$Outbound,
615
511
  z.ZodTypeDef,
616
- Connection
512
+ ConnectionInput
617
513
  > = z.object({
618
- id: z.string().optional(),
619
- serviceId: z.string().optional(),
620
- name: z.string().optional(),
621
- tagLine: z.string().optional(),
622
- unifiedApi: z.string().optional(),
623
- state: ConnectionState$outboundSchema.optional(),
624
- integrationState: IntegrationState$outboundSchema.optional(),
625
- authType: AuthType$outboundSchema.optional(),
626
- oauthGrantType: OAuthGrantType$outboundSchema.optional(),
627
- status: ConnectionStatus$outboundSchema.optional(),
628
514
  enabled: z.boolean().optional(),
629
- website: z.string().optional(),
630
- icon: z.string().optional(),
631
- logo: z.string().optional(),
632
- authorizeUrl: z.nullable(z.string()).optional(),
633
- revokeUrl: z.nullable(z.string()).optional(),
634
515
  settings: z.nullable(z.record(z.any())).optional(),
635
516
  metadata: z.nullable(z.record(z.any())).optional(),
636
- formFields: z.array(FormField$outboundSchema).optional(),
637
- configuration: z.array(z.lazy(() => Configuration$outboundSchema)).optional(),
638
- configurableResources: z.array(z.string()).optional(),
639
- resourceSchemaSupport: z.array(z.string()).optional(),
640
- resourceSettingsSupport: z.array(z.string()).optional(),
641
- validationSupport: z.boolean().optional(),
642
- schemaSupport: z.boolean().optional(),
643
- settingsRequiredForAuthorization: z.array(z.string()).optional(),
644
- subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
645
- hasGuide: z.boolean().optional(),
646
- createdAt: z.number().optional(),
647
- customMappings: z.array(CustomMapping$outboundSchema).optional(),
648
- updatedAt: z.nullable(z.number()).optional(),
517
+ configuration: z.array(z.lazy(() => ConnectionConfiguration$outboundSchema))
518
+ .optional(),
519
+ customMappings: z.array(CustomMappingInput$outboundSchema).optional(),
649
520
  }).transform((v) => {
650
521
  return remap$(v, {
651
- serviceId: "service_id",
652
- tagLine: "tag_line",
653
- unifiedApi: "unified_api",
654
- integrationState: "integration_state",
655
- authType: "auth_type",
656
- oauthGrantType: "oauth_grant_type",
657
- authorizeUrl: "authorize_url",
658
- revokeUrl: "revoke_url",
659
- formFields: "form_fields",
660
- configurableResources: "configurable_resources",
661
- resourceSchemaSupport: "resource_schema_support",
662
- resourceSettingsSupport: "resource_settings_support",
663
- validationSupport: "validation_support",
664
- schemaSupport: "schema_support",
665
- settingsRequiredForAuthorization: "settings_required_for_authorization",
666
- hasGuide: "has_guide",
667
- createdAt: "created_at",
668
522
  customMappings: "custom_mappings",
669
- updatedAt: "updated_at",
670
523
  });
671
524
  });
672
525
 
@@ -674,35 +527,78 @@ export const Connection$outboundSchema: z.ZodType<
674
527
  * @internal
675
528
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
676
529
  */
677
- export namespace Connection$ {
678
- /** @deprecated use `Connection$inboundSchema` instead. */
679
- export const inboundSchema = Connection$inboundSchema;
680
- /** @deprecated use `Connection$outboundSchema` instead. */
681
- export const outboundSchema = Connection$outboundSchema;
682
- /** @deprecated use `Connection$Outbound` instead. */
683
- export type Outbound = Connection$Outbound;
530
+ export namespace ConnectionInput$ {
531
+ /** @deprecated use `ConnectionInput$inboundSchema` instead. */
532
+ export const inboundSchema = ConnectionInput$inboundSchema;
533
+ /** @deprecated use `ConnectionInput$outboundSchema` instead. */
534
+ export const outboundSchema = ConnectionInput$outboundSchema;
535
+ /** @deprecated use `ConnectionInput$Outbound` instead. */
536
+ export type Outbound = ConnectionInput$Outbound;
684
537
  }
685
538
 
686
- export function connectionToJSON(connection: Connection): string {
687
- return JSON.stringify(Connection$outboundSchema.parse(connection));
539
+ export function connectionInputToJSON(
540
+ connectionInput: ConnectionInput,
541
+ ): string {
542
+ return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
688
543
  }
689
544
 
690
- export function connectionFromJSON(
545
+ export function connectionInputFromJSON(
691
546
  jsonString: string,
692
- ): SafeParseResult<Connection, SDKValidationError> {
547
+ ): SafeParseResult<ConnectionInput, SDKValidationError> {
693
548
  return safeParse(
694
549
  jsonString,
695
- (x) => Connection$inboundSchema.parse(JSON.parse(x)),
696
- `Failed to parse 'Connection' from JSON`,
550
+ (x) => ConnectionInput$inboundSchema.parse(JSON.parse(x)),
551
+ `Failed to parse 'ConnectionInput' from JSON`,
697
552
  );
698
553
  }
699
554
 
700
555
  /** @internal */
701
- export const ConnectionDefaults$inboundSchema: z.ZodType<
702
- ConnectionDefaults,
556
+ export const ConnectionStatus$inboundSchema: z.ZodNativeEnum<
557
+ typeof ConnectionStatus
558
+ > = z.nativeEnum(ConnectionStatus);
559
+
560
+ /** @internal */
561
+ export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
562
+ typeof ConnectionStatus
563
+ > = ConnectionStatus$inboundSchema;
564
+
565
+ /**
566
+ * @internal
567
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
568
+ */
569
+ export namespace ConnectionStatus$ {
570
+ /** @deprecated use `ConnectionStatus$inboundSchema` instead. */
571
+ export const inboundSchema = ConnectionStatus$inboundSchema;
572
+ /** @deprecated use `ConnectionStatus$outboundSchema` instead. */
573
+ export const outboundSchema = ConnectionStatus$outboundSchema;
574
+ }
575
+
576
+ /** @internal */
577
+ export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
578
+ .nativeEnum(Target);
579
+
580
+ /** @internal */
581
+ export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
582
+ Target$inboundSchema;
583
+
584
+ /**
585
+ * @internal
586
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
587
+ */
588
+ export namespace Target$ {
589
+ /** @deprecated use `Target$inboundSchema` instead. */
590
+ export const inboundSchema = Target$inboundSchema;
591
+ /** @deprecated use `Target$outboundSchema` instead. */
592
+ export const outboundSchema = Target$outboundSchema;
593
+ }
594
+
595
+ /** @internal */
596
+ export const Defaults$inboundSchema: z.ZodType<
597
+ Defaults,
703
598
  z.ZodTypeDef,
704
599
  unknown
705
600
  > = z.object({
601
+ target: Target$inboundSchema.optional(),
706
602
  id: z.string().optional(),
707
603
  options: z.array(FormFieldOption$inboundSchema).optional(),
708
604
  value: z.union([
@@ -715,7 +611,8 @@ export const ConnectionDefaults$inboundSchema: z.ZodType<
715
611
  });
716
612
 
717
613
  /** @internal */
718
- export type ConnectionDefaults$Outbound = {
614
+ export type Defaults$Outbound = {
615
+ target?: string | undefined;
719
616
  id?: string | undefined;
720
617
  options?: Array<FormFieldOption$Outbound> | undefined;
721
618
  value?:
@@ -728,11 +625,12 @@ export type ConnectionDefaults$Outbound = {
728
625
  };
729
626
 
730
627
  /** @internal */
731
- export const ConnectionDefaults$outboundSchema: z.ZodType<
732
- ConnectionDefaults$Outbound,
628
+ export const Defaults$outboundSchema: z.ZodType<
629
+ Defaults$Outbound,
733
630
  z.ZodTypeDef,
734
- ConnectionDefaults
631
+ Defaults
735
632
  > = z.object({
633
+ target: Target$outboundSchema.optional(),
736
634
  id: z.string().optional(),
737
635
  options: z.array(FormFieldOption$outboundSchema).optional(),
738
636
  value: z.union([
@@ -748,132 +646,236 @@ export const ConnectionDefaults$outboundSchema: z.ZodType<
748
646
  * @internal
749
647
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
750
648
  */
751
- export namespace ConnectionDefaults$ {
752
- /** @deprecated use `ConnectionDefaults$inboundSchema` instead. */
753
- export const inboundSchema = ConnectionDefaults$inboundSchema;
754
- /** @deprecated use `ConnectionDefaults$outboundSchema` instead. */
755
- export const outboundSchema = ConnectionDefaults$outboundSchema;
756
- /** @deprecated use `ConnectionDefaults$Outbound` instead. */
757
- export type Outbound = ConnectionDefaults$Outbound;
649
+ export namespace Defaults$ {
650
+ /** @deprecated use `Defaults$inboundSchema` instead. */
651
+ export const inboundSchema = Defaults$inboundSchema;
652
+ /** @deprecated use `Defaults$outboundSchema` instead. */
653
+ export const outboundSchema = Defaults$outboundSchema;
654
+ /** @deprecated use `Defaults$Outbound` instead. */
655
+ export type Outbound = Defaults$Outbound;
758
656
  }
759
657
 
760
- export function connectionDefaultsToJSON(
761
- connectionDefaults: ConnectionDefaults,
762
- ): string {
763
- return JSON.stringify(
764
- ConnectionDefaults$outboundSchema.parse(connectionDefaults),
765
- );
658
+ export function defaultsToJSON(defaults: Defaults): string {
659
+ return JSON.stringify(Defaults$outboundSchema.parse(defaults));
766
660
  }
767
661
 
768
- export function connectionDefaultsFromJSON(
662
+ export function defaultsFromJSON(
769
663
  jsonString: string,
770
- ): SafeParseResult<ConnectionDefaults, SDKValidationError> {
664
+ ): SafeParseResult<Defaults, SDKValidationError> {
771
665
  return safeParse(
772
666
  jsonString,
773
- (x) => ConnectionDefaults$inboundSchema.parse(JSON.parse(x)),
774
- `Failed to parse 'ConnectionDefaults' from JSON`,
667
+ (x) => Defaults$inboundSchema.parse(JSON.parse(x)),
668
+ `Failed to parse 'Defaults' from JSON`,
775
669
  );
776
670
  }
777
671
 
778
672
  /** @internal */
779
- export const ConnectionConfiguration$inboundSchema: z.ZodType<
780
- ConnectionConfiguration,
673
+ export const Configuration$inboundSchema: z.ZodType<
674
+ Configuration,
781
675
  z.ZodTypeDef,
782
676
  unknown
783
677
  > = z.object({
784
678
  resource: z.string().optional(),
785
- defaults: z.array(z.lazy(() => ConnectionDefaults$inboundSchema)).optional(),
679
+ defaults: z.array(z.lazy(() => Defaults$inboundSchema)).optional(),
786
680
  });
787
681
 
788
682
  /** @internal */
789
- export type ConnectionConfiguration$Outbound = {
683
+ export type Configuration$Outbound = {
790
684
  resource?: string | undefined;
791
- defaults?: Array<ConnectionDefaults$Outbound> | undefined;
685
+ defaults?: Array<Defaults$Outbound> | undefined;
792
686
  };
793
687
 
794
688
  /** @internal */
795
- export const ConnectionConfiguration$outboundSchema: z.ZodType<
796
- ConnectionConfiguration$Outbound,
689
+ export const Configuration$outboundSchema: z.ZodType<
690
+ Configuration$Outbound,
797
691
  z.ZodTypeDef,
798
- ConnectionConfiguration
692
+ Configuration
799
693
  > = z.object({
800
694
  resource: z.string().optional(),
801
- defaults: z.array(z.lazy(() => ConnectionDefaults$outboundSchema)).optional(),
695
+ defaults: z.array(z.lazy(() => Defaults$outboundSchema)).optional(),
802
696
  });
803
697
 
804
698
  /**
805
699
  * @internal
806
700
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
807
701
  */
808
- export namespace ConnectionConfiguration$ {
809
- /** @deprecated use `ConnectionConfiguration$inboundSchema` instead. */
810
- export const inboundSchema = ConnectionConfiguration$inboundSchema;
811
- /** @deprecated use `ConnectionConfiguration$outboundSchema` instead. */
812
- export const outboundSchema = ConnectionConfiguration$outboundSchema;
813
- /** @deprecated use `ConnectionConfiguration$Outbound` instead. */
814
- export type Outbound = ConnectionConfiguration$Outbound;
702
+ export namespace Configuration$ {
703
+ /** @deprecated use `Configuration$inboundSchema` instead. */
704
+ export const inboundSchema = Configuration$inboundSchema;
705
+ /** @deprecated use `Configuration$outboundSchema` instead. */
706
+ export const outboundSchema = Configuration$outboundSchema;
707
+ /** @deprecated use `Configuration$Outbound` instead. */
708
+ export type Outbound = Configuration$Outbound;
815
709
  }
816
710
 
817
- export function connectionConfigurationToJSON(
818
- connectionConfiguration: ConnectionConfiguration,
819
- ): string {
820
- return JSON.stringify(
821
- ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
822
- );
711
+ export function configurationToJSON(configuration: Configuration): string {
712
+ return JSON.stringify(Configuration$outboundSchema.parse(configuration));
823
713
  }
824
714
 
825
- export function connectionConfigurationFromJSON(
715
+ export function configurationFromJSON(
826
716
  jsonString: string,
827
- ): SafeParseResult<ConnectionConfiguration, SDKValidationError> {
717
+ ): SafeParseResult<Configuration, SDKValidationError> {
828
718
  return safeParse(
829
719
  jsonString,
830
- (x) => ConnectionConfiguration$inboundSchema.parse(JSON.parse(x)),
831
- `Failed to parse 'ConnectionConfiguration' from JSON`,
720
+ (x) => Configuration$inboundSchema.parse(JSON.parse(x)),
721
+ `Failed to parse 'Configuration' from JSON`,
832
722
  );
833
723
  }
834
724
 
835
725
  /** @internal */
836
- export const ConnectionInput$inboundSchema: z.ZodType<
837
- ConnectionInput,
726
+ export const Connection$inboundSchema: z.ZodType<
727
+ Connection,
838
728
  z.ZodTypeDef,
839
729
  unknown
840
730
  > = z.object({
731
+ id: z.string().optional(),
732
+ service_id: z.string().optional(),
733
+ name: z.string().optional(),
734
+ tag_line: z.string().optional(),
735
+ unified_api: z.string().optional(),
736
+ state: ConnectionState$inboundSchema.optional(),
737
+ integration_state: IntegrationState$inboundSchema.optional(),
738
+ auth_type: AuthType$inboundSchema.optional(),
739
+ oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
740
+ status: ConnectionStatus$inboundSchema.optional(),
841
741
  enabled: z.boolean().optional(),
742
+ website: z.string().optional(),
743
+ icon: z.string().optional(),
744
+ logo: z.string().optional(),
745
+ authorize_url: z.nullable(z.string()).optional(),
746
+ revoke_url: z.nullable(z.string()).optional(),
842
747
  settings: z.nullable(z.record(z.any())).optional(),
843
748
  metadata: z.nullable(z.record(z.any())).optional(),
844
- configuration: z.array(z.lazy(() => ConnectionConfiguration$inboundSchema))
845
- .optional(),
846
- custom_mappings: z.array(CustomMappingInput$inboundSchema).optional(),
749
+ form_fields: z.array(FormField$inboundSchema).optional(),
750
+ configuration: z.array(z.lazy(() => Configuration$inboundSchema)).optional(),
751
+ configurable_resources: z.array(z.string()).optional(),
752
+ resource_schema_support: z.array(z.string()).optional(),
753
+ resource_settings_support: z.array(z.string()).optional(),
754
+ validation_support: z.boolean().optional(),
755
+ schema_support: z.boolean().optional(),
756
+ settings_required_for_authorization: z.array(z.string()).optional(),
757
+ subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
758
+ has_guide: z.boolean().optional(),
759
+ created_at: z.number().optional(),
760
+ custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
761
+ updated_at: z.nullable(z.number()).optional(),
847
762
  }).transform((v) => {
848
763
  return remap$(v, {
764
+ "service_id": "serviceId",
765
+ "tag_line": "tagLine",
766
+ "unified_api": "unifiedApi",
767
+ "integration_state": "integrationState",
768
+ "auth_type": "authType",
769
+ "oauth_grant_type": "oauthGrantType",
770
+ "authorize_url": "authorizeUrl",
771
+ "revoke_url": "revokeUrl",
772
+ "form_fields": "formFields",
773
+ "configurable_resources": "configurableResources",
774
+ "resource_schema_support": "resourceSchemaSupport",
775
+ "resource_settings_support": "resourceSettingsSupport",
776
+ "validation_support": "validationSupport",
777
+ "schema_support": "schemaSupport",
778
+ "settings_required_for_authorization": "settingsRequiredForAuthorization",
779
+ "has_guide": "hasGuide",
780
+ "created_at": "createdAt",
849
781
  "custom_mappings": "customMappings",
782
+ "updated_at": "updatedAt",
850
783
  });
851
784
  });
852
785
 
853
786
  /** @internal */
854
- export type ConnectionInput$Outbound = {
787
+ export type Connection$Outbound = {
788
+ id?: string | undefined;
789
+ service_id?: string | undefined;
790
+ name?: string | undefined;
791
+ tag_line?: string | undefined;
792
+ unified_api?: string | undefined;
793
+ state?: string | undefined;
794
+ integration_state?: string | undefined;
795
+ auth_type?: string | undefined;
796
+ oauth_grant_type?: string | undefined;
797
+ status?: string | undefined;
855
798
  enabled?: boolean | undefined;
799
+ website?: string | undefined;
800
+ icon?: string | undefined;
801
+ logo?: string | undefined;
802
+ authorize_url?: string | null | undefined;
803
+ revoke_url?: string | null | undefined;
856
804
  settings?: { [k: string]: any } | null | undefined;
857
805
  metadata?: { [k: string]: any } | null | undefined;
858
- configuration?: Array<ConnectionConfiguration$Outbound> | undefined;
859
- custom_mappings?: Array<CustomMappingInput$Outbound> | undefined;
806
+ form_fields?: Array<FormField$Outbound> | undefined;
807
+ configuration?: Array<Configuration$Outbound> | undefined;
808
+ configurable_resources?: Array<string> | undefined;
809
+ resource_schema_support?: Array<string> | undefined;
810
+ resource_settings_support?: Array<string> | undefined;
811
+ validation_support?: boolean | undefined;
812
+ schema_support?: boolean | undefined;
813
+ settings_required_for_authorization?: Array<string> | undefined;
814
+ subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
815
+ has_guide?: boolean | undefined;
816
+ created_at?: number | undefined;
817
+ custom_mappings?: Array<CustomMapping$Outbound> | undefined;
818
+ updated_at?: number | null | undefined;
860
819
  };
861
820
 
862
821
  /** @internal */
863
- export const ConnectionInput$outboundSchema: z.ZodType<
864
- ConnectionInput$Outbound,
822
+ export const Connection$outboundSchema: z.ZodType<
823
+ Connection$Outbound,
865
824
  z.ZodTypeDef,
866
- ConnectionInput
825
+ Connection
867
826
  > = z.object({
827
+ id: z.string().optional(),
828
+ serviceId: z.string().optional(),
829
+ name: z.string().optional(),
830
+ tagLine: z.string().optional(),
831
+ unifiedApi: z.string().optional(),
832
+ state: ConnectionState$outboundSchema.optional(),
833
+ integrationState: IntegrationState$outboundSchema.optional(),
834
+ authType: AuthType$outboundSchema.optional(),
835
+ oauthGrantType: OAuthGrantType$outboundSchema.optional(),
836
+ status: ConnectionStatus$outboundSchema.optional(),
868
837
  enabled: z.boolean().optional(),
838
+ website: z.string().optional(),
839
+ icon: z.string().optional(),
840
+ logo: z.string().optional(),
841
+ authorizeUrl: z.nullable(z.string()).optional(),
842
+ revokeUrl: z.nullable(z.string()).optional(),
869
843
  settings: z.nullable(z.record(z.any())).optional(),
870
844
  metadata: z.nullable(z.record(z.any())).optional(),
871
- configuration: z.array(z.lazy(() => ConnectionConfiguration$outboundSchema))
872
- .optional(),
873
- customMappings: z.array(CustomMappingInput$outboundSchema).optional(),
845
+ formFields: z.array(FormField$outboundSchema).optional(),
846
+ configuration: z.array(z.lazy(() => Configuration$outboundSchema)).optional(),
847
+ configurableResources: z.array(z.string()).optional(),
848
+ resourceSchemaSupport: z.array(z.string()).optional(),
849
+ resourceSettingsSupport: z.array(z.string()).optional(),
850
+ validationSupport: z.boolean().optional(),
851
+ schemaSupport: z.boolean().optional(),
852
+ settingsRequiredForAuthorization: z.array(z.string()).optional(),
853
+ subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
854
+ hasGuide: z.boolean().optional(),
855
+ createdAt: z.number().optional(),
856
+ customMappings: z.array(CustomMapping$outboundSchema).optional(),
857
+ updatedAt: z.nullable(z.number()).optional(),
874
858
  }).transform((v) => {
875
859
  return remap$(v, {
860
+ serviceId: "service_id",
861
+ tagLine: "tag_line",
862
+ unifiedApi: "unified_api",
863
+ integrationState: "integration_state",
864
+ authType: "auth_type",
865
+ oauthGrantType: "oauth_grant_type",
866
+ authorizeUrl: "authorize_url",
867
+ revokeUrl: "revoke_url",
868
+ formFields: "form_fields",
869
+ configurableResources: "configurable_resources",
870
+ resourceSchemaSupport: "resource_schema_support",
871
+ resourceSettingsSupport: "resource_settings_support",
872
+ validationSupport: "validation_support",
873
+ schemaSupport: "schema_support",
874
+ settingsRequiredForAuthorization: "settings_required_for_authorization",
875
+ hasGuide: "has_guide",
876
+ createdAt: "created_at",
876
877
  customMappings: "custom_mappings",
878
+ updatedAt: "updated_at",
877
879
  });
878
880
  });
879
881
 
@@ -881,27 +883,25 @@ export const ConnectionInput$outboundSchema: z.ZodType<
881
883
  * @internal
882
884
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
883
885
  */
884
- export namespace ConnectionInput$ {
885
- /** @deprecated use `ConnectionInput$inboundSchema` instead. */
886
- export const inboundSchema = ConnectionInput$inboundSchema;
887
- /** @deprecated use `ConnectionInput$outboundSchema` instead. */
888
- export const outboundSchema = ConnectionInput$outboundSchema;
889
- /** @deprecated use `ConnectionInput$Outbound` instead. */
890
- export type Outbound = ConnectionInput$Outbound;
886
+ export namespace Connection$ {
887
+ /** @deprecated use `Connection$inboundSchema` instead. */
888
+ export const inboundSchema = Connection$inboundSchema;
889
+ /** @deprecated use `Connection$outboundSchema` instead. */
890
+ export const outboundSchema = Connection$outboundSchema;
891
+ /** @deprecated use `Connection$Outbound` instead. */
892
+ export type Outbound = Connection$Outbound;
891
893
  }
892
894
 
893
- export function connectionInputToJSON(
894
- connectionInput: ConnectionInput,
895
- ): string {
896
- return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
895
+ export function connectionToJSON(connection: Connection): string {
896
+ return JSON.stringify(Connection$outboundSchema.parse(connection));
897
897
  }
898
898
 
899
- export function connectionInputFromJSON(
899
+ export function connectionFromJSON(
900
900
  jsonString: string,
901
- ): SafeParseResult<ConnectionInput, SDKValidationError> {
901
+ ): SafeParseResult<Connection, SDKValidationError> {
902
902
  return safeParse(
903
903
  jsonString,
904
- (x) => ConnectionInput$inboundSchema.parse(JSON.parse(x)),
905
- `Failed to parse 'ConnectionInput' from JSON`,
904
+ (x) => Connection$inboundSchema.parse(JSON.parse(x)),
905
+ `Failed to parse 'Connection' from JSON`,
906
906
  );
907
907
  }