@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,24 @@ import {
19
19
  CommercialSecuredLoanAssetAttributes$Outbound,
20
20
  CommercialSecuredLoanAssetAttributes$outboundSchema,
21
21
  } from "./commercialsecuredloanassetattributes.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";
28
40
  import {
29
41
  EntityAttributes,
30
42
  EntityAttributes$inboundSchema,
@@ -84,7 +96,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
84
96
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
85
97
  >;
86
98
 
87
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
99
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData =
88
100
  {
89
101
  type:
90
102
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType;
@@ -94,13 +106,63 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
94
106
  };
95
107
 
96
108
  export type Addresses = {
109
+ data: Array<
110
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData
111
+ >;
112
+ };
113
+
114
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
115
+ {
116
+ CustomerLiabilities: "customer-liabilities",
117
+ } as const;
118
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
119
+ ClosedEnum<
120
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
121
+ >;
122
+
123
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
124
+ {
125
+ type:
126
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType;
127
+ attributes: CustomerLiabilityAttributes;
128
+ links?: { [k: string]: LinkObject } | undefined;
129
+ meta?: { [k: string]: any } | undefined;
130
+ };
131
+
132
+ export type Liabilities = {
97
133
  data: Array<
98
134
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
99
135
  >;
100
136
  };
101
137
 
138
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
139
+ {
140
+ CustomerAssets: "customer-assets",
141
+ } as const;
142
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
143
+ ClosedEnum<
144
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
145
+ >;
146
+
147
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData =
148
+ {
149
+ type:
150
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType;
151
+ attributes: CustomerAssetAttributes;
152
+ links?: { [k: string]: LinkObject } | undefined;
153
+ meta?: { [k: string]: any } | undefined;
154
+ };
155
+
156
+ export type Assets = {
157
+ data: Array<
158
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
159
+ >;
160
+ };
161
+
102
162
  export type Relationships = {
103
163
  addresses?: Addresses | undefined;
164
+ liabilities?: Liabilities | undefined;
165
+ assets?: Assets | undefined;
104
166
  };
105
167
 
106
168
  export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
@@ -390,9 +452,9 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
390
452
  }
391
453
 
392
454
  /** @internal */
393
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
455
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema:
394
456
  z.ZodType<
395
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
457
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
396
458
  z.ZodTypeDef,
397
459
  unknown
398
460
  > = z.object({
@@ -404,7 +466,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
404
466
  });
405
467
 
406
468
  /** @internal */
407
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound =
469
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound =
408
470
  {
409
471
  type: string;
410
472
  attributes: AddressAttributes$Outbound;
@@ -412,6 +474,174 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
412
474
  meta?: { [k: string]: any } | undefined;
413
475
  };
414
476
 
477
+ /** @internal */
478
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema:
479
+ z.ZodType<
480
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound,
481
+ z.ZodTypeDef,
482
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData
483
+ > = z.object({
484
+ type:
485
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
486
+ attributes: AddressAttributes$outboundSchema,
487
+ links: z.record(LinkObject$outboundSchema).optional(),
488
+ meta: z.record(z.any()).optional(),
489
+ });
490
+
491
+ /**
492
+ * @internal
493
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
494
+ */
495
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$ {
496
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema` instead. */
497
+ export const inboundSchema =
498
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema;
499
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema` instead. */
500
+ export const outboundSchema =
501
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema;
502
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound` instead. */
503
+ export type Outbound =
504
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound;
505
+ }
506
+
507
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(
508
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData:
509
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
510
+ ): string {
511
+ return JSON.stringify(
512
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
513
+ .parse(
514
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
515
+ ),
516
+ );
517
+ }
518
+
519
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesDataFromJSON(
520
+ jsonString: string,
521
+ ): SafeParseResult<
522
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
523
+ SDKValidationError
524
+ > {
525
+ return safeParse(
526
+ jsonString,
527
+ (x) =>
528
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
529
+ .parse(JSON.parse(x)),
530
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData' from JSON`,
531
+ );
532
+ }
533
+
534
+ /** @internal */
535
+ export const Addresses$inboundSchema: z.ZodType<
536
+ Addresses,
537
+ z.ZodTypeDef,
538
+ unknown
539
+ > = z.object({
540
+ data: z.array(
541
+ z.lazy(() =>
542
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
543
+ ),
544
+ ),
545
+ });
546
+
547
+ /** @internal */
548
+ export type Addresses$Outbound = {
549
+ data: Array<
550
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound
551
+ >;
552
+ };
553
+
554
+ /** @internal */
555
+ export const Addresses$outboundSchema: z.ZodType<
556
+ Addresses$Outbound,
557
+ z.ZodTypeDef,
558
+ Addresses
559
+ > = z.object({
560
+ data: z.array(
561
+ z.lazy(() =>
562
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
563
+ ),
564
+ ),
565
+ });
566
+
567
+ /**
568
+ * @internal
569
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
570
+ */
571
+ export namespace Addresses$ {
572
+ /** @deprecated use `Addresses$inboundSchema` instead. */
573
+ export const inboundSchema = Addresses$inboundSchema;
574
+ /** @deprecated use `Addresses$outboundSchema` instead. */
575
+ export const outboundSchema = Addresses$outboundSchema;
576
+ /** @deprecated use `Addresses$Outbound` instead. */
577
+ export type Outbound = Addresses$Outbound;
578
+ }
579
+
580
+ export function addressesToJSON(addresses: Addresses): string {
581
+ return JSON.stringify(Addresses$outboundSchema.parse(addresses));
582
+ }
583
+
584
+ export function addressesFromJSON(
585
+ jsonString: string,
586
+ ): SafeParseResult<Addresses, SDKValidationError> {
587
+ return safeParse(
588
+ jsonString,
589
+ (x) => Addresses$inboundSchema.parse(JSON.parse(x)),
590
+ `Failed to parse 'Addresses' from JSON`,
591
+ );
592
+ }
593
+
594
+ /** @internal */
595
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
596
+ z.ZodNativeEnum<
597
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
598
+ > = z.nativeEnum(
599
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType,
600
+ );
601
+
602
+ /** @internal */
603
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
604
+ z.ZodNativeEnum<
605
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
606
+ > =
607
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
608
+
609
+ /**
610
+ * @internal
611
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
612
+ */
613
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$ {
614
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
615
+ export const inboundSchema =
616
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
617
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
618
+ export const outboundSchema =
619
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
620
+ }
621
+
622
+ /** @internal */
623
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
624
+ z.ZodType<
625
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
626
+ z.ZodTypeDef,
627
+ unknown
628
+ > = z.object({
629
+ type:
630
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema,
631
+ attributes: CustomerLiabilityAttributes$inboundSchema,
632
+ links: z.record(LinkObject$inboundSchema).optional(),
633
+ meta: z.record(z.any()).optional(),
634
+ });
635
+
636
+ /** @internal */
637
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound =
638
+ {
639
+ type: string;
640
+ attributes: CustomerLiabilityAttributes$Outbound;
641
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
642
+ meta?: { [k: string]: any } | undefined;
643
+ };
644
+
415
645
  /** @internal */
416
646
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema:
417
647
  z.ZodType<
@@ -420,8 +650,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
420
650
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
421
651
  > = z.object({
422
652
  type:
423
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
424
- attributes: AddressAttributes$outboundSchema,
653
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
654
+ attributes: CustomerLiabilityAttributes$outboundSchema,
425
655
  links: z.record(LinkObject$outboundSchema).optional(),
426
656
  meta: z.record(z.any()).optional(),
427
657
  });
@@ -470,8 +700,8 @@ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomers
470
700
  }
471
701
 
472
702
  /** @internal */
473
- export const Addresses$inboundSchema: z.ZodType<
474
- Addresses,
703
+ export const Liabilities$inboundSchema: z.ZodType<
704
+ Liabilities,
475
705
  z.ZodTypeDef,
476
706
  unknown
477
707
  > = z.object({
@@ -483,17 +713,17 @@ export const Addresses$inboundSchema: z.ZodType<
483
713
  });
484
714
 
485
715
  /** @internal */
486
- export type Addresses$Outbound = {
716
+ export type Liabilities$Outbound = {
487
717
  data: Array<
488
718
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound
489
719
  >;
490
720
  };
491
721
 
492
722
  /** @internal */
493
- export const Addresses$outboundSchema: z.ZodType<
494
- Addresses$Outbound,
723
+ export const Liabilities$outboundSchema: z.ZodType<
724
+ Liabilities$Outbound,
495
725
  z.ZodTypeDef,
496
- Addresses
726
+ Liabilities
497
727
  > = z.object({
498
728
  data: z.array(
499
729
  z.lazy(() =>
@@ -506,26 +736,191 @@ export const Addresses$outboundSchema: z.ZodType<
506
736
  * @internal
507
737
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
508
738
  */
509
- export namespace Addresses$ {
510
- /** @deprecated use `Addresses$inboundSchema` instead. */
511
- export const inboundSchema = Addresses$inboundSchema;
512
- /** @deprecated use `Addresses$outboundSchema` instead. */
513
- export const outboundSchema = Addresses$outboundSchema;
514
- /** @deprecated use `Addresses$Outbound` instead. */
515
- export type Outbound = Addresses$Outbound;
739
+ export namespace Liabilities$ {
740
+ /** @deprecated use `Liabilities$inboundSchema` instead. */
741
+ export const inboundSchema = Liabilities$inboundSchema;
742
+ /** @deprecated use `Liabilities$outboundSchema` instead. */
743
+ export const outboundSchema = Liabilities$outboundSchema;
744
+ /** @deprecated use `Liabilities$Outbound` instead. */
745
+ export type Outbound = Liabilities$Outbound;
516
746
  }
517
747
 
518
- export function addressesToJSON(addresses: Addresses): string {
519
- return JSON.stringify(Addresses$outboundSchema.parse(addresses));
748
+ export function liabilitiesToJSON(liabilities: Liabilities): string {
749
+ return JSON.stringify(Liabilities$outboundSchema.parse(liabilities));
520
750
  }
521
751
 
522
- export function addressesFromJSON(
752
+ export function liabilitiesFromJSON(
523
753
  jsonString: string,
524
- ): SafeParseResult<Addresses, SDKValidationError> {
754
+ ): SafeParseResult<Liabilities, SDKValidationError> {
525
755
  return safeParse(
526
756
  jsonString,
527
- (x) => Addresses$inboundSchema.parse(JSON.parse(x)),
528
- `Failed to parse 'Addresses' from JSON`,
757
+ (x) => Liabilities$inboundSchema.parse(JSON.parse(x)),
758
+ `Failed to parse 'Liabilities' from JSON`,
759
+ );
760
+ }
761
+
762
+ /** @internal */
763
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
764
+ z.ZodNativeEnum<
765
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
766
+ > = z.nativeEnum(
767
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType,
768
+ );
769
+
770
+ /** @internal */
771
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
772
+ z.ZodNativeEnum<
773
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
774
+ > =
775
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
776
+
777
+ /**
778
+ * @internal
779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
780
+ */
781
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
782
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
783
+ export const inboundSchema =
784
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
785
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
786
+ export const outboundSchema =
787
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
788
+ }
789
+
790
+ /** @internal */
791
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
792
+ z.ZodType<
793
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
794
+ z.ZodTypeDef,
795
+ unknown
796
+ > = z.object({
797
+ type:
798
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema,
799
+ attributes: CustomerAssetAttributes$inboundSchema,
800
+ links: z.record(LinkObject$inboundSchema).optional(),
801
+ meta: z.record(z.any()).optional(),
802
+ });
803
+
804
+ /** @internal */
805
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
806
+ {
807
+ type: string;
808
+ attributes: CustomerAssetAttributes$Outbound;
809
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
810
+ meta?: { [k: string]: any } | undefined;
811
+ };
812
+
813
+ /** @internal */
814
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
815
+ z.ZodType<
816
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
817
+ z.ZodTypeDef,
818
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
819
+ > = z.object({
820
+ type:
821
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
822
+ attributes: CustomerAssetAttributes$outboundSchema,
823
+ links: z.record(LinkObject$outboundSchema).optional(),
824
+ meta: z.record(z.any()).optional(),
825
+ });
826
+
827
+ /**
828
+ * @internal
829
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
830
+ */
831
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$ {
832
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
833
+ export const inboundSchema =
834
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
835
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
836
+ export const outboundSchema =
837
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
838
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
839
+ export type Outbound =
840
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
841
+ }
842
+
843
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
844
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData:
845
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
846
+ ): string {
847
+ return JSON.stringify(
848
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
849
+ .parse(
850
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
851
+ ),
852
+ );
853
+ }
854
+
855
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
856
+ jsonString: string,
857
+ ): SafeParseResult<
858
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
859
+ SDKValidationError
860
+ > {
861
+ return safeParse(
862
+ jsonString,
863
+ (x) =>
864
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
865
+ .parse(JSON.parse(x)),
866
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
867
+ );
868
+ }
869
+
870
+ /** @internal */
871
+ export const Assets$inboundSchema: z.ZodType<Assets, z.ZodTypeDef, unknown> = z
872
+ .object({
873
+ data: z.array(
874
+ z.lazy(() =>
875
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
876
+ ),
877
+ ),
878
+ });
879
+
880
+ /** @internal */
881
+ export type Assets$Outbound = {
882
+ data: Array<
883
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound
884
+ >;
885
+ };
886
+
887
+ /** @internal */
888
+ export const Assets$outboundSchema: z.ZodType<
889
+ Assets$Outbound,
890
+ z.ZodTypeDef,
891
+ Assets
892
+ > = z.object({
893
+ data: z.array(
894
+ z.lazy(() =>
895
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
896
+ ),
897
+ ),
898
+ });
899
+
900
+ /**
901
+ * @internal
902
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
903
+ */
904
+ export namespace Assets$ {
905
+ /** @deprecated use `Assets$inboundSchema` instead. */
906
+ export const inboundSchema = Assets$inboundSchema;
907
+ /** @deprecated use `Assets$outboundSchema` instead. */
908
+ export const outboundSchema = Assets$outboundSchema;
909
+ /** @deprecated use `Assets$Outbound` instead. */
910
+ export type Outbound = Assets$Outbound;
911
+ }
912
+
913
+ export function assetsToJSON(assets: Assets): string {
914
+ return JSON.stringify(Assets$outboundSchema.parse(assets));
915
+ }
916
+
917
+ export function assetsFromJSON(
918
+ jsonString: string,
919
+ ): SafeParseResult<Assets, SDKValidationError> {
920
+ return safeParse(
921
+ jsonString,
922
+ (x) => Assets$inboundSchema.parse(JSON.parse(x)),
923
+ `Failed to parse 'Assets' from JSON`,
529
924
  );
530
925
  }
531
926
 
@@ -536,11 +931,15 @@ export const Relationships$inboundSchema: z.ZodType<
536
931
  unknown
537
932
  > = z.object({
538
933
  addresses: z.lazy(() => Addresses$inboundSchema).optional(),
934
+ liabilities: z.lazy(() => Liabilities$inboundSchema).optional(),
935
+ assets: z.lazy(() => Assets$inboundSchema).optional(),
539
936
  });
540
937
 
541
938
  /** @internal */
542
939
  export type Relationships$Outbound = {
543
940
  addresses?: Addresses$Outbound | undefined;
941
+ liabilities?: Liabilities$Outbound | undefined;
942
+ assets?: Assets$Outbound | undefined;
544
943
  };
545
944
 
546
945
  /** @internal */
@@ -550,6 +949,8 @@ export const Relationships$outboundSchema: z.ZodType<
550
949
  Relationships
551
950
  > = z.object({
552
951
  addresses: z.lazy(() => Addresses$outboundSchema).optional(),
952
+ liabilities: z.lazy(() => Liabilities$outboundSchema).optional(),
953
+ assets: z.lazy(() => Assets$outboundSchema).optional(),
553
954
  });
554
955
 
555
956
  /**