@financeable/aggregation 0.11.0 → 0.12.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 (102) hide show
  1. package/README.md +4 -0
  2. package/docs/sdks/applications/README.md +144 -0
  3. package/examples/package-lock.json +1 -1
  4. package/funcs/applicationsGet.d.ts +14 -0
  5. package/funcs/applicationsGet.d.ts.map +1 -0
  6. package/funcs/applicationsGet.js +122 -0
  7. package/funcs/applicationsGet.js.map +1 -0
  8. package/funcs/applicationsList.d.ts +14 -0
  9. package/funcs/applicationsList.d.ts.map +1 -0
  10. package/funcs/applicationsList.js +117 -0
  11. package/funcs/applicationsList.js.map +1 -0
  12. package/lib/config.d.ts +3 -3
  13. package/lib/config.js +3 -3
  14. package/models/components/businessloanbusinessapplicationrelationships.d.ts +21 -21
  15. package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
  16. package/models/components/businessloanbusinessapplicationrelationships.js +24 -26
  17. package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -1
  18. package/models/components/commercialapplicationjsonapirelationships.d.ts +15 -15
  19. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  20. package/models/components/commercialapplicationjsonapirelationships.js +18 -18
  21. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
  22. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +36 -36
  23. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  24. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +46 -44
  25. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  26. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +3 -3
  27. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  28. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +3 -3
  29. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  30. package/models/components/customerattributes.d.ts +0 -22
  31. package/models/components/customerattributes.d.ts.map +1 -1
  32. package/models/components/customerattributes.js +0 -10
  33. package/models/components/customerattributes.js.map +1 -1
  34. package/models/components/customerattributescreateitem.d.ts +112 -0
  35. package/models/components/customerattributescreateitem.d.ts.map +1 -0
  36. package/models/components/customerattributescreateitem.js +110 -0
  37. package/models/components/customerattributescreateitem.js.map +1 -0
  38. package/models/components/entityattributes.d.ts +129 -0
  39. package/models/components/entityattributes.d.ts.map +1 -1
  40. package/models/components/entityattributes.js +71 -1
  41. package/models/components/entityattributes.js.map +1 -1
  42. package/models/components/entityattributesinput.d.ts +41 -0
  43. package/models/components/entityattributesinput.d.ts.map +1 -0
  44. package/models/components/entityattributesinput.js +81 -0
  45. package/models/components/entityattributesinput.js.map +1 -0
  46. package/models/components/index.d.ts +4 -0
  47. package/models/components/index.d.ts.map +1 -1
  48. package/models/components/index.js +4 -0
  49. package/models/components/index.js.map +1 -1
  50. package/models/components/paginationlinks.d.ts +47 -0
  51. package/models/components/paginationlinks.d.ts.map +1 -0
  52. package/models/components/paginationlinks.js +75 -0
  53. package/models/components/paginationlinks.js.map +1 -0
  54. package/models/components/paginationmeta.d.ts +47 -0
  55. package/models/components/paginationmeta.d.ts.map +1 -0
  56. package/models/components/paginationmeta.js +88 -0
  57. package/models/components/paginationmeta.js.map +1 -0
  58. package/models/components/personalloanpersonalapplicationrelationships.d.ts +3 -3
  59. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  60. package/models/components/personalloanpersonalapplicationrelationships.js +3 -3
  61. package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -1
  62. package/models/operations/createapplication.d.ts +218 -45
  63. package/models/operations/createapplication.d.ts.map +1 -1
  64. package/models/operations/createapplication.js +145 -45
  65. package/models/operations/createapplication.js.map +1 -1
  66. package/models/operations/getapplication.d.ts +703 -0
  67. package/models/operations/getapplication.d.ts.map +1 -0
  68. package/models/operations/getapplication.js +697 -0
  69. package/models/operations/getapplication.js.map +1 -0
  70. package/models/operations/index.d.ts +2 -0
  71. package/models/operations/index.d.ts.map +1 -1
  72. package/models/operations/index.js +2 -0
  73. package/models/operations/index.js.map +1 -1
  74. package/models/operations/listapplications.d.ts +141 -0
  75. package/models/operations/listapplications.d.ts.map +1 -0
  76. package/models/operations/listapplications.js +199 -0
  77. package/models/operations/listapplications.js.map +1 -0
  78. package/package.json +1 -1
  79. package/sdk/applications.d.ts +8 -0
  80. package/sdk/applications.d.ts.map +1 -1
  81. package/sdk/applications.js +14 -0
  82. package/sdk/applications.js.map +1 -1
  83. package/src/funcs/applicationsGet.ts +170 -0
  84. package/src/funcs/applicationsList.ts +164 -0
  85. package/src/lib/config.ts +3 -3
  86. package/src/models/components/businessloanbusinessapplicationrelationships.ts +52 -53
  87. package/src/models/components/commercialapplicationjsonapirelationships.ts +43 -67
  88. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +114 -94
  89. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +9 -9
  90. package/src/models/components/customerattributes.ts +0 -38
  91. package/src/models/components/customerattributescreateitem.ts +214 -0
  92. package/src/models/components/entityattributes.ts +134 -0
  93. package/src/models/components/entityattributesinput.ts +90 -0
  94. package/src/models/components/index.ts +4 -0
  95. package/src/models/components/paginationlinks.ts +88 -0
  96. package/src/models/components/paginationmeta.ts +99 -0
  97. package/src/models/components/personalloanpersonalapplicationrelationships.ts +9 -9
  98. package/src/models/operations/createapplication.ts +289 -62
  99. package/src/models/operations/getapplication.ts +1378 -0
  100. package/src/models/operations/index.ts +2 -0
  101. package/src/models/operations/listapplications.ts +364 -0
  102. package/src/sdk/applications.ts +30 -0
@@ -37,10 +37,28 @@ export type CreateApplicationApplicationsResponseBody = {
37
37
  errors: Array<components.ForbiddenError>;
38
38
  };
39
39
 
40
- export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
40
+ export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType =
41
41
  {
42
42
  CustomerAssets: "customer-assets",
43
43
  } as const;
44
+ export type CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType =
45
+ ClosedEnum<
46
+ typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType
47
+ >;
48
+
49
+ export type Eight = {
50
+ type:
51
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType;
52
+ id: string;
53
+ attributes: components.CustomerAssetAttributes;
54
+ links?: { [k: string]: components.LinkObject } | undefined;
55
+ meta?: { [k: string]: any } | undefined;
56
+ };
57
+
58
+ export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
59
+ {
60
+ CustomerLiabilities: "customer-liabilities",
61
+ } as const;
44
62
  export type CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
45
63
  ClosedEnum<
46
64
  typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONType
@@ -49,10 +67,13 @@ export type CreateApplicationIncludedApplicationsResponse201ApplicationJSONType
49
67
  export type Seven = {
50
68
  type: CreateApplicationIncludedApplicationsResponse201ApplicationJSONType;
51
69
  id: string;
70
+ attributes: components.CustomerLiabilityAttributes;
71
+ links?: { [k: string]: components.LinkObject } | undefined;
72
+ meta?: { [k: string]: any } | undefined;
52
73
  };
53
74
 
54
75
  export const CreateApplicationIncludedApplicationsResponse201Type = {
55
- CustomerLiabilities: "customer-liabilities",
76
+ Customers: "customers",
56
77
  } as const;
57
78
  export type CreateApplicationIncludedApplicationsResponse201Type = ClosedEnum<
58
79
  typeof CreateApplicationIncludedApplicationsResponse201Type
@@ -61,10 +82,16 @@ export type CreateApplicationIncludedApplicationsResponse201Type = ClosedEnum<
61
82
  export type Six = {
62
83
  type: CreateApplicationIncludedApplicationsResponse201Type;
63
84
  id: string;
85
+ /**
86
+ * A customer of the proposed financing
87
+ */
88
+ attributes: components.CustomerAttributes;
89
+ links?: { [k: string]: components.LinkObject } | undefined;
90
+ meta?: { [k: string]: any } | undefined;
64
91
  };
65
92
 
66
93
  export const CreateApplicationIncludedApplicationsResponseType = {
67
- Customers: "customers",
94
+ LoanDetails: "loan-details",
68
95
  } as const;
69
96
  export type CreateApplicationIncludedApplicationsResponseType = ClosedEnum<
70
97
  typeof CreateApplicationIncludedApplicationsResponseType
@@ -73,10 +100,16 @@ export type CreateApplicationIncludedApplicationsResponseType = ClosedEnum<
73
100
  export type Five = {
74
101
  type: CreateApplicationIncludedApplicationsResponseType;
75
102
  id: string;
103
+ /**
104
+ * Loan details model
105
+ */
106
+ attributes: components.LoanDetailsAttributes;
107
+ links?: { [k: string]: components.LinkObject } | undefined;
108
+ meta?: { [k: string]: any } | undefined;
76
109
  };
77
110
 
78
111
  export const CreateApplicationIncludedApplicationsType = {
79
- LoanDetails: "loan-details",
112
+ Entities: "entities",
80
113
  } as const;
81
114
  export type CreateApplicationIncludedApplicationsType = ClosedEnum<
82
115
  typeof CreateApplicationIncludedApplicationsType
@@ -85,10 +118,13 @@ export type CreateApplicationIncludedApplicationsType = ClosedEnum<
85
118
  export type Four = {
86
119
  type: CreateApplicationIncludedApplicationsType;
87
120
  id: string;
121
+ attributes: components.EntityAttributes;
122
+ links?: { [k: string]: components.LinkObject } | undefined;
123
+ meta?: { [k: string]: any } | undefined;
88
124
  };
89
125
 
90
126
  export const CreateApplicationIncludedType = {
91
- Entities: "entities",
127
+ Assets: "assets",
92
128
  } as const;
93
129
  export type CreateApplicationIncludedType = ClosedEnum<
94
130
  typeof CreateApplicationIncludedType
@@ -97,6 +133,12 @@ export type CreateApplicationIncludedType = ClosedEnum<
97
133
  export type Three = {
98
134
  type: CreateApplicationIncludedType;
99
135
  id: string;
136
+ /**
137
+ * Type of asset for secured commercial loans
138
+ */
139
+ attributes: components.CommercialSecuredLoanAssetAttributes;
140
+ links?: { [k: string]: components.LinkObject } | undefined;
141
+ meta?: { [k: string]: any } | undefined;
100
142
  };
101
143
 
102
144
  export const IncludedType = {
@@ -104,9 +146,15 @@ export const IncludedType = {
104
146
  } as const;
105
147
  export type IncludedType = ClosedEnum<typeof IncludedType>;
106
148
 
107
- export type Included2 = {
149
+ export type CreateApplicationIncluded2 = {
108
150
  type: IncludedType;
109
151
  id: string;
152
+ /**
153
+ * The asset to be obtained by the customer, using the proposed loan financing.
154
+ */
155
+ attributes: components.ConsumerSecuredLoanAssetAttributes;
156
+ links?: { [k: string]: components.LinkObject } | undefined;
157
+ meta?: { [k: string]: any } | undefined;
110
158
  };
111
159
 
112
160
  export const Type = {
@@ -114,19 +162,23 @@ export const Type = {
114
162
  } as const;
115
163
  export type Type = ClosedEnum<typeof Type>;
116
164
 
117
- export type Included1 = {
165
+ export type CreateApplicationIncluded1 = {
118
166
  type: Type;
119
167
  id: string;
168
+ attributes: components.AddressAttributes;
169
+ links?: { [k: string]: components.LinkObject } | undefined;
170
+ meta?: { [k: string]: any } | undefined;
120
171
  };
121
172
 
122
173
  export type Included =
123
- | Included1
124
- | Included2
174
+ | CreateApplicationIncluded1
175
+ | CreateApplicationIncluded2
125
176
  | Three
126
177
  | Four
127
178
  | Five
128
179
  | Six
129
- | Seven;
180
+ | Seven
181
+ | Eight;
130
182
 
131
183
  export type Links = {};
132
184
 
@@ -139,7 +191,16 @@ export type CreateApplicationResponseBody = {
139
191
  */
140
192
  data: components.ApplicationResource;
141
193
  included?:
142
- | Array<Included1 | Included2 | Three | Four | Five | Six | Seven>
194
+ | Array<
195
+ | CreateApplicationIncluded1
196
+ | CreateApplicationIncluded2
197
+ | Three
198
+ | Four
199
+ | Five
200
+ | Six
201
+ | Seven
202
+ | Eight
203
+ >
143
204
  | undefined;
144
205
  links?: Links | undefined;
145
206
  };
@@ -405,6 +466,95 @@ export function createApplicationApplicationsResponseBodyFromJSON(
405
466
  );
406
467
  }
407
468
 
469
+ /** @internal */
470
+ export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema:
471
+ z.ZodNativeEnum<
472
+ typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType
473
+ > = z.nativeEnum(
474
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType,
475
+ );
476
+
477
+ /** @internal */
478
+ export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema:
479
+ z.ZodNativeEnum<
480
+ typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType
481
+ > =
482
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
483
+
484
+ /**
485
+ * @internal
486
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
487
+ */
488
+ export namespace CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$ {
489
+ /** @deprecated use `CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema` instead. */
490
+ export const inboundSchema =
491
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
492
+ /** @deprecated use `CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema` instead. */
493
+ export const outboundSchema =
494
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema;
495
+ }
496
+
497
+ /** @internal */
498
+ export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
499
+ .object({
500
+ type:
501
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema,
502
+ id: z.string(),
503
+ attributes: components.CustomerAssetAttributes$inboundSchema,
504
+ links: z.record(components.LinkObject$inboundSchema).optional(),
505
+ meta: z.record(z.any()).optional(),
506
+ });
507
+
508
+ /** @internal */
509
+ export type Eight$Outbound = {
510
+ type: string;
511
+ id: string;
512
+ attributes: components.CustomerAssetAttributes$Outbound;
513
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
514
+ meta?: { [k: string]: any } | undefined;
515
+ };
516
+
517
+ /** @internal */
518
+ export const Eight$outboundSchema: z.ZodType<
519
+ Eight$Outbound,
520
+ z.ZodTypeDef,
521
+ Eight
522
+ > = z.object({
523
+ type:
524
+ CreateApplicationIncludedApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema,
525
+ id: z.string(),
526
+ attributes: components.CustomerAssetAttributes$outboundSchema,
527
+ links: z.record(components.LinkObject$outboundSchema).optional(),
528
+ meta: z.record(z.any()).optional(),
529
+ });
530
+
531
+ /**
532
+ * @internal
533
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
534
+ */
535
+ export namespace Eight$ {
536
+ /** @deprecated use `Eight$inboundSchema` instead. */
537
+ export const inboundSchema = Eight$inboundSchema;
538
+ /** @deprecated use `Eight$outboundSchema` instead. */
539
+ export const outboundSchema = Eight$outboundSchema;
540
+ /** @deprecated use `Eight$Outbound` instead. */
541
+ export type Outbound = Eight$Outbound;
542
+ }
543
+
544
+ export function eightToJSON(eight: Eight): string {
545
+ return JSON.stringify(Eight$outboundSchema.parse(eight));
546
+ }
547
+
548
+ export function eightFromJSON(
549
+ jsonString: string,
550
+ ): SafeParseResult<Eight, SDKValidationError> {
551
+ return safeParse(
552
+ jsonString,
553
+ (x) => Eight$inboundSchema.parse(JSON.parse(x)),
554
+ `Failed to parse 'Eight' from JSON`,
555
+ );
556
+ }
557
+
408
558
  /** @internal */
409
559
  export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema:
410
560
  z.ZodNativeEnum<
@@ -439,12 +589,18 @@ export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
439
589
  type:
440
590
  CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema,
441
591
  id: z.string(),
592
+ attributes: components.CustomerLiabilityAttributes$inboundSchema,
593
+ links: z.record(components.LinkObject$inboundSchema).optional(),
594
+ meta: z.record(z.any()).optional(),
442
595
  });
443
596
 
444
597
  /** @internal */
445
598
  export type Seven$Outbound = {
446
599
  type: string;
447
600
  id: string;
601
+ attributes: components.CustomerLiabilityAttributes$Outbound;
602
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
603
+ meta?: { [k: string]: any } | undefined;
448
604
  };
449
605
 
450
606
  /** @internal */
@@ -456,6 +612,9 @@ export const Seven$outboundSchema: z.ZodType<
456
612
  type:
457
613
  CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$outboundSchema,
458
614
  id: z.string(),
615
+ attributes: components.CustomerLiabilityAttributes$outboundSchema,
616
+ links: z.record(components.LinkObject$outboundSchema).optional(),
617
+ meta: z.record(z.any()).optional(),
459
618
  });
460
619
 
461
620
  /**
@@ -513,12 +672,18 @@ export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
513
672
  .object({
514
673
  type: CreateApplicationIncludedApplicationsResponse201Type$inboundSchema,
515
674
  id: z.string(),
675
+ attributes: components.CustomerAttributes$inboundSchema,
676
+ links: z.record(components.LinkObject$inboundSchema).optional(),
677
+ meta: z.record(z.any()).optional(),
516
678
  });
517
679
 
518
680
  /** @internal */
519
681
  export type Six$Outbound = {
520
682
  type: string;
521
683
  id: string;
684
+ attributes: components.CustomerAttributes$Outbound;
685
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
686
+ meta?: { [k: string]: any } | undefined;
522
687
  };
523
688
 
524
689
  /** @internal */
@@ -526,6 +691,9 @@ export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
526
691
  .object({
527
692
  type: CreateApplicationIncludedApplicationsResponse201Type$outboundSchema,
528
693
  id: z.string(),
694
+ attributes: components.CustomerAttributes$outboundSchema,
695
+ links: z.record(components.LinkObject$outboundSchema).optional(),
696
+ meta: z.record(z.any()).optional(),
529
697
  });
530
698
 
531
699
  /**
@@ -583,12 +751,18 @@ export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
583
751
  .object({
584
752
  type: CreateApplicationIncludedApplicationsResponseType$inboundSchema,
585
753
  id: z.string(),
754
+ attributes: components.LoanDetailsAttributes$inboundSchema,
755
+ links: z.record(components.LinkObject$inboundSchema).optional(),
756
+ meta: z.record(z.any()).optional(),
586
757
  });
587
758
 
588
759
  /** @internal */
589
760
  export type Five$Outbound = {
590
761
  type: string;
591
762
  id: string;
763
+ attributes: components.LoanDetailsAttributes$Outbound;
764
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
765
+ meta?: { [k: string]: any } | undefined;
592
766
  };
593
767
 
594
768
  /** @internal */
@@ -596,6 +770,9 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
596
770
  z.object({
597
771
  type: CreateApplicationIncludedApplicationsResponseType$outboundSchema,
598
772
  id: z.string(),
773
+ attributes: components.LoanDetailsAttributes$outboundSchema,
774
+ links: z.record(components.LinkObject$outboundSchema).optional(),
775
+ meta: z.record(z.any()).optional(),
599
776
  });
600
777
 
601
778
  /**
@@ -653,12 +830,18 @@ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
653
830
  .object({
654
831
  type: CreateApplicationIncludedApplicationsType$inboundSchema,
655
832
  id: z.string(),
833
+ attributes: components.EntityAttributes$inboundSchema,
834
+ links: z.record(components.LinkObject$inboundSchema).optional(),
835
+ meta: z.record(z.any()).optional(),
656
836
  });
657
837
 
658
838
  /** @internal */
659
839
  export type Four$Outbound = {
660
840
  type: string;
661
841
  id: string;
842
+ attributes: components.EntityAttributes$Outbound;
843
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
844
+ meta?: { [k: string]: any } | undefined;
662
845
  };
663
846
 
664
847
  /** @internal */
@@ -666,6 +849,9 @@ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
666
849
  z.object({
667
850
  type: CreateApplicationIncludedApplicationsType$outboundSchema,
668
851
  id: z.string(),
852
+ attributes: components.EntityAttributes$outboundSchema,
853
+ links: z.record(components.LinkObject$outboundSchema).optional(),
854
+ meta: z.record(z.any()).optional(),
669
855
  });
670
856
 
671
857
  /**
@@ -721,12 +907,18 @@ export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
721
907
  .object({
722
908
  type: CreateApplicationIncludedType$inboundSchema,
723
909
  id: z.string(),
910
+ attributes: components.CommercialSecuredLoanAssetAttributes$inboundSchema,
911
+ links: z.record(components.LinkObject$inboundSchema).optional(),
912
+ meta: z.record(z.any()).optional(),
724
913
  });
725
914
 
726
915
  /** @internal */
727
916
  export type Three$Outbound = {
728
917
  type: string;
729
918
  id: string;
919
+ attributes: components.CommercialSecuredLoanAssetAttributes$Outbound;
920
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
921
+ meta?: { [k: string]: any } | undefined;
730
922
  };
731
923
 
732
924
  /** @internal */
@@ -737,6 +929,9 @@ export const Three$outboundSchema: z.ZodType<
737
929
  > = z.object({
738
930
  type: CreateApplicationIncludedType$outboundSchema,
739
931
  id: z.string(),
932
+ attributes: components.CommercialSecuredLoanAssetAttributes$outboundSchema,
933
+ links: z.record(components.LinkObject$outboundSchema).optional(),
934
+ meta: z.record(z.any()).optional(),
740
935
  });
741
936
 
742
937
  /**
@@ -786,55 +981,68 @@ export namespace IncludedType$ {
786
981
  }
787
982
 
788
983
  /** @internal */
789
- export const Included2$inboundSchema: z.ZodType<
790
- Included2,
984
+ export const CreateApplicationIncluded2$inboundSchema: z.ZodType<
985
+ CreateApplicationIncluded2,
791
986
  z.ZodTypeDef,
792
987
  unknown
793
988
  > = z.object({
794
989
  type: IncludedType$inboundSchema,
795
990
  id: z.string(),
991
+ attributes: components.ConsumerSecuredLoanAssetAttributes$inboundSchema,
992
+ links: z.record(components.LinkObject$inboundSchema).optional(),
993
+ meta: z.record(z.any()).optional(),
796
994
  });
797
995
 
798
996
  /** @internal */
799
- export type Included2$Outbound = {
997
+ export type CreateApplicationIncluded2$Outbound = {
800
998
  type: string;
801
999
  id: string;
1000
+ attributes: components.ConsumerSecuredLoanAssetAttributes$Outbound;
1001
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
1002
+ meta?: { [k: string]: any } | undefined;
802
1003
  };
803
1004
 
804
1005
  /** @internal */
805
- export const Included2$outboundSchema: z.ZodType<
806
- Included2$Outbound,
1006
+ export const CreateApplicationIncluded2$outboundSchema: z.ZodType<
1007
+ CreateApplicationIncluded2$Outbound,
807
1008
  z.ZodTypeDef,
808
- Included2
1009
+ CreateApplicationIncluded2
809
1010
  > = z.object({
810
1011
  type: IncludedType$outboundSchema,
811
1012
  id: z.string(),
1013
+ attributes: components.ConsumerSecuredLoanAssetAttributes$outboundSchema,
1014
+ links: z.record(components.LinkObject$outboundSchema).optional(),
1015
+ meta: z.record(z.any()).optional(),
812
1016
  });
813
1017
 
814
1018
  /**
815
1019
  * @internal
816
1020
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
817
1021
  */
818
- export namespace Included2$ {
819
- /** @deprecated use `Included2$inboundSchema` instead. */
820
- export const inboundSchema = Included2$inboundSchema;
821
- /** @deprecated use `Included2$outboundSchema` instead. */
822
- export const outboundSchema = Included2$outboundSchema;
823
- /** @deprecated use `Included2$Outbound` instead. */
824
- export type Outbound = Included2$Outbound;
1022
+ export namespace CreateApplicationIncluded2$ {
1023
+ /** @deprecated use `CreateApplicationIncluded2$inboundSchema` instead. */
1024
+ export const inboundSchema = CreateApplicationIncluded2$inboundSchema;
1025
+ /** @deprecated use `CreateApplicationIncluded2$outboundSchema` instead. */
1026
+ export const outboundSchema = CreateApplicationIncluded2$outboundSchema;
1027
+ /** @deprecated use `CreateApplicationIncluded2$Outbound` instead. */
1028
+ export type Outbound = CreateApplicationIncluded2$Outbound;
825
1029
  }
826
1030
 
827
- export function included2ToJSON(included2: Included2): string {
828
- return JSON.stringify(Included2$outboundSchema.parse(included2));
1031
+ export function createApplicationIncluded2ToJSON(
1032
+ createApplicationIncluded2: CreateApplicationIncluded2,
1033
+ ): string {
1034
+ return JSON.stringify(
1035
+ CreateApplicationIncluded2$outboundSchema.parse(createApplicationIncluded2),
1036
+ );
829
1037
  }
830
1038
 
831
- export function included2FromJSON(
1039
+ export function createApplicationIncluded2FromJSON(
832
1040
  jsonString: string,
833
- ): SafeParseResult<Included2, SDKValidationError> {
1041
+ ): SafeParseResult<CreateApplicationIncluded2, SDKValidationError> {
834
1042
  return safeParse(
835
1043
  jsonString,
836
- (x) => Included2$inboundSchema.parse(JSON.parse(x)),
837
- `Failed to parse 'Included2' from JSON`,
1044
+ (x) => CreateApplicationIncluded2$inboundSchema.parse(JSON.parse(x)),
1045
+ `Failed to parse 'CreateApplicationIncluded2' from JSON`,
838
1046
  );
839
1047
  }
840
1048
 
@@ -859,55 +1067,68 @@ export namespace Type$ {
859
1067
  }
860
1068
 
861
1069
  /** @internal */
862
- export const Included1$inboundSchema: z.ZodType<
863
- Included1,
1070
+ export const CreateApplicationIncluded1$inboundSchema: z.ZodType<
1071
+ CreateApplicationIncluded1,
864
1072
  z.ZodTypeDef,
865
1073
  unknown
866
1074
  > = z.object({
867
1075
  type: Type$inboundSchema,
868
1076
  id: z.string(),
1077
+ attributes: components.AddressAttributes$inboundSchema,
1078
+ links: z.record(components.LinkObject$inboundSchema).optional(),
1079
+ meta: z.record(z.any()).optional(),
869
1080
  });
870
1081
 
871
1082
  /** @internal */
872
- export type Included1$Outbound = {
1083
+ export type CreateApplicationIncluded1$Outbound = {
873
1084
  type: string;
874
1085
  id: string;
1086
+ attributes: components.AddressAttributes$Outbound;
1087
+ links?: { [k: string]: components.LinkObject$Outbound } | undefined;
1088
+ meta?: { [k: string]: any } | undefined;
875
1089
  };
876
1090
 
877
1091
  /** @internal */
878
- export const Included1$outboundSchema: z.ZodType<
879
- Included1$Outbound,
1092
+ export const CreateApplicationIncluded1$outboundSchema: z.ZodType<
1093
+ CreateApplicationIncluded1$Outbound,
880
1094
  z.ZodTypeDef,
881
- Included1
1095
+ CreateApplicationIncluded1
882
1096
  > = z.object({
883
1097
  type: Type$outboundSchema,
884
1098
  id: z.string(),
1099
+ attributes: components.AddressAttributes$outboundSchema,
1100
+ links: z.record(components.LinkObject$outboundSchema).optional(),
1101
+ meta: z.record(z.any()).optional(),
885
1102
  });
886
1103
 
887
1104
  /**
888
1105
  * @internal
889
1106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
890
1107
  */
891
- export namespace Included1$ {
892
- /** @deprecated use `Included1$inboundSchema` instead. */
893
- export const inboundSchema = Included1$inboundSchema;
894
- /** @deprecated use `Included1$outboundSchema` instead. */
895
- export const outboundSchema = Included1$outboundSchema;
896
- /** @deprecated use `Included1$Outbound` instead. */
897
- export type Outbound = Included1$Outbound;
1108
+ export namespace CreateApplicationIncluded1$ {
1109
+ /** @deprecated use `CreateApplicationIncluded1$inboundSchema` instead. */
1110
+ export const inboundSchema = CreateApplicationIncluded1$inboundSchema;
1111
+ /** @deprecated use `CreateApplicationIncluded1$outboundSchema` instead. */
1112
+ export const outboundSchema = CreateApplicationIncluded1$outboundSchema;
1113
+ /** @deprecated use `CreateApplicationIncluded1$Outbound` instead. */
1114
+ export type Outbound = CreateApplicationIncluded1$Outbound;
898
1115
  }
899
1116
 
900
- export function included1ToJSON(included1: Included1): string {
901
- return JSON.stringify(Included1$outboundSchema.parse(included1));
1117
+ export function createApplicationIncluded1ToJSON(
1118
+ createApplicationIncluded1: CreateApplicationIncluded1,
1119
+ ): string {
1120
+ return JSON.stringify(
1121
+ CreateApplicationIncluded1$outboundSchema.parse(createApplicationIncluded1),
1122
+ );
902
1123
  }
903
1124
 
904
- export function included1FromJSON(
1125
+ export function createApplicationIncluded1FromJSON(
905
1126
  jsonString: string,
906
- ): SafeParseResult<Included1, SDKValidationError> {
1127
+ ): SafeParseResult<CreateApplicationIncluded1, SDKValidationError> {
907
1128
  return safeParse(
908
1129
  jsonString,
909
- (x) => Included1$inboundSchema.parse(JSON.parse(x)),
910
- `Failed to parse 'Included1' from JSON`,
1130
+ (x) => CreateApplicationIncluded1$inboundSchema.parse(JSON.parse(x)),
1131
+ `Failed to parse 'CreateApplicationIncluded1' from JSON`,
911
1132
  );
912
1133
  }
913
1134
 
@@ -917,24 +1138,26 @@ export const Included$inboundSchema: z.ZodType<
917
1138
  z.ZodTypeDef,
918
1139
  unknown
919
1140
  > = z.union([
920
- z.lazy(() => Included1$inboundSchema),
921
- z.lazy(() => Included2$inboundSchema),
1141
+ z.lazy(() => CreateApplicationIncluded1$inboundSchema),
1142
+ z.lazy(() => CreateApplicationIncluded2$inboundSchema),
922
1143
  z.lazy(() => Three$inboundSchema),
923
1144
  z.lazy(() => Four$inboundSchema),
924
1145
  z.lazy(() => Five$inboundSchema),
925
1146
  z.lazy(() => Six$inboundSchema),
926
1147
  z.lazy(() => Seven$inboundSchema),
1148
+ z.lazy(() => Eight$inboundSchema),
927
1149
  ]);
928
1150
 
929
1151
  /** @internal */
930
1152
  export type Included$Outbound =
931
- | Included1$Outbound
932
- | Included2$Outbound
1153
+ | CreateApplicationIncluded1$Outbound
1154
+ | CreateApplicationIncluded2$Outbound
933
1155
  | Three$Outbound
934
1156
  | Four$Outbound
935
1157
  | Five$Outbound
936
1158
  | Six$Outbound
937
- | Seven$Outbound;
1159
+ | Seven$Outbound
1160
+ | Eight$Outbound;
938
1161
 
939
1162
  /** @internal */
940
1163
  export const Included$outboundSchema: z.ZodType<
@@ -942,13 +1165,14 @@ export const Included$outboundSchema: z.ZodType<
942
1165
  z.ZodTypeDef,
943
1166
  Included
944
1167
  > = z.union([
945
- z.lazy(() => Included1$outboundSchema),
946
- z.lazy(() => Included2$outboundSchema),
1168
+ z.lazy(() => CreateApplicationIncluded1$outboundSchema),
1169
+ z.lazy(() => CreateApplicationIncluded2$outboundSchema),
947
1170
  z.lazy(() => Three$outboundSchema),
948
1171
  z.lazy(() => Four$outboundSchema),
949
1172
  z.lazy(() => Five$outboundSchema),
950
1173
  z.lazy(() => Six$outboundSchema),
951
1174
  z.lazy(() => Seven$outboundSchema),
1175
+ z.lazy(() => Eight$outboundSchema),
952
1176
  ]);
953
1177
 
954
1178
  /**
@@ -1028,13 +1252,14 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
1028
1252
  data: components.ApplicationResource$inboundSchema,
1029
1253
  included: z.array(
1030
1254
  z.union([
1031
- z.lazy(() => Included1$inboundSchema),
1032
- z.lazy(() => Included2$inboundSchema),
1255
+ z.lazy(() => CreateApplicationIncluded1$inboundSchema),
1256
+ z.lazy(() => CreateApplicationIncluded2$inboundSchema),
1033
1257
  z.lazy(() => Three$inboundSchema),
1034
1258
  z.lazy(() => Four$inboundSchema),
1035
1259
  z.lazy(() => Five$inboundSchema),
1036
1260
  z.lazy(() => Six$inboundSchema),
1037
1261
  z.lazy(() => Seven$inboundSchema),
1262
+ z.lazy(() => Eight$inboundSchema),
1038
1263
  ]),
1039
1264
  ).optional(),
1040
1265
  links: z.lazy(() => Links$inboundSchema).optional(),
@@ -1045,13 +1270,14 @@ export type CreateApplicationResponseBody$Outbound = {
1045
1270
  data: components.ApplicationResource$Outbound;
1046
1271
  included?:
1047
1272
  | Array<
1048
- | Included1$Outbound
1049
- | Included2$Outbound
1273
+ | CreateApplicationIncluded1$Outbound
1274
+ | CreateApplicationIncluded2$Outbound
1050
1275
  | Three$Outbound
1051
1276
  | Four$Outbound
1052
1277
  | Five$Outbound
1053
1278
  | Six$Outbound
1054
1279
  | Seven$Outbound
1280
+ | Eight$Outbound
1055
1281
  >
1056
1282
  | undefined;
1057
1283
  links?: Links$Outbound | undefined;
@@ -1066,13 +1292,14 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
1066
1292
  data: components.ApplicationResource$outboundSchema,
1067
1293
  included: z.array(
1068
1294
  z.union([
1069
- z.lazy(() => Included1$outboundSchema),
1070
- z.lazy(() => Included2$outboundSchema),
1295
+ z.lazy(() => CreateApplicationIncluded1$outboundSchema),
1296
+ z.lazy(() => CreateApplicationIncluded2$outboundSchema),
1071
1297
  z.lazy(() => Three$outboundSchema),
1072
1298
  z.lazy(() => Four$outboundSchema),
1073
1299
  z.lazy(() => Five$outboundSchema),
1074
1300
  z.lazy(() => Six$outboundSchema),
1075
1301
  z.lazy(() => Seven$outboundSchema),
1302
+ z.lazy(() => Eight$outboundSchema),
1076
1303
  ]),
1077
1304
  ).optional(),
1078
1305
  links: z.lazy(() => Links$outboundSchema).optional(),