@financeable/aggregation 0.5.1 → 0.6.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 (292) hide show
  1. package/FUNCTIONS.md +11 -132
  2. package/README.md +262 -1515
  3. package/docs/sdks/applications/README.md +171 -295
  4. package/docs/sdks/oauthtoken/README.md +5 -5
  5. package/docs/sdks/supportingdocuments/README.md +113 -0
  6. package/funcs/applicationsCreate.d.ts +1 -2
  7. package/funcs/applicationsCreate.d.ts.map +1 -1
  8. package/funcs/applicationsCreate.js +2 -3
  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 +15 -0
  15. package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
  16. package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +15 -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 +8 -8
  32. package/models/components/addressattributes.d.ts.map +1 -1
  33. package/models/components/addressattributes.js +13 -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/commercialapplicationresource.d.ts +191 -0
  48. package/models/components/commercialapplicationresource.d.ts.map +1 -0
  49. package/models/components/commercialapplicationresource.js +183 -0
  50. package/models/components/commercialapplicationresource.js.map +1 -0
  51. package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts +124 -0
  52. package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
  53. package/models/components/commercialsecuredloanapplicationsubmissionpayload.js +144 -0
  54. package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +1 -0
  55. package/models/components/commercialsecuredloanassetattributes.d.ts +235 -0
  56. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
  57. package/models/components/commercialsecuredloanassetattributes.js +168 -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 +455 -0
  64. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
  65. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +504 -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/consumerapplicationresource.d.ts +191 -0
  72. package/models/components/consumerapplicationresource.d.ts.map +1 -0
  73. package/models/components/consumerapplicationresource.js +187 -0
  74. package/models/components/consumerapplicationresource.js.map +1 -0
  75. package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +124 -0
  76. package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
  77. package/models/components/consumersecuredloanapplicationsubmissionpayload.js +146 -0
  78. package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +1 -0
  79. package/models/components/consumersecuredloanassetattributes.d.ts +235 -0
  80. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
  81. package/models/components/consumersecuredloanassetattributes.js +170 -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 +376 -0
  88. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
  89. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +426 -0
  90. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
  91. package/models/components/createsupportingdocumentsresponse.d.ts +121 -0
  92. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
  93. package/models/components/createsupportingdocumentsresponse.js +149 -0
  94. package/models/components/createsupportingdocumentsresponse.js.map +1 -0
  95. package/models/components/documenttype.d.ts +70 -0
  96. package/models/components/documenttype.d.ts.map +1 -0
  97. package/models/components/documenttype.js +75 -0
  98. package/models/components/documenttype.js.map +1 -0
  99. package/models/components/entityattributes.d.ts +0 -22
  100. package/models/components/entityattributes.d.ts.map +1 -1
  101. package/models/components/entityattributes.js +0 -19
  102. package/models/components/entityattributes.js.map +1 -1
  103. package/models/components/forbiddenerror.d.ts +17 -39
  104. package/models/components/forbiddenerror.d.ts.map +1 -1
  105. package/models/components/forbiddenerror.js +27 -46
  106. package/models/components/forbiddenerror.js.map +1 -1
  107. package/models/components/index.d.ts +25 -8
  108. package/models/components/index.d.ts.map +1 -1
  109. package/models/components/index.js +25 -8
  110. package/models/components/index.js.map +1 -1
  111. package/models/components/linkobject.d.ts +47 -0
  112. package/models/components/linkobject.d.ts.map +1 -0
  113. package/models/components/linkobject.js +77 -0
  114. package/models/components/linkobject.js.map +1 -0
  115. package/models/components/relationshipresourcenotfound.d.ts +116 -0
  116. package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
  117. package/models/components/relationshipresourcenotfound.js +139 -0
  118. package/models/components/relationshipresourcenotfound.js.map +1 -0
  119. package/models/components/resourcenotfound.d.ts +119 -0
  120. package/models/components/resourcenotfound.d.ts.map +1 -0
  121. package/models/components/resourcenotfound.js +139 -0
  122. package/models/components/resourcenotfound.js.map +1 -0
  123. package/models/components/resourcetypes.d.ts +46 -0
  124. package/models/components/resourcetypes.d.ts.map +1 -0
  125. package/models/components/{links.js → resourcetypes.js} +21 -27
  126. package/models/components/resourcetypes.js.map +1 -0
  127. package/models/components/supportingdocumentattributes.d.ts +40 -0
  128. package/models/components/supportingdocumentattributes.d.ts.map +1 -0
  129. package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
  130. package/models/components/supportingdocumentattributes.js.map +1 -0
  131. package/models/components/supportingdocumentattributesinput.d.ts +38 -0
  132. package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
  133. package/models/components/supportingdocumentattributesinput.js +72 -0
  134. package/models/components/supportingdocumentattributesinput.js.map +1 -0
  135. package/models/components/supportingdocumentrelationships.d.ts +448 -0
  136. package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
  137. package/models/components/supportingdocumentrelationships.js +434 -0
  138. package/models/components/supportingdocumentrelationships.js.map +1 -0
  139. package/models/components/supportingdocumentresource.d.ts +91 -0
  140. package/models/components/supportingdocumentresource.d.ts.map +1 -0
  141. package/models/components/supportingdocumentresource.js +121 -0
  142. package/models/components/supportingdocumentresource.js.map +1 -0
  143. package/models/components/uploadmimetype.d.ts +49 -0
  144. package/models/components/uploadmimetype.d.ts.map +1 -0
  145. package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
  146. package/models/components/uploadmimetype.js.map +1 -0
  147. package/models/errors/createapplication.d.ts +38 -0
  148. package/models/errors/createapplication.d.ts.map +1 -0
  149. package/models/errors/{responsebody.js → createapplication.js} +15 -15
  150. package/models/errors/createapplication.js.map +1 -0
  151. package/models/errors/index.d.ts +2 -1
  152. package/models/errors/index.d.ts.map +1 -1
  153. package/models/errors/index.js +2 -1
  154. package/models/errors/index.js.map +1 -1
  155. package/models/errors/supportingdocumentscreate.d.ts +143 -0
  156. package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
  157. package/models/errors/supportingdocumentscreate.js +225 -0
  158. package/models/errors/supportingdocumentscreate.js.map +1 -0
  159. package/models/operations/createapplication.d.ts +66 -808
  160. package/models/operations/createapplication.d.ts.map +1 -1
  161. package/models/operations/createapplication.js +82 -837
  162. package/models/operations/createapplication.js.map +1 -1
  163. package/models/operations/index.d.ts +1 -2
  164. package/models/operations/index.d.ts.map +1 -1
  165. package/models/operations/index.js +1 -2
  166. package/models/operations/index.js.map +1 -1
  167. package/models/operations/supportingdocumentscreate.d.ts +60 -0
  168. package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
  169. package/models/operations/supportingdocumentscreate.js +108 -0
  170. package/models/operations/supportingdocumentscreate.js.map +1 -0
  171. package/package.json +2 -2
  172. package/sdk/applications.d.ts +1 -10
  173. package/sdk/applications.d.ts.map +1 -1
  174. package/sdk/applications.js +0 -14
  175. package/sdk/applications.js.map +1 -1
  176. package/sdk/oauthtoken.d.ts +1 -1
  177. package/sdk/oauthtoken.d.ts.map +1 -1
  178. package/sdk/oauthtoken.js +3 -3
  179. package/sdk/oauthtoken.js.map +1 -1
  180. package/sdk/sdk.d.ts +3 -0
  181. package/sdk/sdk.d.ts.map +1 -1
  182. package/sdk/sdk.js +4 -0
  183. package/sdk/sdk.js.map +1 -1
  184. package/sdk/supportingdocuments.d.ts +10 -0
  185. package/sdk/supportingdocuments.d.ts.map +1 -0
  186. package/sdk/supportingdocuments.js +19 -0
  187. package/sdk/supportingdocuments.js.map +1 -0
  188. package/src/funcs/applicationsCreate.ts +7 -8
  189. package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
  190. package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +31 -20
  191. package/src/lib/config.ts +4 -7
  192. package/src/lib/matchers.ts +20 -0
  193. package/src/lib/sdks.ts +19 -13
  194. package/src/models/components/addressattributes.ts +18 -14
  195. package/src/models/components/applicationresource.ts +83 -0
  196. package/src/models/components/badrequesterror.ts +182 -0
  197. package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
  198. package/src/models/components/commercialapplicationresource.ts +355 -0
  199. package/src/models/components/commercialsecuredloanapplicationsubmissionpayload.ts +237 -0
  200. package/src/models/components/commercialsecuredloanassetattributes.ts +315 -0
  201. package/src/models/components/commercialsecuredloanassettype.ts +64 -0
  202. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1148 -0
  203. package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
  204. package/src/models/components/consumerapplicationresource.ts +342 -0
  205. package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +270 -0
  206. package/src/models/components/consumersecuredloanassetattributes.ts +330 -0
  207. package/src/models/components/consumersecuredloanassettype.ts +47 -0
  208. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1011 -0
  209. package/src/models/components/createsupportingdocumentsresponse.ts +252 -0
  210. package/src/models/components/documenttype.ts +49 -0
  211. package/src/models/components/entityattributes.ts +0 -44
  212. package/src/models/components/forbiddenerror.ts +35 -58
  213. package/src/models/components/index.ts +25 -8
  214. package/src/models/components/linkobject.ts +84 -0
  215. package/src/models/components/relationshipresourcenotfound.ts +195 -0
  216. package/src/models/components/resourcenotfound.ts +188 -0
  217. package/src/models/components/resourcetypes.ts +39 -0
  218. package/src/models/components/supportingdocumentattributes.ts +87 -0
  219. package/src/models/components/supportingdocumentattributesinput.ts +84 -0
  220. package/src/models/components/supportingdocumentrelationships.ts +828 -0
  221. package/src/models/components/supportingdocumentresource.ts +163 -0
  222. package/src/models/components/uploadmimetype.ts +44 -0
  223. package/src/models/errors/createapplication.ts +76 -0
  224. package/src/models/errors/index.ts +2 -1
  225. package/src/models/errors/supportingdocumentscreate.ts +342 -0
  226. package/src/models/operations/createapplication.ts +143 -1778
  227. package/src/models/operations/index.ts +1 -2
  228. package/src/models/operations/supportingdocumentscreate.ts +150 -0
  229. package/src/sdk/applications.ts +1 -32
  230. package/src/sdk/oauthtoken.ts +3 -3
  231. package/src/sdk/sdk.ts +8 -0
  232. package/src/sdk/supportingdocuments.ts +25 -0
  233. package/funcs/applicationsGet.d.ts +0 -14
  234. package/funcs/applicationsGet.d.ts.map +0 -1
  235. package/funcs/applicationsGet.js +0 -120
  236. package/funcs/applicationsGet.js.map +0 -1
  237. package/funcs/applicationsList.d.ts +0 -14
  238. package/funcs/applicationsList.d.ts.map +0 -1
  239. package/funcs/applicationsList.js.map +0 -1
  240. package/funcs/oauthTokenGet.d.ts.map +0 -1
  241. package/funcs/oauthTokenGet.js.map +0 -1
  242. package/models/components/applicationattributes.d.ts +0 -69
  243. package/models/components/applicationattributes.d.ts.map +0 -1
  244. package/models/components/applicationattributes.js +0 -85
  245. package/models/components/applicationattributes.js.map +0 -1
  246. package/models/components/applicationattributescreate.d.ts +0 -43
  247. package/models/components/applicationattributescreate.d.ts.map +0 -1
  248. package/models/components/applicationattributescreate.js.map +0 -1
  249. package/models/components/applicationresourcebulksubmission.d.ts +0 -527
  250. package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
  251. package/models/components/applicationresourcebulksubmission.js +0 -565
  252. package/models/components/applicationresourcebulksubmission.js.map +0 -1
  253. package/models/components/applicationtype.d.ts +0 -28
  254. package/models/components/applicationtype.d.ts.map +0 -1
  255. package/models/components/applicationtype.js.map +0 -1
  256. package/models/components/assetattributes.d.ts +0 -311
  257. package/models/components/assetattributes.d.ts.map +0 -1
  258. package/models/components/assetattributes.js +0 -234
  259. package/models/components/assetattributes.js.map +0 -1
  260. package/models/components/commercialassettype.d.ts +0 -44
  261. package/models/components/commercialassettype.d.ts.map +0 -1
  262. package/models/components/commercialassettype.js +0 -85
  263. package/models/components/commercialassettype.js.map +0 -1
  264. package/models/components/consumerassettype.d.ts +0 -32
  265. package/models/components/consumerassettype.d.ts.map +0 -1
  266. package/models/components/consumerassettype.js.map +0 -1
  267. package/models/components/links.d.ts +0 -40
  268. package/models/components/links.d.ts.map +0 -1
  269. package/models/components/links.js.map +0 -1
  270. package/models/errors/responsebody.d.ts +0 -38
  271. package/models/errors/responsebody.d.ts.map +0 -1
  272. package/models/errors/responsebody.js.map +0 -1
  273. package/models/operations/getapplication.d.ts +0 -962
  274. package/models/operations/getapplication.d.ts.map +0 -1
  275. package/models/operations/getapplication.js +0 -1030
  276. package/models/operations/getapplication.js.map +0 -1
  277. package/models/operations/getapplications.d.ts +0 -962
  278. package/models/operations/getapplications.d.ts.map +0 -1
  279. package/models/operations/getapplications.js +0 -1029
  280. package/models/operations/getapplications.js.map +0 -1
  281. package/src/funcs/applicationsGet.ts +0 -168
  282. package/src/models/components/applicationattributes.ts +0 -128
  283. package/src/models/components/applicationattributescreate.ts +0 -90
  284. package/src/models/components/applicationresourcebulksubmission.ts +0 -1172
  285. package/src/models/components/applicationtype.ts +0 -33
  286. package/src/models/components/assetattributes.ts +0 -411
  287. package/src/models/components/commercialassettype.ts +0 -61
  288. package/src/models/components/consumerassettype.ts +0 -43
  289. package/src/models/components/links.ts +0 -72
  290. package/src/models/errors/responsebody.ts +0 -76
  291. package/src/models/operations/getapplication.ts +0 -2246
  292. package/src/models/operations/getapplications.ts +0 -2191
@@ -4,1651 +4,157 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
8
7
  import { Result as SafeParseResult } from "../../types/fp.js";
9
8
  import * as components from "../components/index.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
 
12
- export const Type = {
13
- Applications: "applications",
14
- } as const;
15
- export type Type = ClosedEnum<typeof Type>;
11
+ export type Data =
12
+ | components.CommercialSecuredLoanApplicationSubmissionPayload
13
+ | components.ConsumerSecuredLoanApplicationSubmissionPayload;
16
14
 
17
- export const CreateApplicationDataType = {
18
- LoanDetails: "loan-details",
19
- } as const;
20
- export type CreateApplicationDataType = ClosedEnum<
21
- typeof CreateApplicationDataType
22
- >;
23
-
24
- export type CreateApplicationDataApplicationsResponse2 = {
25
- type: CreateApplicationDataType;
26
- id: string;
27
- };
28
-
29
- export const DataType = {
30
- LoanDetails: "loan-details",
31
- } as const;
32
- export type DataType = ClosedEnum<typeof DataType>;
33
-
34
- export type CreateApplicationDataApplicationsResponse1 = {
35
- type: DataType;
36
- id: string;
37
- };
38
-
39
- export type CreateApplicationApplicationsResponse201Data =
40
- | CreateApplicationDataApplicationsResponse1
41
- | Array<CreateApplicationDataApplicationsResponse2>;
42
-
43
- export type LoanDetails = {
44
- data:
45
- | CreateApplicationDataApplicationsResponse1
46
- | Array<CreateApplicationDataApplicationsResponse2>
47
- | null;
48
- /**
49
- * Standard link object
50
- */
51
- links?: components.Links | undefined;
52
- meta?: { [k: string]: any } | undefined;
53
- };
54
-
55
- export const CreateApplicationDataApplicationsResponseType = {
56
- Customers: "customers",
57
- } as const;
58
- export type CreateApplicationDataApplicationsResponseType = ClosedEnum<
59
- typeof CreateApplicationDataApplicationsResponseType
60
- >;
61
-
62
- export type CreateApplicationDataApplicationsResponse2012 = {
63
- type: CreateApplicationDataApplicationsResponseType;
64
- id: string;
65
- };
66
-
67
- export const CreateApplicationDataApplicationsType = {
68
- Customers: "customers",
69
- } as const;
70
- export type CreateApplicationDataApplicationsType = ClosedEnum<
71
- typeof CreateApplicationDataApplicationsType
72
- >;
73
-
74
- export type CreateApplicationDataApplicationsResponse2011 = {
75
- type: CreateApplicationDataApplicationsType;
76
- id: string;
77
- };
78
-
79
- export type CreateApplicationApplicationsResponse201ApplicationJSONData =
80
- | CreateApplicationDataApplicationsResponse2011
81
- | Array<CreateApplicationDataApplicationsResponse2012>;
82
-
83
- export type Customers = {
84
- data:
85
- | CreateApplicationDataApplicationsResponse2011
86
- | Array<CreateApplicationDataApplicationsResponse2012>
87
- | null;
88
- /**
89
- * Standard link object
90
- */
91
- links?: components.Links | undefined;
92
- meta?: { [k: string]: any } | undefined;
93
- };
94
-
95
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONType = {
96
- Assets: "assets",
97
- } as const;
98
- export type CreateApplicationDataApplicationsResponse201ApplicationJSONType =
99
- ClosedEnum<
100
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
101
- >;
102
-
103
- export type CreateApplicationData2 = {
104
- type: CreateApplicationDataApplicationsResponse201ApplicationJSONType;
105
- id: string;
106
- };
107
-
108
- export const CreateApplicationDataApplicationsResponse201Type = {
109
- Assets: "assets",
110
- } as const;
111
- export type CreateApplicationDataApplicationsResponse201Type = ClosedEnum<
112
- typeof CreateApplicationDataApplicationsResponse201Type
113
- >;
114
-
115
- export type CreateApplicationData1 = {
116
- type: CreateApplicationDataApplicationsResponse201Type;
117
- id: string;
118
- };
119
-
120
- export type CreateApplicationApplicationsData =
121
- | CreateApplicationData1
122
- | Array<CreateApplicationData2>;
123
-
124
- export type Asset = {
125
- data: CreateApplicationData1 | Array<CreateApplicationData2> | null;
126
- /**
127
- * Standard link object
128
- */
129
- links?: components.Links | undefined;
130
- meta?: { [k: string]: any } | undefined;
131
- };
132
-
133
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType =
134
- {
135
- Entities: "entities",
136
- } as const;
137
- export type CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType =
138
- ClosedEnum<
139
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
140
- >;
141
-
142
- export type CreateApplicationDataApplications2 = {
143
- type:
144
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType;
145
- id: string;
146
- };
147
-
148
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType =
149
- {
150
- Entities: "entities",
151
- } as const;
152
- export type CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType =
153
- ClosedEnum<
154
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
155
- >;
156
-
157
- export type CreateApplicationDataApplications1 = {
158
- type:
159
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType;
160
- id: string;
161
- };
162
-
163
- export type CreateApplicationApplicationsResponseData =
164
- | CreateApplicationDataApplications1
165
- | Array<CreateApplicationDataApplications2>;
166
-
167
- export type Entities = {
168
- data:
169
- | CreateApplicationDataApplications1
170
- | Array<CreateApplicationDataApplications2>
171
- | null;
172
- /**
173
- * Standard link object
174
- */
175
- links?: components.Links | undefined;
176
- meta?: { [k: string]: any } | undefined;
177
- };
178
-
179
- export type Relationships = {
180
- loanDetails?: LoanDetails | undefined;
181
- customers?: Customers | undefined;
182
- asset?: Asset | undefined;
183
- entities?: Entities | undefined;
184
- };
185
-
186
- export type Data = {
187
- type: Type;
188
- id: string;
189
- /**
190
- * Application resource attributes
191
- */
192
- attributes?: components.ApplicationAttributes | undefined;
193
- relationships?: Relationships | undefined;
194
- /**
195
- * Standard link object
196
- */
197
- links?: components.Links | undefined;
198
- meta?: { [k: string]: any } | undefined;
199
- };
200
-
201
- export type Attributes = {};
202
-
203
- export type Two = {
204
- type: string;
205
- id: string;
206
- };
207
-
208
- export type One = {
209
- type: string;
210
- id: string;
211
- };
212
-
213
- export type CreateApplicationData = One | Array<Two>;
214
-
215
- export type CreateApplicationRelationships = {
216
- data: One | Array<Two> | null;
217
- /**
218
- * Standard link object
219
- */
220
- links?: components.Links | undefined;
221
- meta?: { [k: string]: any } | undefined;
222
- };
223
-
224
- export type Included = {
225
- type: string;
226
- id: string;
227
- attributes?: Attributes | undefined;
228
- relationships?: { [k: string]: CreateApplicationRelationships } | undefined;
229
- /**
230
- * Standard link object
231
- */
232
- links?: components.Links | undefined;
233
- meta?: { [k: string]: any } | undefined;
234
- };
235
-
236
- /**
237
- * The request has succeeded and a new resource has been created as a result.
238
- */
239
- export type CreateApplicationResponseBody = {
240
- data: Data;
241
- included?: Array<Included> | undefined;
242
- /**
243
- * Standard link object
244
- */
245
- links?: components.Links | undefined;
246
- };
247
-
248
- /** @internal */
249
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
250
- Type,
251
- );
252
-
253
- /** @internal */
254
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
255
- Type$inboundSchema;
256
-
257
- /**
258
- * @internal
259
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
260
- */
261
- export namespace Type$ {
262
- /** @deprecated use `Type$inboundSchema` instead. */
263
- export const inboundSchema = Type$inboundSchema;
264
- /** @deprecated use `Type$outboundSchema` instead. */
265
- export const outboundSchema = Type$outboundSchema;
266
- }
267
-
268
- /** @internal */
269
- export const CreateApplicationDataType$inboundSchema: z.ZodNativeEnum<
270
- typeof CreateApplicationDataType
271
- > = z.nativeEnum(CreateApplicationDataType);
272
-
273
- /** @internal */
274
- export const CreateApplicationDataType$outboundSchema: z.ZodNativeEnum<
275
- typeof CreateApplicationDataType
276
- > = CreateApplicationDataType$inboundSchema;
277
-
278
- /**
279
- * @internal
280
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
281
- */
282
- export namespace CreateApplicationDataType$ {
283
- /** @deprecated use `CreateApplicationDataType$inboundSchema` instead. */
284
- export const inboundSchema = CreateApplicationDataType$inboundSchema;
285
- /** @deprecated use `CreateApplicationDataType$outboundSchema` instead. */
286
- export const outboundSchema = CreateApplicationDataType$outboundSchema;
287
- }
288
-
289
- /** @internal */
290
- export const CreateApplicationDataApplicationsResponse2$inboundSchema:
291
- z.ZodType<CreateApplicationDataApplicationsResponse2, z.ZodTypeDef, unknown> =
292
- z.object({
293
- type: CreateApplicationDataType$inboundSchema,
294
- id: z.string(),
295
- });
296
-
297
- /** @internal */
298
- export type CreateApplicationDataApplicationsResponse2$Outbound = {
299
- type: string;
300
- id: string;
301
- };
302
-
303
- /** @internal */
304
- export const CreateApplicationDataApplicationsResponse2$outboundSchema:
305
- z.ZodType<
306
- CreateApplicationDataApplicationsResponse2$Outbound,
307
- z.ZodTypeDef,
308
- CreateApplicationDataApplicationsResponse2
309
- > = z.object({
310
- type: CreateApplicationDataType$outboundSchema,
311
- id: z.string(),
312
- });
313
-
314
- /**
315
- * @internal
316
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
317
- */
318
- export namespace CreateApplicationDataApplicationsResponse2$ {
319
- /** @deprecated use `CreateApplicationDataApplicationsResponse2$inboundSchema` instead. */
320
- export const inboundSchema =
321
- CreateApplicationDataApplicationsResponse2$inboundSchema;
322
- /** @deprecated use `CreateApplicationDataApplicationsResponse2$outboundSchema` instead. */
323
- export const outboundSchema =
324
- CreateApplicationDataApplicationsResponse2$outboundSchema;
325
- /** @deprecated use `CreateApplicationDataApplicationsResponse2$Outbound` instead. */
326
- export type Outbound = CreateApplicationDataApplicationsResponse2$Outbound;
327
- }
328
-
329
- export function createApplicationDataApplicationsResponse2ToJSON(
330
- createApplicationDataApplicationsResponse2:
331
- CreateApplicationDataApplicationsResponse2,
332
- ): string {
333
- return JSON.stringify(
334
- CreateApplicationDataApplicationsResponse2$outboundSchema.parse(
335
- createApplicationDataApplicationsResponse2,
336
- ),
337
- );
338
- }
339
-
340
- export function createApplicationDataApplicationsResponse2FromJSON(
341
- jsonString: string,
342
- ): SafeParseResult<
343
- CreateApplicationDataApplicationsResponse2,
344
- SDKValidationError
345
- > {
346
- return safeParse(
347
- jsonString,
348
- (x) =>
349
- CreateApplicationDataApplicationsResponse2$inboundSchema.parse(
350
- JSON.parse(x),
351
- ),
352
- `Failed to parse 'CreateApplicationDataApplicationsResponse2' from JSON`,
353
- );
354
- }
355
-
356
- /** @internal */
357
- export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
358
- .nativeEnum(DataType);
359
-
360
- /** @internal */
361
- export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
362
- DataType$inboundSchema;
363
-
364
- /**
365
- * @internal
366
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
367
- */
368
- export namespace DataType$ {
369
- /** @deprecated use `DataType$inboundSchema` instead. */
370
- export const inboundSchema = DataType$inboundSchema;
371
- /** @deprecated use `DataType$outboundSchema` instead. */
372
- export const outboundSchema = DataType$outboundSchema;
373
- }
374
-
375
- /** @internal */
376
- export const CreateApplicationDataApplicationsResponse1$inboundSchema:
377
- z.ZodType<CreateApplicationDataApplicationsResponse1, z.ZodTypeDef, unknown> =
378
- z.object({
379
- type: DataType$inboundSchema,
380
- id: z.string(),
381
- });
382
-
383
- /** @internal */
384
- export type CreateApplicationDataApplicationsResponse1$Outbound = {
385
- type: string;
386
- id: string;
387
- };
388
-
389
- /** @internal */
390
- export const CreateApplicationDataApplicationsResponse1$outboundSchema:
391
- z.ZodType<
392
- CreateApplicationDataApplicationsResponse1$Outbound,
393
- z.ZodTypeDef,
394
- CreateApplicationDataApplicationsResponse1
395
- > = z.object({
396
- type: DataType$outboundSchema,
397
- id: z.string(),
398
- });
399
-
400
- /**
401
- * @internal
402
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
403
- */
404
- export namespace CreateApplicationDataApplicationsResponse1$ {
405
- /** @deprecated use `CreateApplicationDataApplicationsResponse1$inboundSchema` instead. */
406
- export const inboundSchema =
407
- CreateApplicationDataApplicationsResponse1$inboundSchema;
408
- /** @deprecated use `CreateApplicationDataApplicationsResponse1$outboundSchema` instead. */
409
- export const outboundSchema =
410
- CreateApplicationDataApplicationsResponse1$outboundSchema;
411
- /** @deprecated use `CreateApplicationDataApplicationsResponse1$Outbound` instead. */
412
- export type Outbound = CreateApplicationDataApplicationsResponse1$Outbound;
413
- }
414
-
415
- export function createApplicationDataApplicationsResponse1ToJSON(
416
- createApplicationDataApplicationsResponse1:
417
- CreateApplicationDataApplicationsResponse1,
418
- ): string {
419
- return JSON.stringify(
420
- CreateApplicationDataApplicationsResponse1$outboundSchema.parse(
421
- createApplicationDataApplicationsResponse1,
422
- ),
423
- );
424
- }
425
-
426
- export function createApplicationDataApplicationsResponse1FromJSON(
427
- jsonString: string,
428
- ): SafeParseResult<
429
- CreateApplicationDataApplicationsResponse1,
430
- SDKValidationError
431
- > {
432
- return safeParse(
433
- jsonString,
434
- (x) =>
435
- CreateApplicationDataApplicationsResponse1$inboundSchema.parse(
436
- JSON.parse(x),
437
- ),
438
- `Failed to parse 'CreateApplicationDataApplicationsResponse1' from JSON`,
439
- );
440
- }
441
-
442
- /** @internal */
443
- export const CreateApplicationApplicationsResponse201Data$inboundSchema:
444
- z.ZodType<
445
- CreateApplicationApplicationsResponse201Data,
446
- z.ZodTypeDef,
447
- unknown
448
- > = z.union([
449
- z.lazy(() => CreateApplicationDataApplicationsResponse1$inboundSchema),
450
- z.array(
451
- z.lazy(() => CreateApplicationDataApplicationsResponse2$inboundSchema),
452
- ),
453
- ]);
454
-
455
- /** @internal */
456
- export type CreateApplicationApplicationsResponse201Data$Outbound =
457
- | CreateApplicationDataApplicationsResponse1$Outbound
458
- | Array<CreateApplicationDataApplicationsResponse2$Outbound>;
459
-
460
- /** @internal */
461
- export const CreateApplicationApplicationsResponse201Data$outboundSchema:
462
- z.ZodType<
463
- CreateApplicationApplicationsResponse201Data$Outbound,
464
- z.ZodTypeDef,
465
- CreateApplicationApplicationsResponse201Data
466
- > = z.union([
467
- z.lazy(() => CreateApplicationDataApplicationsResponse1$outboundSchema),
468
- z.array(
469
- z.lazy(() => CreateApplicationDataApplicationsResponse2$outboundSchema),
470
- ),
471
- ]);
472
-
473
- /**
474
- * @internal
475
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
476
- */
477
- export namespace CreateApplicationApplicationsResponse201Data$ {
478
- /** @deprecated use `CreateApplicationApplicationsResponse201Data$inboundSchema` instead. */
479
- export const inboundSchema =
480
- CreateApplicationApplicationsResponse201Data$inboundSchema;
481
- /** @deprecated use `CreateApplicationApplicationsResponse201Data$outboundSchema` instead. */
482
- export const outboundSchema =
483
- CreateApplicationApplicationsResponse201Data$outboundSchema;
484
- /** @deprecated use `CreateApplicationApplicationsResponse201Data$Outbound` instead. */
485
- export type Outbound = CreateApplicationApplicationsResponse201Data$Outbound;
486
- }
487
-
488
- export function createApplicationApplicationsResponse201DataToJSON(
489
- createApplicationApplicationsResponse201Data:
490
- CreateApplicationApplicationsResponse201Data,
491
- ): string {
492
- return JSON.stringify(
493
- CreateApplicationApplicationsResponse201Data$outboundSchema.parse(
494
- createApplicationApplicationsResponse201Data,
495
- ),
496
- );
497
- }
498
-
499
- export function createApplicationApplicationsResponse201DataFromJSON(
500
- jsonString: string,
501
- ): SafeParseResult<
502
- CreateApplicationApplicationsResponse201Data,
503
- SDKValidationError
504
- > {
505
- return safeParse(
506
- jsonString,
507
- (x) =>
508
- CreateApplicationApplicationsResponse201Data$inboundSchema.parse(
509
- JSON.parse(x),
510
- ),
511
- `Failed to parse 'CreateApplicationApplicationsResponse201Data' from JSON`,
512
- );
513
- }
514
-
515
- /** @internal */
516
- export const LoanDetails$inboundSchema: z.ZodType<
517
- LoanDetails,
518
- z.ZodTypeDef,
519
- unknown
520
- > = z.object({
521
- data: z.nullable(
522
- z.union([
523
- z.lazy(() => CreateApplicationDataApplicationsResponse1$inboundSchema),
524
- z.array(z.lazy(() =>
525
- CreateApplicationDataApplicationsResponse2$inboundSchema
526
- )),
527
- ]),
528
- ),
529
- links: components.Links$inboundSchema.optional(),
530
- meta: z.record(z.any()).optional(),
531
- });
532
-
533
- /** @internal */
534
- export type LoanDetails$Outbound = {
535
- data:
536
- | CreateApplicationDataApplicationsResponse1$Outbound
537
- | Array<CreateApplicationDataApplicationsResponse2$Outbound>
538
- | null;
539
- links?: components.Links$Outbound | undefined;
540
- meta?: { [k: string]: any } | undefined;
541
- };
542
-
543
- /** @internal */
544
- export const LoanDetails$outboundSchema: z.ZodType<
545
- LoanDetails$Outbound,
546
- z.ZodTypeDef,
547
- LoanDetails
548
- > = z.object({
549
- data: z.nullable(
550
- z.union([
551
- z.lazy(() => CreateApplicationDataApplicationsResponse1$outboundSchema),
552
- z.array(z.lazy(() =>
553
- CreateApplicationDataApplicationsResponse2$outboundSchema
554
- )),
555
- ]),
556
- ),
557
- links: components.Links$outboundSchema.optional(),
558
- meta: z.record(z.any()).optional(),
559
- });
560
-
561
- /**
562
- * @internal
563
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
564
- */
565
- export namespace LoanDetails$ {
566
- /** @deprecated use `LoanDetails$inboundSchema` instead. */
567
- export const inboundSchema = LoanDetails$inboundSchema;
568
- /** @deprecated use `LoanDetails$outboundSchema` instead. */
569
- export const outboundSchema = LoanDetails$outboundSchema;
570
- /** @deprecated use `LoanDetails$Outbound` instead. */
571
- export type Outbound = LoanDetails$Outbound;
572
- }
573
-
574
- export function loanDetailsToJSON(loanDetails: LoanDetails): string {
575
- return JSON.stringify(LoanDetails$outboundSchema.parse(loanDetails));
576
- }
577
-
578
- export function loanDetailsFromJSON(
579
- jsonString: string,
580
- ): SafeParseResult<LoanDetails, SDKValidationError> {
581
- return safeParse(
582
- jsonString,
583
- (x) => LoanDetails$inboundSchema.parse(JSON.parse(x)),
584
- `Failed to parse 'LoanDetails' from JSON`,
585
- );
586
- }
587
-
588
- /** @internal */
589
- export const CreateApplicationDataApplicationsResponseType$inboundSchema:
590
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponseType> = z
591
- .nativeEnum(CreateApplicationDataApplicationsResponseType);
592
-
593
- /** @internal */
594
- export const CreateApplicationDataApplicationsResponseType$outboundSchema:
595
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponseType> =
596
- CreateApplicationDataApplicationsResponseType$inboundSchema;
597
-
598
- /**
599
- * @internal
600
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
601
- */
602
- export namespace CreateApplicationDataApplicationsResponseType$ {
603
- /** @deprecated use `CreateApplicationDataApplicationsResponseType$inboundSchema` instead. */
604
- export const inboundSchema =
605
- CreateApplicationDataApplicationsResponseType$inboundSchema;
606
- /** @deprecated use `CreateApplicationDataApplicationsResponseType$outboundSchema` instead. */
607
- export const outboundSchema =
608
- CreateApplicationDataApplicationsResponseType$outboundSchema;
609
- }
610
-
611
- /** @internal */
612
- export const CreateApplicationDataApplicationsResponse2012$inboundSchema:
613
- z.ZodType<
614
- CreateApplicationDataApplicationsResponse2012,
615
- z.ZodTypeDef,
616
- unknown
617
- > = z.object({
618
- type: CreateApplicationDataApplicationsResponseType$inboundSchema,
619
- id: z.string(),
620
- });
621
-
622
- /** @internal */
623
- export type CreateApplicationDataApplicationsResponse2012$Outbound = {
624
- type: string;
625
- id: string;
626
- };
627
-
628
- /** @internal */
629
- export const CreateApplicationDataApplicationsResponse2012$outboundSchema:
630
- z.ZodType<
631
- CreateApplicationDataApplicationsResponse2012$Outbound,
632
- z.ZodTypeDef,
633
- CreateApplicationDataApplicationsResponse2012
634
- > = z.object({
635
- type: CreateApplicationDataApplicationsResponseType$outboundSchema,
636
- id: z.string(),
637
- });
638
-
639
- /**
640
- * @internal
641
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
642
- */
643
- export namespace CreateApplicationDataApplicationsResponse2012$ {
644
- /** @deprecated use `CreateApplicationDataApplicationsResponse2012$inboundSchema` instead. */
645
- export const inboundSchema =
646
- CreateApplicationDataApplicationsResponse2012$inboundSchema;
647
- /** @deprecated use `CreateApplicationDataApplicationsResponse2012$outboundSchema` instead. */
648
- export const outboundSchema =
649
- CreateApplicationDataApplicationsResponse2012$outboundSchema;
650
- /** @deprecated use `CreateApplicationDataApplicationsResponse2012$Outbound` instead. */
651
- export type Outbound = CreateApplicationDataApplicationsResponse2012$Outbound;
652
- }
653
-
654
- export function createApplicationDataApplicationsResponse2012ToJSON(
655
- createApplicationDataApplicationsResponse2012:
656
- CreateApplicationDataApplicationsResponse2012,
657
- ): string {
658
- return JSON.stringify(
659
- CreateApplicationDataApplicationsResponse2012$outboundSchema.parse(
660
- createApplicationDataApplicationsResponse2012,
661
- ),
662
- );
663
- }
664
-
665
- export function createApplicationDataApplicationsResponse2012FromJSON(
666
- jsonString: string,
667
- ): SafeParseResult<
668
- CreateApplicationDataApplicationsResponse2012,
669
- SDKValidationError
670
- > {
671
- return safeParse(
672
- jsonString,
673
- (x) =>
674
- CreateApplicationDataApplicationsResponse2012$inboundSchema.parse(
675
- JSON.parse(x),
676
- ),
677
- `Failed to parse 'CreateApplicationDataApplicationsResponse2012' from JSON`,
678
- );
679
- }
680
-
681
- /** @internal */
682
- export const CreateApplicationDataApplicationsType$inboundSchema:
683
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsType> = z.nativeEnum(
684
- CreateApplicationDataApplicationsType,
685
- );
686
-
687
- /** @internal */
688
- export const CreateApplicationDataApplicationsType$outboundSchema:
689
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsType> =
690
- CreateApplicationDataApplicationsType$inboundSchema;
691
-
692
- /**
693
- * @internal
694
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
695
- */
696
- export namespace CreateApplicationDataApplicationsType$ {
697
- /** @deprecated use `CreateApplicationDataApplicationsType$inboundSchema` instead. */
698
- export const inboundSchema =
699
- CreateApplicationDataApplicationsType$inboundSchema;
700
- /** @deprecated use `CreateApplicationDataApplicationsType$outboundSchema` instead. */
701
- export const outboundSchema =
702
- CreateApplicationDataApplicationsType$outboundSchema;
703
- }
704
-
705
- /** @internal */
706
- export const CreateApplicationDataApplicationsResponse2011$inboundSchema:
707
- z.ZodType<
708
- CreateApplicationDataApplicationsResponse2011,
709
- z.ZodTypeDef,
710
- unknown
711
- > = z.object({
712
- type: CreateApplicationDataApplicationsType$inboundSchema,
713
- id: z.string(),
714
- });
715
-
716
- /** @internal */
717
- export type CreateApplicationDataApplicationsResponse2011$Outbound = {
718
- type: string;
719
- id: string;
720
- };
721
-
722
- /** @internal */
723
- export const CreateApplicationDataApplicationsResponse2011$outboundSchema:
724
- z.ZodType<
725
- CreateApplicationDataApplicationsResponse2011$Outbound,
726
- z.ZodTypeDef,
727
- CreateApplicationDataApplicationsResponse2011
728
- > = z.object({
729
- type: CreateApplicationDataApplicationsType$outboundSchema,
730
- id: z.string(),
731
- });
732
-
733
- /**
734
- * @internal
735
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
736
- */
737
- export namespace CreateApplicationDataApplicationsResponse2011$ {
738
- /** @deprecated use `CreateApplicationDataApplicationsResponse2011$inboundSchema` instead. */
739
- export const inboundSchema =
740
- CreateApplicationDataApplicationsResponse2011$inboundSchema;
741
- /** @deprecated use `CreateApplicationDataApplicationsResponse2011$outboundSchema` instead. */
742
- export const outboundSchema =
743
- CreateApplicationDataApplicationsResponse2011$outboundSchema;
744
- /** @deprecated use `CreateApplicationDataApplicationsResponse2011$Outbound` instead. */
745
- export type Outbound = CreateApplicationDataApplicationsResponse2011$Outbound;
746
- }
747
-
748
- export function createApplicationDataApplicationsResponse2011ToJSON(
749
- createApplicationDataApplicationsResponse2011:
750
- CreateApplicationDataApplicationsResponse2011,
751
- ): string {
752
- return JSON.stringify(
753
- CreateApplicationDataApplicationsResponse2011$outboundSchema.parse(
754
- createApplicationDataApplicationsResponse2011,
755
- ),
756
- );
757
- }
758
-
759
- export function createApplicationDataApplicationsResponse2011FromJSON(
760
- jsonString: string,
761
- ): SafeParseResult<
762
- CreateApplicationDataApplicationsResponse2011,
763
- SDKValidationError
764
- > {
765
- return safeParse(
766
- jsonString,
767
- (x) =>
768
- CreateApplicationDataApplicationsResponse2011$inboundSchema.parse(
769
- JSON.parse(x),
770
- ),
771
- `Failed to parse 'CreateApplicationDataApplicationsResponse2011' from JSON`,
772
- );
773
- }
774
-
775
- /** @internal */
776
- export const CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema:
777
- z.ZodType<
778
- CreateApplicationApplicationsResponse201ApplicationJSONData,
779
- z.ZodTypeDef,
780
- unknown
781
- > = z.union([
782
- z.lazy(() => CreateApplicationDataApplicationsResponse2011$inboundSchema),
783
- z.array(
784
- z.lazy(() => CreateApplicationDataApplicationsResponse2012$inboundSchema),
785
- ),
786
- ]);
787
-
788
- /** @internal */
789
- export type CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound =
790
- | CreateApplicationDataApplicationsResponse2011$Outbound
791
- | Array<CreateApplicationDataApplicationsResponse2012$Outbound>;
792
-
793
- /** @internal */
794
- export const CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema:
795
- z.ZodType<
796
- CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound,
797
- z.ZodTypeDef,
798
- CreateApplicationApplicationsResponse201ApplicationJSONData
799
- > = z.union([
800
- z.lazy(() => CreateApplicationDataApplicationsResponse2011$outboundSchema),
801
- z.array(
802
- z.lazy(() =>
803
- CreateApplicationDataApplicationsResponse2012$outboundSchema
804
- ),
805
- ),
806
- ]);
807
-
808
- /**
809
- * @internal
810
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
811
- */
812
- export namespace CreateApplicationApplicationsResponse201ApplicationJSONData$ {
813
- /** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema` instead. */
814
- export const inboundSchema =
815
- CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema;
816
- /** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema` instead. */
817
- export const outboundSchema =
818
- CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema;
819
- /** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound` instead. */
820
- export type Outbound =
821
- CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound;
822
- }
823
-
824
- export function createApplicationApplicationsResponse201ApplicationJSONDataToJSON(
825
- createApplicationApplicationsResponse201ApplicationJSONData:
826
- CreateApplicationApplicationsResponse201ApplicationJSONData,
827
- ): string {
828
- return JSON.stringify(
829
- CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema
830
- .parse(createApplicationApplicationsResponse201ApplicationJSONData),
831
- );
832
- }
833
-
834
- export function createApplicationApplicationsResponse201ApplicationJSONDataFromJSON(
835
- jsonString: string,
836
- ): SafeParseResult<
837
- CreateApplicationApplicationsResponse201ApplicationJSONData,
838
- SDKValidationError
839
- > {
840
- return safeParse(
841
- jsonString,
842
- (x) =>
843
- CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema
844
- .parse(JSON.parse(x)),
845
- `Failed to parse 'CreateApplicationApplicationsResponse201ApplicationJSONData' from JSON`,
846
- );
847
- }
848
-
849
- /** @internal */
850
- export const Customers$inboundSchema: z.ZodType<
851
- Customers,
852
- z.ZodTypeDef,
853
- unknown
854
- > = z.object({
855
- data: z.nullable(
856
- z.union([
857
- z.lazy(() => CreateApplicationDataApplicationsResponse2011$inboundSchema),
858
- z.array(z.lazy(() =>
859
- CreateApplicationDataApplicationsResponse2012$inboundSchema
860
- )),
861
- ]),
862
- ),
863
- links: components.Links$inboundSchema.optional(),
864
- meta: z.record(z.any()).optional(),
865
- });
866
-
867
- /** @internal */
868
- export type Customers$Outbound = {
869
- data:
870
- | CreateApplicationDataApplicationsResponse2011$Outbound
871
- | Array<CreateApplicationDataApplicationsResponse2012$Outbound>
872
- | null;
873
- links?: components.Links$Outbound | undefined;
874
- meta?: { [k: string]: any } | undefined;
875
- };
876
-
877
- /** @internal */
878
- export const Customers$outboundSchema: z.ZodType<
879
- Customers$Outbound,
880
- z.ZodTypeDef,
881
- Customers
882
- > = z.object({
883
- data: z.nullable(
884
- z.union([
885
- z.lazy(() =>
886
- CreateApplicationDataApplicationsResponse2011$outboundSchema
887
- ),
888
- z.array(
889
- z.lazy(() =>
890
- CreateApplicationDataApplicationsResponse2012$outboundSchema
891
- ),
892
- ),
893
- ]),
894
- ),
895
- links: components.Links$outboundSchema.optional(),
896
- meta: z.record(z.any()).optional(),
897
- });
898
-
899
- /**
900
- * @internal
901
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
902
- */
903
- export namespace Customers$ {
904
- /** @deprecated use `Customers$inboundSchema` instead. */
905
- export const inboundSchema = Customers$inboundSchema;
906
- /** @deprecated use `Customers$outboundSchema` instead. */
907
- export const outboundSchema = Customers$outboundSchema;
908
- /** @deprecated use `Customers$Outbound` instead. */
909
- export type Outbound = Customers$Outbound;
910
- }
911
-
912
- export function customersToJSON(customers: Customers): string {
913
- return JSON.stringify(Customers$outboundSchema.parse(customers));
914
- }
915
-
916
- export function customersFromJSON(
917
- jsonString: string,
918
- ): SafeParseResult<Customers, SDKValidationError> {
919
- return safeParse(
920
- jsonString,
921
- (x) => Customers$inboundSchema.parse(JSON.parse(x)),
922
- `Failed to parse 'Customers' from JSON`,
923
- );
924
- }
925
-
926
- /** @internal */
927
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema:
928
- z.ZodNativeEnum<
929
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
930
- > = z.nativeEnum(
931
- CreateApplicationDataApplicationsResponse201ApplicationJSONType,
932
- );
933
-
934
- /** @internal */
935
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema:
936
- z.ZodNativeEnum<
937
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
938
- > =
939
- CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema;
940
-
941
- /**
942
- * @internal
943
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
944
- */
945
- export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONType$ {
946
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema` instead. */
947
- export const inboundSchema =
948
- CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema;
949
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema` instead. */
950
- export const outboundSchema =
951
- CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema;
952
- }
953
-
954
- /** @internal */
955
- export const CreateApplicationData2$inboundSchema: z.ZodType<
956
- CreateApplicationData2,
957
- z.ZodTypeDef,
958
- unknown
959
- > = z.object({
960
- type:
961
- CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema,
962
- id: z.string(),
963
- });
964
-
965
- /** @internal */
966
- export type CreateApplicationData2$Outbound = {
967
- type: string;
968
- id: string;
969
- };
970
-
971
- /** @internal */
972
- export const CreateApplicationData2$outboundSchema: z.ZodType<
973
- CreateApplicationData2$Outbound,
974
- z.ZodTypeDef,
975
- CreateApplicationData2
976
- > = z.object({
977
- type:
978
- CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema,
979
- id: z.string(),
980
- });
981
-
982
- /**
983
- * @internal
984
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
985
- */
986
- export namespace CreateApplicationData2$ {
987
- /** @deprecated use `CreateApplicationData2$inboundSchema` instead. */
988
- export const inboundSchema = CreateApplicationData2$inboundSchema;
989
- /** @deprecated use `CreateApplicationData2$outboundSchema` instead. */
990
- export const outboundSchema = CreateApplicationData2$outboundSchema;
991
- /** @deprecated use `CreateApplicationData2$Outbound` instead. */
992
- export type Outbound = CreateApplicationData2$Outbound;
993
- }
994
-
995
- export function createApplicationData2ToJSON(
996
- createApplicationData2: CreateApplicationData2,
997
- ): string {
998
- return JSON.stringify(
999
- CreateApplicationData2$outboundSchema.parse(createApplicationData2),
1000
- );
1001
- }
1002
-
1003
- export function createApplicationData2FromJSON(
1004
- jsonString: string,
1005
- ): SafeParseResult<CreateApplicationData2, SDKValidationError> {
1006
- return safeParse(
1007
- jsonString,
1008
- (x) => CreateApplicationData2$inboundSchema.parse(JSON.parse(x)),
1009
- `Failed to parse 'CreateApplicationData2' from JSON`,
1010
- );
1011
- }
1012
-
1013
- /** @internal */
1014
- export const CreateApplicationDataApplicationsResponse201Type$inboundSchema:
1015
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponse201Type> = z
1016
- .nativeEnum(CreateApplicationDataApplicationsResponse201Type);
1017
-
1018
- /** @internal */
1019
- export const CreateApplicationDataApplicationsResponse201Type$outboundSchema:
1020
- z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponse201Type> =
1021
- CreateApplicationDataApplicationsResponse201Type$inboundSchema;
1022
-
1023
- /**
1024
- * @internal
1025
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1026
- */
1027
- export namespace CreateApplicationDataApplicationsResponse201Type$ {
1028
- /** @deprecated use `CreateApplicationDataApplicationsResponse201Type$inboundSchema` instead. */
1029
- export const inboundSchema =
1030
- CreateApplicationDataApplicationsResponse201Type$inboundSchema;
1031
- /** @deprecated use `CreateApplicationDataApplicationsResponse201Type$outboundSchema` instead. */
1032
- export const outboundSchema =
1033
- CreateApplicationDataApplicationsResponse201Type$outboundSchema;
1034
- }
1035
-
1036
- /** @internal */
1037
- export const CreateApplicationData1$inboundSchema: z.ZodType<
1038
- CreateApplicationData1,
1039
- z.ZodTypeDef,
1040
- unknown
1041
- > = z.object({
1042
- type: CreateApplicationDataApplicationsResponse201Type$inboundSchema,
1043
- id: z.string(),
1044
- });
1045
-
1046
- /** @internal */
1047
- export type CreateApplicationData1$Outbound = {
1048
- type: string;
1049
- id: string;
1050
- };
1051
-
1052
- /** @internal */
1053
- export const CreateApplicationData1$outboundSchema: z.ZodType<
1054
- CreateApplicationData1$Outbound,
1055
- z.ZodTypeDef,
1056
- CreateApplicationData1
1057
- > = z.object({
1058
- type: CreateApplicationDataApplicationsResponse201Type$outboundSchema,
1059
- id: z.string(),
1060
- });
1061
-
1062
- /**
1063
- * @internal
1064
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1065
- */
1066
- export namespace CreateApplicationData1$ {
1067
- /** @deprecated use `CreateApplicationData1$inboundSchema` instead. */
1068
- export const inboundSchema = CreateApplicationData1$inboundSchema;
1069
- /** @deprecated use `CreateApplicationData1$outboundSchema` instead. */
1070
- export const outboundSchema = CreateApplicationData1$outboundSchema;
1071
- /** @deprecated use `CreateApplicationData1$Outbound` instead. */
1072
- export type Outbound = CreateApplicationData1$Outbound;
1073
- }
1074
-
1075
- export function createApplicationData1ToJSON(
1076
- createApplicationData1: CreateApplicationData1,
1077
- ): string {
1078
- return JSON.stringify(
1079
- CreateApplicationData1$outboundSchema.parse(createApplicationData1),
1080
- );
1081
- }
1082
-
1083
- export function createApplicationData1FromJSON(
1084
- jsonString: string,
1085
- ): SafeParseResult<CreateApplicationData1, SDKValidationError> {
1086
- return safeParse(
1087
- jsonString,
1088
- (x) => CreateApplicationData1$inboundSchema.parse(JSON.parse(x)),
1089
- `Failed to parse 'CreateApplicationData1' from JSON`,
1090
- );
1091
- }
1092
-
1093
- /** @internal */
1094
- export const CreateApplicationApplicationsData$inboundSchema: z.ZodType<
1095
- CreateApplicationApplicationsData,
1096
- z.ZodTypeDef,
1097
- unknown
1098
- > = z.union([
1099
- z.lazy(() => CreateApplicationData1$inboundSchema),
1100
- z.array(z.lazy(() => CreateApplicationData2$inboundSchema)),
1101
- ]);
1102
-
1103
- /** @internal */
1104
- export type CreateApplicationApplicationsData$Outbound =
1105
- | CreateApplicationData1$Outbound
1106
- | Array<CreateApplicationData2$Outbound>;
1107
-
1108
- /** @internal */
1109
- export const CreateApplicationApplicationsData$outboundSchema: z.ZodType<
1110
- CreateApplicationApplicationsData$Outbound,
1111
- z.ZodTypeDef,
1112
- CreateApplicationApplicationsData
1113
- > = z.union([
1114
- z.lazy(() => CreateApplicationData1$outboundSchema),
1115
- z.array(z.lazy(() => CreateApplicationData2$outboundSchema)),
1116
- ]);
1117
-
1118
- /**
1119
- * @internal
1120
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1121
- */
1122
- export namespace CreateApplicationApplicationsData$ {
1123
- /** @deprecated use `CreateApplicationApplicationsData$inboundSchema` instead. */
1124
- export const inboundSchema = CreateApplicationApplicationsData$inboundSchema;
1125
- /** @deprecated use `CreateApplicationApplicationsData$outboundSchema` instead. */
1126
- export const outboundSchema =
1127
- CreateApplicationApplicationsData$outboundSchema;
1128
- /** @deprecated use `CreateApplicationApplicationsData$Outbound` instead. */
1129
- export type Outbound = CreateApplicationApplicationsData$Outbound;
1130
- }
1131
-
1132
- export function createApplicationApplicationsDataToJSON(
1133
- createApplicationApplicationsData: CreateApplicationApplicationsData,
1134
- ): string {
1135
- return JSON.stringify(
1136
- CreateApplicationApplicationsData$outboundSchema.parse(
1137
- createApplicationApplicationsData,
1138
- ),
1139
- );
1140
- }
1141
-
1142
- export function createApplicationApplicationsDataFromJSON(
1143
- jsonString: string,
1144
- ): SafeParseResult<CreateApplicationApplicationsData, SDKValidationError> {
1145
- return safeParse(
1146
- jsonString,
1147
- (x) => CreateApplicationApplicationsData$inboundSchema.parse(JSON.parse(x)),
1148
- `Failed to parse 'CreateApplicationApplicationsData' from JSON`,
1149
- );
1150
- }
1151
-
1152
- /** @internal */
1153
- export const Asset$inboundSchema: z.ZodType<Asset, z.ZodTypeDef, unknown> = z
1154
- .object({
1155
- data: z.nullable(
1156
- z.union([
1157
- z.lazy(() => CreateApplicationData1$inboundSchema),
1158
- z.array(z.lazy(() => CreateApplicationData2$inboundSchema)),
1159
- ]),
1160
- ),
1161
- links: components.Links$inboundSchema.optional(),
1162
- meta: z.record(z.any()).optional(),
1163
- });
1164
-
1165
- /** @internal */
1166
- export type Asset$Outbound = {
1167
- data:
1168
- | CreateApplicationData1$Outbound
1169
- | Array<CreateApplicationData2$Outbound>
1170
- | null;
1171
- links?: components.Links$Outbound | undefined;
1172
- meta?: { [k: string]: any } | undefined;
1173
- };
1174
-
1175
- /** @internal */
1176
- export const Asset$outboundSchema: z.ZodType<
1177
- Asset$Outbound,
1178
- z.ZodTypeDef,
1179
- Asset
1180
- > = z.object({
1181
- data: z.nullable(
1182
- z.union([
1183
- z.lazy(() => CreateApplicationData1$outboundSchema),
1184
- z.array(z.lazy(() => CreateApplicationData2$outboundSchema)),
1185
- ]),
1186
- ),
1187
- links: components.Links$outboundSchema.optional(),
1188
- meta: z.record(z.any()).optional(),
1189
- });
1190
-
1191
- /**
1192
- * @internal
1193
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1194
- */
1195
- export namespace Asset$ {
1196
- /** @deprecated use `Asset$inboundSchema` instead. */
1197
- export const inboundSchema = Asset$inboundSchema;
1198
- /** @deprecated use `Asset$outboundSchema` instead. */
1199
- export const outboundSchema = Asset$outboundSchema;
1200
- /** @deprecated use `Asset$Outbound` instead. */
1201
- export type Outbound = Asset$Outbound;
1202
- }
1203
-
1204
- export function assetToJSON(asset: Asset): string {
1205
- return JSON.stringify(Asset$outboundSchema.parse(asset));
1206
- }
1207
-
1208
- export function assetFromJSON(
1209
- jsonString: string,
1210
- ): SafeParseResult<Asset, SDKValidationError> {
1211
- return safeParse(
1212
- jsonString,
1213
- (x) => Asset$inboundSchema.parse(JSON.parse(x)),
1214
- `Failed to parse 'Asset' from JSON`,
1215
- );
1216
- }
1217
-
1218
- /** @internal */
1219
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema:
1220
- z.ZodNativeEnum<
1221
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
1222
- > = z.nativeEnum(
1223
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType,
1224
- );
1225
-
1226
- /** @internal */
1227
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema:
1228
- z.ZodNativeEnum<
1229
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
1230
- > =
1231
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema;
1232
-
1233
- /**
1234
- * @internal
1235
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1236
- */
1237
- export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$ {
1238
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema` instead. */
1239
- export const inboundSchema =
1240
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema;
1241
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema` instead. */
1242
- export const outboundSchema =
1243
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema;
1244
- }
1245
-
1246
- /** @internal */
1247
- export const CreateApplicationDataApplications2$inboundSchema: z.ZodType<
1248
- CreateApplicationDataApplications2,
1249
- z.ZodTypeDef,
1250
- unknown
1251
- > = z.object({
1252
- type:
1253
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema,
1254
- id: z.string(),
1255
- });
1256
-
1257
- /** @internal */
1258
- export type CreateApplicationDataApplications2$Outbound = {
1259
- type: string;
1260
- id: string;
1261
- };
1262
-
1263
- /** @internal */
1264
- export const CreateApplicationDataApplications2$outboundSchema: z.ZodType<
1265
- CreateApplicationDataApplications2$Outbound,
1266
- z.ZodTypeDef,
1267
- CreateApplicationDataApplications2
1268
- > = z.object({
1269
- type:
1270
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema,
1271
- id: z.string(),
1272
- });
1273
-
1274
- /**
1275
- * @internal
1276
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1277
- */
1278
- export namespace CreateApplicationDataApplications2$ {
1279
- /** @deprecated use `CreateApplicationDataApplications2$inboundSchema` instead. */
1280
- export const inboundSchema = CreateApplicationDataApplications2$inboundSchema;
1281
- /** @deprecated use `CreateApplicationDataApplications2$outboundSchema` instead. */
1282
- export const outboundSchema =
1283
- CreateApplicationDataApplications2$outboundSchema;
1284
- /** @deprecated use `CreateApplicationDataApplications2$Outbound` instead. */
1285
- export type Outbound = CreateApplicationDataApplications2$Outbound;
1286
- }
1287
-
1288
- export function createApplicationDataApplications2ToJSON(
1289
- createApplicationDataApplications2: CreateApplicationDataApplications2,
1290
- ): string {
1291
- return JSON.stringify(
1292
- CreateApplicationDataApplications2$outboundSchema.parse(
1293
- createApplicationDataApplications2,
1294
- ),
1295
- );
1296
- }
1297
-
1298
- export function createApplicationDataApplications2FromJSON(
1299
- jsonString: string,
1300
- ): SafeParseResult<CreateApplicationDataApplications2, SDKValidationError> {
1301
- return safeParse(
1302
- jsonString,
1303
- (x) =>
1304
- CreateApplicationDataApplications2$inboundSchema.parse(JSON.parse(x)),
1305
- `Failed to parse 'CreateApplicationDataApplications2' from JSON`,
1306
- );
1307
- }
1308
-
1309
- /** @internal */
1310
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema:
1311
- z.ZodNativeEnum<
1312
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
1313
- > = z.nativeEnum(
1314
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType,
1315
- );
15
+ export type CreateApplicationRequestBody = {
16
+ data:
17
+ | components.CommercialSecuredLoanApplicationSubmissionPayload
18
+ | components.ConsumerSecuredLoanApplicationSubmissionPayload;
19
+ };
1316
20
 
1317
- /** @internal */
1318
- export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema:
1319
- z.ZodNativeEnum<
1320
- typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
1321
- > =
1322
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
21
+ export type Attributes = {};
1323
22
 
1324
- /**
1325
- * @internal
1326
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1327
- */
1328
- export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$ {
1329
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema` instead. */
1330
- export const inboundSchema =
1331
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
1332
- /** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema` instead. */
1333
- export const outboundSchema =
1334
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema;
1335
- }
23
+ export type Relationships = {};
1336
24
 
1337
- /** @internal */
1338
- export const CreateApplicationDataApplications1$inboundSchema: z.ZodType<
1339
- CreateApplicationDataApplications1,
1340
- z.ZodTypeDef,
1341
- unknown
1342
- > = z.object({
1343
- type:
1344
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema,
1345
- id: z.string(),
1346
- });
25
+ export type Links = {};
1347
26
 
1348
- /** @internal */
1349
- export type CreateApplicationDataApplications1$Outbound = {
1350
- type: string;
27
+ export type Included = {
28
+ type: components.ResourceTypes;
1351
29
  id: string;
30
+ attributes?: Attributes | undefined;
31
+ relationships: Relationships;
32
+ links?: { [k: string]: Links } | undefined;
33
+ meta?: { [k: string]: any } | undefined;
1352
34
  };
1353
35
 
1354
- /** @internal */
1355
- export const CreateApplicationDataApplications1$outboundSchema: z.ZodType<
1356
- CreateApplicationDataApplications1$Outbound,
1357
- z.ZodTypeDef,
1358
- CreateApplicationDataApplications1
1359
- > = z.object({
1360
- type:
1361
- CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema,
1362
- id: z.string(),
1363
- });
1364
-
1365
36
  /**
1366
- * @internal
1367
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
+ * The request has succeeded and a new resource has been created as a result.
1368
38
  */
1369
- export namespace CreateApplicationDataApplications1$ {
1370
- /** @deprecated use `CreateApplicationDataApplications1$inboundSchema` instead. */
1371
- export const inboundSchema = CreateApplicationDataApplications1$inboundSchema;
1372
- /** @deprecated use `CreateApplicationDataApplications1$outboundSchema` instead. */
1373
- export const outboundSchema =
1374
- CreateApplicationDataApplications1$outboundSchema;
1375
- /** @deprecated use `CreateApplicationDataApplications1$Outbound` instead. */
1376
- export type Outbound = CreateApplicationDataApplications1$Outbound;
1377
- }
1378
-
1379
- export function createApplicationDataApplications1ToJSON(
1380
- createApplicationDataApplications1: CreateApplicationDataApplications1,
1381
- ): string {
1382
- return JSON.stringify(
1383
- CreateApplicationDataApplications1$outboundSchema.parse(
1384
- createApplicationDataApplications1,
1385
- ),
1386
- );
1387
- }
1388
-
1389
- export function createApplicationDataApplications1FromJSON(
1390
- jsonString: string,
1391
- ): SafeParseResult<CreateApplicationDataApplications1, SDKValidationError> {
1392
- return safeParse(
1393
- jsonString,
1394
- (x) =>
1395
- CreateApplicationDataApplications1$inboundSchema.parse(JSON.parse(x)),
1396
- `Failed to parse 'CreateApplicationDataApplications1' from JSON`,
1397
- );
1398
- }
39
+ export type CreateApplicationResponseBody = {
40
+ /**
41
+ * Represents either a Consumer or Commercial Application resource
42
+ */
43
+ data: components.ApplicationResource;
44
+ included?: Array<Included> | undefined;
45
+ /**
46
+ * Standard link object
47
+ */
48
+ links?: components.LinkObject | undefined;
49
+ };
1399
50
 
1400
51
  /** @internal */
1401
- export const CreateApplicationApplicationsResponseData$inboundSchema: z.ZodType<
1402
- CreateApplicationApplicationsResponseData,
1403
- z.ZodTypeDef,
1404
- unknown
1405
- > = z.union([
1406
- z.lazy(() => CreateApplicationDataApplications1$inboundSchema),
1407
- z.array(z.lazy(() => CreateApplicationDataApplications2$inboundSchema)),
1408
- ]);
52
+ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
53
+ .union([
54
+ components.CommercialSecuredLoanApplicationSubmissionPayload$inboundSchema,
55
+ components.ConsumerSecuredLoanApplicationSubmissionPayload$inboundSchema,
56
+ ]);
1409
57
 
1410
58
  /** @internal */
1411
- export type CreateApplicationApplicationsResponseData$Outbound =
1412
- | CreateApplicationDataApplications1$Outbound
1413
- | Array<CreateApplicationDataApplications2$Outbound>;
59
+ export type Data$Outbound =
60
+ | components.CommercialSecuredLoanApplicationSubmissionPayload$Outbound
61
+ | components.ConsumerSecuredLoanApplicationSubmissionPayload$Outbound;
1414
62
 
1415
63
  /** @internal */
1416
- export const CreateApplicationApplicationsResponseData$outboundSchema:
1417
- z.ZodType<
1418
- CreateApplicationApplicationsResponseData$Outbound,
1419
- z.ZodTypeDef,
1420
- CreateApplicationApplicationsResponseData
1421
- > = z.union([
1422
- z.lazy(() => CreateApplicationDataApplications1$outboundSchema),
1423
- z.array(z.lazy(() => CreateApplicationDataApplications2$outboundSchema)),
64
+ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
65
+ z.union([
66
+ components.CommercialSecuredLoanApplicationSubmissionPayload$outboundSchema,
67
+ components.ConsumerSecuredLoanApplicationSubmissionPayload$outboundSchema,
1424
68
  ]);
1425
69
 
1426
70
  /**
1427
71
  * @internal
1428
72
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1429
73
  */
1430
- export namespace CreateApplicationApplicationsResponseData$ {
1431
- /** @deprecated use `CreateApplicationApplicationsResponseData$inboundSchema` instead. */
1432
- export const inboundSchema =
1433
- CreateApplicationApplicationsResponseData$inboundSchema;
1434
- /** @deprecated use `CreateApplicationApplicationsResponseData$outboundSchema` instead. */
1435
- export const outboundSchema =
1436
- CreateApplicationApplicationsResponseData$outboundSchema;
1437
- /** @deprecated use `CreateApplicationApplicationsResponseData$Outbound` instead. */
1438
- export type Outbound = CreateApplicationApplicationsResponseData$Outbound;
74
+ export namespace Data$ {
75
+ /** @deprecated use `Data$inboundSchema` instead. */
76
+ export const inboundSchema = Data$inboundSchema;
77
+ /** @deprecated use `Data$outboundSchema` instead. */
78
+ export const outboundSchema = Data$outboundSchema;
79
+ /** @deprecated use `Data$Outbound` instead. */
80
+ export type Outbound = Data$Outbound;
1439
81
  }
1440
82
 
1441
- export function createApplicationApplicationsResponseDataToJSON(
1442
- createApplicationApplicationsResponseData:
1443
- CreateApplicationApplicationsResponseData,
1444
- ): string {
1445
- return JSON.stringify(
1446
- CreateApplicationApplicationsResponseData$outboundSchema.parse(
1447
- createApplicationApplicationsResponseData,
1448
- ),
1449
- );
83
+ export function dataToJSON(data: Data): string {
84
+ return JSON.stringify(Data$outboundSchema.parse(data));
1450
85
  }
1451
86
 
1452
- export function createApplicationApplicationsResponseDataFromJSON(
87
+ export function dataFromJSON(
1453
88
  jsonString: string,
1454
- ): SafeParseResult<
1455
- CreateApplicationApplicationsResponseData,
1456
- SDKValidationError
1457
- > {
89
+ ): SafeParseResult<Data, SDKValidationError> {
1458
90
  return safeParse(
1459
91
  jsonString,
1460
- (x) =>
1461
- CreateApplicationApplicationsResponseData$inboundSchema.parse(
1462
- JSON.parse(x),
1463
- ),
1464
- `Failed to parse 'CreateApplicationApplicationsResponseData' from JSON`,
92
+ (x) => Data$inboundSchema.parse(JSON.parse(x)),
93
+ `Failed to parse 'Data' from JSON`,
1465
94
  );
1466
95
  }
1467
96
 
1468
97
  /** @internal */
1469
- export const Entities$inboundSchema: z.ZodType<
1470
- Entities,
98
+ export const CreateApplicationRequestBody$inboundSchema: z.ZodType<
99
+ CreateApplicationRequestBody,
1471
100
  z.ZodTypeDef,
1472
101
  unknown
1473
102
  > = z.object({
1474
- data: z.nullable(
1475
- z.union([
1476
- z.lazy(() => CreateApplicationDataApplications1$inboundSchema),
1477
- z.array(z.lazy(() => CreateApplicationDataApplications2$inboundSchema)),
1478
- ]),
1479
- ),
1480
- links: components.Links$inboundSchema.optional(),
1481
- meta: z.record(z.any()).optional(),
103
+ data: z.union([
104
+ components.CommercialSecuredLoanApplicationSubmissionPayload$inboundSchema,
105
+ components.ConsumerSecuredLoanApplicationSubmissionPayload$inboundSchema,
106
+ ]),
1482
107
  });
1483
108
 
1484
109
  /** @internal */
1485
- export type Entities$Outbound = {
110
+ export type CreateApplicationRequestBody$Outbound = {
1486
111
  data:
1487
- | CreateApplicationDataApplications1$Outbound
1488
- | Array<CreateApplicationDataApplications2$Outbound>
1489
- | null;
1490
- links?: components.Links$Outbound | undefined;
1491
- meta?: { [k: string]: any } | undefined;
1492
- };
1493
-
1494
- /** @internal */
1495
- export const Entities$outboundSchema: z.ZodType<
1496
- Entities$Outbound,
1497
- z.ZodTypeDef,
1498
- Entities
1499
- > = z.object({
1500
- data: z.nullable(
1501
- z.union([
1502
- z.lazy(() => CreateApplicationDataApplications1$outboundSchema),
1503
- z.array(z.lazy(() => CreateApplicationDataApplications2$outboundSchema)),
1504
- ]),
1505
- ),
1506
- links: components.Links$outboundSchema.optional(),
1507
- meta: z.record(z.any()).optional(),
1508
- });
1509
-
1510
- /**
1511
- * @internal
1512
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1513
- */
1514
- export namespace Entities$ {
1515
- /** @deprecated use `Entities$inboundSchema` instead. */
1516
- export const inboundSchema = Entities$inboundSchema;
1517
- /** @deprecated use `Entities$outboundSchema` instead. */
1518
- export const outboundSchema = Entities$outboundSchema;
1519
- /** @deprecated use `Entities$Outbound` instead. */
1520
- export type Outbound = Entities$Outbound;
1521
- }
1522
-
1523
- export function entitiesToJSON(entities: Entities): string {
1524
- return JSON.stringify(Entities$outboundSchema.parse(entities));
1525
- }
1526
-
1527
- export function entitiesFromJSON(
1528
- jsonString: string,
1529
- ): SafeParseResult<Entities, SDKValidationError> {
1530
- return safeParse(
1531
- jsonString,
1532
- (x) => Entities$inboundSchema.parse(JSON.parse(x)),
1533
- `Failed to parse 'Entities' from JSON`,
1534
- );
1535
- }
1536
-
1537
- /** @internal */
1538
- export const Relationships$inboundSchema: z.ZodType<
1539
- Relationships,
1540
- z.ZodTypeDef,
1541
- unknown
1542
- > = z.object({
1543
- loanDetails: z.lazy(() => LoanDetails$inboundSchema).optional(),
1544
- customers: z.lazy(() => Customers$inboundSchema).optional(),
1545
- asset: z.lazy(() => Asset$inboundSchema).optional(),
1546
- entities: z.lazy(() => Entities$inboundSchema).optional(),
1547
- });
1548
-
1549
- /** @internal */
1550
- export type Relationships$Outbound = {
1551
- loanDetails?: LoanDetails$Outbound | undefined;
1552
- customers?: Customers$Outbound | undefined;
1553
- asset?: Asset$Outbound | undefined;
1554
- entities?: Entities$Outbound | undefined;
112
+ | components.CommercialSecuredLoanApplicationSubmissionPayload$Outbound
113
+ | components.ConsumerSecuredLoanApplicationSubmissionPayload$Outbound;
1555
114
  };
1556
115
 
1557
116
  /** @internal */
1558
- export const Relationships$outboundSchema: z.ZodType<
1559
- Relationships$Outbound,
117
+ export const CreateApplicationRequestBody$outboundSchema: z.ZodType<
118
+ CreateApplicationRequestBody$Outbound,
1560
119
  z.ZodTypeDef,
1561
- Relationships
120
+ CreateApplicationRequestBody
1562
121
  > = z.object({
1563
- loanDetails: z.lazy(() => LoanDetails$outboundSchema).optional(),
1564
- customers: z.lazy(() => Customers$outboundSchema).optional(),
1565
- asset: z.lazy(() => Asset$outboundSchema).optional(),
1566
- entities: z.lazy(() => Entities$outboundSchema).optional(),
122
+ data: z.union([
123
+ components.CommercialSecuredLoanApplicationSubmissionPayload$outboundSchema,
124
+ components.ConsumerSecuredLoanApplicationSubmissionPayload$outboundSchema,
125
+ ]),
1567
126
  });
1568
127
 
1569
128
  /**
1570
129
  * @internal
1571
130
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1572
131
  */
1573
- export namespace Relationships$ {
1574
- /** @deprecated use `Relationships$inboundSchema` instead. */
1575
- export const inboundSchema = Relationships$inboundSchema;
1576
- /** @deprecated use `Relationships$outboundSchema` instead. */
1577
- export const outboundSchema = Relationships$outboundSchema;
1578
- /** @deprecated use `Relationships$Outbound` instead. */
1579
- export type Outbound = Relationships$Outbound;
1580
- }
1581
-
1582
- export function relationshipsToJSON(relationships: Relationships): string {
1583
- return JSON.stringify(Relationships$outboundSchema.parse(relationships));
132
+ export namespace CreateApplicationRequestBody$ {
133
+ /** @deprecated use `CreateApplicationRequestBody$inboundSchema` instead. */
134
+ export const inboundSchema = CreateApplicationRequestBody$inboundSchema;
135
+ /** @deprecated use `CreateApplicationRequestBody$outboundSchema` instead. */
136
+ export const outboundSchema = CreateApplicationRequestBody$outboundSchema;
137
+ /** @deprecated use `CreateApplicationRequestBody$Outbound` instead. */
138
+ export type Outbound = CreateApplicationRequestBody$Outbound;
1584
139
  }
1585
140
 
1586
- export function relationshipsFromJSON(
1587
- jsonString: string,
1588
- ): SafeParseResult<Relationships, SDKValidationError> {
1589
- return safeParse(
1590
- jsonString,
1591
- (x) => Relationships$inboundSchema.parse(JSON.parse(x)),
1592
- `Failed to parse 'Relationships' from JSON`,
141
+ export function createApplicationRequestBodyToJSON(
142
+ createApplicationRequestBody: CreateApplicationRequestBody,
143
+ ): string {
144
+ return JSON.stringify(
145
+ CreateApplicationRequestBody$outboundSchema.parse(
146
+ createApplicationRequestBody,
147
+ ),
1593
148
  );
1594
149
  }
1595
150
 
1596
- /** @internal */
1597
- export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
1598
- .object({
1599
- type: Type$inboundSchema,
1600
- id: z.string(),
1601
- attributes: components.ApplicationAttributes$inboundSchema.optional(),
1602
- relationships: z.lazy(() => Relationships$inboundSchema).optional(),
1603
- links: components.Links$inboundSchema.optional(),
1604
- meta: z.record(z.any()).optional(),
1605
- });
1606
-
1607
- /** @internal */
1608
- export type Data$Outbound = {
1609
- type: string;
1610
- id: string;
1611
- attributes?: components.ApplicationAttributes$Outbound | undefined;
1612
- relationships?: Relationships$Outbound | undefined;
1613
- links?: components.Links$Outbound | undefined;
1614
- meta?: { [k: string]: any } | undefined;
1615
- };
1616
-
1617
- /** @internal */
1618
- export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
1619
- z.object({
1620
- type: Type$outboundSchema,
1621
- id: z.string(),
1622
- attributes: components.ApplicationAttributes$outboundSchema.optional(),
1623
- relationships: z.lazy(() => Relationships$outboundSchema).optional(),
1624
- links: components.Links$outboundSchema.optional(),
1625
- meta: z.record(z.any()).optional(),
1626
- });
1627
-
1628
- /**
1629
- * @internal
1630
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1631
- */
1632
- export namespace Data$ {
1633
- /** @deprecated use `Data$inboundSchema` instead. */
1634
- export const inboundSchema = Data$inboundSchema;
1635
- /** @deprecated use `Data$outboundSchema` instead. */
1636
- export const outboundSchema = Data$outboundSchema;
1637
- /** @deprecated use `Data$Outbound` instead. */
1638
- export type Outbound = Data$Outbound;
1639
- }
1640
-
1641
- export function dataToJSON(data: Data): string {
1642
- return JSON.stringify(Data$outboundSchema.parse(data));
1643
- }
1644
-
1645
- export function dataFromJSON(
151
+ export function createApplicationRequestBodyFromJSON(
1646
152
  jsonString: string,
1647
- ): SafeParseResult<Data, SDKValidationError> {
153
+ ): SafeParseResult<CreateApplicationRequestBody, SDKValidationError> {
1648
154
  return safeParse(
1649
155
  jsonString,
1650
- (x) => Data$inboundSchema.parse(JSON.parse(x)),
1651
- `Failed to parse 'Data' from JSON`,
156
+ (x) => CreateApplicationRequestBody$inboundSchema.parse(JSON.parse(x)),
157
+ `Failed to parse 'CreateApplicationRequestBody' from JSON`,
1652
158
  );
1653
159
  }
1654
160
 
@@ -1697,222 +203,87 @@ export function attributesFromJSON(
1697
203
  }
1698
204
 
1699
205
  /** @internal */
1700
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
1701
- .object({
1702
- type: z.string(),
1703
- id: z.string(),
1704
- });
1705
-
1706
- /** @internal */
1707
- export type Two$Outbound = {
1708
- type: string;
1709
- id: string;
1710
- };
1711
-
1712
- /** @internal */
1713
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
1714
- .object({
1715
- type: z.string(),
1716
- id: z.string(),
1717
- });
1718
-
1719
- /**
1720
- * @internal
1721
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1722
- */
1723
- export namespace Two$ {
1724
- /** @deprecated use `Two$inboundSchema` instead. */
1725
- export const inboundSchema = Two$inboundSchema;
1726
- /** @deprecated use `Two$outboundSchema` instead. */
1727
- export const outboundSchema = Two$outboundSchema;
1728
- /** @deprecated use `Two$Outbound` instead. */
1729
- export type Outbound = Two$Outbound;
1730
- }
1731
-
1732
- export function twoToJSON(two: Two): string {
1733
- return JSON.stringify(Two$outboundSchema.parse(two));
1734
- }
1735
-
1736
- export function twoFromJSON(
1737
- jsonString: string,
1738
- ): SafeParseResult<Two, SDKValidationError> {
1739
- return safeParse(
1740
- jsonString,
1741
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
1742
- `Failed to parse 'Two' from JSON`,
1743
- );
1744
- }
1745
-
1746
- /** @internal */
1747
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
1748
- .object({
1749
- type: z.string(),
1750
- id: z.string(),
1751
- });
1752
-
1753
- /** @internal */
1754
- export type One$Outbound = {
1755
- type: string;
1756
- id: string;
1757
- };
1758
-
1759
- /** @internal */
1760
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
1761
- .object({
1762
- type: z.string(),
1763
- id: z.string(),
1764
- });
1765
-
1766
- /**
1767
- * @internal
1768
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1769
- */
1770
- export namespace One$ {
1771
- /** @deprecated use `One$inboundSchema` instead. */
1772
- export const inboundSchema = One$inboundSchema;
1773
- /** @deprecated use `One$outboundSchema` instead. */
1774
- export const outboundSchema = One$outboundSchema;
1775
- /** @deprecated use `One$Outbound` instead. */
1776
- export type Outbound = One$Outbound;
1777
- }
1778
-
1779
- export function oneToJSON(one: One): string {
1780
- return JSON.stringify(One$outboundSchema.parse(one));
1781
- }
1782
-
1783
- export function oneFromJSON(
1784
- jsonString: string,
1785
- ): SafeParseResult<One, SDKValidationError> {
1786
- return safeParse(
1787
- jsonString,
1788
- (x) => One$inboundSchema.parse(JSON.parse(x)),
1789
- `Failed to parse 'One' from JSON`,
1790
- );
1791
- }
1792
-
1793
- /** @internal */
1794
- export const CreateApplicationData$inboundSchema: z.ZodType<
1795
- CreateApplicationData,
206
+ export const Relationships$inboundSchema: z.ZodType<
207
+ Relationships,
1796
208
  z.ZodTypeDef,
1797
209
  unknown
1798
- > = z.union([
1799
- z.lazy(() => One$inboundSchema),
1800
- z.array(z.lazy(() => Two$inboundSchema)),
1801
- ]);
210
+ > = z.object({});
1802
211
 
1803
212
  /** @internal */
1804
- export type CreateApplicationData$Outbound = One$Outbound | Array<Two$Outbound>;
213
+ export type Relationships$Outbound = {};
1805
214
 
1806
215
  /** @internal */
1807
- export const CreateApplicationData$outboundSchema: z.ZodType<
1808
- CreateApplicationData$Outbound,
216
+ export const Relationships$outboundSchema: z.ZodType<
217
+ Relationships$Outbound,
1809
218
  z.ZodTypeDef,
1810
- CreateApplicationData
1811
- > = z.union([
1812
- z.lazy(() => One$outboundSchema),
1813
- z.array(z.lazy(() => Two$outboundSchema)),
1814
- ]);
219
+ Relationships
220
+ > = z.object({});
1815
221
 
1816
222
  /**
1817
223
  * @internal
1818
224
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1819
225
  */
1820
- export namespace CreateApplicationData$ {
1821
- /** @deprecated use `CreateApplicationData$inboundSchema` instead. */
1822
- export const inboundSchema = CreateApplicationData$inboundSchema;
1823
- /** @deprecated use `CreateApplicationData$outboundSchema` instead. */
1824
- export const outboundSchema = CreateApplicationData$outboundSchema;
1825
- /** @deprecated use `CreateApplicationData$Outbound` instead. */
1826
- export type Outbound = CreateApplicationData$Outbound;
226
+ export namespace Relationships$ {
227
+ /** @deprecated use `Relationships$inboundSchema` instead. */
228
+ export const inboundSchema = Relationships$inboundSchema;
229
+ /** @deprecated use `Relationships$outboundSchema` instead. */
230
+ export const outboundSchema = Relationships$outboundSchema;
231
+ /** @deprecated use `Relationships$Outbound` instead. */
232
+ export type Outbound = Relationships$Outbound;
1827
233
  }
1828
234
 
1829
- export function createApplicationDataToJSON(
1830
- createApplicationData: CreateApplicationData,
1831
- ): string {
1832
- return JSON.stringify(
1833
- CreateApplicationData$outboundSchema.parse(createApplicationData),
1834
- );
235
+ export function relationshipsToJSON(relationships: Relationships): string {
236
+ return JSON.stringify(Relationships$outboundSchema.parse(relationships));
1835
237
  }
1836
238
 
1837
- export function createApplicationDataFromJSON(
239
+ export function relationshipsFromJSON(
1838
240
  jsonString: string,
1839
- ): SafeParseResult<CreateApplicationData, SDKValidationError> {
241
+ ): SafeParseResult<Relationships, SDKValidationError> {
1840
242
  return safeParse(
1841
243
  jsonString,
1842
- (x) => CreateApplicationData$inboundSchema.parse(JSON.parse(x)),
1843
- `Failed to parse 'CreateApplicationData' from JSON`,
244
+ (x) => Relationships$inboundSchema.parse(JSON.parse(x)),
245
+ `Failed to parse 'Relationships' from JSON`,
1844
246
  );
1845
247
  }
1846
248
 
1847
249
  /** @internal */
1848
- export const CreateApplicationRelationships$inboundSchema: z.ZodType<
1849
- CreateApplicationRelationships,
1850
- z.ZodTypeDef,
1851
- unknown
1852
- > = z.object({
1853
- data: z.nullable(
1854
- z.union([
1855
- z.lazy(() => One$inboundSchema),
1856
- z.array(z.lazy(() => Two$inboundSchema)),
1857
- ]),
1858
- ),
1859
- links: components.Links$inboundSchema.optional(),
1860
- meta: z.record(z.any()).optional(),
1861
- });
250
+ export const Links$inboundSchema: z.ZodType<Links, z.ZodTypeDef, unknown> = z
251
+ .object({});
1862
252
 
1863
253
  /** @internal */
1864
- export type CreateApplicationRelationships$Outbound = {
1865
- data: One$Outbound | Array<Two$Outbound> | null;
1866
- links?: components.Links$Outbound | undefined;
1867
- meta?: { [k: string]: any } | undefined;
1868
- };
254
+ export type Links$Outbound = {};
1869
255
 
1870
256
  /** @internal */
1871
- export const CreateApplicationRelationships$outboundSchema: z.ZodType<
1872
- CreateApplicationRelationships$Outbound,
257
+ export const Links$outboundSchema: z.ZodType<
258
+ Links$Outbound,
1873
259
  z.ZodTypeDef,
1874
- CreateApplicationRelationships
1875
- > = z.object({
1876
- data: z.nullable(
1877
- z.union([
1878
- z.lazy(() => One$outboundSchema),
1879
- z.array(z.lazy(() => Two$outboundSchema)),
1880
- ]),
1881
- ),
1882
- links: components.Links$outboundSchema.optional(),
1883
- meta: z.record(z.any()).optional(),
1884
- });
260
+ Links
261
+ > = z.object({});
1885
262
 
1886
263
  /**
1887
264
  * @internal
1888
265
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1889
266
  */
1890
- export namespace CreateApplicationRelationships$ {
1891
- /** @deprecated use `CreateApplicationRelationships$inboundSchema` instead. */
1892
- export const inboundSchema = CreateApplicationRelationships$inboundSchema;
1893
- /** @deprecated use `CreateApplicationRelationships$outboundSchema` instead. */
1894
- export const outboundSchema = CreateApplicationRelationships$outboundSchema;
1895
- /** @deprecated use `CreateApplicationRelationships$Outbound` instead. */
1896
- export type Outbound = CreateApplicationRelationships$Outbound;
267
+ export namespace Links$ {
268
+ /** @deprecated use `Links$inboundSchema` instead. */
269
+ export const inboundSchema = Links$inboundSchema;
270
+ /** @deprecated use `Links$outboundSchema` instead. */
271
+ export const outboundSchema = Links$outboundSchema;
272
+ /** @deprecated use `Links$Outbound` instead. */
273
+ export type Outbound = Links$Outbound;
1897
274
  }
1898
275
 
1899
- export function createApplicationRelationshipsToJSON(
1900
- createApplicationRelationships: CreateApplicationRelationships,
1901
- ): string {
1902
- return JSON.stringify(
1903
- CreateApplicationRelationships$outboundSchema.parse(
1904
- createApplicationRelationships,
1905
- ),
1906
- );
276
+ export function linksToJSON(links: Links): string {
277
+ return JSON.stringify(Links$outboundSchema.parse(links));
1907
278
  }
1908
279
 
1909
- export function createApplicationRelationshipsFromJSON(
280
+ export function linksFromJSON(
1910
281
  jsonString: string,
1911
- ): SafeParseResult<CreateApplicationRelationships, SDKValidationError> {
282
+ ): SafeParseResult<Links, SDKValidationError> {
1912
283
  return safeParse(
1913
284
  jsonString,
1914
- (x) => CreateApplicationRelationships$inboundSchema.parse(JSON.parse(x)),
1915
- `Failed to parse 'CreateApplicationRelationships' from JSON`,
285
+ (x) => Links$inboundSchema.parse(JSON.parse(x)),
286
+ `Failed to parse 'Links' from JSON`,
1916
287
  );
1917
288
  }
1918
289
 
@@ -1922,13 +293,11 @@ export const Included$inboundSchema: z.ZodType<
1922
293
  z.ZodTypeDef,
1923
294
  unknown
1924
295
  > = z.object({
1925
- type: z.string(),
296
+ type: components.ResourceTypes$inboundSchema,
1926
297
  id: z.string(),
1927
298
  attributes: z.lazy(() => Attributes$inboundSchema).optional(),
1928
- relationships: z.record(
1929
- z.lazy(() => CreateApplicationRelationships$inboundSchema),
1930
- ).optional(),
1931
- links: components.Links$inboundSchema.optional(),
299
+ relationships: z.lazy(() => Relationships$inboundSchema),
300
+ links: z.record(z.lazy(() => Links$inboundSchema)).optional(),
1932
301
  meta: z.record(z.any()).optional(),
1933
302
  });
1934
303
 
@@ -1937,10 +306,8 @@ export type Included$Outbound = {
1937
306
  type: string;
1938
307
  id: string;
1939
308
  attributes?: Attributes$Outbound | undefined;
1940
- relationships?:
1941
- | { [k: string]: CreateApplicationRelationships$Outbound }
1942
- | undefined;
1943
- links?: components.Links$Outbound | undefined;
309
+ relationships: Relationships$Outbound;
310
+ links?: { [k: string]: Links$Outbound } | undefined;
1944
311
  meta?: { [k: string]: any } | undefined;
1945
312
  };
1946
313
 
@@ -1950,13 +317,11 @@ export const Included$outboundSchema: z.ZodType<
1950
317
  z.ZodTypeDef,
1951
318
  Included
1952
319
  > = z.object({
1953
- type: z.string(),
320
+ type: components.ResourceTypes$outboundSchema,
1954
321
  id: z.string(),
1955
322
  attributes: z.lazy(() => Attributes$outboundSchema).optional(),
1956
- relationships: z.record(
1957
- z.lazy(() => CreateApplicationRelationships$outboundSchema),
1958
- ).optional(),
1959
- links: components.Links$outboundSchema.optional(),
323
+ relationships: z.lazy(() => Relationships$outboundSchema),
324
+ links: z.record(z.lazy(() => Links$outboundSchema)).optional(),
1960
325
  meta: z.record(z.any()).optional(),
1961
326
  });
1962
327
 
@@ -1993,16 +358,16 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
1993
358
  z.ZodTypeDef,
1994
359
  unknown
1995
360
  > = z.object({
1996
- data: z.lazy(() => Data$inboundSchema),
361
+ data: components.ApplicationResource$inboundSchema,
1997
362
  included: z.array(z.lazy(() => Included$inboundSchema)).optional(),
1998
- links: components.Links$inboundSchema.optional(),
363
+ links: components.LinkObject$inboundSchema.optional(),
1999
364
  });
2000
365
 
2001
366
  /** @internal */
2002
367
  export type CreateApplicationResponseBody$Outbound = {
2003
- data: Data$Outbound;
368
+ data: components.ApplicationResource$Outbound;
2004
369
  included?: Array<Included$Outbound> | undefined;
2005
- links?: components.Links$Outbound | undefined;
370
+ links?: components.LinkObject$Outbound | undefined;
2006
371
  };
2007
372
 
2008
373
  /** @internal */
@@ -2011,9 +376,9 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
2011
376
  z.ZodTypeDef,
2012
377
  CreateApplicationResponseBody
2013
378
  > = z.object({
2014
- data: z.lazy(() => Data$outboundSchema),
379
+ data: components.ApplicationResource$outboundSchema,
2015
380
  included: z.array(z.lazy(() => Included$outboundSchema)).optional(),
2016
- links: components.Links$outboundSchema.optional(),
381
+ links: components.LinkObject$outboundSchema.optional(),
2017
382
  });
2018
383
 
2019
384
  /**