@apideck/unify 0.21.1 → 0.22.1

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 (306) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/{accountingdepartmentinput.d.ts → accountingdepartment.d.ts} +51 -51
  5. package/models/components/accountingdepartment.d.ts.map +1 -0
  6. package/models/components/{accountingdepartmentinput.js → accountingdepartment.js} +51 -51
  7. package/models/components/accountingdepartment.js.map +1 -0
  8. package/models/components/{accountinglocationinput.d.ts → accountinglocation.d.ts} +58 -58
  9. package/models/components/accountinglocation.d.ts.map +1 -0
  10. package/models/components/{accountinglocationinput.js → accountinglocation.js} +56 -56
  11. package/models/components/accountinglocation.js.map +1 -0
  12. package/models/components/activity.d.ts +1 -1
  13. package/models/components/activity.d.ts.map +1 -1
  14. package/models/components/activity.js +5 -5
  15. package/models/components/activity.js.map +1 -1
  16. package/models/components/{activityattendeeinput.d.ts → activityattendee.d.ts} +51 -51
  17. package/models/components/activityattendee.d.ts.map +1 -0
  18. package/models/components/{activityattendeeinput.js → activityattendee.js} +48 -48
  19. package/models/components/activityattendee.js.map +1 -0
  20. package/models/components/{allocationinput.d.ts → allocation.d.ts} +29 -29
  21. package/models/components/allocation.d.ts.map +1 -0
  22. package/models/components/{allocationinput.js → allocation.js} +32 -32
  23. package/models/components/allocation.js.map +1 -0
  24. package/models/components/{applicationinput.d.ts → application.d.ts} +37 -37
  25. package/models/components/application.d.ts.map +1 -0
  26. package/models/components/{applicationinput.js → application.js} +49 -49
  27. package/models/components/application.js.map +1 -0
  28. package/models/components/{bill.d.ts → billinput.d.ts} +75 -75
  29. package/models/components/billinput.d.ts.map +1 -0
  30. package/models/components/{bill.js → billinput.js} +70 -70
  31. package/models/components/billinput.js.map +1 -0
  32. package/models/components/{billlineitem.d.ts → billlineiteminput.d.ts} +59 -59
  33. package/models/components/billlineiteminput.d.ts.map +1 -0
  34. package/models/components/{billlineitem.js → billlineiteminput.js} +56 -56
  35. package/models/components/billlineiteminput.js.map +1 -0
  36. package/models/components/companyinfo.d.ts +1 -1
  37. package/models/components/companyinfo.d.ts.map +1 -1
  38. package/models/components/companyinfo.js +3 -3
  39. package/models/components/companyinfo.js.map +1 -1
  40. package/models/components/{company.d.ts → companyinput.d.ts} +77 -77
  41. package/models/components/companyinput.d.ts.map +1 -0
  42. package/models/components/{company.js → companyinput.js} +67 -67
  43. package/models/components/companyinput.js.map +1 -0
  44. package/models/components/creditnote.d.ts +1 -1
  45. package/models/components/creditnote.d.ts.map +1 -1
  46. package/models/components/creditnote.js +5 -5
  47. package/models/components/creditnote.js.map +1 -1
  48. package/models/components/employeeinput.d.ts +1 -1
  49. package/models/components/employeeinput.d.ts.map +1 -1
  50. package/models/components/employeeinput.js +5 -5
  51. package/models/components/employeeinput.js.map +1 -1
  52. package/models/components/{employeejobinput.d.ts → employeejob.d.ts} +37 -37
  53. package/models/components/employeejob.d.ts.map +1 -0
  54. package/models/components/{employeejobinput.js → employeejob.js} +36 -36
  55. package/models/components/employeejob.js.map +1 -0
  56. package/models/components/{expenseinput.d.ts → expense.d.ts} +55 -55
  57. package/models/components/expense.d.ts.map +1 -0
  58. package/models/components/{expenseinput.js → expense.js} +52 -52
  59. package/models/components/expense.js.map +1 -0
  60. package/models/components/getaccountingdepartmentresponse.d.ts +1 -1
  61. package/models/components/getaccountingdepartmentresponse.d.ts.map +1 -1
  62. package/models/components/getaccountingdepartmentresponse.js +3 -3
  63. package/models/components/getaccountingdepartmentresponse.js.map +1 -1
  64. package/models/components/getaccountingdepartmentsresponse.d.ts +1 -1
  65. package/models/components/getaccountingdepartmentsresponse.d.ts.map +1 -1
  66. package/models/components/getaccountingdepartmentsresponse.js +3 -3
  67. package/models/components/getaccountingdepartmentsresponse.js.map +1 -1
  68. package/models/components/getaccountinglocationresponse.d.ts +1 -1
  69. package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
  70. package/models/components/getaccountinglocationresponse.js +3 -3
  71. package/models/components/getaccountinglocationresponse.js.map +1 -1
  72. package/models/components/getaccountinglocationsresponse.d.ts +1 -1
  73. package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
  74. package/models/components/getaccountinglocationsresponse.js +3 -3
  75. package/models/components/getaccountinglocationsresponse.js.map +1 -1
  76. package/models/components/getapplicationresponse.d.ts +1 -1
  77. package/models/components/getapplicationresponse.d.ts.map +1 -1
  78. package/models/components/getapplicationresponse.js +3 -3
  79. package/models/components/getapplicationresponse.js.map +1 -1
  80. package/models/components/getapplicationsresponse.d.ts +1 -1
  81. package/models/components/getapplicationsresponse.d.ts.map +1 -1
  82. package/models/components/getapplicationsresponse.js +3 -3
  83. package/models/components/getapplicationsresponse.js.map +1 -1
  84. package/models/components/getbillresponse.d.ts +1 -1
  85. package/models/components/getbillresponse.d.ts.map +1 -1
  86. package/models/components/getbillresponse.js +3 -3
  87. package/models/components/getbillresponse.js.map +1 -1
  88. package/models/components/getbillsresponse.d.ts +1 -1
  89. package/models/components/getbillsresponse.d.ts.map +1 -1
  90. package/models/components/getbillsresponse.js +3 -3
  91. package/models/components/getbillsresponse.js.map +1 -1
  92. package/models/components/getcompaniesresponse.d.ts +1 -1
  93. package/models/components/getcompaniesresponse.d.ts.map +1 -1
  94. package/models/components/getcompaniesresponse.js +3 -3
  95. package/models/components/getcompaniesresponse.js.map +1 -1
  96. package/models/components/getcompanyresponse.d.ts +1 -1
  97. package/models/components/getcompanyresponse.d.ts.map +1 -1
  98. package/models/components/getcompanyresponse.js +3 -3
  99. package/models/components/getcompanyresponse.js.map +1 -1
  100. package/models/components/getexpenseresponse.d.ts +1 -1
  101. package/models/components/getexpenseresponse.d.ts.map +1 -1
  102. package/models/components/getexpenseresponse.js +3 -3
  103. package/models/components/getexpenseresponse.js.map +1 -1
  104. package/models/components/getexpensesresponse.d.ts +1 -1
  105. package/models/components/getexpensesresponse.d.ts.map +1 -1
  106. package/models/components/getexpensesresponse.js +3 -3
  107. package/models/components/getexpensesresponse.js.map +1 -1
  108. package/models/components/gethriscompaniesresponse.d.ts +1 -1
  109. package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
  110. package/models/components/gethriscompaniesresponse.js +3 -3
  111. package/models/components/gethriscompaniesresponse.js.map +1 -1
  112. package/models/components/gethriscompanyresponse.d.ts +1 -1
  113. package/models/components/gethriscompanyresponse.d.ts.map +1 -1
  114. package/models/components/gethriscompanyresponse.js +3 -3
  115. package/models/components/gethriscompanyresponse.js.map +1 -1
  116. package/models/components/getinvoiceresponse.d.ts +1 -1
  117. package/models/components/getinvoiceresponse.d.ts.map +1 -1
  118. package/models/components/getinvoiceresponse.js +3 -3
  119. package/models/components/getinvoiceresponse.js.map +1 -1
  120. package/models/components/getinvoicesresponse.d.ts +1 -1
  121. package/models/components/getinvoicesresponse.d.ts.map +1 -1
  122. package/models/components/getinvoicesresponse.js +3 -3
  123. package/models/components/getinvoicesresponse.js.map +1 -1
  124. package/models/components/getledgeraccountresponse.d.ts +1 -1
  125. package/models/components/getledgeraccountresponse.d.ts.map +1 -1
  126. package/models/components/getledgeraccountresponse.js +3 -3
  127. package/models/components/getledgeraccountresponse.js.map +1 -1
  128. package/models/components/getledgeraccountsresponse.d.ts +1 -1
  129. package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
  130. package/models/components/getledgeraccountsresponse.js +3 -3
  131. package/models/components/getledgeraccountsresponse.js.map +1 -1
  132. package/models/components/getsharedlinkresponse.d.ts +1 -1
  133. package/models/components/getsharedlinkresponse.d.ts.map +1 -1
  134. package/models/components/getsharedlinkresponse.js +3 -3
  135. package/models/components/getsharedlinkresponse.js.map +1 -1
  136. package/models/components/getsharedlinksresponse.d.ts +1 -1
  137. package/models/components/getsharedlinksresponse.d.ts.map +1 -1
  138. package/models/components/getsharedlinksresponse.js +3 -3
  139. package/models/components/getsharedlinksresponse.js.map +1 -1
  140. package/models/components/gettaxrateresponse.d.ts +1 -1
  141. package/models/components/gettaxrateresponse.d.ts.map +1 -1
  142. package/models/components/gettaxrateresponse.js +3 -3
  143. package/models/components/gettaxrateresponse.js.map +1 -1
  144. package/models/components/gettaxratesresponse.d.ts +1 -1
  145. package/models/components/gettaxratesresponse.d.ts.map +1 -1
  146. package/models/components/gettaxratesresponse.js +3 -3
  147. package/models/components/gettaxratesresponse.js.map +1 -1
  148. package/models/components/getticketresponse.d.ts +1 -1
  149. package/models/components/getticketresponse.d.ts.map +1 -1
  150. package/models/components/getticketresponse.js +3 -3
  151. package/models/components/getticketresponse.js.map +1 -1
  152. package/models/components/getticketsresponse.d.ts +1 -1
  153. package/models/components/getticketsresponse.d.ts.map +1 -1
  154. package/models/components/getticketsresponse.js +3 -3
  155. package/models/components/getticketsresponse.js.map +1 -1
  156. package/models/components/gettimeoffrequestresponse.d.ts +1 -1
  157. package/models/components/gettimeoffrequestresponse.d.ts.map +1 -1
  158. package/models/components/gettimeoffrequestresponse.js +3 -3
  159. package/models/components/gettimeoffrequestresponse.js.map +1 -1
  160. package/models/components/gettimeoffrequestsresponse.d.ts +1 -1
  161. package/models/components/gettimeoffrequestsresponse.d.ts.map +1 -1
  162. package/models/components/gettimeoffrequestsresponse.js +3 -3
  163. package/models/components/gettimeoffrequestsresponse.js.map +1 -1
  164. package/models/components/{hriscompanyinput.d.ts → hriscompany.d.ts} +55 -55
  165. package/models/components/hriscompany.d.ts.map +1 -0
  166. package/models/components/{hriscompanyinput.js → hriscompany.js} +54 -54
  167. package/models/components/hriscompany.js.map +1 -0
  168. package/models/components/index.d.ts +18 -18
  169. package/models/components/index.d.ts.map +1 -1
  170. package/models/components/index.js +18 -18
  171. package/models/components/index.js.map +1 -1
  172. package/models/components/{invoiceinput.d.ts → invoice.d.ts} +121 -73
  173. package/models/components/invoice.d.ts.map +1 -0
  174. package/models/components/{invoiceinput.js → invoice.js} +118 -71
  175. package/models/components/invoice.js.map +1 -0
  176. package/models/components/journalentry.d.ts +1 -1
  177. package/models/components/journalentry.d.ts.map +1 -1
  178. package/models/components/journalentry.js +3 -3
  179. package/models/components/journalentry.js.map +1 -1
  180. package/models/components/journalentryinput.d.ts +1 -1
  181. package/models/components/journalentryinput.d.ts.map +1 -1
  182. package/models/components/journalentryinput.js +3 -3
  183. package/models/components/journalentryinput.js.map +1 -1
  184. package/models/components/{journalentrylineiteminput.d.ts → journalentrylineitem.d.ts} +48 -48
  185. package/models/components/journalentrylineitem.d.ts.map +1 -0
  186. package/models/components/{journalentrylineiteminput.js → journalentrylineitem.js} +48 -48
  187. package/models/components/journalentrylineitem.js.map +1 -0
  188. package/models/components/{ledgeraccountinput.d.ts → ledgeraccount.d.ts} +129 -129
  189. package/models/components/ledgeraccount.d.ts.map +1 -0
  190. package/models/components/{ledgeraccountinput.js → ledgeraccount.js} +128 -128
  191. package/models/components/ledgeraccount.js.map +1 -0
  192. package/models/components/payment.d.ts +1 -1
  193. package/models/components/payment.d.ts.map +1 -1
  194. package/models/components/payment.js +3 -3
  195. package/models/components/payment.js.map +1 -1
  196. package/models/components/paymentinput.d.ts +1 -1
  197. package/models/components/paymentinput.d.ts.map +1 -1
  198. package/models/components/paymentinput.js +3 -3
  199. package/models/components/paymentinput.js.map +1 -1
  200. package/models/components/{sharedlinkinput.d.ts → sharedlink.d.ts} +49 -49
  201. package/models/components/sharedlink.d.ts.map +1 -0
  202. package/models/components/{sharedlinkinput.js → sharedlink.js} +49 -49
  203. package/models/components/sharedlink.js.map +1 -0
  204. package/models/components/{taxrateinput.d.ts → taxrate.d.ts} +52 -52
  205. package/models/components/taxrate.d.ts.map +1 -0
  206. package/models/components/{taxrateinput.js → taxrate.js} +50 -50
  207. package/models/components/taxrate.js.map +1 -0
  208. package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
  209. package/models/components/ticketinput.d.ts.map +1 -0
  210. package/models/components/{ticket.js → ticketinput.js} +59 -59
  211. package/models/components/ticketinput.js.map +1 -0
  212. package/models/components/{timeoffrequestinput.d.ts → timeoffrequest.d.ts} +57 -57
  213. package/models/components/timeoffrequest.d.ts.map +1 -0
  214. package/models/components/{timeoffrequestinput.js → timeoffrequest.js} +52 -52
  215. package/models/components/timeoffrequest.js.map +1 -0
  216. package/package.json +1 -1
  217. package/src/lib/config.ts +3 -3
  218. package/src/models/components/activity.ts +1 -1
  219. package/src/models/components/{bill.ts → billinput.ts} +248 -248
  220. package/src/models/components/companyinfo.ts +1 -1
  221. package/src/models/components/creditnote.ts +1 -1
  222. package/src/models/components/employeeinput.ts +1 -1
  223. package/src/models/components/getaccountingdepartmentresponse.ts +1 -1
  224. package/src/models/components/getaccountingdepartmentsresponse.ts +1 -1
  225. package/src/models/components/getaccountinglocationresponse.ts +1 -1
  226. package/src/models/components/getaccountinglocationsresponse.ts +1 -1
  227. package/src/models/components/getapplicationresponse.ts +1 -1
  228. package/src/models/components/getapplicationsresponse.ts +1 -1
  229. package/src/models/components/getbillresponse.ts +1 -1
  230. package/src/models/components/getbillsresponse.ts +1 -1
  231. package/src/models/components/getcompaniesresponse.ts +1 -1
  232. package/src/models/components/getcompanyresponse.ts +1 -1
  233. package/src/models/components/getexpenseresponse.ts +1 -1
  234. package/src/models/components/getexpensesresponse.ts +1 -1
  235. package/src/models/components/gethriscompaniesresponse.ts +1 -1
  236. package/src/models/components/gethriscompanyresponse.ts +1 -1
  237. package/src/models/components/getinvoiceresponse.ts +1 -1
  238. package/src/models/components/getinvoicesresponse.ts +1 -1
  239. package/src/models/components/getledgeraccountresponse.ts +1 -1
  240. package/src/models/components/getledgeraccountsresponse.ts +1 -1
  241. package/src/models/components/getsharedlinkresponse.ts +1 -1
  242. package/src/models/components/getsharedlinksresponse.ts +1 -1
  243. package/src/models/components/gettaxrateresponse.ts +1 -1
  244. package/src/models/components/gettaxratesresponse.ts +1 -1
  245. package/src/models/components/getticketresponse.ts +1 -1
  246. package/src/models/components/getticketsresponse.ts +1 -1
  247. package/src/models/components/gettimeoffrequestresponse.ts +1 -1
  248. package/src/models/components/gettimeoffrequestsresponse.ts +1 -1
  249. package/src/models/components/index.ts +18 -18
  250. package/src/models/components/{invoiceinput.ts → invoice.ts} +351 -240
  251. package/src/models/components/journalentry.ts +1 -1
  252. package/src/models/components/journalentryinput.ts +1 -1
  253. package/src/models/components/payment.ts +1 -1
  254. package/src/models/components/paymentinput.ts +1 -1
  255. package/models/components/accountingdepartmentinput.d.ts.map +0 -1
  256. package/models/components/accountingdepartmentinput.js.map +0 -1
  257. package/models/components/accountinglocationinput.d.ts.map +0 -1
  258. package/models/components/accountinglocationinput.js.map +0 -1
  259. package/models/components/activityattendeeinput.d.ts.map +0 -1
  260. package/models/components/activityattendeeinput.js.map +0 -1
  261. package/models/components/allocationinput.d.ts.map +0 -1
  262. package/models/components/allocationinput.js.map +0 -1
  263. package/models/components/applicationinput.d.ts.map +0 -1
  264. package/models/components/applicationinput.js.map +0 -1
  265. package/models/components/bill.d.ts.map +0 -1
  266. package/models/components/bill.js.map +0 -1
  267. package/models/components/billlineitem.d.ts.map +0 -1
  268. package/models/components/billlineitem.js.map +0 -1
  269. package/models/components/company.d.ts.map +0 -1
  270. package/models/components/company.js.map +0 -1
  271. package/models/components/employeejobinput.d.ts.map +0 -1
  272. package/models/components/employeejobinput.js.map +0 -1
  273. package/models/components/expenseinput.d.ts.map +0 -1
  274. package/models/components/expenseinput.js.map +0 -1
  275. package/models/components/hriscompanyinput.d.ts.map +0 -1
  276. package/models/components/hriscompanyinput.js.map +0 -1
  277. package/models/components/invoiceinput.d.ts.map +0 -1
  278. package/models/components/invoiceinput.js.map +0 -1
  279. package/models/components/journalentrylineiteminput.d.ts.map +0 -1
  280. package/models/components/journalentrylineiteminput.js.map +0 -1
  281. package/models/components/ledgeraccountinput.d.ts.map +0 -1
  282. package/models/components/ledgeraccountinput.js.map +0 -1
  283. package/models/components/sharedlinkinput.d.ts.map +0 -1
  284. package/models/components/sharedlinkinput.js.map +0 -1
  285. package/models/components/taxrateinput.d.ts.map +0 -1
  286. package/models/components/taxrateinput.js.map +0 -1
  287. package/models/components/ticket.d.ts.map +0 -1
  288. package/models/components/ticket.js.map +0 -1
  289. package/models/components/timeoffrequestinput.d.ts.map +0 -1
  290. package/models/components/timeoffrequestinput.js.map +0 -1
  291. package/src/models/components/{accountingdepartmentinput.ts → accountingdepartment.ts} +102 -102
  292. package/src/models/components/{accountinglocationinput.ts → accountinglocation.ts} +106 -106
  293. package/src/models/components/{activityattendeeinput.ts → activityattendee.ts} +89 -89
  294. package/src/models/components/{allocationinput.ts → allocation.ts} +46 -46
  295. package/src/models/components/{applicationinput.ts → application.ts} +85 -85
  296. package/src/models/components/{billlineitem.ts → billlineiteminput.ts} +107 -107
  297. package/src/models/components/{company.ts → companyinput.ts} +226 -226
  298. package/src/models/components/{employeejobinput.ts → employeejob.ts} +60 -60
  299. package/src/models/components/{expenseinput.ts → expense.ts} +159 -159
  300. package/src/models/components/{hriscompanyinput.ts → hriscompany.ts} +101 -101
  301. package/src/models/components/{journalentrylineiteminput.ts → journalentrylineitem.ts} +81 -81
  302. package/src/models/components/{ledgeraccountinput.ts → ledgeraccount.ts} +253 -253
  303. package/src/models/components/{sharedlinkinput.ts → sharedlink.ts} +99 -99
  304. package/src/models/components/{taxrateinput.ts → taxrate.ts} +146 -146
  305. package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
  306. package/src/models/components/{timeoffrequestinput.ts → timeoffrequest.ts} +100 -100
@@ -22,7 +22,11 @@ export const ActivityAttendeeStatus = {
22
22
  */
23
23
  export type ActivityAttendeeStatus = ClosedEnum<typeof ActivityAttendeeStatus>;
24
24
 
25
- export type ActivityAttendeeInput = {
25
+ export type ActivityAttendee = {
26
+ /**
27
+ * Unique identifier for the attendee
28
+ */
29
+ id?: string | null | undefined;
26
30
  /**
27
31
  * Full name of the attendee
28
32
  */
@@ -59,13 +63,25 @@ export type ActivityAttendeeInput = {
59
63
  * Status of the attendee
60
64
  */
61
65
  status?: ActivityAttendeeStatus | null | undefined;
62
- };
63
-
64
- export type ActivityAttendee = {
65
66
  /**
66
- * Unique identifier for the attendee
67
+ * The identifier for a related user
67
68
  */
68
- id?: string | null | undefined;
69
+ userId?: string | null | undefined;
70
+ /**
71
+ * The identifier for a related contact
72
+ */
73
+ contactId?: string | null | undefined;
74
+ /**
75
+ * The last time the attendee was updated (ISO 8601)
76
+ */
77
+ updatedAt?: Date | null | undefined;
78
+ /**
79
+ * The time the attendee was created (ISO 8601)
80
+ */
81
+ createdAt?: Date | null | undefined;
82
+ };
83
+
84
+ export type ActivityAttendeeInput = {
69
85
  /**
70
86
  * Full name of the attendee
71
87
  */
@@ -102,22 +118,6 @@ export type ActivityAttendee = {
102
118
  * Status of the attendee
103
119
  */
104
120
  status?: ActivityAttendeeStatus | null | undefined;
105
- /**
106
- * The identifier for a related user
107
- */
108
- userId?: string | null | undefined;
109
- /**
110
- * The identifier for a related contact
111
- */
112
- contactId?: string | null | undefined;
113
- /**
114
- * The last time the attendee was updated (ISO 8601)
115
- */
116
- updatedAt?: Date | null | undefined;
117
- /**
118
- * The time the attendee was created (ISO 8601)
119
- */
120
- createdAt?: Date | null | undefined;
121
121
  };
122
122
 
123
123
  /** @internal */
@@ -142,11 +142,12 @@ export namespace ActivityAttendeeStatus$ {
142
142
  }
143
143
 
144
144
  /** @internal */
145
- export const ActivityAttendeeInput$inboundSchema: z.ZodType<
146
- ActivityAttendeeInput,
145
+ export const ActivityAttendee$inboundSchema: z.ZodType<
146
+ ActivityAttendee,
147
147
  z.ZodTypeDef,
148
148
  unknown
149
149
  > = z.object({
150
+ id: z.nullable(z.string()).optional(),
150
151
  name: z.nullable(z.string()).optional(),
151
152
  first_name: z.nullable(z.string()).optional(),
152
153
  middle_name: z.nullable(z.string()).optional(),
@@ -156,6 +157,14 @@ export const ActivityAttendeeInput$inboundSchema: z.ZodType<
156
157
  email_address: z.nullable(z.string()).optional(),
157
158
  is_organizer: z.nullable(z.boolean()).optional(),
158
159
  status: z.nullable(ActivityAttendeeStatus$inboundSchema).optional(),
160
+ user_id: z.nullable(z.string()).optional(),
161
+ contact_id: z.nullable(z.string()).optional(),
162
+ updated_at: z.nullable(
163
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
164
+ ).optional(),
165
+ created_at: z.nullable(
166
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
167
+ ).optional(),
159
168
  }).transform((v) => {
160
169
  return remap$(v, {
161
170
  "first_name": "firstName",
@@ -163,11 +172,16 @@ export const ActivityAttendeeInput$inboundSchema: z.ZodType<
163
172
  "last_name": "lastName",
164
173
  "email_address": "emailAddress",
165
174
  "is_organizer": "isOrganizer",
175
+ "user_id": "userId",
176
+ "contact_id": "contactId",
177
+ "updated_at": "updatedAt",
178
+ "created_at": "createdAt",
166
179
  });
167
180
  });
168
181
 
169
182
  /** @internal */
170
- export type ActivityAttendeeInput$Outbound = {
183
+ export type ActivityAttendee$Outbound = {
184
+ id?: string | null | undefined;
171
185
  name?: string | null | undefined;
172
186
  first_name?: string | null | undefined;
173
187
  middle_name?: string | null | undefined;
@@ -177,14 +191,19 @@ export type ActivityAttendeeInput$Outbound = {
177
191
  email_address?: string | null | undefined;
178
192
  is_organizer?: boolean | null | undefined;
179
193
  status?: string | null | undefined;
194
+ user_id?: string | null | undefined;
195
+ contact_id?: string | null | undefined;
196
+ updated_at?: string | null | undefined;
197
+ created_at?: string | null | undefined;
180
198
  };
181
199
 
182
200
  /** @internal */
183
- export const ActivityAttendeeInput$outboundSchema: z.ZodType<
184
- ActivityAttendeeInput$Outbound,
201
+ export const ActivityAttendee$outboundSchema: z.ZodType<
202
+ ActivityAttendee$Outbound,
185
203
  z.ZodTypeDef,
186
- ActivityAttendeeInput
204
+ ActivityAttendee
187
205
  > = z.object({
206
+ id: z.nullable(z.string()).optional(),
188
207
  name: z.nullable(z.string()).optional(),
189
208
  firstName: z.nullable(z.string()).optional(),
190
209
  middleName: z.nullable(z.string()).optional(),
@@ -194,6 +213,10 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
194
213
  emailAddress: z.nullable(z.string()).optional(),
195
214
  isOrganizer: z.nullable(z.boolean()).optional(),
196
215
  status: z.nullable(ActivityAttendeeStatus$outboundSchema).optional(),
216
+ userId: z.nullable(z.string()).optional(),
217
+ contactId: z.nullable(z.string()).optional(),
218
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
219
+ createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
197
220
  }).transform((v) => {
198
221
  return remap$(v, {
199
222
  firstName: "first_name",
@@ -201,6 +224,10 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
201
224
  lastName: "last_name",
202
225
  emailAddress: "email_address",
203
226
  isOrganizer: "is_organizer",
227
+ userId: "user_id",
228
+ contactId: "contact_id",
229
+ updatedAt: "updated_at",
230
+ createdAt: "created_at",
204
231
  });
205
232
  });
206
233
 
@@ -208,40 +235,39 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
208
235
  * @internal
209
236
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
210
237
  */
211
- export namespace ActivityAttendeeInput$ {
212
- /** @deprecated use `ActivityAttendeeInput$inboundSchema` instead. */
213
- export const inboundSchema = ActivityAttendeeInput$inboundSchema;
214
- /** @deprecated use `ActivityAttendeeInput$outboundSchema` instead. */
215
- export const outboundSchema = ActivityAttendeeInput$outboundSchema;
216
- /** @deprecated use `ActivityAttendeeInput$Outbound` instead. */
217
- export type Outbound = ActivityAttendeeInput$Outbound;
238
+ export namespace ActivityAttendee$ {
239
+ /** @deprecated use `ActivityAttendee$inboundSchema` instead. */
240
+ export const inboundSchema = ActivityAttendee$inboundSchema;
241
+ /** @deprecated use `ActivityAttendee$outboundSchema` instead. */
242
+ export const outboundSchema = ActivityAttendee$outboundSchema;
243
+ /** @deprecated use `ActivityAttendee$Outbound` instead. */
244
+ export type Outbound = ActivityAttendee$Outbound;
218
245
  }
219
246
 
220
- export function activityAttendeeInputToJSON(
221
- activityAttendeeInput: ActivityAttendeeInput,
247
+ export function activityAttendeeToJSON(
248
+ activityAttendee: ActivityAttendee,
222
249
  ): string {
223
250
  return JSON.stringify(
224
- ActivityAttendeeInput$outboundSchema.parse(activityAttendeeInput),
251
+ ActivityAttendee$outboundSchema.parse(activityAttendee),
225
252
  );
226
253
  }
227
254
 
228
- export function activityAttendeeInputFromJSON(
255
+ export function activityAttendeeFromJSON(
229
256
  jsonString: string,
230
- ): SafeParseResult<ActivityAttendeeInput, SDKValidationError> {
257
+ ): SafeParseResult<ActivityAttendee, SDKValidationError> {
231
258
  return safeParse(
232
259
  jsonString,
233
- (x) => ActivityAttendeeInput$inboundSchema.parse(JSON.parse(x)),
234
- `Failed to parse 'ActivityAttendeeInput' from JSON`,
260
+ (x) => ActivityAttendee$inboundSchema.parse(JSON.parse(x)),
261
+ `Failed to parse 'ActivityAttendee' from JSON`,
235
262
  );
236
263
  }
237
264
 
238
265
  /** @internal */
239
- export const ActivityAttendee$inboundSchema: z.ZodType<
240
- ActivityAttendee,
266
+ export const ActivityAttendeeInput$inboundSchema: z.ZodType<
267
+ ActivityAttendeeInput,
241
268
  z.ZodTypeDef,
242
269
  unknown
243
270
  > = z.object({
244
- id: z.nullable(z.string()).optional(),
245
271
  name: z.nullable(z.string()).optional(),
246
272
  first_name: z.nullable(z.string()).optional(),
247
273
  middle_name: z.nullable(z.string()).optional(),
@@ -251,14 +277,6 @@ export const ActivityAttendee$inboundSchema: z.ZodType<
251
277
  email_address: z.nullable(z.string()).optional(),
252
278
  is_organizer: z.nullable(z.boolean()).optional(),
253
279
  status: z.nullable(ActivityAttendeeStatus$inboundSchema).optional(),
254
- user_id: z.nullable(z.string()).optional(),
255
- contact_id: z.nullable(z.string()).optional(),
256
- updated_at: z.nullable(
257
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
258
- ).optional(),
259
- created_at: z.nullable(
260
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
261
- ).optional(),
262
280
  }).transform((v) => {
263
281
  return remap$(v, {
264
282
  "first_name": "firstName",
@@ -266,16 +284,11 @@ export const ActivityAttendee$inboundSchema: z.ZodType<
266
284
  "last_name": "lastName",
267
285
  "email_address": "emailAddress",
268
286
  "is_organizer": "isOrganizer",
269
- "user_id": "userId",
270
- "contact_id": "contactId",
271
- "updated_at": "updatedAt",
272
- "created_at": "createdAt",
273
287
  });
274
288
  });
275
289
 
276
290
  /** @internal */
277
- export type ActivityAttendee$Outbound = {
278
- id?: string | null | undefined;
291
+ export type ActivityAttendeeInput$Outbound = {
279
292
  name?: string | null | undefined;
280
293
  first_name?: string | null | undefined;
281
294
  middle_name?: string | null | undefined;
@@ -285,19 +298,14 @@ export type ActivityAttendee$Outbound = {
285
298
  email_address?: string | null | undefined;
286
299
  is_organizer?: boolean | null | undefined;
287
300
  status?: string | null | undefined;
288
- user_id?: string | null | undefined;
289
- contact_id?: string | null | undefined;
290
- updated_at?: string | null | undefined;
291
- created_at?: string | null | undefined;
292
301
  };
293
302
 
294
303
  /** @internal */
295
- export const ActivityAttendee$outboundSchema: z.ZodType<
296
- ActivityAttendee$Outbound,
304
+ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
305
+ ActivityAttendeeInput$Outbound,
297
306
  z.ZodTypeDef,
298
- ActivityAttendee
307
+ ActivityAttendeeInput
299
308
  > = z.object({
300
- id: z.nullable(z.string()).optional(),
301
309
  name: z.nullable(z.string()).optional(),
302
310
  firstName: z.nullable(z.string()).optional(),
303
311
  middleName: z.nullable(z.string()).optional(),
@@ -307,10 +315,6 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
307
315
  emailAddress: z.nullable(z.string()).optional(),
308
316
  isOrganizer: z.nullable(z.boolean()).optional(),
309
317
  status: z.nullable(ActivityAttendeeStatus$outboundSchema).optional(),
310
- userId: z.nullable(z.string()).optional(),
311
- contactId: z.nullable(z.string()).optional(),
312
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
313
- createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
314
318
  }).transform((v) => {
315
319
  return remap$(v, {
316
320
  firstName: "first_name",
@@ -318,10 +322,6 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
318
322
  lastName: "last_name",
319
323
  emailAddress: "email_address",
320
324
  isOrganizer: "is_organizer",
321
- userId: "user_id",
322
- contactId: "contact_id",
323
- updatedAt: "updated_at",
324
- createdAt: "created_at",
325
325
  });
326
326
  });
327
327
 
@@ -329,29 +329,29 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
329
329
  * @internal
330
330
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
331
331
  */
332
- export namespace ActivityAttendee$ {
333
- /** @deprecated use `ActivityAttendee$inboundSchema` instead. */
334
- export const inboundSchema = ActivityAttendee$inboundSchema;
335
- /** @deprecated use `ActivityAttendee$outboundSchema` instead. */
336
- export const outboundSchema = ActivityAttendee$outboundSchema;
337
- /** @deprecated use `ActivityAttendee$Outbound` instead. */
338
- export type Outbound = ActivityAttendee$Outbound;
332
+ export namespace ActivityAttendeeInput$ {
333
+ /** @deprecated use `ActivityAttendeeInput$inboundSchema` instead. */
334
+ export const inboundSchema = ActivityAttendeeInput$inboundSchema;
335
+ /** @deprecated use `ActivityAttendeeInput$outboundSchema` instead. */
336
+ export const outboundSchema = ActivityAttendeeInput$outboundSchema;
337
+ /** @deprecated use `ActivityAttendeeInput$Outbound` instead. */
338
+ export type Outbound = ActivityAttendeeInput$Outbound;
339
339
  }
340
340
 
341
- export function activityAttendeeToJSON(
342
- activityAttendee: ActivityAttendee,
341
+ export function activityAttendeeInputToJSON(
342
+ activityAttendeeInput: ActivityAttendeeInput,
343
343
  ): string {
344
344
  return JSON.stringify(
345
- ActivityAttendee$outboundSchema.parse(activityAttendee),
345
+ ActivityAttendeeInput$outboundSchema.parse(activityAttendeeInput),
346
346
  );
347
347
  }
348
348
 
349
- export function activityAttendeeFromJSON(
349
+ export function activityAttendeeInputFromJSON(
350
350
  jsonString: string,
351
- ): SafeParseResult<ActivityAttendee, SDKValidationError> {
351
+ ): SafeParseResult<ActivityAttendeeInput, SDKValidationError> {
352
352
  return safeParse(
353
353
  jsonString,
354
- (x) => ActivityAttendee$inboundSchema.parse(JSON.parse(x)),
355
- `Failed to parse 'ActivityAttendee' from JSON`,
354
+ (x) => ActivityAttendeeInput$inboundSchema.parse(JSON.parse(x)),
355
+ `Failed to parse 'ActivityAttendeeInput' from JSON`,
356
356
  );
357
357
  }
@@ -28,7 +28,7 @@ export const AllocationType = {
28
28
  */
29
29
  export type AllocationType = ClosedEnum<typeof AllocationType>;
30
30
 
31
- export type AllocationInput = {
31
+ export type Allocation = {
32
32
  /**
33
33
  * Unique identifier of entity this payment should be attributed to.
34
34
  */
@@ -37,6 +37,7 @@ export type AllocationInput = {
37
37
  * Type of entity this payment should be attributed to.
38
38
  */
39
39
  type?: AllocationType | undefined;
40
+ code?: string | undefined;
40
41
  /**
41
42
  * Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
42
43
  */
@@ -47,7 +48,7 @@ export type AllocationInput = {
47
48
  allocationId?: string | undefined;
48
49
  };
49
50
 
50
- export type Allocation = {
51
+ export type AllocationInput = {
51
52
  /**
52
53
  * Unique identifier of entity this payment should be attributed to.
53
54
  */
@@ -56,7 +57,6 @@ export type Allocation = {
56
57
  * Type of entity this payment should be attributed to.
57
58
  */
58
59
  type?: AllocationType | undefined;
59
- code?: string | undefined;
60
60
  /**
61
61
  * Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
62
62
  */
@@ -89,13 +89,14 @@ export namespace AllocationType$ {
89
89
  }
90
90
 
91
91
  /** @internal */
92
- export const AllocationInput$inboundSchema: z.ZodType<
93
- AllocationInput,
92
+ export const Allocation$inboundSchema: z.ZodType<
93
+ Allocation,
94
94
  z.ZodTypeDef,
95
95
  unknown
96
96
  > = z.object({
97
97
  id: z.string().optional(),
98
98
  type: AllocationType$inboundSchema.optional(),
99
+ code: z.string().optional(),
99
100
  amount: z.nullable(z.number()).optional(),
100
101
  allocation_id: z.string().optional(),
101
102
  }).transform((v) => {
@@ -105,21 +106,23 @@ export const AllocationInput$inboundSchema: z.ZodType<
105
106
  });
106
107
 
107
108
  /** @internal */
108
- export type AllocationInput$Outbound = {
109
+ export type Allocation$Outbound = {
109
110
  id?: string | undefined;
110
111
  type?: string | undefined;
112
+ code?: string | undefined;
111
113
  amount?: number | null | undefined;
112
114
  allocation_id?: string | undefined;
113
115
  };
114
116
 
115
117
  /** @internal */
116
- export const AllocationInput$outboundSchema: z.ZodType<
117
- AllocationInput$Outbound,
118
+ export const Allocation$outboundSchema: z.ZodType<
119
+ Allocation$Outbound,
118
120
  z.ZodTypeDef,
119
- AllocationInput
121
+ Allocation
120
122
  > = z.object({
121
123
  id: z.string().optional(),
122
124
  type: AllocationType$outboundSchema.optional(),
125
+ code: z.string().optional(),
123
126
  amount: z.nullable(z.number()).optional(),
124
127
  allocationId: z.string().optional(),
125
128
  }).transform((v) => {
@@ -132,40 +135,37 @@ export const AllocationInput$outboundSchema: z.ZodType<
132
135
  * @internal
133
136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
137
  */
135
- export namespace AllocationInput$ {
136
- /** @deprecated use `AllocationInput$inboundSchema` instead. */
137
- export const inboundSchema = AllocationInput$inboundSchema;
138
- /** @deprecated use `AllocationInput$outboundSchema` instead. */
139
- export const outboundSchema = AllocationInput$outboundSchema;
140
- /** @deprecated use `AllocationInput$Outbound` instead. */
141
- export type Outbound = AllocationInput$Outbound;
138
+ export namespace Allocation$ {
139
+ /** @deprecated use `Allocation$inboundSchema` instead. */
140
+ export const inboundSchema = Allocation$inboundSchema;
141
+ /** @deprecated use `Allocation$outboundSchema` instead. */
142
+ export const outboundSchema = Allocation$outboundSchema;
143
+ /** @deprecated use `Allocation$Outbound` instead. */
144
+ export type Outbound = Allocation$Outbound;
142
145
  }
143
146
 
144
- export function allocationInputToJSON(
145
- allocationInput: AllocationInput,
146
- ): string {
147
- return JSON.stringify(AllocationInput$outboundSchema.parse(allocationInput));
147
+ export function allocationToJSON(allocation: Allocation): string {
148
+ return JSON.stringify(Allocation$outboundSchema.parse(allocation));
148
149
  }
149
150
 
150
- export function allocationInputFromJSON(
151
+ export function allocationFromJSON(
151
152
  jsonString: string,
152
- ): SafeParseResult<AllocationInput, SDKValidationError> {
153
+ ): SafeParseResult<Allocation, SDKValidationError> {
153
154
  return safeParse(
154
155
  jsonString,
155
- (x) => AllocationInput$inboundSchema.parse(JSON.parse(x)),
156
- `Failed to parse 'AllocationInput' from JSON`,
156
+ (x) => Allocation$inboundSchema.parse(JSON.parse(x)),
157
+ `Failed to parse 'Allocation' from JSON`,
157
158
  );
158
159
  }
159
160
 
160
161
  /** @internal */
161
- export const Allocation$inboundSchema: z.ZodType<
162
- Allocation,
162
+ export const AllocationInput$inboundSchema: z.ZodType<
163
+ AllocationInput,
163
164
  z.ZodTypeDef,
164
165
  unknown
165
166
  > = z.object({
166
167
  id: z.string().optional(),
167
168
  type: AllocationType$inboundSchema.optional(),
168
- code: z.string().optional(),
169
169
  amount: z.nullable(z.number()).optional(),
170
170
  allocation_id: z.string().optional(),
171
171
  }).transform((v) => {
@@ -175,23 +175,21 @@ export const Allocation$inboundSchema: z.ZodType<
175
175
  });
176
176
 
177
177
  /** @internal */
178
- export type Allocation$Outbound = {
178
+ export type AllocationInput$Outbound = {
179
179
  id?: string | undefined;
180
180
  type?: string | undefined;
181
- code?: string | undefined;
182
181
  amount?: number | null | undefined;
183
182
  allocation_id?: string | undefined;
184
183
  };
185
184
 
186
185
  /** @internal */
187
- export const Allocation$outboundSchema: z.ZodType<
188
- Allocation$Outbound,
186
+ export const AllocationInput$outboundSchema: z.ZodType<
187
+ AllocationInput$Outbound,
189
188
  z.ZodTypeDef,
190
- Allocation
189
+ AllocationInput
191
190
  > = z.object({
192
191
  id: z.string().optional(),
193
192
  type: AllocationType$outboundSchema.optional(),
194
- code: z.string().optional(),
195
193
  amount: z.nullable(z.number()).optional(),
196
194
  allocationId: z.string().optional(),
197
195
  }).transform((v) => {
@@ -204,25 +202,27 @@ export const Allocation$outboundSchema: z.ZodType<
204
202
  * @internal
205
203
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
206
204
  */
207
- export namespace Allocation$ {
208
- /** @deprecated use `Allocation$inboundSchema` instead. */
209
- export const inboundSchema = Allocation$inboundSchema;
210
- /** @deprecated use `Allocation$outboundSchema` instead. */
211
- export const outboundSchema = Allocation$outboundSchema;
212
- /** @deprecated use `Allocation$Outbound` instead. */
213
- export type Outbound = Allocation$Outbound;
205
+ export namespace AllocationInput$ {
206
+ /** @deprecated use `AllocationInput$inboundSchema` instead. */
207
+ export const inboundSchema = AllocationInput$inboundSchema;
208
+ /** @deprecated use `AllocationInput$outboundSchema` instead. */
209
+ export const outboundSchema = AllocationInput$outboundSchema;
210
+ /** @deprecated use `AllocationInput$Outbound` instead. */
211
+ export type Outbound = AllocationInput$Outbound;
214
212
  }
215
213
 
216
- export function allocationToJSON(allocation: Allocation): string {
217
- return JSON.stringify(Allocation$outboundSchema.parse(allocation));
214
+ export function allocationInputToJSON(
215
+ allocationInput: AllocationInput,
216
+ ): string {
217
+ return JSON.stringify(AllocationInput$outboundSchema.parse(allocationInput));
218
218
  }
219
219
 
220
- export function allocationFromJSON(
220
+ export function allocationInputFromJSON(
221
221
  jsonString: string,
222
- ): SafeParseResult<Allocation, SDKValidationError> {
222
+ ): SafeParseResult<AllocationInput, SDKValidationError> {
223
223
  return safeParse(
224
224
  jsonString,
225
- (x) => Allocation$inboundSchema.parse(JSON.parse(x)),
226
- `Failed to parse 'Allocation' from JSON`,
225
+ (x) => AllocationInput$inboundSchema.parse(JSON.parse(x)),
226
+ `Failed to parse 'AllocationInput' from JSON`,
227
227
  );
228
228
  }