@financeable/aggregation 0.5.1 → 0.6.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 (297) hide show
  1. package/FUNCTIONS.md +14 -131
  2. package/README.md +271 -1512
  3. package/docs/sdks/applications/README.md +24 -383
  4. package/docs/sdks/oauthtoken/README.md +5 -5
  5. package/docs/sdks/supportingdocuments/README.md +121 -0
  6. package/funcs/applicationsCreate.d.ts +1 -2
  7. package/funcs/applicationsCreate.d.ts.map +1 -1
  8. package/funcs/applicationsCreate.js +3 -4
  9. package/funcs/applicationsCreate.js.map +1 -1
  10. package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
  11. package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
  12. package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
  13. package/funcs/oauthTokenOauthToken.js.map +1 -0
  14. package/funcs/supportingDocumentsCreate.d.ts +14 -0
  15. package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
  16. package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +14 -12
  17. package/funcs/supportingDocumentsCreate.js.map +1 -0
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +4 -4
  20. package/lib/config.d.ts.map +1 -1
  21. package/lib/config.js +4 -7
  22. package/lib/config.js.map +1 -1
  23. package/lib/matchers.d.ts +3 -1
  24. package/lib/matchers.d.ts.map +1 -1
  25. package/lib/matchers.js +12 -0
  26. package/lib/matchers.js.map +1 -1
  27. package/lib/sdks.d.ts +3 -1
  28. package/lib/sdks.d.ts.map +1 -1
  29. package/lib/sdks.js +13 -13
  30. package/lib/sdks.js.map +1 -1
  31. package/models/components/addressattributes.d.ts +10 -8
  32. package/models/components/addressattributes.d.ts.map +1 -1
  33. package/models/components/addressattributes.js +15 -14
  34. package/models/components/addressattributes.js.map +1 -1
  35. package/models/components/applicationresource.d.ts +30 -0
  36. package/models/components/applicationresource.d.ts.map +1 -0
  37. package/models/components/applicationresource.js +73 -0
  38. package/models/components/applicationresource.js.map +1 -0
  39. package/models/components/badrequesterror.d.ts +119 -0
  40. package/models/components/badrequesterror.d.ts.map +1 -0
  41. package/models/components/badrequesterror.js +140 -0
  42. package/models/components/badrequesterror.js.map +1 -0
  43. package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
  44. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
  45. package/models/components/commercialapplicationjsonapirelationships.js +391 -0
  46. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
  47. package/models/components/commercialsecuredapplicationpayload.d.ts +164 -0
  48. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
  49. package/models/components/commercialsecuredapplicationpayload.js +158 -0
  50. package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
  51. package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
  52. package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
  53. package/models/components/commercialsecuredapplicationresource.js +161 -0
  54. package/models/components/commercialsecuredapplicationresource.js.map +1 -0
  55. package/models/components/commercialsecuredloanassetattributes.d.ts +237 -0
  56. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
  57. package/models/components/commercialsecuredloanassetattributes.js +170 -0
  58. package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
  59. package/models/components/commercialsecuredloanassettype.d.ts +100 -0
  60. package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
  61. package/models/components/commercialsecuredloanassettype.js +84 -0
  62. package/models/components/commercialsecuredloanassettype.js.map +1 -0
  63. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +537 -0
  64. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
  65. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +548 -0
  66. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
  67. package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
  68. package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
  69. package/models/components/consumerapplicationjsonapirelationships.js +310 -0
  70. package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
  71. package/models/components/consumersecuredapplicationpayload.d.ts +164 -0
  72. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
  73. package/models/components/consumersecuredapplicationpayload.js +158 -0
  74. package/models/components/consumersecuredapplicationpayload.js.map +1 -0
  75. package/models/components/consumersecuredapplicationresource.d.ts +171 -0
  76. package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
  77. package/models/components/consumersecuredapplicationresource.js +161 -0
  78. package/models/components/consumersecuredapplicationresource.js.map +1 -0
  79. package/models/components/consumersecuredloanassetattributes.d.ts +237 -0
  80. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
  81. package/models/components/consumersecuredloanassetattributes.js +172 -0
  82. package/models/components/consumersecuredloanassetattributes.js.map +1 -0
  83. package/models/components/consumersecuredloanassettype.d.ts +64 -0
  84. package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
  85. package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
  86. package/models/components/consumersecuredloanassettype.js.map +1 -0
  87. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +425 -0
  88. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
  89. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +443 -0
  90. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
  91. package/models/components/createsupportingdocumentsresponse.d.ts +124 -0
  92. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
  93. package/models/components/createsupportingdocumentsresponse.js +138 -0
  94. package/models/components/createsupportingdocumentsresponse.js.map +1 -0
  95. package/models/components/customerattributes.d.ts +2 -0
  96. package/models/components/customerattributes.d.ts.map +1 -1
  97. package/models/components/customerattributes.js +2 -0
  98. package/models/components/customerattributes.js.map +1 -1
  99. package/models/components/documenttype.d.ts +70 -0
  100. package/models/components/documenttype.d.ts.map +1 -0
  101. package/models/{errors/responsebody.js → components/documenttype.js} +28 -34
  102. package/models/components/documenttype.js.map +1 -0
  103. package/models/components/entityattributes.d.ts +2 -22
  104. package/models/components/entityattributes.d.ts.map +1 -1
  105. package/models/components/entityattributes.js +2 -19
  106. package/models/components/entityattributes.js.map +1 -1
  107. package/models/components/forbiddenerror.d.ts +17 -39
  108. package/models/components/forbiddenerror.d.ts.map +1 -1
  109. package/models/components/forbiddenerror.js +27 -46
  110. package/models/components/forbiddenerror.js.map +1 -1
  111. package/models/components/index.d.ts +24 -8
  112. package/models/components/index.d.ts.map +1 -1
  113. package/models/components/index.js +24 -8
  114. package/models/components/index.js.map +1 -1
  115. package/models/components/linkobject.d.ts +47 -0
  116. package/models/components/linkobject.d.ts.map +1 -0
  117. package/models/components/{links.js → linkobject.js} +27 -22
  118. package/models/components/linkobject.js.map +1 -0
  119. package/models/components/loandetailsattributes.d.ts +2 -0
  120. package/models/components/loandetailsattributes.d.ts.map +1 -1
  121. package/models/components/loandetailsattributes.js +2 -0
  122. package/models/components/loandetailsattributes.js.map +1 -1
  123. package/models/components/relationshipresourcenotfound.d.ts +116 -0
  124. package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
  125. package/models/components/relationshipresourcenotfound.js +139 -0
  126. package/models/components/relationshipresourcenotfound.js.map +1 -0
  127. package/models/components/resourcenotfound.d.ts +119 -0
  128. package/models/components/resourcenotfound.d.ts.map +1 -0
  129. package/models/components/resourcenotfound.js +139 -0
  130. package/models/components/resourcenotfound.js.map +1 -0
  131. package/models/components/supportingdocumentattributes.d.ts +40 -0
  132. package/models/components/supportingdocumentattributes.d.ts.map +1 -0
  133. package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
  134. package/models/components/supportingdocumentattributes.js.map +1 -0
  135. package/models/components/supportingdocumentattributesinput.d.ts +38 -0
  136. package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
  137. package/models/components/supportingdocumentattributesinput.js +72 -0
  138. package/models/components/supportingdocumentattributesinput.js.map +1 -0
  139. package/models/components/supportingdocumentrelationships.d.ts +448 -0
  140. package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
  141. package/models/components/supportingdocumentrelationships.js +434 -0
  142. package/models/components/supportingdocumentrelationships.js.map +1 -0
  143. package/models/components/supportingdocumentresource.d.ts +71 -0
  144. package/models/components/supportingdocumentresource.d.ts.map +1 -0
  145. package/models/components/supportingdocumentresource.js +98 -0
  146. package/models/components/supportingdocumentresource.js.map +1 -0
  147. package/models/components/uploadmimetype.d.ts +49 -0
  148. package/models/components/uploadmimetype.d.ts.map +1 -0
  149. package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
  150. package/models/components/uploadmimetype.js.map +1 -0
  151. package/models/errors/createapplication.d.ts +73 -0
  152. package/models/errors/createapplication.d.ts.map +1 -0
  153. package/models/errors/createapplication.js +120 -0
  154. package/models/errors/createapplication.js.map +1 -0
  155. package/models/errors/index.d.ts +2 -1
  156. package/models/errors/index.d.ts.map +1 -1
  157. package/models/errors/index.js +2 -1
  158. package/models/errors/index.js.map +1 -1
  159. package/models/errors/supportingdocumentscreate.d.ts +143 -0
  160. package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
  161. package/models/errors/supportingdocumentscreate.js +225 -0
  162. package/models/errors/supportingdocumentscreate.js.map +1 -0
  163. package/models/operations/createapplication.d.ts +26 -874
  164. package/models/operations/createapplication.d.ts.map +1 -1
  165. package/models/operations/createapplication.js +37 -899
  166. package/models/operations/createapplication.js.map +1 -1
  167. package/models/operations/index.d.ts +1 -2
  168. package/models/operations/index.d.ts.map +1 -1
  169. package/models/operations/index.js +1 -2
  170. package/models/operations/index.js.map +1 -1
  171. package/models/operations/supportingdocumentscreate.d.ts +94 -0
  172. package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
  173. package/models/operations/supportingdocumentscreate.js +135 -0
  174. package/models/operations/supportingdocumentscreate.js.map +1 -0
  175. package/package.json +2 -2
  176. package/sdk/applications.d.ts +1 -10
  177. package/sdk/applications.d.ts.map +1 -1
  178. package/sdk/applications.js +0 -14
  179. package/sdk/applications.js.map +1 -1
  180. package/sdk/oauthtoken.d.ts +1 -1
  181. package/sdk/oauthtoken.d.ts.map +1 -1
  182. package/sdk/oauthtoken.js +3 -3
  183. package/sdk/oauthtoken.js.map +1 -1
  184. package/sdk/sdk.d.ts +3 -0
  185. package/sdk/sdk.d.ts.map +1 -1
  186. package/sdk/sdk.js +4 -0
  187. package/sdk/sdk.js.map +1 -1
  188. package/sdk/supportingdocuments.d.ts +9 -0
  189. package/sdk/supportingdocuments.d.ts.map +1 -0
  190. package/sdk/supportingdocuments.js +19 -0
  191. package/sdk/supportingdocuments.js.map +1 -0
  192. package/src/funcs/applicationsCreate.ts +15 -9
  193. package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
  194. package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +30 -20
  195. package/src/lib/config.ts +4 -7
  196. package/src/lib/matchers.ts +20 -0
  197. package/src/lib/sdks.ts +19 -13
  198. package/src/models/components/addressattributes.ts +22 -14
  199. package/src/models/components/applicationresource.ts +83 -0
  200. package/src/models/components/badrequesterror.ts +182 -0
  201. package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
  202. package/src/models/components/commercialsecuredapplicationpayload.ts +248 -0
  203. package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
  204. package/src/models/components/commercialsecuredloanassetattributes.ts +319 -0
  205. package/src/models/components/commercialsecuredloanassettype.ts +64 -0
  206. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1238 -0
  207. package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
  208. package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
  209. package/src/models/components/consumersecuredapplicationresource.ts +309 -0
  210. package/src/models/components/consumersecuredloanassetattributes.ts +334 -0
  211. package/src/models/components/consumersecuredloanassettype.ts +47 -0
  212. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1047 -0
  213. package/src/models/components/createsupportingdocumentsresponse.ts +206 -0
  214. package/src/models/components/customerattributes.ts +4 -0
  215. package/src/models/components/documenttype.ts +49 -0
  216. package/src/models/components/entityattributes.ts +4 -44
  217. package/src/models/components/forbiddenerror.ts +35 -58
  218. package/src/models/components/index.ts +24 -8
  219. package/src/models/components/linkobject.ts +84 -0
  220. package/src/models/components/loandetailsattributes.ts +4 -0
  221. package/src/models/components/relationshipresourcenotfound.ts +195 -0
  222. package/src/models/components/resourcenotfound.ts +188 -0
  223. package/src/models/components/supportingdocumentattributes.ts +87 -0
  224. package/src/models/components/supportingdocumentattributesinput.ts +84 -0
  225. package/src/models/components/supportingdocumentrelationships.ts +828 -0
  226. package/src/models/components/supportingdocumentresource.ts +126 -0
  227. package/src/models/components/uploadmimetype.ts +44 -0
  228. package/src/models/errors/createapplication.ts +149 -0
  229. package/src/models/errors/index.ts +2 -1
  230. package/src/models/errors/supportingdocumentscreate.ts +342 -0
  231. package/src/models/operations/createapplication.ts +69 -1913
  232. package/src/models/operations/index.ts +1 -2
  233. package/src/models/operations/supportingdocumentscreate.ts +222 -0
  234. package/src/sdk/applications.ts +1 -32
  235. package/src/sdk/oauthtoken.ts +3 -3
  236. package/src/sdk/sdk.ts +8 -0
  237. package/src/sdk/supportingdocuments.ts +24 -0
  238. package/funcs/applicationsGet.d.ts +0 -14
  239. package/funcs/applicationsGet.d.ts.map +0 -1
  240. package/funcs/applicationsGet.js +0 -120
  241. package/funcs/applicationsGet.js.map +0 -1
  242. package/funcs/applicationsList.d.ts +0 -14
  243. package/funcs/applicationsList.d.ts.map +0 -1
  244. package/funcs/applicationsList.js.map +0 -1
  245. package/funcs/oauthTokenGet.d.ts.map +0 -1
  246. package/funcs/oauthTokenGet.js.map +0 -1
  247. package/models/components/applicationattributes.d.ts +0 -69
  248. package/models/components/applicationattributes.d.ts.map +0 -1
  249. package/models/components/applicationattributes.js +0 -85
  250. package/models/components/applicationattributes.js.map +0 -1
  251. package/models/components/applicationattributescreate.d.ts +0 -43
  252. package/models/components/applicationattributescreate.d.ts.map +0 -1
  253. package/models/components/applicationattributescreate.js.map +0 -1
  254. package/models/components/applicationresourcebulksubmission.d.ts +0 -527
  255. package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
  256. package/models/components/applicationresourcebulksubmission.js +0 -565
  257. package/models/components/applicationresourcebulksubmission.js.map +0 -1
  258. package/models/components/applicationtype.d.ts +0 -28
  259. package/models/components/applicationtype.d.ts.map +0 -1
  260. package/models/components/applicationtype.js.map +0 -1
  261. package/models/components/assetattributes.d.ts +0 -311
  262. package/models/components/assetattributes.d.ts.map +0 -1
  263. package/models/components/assetattributes.js +0 -234
  264. package/models/components/assetattributes.js.map +0 -1
  265. package/models/components/commercialassettype.d.ts +0 -44
  266. package/models/components/commercialassettype.d.ts.map +0 -1
  267. package/models/components/commercialassettype.js +0 -85
  268. package/models/components/commercialassettype.js.map +0 -1
  269. package/models/components/consumerassettype.d.ts +0 -32
  270. package/models/components/consumerassettype.d.ts.map +0 -1
  271. package/models/components/consumerassettype.js.map +0 -1
  272. package/models/components/links.d.ts +0 -40
  273. package/models/components/links.d.ts.map +0 -1
  274. package/models/components/links.js.map +0 -1
  275. package/models/errors/responsebody.d.ts +0 -38
  276. package/models/errors/responsebody.d.ts.map +0 -1
  277. package/models/errors/responsebody.js.map +0 -1
  278. package/models/operations/getapplication.d.ts +0 -962
  279. package/models/operations/getapplication.d.ts.map +0 -1
  280. package/models/operations/getapplication.js +0 -1030
  281. package/models/operations/getapplication.js.map +0 -1
  282. package/models/operations/getapplications.d.ts +0 -962
  283. package/models/operations/getapplications.d.ts.map +0 -1
  284. package/models/operations/getapplications.js +0 -1029
  285. package/models/operations/getapplications.js.map +0 -1
  286. package/src/funcs/applicationsGet.ts +0 -168
  287. package/src/models/components/applicationattributes.ts +0 -128
  288. package/src/models/components/applicationattributescreate.ts +0 -90
  289. package/src/models/components/applicationresourcebulksubmission.ts +0 -1172
  290. package/src/models/components/applicationtype.ts +0 -33
  291. package/src/models/components/assetattributes.ts +0 -411
  292. package/src/models/components/commercialassettype.ts +0 -61
  293. package/src/models/components/consumerassettype.ts +0 -43
  294. package/src/models/components/links.ts +0 -72
  295. package/src/models/errors/responsebody.ts +0 -76
  296. package/src/models/operations/getapplication.ts +0 -2246
  297. package/src/models/operations/getapplications.ts +0 -2191
@@ -0,0 +1,1047 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AddressAttributes,
12
+ AddressAttributes$inboundSchema,
13
+ AddressAttributes$Outbound,
14
+ AddressAttributes$outboundSchema,
15
+ } from "./addressattributes.js";
16
+ import {
17
+ ConsumerSecuredLoanAssetAttributes,
18
+ ConsumerSecuredLoanAssetAttributes$inboundSchema,
19
+ ConsumerSecuredLoanAssetAttributes$Outbound,
20
+ ConsumerSecuredLoanAssetAttributes$outboundSchema,
21
+ } from "./consumersecuredloanassetattributes.js";
22
+ import {
23
+ CustomerAttributes,
24
+ CustomerAttributes$inboundSchema,
25
+ CustomerAttributes$Outbound,
26
+ CustomerAttributes$outboundSchema,
27
+ } from "./customerattributes.js";
28
+ import {
29
+ LinkObject,
30
+ LinkObject$inboundSchema,
31
+ LinkObject$Outbound,
32
+ LinkObject$outboundSchema,
33
+ } from "./linkobject.js";
34
+ import {
35
+ LoanDetailsAttributes,
36
+ LoanDetailsAttributes$inboundSchema,
37
+ LoanDetailsAttributes$Outbound,
38
+ LoanDetailsAttributes$outboundSchema,
39
+ } from "./loandetailsattributes.js";
40
+
41
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsType = {
42
+ LoanDetails: "loan-details",
43
+ } as const;
44
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsType =
45
+ ClosedEnum<typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType>;
46
+
47
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsData = {
48
+ type: ConsumerSecuredLoanConsumerApplicationRelationshipsType;
49
+ /**
50
+ * Loan details model
51
+ */
52
+ attributes: LoanDetailsAttributes;
53
+ relationships?: any | null | undefined;
54
+ links?: { [k: string]: LinkObject } | undefined;
55
+ meta?: { [k: string]: any } | undefined;
56
+ };
57
+
58
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails = {
59
+ data: ConsumerSecuredLoanConsumerApplicationRelationshipsData;
60
+ };
61
+
62
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType =
63
+ {
64
+ Customers: "customers",
65
+ } as const;
66
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType =
67
+ ClosedEnum<
68
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
69
+ >;
70
+
71
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType =
72
+ {
73
+ Addresses: "addresses",
74
+ } as const;
75
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType =
76
+ ClosedEnum<
77
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
78
+ >;
79
+
80
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
81
+ {
82
+ type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
83
+ attributes: AddressAttributes;
84
+ relationships?: any | null | undefined;
85
+ links?: { [k: string]: LinkObject } | undefined;
86
+ meta?: { [k: string]: any } | undefined;
87
+ };
88
+
89
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
90
+ data: Array<
91
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
92
+ >;
93
+ };
94
+
95
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
96
+ addresses?:
97
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
98
+ | undefined;
99
+ };
100
+
101
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
102
+ type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType;
103
+ /**
104
+ * A customer of the proposed financing
105
+ */
106
+ attributes: CustomerAttributes;
107
+ relationships:
108
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships;
109
+ links?: { [k: string]: LinkObject } | undefined;
110
+ meta?: { [k: string]: any } | undefined;
111
+ };
112
+
113
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers = {
114
+ data: Array<ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData>;
115
+ };
116
+
117
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType = {
118
+ Assets: "assets",
119
+ } as const;
120
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType =
121
+ ClosedEnum<
122
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
123
+ >;
124
+
125
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData = {
126
+ type: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType;
127
+ /**
128
+ * The asset to be obtained by the customer, using the proposed loan financing.
129
+ */
130
+ attributes: ConsumerSecuredLoanAssetAttributes;
131
+ relationships?: any | null | undefined;
132
+ links?: { [k: string]: LinkObject } | undefined;
133
+ meta?: { [k: string]: any } | undefined;
134
+ };
135
+
136
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAsset = {
137
+ data: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData;
138
+ };
139
+
140
+ export type ConsumerSecuredLoanConsumerApplicationRelationships = {
141
+ loanDetails?:
142
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails
143
+ | undefined;
144
+ customers?:
145
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers
146
+ | undefined;
147
+ asset?: ConsumerSecuredLoanConsumerApplicationRelationshipsAsset | undefined;
148
+ };
149
+
150
+ /** @internal */
151
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema:
152
+ z.ZodNativeEnum<
153
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType
154
+ > = z.nativeEnum(ConsumerSecuredLoanConsumerApplicationRelationshipsType);
155
+
156
+ /** @internal */
157
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema:
158
+ z.ZodNativeEnum<
159
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType
160
+ > = ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema;
161
+
162
+ /**
163
+ * @internal
164
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
165
+ */
166
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsType$ {
167
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema` instead. */
168
+ export const inboundSchema =
169
+ ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema;
170
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema` instead. */
171
+ export const outboundSchema =
172
+ ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema;
173
+ }
174
+
175
+ /** @internal */
176
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema:
177
+ z.ZodType<
178
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData,
179
+ z.ZodTypeDef,
180
+ unknown
181
+ > = z.object({
182
+ type: ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema,
183
+ attributes: LoanDetailsAttributes$inboundSchema,
184
+ relationships: z.nullable(z.any()).optional(),
185
+ links: z.record(LinkObject$inboundSchema).optional(),
186
+ meta: z.record(z.any()).optional(),
187
+ });
188
+
189
+ /** @internal */
190
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound = {
191
+ type: string;
192
+ attributes: LoanDetailsAttributes$Outbound;
193
+ relationships?: any | null | undefined;
194
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
195
+ meta?: { [k: string]: any } | undefined;
196
+ };
197
+
198
+ /** @internal */
199
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema:
200
+ z.ZodType<
201
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound,
202
+ z.ZodTypeDef,
203
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData
204
+ > = z.object({
205
+ type:
206
+ ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema,
207
+ attributes: LoanDetailsAttributes$outboundSchema,
208
+ relationships: z.nullable(z.any()).optional(),
209
+ links: z.record(LinkObject$outboundSchema).optional(),
210
+ meta: z.record(z.any()).optional(),
211
+ });
212
+
213
+ /**
214
+ * @internal
215
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
216
+ */
217
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsData$ {
218
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema` instead. */
219
+ export const inboundSchema =
220
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema;
221
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema` instead. */
222
+ export const outboundSchema =
223
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema;
224
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound` instead. */
225
+ export type Outbound =
226
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound;
227
+ }
228
+
229
+ export function consumerSecuredLoanConsumerApplicationRelationshipsDataToJSON(
230
+ consumerSecuredLoanConsumerApplicationRelationshipsData:
231
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData,
232
+ ): string {
233
+ return JSON.stringify(
234
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema
235
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsData),
236
+ );
237
+ }
238
+
239
+ export function consumerSecuredLoanConsumerApplicationRelationshipsDataFromJSON(
240
+ jsonString: string,
241
+ ): SafeParseResult<
242
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData,
243
+ SDKValidationError
244
+ > {
245
+ return safeParse(
246
+ jsonString,
247
+ (x) =>
248
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema
249
+ .parse(JSON.parse(x)),
250
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsData' from JSON`,
251
+ );
252
+ }
253
+
254
+ /** @internal */
255
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema:
256
+ z.ZodType<
257
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
258
+ z.ZodTypeDef,
259
+ unknown
260
+ > = z.object({
261
+ data: z.lazy(() =>
262
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema
263
+ ),
264
+ });
265
+
266
+ /** @internal */
267
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound =
268
+ {
269
+ data: ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound;
270
+ };
271
+
272
+ /** @internal */
273
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema:
274
+ z.ZodType<
275
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound,
276
+ z.ZodTypeDef,
277
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails
278
+ > = z.object({
279
+ data: z.lazy(() =>
280
+ ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema
281
+ ),
282
+ });
283
+
284
+ /**
285
+ * @internal
286
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
287
+ */
288
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$ {
289
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema` instead. */
290
+ export const inboundSchema =
291
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema;
292
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema` instead. */
293
+ export const outboundSchema =
294
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema;
295
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound` instead. */
296
+ export type Outbound =
297
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound;
298
+ }
299
+
300
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLoanDetailsToJSON(
301
+ consumerSecuredLoanConsumerApplicationRelationshipsLoanDetails:
302
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
303
+ ): string {
304
+ return JSON.stringify(
305
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema
306
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsLoanDetails),
307
+ );
308
+ }
309
+
310
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLoanDetailsFromJSON(
311
+ jsonString: string,
312
+ ): SafeParseResult<
313
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
314
+ SDKValidationError
315
+ > {
316
+ return safeParse(
317
+ jsonString,
318
+ (x) =>
319
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema
320
+ .parse(JSON.parse(x)),
321
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails' from JSON`,
322
+ );
323
+ }
324
+
325
+ /** @internal */
326
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema:
327
+ z.ZodNativeEnum<
328
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
329
+ > = z.nativeEnum(
330
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType,
331
+ );
332
+
333
+ /** @internal */
334
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema:
335
+ z.ZodNativeEnum<
336
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
337
+ > =
338
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema;
339
+
340
+ /**
341
+ * @internal
342
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
343
+ */
344
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$ {
345
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema` instead. */
346
+ export const inboundSchema =
347
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema;
348
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema` instead. */
349
+ export const outboundSchema =
350
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema;
351
+ }
352
+
353
+ /** @internal */
354
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema:
355
+ z.ZodNativeEnum<
356
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
357
+ > = z.nativeEnum(
358
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType,
359
+ );
360
+
361
+ /** @internal */
362
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema:
363
+ z.ZodNativeEnum<
364
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
365
+ > =
366
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema;
367
+
368
+ /**
369
+ * @internal
370
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
+ */
372
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$ {
373
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
374
+ export const inboundSchema =
375
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema;
376
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
377
+ export const outboundSchema =
378
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema;
379
+ }
380
+
381
+ /** @internal */
382
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
383
+ z.ZodType<
384
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
385
+ z.ZodTypeDef,
386
+ unknown
387
+ > = z.object({
388
+ type:
389
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema,
390
+ attributes: AddressAttributes$inboundSchema,
391
+ relationships: z.nullable(z.any()).optional(),
392
+ links: z.record(LinkObject$inboundSchema).optional(),
393
+ meta: z.record(z.any()).optional(),
394
+ });
395
+
396
+ /** @internal */
397
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
398
+ {
399
+ type: string;
400
+ attributes: AddressAttributes$Outbound;
401
+ relationships?: any | null | undefined;
402
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
403
+ meta?: { [k: string]: any } | undefined;
404
+ };
405
+
406
+ /** @internal */
407
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
408
+ z.ZodType<
409
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
410
+ z.ZodTypeDef,
411
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
412
+ > = z.object({
413
+ type:
414
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
415
+ attributes: AddressAttributes$outboundSchema,
416
+ relationships: z.nullable(z.any()).optional(),
417
+ links: z.record(LinkObject$outboundSchema).optional(),
418
+ meta: z.record(z.any()).optional(),
419
+ });
420
+
421
+ /**
422
+ * @internal
423
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
424
+ */
425
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
426
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
427
+ export const inboundSchema =
428
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
429
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
430
+ export const outboundSchema =
431
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
432
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
433
+ export type Outbound =
434
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
435
+ }
436
+
437
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
438
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
439
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
440
+ ): string {
441
+ return JSON.stringify(
442
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
443
+ .parse(
444
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
445
+ ),
446
+ );
447
+ }
448
+
449
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
450
+ jsonString: string,
451
+ ): SafeParseResult<
452
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
453
+ SDKValidationError
454
+ > {
455
+ return safeParse(
456
+ jsonString,
457
+ (x) =>
458
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
459
+ .parse(JSON.parse(x)),
460
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
461
+ );
462
+ }
463
+
464
+ /** @internal */
465
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema:
466
+ z.ZodType<
467
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
468
+ z.ZodTypeDef,
469
+ unknown
470
+ > = z.object({
471
+ data: z.array(
472
+ z.lazy(() =>
473
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
474
+ ),
475
+ ),
476
+ });
477
+
478
+ /** @internal */
479
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound =
480
+ {
481
+ data: Array<
482
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
483
+ >;
484
+ };
485
+
486
+ /** @internal */
487
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema:
488
+ z.ZodType<
489
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound,
490
+ z.ZodTypeDef,
491
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
492
+ > = z.object({
493
+ data: z.array(
494
+ z.lazy(() =>
495
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
496
+ ),
497
+ ),
498
+ });
499
+
500
+ /**
501
+ * @internal
502
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
503
+ */
504
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$ {
505
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema` instead. */
506
+ export const inboundSchema =
507
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema;
508
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema` instead. */
509
+ export const outboundSchema =
510
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema;
511
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound` instead. */
512
+ export type Outbound =
513
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound;
514
+ }
515
+
516
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesToJSON(
517
+ consumerSecuredLoanConsumerApplicationRelationshipsAddresses:
518
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
519
+ ): string {
520
+ return JSON.stringify(
521
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
522
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAddresses),
523
+ );
524
+ }
525
+
526
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesFromJSON(
527
+ jsonString: string,
528
+ ): SafeParseResult<
529
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
530
+ SDKValidationError
531
+ > {
532
+ return safeParse(
533
+ jsonString,
534
+ (x) =>
535
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
536
+ .parse(JSON.parse(x)),
537
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses' from JSON`,
538
+ );
539
+ }
540
+
541
+ /** @internal */
542
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema:
543
+ z.ZodType<
544
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
545
+ z.ZodTypeDef,
546
+ unknown
547
+ > = z.object({
548
+ addresses: z.lazy(() =>
549
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
550
+ ).optional(),
551
+ });
552
+
553
+ /** @internal */
554
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound =
555
+ {
556
+ addresses?:
557
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
558
+ | undefined;
559
+ };
560
+
561
+ /** @internal */
562
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema:
563
+ z.ZodType<
564
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound,
565
+ z.ZodTypeDef,
566
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
567
+ > = z.object({
568
+ addresses: z.lazy(() =>
569
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
570
+ ).optional(),
571
+ });
572
+
573
+ /**
574
+ * @internal
575
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
576
+ */
577
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$ {
578
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema` instead. */
579
+ export const inboundSchema =
580
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema;
581
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema` instead. */
582
+ export const outboundSchema =
583
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema;
584
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound` instead. */
585
+ export type Outbound =
586
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound;
587
+ }
588
+
589
+ export function consumerSecuredLoanConsumerApplicationRelationshipsRelationshipsToJSON(
590
+ consumerSecuredLoanConsumerApplicationRelationshipsRelationships:
591
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
592
+ ): string {
593
+ return JSON.stringify(
594
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
595
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsRelationships),
596
+ );
597
+ }
598
+
599
+ export function consumerSecuredLoanConsumerApplicationRelationshipsRelationshipsFromJSON(
600
+ jsonString: string,
601
+ ): SafeParseResult<
602
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
603
+ SDKValidationError
604
+ > {
605
+ return safeParse(
606
+ jsonString,
607
+ (x) =>
608
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
609
+ .parse(JSON.parse(x)),
610
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships' from JSON`,
611
+ );
612
+ }
613
+
614
+ /** @internal */
615
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema:
616
+ z.ZodType<
617
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
618
+ z.ZodTypeDef,
619
+ unknown
620
+ > = z.object({
621
+ type:
622
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema,
623
+ attributes: CustomerAttributes$inboundSchema,
624
+ relationships: z.lazy(() =>
625
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
626
+ ),
627
+ links: z.record(LinkObject$inboundSchema).optional(),
628
+ meta: z.record(z.any()).optional(),
629
+ });
630
+
631
+ /** @internal */
632
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound =
633
+ {
634
+ type: string;
635
+ attributes: CustomerAttributes$Outbound;
636
+ relationships:
637
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound;
638
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
639
+ meta?: { [k: string]: any } | undefined;
640
+ };
641
+
642
+ /** @internal */
643
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema:
644
+ z.ZodType<
645
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound,
646
+ z.ZodTypeDef,
647
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData
648
+ > = z.object({
649
+ type:
650
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema,
651
+ attributes: CustomerAttributes$outboundSchema,
652
+ relationships: z.lazy(() =>
653
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
654
+ ),
655
+ links: z.record(LinkObject$outboundSchema).optional(),
656
+ meta: z.record(z.any()).optional(),
657
+ });
658
+
659
+ /**
660
+ * @internal
661
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
662
+ */
663
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$ {
664
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema` instead. */
665
+ export const inboundSchema =
666
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema;
667
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema` instead. */
668
+ export const outboundSchema =
669
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema;
670
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound` instead. */
671
+ export type Outbound =
672
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound;
673
+ }
674
+
675
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataToJSON(
676
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersData:
677
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
678
+ ): string {
679
+ return JSON.stringify(
680
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema
681
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsCustomersData),
682
+ );
683
+ }
684
+
685
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataFromJSON(
686
+ jsonString: string,
687
+ ): SafeParseResult<
688
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
689
+ SDKValidationError
690
+ > {
691
+ return safeParse(
692
+ jsonString,
693
+ (x) =>
694
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema
695
+ .parse(JSON.parse(x)),
696
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData' from JSON`,
697
+ );
698
+ }
699
+
700
+ /** @internal */
701
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema:
702
+ z.ZodType<
703
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
704
+ z.ZodTypeDef,
705
+ unknown
706
+ > = z.object({
707
+ data: z.array(
708
+ z.lazy(() =>
709
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema
710
+ ),
711
+ ),
712
+ });
713
+
714
+ /** @internal */
715
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound =
716
+ {
717
+ data: Array<
718
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound
719
+ >;
720
+ };
721
+
722
+ /** @internal */
723
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema:
724
+ z.ZodType<
725
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound,
726
+ z.ZodTypeDef,
727
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers
728
+ > = z.object({
729
+ data: z.array(
730
+ z.lazy(() =>
731
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema
732
+ ),
733
+ ),
734
+ });
735
+
736
+ /**
737
+ * @internal
738
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
739
+ */
740
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$ {
741
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema` instead. */
742
+ export const inboundSchema =
743
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema;
744
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema` instead. */
745
+ export const outboundSchema =
746
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema;
747
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound` instead. */
748
+ export type Outbound =
749
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound;
750
+ }
751
+
752
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersToJSON(
753
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomers:
754
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
755
+ ): string {
756
+ return JSON.stringify(
757
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema
758
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsCustomers),
759
+ );
760
+ }
761
+
762
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersFromJSON(
763
+ jsonString: string,
764
+ ): SafeParseResult<
765
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
766
+ SDKValidationError
767
+ > {
768
+ return safeParse(
769
+ jsonString,
770
+ (x) =>
771
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema
772
+ .parse(JSON.parse(x)),
773
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers' from JSON`,
774
+ );
775
+ }
776
+
777
+ /** @internal */
778
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema:
779
+ z.ZodNativeEnum<
780
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
781
+ > = z.nativeEnum(
782
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType,
783
+ );
784
+
785
+ /** @internal */
786
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema:
787
+ z.ZodNativeEnum<
788
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
789
+ > =
790
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema;
791
+
792
+ /**
793
+ * @internal
794
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
795
+ */
796
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$ {
797
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema` instead. */
798
+ export const inboundSchema =
799
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema;
800
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema` instead. */
801
+ export const outboundSchema =
802
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema;
803
+ }
804
+
805
+ /** @internal */
806
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema:
807
+ z.ZodType<
808
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
809
+ z.ZodTypeDef,
810
+ unknown
811
+ > = z.object({
812
+ type:
813
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema,
814
+ attributes: ConsumerSecuredLoanAssetAttributes$inboundSchema,
815
+ relationships: z.nullable(z.any()).optional(),
816
+ links: z.record(LinkObject$inboundSchema).optional(),
817
+ meta: z.record(z.any()).optional(),
818
+ });
819
+
820
+ /** @internal */
821
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound =
822
+ {
823
+ type: string;
824
+ attributes: ConsumerSecuredLoanAssetAttributes$Outbound;
825
+ relationships?: any | null | undefined;
826
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
827
+ meta?: { [k: string]: any } | undefined;
828
+ };
829
+
830
+ /** @internal */
831
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema:
832
+ z.ZodType<
833
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound,
834
+ z.ZodTypeDef,
835
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData
836
+ > = z.object({
837
+ type:
838
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema,
839
+ attributes: ConsumerSecuredLoanAssetAttributes$outboundSchema,
840
+ relationships: z.nullable(z.any()).optional(),
841
+ links: z.record(LinkObject$outboundSchema).optional(),
842
+ meta: z.record(z.any()).optional(),
843
+ });
844
+
845
+ /**
846
+ * @internal
847
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
848
+ */
849
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$ {
850
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema` instead. */
851
+ export const inboundSchema =
852
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema;
853
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema` instead. */
854
+ export const outboundSchema =
855
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema;
856
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound` instead. */
857
+ export type Outbound =
858
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound;
859
+ }
860
+
861
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetDataToJSON(
862
+ consumerSecuredLoanConsumerApplicationRelationshipsAssetData:
863
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
864
+ ): string {
865
+ return JSON.stringify(
866
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema
867
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAssetData),
868
+ );
869
+ }
870
+
871
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetDataFromJSON(
872
+ jsonString: string,
873
+ ): SafeParseResult<
874
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
875
+ SDKValidationError
876
+ > {
877
+ return safeParse(
878
+ jsonString,
879
+ (x) =>
880
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema
881
+ .parse(JSON.parse(x)),
882
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData' from JSON`,
883
+ );
884
+ }
885
+
886
+ /** @internal */
887
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema:
888
+ z.ZodType<
889
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
890
+ z.ZodTypeDef,
891
+ unknown
892
+ > = z.object({
893
+ data: z.lazy(() =>
894
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema
895
+ ),
896
+ });
897
+
898
+ /** @internal */
899
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound =
900
+ {
901
+ data: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound;
902
+ };
903
+
904
+ /** @internal */
905
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema:
906
+ z.ZodType<
907
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound,
908
+ z.ZodTypeDef,
909
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset
910
+ > = z.object({
911
+ data: z.lazy(() =>
912
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema
913
+ ),
914
+ });
915
+
916
+ /**
917
+ * @internal
918
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
919
+ */
920
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$ {
921
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema` instead. */
922
+ export const inboundSchema =
923
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema;
924
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema` instead. */
925
+ export const outboundSchema =
926
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema;
927
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound` instead. */
928
+ export type Outbound =
929
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound;
930
+ }
931
+
932
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetToJSON(
933
+ consumerSecuredLoanConsumerApplicationRelationshipsAsset:
934
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
935
+ ): string {
936
+ return JSON.stringify(
937
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema
938
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAsset),
939
+ );
940
+ }
941
+
942
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetFromJSON(
943
+ jsonString: string,
944
+ ): SafeParseResult<
945
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
946
+ SDKValidationError
947
+ > {
948
+ return safeParse(
949
+ jsonString,
950
+ (x) =>
951
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema
952
+ .parse(JSON.parse(x)),
953
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAsset' from JSON`,
954
+ );
955
+ }
956
+
957
+ /** @internal */
958
+ export const ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema:
959
+ z.ZodType<
960
+ ConsumerSecuredLoanConsumerApplicationRelationships,
961
+ z.ZodTypeDef,
962
+ unknown
963
+ > = z.object({
964
+ loanDetails: z.lazy(() =>
965
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema
966
+ ).optional(),
967
+ customers: z.lazy(() =>
968
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema
969
+ ).optional(),
970
+ asset: z.lazy(() =>
971
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema
972
+ ).optional(),
973
+ });
974
+
975
+ /** @internal */
976
+ export type ConsumerSecuredLoanConsumerApplicationRelationships$Outbound = {
977
+ loanDetails?:
978
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound
979
+ | undefined;
980
+ customers?:
981
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound
982
+ | undefined;
983
+ asset?:
984
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound
985
+ | undefined;
986
+ };
987
+
988
+ /** @internal */
989
+ export const ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema:
990
+ z.ZodType<
991
+ ConsumerSecuredLoanConsumerApplicationRelationships$Outbound,
992
+ z.ZodTypeDef,
993
+ ConsumerSecuredLoanConsumerApplicationRelationships
994
+ > = z.object({
995
+ loanDetails: z.lazy(() =>
996
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema
997
+ ).optional(),
998
+ customers: z.lazy(() =>
999
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema
1000
+ ).optional(),
1001
+ asset: z.lazy(() =>
1002
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema
1003
+ ).optional(),
1004
+ });
1005
+
1006
+ /**
1007
+ * @internal
1008
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1009
+ */
1010
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationships$ {
1011
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema` instead. */
1012
+ export const inboundSchema =
1013
+ ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema;
1014
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema` instead. */
1015
+ export const outboundSchema =
1016
+ ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema;
1017
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$Outbound` instead. */
1018
+ export type Outbound =
1019
+ ConsumerSecuredLoanConsumerApplicationRelationships$Outbound;
1020
+ }
1021
+
1022
+ export function consumerSecuredLoanConsumerApplicationRelationshipsToJSON(
1023
+ consumerSecuredLoanConsumerApplicationRelationships:
1024
+ ConsumerSecuredLoanConsumerApplicationRelationships,
1025
+ ): string {
1026
+ return JSON.stringify(
1027
+ ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema.parse(
1028
+ consumerSecuredLoanConsumerApplicationRelationships,
1029
+ ),
1030
+ );
1031
+ }
1032
+
1033
+ export function consumerSecuredLoanConsumerApplicationRelationshipsFromJSON(
1034
+ jsonString: string,
1035
+ ): SafeParseResult<
1036
+ ConsumerSecuredLoanConsumerApplicationRelationships,
1037
+ SDKValidationError
1038
+ > {
1039
+ return safeParse(
1040
+ jsonString,
1041
+ (x) =>
1042
+ ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema.parse(
1043
+ JSON.parse(x),
1044
+ ),
1045
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationships' from JSON`,
1046
+ );
1047
+ }