@financeable/aggregation 0.7.4 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +1 -0
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
  6. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  7. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
  8. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  9. package/models/components/consumersecuredloanassetattributes.d.ts +136 -15
  10. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  11. package/models/components/consumersecuredloanassetattributes.js +131 -11
  12. package/models/components/consumersecuredloanassetattributes.js.map +1 -1
  13. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +370 -14
  14. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  15. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +358 -20
  16. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  17. package/models/components/currencycodeiso4217.d.ts +25 -0
  18. package/models/components/currencycodeiso4217.d.ts.map +1 -0
  19. package/models/components/currencycodeiso4217.js +59 -0
  20. package/models/components/currencycodeiso4217.js.map +1 -0
  21. package/models/components/customerassetattributes.d.ts +37 -0
  22. package/models/components/customerassetattributes.d.ts.map +1 -0
  23. package/models/components/customerassetattributes.js +77 -0
  24. package/models/components/customerassetattributes.js.map +1 -0
  25. package/models/components/customerassettype.d.ts +46 -0
  26. package/models/components/customerassettype.d.ts.map +1 -0
  27. package/models/components/customerassettype.js +66 -0
  28. package/models/components/customerassettype.js.map +1 -0
  29. package/models/components/customerattributes.d.ts +3 -0
  30. package/models/components/customerattributes.d.ts.map +1 -1
  31. package/models/components/customerattributes.js +3 -0
  32. package/models/components/customerattributes.js.map +1 -1
  33. package/models/components/customerliabilityattributes.d.ts +46 -0
  34. package/models/components/customerliabilityattributes.d.ts.map +1 -0
  35. package/models/components/customerliabilityattributes.js +88 -0
  36. package/models/components/customerliabilityattributes.js.map +1 -0
  37. package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
  38. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
  39. package/models/components/customerliabilityrepaymentfrequency.js +61 -0
  40. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
  41. package/models/components/customerliabilitytype.d.ts +40 -0
  42. package/models/components/customerliabilitytype.d.ts.map +1 -0
  43. package/models/components/customerliabilitytype.js +64 -0
  44. package/models/components/customerliabilitytype.js.map +1 -0
  45. package/models/components/expenseattributes.d.ts +38 -0
  46. package/models/components/expenseattributes.d.ts.map +1 -0
  47. package/models/components/expenseattributes.js +78 -0
  48. package/models/components/expenseattributes.js.map +1 -0
  49. package/models/components/expensefrequency.d.ts +31 -0
  50. package/models/components/expensefrequency.d.ts.map +1 -0
  51. package/models/components/expensefrequency.js +61 -0
  52. package/models/components/expensefrequency.js.map +1 -0
  53. package/models/components/expensetype.d.ts +79 -0
  54. package/models/components/expensetype.d.ts.map +1 -0
  55. package/models/components/expensetype.js +78 -0
  56. package/models/components/expensetype.js.map +1 -0
  57. package/models/components/incomeattributes.d.ts +38 -0
  58. package/models/components/incomeattributes.d.ts.map +1 -0
  59. package/models/components/incomeattributes.js +78 -0
  60. package/models/components/incomeattributes.js.map +1 -0
  61. package/models/components/incomefrequency.d.ts +34 -0
  62. package/models/components/incomefrequency.d.ts.map +1 -0
  63. package/models/components/incomefrequency.js +62 -0
  64. package/models/components/incomefrequency.js.map +1 -0
  65. package/models/components/incometype.d.ts +49 -0
  66. package/models/components/incometype.d.ts.map +1 -0
  67. package/models/components/incometype.js +68 -0
  68. package/models/components/incometype.js.map +1 -0
  69. package/models/components/index.d.ts +14 -0
  70. package/models/components/index.d.ts.map +1 -1
  71. package/models/components/index.js +14 -0
  72. package/models/components/index.js.map +1 -1
  73. package/models/components/loandetailsattributes.d.ts +252 -30
  74. package/models/components/loandetailsattributes.d.ts.map +1 -1
  75. package/models/components/loandetailsattributes.js +266 -19
  76. package/models/components/loandetailsattributes.js.map +1 -1
  77. package/models/components/monetaryquantity.d.ts +63 -0
  78. package/models/components/monetaryquantity.d.ts.map +1 -0
  79. package/models/components/monetaryquantity.js +93 -0
  80. package/models/components/monetaryquantity.js.map +1 -0
  81. package/models/components/percentagequantity.d.ts +57 -0
  82. package/models/components/percentagequantity.d.ts.map +1 -0
  83. package/models/components/percentagequantity.js +89 -0
  84. package/models/components/percentagequantity.js.map +1 -0
  85. package/models/operations/createapplication.d.ts +102 -4
  86. package/models/operations/createapplication.d.ts.map +1 -1
  87. package/models/operations/createapplication.js +107 -1
  88. package/models/operations/createapplication.js.map +1 -1
  89. package/package.json +2 -2
  90. package/src/lib/config.ts +3 -3
  91. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
  92. package/src/models/components/consumersecuredloanassetattributes.ts +282 -25
  93. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +895 -40
  94. package/src/models/components/currencycodeiso4217.ts +32 -0
  95. package/src/models/components/customerassetattributes.ts +89 -0
  96. package/src/models/components/customerassettype.ts +39 -0
  97. package/src/models/components/customerattributes.ts +10 -0
  98. package/src/models/components/customerliabilityattributes.ts +114 -0
  99. package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
  100. package/src/models/components/customerliabilitytype.ts +37 -0
  101. package/src/models/components/expenseattributes.ts +94 -0
  102. package/src/models/components/expensefrequency.ts +34 -0
  103. package/src/models/components/expensetype.ts +48 -0
  104. package/src/models/components/incomeattributes.ts +94 -0
  105. package/src/models/components/incomefrequency.ts +35 -0
  106. package/src/models/components/incometype.ts +38 -0
  107. package/src/models/components/index.ts +14 -0
  108. package/src/models/components/loandetailsattributes.ts +537 -48
  109. package/src/models/components/monetaryquantity.ts +110 -0
  110. package/src/models/components/percentagequantity.ts +102 -0
  111. package/src/models/operations/createapplication.ts +191 -3
@@ -19,12 +19,36 @@ import {
19
19
  ConsumerSecuredLoanAssetAttributes$Outbound,
20
20
  ConsumerSecuredLoanAssetAttributes$outboundSchema,
21
21
  } from "./consumersecuredloanassetattributes.js";
22
+ import {
23
+ CustomerAssetAttributes,
24
+ CustomerAssetAttributes$inboundSchema,
25
+ CustomerAssetAttributes$Outbound,
26
+ CustomerAssetAttributes$outboundSchema,
27
+ } from "./customerassetattributes.js";
22
28
  import {
23
29
  CustomerAttributes,
24
30
  CustomerAttributes$inboundSchema,
25
31
  CustomerAttributes$Outbound,
26
32
  CustomerAttributes$outboundSchema,
27
33
  } from "./customerattributes.js";
34
+ import {
35
+ CustomerLiabilityAttributes,
36
+ CustomerLiabilityAttributes$inboundSchema,
37
+ CustomerLiabilityAttributes$Outbound,
38
+ CustomerLiabilityAttributes$outboundSchema,
39
+ } from "./customerliabilityattributes.js";
40
+ import {
41
+ ExpenseAttributes,
42
+ ExpenseAttributes$inboundSchema,
43
+ ExpenseAttributes$Outbound,
44
+ ExpenseAttributes$outboundSchema,
45
+ } from "./expenseattributes.js";
46
+ import {
47
+ IncomeAttributes,
48
+ IncomeAttributes$inboundSchema,
49
+ IncomeAttributes$Outbound,
50
+ IncomeAttributes$outboundSchema,
51
+ } from "./incomeattributes.js";
28
52
  import {
29
53
  LinkObject,
30
54
  LinkObject$inboundSchema,
@@ -76,7 +100,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
76
100
  typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
77
101
  >;
78
102
 
79
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
103
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData =
80
104
  {
81
105
  type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
82
106
  attributes: AddressAttributes;
@@ -85,15 +109,119 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
85
109
  };
86
110
 
87
111
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
112
+ data: Array<
113
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData
114
+ >;
115
+ };
116
+
117
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
118
+ {
119
+ Income: "income",
120
+ } as const;
121
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
122
+ ClosedEnum<
123
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
124
+ >;
125
+
126
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
127
+ {
128
+ type:
129
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType;
130
+ attributes: IncomeAttributes;
131
+ links?: { [k: string]: LinkObject } | undefined;
132
+ meta?: { [k: string]: any } | undefined;
133
+ };
134
+
135
+ export type Income = {
88
136
  data: Array<
89
137
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
90
138
  >;
91
139
  };
92
140
 
141
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType =
142
+ {
143
+ CustomerLiabilities: "customer-liabilities",
144
+ } as const;
145
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType =
146
+ ClosedEnum<
147
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
148
+ >;
149
+
150
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData =
151
+ {
152
+ type:
153
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType;
154
+ attributes: CustomerLiabilityAttributes;
155
+ links?: { [k: string]: LinkObject } | undefined;
156
+ meta?: { [k: string]: any } | undefined;
157
+ };
158
+
159
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities = {
160
+ data: Array<
161
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
162
+ >;
163
+ };
164
+
165
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType =
166
+ {
167
+ CustomerAssets: "customer-assets",
168
+ } as const;
169
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType =
170
+ ClosedEnum<
171
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
172
+ >;
173
+
174
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData =
175
+ {
176
+ type:
177
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType;
178
+ attributes: CustomerAssetAttributes;
179
+ links?: { [k: string]: LinkObject } | undefined;
180
+ meta?: { [k: string]: any } | undefined;
181
+ };
182
+
183
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssets = {
184
+ data: Array<
185
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData
186
+ >;
187
+ };
188
+
189
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType =
190
+ {
191
+ Expenses: "expenses",
192
+ } as const;
193
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType =
194
+ ClosedEnum<
195
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType
196
+ >;
197
+
198
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData =
199
+ {
200
+ type:
201
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType;
202
+ attributes: ExpenseAttributes;
203
+ links?: { [k: string]: LinkObject } | undefined;
204
+ meta?: { [k: string]: any } | undefined;
205
+ };
206
+
207
+ export type Expenses = {
208
+ data: Array<
209
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData
210
+ >;
211
+ };
212
+
93
213
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
94
214
  addresses?:
95
215
  | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
96
216
  | undefined;
217
+ income?: Income | undefined;
218
+ liabilities?:
219
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
220
+ | undefined;
221
+ assets?:
222
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAssets
223
+ | undefined;
224
+ expenses?: Expenses | undefined;
97
225
  };
98
226
 
99
227
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
@@ -374,9 +502,9 @@ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDat
374
502
  }
375
503
 
376
504
  /** @internal */
377
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
505
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema:
378
506
  z.ZodType<
379
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
507
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
380
508
  z.ZodTypeDef,
381
509
  unknown
382
510
  > = z.object({
@@ -388,7 +516,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
388
516
  });
389
517
 
390
518
  /** @internal */
391
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
519
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound =
392
520
  {
393
521
  type: string;
394
522
  attributes: AddressAttributes$Outbound;
@@ -397,11 +525,11 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
397
525
  };
398
526
 
399
527
  /** @internal */
400
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
528
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema:
401
529
  z.ZodType<
402
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
530
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound,
403
531
  z.ZodTypeDef,
404
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
532
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData
405
533
  > = z.object({
406
534
  type:
407
535
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
@@ -414,42 +542,42 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
414
542
  * @internal
415
543
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
416
544
  */
417
- export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
418
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
545
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$ {
546
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema` instead. */
419
547
  export const inboundSchema =
420
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
421
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
548
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema;
549
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema` instead. */
422
550
  export const outboundSchema =
423
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
424
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
551
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema;
552
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound` instead. */
425
553
  export type Outbound =
426
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
554
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound;
427
555
  }
428
556
 
429
- export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
430
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
431
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
557
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(
558
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData:
559
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
432
560
  ): string {
433
561
  return JSON.stringify(
434
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
562
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
435
563
  .parse(
436
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
564
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
437
565
  ),
438
566
  );
439
567
  }
440
568
 
441
- export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
569
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesDataFromJSON(
442
570
  jsonString: string,
443
571
  ): SafeParseResult<
444
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
572
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
445
573
  SDKValidationError
446
574
  > {
447
575
  return safeParse(
448
576
  jsonString,
449
577
  (x) =>
450
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
578
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
451
579
  .parse(JSON.parse(x)),
452
- `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
580
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData' from JSON`,
453
581
  );
454
582
  }
455
583
 
@@ -462,7 +590,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboun
462
590
  > = z.object({
463
591
  data: z.array(
464
592
  z.lazy(() =>
465
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
593
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
466
594
  ),
467
595
  ),
468
596
  });
@@ -471,7 +599,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboun
471
599
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound =
472
600
  {
473
601
  data: Array<
474
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
602
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound
475
603
  >;
476
604
  };
477
605
 
@@ -484,7 +612,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outbou
484
612
  > = z.object({
485
613
  data: z.array(
486
614
  z.lazy(() =>
487
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
615
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
488
616
  ),
489
617
  ),
490
618
  });
@@ -531,35 +659,762 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesFrom
531
659
  }
532
660
 
533
661
  /** @internal */
534
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema:
662
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
663
+ z.ZodNativeEnum<
664
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
665
+ > = z.nativeEnum(
666
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType,
667
+ );
668
+
669
+ /** @internal */
670
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
671
+ z.ZodNativeEnum<
672
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
673
+ > =
674
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$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 ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$ {
681
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
682
+ export const inboundSchema =
683
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
684
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
685
+ export const outboundSchema =
686
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
687
+ }
688
+
689
+ /** @internal */
690
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
535
691
  z.ZodType<
536
- ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
692
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
537
693
  z.ZodTypeDef,
538
694
  unknown
539
695
  > = z.object({
540
- addresses: z.lazy(() =>
541
- ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
542
- ).optional(),
696
+ type:
697
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema,
698
+ attributes: IncomeAttributes$inboundSchema,
699
+ links: z.record(LinkObject$inboundSchema).optional(),
700
+ meta: z.record(z.any()).optional(),
543
701
  });
544
702
 
545
703
  /** @internal */
546
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound =
704
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
547
705
  {
548
- addresses?:
549
- | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
550
- | undefined;
706
+ type: string;
707
+ attributes: IncomeAttributes$Outbound;
708
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
709
+ meta?: { [k: string]: any } | undefined;
551
710
  };
552
711
 
553
712
  /** @internal */
554
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema:
713
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
555
714
  z.ZodType<
556
- ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound,
715
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
557
716
  z.ZodTypeDef,
558
- ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
717
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
559
718
  > = z.object({
560
- addresses: z.lazy(() =>
561
- ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
719
+ type:
720
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
721
+ attributes: IncomeAttributes$outboundSchema,
722
+ links: z.record(LinkObject$outboundSchema).optional(),
723
+ meta: z.record(z.any()).optional(),
724
+ });
725
+
726
+ /**
727
+ * @internal
728
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
729
+ */
730
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
731
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
732
+ export const inboundSchema =
733
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
734
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
735
+ export const outboundSchema =
736
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
737
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
738
+ export type Outbound =
739
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
740
+ }
741
+
742
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
743
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
744
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
745
+ ): string {
746
+ return JSON.stringify(
747
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
748
+ .parse(
749
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
750
+ ),
751
+ );
752
+ }
753
+
754
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
755
+ jsonString: string,
756
+ ): SafeParseResult<
757
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
758
+ SDKValidationError
759
+ > {
760
+ return safeParse(
761
+ jsonString,
762
+ (x) =>
763
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
764
+ .parse(JSON.parse(x)),
765
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
766
+ );
767
+ }
768
+
769
+ /** @internal */
770
+ export const Income$inboundSchema: z.ZodType<Income, z.ZodTypeDef, unknown> = z
771
+ .object({
772
+ data: z.array(
773
+ z.lazy(() =>
774
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
775
+ ),
776
+ ),
777
+ });
778
+
779
+ /** @internal */
780
+ export type Income$Outbound = {
781
+ data: Array<
782
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
783
+ >;
784
+ };
785
+
786
+ /** @internal */
787
+ export const Income$outboundSchema: z.ZodType<
788
+ Income$Outbound,
789
+ z.ZodTypeDef,
790
+ Income
791
+ > = z.object({
792
+ data: z.array(
793
+ z.lazy(() =>
794
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
795
+ ),
796
+ ),
797
+ });
798
+
799
+ /**
800
+ * @internal
801
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
802
+ */
803
+ export namespace Income$ {
804
+ /** @deprecated use `Income$inboundSchema` instead. */
805
+ export const inboundSchema = Income$inboundSchema;
806
+ /** @deprecated use `Income$outboundSchema` instead. */
807
+ export const outboundSchema = Income$outboundSchema;
808
+ /** @deprecated use `Income$Outbound` instead. */
809
+ export type Outbound = Income$Outbound;
810
+ }
811
+
812
+ export function incomeToJSON(income: Income): string {
813
+ return JSON.stringify(Income$outboundSchema.parse(income));
814
+ }
815
+
816
+ export function incomeFromJSON(
817
+ jsonString: string,
818
+ ): SafeParseResult<Income, SDKValidationError> {
819
+ return safeParse(
820
+ jsonString,
821
+ (x) => Income$inboundSchema.parse(JSON.parse(x)),
822
+ `Failed to parse 'Income' from JSON`,
823
+ );
824
+ }
825
+
826
+ /** @internal */
827
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$inboundSchema:
828
+ z.ZodNativeEnum<
829
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
830
+ > = z.nativeEnum(
831
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType,
832
+ );
833
+
834
+ /** @internal */
835
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema:
836
+ z.ZodNativeEnum<
837
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
838
+ > =
839
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$inboundSchema;
840
+
841
+ /**
842
+ * @internal
843
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
844
+ */
845
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$ {
846
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$inboundSchema` instead. */
847
+ export const inboundSchema =
848
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$inboundSchema;
849
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema` instead. */
850
+ export const outboundSchema =
851
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema;
852
+ }
853
+
854
+ /** @internal */
855
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
856
+ z.ZodType<
857
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
858
+ z.ZodTypeDef,
859
+ unknown
860
+ > = z.object({
861
+ type:
862
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$inboundSchema,
863
+ attributes: CustomerLiabilityAttributes$inboundSchema,
864
+ links: z.record(LinkObject$inboundSchema).optional(),
865
+ meta: z.record(z.any()).optional(),
866
+ });
867
+
868
+ /** @internal */
869
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
870
+ {
871
+ type: string;
872
+ attributes: CustomerLiabilityAttributes$Outbound;
873
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
874
+ meta?: { [k: string]: any } | undefined;
875
+ };
876
+
877
+ /** @internal */
878
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
879
+ z.ZodType<
880
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
881
+ z.ZodTypeDef,
882
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
883
+ > = z.object({
884
+ type:
885
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema,
886
+ attributes: CustomerLiabilityAttributes$outboundSchema,
887
+ links: z.record(LinkObject$outboundSchema).optional(),
888
+ meta: z.record(z.any()).optional(),
889
+ });
890
+
891
+ /**
892
+ * @internal
893
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
894
+ */
895
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$ {
896
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
897
+ export const inboundSchema =
898
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
899
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
900
+ export const outboundSchema =
901
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
902
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
903
+ export type Outbound =
904
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
905
+ }
906
+
907
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
908
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData:
909
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
910
+ ): string {
911
+ return JSON.stringify(
912
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
913
+ .parse(
914
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
915
+ ),
916
+ );
917
+ }
918
+
919
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
920
+ jsonString: string,
921
+ ): SafeParseResult<
922
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
923
+ SDKValidationError
924
+ > {
925
+ return safeParse(
926
+ jsonString,
927
+ (x) =>
928
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
929
+ .parse(JSON.parse(x)),
930
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
931
+ );
932
+ }
933
+
934
+ /** @internal */
935
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema:
936
+ z.ZodType<
937
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
938
+ z.ZodTypeDef,
939
+ unknown
940
+ > = z.object({
941
+ data: z.array(
942
+ z.lazy(() =>
943
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
944
+ ),
945
+ ),
946
+ });
947
+
948
+ /** @internal */
949
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound =
950
+ {
951
+ data: Array<
952
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound
953
+ >;
954
+ };
955
+
956
+ /** @internal */
957
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema:
958
+ z.ZodType<
959
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound,
960
+ z.ZodTypeDef,
961
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
962
+ > = z.object({
963
+ data: z.array(
964
+ z.lazy(() =>
965
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
966
+ ),
967
+ ),
968
+ });
969
+
970
+ /**
971
+ * @internal
972
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
973
+ */
974
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$ {
975
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema` instead. */
976
+ export const inboundSchema =
977
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema;
978
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema` instead. */
979
+ export const outboundSchema =
980
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema;
981
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound` instead. */
982
+ export type Outbound =
983
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound;
984
+ }
985
+
986
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLiabilitiesToJSON(
987
+ consumerSecuredLoanConsumerApplicationRelationshipsLiabilities:
988
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
989
+ ): string {
990
+ return JSON.stringify(
991
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
992
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsLiabilities),
993
+ );
994
+ }
995
+
996
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLiabilitiesFromJSON(
997
+ jsonString: string,
998
+ ): SafeParseResult<
999
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
1000
+ SDKValidationError
1001
+ > {
1002
+ return safeParse(
1003
+ jsonString,
1004
+ (x) =>
1005
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema
1006
+ .parse(JSON.parse(x)),
1007
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities' from JSON`,
1008
+ );
1009
+ }
1010
+
1011
+ /** @internal */
1012
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
1013
+ z.ZodNativeEnum<
1014
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
1015
+ > = z.nativeEnum(
1016
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType,
1017
+ );
1018
+
1019
+ /** @internal */
1020
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
1021
+ z.ZodNativeEnum<
1022
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
1023
+ > =
1024
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
1025
+
1026
+ /**
1027
+ * @internal
1028
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1029
+ */
1030
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
1031
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
1032
+ export const inboundSchema =
1033
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
1034
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
1035
+ export const outboundSchema =
1036
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
1037
+ }
1038
+
1039
+ /** @internal */
1040
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$inboundSchema:
1041
+ z.ZodType<
1042
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData,
1043
+ z.ZodTypeDef,
1044
+ unknown
1045
+ > = z.object({
1046
+ type:
1047
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema,
1048
+ attributes: CustomerAssetAttributes$inboundSchema,
1049
+ links: z.record(LinkObject$inboundSchema).optional(),
1050
+ meta: z.record(z.any()).optional(),
1051
+ });
1052
+
1053
+ /** @internal */
1054
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$Outbound =
1055
+ {
1056
+ type: string;
1057
+ attributes: CustomerAssetAttributes$Outbound;
1058
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
1059
+ meta?: { [k: string]: any } | undefined;
1060
+ };
1061
+
1062
+ /** @internal */
1063
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$outboundSchema:
1064
+ z.ZodType<
1065
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$Outbound,
1066
+ z.ZodTypeDef,
1067
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData
1068
+ > = z.object({
1069
+ type:
1070
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
1071
+ attributes: CustomerAssetAttributes$outboundSchema,
1072
+ links: z.record(LinkObject$outboundSchema).optional(),
1073
+ meta: z.record(z.any()).optional(),
1074
+ });
1075
+
1076
+ /**
1077
+ * @internal
1078
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1079
+ */
1080
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$ {
1081
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$inboundSchema` instead. */
1082
+ export const inboundSchema =
1083
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$inboundSchema;
1084
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$outboundSchema` instead. */
1085
+ export const outboundSchema =
1086
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$outboundSchema;
1087
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$Outbound` instead. */
1088
+ export type Outbound =
1089
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$Outbound;
1090
+ }
1091
+
1092
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsDataToJSON(
1093
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData:
1094
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData,
1095
+ ): string {
1096
+ return JSON.stringify(
1097
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$outboundSchema
1098
+ .parse(
1099
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData,
1100
+ ),
1101
+ );
1102
+ }
1103
+
1104
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsDataFromJSON(
1105
+ jsonString: string,
1106
+ ): SafeParseResult<
1107
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData,
1108
+ SDKValidationError
1109
+ > {
1110
+ return safeParse(
1111
+ jsonString,
1112
+ (x) =>
1113
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$inboundSchema
1114
+ .parse(JSON.parse(x)),
1115
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData' from JSON`,
1116
+ );
1117
+ }
1118
+
1119
+ /** @internal */
1120
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema:
1121
+ z.ZodType<
1122
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
1123
+ z.ZodTypeDef,
1124
+ unknown
1125
+ > = z.object({
1126
+ data: z.array(
1127
+ z.lazy(() =>
1128
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$inboundSchema
1129
+ ),
1130
+ ),
1131
+ });
1132
+
1133
+ /** @internal */
1134
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound =
1135
+ {
1136
+ data: Array<
1137
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$Outbound
1138
+ >;
1139
+ };
1140
+
1141
+ /** @internal */
1142
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema:
1143
+ z.ZodType<
1144
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound,
1145
+ z.ZodTypeDef,
1146
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets
1147
+ > = z.object({
1148
+ data: z.array(
1149
+ z.lazy(() =>
1150
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsData$outboundSchema
1151
+ ),
1152
+ ),
1153
+ });
1154
+
1155
+ /**
1156
+ * @internal
1157
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1158
+ */
1159
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$ {
1160
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema` instead. */
1161
+ export const inboundSchema =
1162
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema;
1163
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema` instead. */
1164
+ export const outboundSchema =
1165
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema;
1166
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound` instead. */
1167
+ export type Outbound =
1168
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound;
1169
+ }
1170
+
1171
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetsToJSON(
1172
+ consumerSecuredLoanConsumerApplicationRelationshipsAssets:
1173
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
1174
+ ): string {
1175
+ return JSON.stringify(
1176
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema
1177
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAssets),
1178
+ );
1179
+ }
1180
+
1181
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetsFromJSON(
1182
+ jsonString: string,
1183
+ ): SafeParseResult<
1184
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
1185
+ SDKValidationError
1186
+ > {
1187
+ return safeParse(
1188
+ jsonString,
1189
+ (x) =>
1190
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema
1191
+ .parse(JSON.parse(x)),
1192
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAssets' from JSON`,
1193
+ );
1194
+ }
1195
+
1196
+ /** @internal */
1197
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$inboundSchema:
1198
+ z.ZodNativeEnum<
1199
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType
1200
+ > = z.nativeEnum(
1201
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType,
1202
+ );
1203
+
1204
+ /** @internal */
1205
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$outboundSchema:
1206
+ z.ZodNativeEnum<
1207
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType
1208
+ > =
1209
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$inboundSchema;
1210
+
1211
+ /**
1212
+ * @internal
1213
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1214
+ */
1215
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$ {
1216
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$inboundSchema` instead. */
1217
+ export const inboundSchema =
1218
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$inboundSchema;
1219
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$outboundSchema` instead. */
1220
+ export const outboundSchema =
1221
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$outboundSchema;
1222
+ }
1223
+
1224
+ /** @internal */
1225
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$inboundSchema:
1226
+ z.ZodType<
1227
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData,
1228
+ z.ZodTypeDef,
1229
+ unknown
1230
+ > = z.object({
1231
+ type:
1232
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$inboundSchema,
1233
+ attributes: ExpenseAttributes$inboundSchema,
1234
+ links: z.record(LinkObject$inboundSchema).optional(),
1235
+ meta: z.record(z.any()).optional(),
1236
+ });
1237
+
1238
+ /** @internal */
1239
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$Outbound =
1240
+ {
1241
+ type: string;
1242
+ attributes: ExpenseAttributes$Outbound;
1243
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
1244
+ meta?: { [k: string]: any } | undefined;
1245
+ };
1246
+
1247
+ /** @internal */
1248
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$outboundSchema:
1249
+ z.ZodType<
1250
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$Outbound,
1251
+ z.ZodTypeDef,
1252
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData
1253
+ > = z.object({
1254
+ type:
1255
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesType$outboundSchema,
1256
+ attributes: ExpenseAttributes$outboundSchema,
1257
+ links: z.record(LinkObject$outboundSchema).optional(),
1258
+ meta: z.record(z.any()).optional(),
1259
+ });
1260
+
1261
+ /**
1262
+ * @internal
1263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1264
+ */
1265
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$ {
1266
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$inboundSchema` instead. */
1267
+ export const inboundSchema =
1268
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$inboundSchema;
1269
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$outboundSchema` instead. */
1270
+ export const outboundSchema =
1271
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$outboundSchema;
1272
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$Outbound` instead. */
1273
+ export type Outbound =
1274
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$Outbound;
1275
+ }
1276
+
1277
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesDataToJSON(
1278
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData:
1279
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData,
1280
+ ): string {
1281
+ return JSON.stringify(
1282
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$outboundSchema
1283
+ .parse(
1284
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData,
1285
+ ),
1286
+ );
1287
+ }
1288
+
1289
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesDataFromJSON(
1290
+ jsonString: string,
1291
+ ): SafeParseResult<
1292
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData,
1293
+ SDKValidationError
1294
+ > {
1295
+ return safeParse(
1296
+ jsonString,
1297
+ (x) =>
1298
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$inboundSchema
1299
+ .parse(JSON.parse(x)),
1300
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData' from JSON`,
1301
+ );
1302
+ }
1303
+
1304
+ /** @internal */
1305
+ export const Expenses$inboundSchema: z.ZodType<
1306
+ Expenses,
1307
+ z.ZodTypeDef,
1308
+ unknown
1309
+ > = z.object({
1310
+ data: z.array(
1311
+ z.lazy(() =>
1312
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$inboundSchema
1313
+ ),
1314
+ ),
1315
+ });
1316
+
1317
+ /** @internal */
1318
+ export type Expenses$Outbound = {
1319
+ data: Array<
1320
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$Outbound
1321
+ >;
1322
+ };
1323
+
1324
+ /** @internal */
1325
+ export const Expenses$outboundSchema: z.ZodType<
1326
+ Expenses$Outbound,
1327
+ z.ZodTypeDef,
1328
+ Expenses
1329
+ > = z.object({
1330
+ data: z.array(
1331
+ z.lazy(() =>
1332
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsExpensesData$outboundSchema
1333
+ ),
1334
+ ),
1335
+ });
1336
+
1337
+ /**
1338
+ * @internal
1339
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1340
+ */
1341
+ export namespace Expenses$ {
1342
+ /** @deprecated use `Expenses$inboundSchema` instead. */
1343
+ export const inboundSchema = Expenses$inboundSchema;
1344
+ /** @deprecated use `Expenses$outboundSchema` instead. */
1345
+ export const outboundSchema = Expenses$outboundSchema;
1346
+ /** @deprecated use `Expenses$Outbound` instead. */
1347
+ export type Outbound = Expenses$Outbound;
1348
+ }
1349
+
1350
+ export function expensesToJSON(expenses: Expenses): string {
1351
+ return JSON.stringify(Expenses$outboundSchema.parse(expenses));
1352
+ }
1353
+
1354
+ export function expensesFromJSON(
1355
+ jsonString: string,
1356
+ ): SafeParseResult<Expenses, SDKValidationError> {
1357
+ return safeParse(
1358
+ jsonString,
1359
+ (x) => Expenses$inboundSchema.parse(JSON.parse(x)),
1360
+ `Failed to parse 'Expenses' from JSON`,
1361
+ );
1362
+ }
1363
+
1364
+ /** @internal */
1365
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema:
1366
+ z.ZodType<
1367
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
1368
+ z.ZodTypeDef,
1369
+ unknown
1370
+ > = z.object({
1371
+ addresses: z.lazy(() =>
1372
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
1373
+ ).optional(),
1374
+ income: z.lazy(() => Income$inboundSchema).optional(),
1375
+ liabilities: z.lazy(() =>
1376
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema
1377
+ ).optional(),
1378
+ assets: z.lazy(() =>
1379
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema
1380
+ ).optional(),
1381
+ expenses: z.lazy(() => Expenses$inboundSchema).optional(),
1382
+ });
1383
+
1384
+ /** @internal */
1385
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound =
1386
+ {
1387
+ addresses?:
1388
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
1389
+ | undefined;
1390
+ income?: Income$Outbound | undefined;
1391
+ liabilities?:
1392
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound
1393
+ | undefined;
1394
+ assets?:
1395
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound
1396
+ | undefined;
1397
+ expenses?: Expenses$Outbound | undefined;
1398
+ };
1399
+
1400
+ /** @internal */
1401
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema:
1402
+ z.ZodType<
1403
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound,
1404
+ z.ZodTypeDef,
1405
+ ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
1406
+ > = z.object({
1407
+ addresses: z.lazy(() =>
1408
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
1409
+ ).optional(),
1410
+ income: z.lazy(() => Income$outboundSchema).optional(),
1411
+ liabilities: z.lazy(() =>
1412
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
1413
+ ).optional(),
1414
+ assets: z.lazy(() =>
1415
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema
562
1416
  ).optional(),
1417
+ expenses: z.lazy(() => Expenses$outboundSchema).optional(),
563
1418
  });
564
1419
 
565
1420
  /**