@financeable/aggregation 0.2.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 (394) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +225 -0
  4. package/README.md +967 -0
  5. package/RUNTIMES.md +48 -0
  6. package/core.d.ts +10 -0
  7. package/core.d.ts.map +1 -0
  8. package/core.js +17 -0
  9. package/core.js.map +1 -0
  10. package/docs/sdks/applications/README.md +467 -0
  11. package/docs/sdks/financeable/README.md +5 -0
  12. package/financeable-typescript/.devcontainer/README.md +30 -0
  13. package/financeable-typescript/FUNCTIONS.md +205 -0
  14. package/financeable-typescript/README.md +895 -0
  15. package/financeable-typescript/RUNTIMES.md +22 -0
  16. package/financeable-typescript/docs/sdks/applications/README.md +427 -0
  17. package/financeable-typescript/docs/sdks/financeable/README.md +5 -0
  18. package/financeable-typescript/src/core.ts +13 -0
  19. package/financeable-typescript/src/funcs/applicationsCreate.ts +124 -0
  20. package/financeable-typescript/src/funcs/applicationsGet.ts +128 -0
  21. package/financeable-typescript/src/funcs/applicationsList.ts +126 -0
  22. package/financeable-typescript/src/hooks/hooks.ts +129 -0
  23. package/financeable-typescript/src/hooks/index.ts +6 -0
  24. package/financeable-typescript/src/hooks/types.ts +109 -0
  25. package/financeable-typescript/src/index.ts +7 -0
  26. package/financeable-typescript/src/lib/base64.ts +37 -0
  27. package/financeable-typescript/src/lib/config.ts +59 -0
  28. package/financeable-typescript/src/lib/dlv.ts +53 -0
  29. package/financeable-typescript/src/lib/encodings.ts +449 -0
  30. package/financeable-typescript/src/lib/env.ts +37 -0
  31. package/financeable-typescript/src/lib/files.ts +40 -0
  32. package/financeable-typescript/src/lib/http.ts +323 -0
  33. package/financeable-typescript/src/lib/is-plain-object.ts +43 -0
  34. package/financeable-typescript/src/lib/logger.ts +9 -0
  35. package/financeable-typescript/src/lib/matchers.ts +322 -0
  36. package/financeable-typescript/src/lib/primitives.ts +122 -0
  37. package/financeable-typescript/src/lib/retries.ts +219 -0
  38. package/financeable-typescript/src/lib/schemas.ts +86 -0
  39. package/financeable-typescript/src/lib/sdks.ts +392 -0
  40. package/financeable-typescript/src/lib/security.ts +227 -0
  41. package/financeable-typescript/src/lib/url.ts +33 -0
  42. package/financeable-typescript/src/models/components/addressattributes.ts +148 -0
  43. package/financeable-typescript/src/models/components/apierrorlinks.ts +65 -0
  44. package/financeable-typescript/src/models/components/applicationattributes.ts +128 -0
  45. package/financeable-typescript/src/models/components/applicationattributescreate.ts +90 -0
  46. package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +1000 -0
  47. package/financeable-typescript/src/models/components/applicationstatus.ts +39 -0
  48. package/financeable-typescript/src/models/components/applicationtype.ts +33 -0
  49. package/financeable-typescript/src/models/components/assetattributes.ts +400 -0
  50. package/financeable-typescript/src/models/components/customerattributes.ts +171 -0
  51. package/financeable-typescript/src/models/components/customertitle.ts +35 -0
  52. package/financeable-typescript/src/models/components/errorsource.ts +79 -0
  53. package/financeable-typescript/src/models/components/forbiddenerror.ts +207 -0
  54. package/financeable-typescript/src/models/components/frequencytype.ts +40 -0
  55. package/financeable-typescript/src/models/components/index.ts +20 -0
  56. package/financeable-typescript/src/models/components/links.ts +72 -0
  57. package/financeable-typescript/src/models/components/loandetailsattributes.ts +187 -0
  58. package/financeable-typescript/src/models/components/repaymentstructure.ts +40 -0
  59. package/financeable-typescript/src/models/errors/apierror.ts +27 -0
  60. package/financeable-typescript/src/models/errors/createapplication.ts +76 -0
  61. package/financeable-typescript/src/models/errors/getapplication.ts +76 -0
  62. package/financeable-typescript/src/models/errors/getapplications.ts +76 -0
  63. package/financeable-typescript/src/models/errors/httpclienterrors.ts +62 -0
  64. package/financeable-typescript/src/models/errors/index.ts +10 -0
  65. package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +97 -0
  66. package/financeable-typescript/src/models/operations/createapplication.ts +1649 -0
  67. package/financeable-typescript/src/models/operations/getapplication.ts +1829 -0
  68. package/financeable-typescript/src/models/operations/getapplications.ts +1790 -0
  69. package/financeable-typescript/src/models/operations/index.ts +7 -0
  70. package/financeable-typescript/src/sdk/applications.ts +55 -0
  71. package/financeable-typescript/src/sdk/index.ts +5 -0
  72. package/financeable-typescript/src/sdk/sdk.ts +13 -0
  73. package/financeable-typescript/src/types/blobs.ts +31 -0
  74. package/financeable-typescript/src/types/constdatetime.ts +15 -0
  75. package/financeable-typescript/src/types/enums.ts +16 -0
  76. package/financeable-typescript/src/types/fp.ts +50 -0
  77. package/financeable-typescript/src/types/index.ts +11 -0
  78. package/financeable-typescript/src/types/operations.ts +105 -0
  79. package/financeable-typescript/src/types/rfcdate.ts +54 -0
  80. package/financeable-typescript/src/types/streams.ts +21 -0
  81. package/funcs/applicationsCreate.d.ts +14 -0
  82. package/funcs/applicationsCreate.d.ts.map +1 -0
  83. package/funcs/applicationsCreate.js +105 -0
  84. package/funcs/applicationsCreate.js.map +1 -0
  85. package/funcs/applicationsGet.d.ts +13 -0
  86. package/funcs/applicationsGet.d.ts.map +1 -0
  87. package/funcs/applicationsGet.js +109 -0
  88. package/funcs/applicationsGet.js.map +1 -0
  89. package/funcs/applicationsList.d.ts +13 -0
  90. package/funcs/applicationsList.d.ts.map +1 -0
  91. package/funcs/applicationsList.js +107 -0
  92. package/funcs/applicationsList.js.map +1 -0
  93. package/hooks/hooks.d.ts +24 -0
  94. package/hooks/hooks.d.ts.map +1 -0
  95. package/hooks/hooks.js +84 -0
  96. package/hooks/hooks.js.map +1 -0
  97. package/hooks/index.d.ts +3 -0
  98. package/hooks/index.d.ts.map +1 -0
  99. package/hooks/index.js +22 -0
  100. package/hooks/index.js.map +1 -0
  101. package/hooks/types.d.ts +78 -0
  102. package/hooks/types.d.ts.map +1 -0
  103. package/hooks/types.js +6 -0
  104. package/hooks/types.js.map +1 -0
  105. package/index.d.ts +4 -0
  106. package/index.d.ts.map +1 -0
  107. package/index.js +46 -0
  108. package/index.js.map +1 -0
  109. package/jsr.json +27 -0
  110. package/lib/base64.d.ts +10 -0
  111. package/lib/base64.d.ts.map +1 -0
  112. package/lib/base64.js +71 -0
  113. package/lib/base64.js.map +1 -0
  114. package/lib/config.d.ts +33 -0
  115. package/lib/config.d.ts.map +1 -0
  116. package/lib/config.js +35 -0
  117. package/lib/config.js.map +1 -0
  118. package/lib/dlv.d.ts +14 -0
  119. package/lib/dlv.d.ts.map +1 -0
  120. package/lib/dlv.js +49 -0
  121. package/lib/dlv.js.map +1 -0
  122. package/lib/encodings.d.ts +52 -0
  123. package/lib/encodings.d.ts.map +1 -0
  124. package/lib/encodings.js +368 -0
  125. package/lib/encodings.js.map +1 -0
  126. package/lib/env.d.ts +14 -0
  127. package/lib/env.d.ts.map +1 -0
  128. package/lib/env.js +64 -0
  129. package/lib/env.js.map +1 -0
  130. package/lib/files.d.ts +8 -0
  131. package/lib/files.d.ts.map +1 -0
  132. package/lib/files.js +36 -0
  133. package/lib/files.js.map +1 -0
  134. package/lib/http.d.ts +67 -0
  135. package/lib/http.d.ts.map +1 -0
  136. package/lib/http.js +217 -0
  137. package/lib/http.js.map +1 -0
  138. package/lib/is-plain-object.d.ts +2 -0
  139. package/lib/is-plain-object.d.ts.map +1 -0
  140. package/lib/is-plain-object.js +41 -0
  141. package/lib/is-plain-object.js.map +1 -0
  142. package/lib/logger.d.ts +6 -0
  143. package/lib/logger.d.ts.map +1 -0
  144. package/lib/logger.js +6 -0
  145. package/lib/logger.js.map +1 -0
  146. package/lib/matchers.d.ts +64 -0
  147. package/lib/matchers.d.ts.map +1 -0
  148. package/lib/matchers.js +204 -0
  149. package/lib/matchers.js.map +1 -0
  150. package/lib/primitives.d.ts +23 -0
  151. package/lib/primitives.d.ts.map +1 -0
  152. package/lib/primitives.js +104 -0
  153. package/lib/primitives.js.map +1 -0
  154. package/lib/retries.d.ts +38 -0
  155. package/lib/retries.d.ts.map +1 -0
  156. package/lib/retries.js +153 -0
  157. package/lib/retries.js.map +1 -0
  158. package/lib/schemas.d.ts +19 -0
  159. package/lib/schemas.d.ts.map +1 -0
  160. package/lib/schemas.js +62 -0
  161. package/lib/schemas.js.map +1 -0
  162. package/lib/sdks.d.ts +60 -0
  163. package/lib/sdks.d.ts.map +1 -0
  164. package/lib/sdks.js +280 -0
  165. package/lib/sdks.js.map +1 -0
  166. package/lib/security.d.ts +79 -0
  167. package/lib/security.d.ts.map +1 -0
  168. package/lib/security.js +121 -0
  169. package/lib/security.js.map +1 -0
  170. package/lib/url.d.ts +5 -0
  171. package/lib/url.d.ts.map +1 -0
  172. package/lib/url.js +25 -0
  173. package/lib/url.js.map +1 -0
  174. package/models/components/addressattributes.d.ts +83 -0
  175. package/models/components/addressattributes.d.ts.map +1 -0
  176. package/models/components/addressattributes.js +117 -0
  177. package/models/components/addressattributes.js.map +1 -0
  178. package/models/components/apierrorlinks.d.ts +32 -0
  179. package/models/components/apierrorlinks.d.ts.map +1 -0
  180. package/models/components/apierrorlinks.js +69 -0
  181. package/models/components/apierrorlinks.js.map +1 -0
  182. package/models/components/applicationattributes.d.ts +69 -0
  183. package/models/components/applicationattributes.d.ts.map +1 -0
  184. package/models/components/applicationattributes.js +85 -0
  185. package/models/components/applicationattributes.js.map +1 -0
  186. package/models/components/applicationattributescreate.d.ts +43 -0
  187. package/models/components/applicationattributescreate.d.ts.map +1 -0
  188. package/models/components/applicationattributescreate.js +74 -0
  189. package/models/components/applicationattributescreate.js.map +1 -0
  190. package/models/components/applicationresourcebulksubmission.d.ts +456 -0
  191. package/models/components/applicationresourcebulksubmission.d.ts.map +1 -0
  192. package/models/components/applicationresourcebulksubmission.js +492 -0
  193. package/models/components/applicationresourcebulksubmission.js.map +1 -0
  194. package/models/components/applicationstatus.d.ts +46 -0
  195. package/models/components/applicationstatus.d.ts.map +1 -0
  196. package/models/components/applicationstatus.js +66 -0
  197. package/models/components/applicationstatus.js.map +1 -0
  198. package/models/components/applicationtype.d.ts +28 -0
  199. package/models/components/applicationtype.d.ts.map +1 -0
  200. package/models/components/applicationtype.js +60 -0
  201. package/models/components/applicationtype.js.map +1 -0
  202. package/models/components/assetattributes.d.ts +388 -0
  203. package/models/components/assetattributes.d.ts.map +1 -0
  204. package/models/components/assetattributes.js +244 -0
  205. package/models/components/assetattributes.js.map +1 -0
  206. package/models/components/customerattributes.d.ts +103 -0
  207. package/models/components/customerattributes.d.ts.map +1 -0
  208. package/models/components/customerattributes.js +120 -0
  209. package/models/components/customerattributes.js.map +1 -0
  210. package/models/components/customertitle.d.ts +34 -0
  211. package/models/components/customertitle.d.ts.map +1 -0
  212. package/models/components/customertitle.js +62 -0
  213. package/models/components/customertitle.js.map +1 -0
  214. package/models/components/errorsource.d.ts +42 -0
  215. package/models/components/errorsource.d.ts.map +1 -0
  216. package/models/components/errorsource.js +73 -0
  217. package/models/components/errorsource.js.map +1 -0
  218. package/models/components/forbiddenerror.d.ts +141 -0
  219. package/models/components/forbiddenerror.d.ts.map +1 -0
  220. package/models/components/forbiddenerror.js +158 -0
  221. package/models/components/forbiddenerror.js.map +1 -0
  222. package/models/components/frequencytype.d.ts +37 -0
  223. package/models/components/frequencytype.d.ts.map +1 -0
  224. package/models/components/frequencytype.js +64 -0
  225. package/models/components/frequencytype.js.map +1 -0
  226. package/models/components/index.d.ts +17 -0
  227. package/models/components/index.d.ts.map +1 -0
  228. package/models/components/index.js +36 -0
  229. package/models/components/index.js.map +1 -0
  230. package/models/components/links.d.ts +40 -0
  231. package/models/components/links.d.ts.map +1 -0
  232. package/models/components/links.js +72 -0
  233. package/models/components/links.js.map +1 -0
  234. package/models/components/loandetailsattributes.d.ts +112 -0
  235. package/models/components/loandetailsattributes.d.ts.map +1 -0
  236. package/models/components/loandetailsattributes.js +101 -0
  237. package/models/components/loandetailsattributes.js.map +1 -0
  238. package/models/components/repaymentstructure.d.ts +37 -0
  239. package/models/components/repaymentstructure.d.ts.map +1 -0
  240. package/models/components/repaymentstructure.js +64 -0
  241. package/models/components/repaymentstructure.js.map +1 -0
  242. package/models/errors/apierror.d.ts +8 -0
  243. package/models/errors/apierror.d.ts.map +1 -0
  244. package/models/errors/apierror.js +21 -0
  245. package/models/errors/apierror.js.map +1 -0
  246. package/models/errors/createapplication.d.ts +38 -0
  247. package/models/errors/createapplication.d.ts.map +1 -0
  248. package/models/errors/createapplication.js +81 -0
  249. package/models/errors/createapplication.js.map +1 -0
  250. package/models/errors/getapplication.d.ts +38 -0
  251. package/models/errors/getapplication.d.ts.map +1 -0
  252. package/models/errors/getapplication.js +81 -0
  253. package/models/errors/getapplication.js.map +1 -0
  254. package/models/errors/getapplications.d.ts +38 -0
  255. package/models/errors/getapplications.d.ts.map +1 -0
  256. package/models/errors/getapplications.js +81 -0
  257. package/models/errors/getapplications.js.map +1 -0
  258. package/models/errors/httpclienterrors.d.ts +44 -0
  259. package/models/errors/httpclienterrors.d.ts.map +1 -0
  260. package/models/errors/httpclienterrors.js +78 -0
  261. package/models/errors/httpclienterrors.js.map +1 -0
  262. package/models/errors/index.d.ts +7 -0
  263. package/models/errors/index.d.ts.map +1 -0
  264. package/models/errors/index.js +26 -0
  265. package/models/errors/index.js.map +1 -0
  266. package/models/errors/sdkvalidationerror.d.ts +20 -0
  267. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  268. package/models/errors/sdkvalidationerror.js +115 -0
  269. package/models/errors/sdkvalidationerror.js.map +1 -0
  270. package/models/operations/createapplication.d.ts +780 -0
  271. package/models/operations/createapplication.d.ts.map +1 -0
  272. package/models/operations/createapplication.js +834 -0
  273. package/models/operations/createapplication.js.map +1 -0
  274. package/models/operations/getapplication.d.ts +805 -0
  275. package/models/operations/getapplication.d.ts.map +1 -0
  276. package/models/operations/getapplication.js +861 -0
  277. package/models/operations/getapplication.js.map +1 -0
  278. package/models/operations/getapplications.d.ts +805 -0
  279. package/models/operations/getapplications.d.ts.map +1 -0
  280. package/models/operations/getapplications.js +864 -0
  281. package/models/operations/getapplications.js.map +1 -0
  282. package/models/operations/index.d.ts +4 -0
  283. package/models/operations/index.d.ts.map +1 -0
  284. package/models/operations/index.js +23 -0
  285. package/models/operations/index.js.map +1 -0
  286. package/package.json +30 -0
  287. package/sdk/applications.d.ts +18 -0
  288. package/sdk/applications.d.ts.map +1 -0
  289. package/sdk/applications.js +33 -0
  290. package/sdk/applications.js.map +1 -0
  291. package/sdk/index.d.ts +2 -0
  292. package/sdk/index.d.ts.map +1 -0
  293. package/sdk/index.js +21 -0
  294. package/sdk/index.js.map +1 -0
  295. package/sdk/sdk.d.ts +7 -0
  296. package/sdk/sdk.d.ts.map +1 -0
  297. package/sdk/sdk.js +15 -0
  298. package/sdk/sdk.js.map +1 -0
  299. package/src/core.ts +13 -0
  300. package/src/funcs/applicationsCreate.ts +128 -0
  301. package/src/funcs/applicationsGet.ts +132 -0
  302. package/src/funcs/applicationsList.ts +130 -0
  303. package/src/hooks/hooks.ts +129 -0
  304. package/src/hooks/index.ts +6 -0
  305. package/src/hooks/types.ts +110 -0
  306. package/src/index.ts +7 -0
  307. package/src/lib/base64.ts +37 -0
  308. package/src/lib/config.ts +59 -0
  309. package/src/lib/dlv.ts +53 -0
  310. package/src/lib/encodings.ts +483 -0
  311. package/src/lib/env.ts +37 -0
  312. package/src/lib/files.ts +40 -0
  313. package/src/lib/http.ts +323 -0
  314. package/src/lib/is-plain-object.ts +43 -0
  315. package/src/lib/logger.ts +9 -0
  316. package/src/lib/matchers.ts +322 -0
  317. package/src/lib/primitives.ts +136 -0
  318. package/src/lib/retries.ts +218 -0
  319. package/src/lib/schemas.ts +91 -0
  320. package/src/lib/sdks.ts +400 -0
  321. package/src/lib/security.ts +227 -0
  322. package/src/lib/url.ts +33 -0
  323. package/src/models/components/addressattributes.ts +148 -0
  324. package/src/models/components/apierrorlinks.ts +65 -0
  325. package/src/models/components/applicationattributes.ts +128 -0
  326. package/src/models/components/applicationattributescreate.ts +90 -0
  327. package/src/models/components/applicationresourcebulksubmission.ts +1000 -0
  328. package/src/models/components/applicationstatus.ts +39 -0
  329. package/src/models/components/applicationtype.ts +33 -0
  330. package/src/models/components/assetattributes.ts +400 -0
  331. package/src/models/components/customerattributes.ts +171 -0
  332. package/src/models/components/customertitle.ts +35 -0
  333. package/src/models/components/errorsource.ts +79 -0
  334. package/src/models/components/forbiddenerror.ts +207 -0
  335. package/src/models/components/frequencytype.ts +40 -0
  336. package/src/models/components/index.ts +20 -0
  337. package/src/models/components/links.ts +72 -0
  338. package/src/models/components/loandetailsattributes.ts +187 -0
  339. package/src/models/components/repaymentstructure.ts +40 -0
  340. package/src/models/errors/apierror.ts +27 -0
  341. package/src/models/errors/createapplication.ts +76 -0
  342. package/src/models/errors/getapplication.ts +76 -0
  343. package/src/models/errors/getapplications.ts +76 -0
  344. package/src/models/errors/httpclienterrors.ts +62 -0
  345. package/src/models/errors/index.ts +10 -0
  346. package/src/models/errors/sdkvalidationerror.ts +97 -0
  347. package/src/models/operations/createapplication.ts +1649 -0
  348. package/src/models/operations/getapplication.ts +1829 -0
  349. package/src/models/operations/getapplications.ts +1790 -0
  350. package/src/models/operations/index.ts +7 -0
  351. package/src/sdk/applications.ts +55 -0
  352. package/src/sdk/index.ts +5 -0
  353. package/src/sdk/sdk.ts +13 -0
  354. package/src/types/blobs.ts +31 -0
  355. package/src/types/constdatetime.ts +15 -0
  356. package/src/types/enums.ts +16 -0
  357. package/src/types/fp.ts +50 -0
  358. package/src/types/index.ts +11 -0
  359. package/src/types/operations.ts +105 -0
  360. package/src/types/rfcdate.ts +54 -0
  361. package/src/types/streams.ts +21 -0
  362. package/tsconfig.json +41 -0
  363. package/types/blobs.d.ts +4 -0
  364. package/types/blobs.d.ts.map +1 -0
  365. package/types/blobs.js +62 -0
  366. package/types/blobs.js.map +1 -0
  367. package/types/constdatetime.d.ts +3 -0
  368. package/types/constdatetime.d.ts.map +1 -0
  369. package/types/constdatetime.js +46 -0
  370. package/types/constdatetime.js.map +1 -0
  371. package/types/enums.d.ts +12 -0
  372. package/types/enums.d.ts.map +1 -0
  373. package/types/enums.js +10 -0
  374. package/types/enums.js.map +1 -0
  375. package/types/fp.d.ts +31 -0
  376. package/types/fp.d.ts.map +1 -0
  377. package/types/fp.js +37 -0
  378. package/types/fp.js.map +1 -0
  379. package/types/index.d.ts +8 -0
  380. package/types/index.d.ts.map +1 -0
  381. package/types/index.js +16 -0
  382. package/types/index.js.map +1 -0
  383. package/types/operations.d.ts +27 -0
  384. package/types/operations.d.ts.map +1 -0
  385. package/types/operations.js +83 -0
  386. package/types/operations.js.map +1 -0
  387. package/types/rfcdate.d.ts +21 -0
  388. package/types/rfcdate.d.ts.map +1 -0
  389. package/types/rfcdate.js +46 -0
  390. package/types/rfcdate.js.map +1 -0
  391. package/types/streams.d.ts +2 -0
  392. package/types/streams.d.ts.map +1 -0
  393. package/types/streams.js +18 -0
  394. package/types/streams.js.map +1 -0
@@ -0,0 +1,1790 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetApplicationsRequest = {
13
+ humanId?: string | undefined;
14
+ };
15
+
16
+ export const GetApplicationsType = {
17
+ Applications: "applications",
18
+ } as const;
19
+ export type GetApplicationsType = ClosedEnum<typeof GetApplicationsType>;
20
+
21
+ export const GetApplicationsDataApplicationsType = {
22
+ LoanDetails: "loan-details",
23
+ } as const;
24
+ export type GetApplicationsDataApplicationsType = ClosedEnum<
25
+ typeof GetApplicationsDataApplicationsType
26
+ >;
27
+
28
+ export type GetApplicationsData2 = {
29
+ type: GetApplicationsDataApplicationsType;
30
+ id: string;
31
+ };
32
+
33
+ export const GetApplicationsDataType = {
34
+ LoanDetails: "loan-details",
35
+ } as const;
36
+ export type GetApplicationsDataType = ClosedEnum<
37
+ typeof GetApplicationsDataType
38
+ >;
39
+
40
+ export type GetApplicationsData1 = {
41
+ type: GetApplicationsDataType;
42
+ id: string;
43
+ };
44
+
45
+ export type GetApplicationsApplicationsResponse200Data =
46
+ | GetApplicationsData1
47
+ | Array<GetApplicationsData2>;
48
+
49
+ export type GetApplicationsLoanDetails = {
50
+ data: GetApplicationsData1 | Array<GetApplicationsData2> | null;
51
+ /**
52
+ * Standard link object
53
+ */
54
+ links?: components.Links | undefined;
55
+ meta?: { [k: string]: any } | undefined;
56
+ };
57
+
58
+ export const GetApplicationsDataApplicationsResponse200Type = {
59
+ Customers: "customers",
60
+ } as const;
61
+ export type GetApplicationsDataApplicationsResponse200Type = ClosedEnum<
62
+ typeof GetApplicationsDataApplicationsResponse200Type
63
+ >;
64
+
65
+ export type GetApplicationsDataApplications2 = {
66
+ type: GetApplicationsDataApplicationsResponse200Type;
67
+ id: string;
68
+ };
69
+
70
+ export const GetApplicationsDataApplicationsResponseType = {
71
+ Customers: "customers",
72
+ } as const;
73
+ export type GetApplicationsDataApplicationsResponseType = ClosedEnum<
74
+ typeof GetApplicationsDataApplicationsResponseType
75
+ >;
76
+
77
+ export type GetApplicationsDataApplications1 = {
78
+ type: GetApplicationsDataApplicationsResponseType;
79
+ id: string;
80
+ };
81
+
82
+ export type GetApplicationsApplicationsResponse200ApplicationJSONData =
83
+ | GetApplicationsDataApplications1
84
+ | Array<GetApplicationsDataApplications2>;
85
+
86
+ export type GetApplicationsCustomers = {
87
+ data:
88
+ | GetApplicationsDataApplications1
89
+ | Array<GetApplicationsDataApplications2>
90
+ | null;
91
+ /**
92
+ * Standard link object
93
+ */
94
+ links?: components.Links | undefined;
95
+ meta?: { [k: string]: any } | undefined;
96
+ };
97
+
98
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType =
99
+ {
100
+ Asset: "asset",
101
+ } as const;
102
+ export type GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType =
103
+ ClosedEnum<
104
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType
105
+ >;
106
+
107
+ export type GetApplicationsDataApplicationsResponse2 = {
108
+ type:
109
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType;
110
+ id: string;
111
+ };
112
+
113
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONType = {
114
+ Asset: "asset",
115
+ } as const;
116
+ export type GetApplicationsDataApplicationsResponse200ApplicationJSONType =
117
+ ClosedEnum<
118
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONType
119
+ >;
120
+
121
+ export type GetApplicationsDataApplicationsResponse1 = {
122
+ type: GetApplicationsDataApplicationsResponse200ApplicationJSONType;
123
+ id: string;
124
+ };
125
+
126
+ export type GetApplicationsApplicationsResponseData =
127
+ | GetApplicationsDataApplicationsResponse1
128
+ | Array<GetApplicationsDataApplicationsResponse2>;
129
+
130
+ export type GetApplicationsAsset = {
131
+ data:
132
+ | GetApplicationsDataApplicationsResponse1
133
+ | Array<GetApplicationsDataApplicationsResponse2>
134
+ | null;
135
+ /**
136
+ * Standard link object
137
+ */
138
+ links?: components.Links | undefined;
139
+ meta?: { [k: string]: any } | undefined;
140
+ };
141
+
142
+ export type GetApplicationsRelationships = {
143
+ loanDetails?: GetApplicationsLoanDetails | undefined;
144
+ customers?: GetApplicationsCustomers | undefined;
145
+ asset?: GetApplicationsAsset | undefined;
146
+ };
147
+
148
+ export type GetApplicationsData = {
149
+ type: GetApplicationsType;
150
+ id: string;
151
+ /**
152
+ * Application resource attributes
153
+ */
154
+ attributes?: components.ApplicationAttributes | undefined;
155
+ relationships?: GetApplicationsRelationships | undefined;
156
+ /**
157
+ * Standard link object
158
+ */
159
+ links?: components.Links | undefined;
160
+ meta?: { [k: string]: any } | undefined;
161
+ };
162
+
163
+ export type GetApplicationsAttributes = {};
164
+
165
+ export type Data2 = {
166
+ type: string;
167
+ id: string;
168
+ };
169
+
170
+ export type Data1 = {
171
+ type: string;
172
+ id: string;
173
+ };
174
+
175
+ export type GetApplicationsApplicationsData = Data1 | Array<Data2>;
176
+
177
+ export type GetApplicationsApplicationsRelationships = {
178
+ data: Data1 | Array<Data2> | null;
179
+ /**
180
+ * Standard link object
181
+ */
182
+ links?: components.Links | undefined;
183
+ meta?: { [k: string]: any } | undefined;
184
+ };
185
+
186
+ export type GetApplicationsIncluded = {
187
+ type: string;
188
+ id: string;
189
+ attributes?: GetApplicationsAttributes | undefined;
190
+ relationships?:
191
+ | { [k: string]: GetApplicationsApplicationsRelationships }
192
+ | undefined;
193
+ /**
194
+ * Standard link object
195
+ */
196
+ links?: components.Links | undefined;
197
+ meta?: { [k: string]: any } | undefined;
198
+ };
199
+
200
+ /**
201
+ * The request has succeeded.
202
+ */
203
+ export type GetApplicationsResponseBody = {
204
+ data: GetApplicationsData;
205
+ included?: Array<GetApplicationsIncluded> | undefined;
206
+ /**
207
+ * Standard link object
208
+ */
209
+ links?: components.Links | undefined;
210
+ };
211
+
212
+ /** @internal */
213
+ export const GetApplicationsRequest$inboundSchema: z.ZodType<
214
+ GetApplicationsRequest,
215
+ z.ZodTypeDef,
216
+ unknown
217
+ > = z.object({
218
+ humanId: z.string().optional(),
219
+ });
220
+
221
+ /** @internal */
222
+ export type GetApplicationsRequest$Outbound = {
223
+ humanId?: string | undefined;
224
+ };
225
+
226
+ /** @internal */
227
+ export const GetApplicationsRequest$outboundSchema: z.ZodType<
228
+ GetApplicationsRequest$Outbound,
229
+ z.ZodTypeDef,
230
+ GetApplicationsRequest
231
+ > = z.object({
232
+ humanId: z.string().optional(),
233
+ });
234
+
235
+ /**
236
+ * @internal
237
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
238
+ */
239
+ export namespace GetApplicationsRequest$ {
240
+ /** @deprecated use `GetApplicationsRequest$inboundSchema` instead. */
241
+ export const inboundSchema = GetApplicationsRequest$inboundSchema;
242
+ /** @deprecated use `GetApplicationsRequest$outboundSchema` instead. */
243
+ export const outboundSchema = GetApplicationsRequest$outboundSchema;
244
+ /** @deprecated use `GetApplicationsRequest$Outbound` instead. */
245
+ export type Outbound = GetApplicationsRequest$Outbound;
246
+ }
247
+
248
+ export function getApplicationsRequestToJSON(
249
+ getApplicationsRequest: GetApplicationsRequest,
250
+ ): string {
251
+ return JSON.stringify(
252
+ GetApplicationsRequest$outboundSchema.parse(getApplicationsRequest),
253
+ );
254
+ }
255
+
256
+ export function getApplicationsRequestFromJSON(
257
+ jsonString: string,
258
+ ): SafeParseResult<GetApplicationsRequest, SDKValidationError> {
259
+ return safeParse(
260
+ jsonString,
261
+ (x) => GetApplicationsRequest$inboundSchema.parse(JSON.parse(x)),
262
+ `Failed to parse 'GetApplicationsRequest' from JSON`,
263
+ );
264
+ }
265
+
266
+ /** @internal */
267
+ export const GetApplicationsType$inboundSchema: z.ZodNativeEnum<
268
+ typeof GetApplicationsType
269
+ > = z.nativeEnum(GetApplicationsType);
270
+
271
+ /** @internal */
272
+ export const GetApplicationsType$outboundSchema: z.ZodNativeEnum<
273
+ typeof GetApplicationsType
274
+ > = GetApplicationsType$inboundSchema;
275
+
276
+ /**
277
+ * @internal
278
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
279
+ */
280
+ export namespace GetApplicationsType$ {
281
+ /** @deprecated use `GetApplicationsType$inboundSchema` instead. */
282
+ export const inboundSchema = GetApplicationsType$inboundSchema;
283
+ /** @deprecated use `GetApplicationsType$outboundSchema` instead. */
284
+ export const outboundSchema = GetApplicationsType$outboundSchema;
285
+ }
286
+
287
+ /** @internal */
288
+ export const GetApplicationsDataApplicationsType$inboundSchema: z.ZodNativeEnum<
289
+ typeof GetApplicationsDataApplicationsType
290
+ > = z.nativeEnum(GetApplicationsDataApplicationsType);
291
+
292
+ /** @internal */
293
+ export const GetApplicationsDataApplicationsType$outboundSchema:
294
+ z.ZodNativeEnum<typeof GetApplicationsDataApplicationsType> =
295
+ GetApplicationsDataApplicationsType$inboundSchema;
296
+
297
+ /**
298
+ * @internal
299
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
300
+ */
301
+ export namespace GetApplicationsDataApplicationsType$ {
302
+ /** @deprecated use `GetApplicationsDataApplicationsType$inboundSchema` instead. */
303
+ export const inboundSchema =
304
+ GetApplicationsDataApplicationsType$inboundSchema;
305
+ /** @deprecated use `GetApplicationsDataApplicationsType$outboundSchema` instead. */
306
+ export const outboundSchema =
307
+ GetApplicationsDataApplicationsType$outboundSchema;
308
+ }
309
+
310
+ /** @internal */
311
+ export const GetApplicationsData2$inboundSchema: z.ZodType<
312
+ GetApplicationsData2,
313
+ z.ZodTypeDef,
314
+ unknown
315
+ > = z.object({
316
+ type: GetApplicationsDataApplicationsType$inboundSchema,
317
+ id: z.string(),
318
+ });
319
+
320
+ /** @internal */
321
+ export type GetApplicationsData2$Outbound = {
322
+ type: string;
323
+ id: string;
324
+ };
325
+
326
+ /** @internal */
327
+ export const GetApplicationsData2$outboundSchema: z.ZodType<
328
+ GetApplicationsData2$Outbound,
329
+ z.ZodTypeDef,
330
+ GetApplicationsData2
331
+ > = z.object({
332
+ type: GetApplicationsDataApplicationsType$outboundSchema,
333
+ id: z.string(),
334
+ });
335
+
336
+ /**
337
+ * @internal
338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
339
+ */
340
+ export namespace GetApplicationsData2$ {
341
+ /** @deprecated use `GetApplicationsData2$inboundSchema` instead. */
342
+ export const inboundSchema = GetApplicationsData2$inboundSchema;
343
+ /** @deprecated use `GetApplicationsData2$outboundSchema` instead. */
344
+ export const outboundSchema = GetApplicationsData2$outboundSchema;
345
+ /** @deprecated use `GetApplicationsData2$Outbound` instead. */
346
+ export type Outbound = GetApplicationsData2$Outbound;
347
+ }
348
+
349
+ export function getApplicationsData2ToJSON(
350
+ getApplicationsData2: GetApplicationsData2,
351
+ ): string {
352
+ return JSON.stringify(
353
+ GetApplicationsData2$outboundSchema.parse(getApplicationsData2),
354
+ );
355
+ }
356
+
357
+ export function getApplicationsData2FromJSON(
358
+ jsonString: string,
359
+ ): SafeParseResult<GetApplicationsData2, SDKValidationError> {
360
+ return safeParse(
361
+ jsonString,
362
+ (x) => GetApplicationsData2$inboundSchema.parse(JSON.parse(x)),
363
+ `Failed to parse 'GetApplicationsData2' from JSON`,
364
+ );
365
+ }
366
+
367
+ /** @internal */
368
+ export const GetApplicationsDataType$inboundSchema: z.ZodNativeEnum<
369
+ typeof GetApplicationsDataType
370
+ > = z.nativeEnum(GetApplicationsDataType);
371
+
372
+ /** @internal */
373
+ export const GetApplicationsDataType$outboundSchema: z.ZodNativeEnum<
374
+ typeof GetApplicationsDataType
375
+ > = GetApplicationsDataType$inboundSchema;
376
+
377
+ /**
378
+ * @internal
379
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
380
+ */
381
+ export namespace GetApplicationsDataType$ {
382
+ /** @deprecated use `GetApplicationsDataType$inboundSchema` instead. */
383
+ export const inboundSchema = GetApplicationsDataType$inboundSchema;
384
+ /** @deprecated use `GetApplicationsDataType$outboundSchema` instead. */
385
+ export const outboundSchema = GetApplicationsDataType$outboundSchema;
386
+ }
387
+
388
+ /** @internal */
389
+ export const GetApplicationsData1$inboundSchema: z.ZodType<
390
+ GetApplicationsData1,
391
+ z.ZodTypeDef,
392
+ unknown
393
+ > = z.object({
394
+ type: GetApplicationsDataType$inboundSchema,
395
+ id: z.string(),
396
+ });
397
+
398
+ /** @internal */
399
+ export type GetApplicationsData1$Outbound = {
400
+ type: string;
401
+ id: string;
402
+ };
403
+
404
+ /** @internal */
405
+ export const GetApplicationsData1$outboundSchema: z.ZodType<
406
+ GetApplicationsData1$Outbound,
407
+ z.ZodTypeDef,
408
+ GetApplicationsData1
409
+ > = z.object({
410
+ type: GetApplicationsDataType$outboundSchema,
411
+ id: z.string(),
412
+ });
413
+
414
+ /**
415
+ * @internal
416
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
417
+ */
418
+ export namespace GetApplicationsData1$ {
419
+ /** @deprecated use `GetApplicationsData1$inboundSchema` instead. */
420
+ export const inboundSchema = GetApplicationsData1$inboundSchema;
421
+ /** @deprecated use `GetApplicationsData1$outboundSchema` instead. */
422
+ export const outboundSchema = GetApplicationsData1$outboundSchema;
423
+ /** @deprecated use `GetApplicationsData1$Outbound` instead. */
424
+ export type Outbound = GetApplicationsData1$Outbound;
425
+ }
426
+
427
+ export function getApplicationsData1ToJSON(
428
+ getApplicationsData1: GetApplicationsData1,
429
+ ): string {
430
+ return JSON.stringify(
431
+ GetApplicationsData1$outboundSchema.parse(getApplicationsData1),
432
+ );
433
+ }
434
+
435
+ export function getApplicationsData1FromJSON(
436
+ jsonString: string,
437
+ ): SafeParseResult<GetApplicationsData1, SDKValidationError> {
438
+ return safeParse(
439
+ jsonString,
440
+ (x) => GetApplicationsData1$inboundSchema.parse(JSON.parse(x)),
441
+ `Failed to parse 'GetApplicationsData1' from JSON`,
442
+ );
443
+ }
444
+
445
+ /** @internal */
446
+ export const GetApplicationsApplicationsResponse200Data$inboundSchema:
447
+ z.ZodType<GetApplicationsApplicationsResponse200Data, z.ZodTypeDef, unknown> =
448
+ z.union([
449
+ z.lazy(() => GetApplicationsData1$inboundSchema),
450
+ z.array(z.lazy(() => GetApplicationsData2$inboundSchema)),
451
+ ]);
452
+
453
+ /** @internal */
454
+ export type GetApplicationsApplicationsResponse200Data$Outbound =
455
+ | GetApplicationsData1$Outbound
456
+ | Array<GetApplicationsData2$Outbound>;
457
+
458
+ /** @internal */
459
+ export const GetApplicationsApplicationsResponse200Data$outboundSchema:
460
+ z.ZodType<
461
+ GetApplicationsApplicationsResponse200Data$Outbound,
462
+ z.ZodTypeDef,
463
+ GetApplicationsApplicationsResponse200Data
464
+ > = z.union([
465
+ z.lazy(() => GetApplicationsData1$outboundSchema),
466
+ z.array(z.lazy(() => GetApplicationsData2$outboundSchema)),
467
+ ]);
468
+
469
+ /**
470
+ * @internal
471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
472
+ */
473
+ export namespace GetApplicationsApplicationsResponse200Data$ {
474
+ /** @deprecated use `GetApplicationsApplicationsResponse200Data$inboundSchema` instead. */
475
+ export const inboundSchema =
476
+ GetApplicationsApplicationsResponse200Data$inboundSchema;
477
+ /** @deprecated use `GetApplicationsApplicationsResponse200Data$outboundSchema` instead. */
478
+ export const outboundSchema =
479
+ GetApplicationsApplicationsResponse200Data$outboundSchema;
480
+ /** @deprecated use `GetApplicationsApplicationsResponse200Data$Outbound` instead. */
481
+ export type Outbound = GetApplicationsApplicationsResponse200Data$Outbound;
482
+ }
483
+
484
+ export function getApplicationsApplicationsResponse200DataToJSON(
485
+ getApplicationsApplicationsResponse200Data:
486
+ GetApplicationsApplicationsResponse200Data,
487
+ ): string {
488
+ return JSON.stringify(
489
+ GetApplicationsApplicationsResponse200Data$outboundSchema.parse(
490
+ getApplicationsApplicationsResponse200Data,
491
+ ),
492
+ );
493
+ }
494
+
495
+ export function getApplicationsApplicationsResponse200DataFromJSON(
496
+ jsonString: string,
497
+ ): SafeParseResult<
498
+ GetApplicationsApplicationsResponse200Data,
499
+ SDKValidationError
500
+ > {
501
+ return safeParse(
502
+ jsonString,
503
+ (x) =>
504
+ GetApplicationsApplicationsResponse200Data$inboundSchema.parse(
505
+ JSON.parse(x),
506
+ ),
507
+ `Failed to parse 'GetApplicationsApplicationsResponse200Data' from JSON`,
508
+ );
509
+ }
510
+
511
+ /** @internal */
512
+ export const GetApplicationsLoanDetails$inboundSchema: z.ZodType<
513
+ GetApplicationsLoanDetails,
514
+ z.ZodTypeDef,
515
+ unknown
516
+ > = z.object({
517
+ data: z.nullable(
518
+ z.union([
519
+ z.lazy(() => GetApplicationsData1$inboundSchema),
520
+ z.array(z.lazy(() => GetApplicationsData2$inboundSchema)),
521
+ ]),
522
+ ),
523
+ links: components.Links$inboundSchema.optional(),
524
+ meta: z.record(z.any()).optional(),
525
+ });
526
+
527
+ /** @internal */
528
+ export type GetApplicationsLoanDetails$Outbound = {
529
+ data:
530
+ | GetApplicationsData1$Outbound
531
+ | Array<GetApplicationsData2$Outbound>
532
+ | null;
533
+ links?: components.Links$Outbound | undefined;
534
+ meta?: { [k: string]: any } | undefined;
535
+ };
536
+
537
+ /** @internal */
538
+ export const GetApplicationsLoanDetails$outboundSchema: z.ZodType<
539
+ GetApplicationsLoanDetails$Outbound,
540
+ z.ZodTypeDef,
541
+ GetApplicationsLoanDetails
542
+ > = z.object({
543
+ data: z.nullable(
544
+ z.union([
545
+ z.lazy(() => GetApplicationsData1$outboundSchema),
546
+ z.array(z.lazy(() => GetApplicationsData2$outboundSchema)),
547
+ ]),
548
+ ),
549
+ links: components.Links$outboundSchema.optional(),
550
+ meta: z.record(z.any()).optional(),
551
+ });
552
+
553
+ /**
554
+ * @internal
555
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
556
+ */
557
+ export namespace GetApplicationsLoanDetails$ {
558
+ /** @deprecated use `GetApplicationsLoanDetails$inboundSchema` instead. */
559
+ export const inboundSchema = GetApplicationsLoanDetails$inboundSchema;
560
+ /** @deprecated use `GetApplicationsLoanDetails$outboundSchema` instead. */
561
+ export const outboundSchema = GetApplicationsLoanDetails$outboundSchema;
562
+ /** @deprecated use `GetApplicationsLoanDetails$Outbound` instead. */
563
+ export type Outbound = GetApplicationsLoanDetails$Outbound;
564
+ }
565
+
566
+ export function getApplicationsLoanDetailsToJSON(
567
+ getApplicationsLoanDetails: GetApplicationsLoanDetails,
568
+ ): string {
569
+ return JSON.stringify(
570
+ GetApplicationsLoanDetails$outboundSchema.parse(getApplicationsLoanDetails),
571
+ );
572
+ }
573
+
574
+ export function getApplicationsLoanDetailsFromJSON(
575
+ jsonString: string,
576
+ ): SafeParseResult<GetApplicationsLoanDetails, SDKValidationError> {
577
+ return safeParse(
578
+ jsonString,
579
+ (x) => GetApplicationsLoanDetails$inboundSchema.parse(JSON.parse(x)),
580
+ `Failed to parse 'GetApplicationsLoanDetails' from JSON`,
581
+ );
582
+ }
583
+
584
+ /** @internal */
585
+ export const GetApplicationsDataApplicationsResponse200Type$inboundSchema:
586
+ z.ZodNativeEnum<typeof GetApplicationsDataApplicationsResponse200Type> = z
587
+ .nativeEnum(GetApplicationsDataApplicationsResponse200Type);
588
+
589
+ /** @internal */
590
+ export const GetApplicationsDataApplicationsResponse200Type$outboundSchema:
591
+ z.ZodNativeEnum<typeof GetApplicationsDataApplicationsResponse200Type> =
592
+ GetApplicationsDataApplicationsResponse200Type$inboundSchema;
593
+
594
+ /**
595
+ * @internal
596
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
597
+ */
598
+ export namespace GetApplicationsDataApplicationsResponse200Type$ {
599
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200Type$inboundSchema` instead. */
600
+ export const inboundSchema =
601
+ GetApplicationsDataApplicationsResponse200Type$inboundSchema;
602
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200Type$outboundSchema` instead. */
603
+ export const outboundSchema =
604
+ GetApplicationsDataApplicationsResponse200Type$outboundSchema;
605
+ }
606
+
607
+ /** @internal */
608
+ export const GetApplicationsDataApplications2$inboundSchema: z.ZodType<
609
+ GetApplicationsDataApplications2,
610
+ z.ZodTypeDef,
611
+ unknown
612
+ > = z.object({
613
+ type: GetApplicationsDataApplicationsResponse200Type$inboundSchema,
614
+ id: z.string(),
615
+ });
616
+
617
+ /** @internal */
618
+ export type GetApplicationsDataApplications2$Outbound = {
619
+ type: string;
620
+ id: string;
621
+ };
622
+
623
+ /** @internal */
624
+ export const GetApplicationsDataApplications2$outboundSchema: z.ZodType<
625
+ GetApplicationsDataApplications2$Outbound,
626
+ z.ZodTypeDef,
627
+ GetApplicationsDataApplications2
628
+ > = z.object({
629
+ type: GetApplicationsDataApplicationsResponse200Type$outboundSchema,
630
+ id: z.string(),
631
+ });
632
+
633
+ /**
634
+ * @internal
635
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
636
+ */
637
+ export namespace GetApplicationsDataApplications2$ {
638
+ /** @deprecated use `GetApplicationsDataApplications2$inboundSchema` instead. */
639
+ export const inboundSchema = GetApplicationsDataApplications2$inboundSchema;
640
+ /** @deprecated use `GetApplicationsDataApplications2$outboundSchema` instead. */
641
+ export const outboundSchema = GetApplicationsDataApplications2$outboundSchema;
642
+ /** @deprecated use `GetApplicationsDataApplications2$Outbound` instead. */
643
+ export type Outbound = GetApplicationsDataApplications2$Outbound;
644
+ }
645
+
646
+ export function getApplicationsDataApplications2ToJSON(
647
+ getApplicationsDataApplications2: GetApplicationsDataApplications2,
648
+ ): string {
649
+ return JSON.stringify(
650
+ GetApplicationsDataApplications2$outboundSchema.parse(
651
+ getApplicationsDataApplications2,
652
+ ),
653
+ );
654
+ }
655
+
656
+ export function getApplicationsDataApplications2FromJSON(
657
+ jsonString: string,
658
+ ): SafeParseResult<GetApplicationsDataApplications2, SDKValidationError> {
659
+ return safeParse(
660
+ jsonString,
661
+ (x) => GetApplicationsDataApplications2$inboundSchema.parse(JSON.parse(x)),
662
+ `Failed to parse 'GetApplicationsDataApplications2' from JSON`,
663
+ );
664
+ }
665
+
666
+ /** @internal */
667
+ export const GetApplicationsDataApplicationsResponseType$inboundSchema:
668
+ z.ZodNativeEnum<typeof GetApplicationsDataApplicationsResponseType> = z
669
+ .nativeEnum(GetApplicationsDataApplicationsResponseType);
670
+
671
+ /** @internal */
672
+ export const GetApplicationsDataApplicationsResponseType$outboundSchema:
673
+ z.ZodNativeEnum<typeof GetApplicationsDataApplicationsResponseType> =
674
+ GetApplicationsDataApplicationsResponseType$inboundSchema;
675
+
676
+ /**
677
+ * @internal
678
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
679
+ */
680
+ export namespace GetApplicationsDataApplicationsResponseType$ {
681
+ /** @deprecated use `GetApplicationsDataApplicationsResponseType$inboundSchema` instead. */
682
+ export const inboundSchema =
683
+ GetApplicationsDataApplicationsResponseType$inboundSchema;
684
+ /** @deprecated use `GetApplicationsDataApplicationsResponseType$outboundSchema` instead. */
685
+ export const outboundSchema =
686
+ GetApplicationsDataApplicationsResponseType$outboundSchema;
687
+ }
688
+
689
+ /** @internal */
690
+ export const GetApplicationsDataApplications1$inboundSchema: z.ZodType<
691
+ GetApplicationsDataApplications1,
692
+ z.ZodTypeDef,
693
+ unknown
694
+ > = z.object({
695
+ type: GetApplicationsDataApplicationsResponseType$inboundSchema,
696
+ id: z.string(),
697
+ });
698
+
699
+ /** @internal */
700
+ export type GetApplicationsDataApplications1$Outbound = {
701
+ type: string;
702
+ id: string;
703
+ };
704
+
705
+ /** @internal */
706
+ export const GetApplicationsDataApplications1$outboundSchema: z.ZodType<
707
+ GetApplicationsDataApplications1$Outbound,
708
+ z.ZodTypeDef,
709
+ GetApplicationsDataApplications1
710
+ > = z.object({
711
+ type: GetApplicationsDataApplicationsResponseType$outboundSchema,
712
+ id: z.string(),
713
+ });
714
+
715
+ /**
716
+ * @internal
717
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
718
+ */
719
+ export namespace GetApplicationsDataApplications1$ {
720
+ /** @deprecated use `GetApplicationsDataApplications1$inboundSchema` instead. */
721
+ export const inboundSchema = GetApplicationsDataApplications1$inboundSchema;
722
+ /** @deprecated use `GetApplicationsDataApplications1$outboundSchema` instead. */
723
+ export const outboundSchema = GetApplicationsDataApplications1$outboundSchema;
724
+ /** @deprecated use `GetApplicationsDataApplications1$Outbound` instead. */
725
+ export type Outbound = GetApplicationsDataApplications1$Outbound;
726
+ }
727
+
728
+ export function getApplicationsDataApplications1ToJSON(
729
+ getApplicationsDataApplications1: GetApplicationsDataApplications1,
730
+ ): string {
731
+ return JSON.stringify(
732
+ GetApplicationsDataApplications1$outboundSchema.parse(
733
+ getApplicationsDataApplications1,
734
+ ),
735
+ );
736
+ }
737
+
738
+ export function getApplicationsDataApplications1FromJSON(
739
+ jsonString: string,
740
+ ): SafeParseResult<GetApplicationsDataApplications1, SDKValidationError> {
741
+ return safeParse(
742
+ jsonString,
743
+ (x) => GetApplicationsDataApplications1$inboundSchema.parse(JSON.parse(x)),
744
+ `Failed to parse 'GetApplicationsDataApplications1' from JSON`,
745
+ );
746
+ }
747
+
748
+ /** @internal */
749
+ export const GetApplicationsApplicationsResponse200ApplicationJSONData$inboundSchema:
750
+ z.ZodType<
751
+ GetApplicationsApplicationsResponse200ApplicationJSONData,
752
+ z.ZodTypeDef,
753
+ unknown
754
+ > = z.union([
755
+ z.lazy(() => GetApplicationsDataApplications1$inboundSchema),
756
+ z.array(z.lazy(() => GetApplicationsDataApplications2$inboundSchema)),
757
+ ]);
758
+
759
+ /** @internal */
760
+ export type GetApplicationsApplicationsResponse200ApplicationJSONData$Outbound =
761
+ | GetApplicationsDataApplications1$Outbound
762
+ | Array<GetApplicationsDataApplications2$Outbound>;
763
+
764
+ /** @internal */
765
+ export const GetApplicationsApplicationsResponse200ApplicationJSONData$outboundSchema:
766
+ z.ZodType<
767
+ GetApplicationsApplicationsResponse200ApplicationJSONData$Outbound,
768
+ z.ZodTypeDef,
769
+ GetApplicationsApplicationsResponse200ApplicationJSONData
770
+ > = z.union([
771
+ z.lazy(() => GetApplicationsDataApplications1$outboundSchema),
772
+ z.array(z.lazy(() => GetApplicationsDataApplications2$outboundSchema)),
773
+ ]);
774
+
775
+ /**
776
+ * @internal
777
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
778
+ */
779
+ export namespace GetApplicationsApplicationsResponse200ApplicationJSONData$ {
780
+ /** @deprecated use `GetApplicationsApplicationsResponse200ApplicationJSONData$inboundSchema` instead. */
781
+ export const inboundSchema =
782
+ GetApplicationsApplicationsResponse200ApplicationJSONData$inboundSchema;
783
+ /** @deprecated use `GetApplicationsApplicationsResponse200ApplicationJSONData$outboundSchema` instead. */
784
+ export const outboundSchema =
785
+ GetApplicationsApplicationsResponse200ApplicationJSONData$outboundSchema;
786
+ /** @deprecated use `GetApplicationsApplicationsResponse200ApplicationJSONData$Outbound` instead. */
787
+ export type Outbound =
788
+ GetApplicationsApplicationsResponse200ApplicationJSONData$Outbound;
789
+ }
790
+
791
+ export function getApplicationsApplicationsResponse200ApplicationJSONDataToJSON(
792
+ getApplicationsApplicationsResponse200ApplicationJSONData:
793
+ GetApplicationsApplicationsResponse200ApplicationJSONData,
794
+ ): string {
795
+ return JSON.stringify(
796
+ GetApplicationsApplicationsResponse200ApplicationJSONData$outboundSchema
797
+ .parse(getApplicationsApplicationsResponse200ApplicationJSONData),
798
+ );
799
+ }
800
+
801
+ export function getApplicationsApplicationsResponse200ApplicationJSONDataFromJSON(
802
+ jsonString: string,
803
+ ): SafeParseResult<
804
+ GetApplicationsApplicationsResponse200ApplicationJSONData,
805
+ SDKValidationError
806
+ > {
807
+ return safeParse(
808
+ jsonString,
809
+ (x) =>
810
+ GetApplicationsApplicationsResponse200ApplicationJSONData$inboundSchema
811
+ .parse(JSON.parse(x)),
812
+ `Failed to parse 'GetApplicationsApplicationsResponse200ApplicationJSONData' from JSON`,
813
+ );
814
+ }
815
+
816
+ /** @internal */
817
+ export const GetApplicationsCustomers$inboundSchema: z.ZodType<
818
+ GetApplicationsCustomers,
819
+ z.ZodTypeDef,
820
+ unknown
821
+ > = z.object({
822
+ data: z.nullable(
823
+ z.union([
824
+ z.lazy(() => GetApplicationsDataApplications1$inboundSchema),
825
+ z.array(z.lazy(() => GetApplicationsDataApplications2$inboundSchema)),
826
+ ]),
827
+ ),
828
+ links: components.Links$inboundSchema.optional(),
829
+ meta: z.record(z.any()).optional(),
830
+ });
831
+
832
+ /** @internal */
833
+ export type GetApplicationsCustomers$Outbound = {
834
+ data:
835
+ | GetApplicationsDataApplications1$Outbound
836
+ | Array<GetApplicationsDataApplications2$Outbound>
837
+ | null;
838
+ links?: components.Links$Outbound | undefined;
839
+ meta?: { [k: string]: any } | undefined;
840
+ };
841
+
842
+ /** @internal */
843
+ export const GetApplicationsCustomers$outboundSchema: z.ZodType<
844
+ GetApplicationsCustomers$Outbound,
845
+ z.ZodTypeDef,
846
+ GetApplicationsCustomers
847
+ > = z.object({
848
+ data: z.nullable(
849
+ z.union([
850
+ z.lazy(() => GetApplicationsDataApplications1$outboundSchema),
851
+ z.array(z.lazy(() => GetApplicationsDataApplications2$outboundSchema)),
852
+ ]),
853
+ ),
854
+ links: components.Links$outboundSchema.optional(),
855
+ meta: z.record(z.any()).optional(),
856
+ });
857
+
858
+ /**
859
+ * @internal
860
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
861
+ */
862
+ export namespace GetApplicationsCustomers$ {
863
+ /** @deprecated use `GetApplicationsCustomers$inboundSchema` instead. */
864
+ export const inboundSchema = GetApplicationsCustomers$inboundSchema;
865
+ /** @deprecated use `GetApplicationsCustomers$outboundSchema` instead. */
866
+ export const outboundSchema = GetApplicationsCustomers$outboundSchema;
867
+ /** @deprecated use `GetApplicationsCustomers$Outbound` instead. */
868
+ export type Outbound = GetApplicationsCustomers$Outbound;
869
+ }
870
+
871
+ export function getApplicationsCustomersToJSON(
872
+ getApplicationsCustomers: GetApplicationsCustomers,
873
+ ): string {
874
+ return JSON.stringify(
875
+ GetApplicationsCustomers$outboundSchema.parse(getApplicationsCustomers),
876
+ );
877
+ }
878
+
879
+ export function getApplicationsCustomersFromJSON(
880
+ jsonString: string,
881
+ ): SafeParseResult<GetApplicationsCustomers, SDKValidationError> {
882
+ return safeParse(
883
+ jsonString,
884
+ (x) => GetApplicationsCustomers$inboundSchema.parse(JSON.parse(x)),
885
+ `Failed to parse 'GetApplicationsCustomers' from JSON`,
886
+ );
887
+ }
888
+
889
+ /** @internal */
890
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema:
891
+ z.ZodNativeEnum<
892
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType
893
+ > = z.nativeEnum(
894
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType,
895
+ );
896
+
897
+ /** @internal */
898
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema:
899
+ z.ZodNativeEnum<
900
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType
901
+ > =
902
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema;
903
+
904
+ /**
905
+ * @internal
906
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
907
+ */
908
+ export namespace GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$ {
909
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
910
+ export const inboundSchema =
911
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema;
912
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
913
+ export const outboundSchema =
914
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema;
915
+ }
916
+
917
+ /** @internal */
918
+ export const GetApplicationsDataApplicationsResponse2$inboundSchema: z.ZodType<
919
+ GetApplicationsDataApplicationsResponse2,
920
+ z.ZodTypeDef,
921
+ unknown
922
+ > = z.object({
923
+ type:
924
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema,
925
+ id: z.string(),
926
+ });
927
+
928
+ /** @internal */
929
+ export type GetApplicationsDataApplicationsResponse2$Outbound = {
930
+ type: string;
931
+ id: string;
932
+ };
933
+
934
+ /** @internal */
935
+ export const GetApplicationsDataApplicationsResponse2$outboundSchema: z.ZodType<
936
+ GetApplicationsDataApplicationsResponse2$Outbound,
937
+ z.ZodTypeDef,
938
+ GetApplicationsDataApplicationsResponse2
939
+ > = z.object({
940
+ type:
941
+ GetApplicationsDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema,
942
+ id: z.string(),
943
+ });
944
+
945
+ /**
946
+ * @internal
947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
948
+ */
949
+ export namespace GetApplicationsDataApplicationsResponse2$ {
950
+ /** @deprecated use `GetApplicationsDataApplicationsResponse2$inboundSchema` instead. */
951
+ export const inboundSchema =
952
+ GetApplicationsDataApplicationsResponse2$inboundSchema;
953
+ /** @deprecated use `GetApplicationsDataApplicationsResponse2$outboundSchema` instead. */
954
+ export const outboundSchema =
955
+ GetApplicationsDataApplicationsResponse2$outboundSchema;
956
+ /** @deprecated use `GetApplicationsDataApplicationsResponse2$Outbound` instead. */
957
+ export type Outbound = GetApplicationsDataApplicationsResponse2$Outbound;
958
+ }
959
+
960
+ export function getApplicationsDataApplicationsResponse2ToJSON(
961
+ getApplicationsDataApplicationsResponse2:
962
+ GetApplicationsDataApplicationsResponse2,
963
+ ): string {
964
+ return JSON.stringify(
965
+ GetApplicationsDataApplicationsResponse2$outboundSchema.parse(
966
+ getApplicationsDataApplicationsResponse2,
967
+ ),
968
+ );
969
+ }
970
+
971
+ export function getApplicationsDataApplicationsResponse2FromJSON(
972
+ jsonString: string,
973
+ ): SafeParseResult<
974
+ GetApplicationsDataApplicationsResponse2,
975
+ SDKValidationError
976
+ > {
977
+ return safeParse(
978
+ jsonString,
979
+ (x) =>
980
+ GetApplicationsDataApplicationsResponse2$inboundSchema.parse(
981
+ JSON.parse(x),
982
+ ),
983
+ `Failed to parse 'GetApplicationsDataApplicationsResponse2' from JSON`,
984
+ );
985
+ }
986
+
987
+ /** @internal */
988
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONType$inboundSchema:
989
+ z.ZodNativeEnum<
990
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONType
991
+ > = z.nativeEnum(
992
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType,
993
+ );
994
+
995
+ /** @internal */
996
+ export const GetApplicationsDataApplicationsResponse200ApplicationJSONType$outboundSchema:
997
+ z.ZodNativeEnum<
998
+ typeof GetApplicationsDataApplicationsResponse200ApplicationJSONType
999
+ > =
1000
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType$inboundSchema;
1001
+
1002
+ /**
1003
+ * @internal
1004
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1005
+ */
1006
+ export namespace GetApplicationsDataApplicationsResponse200ApplicationJSONType$ {
1007
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200ApplicationJSONType$inboundSchema` instead. */
1008
+ export const inboundSchema =
1009
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType$inboundSchema;
1010
+ /** @deprecated use `GetApplicationsDataApplicationsResponse200ApplicationJSONType$outboundSchema` instead. */
1011
+ export const outboundSchema =
1012
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType$outboundSchema;
1013
+ }
1014
+
1015
+ /** @internal */
1016
+ export const GetApplicationsDataApplicationsResponse1$inboundSchema: z.ZodType<
1017
+ GetApplicationsDataApplicationsResponse1,
1018
+ z.ZodTypeDef,
1019
+ unknown
1020
+ > = z.object({
1021
+ type:
1022
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType$inboundSchema,
1023
+ id: z.string(),
1024
+ });
1025
+
1026
+ /** @internal */
1027
+ export type GetApplicationsDataApplicationsResponse1$Outbound = {
1028
+ type: string;
1029
+ id: string;
1030
+ };
1031
+
1032
+ /** @internal */
1033
+ export const GetApplicationsDataApplicationsResponse1$outboundSchema: z.ZodType<
1034
+ GetApplicationsDataApplicationsResponse1$Outbound,
1035
+ z.ZodTypeDef,
1036
+ GetApplicationsDataApplicationsResponse1
1037
+ > = z.object({
1038
+ type:
1039
+ GetApplicationsDataApplicationsResponse200ApplicationJSONType$outboundSchema,
1040
+ id: z.string(),
1041
+ });
1042
+
1043
+ /**
1044
+ * @internal
1045
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1046
+ */
1047
+ export namespace GetApplicationsDataApplicationsResponse1$ {
1048
+ /** @deprecated use `GetApplicationsDataApplicationsResponse1$inboundSchema` instead. */
1049
+ export const inboundSchema =
1050
+ GetApplicationsDataApplicationsResponse1$inboundSchema;
1051
+ /** @deprecated use `GetApplicationsDataApplicationsResponse1$outboundSchema` instead. */
1052
+ export const outboundSchema =
1053
+ GetApplicationsDataApplicationsResponse1$outboundSchema;
1054
+ /** @deprecated use `GetApplicationsDataApplicationsResponse1$Outbound` instead. */
1055
+ export type Outbound = GetApplicationsDataApplicationsResponse1$Outbound;
1056
+ }
1057
+
1058
+ export function getApplicationsDataApplicationsResponse1ToJSON(
1059
+ getApplicationsDataApplicationsResponse1:
1060
+ GetApplicationsDataApplicationsResponse1,
1061
+ ): string {
1062
+ return JSON.stringify(
1063
+ GetApplicationsDataApplicationsResponse1$outboundSchema.parse(
1064
+ getApplicationsDataApplicationsResponse1,
1065
+ ),
1066
+ );
1067
+ }
1068
+
1069
+ export function getApplicationsDataApplicationsResponse1FromJSON(
1070
+ jsonString: string,
1071
+ ): SafeParseResult<
1072
+ GetApplicationsDataApplicationsResponse1,
1073
+ SDKValidationError
1074
+ > {
1075
+ return safeParse(
1076
+ jsonString,
1077
+ (x) =>
1078
+ GetApplicationsDataApplicationsResponse1$inboundSchema.parse(
1079
+ JSON.parse(x),
1080
+ ),
1081
+ `Failed to parse 'GetApplicationsDataApplicationsResponse1' from JSON`,
1082
+ );
1083
+ }
1084
+
1085
+ /** @internal */
1086
+ export const GetApplicationsApplicationsResponseData$inboundSchema: z.ZodType<
1087
+ GetApplicationsApplicationsResponseData,
1088
+ z.ZodTypeDef,
1089
+ unknown
1090
+ > = z.union([
1091
+ z.lazy(() => GetApplicationsDataApplicationsResponse1$inboundSchema),
1092
+ z.array(z.lazy(() => GetApplicationsDataApplicationsResponse2$inboundSchema)),
1093
+ ]);
1094
+
1095
+ /** @internal */
1096
+ export type GetApplicationsApplicationsResponseData$Outbound =
1097
+ | GetApplicationsDataApplicationsResponse1$Outbound
1098
+ | Array<GetApplicationsDataApplicationsResponse2$Outbound>;
1099
+
1100
+ /** @internal */
1101
+ export const GetApplicationsApplicationsResponseData$outboundSchema: z.ZodType<
1102
+ GetApplicationsApplicationsResponseData$Outbound,
1103
+ z.ZodTypeDef,
1104
+ GetApplicationsApplicationsResponseData
1105
+ > = z.union([
1106
+ z.lazy(() => GetApplicationsDataApplicationsResponse1$outboundSchema),
1107
+ z.array(
1108
+ z.lazy(() => GetApplicationsDataApplicationsResponse2$outboundSchema),
1109
+ ),
1110
+ ]);
1111
+
1112
+ /**
1113
+ * @internal
1114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1115
+ */
1116
+ export namespace GetApplicationsApplicationsResponseData$ {
1117
+ /** @deprecated use `GetApplicationsApplicationsResponseData$inboundSchema` instead. */
1118
+ export const inboundSchema =
1119
+ GetApplicationsApplicationsResponseData$inboundSchema;
1120
+ /** @deprecated use `GetApplicationsApplicationsResponseData$outboundSchema` instead. */
1121
+ export const outboundSchema =
1122
+ GetApplicationsApplicationsResponseData$outboundSchema;
1123
+ /** @deprecated use `GetApplicationsApplicationsResponseData$Outbound` instead. */
1124
+ export type Outbound = GetApplicationsApplicationsResponseData$Outbound;
1125
+ }
1126
+
1127
+ export function getApplicationsApplicationsResponseDataToJSON(
1128
+ getApplicationsApplicationsResponseData:
1129
+ GetApplicationsApplicationsResponseData,
1130
+ ): string {
1131
+ return JSON.stringify(
1132
+ GetApplicationsApplicationsResponseData$outboundSchema.parse(
1133
+ getApplicationsApplicationsResponseData,
1134
+ ),
1135
+ );
1136
+ }
1137
+
1138
+ export function getApplicationsApplicationsResponseDataFromJSON(
1139
+ jsonString: string,
1140
+ ): SafeParseResult<
1141
+ GetApplicationsApplicationsResponseData,
1142
+ SDKValidationError
1143
+ > {
1144
+ return safeParse(
1145
+ jsonString,
1146
+ (x) =>
1147
+ GetApplicationsApplicationsResponseData$inboundSchema.parse(
1148
+ JSON.parse(x),
1149
+ ),
1150
+ `Failed to parse 'GetApplicationsApplicationsResponseData' from JSON`,
1151
+ );
1152
+ }
1153
+
1154
+ /** @internal */
1155
+ export const GetApplicationsAsset$inboundSchema: z.ZodType<
1156
+ GetApplicationsAsset,
1157
+ z.ZodTypeDef,
1158
+ unknown
1159
+ > = z.object({
1160
+ data: z.nullable(
1161
+ z.union([
1162
+ z.lazy(() => GetApplicationsDataApplicationsResponse1$inboundSchema),
1163
+ z.array(z.lazy(() =>
1164
+ GetApplicationsDataApplicationsResponse2$inboundSchema
1165
+ )),
1166
+ ]),
1167
+ ),
1168
+ links: components.Links$inboundSchema.optional(),
1169
+ meta: z.record(z.any()).optional(),
1170
+ });
1171
+
1172
+ /** @internal */
1173
+ export type GetApplicationsAsset$Outbound = {
1174
+ data:
1175
+ | GetApplicationsDataApplicationsResponse1$Outbound
1176
+ | Array<GetApplicationsDataApplicationsResponse2$Outbound>
1177
+ | null;
1178
+ links?: components.Links$Outbound | undefined;
1179
+ meta?: { [k: string]: any } | undefined;
1180
+ };
1181
+
1182
+ /** @internal */
1183
+ export const GetApplicationsAsset$outboundSchema: z.ZodType<
1184
+ GetApplicationsAsset$Outbound,
1185
+ z.ZodTypeDef,
1186
+ GetApplicationsAsset
1187
+ > = z.object({
1188
+ data: z.nullable(
1189
+ z.union([
1190
+ z.lazy(() => GetApplicationsDataApplicationsResponse1$outboundSchema),
1191
+ z.array(z.lazy(() =>
1192
+ GetApplicationsDataApplicationsResponse2$outboundSchema
1193
+ )),
1194
+ ]),
1195
+ ),
1196
+ links: components.Links$outboundSchema.optional(),
1197
+ meta: z.record(z.any()).optional(),
1198
+ });
1199
+
1200
+ /**
1201
+ * @internal
1202
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1203
+ */
1204
+ export namespace GetApplicationsAsset$ {
1205
+ /** @deprecated use `GetApplicationsAsset$inboundSchema` instead. */
1206
+ export const inboundSchema = GetApplicationsAsset$inboundSchema;
1207
+ /** @deprecated use `GetApplicationsAsset$outboundSchema` instead. */
1208
+ export const outboundSchema = GetApplicationsAsset$outboundSchema;
1209
+ /** @deprecated use `GetApplicationsAsset$Outbound` instead. */
1210
+ export type Outbound = GetApplicationsAsset$Outbound;
1211
+ }
1212
+
1213
+ export function getApplicationsAssetToJSON(
1214
+ getApplicationsAsset: GetApplicationsAsset,
1215
+ ): string {
1216
+ return JSON.stringify(
1217
+ GetApplicationsAsset$outboundSchema.parse(getApplicationsAsset),
1218
+ );
1219
+ }
1220
+
1221
+ export function getApplicationsAssetFromJSON(
1222
+ jsonString: string,
1223
+ ): SafeParseResult<GetApplicationsAsset, SDKValidationError> {
1224
+ return safeParse(
1225
+ jsonString,
1226
+ (x) => GetApplicationsAsset$inboundSchema.parse(JSON.parse(x)),
1227
+ `Failed to parse 'GetApplicationsAsset' from JSON`,
1228
+ );
1229
+ }
1230
+
1231
+ /** @internal */
1232
+ export const GetApplicationsRelationships$inboundSchema: z.ZodType<
1233
+ GetApplicationsRelationships,
1234
+ z.ZodTypeDef,
1235
+ unknown
1236
+ > = z.object({
1237
+ loanDetails: z.lazy(() => GetApplicationsLoanDetails$inboundSchema)
1238
+ .optional(),
1239
+ customers: z.lazy(() => GetApplicationsCustomers$inboundSchema).optional(),
1240
+ asset: z.lazy(() => GetApplicationsAsset$inboundSchema).optional(),
1241
+ });
1242
+
1243
+ /** @internal */
1244
+ export type GetApplicationsRelationships$Outbound = {
1245
+ loanDetails?: GetApplicationsLoanDetails$Outbound | undefined;
1246
+ customers?: GetApplicationsCustomers$Outbound | undefined;
1247
+ asset?: GetApplicationsAsset$Outbound | undefined;
1248
+ };
1249
+
1250
+ /** @internal */
1251
+ export const GetApplicationsRelationships$outboundSchema: z.ZodType<
1252
+ GetApplicationsRelationships$Outbound,
1253
+ z.ZodTypeDef,
1254
+ GetApplicationsRelationships
1255
+ > = z.object({
1256
+ loanDetails: z.lazy(() => GetApplicationsLoanDetails$outboundSchema)
1257
+ .optional(),
1258
+ customers: z.lazy(() => GetApplicationsCustomers$outboundSchema).optional(),
1259
+ asset: z.lazy(() => GetApplicationsAsset$outboundSchema).optional(),
1260
+ });
1261
+
1262
+ /**
1263
+ * @internal
1264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1265
+ */
1266
+ export namespace GetApplicationsRelationships$ {
1267
+ /** @deprecated use `GetApplicationsRelationships$inboundSchema` instead. */
1268
+ export const inboundSchema = GetApplicationsRelationships$inboundSchema;
1269
+ /** @deprecated use `GetApplicationsRelationships$outboundSchema` instead. */
1270
+ export const outboundSchema = GetApplicationsRelationships$outboundSchema;
1271
+ /** @deprecated use `GetApplicationsRelationships$Outbound` instead. */
1272
+ export type Outbound = GetApplicationsRelationships$Outbound;
1273
+ }
1274
+
1275
+ export function getApplicationsRelationshipsToJSON(
1276
+ getApplicationsRelationships: GetApplicationsRelationships,
1277
+ ): string {
1278
+ return JSON.stringify(
1279
+ GetApplicationsRelationships$outboundSchema.parse(
1280
+ getApplicationsRelationships,
1281
+ ),
1282
+ );
1283
+ }
1284
+
1285
+ export function getApplicationsRelationshipsFromJSON(
1286
+ jsonString: string,
1287
+ ): SafeParseResult<GetApplicationsRelationships, SDKValidationError> {
1288
+ return safeParse(
1289
+ jsonString,
1290
+ (x) => GetApplicationsRelationships$inboundSchema.parse(JSON.parse(x)),
1291
+ `Failed to parse 'GetApplicationsRelationships' from JSON`,
1292
+ );
1293
+ }
1294
+
1295
+ /** @internal */
1296
+ export const GetApplicationsData$inboundSchema: z.ZodType<
1297
+ GetApplicationsData,
1298
+ z.ZodTypeDef,
1299
+ unknown
1300
+ > = z.object({
1301
+ type: GetApplicationsType$inboundSchema,
1302
+ id: z.string(),
1303
+ attributes: components.ApplicationAttributes$inboundSchema.optional(),
1304
+ relationships: z.lazy(() => GetApplicationsRelationships$inboundSchema)
1305
+ .optional(),
1306
+ links: components.Links$inboundSchema.optional(),
1307
+ meta: z.record(z.any()).optional(),
1308
+ });
1309
+
1310
+ /** @internal */
1311
+ export type GetApplicationsData$Outbound = {
1312
+ type: string;
1313
+ id: string;
1314
+ attributes?: components.ApplicationAttributes$Outbound | undefined;
1315
+ relationships?: GetApplicationsRelationships$Outbound | undefined;
1316
+ links?: components.Links$Outbound | undefined;
1317
+ meta?: { [k: string]: any } | undefined;
1318
+ };
1319
+
1320
+ /** @internal */
1321
+ export const GetApplicationsData$outboundSchema: z.ZodType<
1322
+ GetApplicationsData$Outbound,
1323
+ z.ZodTypeDef,
1324
+ GetApplicationsData
1325
+ > = z.object({
1326
+ type: GetApplicationsType$outboundSchema,
1327
+ id: z.string(),
1328
+ attributes: components.ApplicationAttributes$outboundSchema.optional(),
1329
+ relationships: z.lazy(() => GetApplicationsRelationships$outboundSchema)
1330
+ .optional(),
1331
+ links: components.Links$outboundSchema.optional(),
1332
+ meta: z.record(z.any()).optional(),
1333
+ });
1334
+
1335
+ /**
1336
+ * @internal
1337
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1338
+ */
1339
+ export namespace GetApplicationsData$ {
1340
+ /** @deprecated use `GetApplicationsData$inboundSchema` instead. */
1341
+ export const inboundSchema = GetApplicationsData$inboundSchema;
1342
+ /** @deprecated use `GetApplicationsData$outboundSchema` instead. */
1343
+ export const outboundSchema = GetApplicationsData$outboundSchema;
1344
+ /** @deprecated use `GetApplicationsData$Outbound` instead. */
1345
+ export type Outbound = GetApplicationsData$Outbound;
1346
+ }
1347
+
1348
+ export function getApplicationsDataToJSON(
1349
+ getApplicationsData: GetApplicationsData,
1350
+ ): string {
1351
+ return JSON.stringify(
1352
+ GetApplicationsData$outboundSchema.parse(getApplicationsData),
1353
+ );
1354
+ }
1355
+
1356
+ export function getApplicationsDataFromJSON(
1357
+ jsonString: string,
1358
+ ): SafeParseResult<GetApplicationsData, SDKValidationError> {
1359
+ return safeParse(
1360
+ jsonString,
1361
+ (x) => GetApplicationsData$inboundSchema.parse(JSON.parse(x)),
1362
+ `Failed to parse 'GetApplicationsData' from JSON`,
1363
+ );
1364
+ }
1365
+
1366
+ /** @internal */
1367
+ export const GetApplicationsAttributes$inboundSchema: z.ZodType<
1368
+ GetApplicationsAttributes,
1369
+ z.ZodTypeDef,
1370
+ unknown
1371
+ > = z.object({});
1372
+
1373
+ /** @internal */
1374
+ export type GetApplicationsAttributes$Outbound = {};
1375
+
1376
+ /** @internal */
1377
+ export const GetApplicationsAttributes$outboundSchema: z.ZodType<
1378
+ GetApplicationsAttributes$Outbound,
1379
+ z.ZodTypeDef,
1380
+ GetApplicationsAttributes
1381
+ > = z.object({});
1382
+
1383
+ /**
1384
+ * @internal
1385
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1386
+ */
1387
+ export namespace GetApplicationsAttributes$ {
1388
+ /** @deprecated use `GetApplicationsAttributes$inboundSchema` instead. */
1389
+ export const inboundSchema = GetApplicationsAttributes$inboundSchema;
1390
+ /** @deprecated use `GetApplicationsAttributes$outboundSchema` instead. */
1391
+ export const outboundSchema = GetApplicationsAttributes$outboundSchema;
1392
+ /** @deprecated use `GetApplicationsAttributes$Outbound` instead. */
1393
+ export type Outbound = GetApplicationsAttributes$Outbound;
1394
+ }
1395
+
1396
+ export function getApplicationsAttributesToJSON(
1397
+ getApplicationsAttributes: GetApplicationsAttributes,
1398
+ ): string {
1399
+ return JSON.stringify(
1400
+ GetApplicationsAttributes$outboundSchema.parse(getApplicationsAttributes),
1401
+ );
1402
+ }
1403
+
1404
+ export function getApplicationsAttributesFromJSON(
1405
+ jsonString: string,
1406
+ ): SafeParseResult<GetApplicationsAttributes, SDKValidationError> {
1407
+ return safeParse(
1408
+ jsonString,
1409
+ (x) => GetApplicationsAttributes$inboundSchema.parse(JSON.parse(x)),
1410
+ `Failed to parse 'GetApplicationsAttributes' from JSON`,
1411
+ );
1412
+ }
1413
+
1414
+ /** @internal */
1415
+ export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1416
+ .object({
1417
+ type: z.string(),
1418
+ id: z.string(),
1419
+ });
1420
+
1421
+ /** @internal */
1422
+ export type Data2$Outbound = {
1423
+ type: string;
1424
+ id: string;
1425
+ };
1426
+
1427
+ /** @internal */
1428
+ export const Data2$outboundSchema: z.ZodType<
1429
+ Data2$Outbound,
1430
+ z.ZodTypeDef,
1431
+ Data2
1432
+ > = z.object({
1433
+ type: z.string(),
1434
+ id: z.string(),
1435
+ });
1436
+
1437
+ /**
1438
+ * @internal
1439
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1440
+ */
1441
+ export namespace Data2$ {
1442
+ /** @deprecated use `Data2$inboundSchema` instead. */
1443
+ export const inboundSchema = Data2$inboundSchema;
1444
+ /** @deprecated use `Data2$outboundSchema` instead. */
1445
+ export const outboundSchema = Data2$outboundSchema;
1446
+ /** @deprecated use `Data2$Outbound` instead. */
1447
+ export type Outbound = Data2$Outbound;
1448
+ }
1449
+
1450
+ export function data2ToJSON(data2: Data2): string {
1451
+ return JSON.stringify(Data2$outboundSchema.parse(data2));
1452
+ }
1453
+
1454
+ export function data2FromJSON(
1455
+ jsonString: string,
1456
+ ): SafeParseResult<Data2, SDKValidationError> {
1457
+ return safeParse(
1458
+ jsonString,
1459
+ (x) => Data2$inboundSchema.parse(JSON.parse(x)),
1460
+ `Failed to parse 'Data2' from JSON`,
1461
+ );
1462
+ }
1463
+
1464
+ /** @internal */
1465
+ export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
1466
+ .object({
1467
+ type: z.string(),
1468
+ id: z.string(),
1469
+ });
1470
+
1471
+ /** @internal */
1472
+ export type Data1$Outbound = {
1473
+ type: string;
1474
+ id: string;
1475
+ };
1476
+
1477
+ /** @internal */
1478
+ export const Data1$outboundSchema: z.ZodType<
1479
+ Data1$Outbound,
1480
+ z.ZodTypeDef,
1481
+ Data1
1482
+ > = z.object({
1483
+ type: z.string(),
1484
+ id: z.string(),
1485
+ });
1486
+
1487
+ /**
1488
+ * @internal
1489
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1490
+ */
1491
+ export namespace Data1$ {
1492
+ /** @deprecated use `Data1$inboundSchema` instead. */
1493
+ export const inboundSchema = Data1$inboundSchema;
1494
+ /** @deprecated use `Data1$outboundSchema` instead. */
1495
+ export const outboundSchema = Data1$outboundSchema;
1496
+ /** @deprecated use `Data1$Outbound` instead. */
1497
+ export type Outbound = Data1$Outbound;
1498
+ }
1499
+
1500
+ export function data1ToJSON(data1: Data1): string {
1501
+ return JSON.stringify(Data1$outboundSchema.parse(data1));
1502
+ }
1503
+
1504
+ export function data1FromJSON(
1505
+ jsonString: string,
1506
+ ): SafeParseResult<Data1, SDKValidationError> {
1507
+ return safeParse(
1508
+ jsonString,
1509
+ (x) => Data1$inboundSchema.parse(JSON.parse(x)),
1510
+ `Failed to parse 'Data1' from JSON`,
1511
+ );
1512
+ }
1513
+
1514
+ /** @internal */
1515
+ export const GetApplicationsApplicationsData$inboundSchema: z.ZodType<
1516
+ GetApplicationsApplicationsData,
1517
+ z.ZodTypeDef,
1518
+ unknown
1519
+ > = z.union([
1520
+ z.lazy(() => Data1$inboundSchema),
1521
+ z.array(z.lazy(() => Data2$inboundSchema)),
1522
+ ]);
1523
+
1524
+ /** @internal */
1525
+ export type GetApplicationsApplicationsData$Outbound =
1526
+ | Data1$Outbound
1527
+ | Array<Data2$Outbound>;
1528
+
1529
+ /** @internal */
1530
+ export const GetApplicationsApplicationsData$outboundSchema: z.ZodType<
1531
+ GetApplicationsApplicationsData$Outbound,
1532
+ z.ZodTypeDef,
1533
+ GetApplicationsApplicationsData
1534
+ > = z.union([
1535
+ z.lazy(() => Data1$outboundSchema),
1536
+ z.array(z.lazy(() => Data2$outboundSchema)),
1537
+ ]);
1538
+
1539
+ /**
1540
+ * @internal
1541
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1542
+ */
1543
+ export namespace GetApplicationsApplicationsData$ {
1544
+ /** @deprecated use `GetApplicationsApplicationsData$inboundSchema` instead. */
1545
+ export const inboundSchema = GetApplicationsApplicationsData$inboundSchema;
1546
+ /** @deprecated use `GetApplicationsApplicationsData$outboundSchema` instead. */
1547
+ export const outboundSchema = GetApplicationsApplicationsData$outboundSchema;
1548
+ /** @deprecated use `GetApplicationsApplicationsData$Outbound` instead. */
1549
+ export type Outbound = GetApplicationsApplicationsData$Outbound;
1550
+ }
1551
+
1552
+ export function getApplicationsApplicationsDataToJSON(
1553
+ getApplicationsApplicationsData: GetApplicationsApplicationsData,
1554
+ ): string {
1555
+ return JSON.stringify(
1556
+ GetApplicationsApplicationsData$outboundSchema.parse(
1557
+ getApplicationsApplicationsData,
1558
+ ),
1559
+ );
1560
+ }
1561
+
1562
+ export function getApplicationsApplicationsDataFromJSON(
1563
+ jsonString: string,
1564
+ ): SafeParseResult<GetApplicationsApplicationsData, SDKValidationError> {
1565
+ return safeParse(
1566
+ jsonString,
1567
+ (x) => GetApplicationsApplicationsData$inboundSchema.parse(JSON.parse(x)),
1568
+ `Failed to parse 'GetApplicationsApplicationsData' from JSON`,
1569
+ );
1570
+ }
1571
+
1572
+ /** @internal */
1573
+ export const GetApplicationsApplicationsRelationships$inboundSchema: z.ZodType<
1574
+ GetApplicationsApplicationsRelationships,
1575
+ z.ZodTypeDef,
1576
+ unknown
1577
+ > = z.object({
1578
+ data: z.nullable(
1579
+ z.union([
1580
+ z.lazy(() => Data1$inboundSchema),
1581
+ z.array(z.lazy(() => Data2$inboundSchema)),
1582
+ ]),
1583
+ ),
1584
+ links: components.Links$inboundSchema.optional(),
1585
+ meta: z.record(z.any()).optional(),
1586
+ });
1587
+
1588
+ /** @internal */
1589
+ export type GetApplicationsApplicationsRelationships$Outbound = {
1590
+ data: Data1$Outbound | Array<Data2$Outbound> | null;
1591
+ links?: components.Links$Outbound | undefined;
1592
+ meta?: { [k: string]: any } | undefined;
1593
+ };
1594
+
1595
+ /** @internal */
1596
+ export const GetApplicationsApplicationsRelationships$outboundSchema: z.ZodType<
1597
+ GetApplicationsApplicationsRelationships$Outbound,
1598
+ z.ZodTypeDef,
1599
+ GetApplicationsApplicationsRelationships
1600
+ > = z.object({
1601
+ data: z.nullable(
1602
+ z.union([
1603
+ z.lazy(() => Data1$outboundSchema),
1604
+ z.array(z.lazy(() => Data2$outboundSchema)),
1605
+ ]),
1606
+ ),
1607
+ links: components.Links$outboundSchema.optional(),
1608
+ meta: z.record(z.any()).optional(),
1609
+ });
1610
+
1611
+ /**
1612
+ * @internal
1613
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1614
+ */
1615
+ export namespace GetApplicationsApplicationsRelationships$ {
1616
+ /** @deprecated use `GetApplicationsApplicationsRelationships$inboundSchema` instead. */
1617
+ export const inboundSchema =
1618
+ GetApplicationsApplicationsRelationships$inboundSchema;
1619
+ /** @deprecated use `GetApplicationsApplicationsRelationships$outboundSchema` instead. */
1620
+ export const outboundSchema =
1621
+ GetApplicationsApplicationsRelationships$outboundSchema;
1622
+ /** @deprecated use `GetApplicationsApplicationsRelationships$Outbound` instead. */
1623
+ export type Outbound = GetApplicationsApplicationsRelationships$Outbound;
1624
+ }
1625
+
1626
+ export function getApplicationsApplicationsRelationshipsToJSON(
1627
+ getApplicationsApplicationsRelationships:
1628
+ GetApplicationsApplicationsRelationships,
1629
+ ): string {
1630
+ return JSON.stringify(
1631
+ GetApplicationsApplicationsRelationships$outboundSchema.parse(
1632
+ getApplicationsApplicationsRelationships,
1633
+ ),
1634
+ );
1635
+ }
1636
+
1637
+ export function getApplicationsApplicationsRelationshipsFromJSON(
1638
+ jsonString: string,
1639
+ ): SafeParseResult<
1640
+ GetApplicationsApplicationsRelationships,
1641
+ SDKValidationError
1642
+ > {
1643
+ return safeParse(
1644
+ jsonString,
1645
+ (x) =>
1646
+ GetApplicationsApplicationsRelationships$inboundSchema.parse(
1647
+ JSON.parse(x),
1648
+ ),
1649
+ `Failed to parse 'GetApplicationsApplicationsRelationships' from JSON`,
1650
+ );
1651
+ }
1652
+
1653
+ /** @internal */
1654
+ export const GetApplicationsIncluded$inboundSchema: z.ZodType<
1655
+ GetApplicationsIncluded,
1656
+ z.ZodTypeDef,
1657
+ unknown
1658
+ > = z.object({
1659
+ type: z.string(),
1660
+ id: z.string(),
1661
+ attributes: z.lazy(() => GetApplicationsAttributes$inboundSchema).optional(),
1662
+ relationships: z.record(
1663
+ z.lazy(() => GetApplicationsApplicationsRelationships$inboundSchema),
1664
+ ).optional(),
1665
+ links: components.Links$inboundSchema.optional(),
1666
+ meta: z.record(z.any()).optional(),
1667
+ });
1668
+
1669
+ /** @internal */
1670
+ export type GetApplicationsIncluded$Outbound = {
1671
+ type: string;
1672
+ id: string;
1673
+ attributes?: GetApplicationsAttributes$Outbound | undefined;
1674
+ relationships?: {
1675
+ [k: string]: GetApplicationsApplicationsRelationships$Outbound;
1676
+ } | undefined;
1677
+ links?: components.Links$Outbound | undefined;
1678
+ meta?: { [k: string]: any } | undefined;
1679
+ };
1680
+
1681
+ /** @internal */
1682
+ export const GetApplicationsIncluded$outboundSchema: z.ZodType<
1683
+ GetApplicationsIncluded$Outbound,
1684
+ z.ZodTypeDef,
1685
+ GetApplicationsIncluded
1686
+ > = z.object({
1687
+ type: z.string(),
1688
+ id: z.string(),
1689
+ attributes: z.lazy(() => GetApplicationsAttributes$outboundSchema).optional(),
1690
+ relationships: z.record(
1691
+ z.lazy(() => GetApplicationsApplicationsRelationships$outboundSchema),
1692
+ ).optional(),
1693
+ links: components.Links$outboundSchema.optional(),
1694
+ meta: z.record(z.any()).optional(),
1695
+ });
1696
+
1697
+ /**
1698
+ * @internal
1699
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1700
+ */
1701
+ export namespace GetApplicationsIncluded$ {
1702
+ /** @deprecated use `GetApplicationsIncluded$inboundSchema` instead. */
1703
+ export const inboundSchema = GetApplicationsIncluded$inboundSchema;
1704
+ /** @deprecated use `GetApplicationsIncluded$outboundSchema` instead. */
1705
+ export const outboundSchema = GetApplicationsIncluded$outboundSchema;
1706
+ /** @deprecated use `GetApplicationsIncluded$Outbound` instead. */
1707
+ export type Outbound = GetApplicationsIncluded$Outbound;
1708
+ }
1709
+
1710
+ export function getApplicationsIncludedToJSON(
1711
+ getApplicationsIncluded: GetApplicationsIncluded,
1712
+ ): string {
1713
+ return JSON.stringify(
1714
+ GetApplicationsIncluded$outboundSchema.parse(getApplicationsIncluded),
1715
+ );
1716
+ }
1717
+
1718
+ export function getApplicationsIncludedFromJSON(
1719
+ jsonString: string,
1720
+ ): SafeParseResult<GetApplicationsIncluded, SDKValidationError> {
1721
+ return safeParse(
1722
+ jsonString,
1723
+ (x) => GetApplicationsIncluded$inboundSchema.parse(JSON.parse(x)),
1724
+ `Failed to parse 'GetApplicationsIncluded' from JSON`,
1725
+ );
1726
+ }
1727
+
1728
+ /** @internal */
1729
+ export const GetApplicationsResponseBody$inboundSchema: z.ZodType<
1730
+ GetApplicationsResponseBody,
1731
+ z.ZodTypeDef,
1732
+ unknown
1733
+ > = z.object({
1734
+ data: z.lazy(() => GetApplicationsData$inboundSchema),
1735
+ included: z.array(z.lazy(() => GetApplicationsIncluded$inboundSchema))
1736
+ .optional(),
1737
+ links: components.Links$inboundSchema.optional(),
1738
+ });
1739
+
1740
+ /** @internal */
1741
+ export type GetApplicationsResponseBody$Outbound = {
1742
+ data: GetApplicationsData$Outbound;
1743
+ included?: Array<GetApplicationsIncluded$Outbound> | undefined;
1744
+ links?: components.Links$Outbound | undefined;
1745
+ };
1746
+
1747
+ /** @internal */
1748
+ export const GetApplicationsResponseBody$outboundSchema: z.ZodType<
1749
+ GetApplicationsResponseBody$Outbound,
1750
+ z.ZodTypeDef,
1751
+ GetApplicationsResponseBody
1752
+ > = z.object({
1753
+ data: z.lazy(() => GetApplicationsData$outboundSchema),
1754
+ included: z.array(z.lazy(() => GetApplicationsIncluded$outboundSchema))
1755
+ .optional(),
1756
+ links: components.Links$outboundSchema.optional(),
1757
+ });
1758
+
1759
+ /**
1760
+ * @internal
1761
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1762
+ */
1763
+ export namespace GetApplicationsResponseBody$ {
1764
+ /** @deprecated use `GetApplicationsResponseBody$inboundSchema` instead. */
1765
+ export const inboundSchema = GetApplicationsResponseBody$inboundSchema;
1766
+ /** @deprecated use `GetApplicationsResponseBody$outboundSchema` instead. */
1767
+ export const outboundSchema = GetApplicationsResponseBody$outboundSchema;
1768
+ /** @deprecated use `GetApplicationsResponseBody$Outbound` instead. */
1769
+ export type Outbound = GetApplicationsResponseBody$Outbound;
1770
+ }
1771
+
1772
+ export function getApplicationsResponseBodyToJSON(
1773
+ getApplicationsResponseBody: GetApplicationsResponseBody,
1774
+ ): string {
1775
+ return JSON.stringify(
1776
+ GetApplicationsResponseBody$outboundSchema.parse(
1777
+ getApplicationsResponseBody,
1778
+ ),
1779
+ );
1780
+ }
1781
+
1782
+ export function getApplicationsResponseBodyFromJSON(
1783
+ jsonString: string,
1784
+ ): SafeParseResult<GetApplicationsResponseBody, SDKValidationError> {
1785
+ return safeParse(
1786
+ jsonString,
1787
+ (x) => GetApplicationsResponseBody$inboundSchema.parse(JSON.parse(x)),
1788
+ `Failed to parse 'GetApplicationsResponseBody' from JSON`,
1789
+ );
1790
+ }