@financeable/aggregation 0.12.0 → 0.13.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 (510) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/encodings.d.ts +1 -0
  4. package/lib/encodings.d.ts.map +1 -1
  5. package/models/components/addressattributes.d.ts +0 -28
  6. package/models/components/addressattributes.d.ts.map +1 -1
  7. package/models/components/apierrorlinks.d.ts +0 -19
  8. package/models/components/apierrorlinks.d.ts.map +1 -1
  9. package/models/components/applicationresource.d.ts +4 -21
  10. package/models/components/applicationresource.d.ts.map +1 -1
  11. package/models/components/applicationstatus.d.ts +1 -31
  12. package/models/components/applicationstatus.d.ts.map +1 -1
  13. package/models/components/australianstatesandterritories.d.ts +0 -28
  14. package/models/components/australianstatesandterritories.d.ts.map +1 -1
  15. package/models/components/badrequesterror.d.ts +3 -85
  16. package/models/components/badrequesterror.d.ts.map +1 -1
  17. package/models/components/businessapplicationjsonapirelationships.d.ts +1 -205
  18. package/models/components/businessapplicationjsonapirelationships.d.ts.map +1 -1
  19. package/models/components/businessapplicationpayload.d.ts +0 -64
  20. package/models/components/businessapplicationpayload.d.ts.map +1 -1
  21. package/models/components/businessapplicationresource.d.ts +12 -94
  22. package/models/components/businessapplicationresource.d.ts.map +1 -1
  23. package/models/components/businessloanbusinessapplicationrelationships.d.ts +0 -308
  24. package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
  25. package/models/components/commercialapplicationjsonapirelationships.d.ts +1 -267
  26. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  27. package/models/components/commercialsecuredapplicationpayload.d.ts +0 -78
  28. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  29. package/models/components/commercialsecuredapplicationresource.d.ts +12 -94
  30. package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
  31. package/models/components/commercialsecuredloanassetattributes.d.ts +0 -130
  32. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  33. package/models/components/commercialsecuredloanassettype.d.ts +0 -64
  34. package/models/components/commercialsecuredloanassettype.d.ts.map +1 -1
  35. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +0 -354
  36. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  37. package/models/components/commercialsecuredloantypeofsale.d.ts +0 -24
  38. package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -1
  39. package/models/components/consumerapplicationjsonapirelationships.d.ts +1 -205
  40. package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
  41. package/models/components/consumersecuredapplicationpayload.d.ts +0 -78
  42. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
  43. package/models/components/consumersecuredapplicationresource.d.ts +12 -94
  44. package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
  45. package/models/components/consumersecuredloanassetattributes.d.ts +0 -130
  46. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  47. package/models/components/consumersecuredloanassettype.d.ts +0 -40
  48. package/models/components/consumersecuredloanassettype.d.ts.map +1 -1
  49. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +0 -400
  50. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  51. package/models/components/consumersecuredloantypeofsale.d.ts +0 -24
  52. package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -1
  53. package/models/components/createsupportingdocumentsresponse.d.ts +3 -78
  54. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
  55. package/models/components/currencycodeiso4217.d.ts +0 -14
  56. package/models/components/currencycodeiso4217.d.ts.map +1 -1
  57. package/models/components/customerassetattributes.d.ts +0 -12
  58. package/models/components/customerassetattributes.d.ts.map +1 -1
  59. package/models/components/customerassettype.d.ts +0 -28
  60. package/models/components/customerassettype.d.ts.map +1 -1
  61. package/models/components/customerattributes.d.ts +1 -33
  62. package/models/components/customerattributes.d.ts.map +1 -1
  63. package/models/components/customerattributescreateitem.d.ts +0 -17
  64. package/models/components/customerattributescreateitem.d.ts.map +1 -1
  65. package/models/components/customeridtype.d.ts +0 -18
  66. package/models/components/customeridtype.d.ts.map +1 -1
  67. package/models/components/customerliabilityattributes.d.ts +0 -12
  68. package/models/components/customerliabilityattributes.d.ts.map +1 -1
  69. package/models/components/customerliabilityrepaymentfrequency.d.ts +0 -18
  70. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -1
  71. package/models/components/customerliabilitytype.d.ts +0 -24
  72. package/models/components/customerliabilitytype.d.ts.map +1 -1
  73. package/models/components/customertitle.d.ts +0 -20
  74. package/models/components/customertitle.d.ts.map +1 -1
  75. package/models/components/documenttype.d.ts +0 -40
  76. package/models/components/documenttype.d.ts.map +1 -1
  77. package/models/components/entityattributes.d.ts +0 -84
  78. package/models/components/entityattributes.d.ts.map +1 -1
  79. package/models/components/entityattributesinput.d.ts +0 -17
  80. package/models/components/entityattributesinput.d.ts.map +1 -1
  81. package/models/components/errorsource.d.ts +0 -21
  82. package/models/components/errorsource.d.ts.map +1 -1
  83. package/models/components/expenseattributes.d.ts +0 -17
  84. package/models/components/expenseattributes.d.ts.map +1 -1
  85. package/models/components/expensefrequency.d.ts +0 -20
  86. package/models/components/expensefrequency.d.ts.map +1 -1
  87. package/models/components/expensetype.d.ts +0 -52
  88. package/models/components/expensetype.d.ts.map +1 -1
  89. package/models/components/forbiddenerror.d.ts +2 -78
  90. package/models/components/forbiddenerror.d.ts.map +1 -1
  91. package/models/components/frequencytype.d.ts +0 -18
  92. package/models/components/frequencytype.d.ts.map +1 -1
  93. package/models/components/incomeattributes.d.ts +0 -17
  94. package/models/components/incomeattributes.d.ts.map +1 -1
  95. package/models/components/incomefrequency.d.ts +0 -22
  96. package/models/components/incomefrequency.d.ts.map +1 -1
  97. package/models/components/incometype.d.ts +0 -32
  98. package/models/components/incometype.d.ts.map +1 -1
  99. package/models/components/linkobject.d.ts +0 -12
  100. package/models/components/linkobject.d.ts.map +1 -1
  101. package/models/components/livingarrangements.d.ts +0 -20
  102. package/models/components/livingarrangements.d.ts.map +1 -1
  103. package/models/components/loandetailsattributes.d.ts +5 -132
  104. package/models/components/loandetailsattributes.d.ts.map +1 -1
  105. package/models/components/maritalstatus.d.ts +0 -16
  106. package/models/components/maritalstatus.d.ts.map +1 -1
  107. package/models/components/monetaryquantity.d.ts +0 -26
  108. package/models/components/monetaryquantity.d.ts.map +1 -1
  109. package/models/components/paginationlinks.d.ts +0 -22
  110. package/models/components/paginationlinks.d.ts.map +1 -1
  111. package/models/components/paginationmeta.d.ts +0 -22
  112. package/models/components/paginationmeta.d.ts.map +1 -1
  113. package/models/components/percentagequantity.d.ts +0 -26
  114. package/models/components/percentagequantity.d.ts.map +1 -1
  115. package/models/components/personalapplicationjsonapirelationships.d.ts +1 -143
  116. package/models/components/personalapplicationjsonapirelationships.d.ts.map +1 -1
  117. package/models/components/personalapplicationpayload.d.ts +0 -64
  118. package/models/components/personalapplicationpayload.d.ts.map +1 -1
  119. package/models/components/personalapplicationresource.d.ts +12 -94
  120. package/models/components/personalapplicationresource.d.ts.map +1 -1
  121. package/models/components/personalloanpersonalapplicationrelationships.d.ts +0 -354
  122. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  123. package/models/components/relationshipresourcenotfound.d.ts +2 -78
  124. package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
  125. package/models/components/repaymentstructure.d.ts +0 -18
  126. package/models/components/repaymentstructure.d.ts.map +1 -1
  127. package/models/components/residencystatus.d.ts +0 -22
  128. package/models/components/residencystatus.d.ts.map +1 -1
  129. package/models/components/resourcenotfound.d.ts +2 -78
  130. package/models/components/resourcenotfound.d.ts.map +1 -1
  131. package/models/components/security.d.ts +0 -17
  132. package/models/components/security.d.ts.map +1 -1
  133. package/models/components/supportingdocumentattributes.d.ts +0 -21
  134. package/models/components/supportingdocumentattributes.d.ts.map +1 -1
  135. package/models/components/supportingdocumentattributesinput.d.ts +0 -17
  136. package/models/components/supportingdocumentattributesinput.d.ts.map +1 -1
  137. package/models/components/supportingdocumentrelationships.d.ts +0 -190
  138. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  139. package/models/components/supportingdocumentresource.d.ts +0 -33
  140. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  141. package/models/components/tokenrequest.d.ts +0 -33
  142. package/models/components/tokenrequest.d.ts.map +1 -1
  143. package/models/components/tokenresponse.d.ts +0 -22
  144. package/models/components/tokenresponse.d.ts.map +1 -1
  145. package/models/components/uploadmimetype.d.ts +0 -28
  146. package/models/components/uploadmimetype.d.ts.map +1 -1
  147. package/models/operations/createapplication.d.ts +0 -484
  148. package/models/operations/createapplication.d.ts.map +1 -1
  149. package/models/operations/getapplication.d.ts +0 -469
  150. package/models/operations/getapplication.d.ts.map +1 -1
  151. package/models/operations/listapplications.d.ts +0 -91
  152. package/models/operations/listapplications.d.ts.map +1 -1
  153. package/models/operations/supportingdocumentscreate.d.ts +6 -159
  154. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  155. package/package.json +1 -1
  156. package/src/hooks/oauth2scopes.ts +16 -0
  157. package/src/lib/config.ts +3 -3
  158. package/src/lib/encodings.ts +17 -3
  159. package/src/models/components/addressattributes.ts +0 -27
  160. package/src/models/components/apierrorlinks.ts +0 -31
  161. package/src/models/components/applicationresource.ts +0 -48
  162. package/src/models/components/applicationstatus.ts +1 -17
  163. package/src/models/components/australianstatesandterritories.ts +0 -12
  164. package/src/models/components/badrequesterror.ts +4 -119
  165. package/src/models/components/businessapplicationjsonapirelationships.ts +1 -395
  166. package/src/models/components/businessapplicationpayload.ts +2 -114
  167. package/src/models/components/businessapplicationresource.ts +14 -156
  168. package/src/models/components/businessloanbusinessapplicationrelationships.ts +6 -776
  169. package/src/models/components/commercialapplicationjsonapirelationships.ts +1 -497
  170. package/src/models/components/commercialsecuredapplicationpayload.ts +2 -112
  171. package/src/models/components/commercialsecuredapplicationresource.ts +14 -164
  172. package/src/models/components/commercialsecuredloanassetattributes.ts +0 -131
  173. package/src/models/components/commercialsecuredloanassettype.ts +0 -12
  174. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +7 -790
  175. package/src/models/components/commercialsecuredloantypeofsale.ts +0 -12
  176. package/src/models/components/consumerapplicationjsonapirelationships.ts +1 -390
  177. package/src/models/components/consumersecuredapplicationpayload.ts +2 -127
  178. package/src/models/components/consumersecuredapplicationresource.ts +14 -163
  179. package/src/models/components/consumersecuredloanassetattributes.ts +0 -149
  180. package/src/models/components/consumersecuredloanassettype.ts +0 -12
  181. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +8 -977
  182. package/src/models/components/consumersecuredloantypeofsale.ts +0 -12
  183. package/src/models/components/createsupportingdocumentsresponse.ts +1 -107
  184. package/src/models/components/currencycodeiso4217.ts +0 -12
  185. package/src/models/components/customerassetattributes.ts +0 -15
  186. package/src/models/components/customerassettype.ts +0 -12
  187. package/src/models/components/customerattributes.ts +2 -75
  188. package/src/models/components/customerattributescreateitem.ts +0 -59
  189. package/src/models/components/customeridtype.ts +1 -17
  190. package/src/models/components/customerliabilityattributes.ts +0 -15
  191. package/src/models/components/customerliabilityrepaymentfrequency.ts +0 -14
  192. package/src/models/components/customerliabilitytype.ts +0 -12
  193. package/src/models/components/customertitle.ts +0 -12
  194. package/src/models/components/documenttype.ts +0 -12
  195. package/src/models/components/entityattributes.ts +0 -95
  196. package/src/models/components/entityattributesinput.ts +0 -41
  197. package/src/models/components/errorsource.ts +0 -35
  198. package/src/models/components/expenseattributes.ts +1 -45
  199. package/src/models/components/expensefrequency.ts +1 -17
  200. package/src/models/components/expensetype.ts +1 -16
  201. package/src/models/components/forbiddenerror.ts +2 -103
  202. package/src/models/components/frequencytype.ts +0 -12
  203. package/src/models/components/incomeattributes.ts +1 -45
  204. package/src/models/components/incomefrequency.ts +1 -17
  205. package/src/models/components/incometype.ts +1 -16
  206. package/src/models/components/linkobject.ts +0 -15
  207. package/src/models/components/livingarrangements.ts +0 -12
  208. package/src/models/components/loandetailsattributes.ts +7 -165
  209. package/src/models/components/maritalstatus.ts +0 -12
  210. package/src/models/components/monetaryquantity.ts +0 -27
  211. package/src/models/components/paginationlinks.ts +0 -39
  212. package/src/models/components/paginationmeta.ts +0 -43
  213. package/src/models/components/percentagequantity.ts +0 -27
  214. package/src/models/components/personalapplicationjsonapirelationships.ts +1 -277
  215. package/src/models/components/personalapplicationpayload.ts +2 -114
  216. package/src/models/components/personalapplicationresource.ts +14 -156
  217. package/src/models/components/personalloanpersonalapplicationrelationships.ts +7 -892
  218. package/src/models/components/relationshipresourcenotfound.ts +2 -113
  219. package/src/models/components/repaymentstructure.ts +0 -12
  220. package/src/models/components/residencystatus.ts +0 -12
  221. package/src/models/components/resourcenotfound.ts +2 -109
  222. package/src/models/components/security.ts +0 -35
  223. package/src/models/components/supportingdocumentattributes.ts +1 -46
  224. package/src/models/components/supportingdocumentattributesinput.ts +1 -42
  225. package/src/models/components/supportingdocumentrelationships.ts +0 -230
  226. package/src/models/components/supportingdocumentresource.ts +1 -59
  227. package/src/models/components/tokenrequest.ts +1 -60
  228. package/src/models/components/tokenresponse.ts +0 -43
  229. package/src/models/components/uploadmimetype.ts +1 -17
  230. package/src/models/operations/createapplication.ts +0 -779
  231. package/src/models/operations/getapplication.ts +0 -759
  232. package/src/models/operations/listapplications.ts +0 -199
  233. package/src/models/operations/supportingdocumentscreate.ts +10 -340
  234. package/src/types/enums.ts +38 -9
  235. package/src/types/index.ts +2 -2
  236. package/src/types/unrecognized.ts +35 -0
  237. package/tsconfig.json +0 -1
  238. package/types/enums.d.ts +8 -11
  239. package/types/enums.d.ts.map +1 -1
  240. package/types/index.d.ts +2 -2
  241. package/types/index.d.ts.map +1 -1
  242. package/.devcontainer/README.md +0 -35
  243. package/core.js +0 -17
  244. package/core.js.map +0 -1
  245. package/docs/sdks/applications/README.md +0 -527
  246. package/docs/sdks/oauthtoken/README.md +0 -87
  247. package/docs/sdks/supportingdocuments/README.md +0 -115
  248. package/examples/README.md +0 -31
  249. package/hooks/hooks.js +0 -84
  250. package/hooks/hooks.js.map +0 -1
  251. package/hooks/index.js +0 -22
  252. package/hooks/index.js.map +0 -1
  253. package/hooks/types.js +0 -6
  254. package/hooks/types.js.map +0 -1
  255. package/index.js +0 -48
  256. package/index.js.map +0 -1
  257. package/lib/base64.js +0 -71
  258. package/lib/base64.js.map +0 -1
  259. package/lib/config.d.ts +0 -38
  260. package/lib/config.d.ts.map +0 -1
  261. package/lib/config.js +0 -35
  262. package/lib/config.js.map +0 -1
  263. package/lib/dlv.d.ts +0 -14
  264. package/lib/dlv.d.ts.map +0 -1
  265. package/lib/dlv.js +0 -49
  266. package/lib/dlv.js.map +0 -1
  267. package/lib/encodings.js +0 -368
  268. package/lib/encodings.js.map +0 -1
  269. package/lib/env.js +0 -82
  270. package/lib/env.js.map +0 -1
  271. package/lib/files.d.ts +0 -13
  272. package/lib/files.d.ts.map +0 -1
  273. package/lib/files.js +0 -77
  274. package/lib/files.js.map +0 -1
  275. package/lib/http.d.ts +0 -67
  276. package/lib/http.d.ts.map +0 -1
  277. package/lib/http.js +0 -217
  278. package/lib/http.js.map +0 -1
  279. package/lib/is-plain-object.d.ts +0 -2
  280. package/lib/is-plain-object.d.ts.map +0 -1
  281. package/lib/is-plain-object.js +0 -41
  282. package/lib/is-plain-object.js.map +0 -1
  283. package/lib/logger.d.ts +0 -6
  284. package/lib/logger.d.ts.map +0 -1
  285. package/lib/logger.js +0 -6
  286. package/lib/logger.js.map +0 -1
  287. package/lib/matchers.js +0 -218
  288. package/lib/matchers.js.map +0 -1
  289. package/lib/primitives.d.ts +0 -26
  290. package/lib/primitives.d.ts.map +0 -1
  291. package/lib/primitives.js +0 -111
  292. package/lib/primitives.js.map +0 -1
  293. package/lib/retries.d.ts +0 -38
  294. package/lib/retries.d.ts.map +0 -1
  295. package/lib/retries.js +0 -153
  296. package/lib/retries.js.map +0 -1
  297. package/lib/schemas.js +0 -62
  298. package/lib/schemas.js.map +0 -1
  299. package/lib/sdks.js +0 -274
  300. package/lib/sdks.js.map +0 -1
  301. package/lib/security.js +0 -145
  302. package/lib/security.js.map +0 -1
  303. package/lib/url.d.ts +0 -5
  304. package/lib/url.d.ts.map +0 -1
  305. package/lib/url.js +0 -25
  306. package/lib/url.js.map +0 -1
  307. package/models/components/addressattributes.js +0 -120
  308. package/models/components/addressattributes.js.map +0 -1
  309. package/models/components/apierrorlinks.js +0 -69
  310. package/models/components/apierrorlinks.js.map +0 -1
  311. package/models/components/applicationresource.js +0 -79
  312. package/models/components/applicationresource.js.map +0 -1
  313. package/models/components/applicationstatus.js +0 -66
  314. package/models/components/applicationstatus.js.map +0 -1
  315. package/models/components/australianstatesandterritories.js +0 -66
  316. package/models/components/australianstatesandterritories.js.map +0 -1
  317. package/models/components/badrequesterror.js +0 -139
  318. package/models/components/badrequesterror.js.map +0 -1
  319. package/models/components/businessapplicationjsonapirelationships.js +0 -309
  320. package/models/components/businessapplicationjsonapirelationships.js.map +0 -1
  321. package/models/components/businessapplicationpayload.js +0 -150
  322. package/models/components/businessapplicationpayload.js.map +0 -1
  323. package/models/components/businessapplicationresource.js +0 -159
  324. package/models/components/businessapplicationresource.js.map +0 -1
  325. package/models/components/businessloanbusinessapplicationrelationships.js +0 -597
  326. package/models/components/businessloanbusinessapplicationrelationships.js.map +0 -1
  327. package/models/components/commercialapplicationjsonapirelationships.js +0 -391
  328. package/models/components/commercialapplicationjsonapirelationships.js.map +0 -1
  329. package/models/components/commercialsecuredapplicationpayload.js +0 -159
  330. package/models/components/commercialsecuredapplicationpayload.js.map +0 -1
  331. package/models/components/commercialsecuredapplicationresource.js +0 -159
  332. package/models/components/commercialsecuredapplicationresource.js.map +0 -1
  333. package/models/components/commercialsecuredloanassetattributes.js +0 -322
  334. package/models/components/commercialsecuredloanassetattributes.js.map +0 -1
  335. package/models/components/commercialsecuredloanassettype.js +0 -84
  336. package/models/components/commercialsecuredloanassettype.js.map +0 -1
  337. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +0 -682
  338. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +0 -1
  339. package/models/components/commercialsecuredloantypeofsale.js +0 -64
  340. package/models/components/commercialsecuredloantypeofsale.js.map +0 -1
  341. package/models/components/consumerapplicationjsonapirelationships.js +0 -310
  342. package/models/components/consumerapplicationjsonapirelationships.js.map +0 -1
  343. package/models/components/consumersecuredapplicationpayload.js +0 -160
  344. package/models/components/consumersecuredapplicationpayload.js.map +0 -1
  345. package/models/components/consumersecuredapplicationresource.js +0 -159
  346. package/models/components/consumersecuredapplicationresource.js.map +0 -1
  347. package/models/components/consumersecuredloanassetattributes.js +0 -324
  348. package/models/components/consumersecuredloanassetattributes.js.map +0 -1
  349. package/models/components/consumersecuredloanassettype.js +0 -72
  350. package/models/components/consumersecuredloanassettype.js.map +0 -1
  351. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +0 -775
  352. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +0 -1
  353. package/models/components/consumersecuredloantypeofsale.js +0 -64
  354. package/models/components/consumersecuredloantypeofsale.js.map +0 -1
  355. package/models/components/createsupportingdocumentsresponse.js +0 -138
  356. package/models/components/createsupportingdocumentsresponse.js.map +0 -1
  357. package/models/components/currencycodeiso4217.js +0 -59
  358. package/models/components/currencycodeiso4217.js.map +0 -1
  359. package/models/components/customerassetattributes.js +0 -77
  360. package/models/components/customerassetattributes.js.map +0 -1
  361. package/models/components/customerassettype.js +0 -66
  362. package/models/components/customerassettype.js.map +0 -1
  363. package/models/components/customerattributes.js +0 -100
  364. package/models/components/customerattributes.js.map +0 -1
  365. package/models/components/customerattributescreateitem.js +0 -110
  366. package/models/components/customerattributescreateitem.js.map +0 -1
  367. package/models/components/customeridtype.js +0 -60
  368. package/models/components/customeridtype.js.map +0 -1
  369. package/models/components/customerliabilityattributes.js +0 -88
  370. package/models/components/customerliabilityattributes.js.map +0 -1
  371. package/models/components/customerliabilityrepaymentfrequency.js +0 -61
  372. package/models/components/customerliabilityrepaymentfrequency.js.map +0 -1
  373. package/models/components/customerliabilitytype.js +0 -64
  374. package/models/components/customerliabilitytype.js.map +0 -1
  375. package/models/components/customertitle.js +0 -62
  376. package/models/components/customertitle.js.map +0 -1
  377. package/models/components/documenttype.js +0 -75
  378. package/models/components/documenttype.js.map +0 -1
  379. package/models/components/entityattributes.js +0 -151
  380. package/models/components/entityattributes.js.map +0 -1
  381. package/models/components/entityattributesinput.js +0 -81
  382. package/models/components/entityattributesinput.js.map +0 -1
  383. package/models/components/errorsource.js +0 -73
  384. package/models/components/errorsource.js.map +0 -1
  385. package/models/components/expenseattributes.js +0 -78
  386. package/models/components/expenseattributes.js.map +0 -1
  387. package/models/components/expensefrequency.js +0 -61
  388. package/models/components/expensefrequency.js.map +0 -1
  389. package/models/components/expensetype.js +0 -78
  390. package/models/components/expensetype.js.map +0 -1
  391. package/models/components/forbiddenerror.js +0 -139
  392. package/models/components/forbiddenerror.js.map +0 -1
  393. package/models/components/frequencytype.js +0 -64
  394. package/models/components/frequencytype.js.map +0 -1
  395. package/models/components/incomeattributes.js +0 -78
  396. package/models/components/incomeattributes.js.map +0 -1
  397. package/models/components/incomefrequency.js +0 -62
  398. package/models/components/incomefrequency.js.map +0 -1
  399. package/models/components/incometype.js +0 -68
  400. package/models/components/incometype.js.map +0 -1
  401. package/models/components/index.js +0 -91
  402. package/models/components/index.js.map +0 -1
  403. package/models/components/linkobject.js +0 -77
  404. package/models/components/linkobject.js.map +0 -1
  405. package/models/components/livingarrangements.js +0 -62
  406. package/models/components/livingarrangements.js.map +0 -1
  407. package/models/components/loandetailsattributes.js +0 -375
  408. package/models/components/loandetailsattributes.js.map +0 -1
  409. package/models/components/maritalstatus.js +0 -60
  410. package/models/components/maritalstatus.js.map +0 -1
  411. package/models/components/monetaryquantity.js +0 -93
  412. package/models/components/monetaryquantity.js.map +0 -1
  413. package/models/components/paginationlinks.js +0 -75
  414. package/models/components/paginationlinks.js.map +0 -1
  415. package/models/components/paginationmeta.js +0 -88
  416. package/models/components/paginationmeta.js.map +0 -1
  417. package/models/components/percentagequantity.js +0 -89
  418. package/models/components/percentagequantity.js.map +0 -1
  419. package/models/components/personalapplicationjsonapirelationships.js +0 -229
  420. package/models/components/personalapplicationjsonapirelationships.js.map +0 -1
  421. package/models/components/personalapplicationpayload.js +0 -150
  422. package/models/components/personalapplicationpayload.js.map +0 -1
  423. package/models/components/personalapplicationresource.js +0 -159
  424. package/models/components/personalapplicationresource.js.map +0 -1
  425. package/models/components/personalloanpersonalapplicationrelationships.js +0 -682
  426. package/models/components/personalloanpersonalapplicationrelationships.js.map +0 -1
  427. package/models/components/relationshipresourcenotfound.js +0 -139
  428. package/models/components/relationshipresourcenotfound.js.map +0 -1
  429. package/models/components/repaymentstructure.js +0 -64
  430. package/models/components/repaymentstructure.js.map +0 -1
  431. package/models/components/residencystatus.js +0 -63
  432. package/models/components/residencystatus.js.map +0 -1
  433. package/models/components/resourcenotfound.js +0 -139
  434. package/models/components/resourcenotfound.js.map +0 -1
  435. package/models/components/security.js +0 -69
  436. package/models/components/security.js.map +0 -1
  437. package/models/components/supportingdocumentattributes.js +0 -74
  438. package/models/components/supportingdocumentattributes.js.map +0 -1
  439. package/models/components/supportingdocumentattributesinput.js +0 -72
  440. package/models/components/supportingdocumentattributesinput.js.map +0 -1
  441. package/models/components/supportingdocumentrelationships.js +0 -434
  442. package/models/components/supportingdocumentrelationships.js.map +0 -1
  443. package/models/components/supportingdocumentresource.js +0 -98
  444. package/models/components/supportingdocumentresource.js.map +0 -1
  445. package/models/components/tokenrequest.js +0 -110
  446. package/models/components/tokenrequest.js.map +0 -1
  447. package/models/components/tokenresponse.js +0 -88
  448. package/models/components/tokenresponse.js.map +0 -1
  449. package/models/components/uploadmimetype.js +0 -68
  450. package/models/components/uploadmimetype.js.map +0 -1
  451. package/models/errors/apierror.d.ts +0 -10
  452. package/models/errors/apierror.d.ts.map +0 -1
  453. package/models/errors/apierror.js +0 -34
  454. package/models/errors/apierror.js.map +0 -1
  455. package/models/errors/financeableerror.d.ts +0 -19
  456. package/models/errors/financeableerror.d.ts.map +0 -1
  457. package/models/errors/financeableerror.js +0 -20
  458. package/models/errors/financeableerror.js.map +0 -1
  459. package/models/errors/httpclienterrors.d.ts +0 -44
  460. package/models/errors/httpclienterrors.d.ts.map +0 -1
  461. package/models/errors/httpclienterrors.js +0 -78
  462. package/models/errors/httpclienterrors.js.map +0 -1
  463. package/models/errors/index.js +0 -25
  464. package/models/errors/index.js.map +0 -1
  465. package/models/errors/responsevalidationerror.js +0 -66
  466. package/models/errors/responsevalidationerror.js.map +0 -1
  467. package/models/errors/sdkvalidationerror.js +0 -129
  468. package/models/errors/sdkvalidationerror.js.map +0 -1
  469. package/models/operations/createapplication.js +0 -747
  470. package/models/operations/createapplication.js.map +0 -1
  471. package/models/operations/getapplication.js +0 -697
  472. package/models/operations/getapplication.js.map +0 -1
  473. package/models/operations/index.js +0 -24
  474. package/models/operations/index.js.map +0 -1
  475. package/models/operations/listapplications.js +0 -199
  476. package/models/operations/listapplications.js.map +0 -1
  477. package/models/operations/supportingdocumentscreate.js +0 -320
  478. package/models/operations/supportingdocumentscreate.js.map +0 -1
  479. package/sdk/index.js +0 -21
  480. package/sdk/index.js.map +0 -1
  481. package/sdk/sdk.js +0 -23
  482. package/sdk/sdk.js.map +0 -1
  483. package/types/async.d.ts +0 -23
  484. package/types/async.d.ts.map +0 -1
  485. package/types/async.js +0 -44
  486. package/types/async.js.map +0 -1
  487. package/types/blobs.js +0 -62
  488. package/types/blobs.js.map +0 -1
  489. package/types/constdatetime.js +0 -46
  490. package/types/constdatetime.js.map +0 -1
  491. package/types/enums.js +0 -10
  492. package/types/enums.js.map +0 -1
  493. package/types/fp.d.ts +0 -31
  494. package/types/fp.d.ts.map +0 -1
  495. package/types/fp.js +0 -37
  496. package/types/fp.js.map +0 -1
  497. package/types/index.js +0 -16
  498. package/types/index.js.map +0 -1
  499. package/types/operations.d.ts +0 -27
  500. package/types/operations.d.ts.map +0 -1
  501. package/types/operations.js +0 -83
  502. package/types/operations.js.map +0 -1
  503. package/types/rfcdate.d.ts +0 -21
  504. package/types/rfcdate.d.ts.map +0 -1
  505. package/types/rfcdate.js +0 -46
  506. package/types/rfcdate.js.map +0 -1
  507. package/types/streams.d.ts +0 -2
  508. package/types/streams.d.ts.map +0 -1
  509. package/types/streams.js +0 -18
  510. package/types/streams.js.map +0 -1
@@ -21,19 +21,7 @@ export type CommercialSecuredLoanTypeOfSale = ClosedEnum<
21
21
  export const CommercialSecuredLoanTypeOfSale$inboundSchema: z.ZodNativeEnum<
22
22
  typeof CommercialSecuredLoanTypeOfSale
23
23
  > = z.nativeEnum(CommercialSecuredLoanTypeOfSale);
24
-
25
24
  /** @internal */
26
25
  export const CommercialSecuredLoanTypeOfSale$outboundSchema: z.ZodNativeEnum<
27
26
  typeof CommercialSecuredLoanTypeOfSale
28
27
  > = CommercialSecuredLoanTypeOfSale$inboundSchema;
29
-
30
- /**
31
- * @internal
32
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
33
- */
34
- export namespace CommercialSecuredLoanTypeOfSale$ {
35
- /** @deprecated use `CommercialSecuredLoanTypeOfSale$inboundSchema` instead. */
36
- export const inboundSchema = CommercialSecuredLoanTypeOfSale$inboundSchema;
37
- /** @deprecated use `CommercialSecuredLoanTypeOfSale$outboundSchema` instead. */
38
- export const outboundSchema = CommercialSecuredLoanTypeOfSale$outboundSchema;
39
- }
@@ -7,12 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- LinkObject,
12
- LinkObject$inboundSchema,
13
- LinkObject$Outbound,
14
- LinkObject$outboundSchema,
15
- } from "./linkobject.js";
10
+ import { LinkObject, LinkObject$inboundSchema } from "./linkobject.js";
16
11
 
17
12
  export const ConsumerApplicationJsonApiRelationshipsType = {
18
13
  LoanDetails: "loan-details",
@@ -82,24 +77,6 @@ export const ConsumerApplicationJsonApiRelationshipsType$inboundSchema:
82
77
  z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> = z
83
78
  .nativeEnum(ConsumerApplicationJsonApiRelationshipsType);
84
79
 
85
- /** @internal */
86
- export const ConsumerApplicationJsonApiRelationshipsType$outboundSchema:
87
- z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> =
88
- ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
89
-
90
- /**
91
- * @internal
92
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
- */
94
- export namespace ConsumerApplicationJsonApiRelationshipsType$ {
95
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$inboundSchema` instead. */
96
- export const inboundSchema =
97
- ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
98
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$outboundSchema` instead. */
99
- export const outboundSchema =
100
- ConsumerApplicationJsonApiRelationshipsType$outboundSchema;
101
- }
102
-
103
80
  /** @internal */
104
81
  export const ConsumerApplicationJsonApiRelationshipsData$inboundSchema:
105
82
  z.ZodType<
@@ -111,49 +88,6 @@ export const ConsumerApplicationJsonApiRelationshipsData$inboundSchema:
111
88
  id: z.string(),
112
89
  });
113
90
 
114
- /** @internal */
115
- export type ConsumerApplicationJsonApiRelationshipsData$Outbound = {
116
- type: string;
117
- id: string;
118
- };
119
-
120
- /** @internal */
121
- export const ConsumerApplicationJsonApiRelationshipsData$outboundSchema:
122
- z.ZodType<
123
- ConsumerApplicationJsonApiRelationshipsData$Outbound,
124
- z.ZodTypeDef,
125
- ConsumerApplicationJsonApiRelationshipsData
126
- > = z.object({
127
- type: ConsumerApplicationJsonApiRelationshipsType$outboundSchema,
128
- id: z.string(),
129
- });
130
-
131
- /**
132
- * @internal
133
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
- */
135
- export namespace ConsumerApplicationJsonApiRelationshipsData$ {
136
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$inboundSchema` instead. */
137
- export const inboundSchema =
138
- ConsumerApplicationJsonApiRelationshipsData$inboundSchema;
139
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$outboundSchema` instead. */
140
- export const outboundSchema =
141
- ConsumerApplicationJsonApiRelationshipsData$outboundSchema;
142
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$Outbound` instead. */
143
- export type Outbound = ConsumerApplicationJsonApiRelationshipsData$Outbound;
144
- }
145
-
146
- export function consumerApplicationJsonApiRelationshipsDataToJSON(
147
- consumerApplicationJsonApiRelationshipsData:
148
- ConsumerApplicationJsonApiRelationshipsData,
149
- ): string {
150
- return JSON.stringify(
151
- ConsumerApplicationJsonApiRelationshipsData$outboundSchema.parse(
152
- consumerApplicationJsonApiRelationshipsData,
153
- ),
154
- );
155
- }
156
-
157
91
  export function consumerApplicationJsonApiRelationshipsDataFromJSON(
158
92
  jsonString: string,
159
93
  ): SafeParseResult<
@@ -184,54 +118,6 @@ export const ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema:
184
118
  meta: z.record(z.any()).optional(),
185
119
  });
186
120
 
187
- /** @internal */
188
- export type ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound = {
189
- data: ConsumerApplicationJsonApiRelationshipsData$Outbound;
190
- links?: { [k: string]: LinkObject$Outbound } | undefined;
191
- meta?: { [k: string]: any } | undefined;
192
- };
193
-
194
- /** @internal */
195
- export const ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema:
196
- z.ZodType<
197
- ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound,
198
- z.ZodTypeDef,
199
- ConsumerApplicationJsonApiRelationshipsLoanDetails
200
- > = z.object({
201
- data: z.lazy(() =>
202
- ConsumerApplicationJsonApiRelationshipsData$outboundSchema
203
- ),
204
- links: z.record(LinkObject$outboundSchema).optional(),
205
- meta: z.record(z.any()).optional(),
206
- });
207
-
208
- /**
209
- * @internal
210
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
211
- */
212
- export namespace ConsumerApplicationJsonApiRelationshipsLoanDetails$ {
213
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema` instead. */
214
- export const inboundSchema =
215
- ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema;
216
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema` instead. */
217
- export const outboundSchema =
218
- ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema;
219
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound` instead. */
220
- export type Outbound =
221
- ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound;
222
- }
223
-
224
- export function consumerApplicationJsonApiRelationshipsLoanDetailsToJSON(
225
- consumerApplicationJsonApiRelationshipsLoanDetails:
226
- ConsumerApplicationJsonApiRelationshipsLoanDetails,
227
- ): string {
228
- return JSON.stringify(
229
- ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema.parse(
230
- consumerApplicationJsonApiRelationshipsLoanDetails,
231
- ),
232
- );
233
- }
234
-
235
121
  export function consumerApplicationJsonApiRelationshipsLoanDetailsFromJSON(
236
122
  jsonString: string,
237
123
  ): SafeParseResult<
@@ -253,24 +139,6 @@ export const ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema:
253
139
  z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
254
140
  z.nativeEnum(ConsumerApplicationJsonApiRelationshipsCustomersType);
255
141
 
256
- /** @internal */
257
- export const ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema:
258
- z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
259
- ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
260
-
261
- /**
262
- * @internal
263
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
- */
265
- export namespace ConsumerApplicationJsonApiRelationshipsCustomersType$ {
266
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema` instead. */
267
- export const inboundSchema =
268
- ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
269
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema` instead. */
270
- export const outboundSchema =
271
- ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema;
272
- }
273
-
274
142
  /** @internal */
275
143
  export const ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema:
276
144
  z.ZodType<
@@ -282,50 +150,6 @@ export const ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema:
282
150
  id: z.string(),
283
151
  });
284
152
 
285
- /** @internal */
286
- export type ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound = {
287
- type: string;
288
- id: string;
289
- };
290
-
291
- /** @internal */
292
- export const ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema:
293
- z.ZodType<
294
- ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound,
295
- z.ZodTypeDef,
296
- ConsumerApplicationJsonApiRelationshipsCustomersData
297
- > = z.object({
298
- type: ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema,
299
- id: z.string(),
300
- });
301
-
302
- /**
303
- * @internal
304
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
305
- */
306
- export namespace ConsumerApplicationJsonApiRelationshipsCustomersData$ {
307
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema` instead. */
308
- export const inboundSchema =
309
- ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema;
310
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema` instead. */
311
- export const outboundSchema =
312
- ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema;
313
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound` instead. */
314
- export type Outbound =
315
- ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound;
316
- }
317
-
318
- export function consumerApplicationJsonApiRelationshipsCustomersDataToJSON(
319
- consumerApplicationJsonApiRelationshipsCustomersData:
320
- ConsumerApplicationJsonApiRelationshipsCustomersData,
321
- ): string {
322
- return JSON.stringify(
323
- ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema.parse(
324
- consumerApplicationJsonApiRelationshipsCustomersData,
325
- ),
326
- );
327
- }
328
-
329
153
  export function consumerApplicationJsonApiRelationshipsCustomersDataFromJSON(
330
154
  jsonString: string,
331
155
  ): SafeParseResult<
@@ -358,56 +182,6 @@ export const ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema:
358
182
  meta: z.record(z.any()).optional(),
359
183
  });
360
184
 
361
- /** @internal */
362
- export type ConsumerApplicationJsonApiRelationshipsCustomers$Outbound = {
363
- data: Array<ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound>;
364
- links?: { [k: string]: LinkObject$Outbound } | undefined;
365
- meta?: { [k: string]: any } | undefined;
366
- };
367
-
368
- /** @internal */
369
- export const ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema:
370
- z.ZodType<
371
- ConsumerApplicationJsonApiRelationshipsCustomers$Outbound,
372
- z.ZodTypeDef,
373
- ConsumerApplicationJsonApiRelationshipsCustomers
374
- > = z.object({
375
- data: z.array(
376
- z.lazy(() =>
377
- ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema
378
- ),
379
- ),
380
- links: z.record(LinkObject$outboundSchema).optional(),
381
- meta: z.record(z.any()).optional(),
382
- });
383
-
384
- /**
385
- * @internal
386
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
387
- */
388
- export namespace ConsumerApplicationJsonApiRelationshipsCustomers$ {
389
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema` instead. */
390
- export const inboundSchema =
391
- ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema;
392
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema` instead. */
393
- export const outboundSchema =
394
- ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema;
395
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$Outbound` instead. */
396
- export type Outbound =
397
- ConsumerApplicationJsonApiRelationshipsCustomers$Outbound;
398
- }
399
-
400
- export function consumerApplicationJsonApiRelationshipsCustomersToJSON(
401
- consumerApplicationJsonApiRelationshipsCustomers:
402
- ConsumerApplicationJsonApiRelationshipsCustomers,
403
- ): string {
404
- return JSON.stringify(
405
- ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema.parse(
406
- consumerApplicationJsonApiRelationshipsCustomers,
407
- ),
408
- );
409
- }
410
-
411
185
  export function consumerApplicationJsonApiRelationshipsCustomersFromJSON(
412
186
  jsonString: string,
413
187
  ): SafeParseResult<
@@ -429,24 +203,6 @@ export const ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema:
429
203
  z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> = z
430
204
  .nativeEnum(ConsumerApplicationJsonApiRelationshipsAssetType);
431
205
 
432
- /** @internal */
433
- export const ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema:
434
- z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> =
435
- ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
436
-
437
- /**
438
- * @internal
439
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
440
- */
441
- export namespace ConsumerApplicationJsonApiRelationshipsAssetType$ {
442
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema` instead. */
443
- export const inboundSchema =
444
- ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
445
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema` instead. */
446
- export const outboundSchema =
447
- ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema;
448
- }
449
-
450
206
  /** @internal */
451
207
  export const ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema:
452
208
  z.ZodType<
@@ -458,50 +214,6 @@ export const ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema:
458
214
  id: z.string(),
459
215
  });
460
216
 
461
- /** @internal */
462
- export type ConsumerApplicationJsonApiRelationshipsAssetData$Outbound = {
463
- type: string;
464
- id: string;
465
- };
466
-
467
- /** @internal */
468
- export const ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema:
469
- z.ZodType<
470
- ConsumerApplicationJsonApiRelationshipsAssetData$Outbound,
471
- z.ZodTypeDef,
472
- ConsumerApplicationJsonApiRelationshipsAssetData
473
- > = z.object({
474
- type: ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema,
475
- id: z.string(),
476
- });
477
-
478
- /**
479
- * @internal
480
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
481
- */
482
- export namespace ConsumerApplicationJsonApiRelationshipsAssetData$ {
483
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema` instead. */
484
- export const inboundSchema =
485
- ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema;
486
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema` instead. */
487
- export const outboundSchema =
488
- ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema;
489
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$Outbound` instead. */
490
- export type Outbound =
491
- ConsumerApplicationJsonApiRelationshipsAssetData$Outbound;
492
- }
493
-
494
- export function consumerApplicationJsonApiRelationshipsAssetDataToJSON(
495
- consumerApplicationJsonApiRelationshipsAssetData:
496
- ConsumerApplicationJsonApiRelationshipsAssetData,
497
- ): string {
498
- return JSON.stringify(
499
- ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema.parse(
500
- consumerApplicationJsonApiRelationshipsAssetData,
501
- ),
502
- );
503
- }
504
-
505
217
  export function consumerApplicationJsonApiRelationshipsAssetDataFromJSON(
506
218
  jsonString: string,
507
219
  ): SafeParseResult<
@@ -532,53 +244,6 @@ export const ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema:
532
244
  meta: z.record(z.any()).optional(),
533
245
  });
534
246
 
535
- /** @internal */
536
- export type ConsumerApplicationJsonApiRelationshipsAsset$Outbound = {
537
- data: ConsumerApplicationJsonApiRelationshipsAssetData$Outbound;
538
- links?: { [k: string]: LinkObject$Outbound } | undefined;
539
- meta?: { [k: string]: any } | undefined;
540
- };
541
-
542
- /** @internal */
543
- export const ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema:
544
- z.ZodType<
545
- ConsumerApplicationJsonApiRelationshipsAsset$Outbound,
546
- z.ZodTypeDef,
547
- ConsumerApplicationJsonApiRelationshipsAsset
548
- > = z.object({
549
- data: z.lazy(() =>
550
- ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema
551
- ),
552
- links: z.record(LinkObject$outboundSchema).optional(),
553
- meta: z.record(z.any()).optional(),
554
- });
555
-
556
- /**
557
- * @internal
558
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
559
- */
560
- export namespace ConsumerApplicationJsonApiRelationshipsAsset$ {
561
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema` instead. */
562
- export const inboundSchema =
563
- ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema;
564
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema` instead. */
565
- export const outboundSchema =
566
- ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema;
567
- /** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$Outbound` instead. */
568
- export type Outbound = ConsumerApplicationJsonApiRelationshipsAsset$Outbound;
569
- }
570
-
571
- export function consumerApplicationJsonApiRelationshipsAssetToJSON(
572
- consumerApplicationJsonApiRelationshipsAsset:
573
- ConsumerApplicationJsonApiRelationshipsAsset,
574
- ): string {
575
- return JSON.stringify(
576
- ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema.parse(
577
- consumerApplicationJsonApiRelationshipsAsset,
578
- ),
579
- );
580
- }
581
-
582
247
  export function consumerApplicationJsonApiRelationshipsAssetFromJSON(
583
248
  jsonString: string,
584
249
  ): SafeParseResult<
@@ -612,60 +277,6 @@ export const ConsumerApplicationJsonApiRelationships$inboundSchema: z.ZodType<
612
277
  ).optional(),
613
278
  });
614
279
 
615
- /** @internal */
616
- export type ConsumerApplicationJsonApiRelationships$Outbound = {
617
- loanDetails?:
618
- | ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound
619
- | undefined;
620
- customers?:
621
- | ConsumerApplicationJsonApiRelationshipsCustomers$Outbound
622
- | undefined;
623
- asset?: ConsumerApplicationJsonApiRelationshipsAsset$Outbound | undefined;
624
- };
625
-
626
- /** @internal */
627
- export const ConsumerApplicationJsonApiRelationships$outboundSchema: z.ZodType<
628
- ConsumerApplicationJsonApiRelationships$Outbound,
629
- z.ZodTypeDef,
630
- ConsumerApplicationJsonApiRelationships
631
- > = z.object({
632
- loanDetails: z.lazy(() =>
633
- ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema
634
- ).optional(),
635
- customers: z.lazy(() =>
636
- ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema
637
- ).optional(),
638
- asset: z.lazy(() =>
639
- ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema
640
- ).optional(),
641
- });
642
-
643
- /**
644
- * @internal
645
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
646
- */
647
- export namespace ConsumerApplicationJsonApiRelationships$ {
648
- /** @deprecated use `ConsumerApplicationJsonApiRelationships$inboundSchema` instead. */
649
- export const inboundSchema =
650
- ConsumerApplicationJsonApiRelationships$inboundSchema;
651
- /** @deprecated use `ConsumerApplicationJsonApiRelationships$outboundSchema` instead. */
652
- export const outboundSchema =
653
- ConsumerApplicationJsonApiRelationships$outboundSchema;
654
- /** @deprecated use `ConsumerApplicationJsonApiRelationships$Outbound` instead. */
655
- export type Outbound = ConsumerApplicationJsonApiRelationships$Outbound;
656
- }
657
-
658
- export function consumerApplicationJsonApiRelationshipsToJSON(
659
- consumerApplicationJsonApiRelationships:
660
- ConsumerApplicationJsonApiRelationships,
661
- ): string {
662
- return JSON.stringify(
663
- ConsumerApplicationJsonApiRelationships$outboundSchema.parse(
664
- consumerApplicationJsonApiRelationships,
665
- ),
666
- );
667
- }
668
-
669
280
  export function consumerApplicationJsonApiRelationshipsFromJSON(
670
281
  jsonString: string,
671
282
  ): SafeParseResult<
@@ -3,19 +3,14 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
6
  import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
7
  import {
11
8
  ConsumerSecuredLoanConsumerApplicationRelationships,
12
- ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema,
13
9
  ConsumerSecuredLoanConsumerApplicationRelationships$Outbound,
14
10
  ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema,
15
11
  } from "./consumersecuredloanconsumerapplicationrelationships.js";
16
12
  import {
17
13
  LinkObject,
18
- LinkObject$inboundSchema,
19
14
  LinkObject$Outbound,
20
15
  LinkObject$outboundSchema,
21
16
  } from "./linkobject.js";
@@ -81,64 +76,16 @@ export type ConsumerSecuredApplicationPayload = {
81
76
  };
82
77
 
83
78
  /** @internal */
84
- export const ConsumerSecuredApplicationPayloadType$inboundSchema:
79
+ export const ConsumerSecuredApplicationPayloadType$outboundSchema:
85
80
  z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadType> = z.nativeEnum(
86
81
  ConsumerSecuredApplicationPayloadType,
87
82
  );
88
83
 
89
84
  /** @internal */
90
- export const ConsumerSecuredApplicationPayloadType$outboundSchema:
91
- z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadType> =
92
- ConsumerSecuredApplicationPayloadType$inboundSchema;
93
-
94
- /**
95
- * @internal
96
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
- */
98
- export namespace ConsumerSecuredApplicationPayloadType$ {
99
- /** @deprecated use `ConsumerSecuredApplicationPayloadType$inboundSchema` instead. */
100
- export const inboundSchema =
101
- ConsumerSecuredApplicationPayloadType$inboundSchema;
102
- /** @deprecated use `ConsumerSecuredApplicationPayloadType$outboundSchema` instead. */
103
- export const outboundSchema =
104
- ConsumerSecuredApplicationPayloadType$outboundSchema;
105
- }
106
-
107
- /** @internal */
108
- export const ConsumerSecuredApplicationPayloadApplicationType$inboundSchema:
85
+ export const ConsumerSecuredApplicationPayloadApplicationType$outboundSchema:
109
86
  z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadApplicationType> = z
110
87
  .nativeEnum(ConsumerSecuredApplicationPayloadApplicationType);
111
88
 
112
- /** @internal */
113
- export const ConsumerSecuredApplicationPayloadApplicationType$outboundSchema:
114
- z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadApplicationType> =
115
- ConsumerSecuredApplicationPayloadApplicationType$inboundSchema;
116
-
117
- /**
118
- * @internal
119
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
120
- */
121
- export namespace ConsumerSecuredApplicationPayloadApplicationType$ {
122
- /** @deprecated use `ConsumerSecuredApplicationPayloadApplicationType$inboundSchema` instead. */
123
- export const inboundSchema =
124
- ConsumerSecuredApplicationPayloadApplicationType$inboundSchema;
125
- /** @deprecated use `ConsumerSecuredApplicationPayloadApplicationType$outboundSchema` instead. */
126
- export const outboundSchema =
127
- ConsumerSecuredApplicationPayloadApplicationType$outboundSchema;
128
- }
129
-
130
- /** @internal */
131
- export const ConsumerSecuredApplicationPayloadAttributes$inboundSchema:
132
- z.ZodType<
133
- ConsumerSecuredApplicationPayloadAttributes,
134
- z.ZodTypeDef,
135
- unknown
136
- > = z.object({
137
- applicationType:
138
- ConsumerSecuredApplicationPayloadApplicationType$inboundSchema,
139
- associatedBrokerEmail: z.string(),
140
- });
141
-
142
89
  /** @internal */
143
90
  export type ConsumerSecuredApplicationPayloadAttributes$Outbound = {
144
91
  applicationType: string;
@@ -157,21 +104,6 @@ export const ConsumerSecuredApplicationPayloadAttributes$outboundSchema:
157
104
  associatedBrokerEmail: z.string(),
158
105
  });
159
106
 
160
- /**
161
- * @internal
162
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
- */
164
- export namespace ConsumerSecuredApplicationPayloadAttributes$ {
165
- /** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$inboundSchema` instead. */
166
- export const inboundSchema =
167
- ConsumerSecuredApplicationPayloadAttributes$inboundSchema;
168
- /** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$outboundSchema` instead. */
169
- export const outboundSchema =
170
- ConsumerSecuredApplicationPayloadAttributes$outboundSchema;
171
- /** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$Outbound` instead. */
172
- export type Outbound = ConsumerSecuredApplicationPayloadAttributes$Outbound;
173
- }
174
-
175
107
  export function consumerSecuredApplicationPayloadAttributesToJSON(
176
108
  consumerSecuredApplicationPayloadAttributes:
177
109
  ConsumerSecuredApplicationPayloadAttributes,
@@ -183,39 +115,6 @@ export function consumerSecuredApplicationPayloadAttributesToJSON(
183
115
  );
184
116
  }
185
117
 
186
- export function consumerSecuredApplicationPayloadAttributesFromJSON(
187
- jsonString: string,
188
- ): SafeParseResult<
189
- ConsumerSecuredApplicationPayloadAttributes,
190
- SDKValidationError
191
- > {
192
- return safeParse(
193
- jsonString,
194
- (x) =>
195
- ConsumerSecuredApplicationPayloadAttributes$inboundSchema.parse(
196
- JSON.parse(x),
197
- ),
198
- `Failed to parse 'ConsumerSecuredApplicationPayloadAttributes' from JSON`,
199
- );
200
- }
201
-
202
- /** @internal */
203
- export const ConsumerSecuredApplicationPayload$inboundSchema: z.ZodType<
204
- ConsumerSecuredApplicationPayload,
205
- z.ZodTypeDef,
206
- unknown
207
- > = z.object({
208
- type: ConsumerSecuredApplicationPayloadType$inboundSchema,
209
- attributes: z.lazy(() =>
210
- ConsumerSecuredApplicationPayloadAttributes$inboundSchema
211
- ),
212
- relationships:
213
- ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema
214
- .optional(),
215
- links: z.record(LinkObject$inboundSchema).optional(),
216
- meta: z.record(z.any()).optional(),
217
- });
218
-
219
118
  /** @internal */
220
119
  export type ConsumerSecuredApplicationPayload$Outbound = {
221
120
  type: string;
@@ -244,20 +143,6 @@ export const ConsumerSecuredApplicationPayload$outboundSchema: z.ZodType<
244
143
  meta: z.record(z.any()).optional(),
245
144
  });
246
145
 
247
- /**
248
- * @internal
249
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
250
- */
251
- export namespace ConsumerSecuredApplicationPayload$ {
252
- /** @deprecated use `ConsumerSecuredApplicationPayload$inboundSchema` instead. */
253
- export const inboundSchema = ConsumerSecuredApplicationPayload$inboundSchema;
254
- /** @deprecated use `ConsumerSecuredApplicationPayload$outboundSchema` instead. */
255
- export const outboundSchema =
256
- ConsumerSecuredApplicationPayload$outboundSchema;
257
- /** @deprecated use `ConsumerSecuredApplicationPayload$Outbound` instead. */
258
- export type Outbound = ConsumerSecuredApplicationPayload$Outbound;
259
- }
260
-
261
146
  export function consumerSecuredApplicationPayloadToJSON(
262
147
  consumerSecuredApplicationPayload: ConsumerSecuredApplicationPayload,
263
148
  ): string {
@@ -267,13 +152,3 @@ export function consumerSecuredApplicationPayloadToJSON(
267
152
  ),
268
153
  );
269
154
  }
270
-
271
- export function consumerSecuredApplicationPayloadFromJSON(
272
- jsonString: string,
273
- ): SafeParseResult<ConsumerSecuredApplicationPayload, SDKValidationError> {
274
- return safeParse(
275
- jsonString,
276
- (x) => ConsumerSecuredApplicationPayload$inboundSchema.parse(JSON.parse(x)),
277
- `Failed to parse 'ConsumerSecuredApplicationPayload' from JSON`,
278
- );
279
- }