@financeable/aggregation 0.8.3 → 0.9.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 (156) hide show
  1. package/FUNCTIONS.md +153 -36
  2. package/README.md +475 -94
  3. package/docs/sdks/applications/README.md +9 -15
  4. package/docs/sdks/oauthtoken/README.md +5 -9
  5. package/docs/sdks/supportingdocuments/README.md +9 -16
  6. package/funcs/applicationsCreate.d.ts +3 -3
  7. package/funcs/applicationsCreate.d.ts.map +1 -1
  8. package/funcs/applicationsCreate.js +4 -6
  9. package/funcs/applicationsCreate.js.map +1 -1
  10. package/funcs/oauthTokenGet.d.ts +3 -2
  11. package/funcs/oauthTokenGet.d.ts.map +1 -1
  12. package/funcs/oauthTokenGet.js +4 -2
  13. package/funcs/oauthTokenGet.js.map +1 -1
  14. package/funcs/supportingDocumentsCreate.d.ts +3 -3
  15. package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
  16. package/funcs/supportingDocumentsCreate.js +5 -8
  17. package/funcs/supportingDocumentsCreate.js.map +1 -1
  18. package/hooks/types.d.ts +2 -0
  19. package/hooks/types.d.ts.map +1 -1
  20. package/index.d.ts +2 -0
  21. package/index.d.ts.map +1 -1
  22. package/index.js +3 -1
  23. package/index.js.map +1 -1
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +7 -3
  26. package/lib/config.d.ts.map +1 -1
  27. package/lib/config.js +3 -3
  28. package/lib/config.js.map +1 -1
  29. package/lib/files.d.ts +5 -0
  30. package/lib/files.d.ts.map +1 -1
  31. package/lib/files.js +41 -0
  32. package/lib/files.js.map +1 -1
  33. package/lib/matchers.d.ts +3 -10
  34. package/lib/matchers.d.ts.map +1 -1
  35. package/lib/matchers.js +33 -31
  36. package/lib/matchers.js.map +1 -1
  37. package/lib/sdks.d.ts +1 -0
  38. package/lib/sdks.d.ts.map +1 -1
  39. package/lib/sdks.js +3 -3
  40. package/lib/sdks.js.map +1 -1
  41. package/lib/security.d.ts +2 -2
  42. package/lib/security.d.ts.map +1 -1
  43. package/models/components/addressattributes.d.ts +8 -8
  44. package/models/components/addressattributes.d.ts.map +1 -1
  45. package/models/components/addressattributes.js +14 -13
  46. package/models/components/addressattributes.js.map +1 -1
  47. package/models/components/badrequesterror.d.ts +24 -24
  48. package/models/components/badrequesterror.d.ts.map +1 -1
  49. package/models/components/badrequesterror.js +37 -38
  50. package/models/components/badrequesterror.js.map +1 -1
  51. package/models/components/commercialsecuredapplicationpayload.d.ts +8 -8
  52. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  53. package/models/components/commercialsecuredapplicationpayload.js +13 -14
  54. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  55. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +90 -90
  56. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  57. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +116 -118
  58. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  59. package/models/components/customerattributes.d.ts +12 -1
  60. package/models/components/customerattributes.d.ts.map +1 -1
  61. package/models/components/customerattributes.js +5 -0
  62. package/models/components/customerattributes.js.map +1 -1
  63. package/models/components/forbiddenerror.d.ts +16 -16
  64. package/models/components/forbiddenerror.d.ts.map +1 -1
  65. package/models/components/forbiddenerror.js +25 -25
  66. package/models/components/forbiddenerror.js.map +1 -1
  67. package/models/components/loandetailsattributes.d.ts +8 -8
  68. package/models/components/loandetailsattributes.d.ts.map +1 -1
  69. package/models/components/loandetailsattributes.js +8 -8
  70. package/models/components/loandetailsattributes.js.map +1 -1
  71. package/models/components/supportingdocumentrelationships.d.ts +45 -45
  72. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  73. package/models/components/supportingdocumentrelationships.js +54 -54
  74. package/models/components/supportingdocumentrelationships.js.map +1 -1
  75. package/models/components/supportingdocumentresource.d.ts +8 -8
  76. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  77. package/models/components/supportingdocumentresource.js +13 -13
  78. package/models/components/supportingdocumentresource.js.map +1 -1
  79. package/models/errors/apierror.d.ts +8 -6
  80. package/models/errors/apierror.d.ts.map +1 -1
  81. package/models/errors/apierror.js +23 -10
  82. package/models/errors/apierror.js.map +1 -1
  83. package/models/errors/financeableerror.d.ts +19 -0
  84. package/models/errors/financeableerror.d.ts.map +1 -0
  85. package/models/errors/financeableerror.js +20 -0
  86. package/models/errors/financeableerror.js.map +1 -0
  87. package/models/errors/index.d.ts +1 -2
  88. package/models/errors/index.d.ts.map +1 -1
  89. package/models/errors/index.js +1 -2
  90. package/models/errors/index.js.map +1 -1
  91. package/models/errors/responsevalidationerror.d.ts +26 -0
  92. package/models/errors/responsevalidationerror.d.ts.map +1 -0
  93. package/models/errors/responsevalidationerror.js +66 -0
  94. package/models/errors/responsevalidationerror.js.map +1 -0
  95. package/models/errors/sdkvalidationerror.d.ts +1 -0
  96. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  97. package/models/errors/sdkvalidationerror.js +14 -0
  98. package/models/errors/sdkvalidationerror.js.map +1 -1
  99. package/models/operations/createapplication.d.ts +107 -30
  100. package/models/operations/createapplication.d.ts.map +1 -1
  101. package/models/operations/createapplication.js +125 -44
  102. package/models/operations/createapplication.js.map +1 -1
  103. package/models/operations/supportingdocumentscreate.d.ts +144 -0
  104. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  105. package/models/operations/supportingdocumentscreate.js +186 -1
  106. package/models/operations/supportingdocumentscreate.js.map +1 -1
  107. package/package.json +1 -1
  108. package/sdk/applications.d.ts +1 -1
  109. package/sdk/applications.d.ts.map +1 -1
  110. package/sdk/sdk.d.ts +2 -2
  111. package/sdk/sdk.d.ts.map +1 -1
  112. package/sdk/sdk.js +3 -3
  113. package/sdk/sdk.js.map +1 -1
  114. package/sdk/supportingdocuments.d.ts +1 -1
  115. package/sdk/supportingdocuments.d.ts.map +1 -1
  116. package/src/funcs/applicationsCreate.ts +30 -40
  117. package/src/funcs/oauthTokenGet.ts +24 -20
  118. package/src/funcs/supportingDocumentsCreate.ts +31 -42
  119. package/src/hooks/types.ts +2 -0
  120. package/src/index.ts +2 -0
  121. package/src/lib/config.ts +7 -3
  122. package/src/lib/files.ts +42 -0
  123. package/src/lib/matchers.ts +44 -41
  124. package/src/lib/sdks.ts +10 -4
  125. package/src/lib/security.ts +2 -2
  126. package/src/models/components/addressattributes.ts +14 -18
  127. package/src/models/components/badrequesterror.ts +48 -44
  128. package/src/models/components/commercialsecuredapplicationpayload.ts +15 -20
  129. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +178 -238
  130. package/src/models/components/customerattributes.ts +20 -1
  131. package/src/models/components/forbiddenerror.ts +30 -32
  132. package/src/models/components/loandetailsattributes.ts +16 -16
  133. package/src/models/components/supportingdocumentrelationships.ts +117 -82
  134. package/src/models/components/supportingdocumentresource.ts +18 -15
  135. package/src/models/errors/apierror.ts +29 -16
  136. package/src/models/errors/financeableerror.ts +35 -0
  137. package/src/models/errors/index.ts +1 -2
  138. package/src/models/errors/responsevalidationerror.ts +50 -0
  139. package/src/models/errors/sdkvalidationerror.ts +12 -0
  140. package/src/models/operations/createapplication.ts +299 -64
  141. package/src/models/operations/supportingdocumentscreate.ts +386 -0
  142. package/src/sdk/applications.ts +1 -1
  143. package/src/sdk/sdk.ts +7 -7
  144. package/src/sdk/supportingdocuments.ts +1 -1
  145. package/src/types/constdatetime.ts +1 -1
  146. package/types/constdatetime.js +1 -1
  147. package/models/errors/createapplication.d.ts +0 -73
  148. package/models/errors/createapplication.d.ts.map +0 -1
  149. package/models/errors/createapplication.js +0 -120
  150. package/models/errors/createapplication.js.map +0 -1
  151. package/models/errors/supportingdocumentscreate.d.ts +0 -143
  152. package/models/errors/supportingdocumentscreate.d.ts.map +0 -1
  153. package/models/errors/supportingdocumentscreate.js +0 -225
  154. package/models/errors/supportingdocumentscreate.js.map +0 -1
  155. package/src/models/errors/createapplication.ts +0 -149
  156. package/src/models/errors/supportingdocumentscreate.ts +0 -342
@@ -19,6 +19,20 @@ export type CreateApplicationRequestBody = {
19
19
  | components.ConsumerSecuredApplicationPayload;
20
20
  };
21
21
 
22
+ /**
23
+ * The server cannot find the requested resource.
24
+ */
25
+ export type CreateApplicationApplicationsResponseResponseBody = {
26
+ errors: Array<components.ResourceNotFound>;
27
+ };
28
+
29
+ /**
30
+ * Access is forbidden.
31
+ */
32
+ export type CreateApplicationApplicationsResponseBody = {
33
+ errors: Array<components.ForbiddenError>;
34
+ };
35
+
22
36
  export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
23
37
  {
24
38
  CustomerAssets: "customer-assets",
@@ -86,7 +100,7 @@ export const IncludedType = {
86
100
  } as const;
87
101
  export type IncludedType = ClosedEnum<typeof IncludedType>;
88
102
 
89
- export type Two = {
103
+ export type Included2 = {
90
104
  type: IncludedType;
91
105
  id: string;
92
106
  };
@@ -96,12 +110,19 @@ export const Type = {
96
110
  } as const;
97
111
  export type Type = ClosedEnum<typeof Type>;
98
112
 
99
- export type One = {
113
+ export type Included1 = {
100
114
  type: Type;
101
115
  id: string;
102
116
  };
103
117
 
104
- export type Included = One | Two | Three | Four | Five | Six | Seven;
118
+ export type Included =
119
+ | Included1
120
+ | Included2
121
+ | Three
122
+ | Four
123
+ | Five
124
+ | Six
125
+ | Seven;
105
126
 
106
127
  export type Links = {};
107
128
 
@@ -113,10 +134,17 @@ export type CreateApplicationResponseBody = {
113
134
  * Represents either a Consumer or Commercial Application resource
114
135
  */
115
136
  data: components.ApplicationResource;
116
- included?: Array<One | Two | Three | Four | Five | Six | Seven> | undefined;
137
+ included?:
138
+ | Array<Included1 | Included2 | Three | Four | Five | Six | Seven>
139
+ | undefined;
117
140
  links?: Links | undefined;
118
141
  };
119
142
 
143
+ export type CreateApplicationResponse =
144
+ | CreateApplicationResponseBody
145
+ | CreateApplicationApplicationsResponseBody
146
+ | CreateApplicationApplicationsResponseResponseBody;
147
+
120
148
  /** @internal */
121
149
  export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
122
150
  .union([
@@ -227,6 +255,140 @@ export function createApplicationRequestBodyFromJSON(
227
255
  );
228
256
  }
229
257
 
258
+ /** @internal */
259
+ export const CreateApplicationApplicationsResponseResponseBody$inboundSchema:
260
+ z.ZodType<
261
+ CreateApplicationApplicationsResponseResponseBody,
262
+ z.ZodTypeDef,
263
+ unknown
264
+ > = z.object({
265
+ errors: z.array(components.ResourceNotFound$inboundSchema),
266
+ });
267
+
268
+ /** @internal */
269
+ export type CreateApplicationApplicationsResponseResponseBody$Outbound = {
270
+ errors: Array<components.ResourceNotFound$Outbound>;
271
+ };
272
+
273
+ /** @internal */
274
+ export const CreateApplicationApplicationsResponseResponseBody$outboundSchema:
275
+ z.ZodType<
276
+ CreateApplicationApplicationsResponseResponseBody$Outbound,
277
+ z.ZodTypeDef,
278
+ CreateApplicationApplicationsResponseResponseBody
279
+ > = z.object({
280
+ errors: z.array(components.ResourceNotFound$outboundSchema),
281
+ });
282
+
283
+ /**
284
+ * @internal
285
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
286
+ */
287
+ export namespace CreateApplicationApplicationsResponseResponseBody$ {
288
+ /** @deprecated use `CreateApplicationApplicationsResponseResponseBody$inboundSchema` instead. */
289
+ export const inboundSchema =
290
+ CreateApplicationApplicationsResponseResponseBody$inboundSchema;
291
+ /** @deprecated use `CreateApplicationApplicationsResponseResponseBody$outboundSchema` instead. */
292
+ export const outboundSchema =
293
+ CreateApplicationApplicationsResponseResponseBody$outboundSchema;
294
+ /** @deprecated use `CreateApplicationApplicationsResponseResponseBody$Outbound` instead. */
295
+ export type Outbound =
296
+ CreateApplicationApplicationsResponseResponseBody$Outbound;
297
+ }
298
+
299
+ export function createApplicationApplicationsResponseResponseBodyToJSON(
300
+ createApplicationApplicationsResponseResponseBody:
301
+ CreateApplicationApplicationsResponseResponseBody,
302
+ ): string {
303
+ return JSON.stringify(
304
+ CreateApplicationApplicationsResponseResponseBody$outboundSchema.parse(
305
+ createApplicationApplicationsResponseResponseBody,
306
+ ),
307
+ );
308
+ }
309
+
310
+ export function createApplicationApplicationsResponseResponseBodyFromJSON(
311
+ jsonString: string,
312
+ ): SafeParseResult<
313
+ CreateApplicationApplicationsResponseResponseBody,
314
+ SDKValidationError
315
+ > {
316
+ return safeParse(
317
+ jsonString,
318
+ (x) =>
319
+ CreateApplicationApplicationsResponseResponseBody$inboundSchema.parse(
320
+ JSON.parse(x),
321
+ ),
322
+ `Failed to parse 'CreateApplicationApplicationsResponseResponseBody' from JSON`,
323
+ );
324
+ }
325
+
326
+ /** @internal */
327
+ export const CreateApplicationApplicationsResponseBody$inboundSchema: z.ZodType<
328
+ CreateApplicationApplicationsResponseBody,
329
+ z.ZodTypeDef,
330
+ unknown
331
+ > = z.object({
332
+ errors: z.array(components.ForbiddenError$inboundSchema),
333
+ });
334
+
335
+ /** @internal */
336
+ export type CreateApplicationApplicationsResponseBody$Outbound = {
337
+ errors: Array<components.ForbiddenError$Outbound>;
338
+ };
339
+
340
+ /** @internal */
341
+ export const CreateApplicationApplicationsResponseBody$outboundSchema:
342
+ z.ZodType<
343
+ CreateApplicationApplicationsResponseBody$Outbound,
344
+ z.ZodTypeDef,
345
+ CreateApplicationApplicationsResponseBody
346
+ > = z.object({
347
+ errors: z.array(components.ForbiddenError$outboundSchema),
348
+ });
349
+
350
+ /**
351
+ * @internal
352
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
353
+ */
354
+ export namespace CreateApplicationApplicationsResponseBody$ {
355
+ /** @deprecated use `CreateApplicationApplicationsResponseBody$inboundSchema` instead. */
356
+ export const inboundSchema =
357
+ CreateApplicationApplicationsResponseBody$inboundSchema;
358
+ /** @deprecated use `CreateApplicationApplicationsResponseBody$outboundSchema` instead. */
359
+ export const outboundSchema =
360
+ CreateApplicationApplicationsResponseBody$outboundSchema;
361
+ /** @deprecated use `CreateApplicationApplicationsResponseBody$Outbound` instead. */
362
+ export type Outbound = CreateApplicationApplicationsResponseBody$Outbound;
363
+ }
364
+
365
+ export function createApplicationApplicationsResponseBodyToJSON(
366
+ createApplicationApplicationsResponseBody:
367
+ CreateApplicationApplicationsResponseBody,
368
+ ): string {
369
+ return JSON.stringify(
370
+ CreateApplicationApplicationsResponseBody$outboundSchema.parse(
371
+ createApplicationApplicationsResponseBody,
372
+ ),
373
+ );
374
+ }
375
+
376
+ export function createApplicationApplicationsResponseBodyFromJSON(
377
+ jsonString: string,
378
+ ): SafeParseResult<
379
+ CreateApplicationApplicationsResponseBody,
380
+ SDKValidationError
381
+ > {
382
+ return safeParse(
383
+ jsonString,
384
+ (x) =>
385
+ CreateApplicationApplicationsResponseBody$inboundSchema.parse(
386
+ JSON.parse(x),
387
+ ),
388
+ `Failed to parse 'CreateApplicationApplicationsResponseBody' from JSON`,
389
+ );
390
+ }
391
+
230
392
  /** @internal */
231
393
  export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema:
232
394
  z.ZodNativeEnum<
@@ -608,49 +770,55 @@ export namespace IncludedType$ {
608
770
  }
609
771
 
610
772
  /** @internal */
611
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
612
- .object({
613
- type: IncludedType$inboundSchema,
614
- id: z.string(),
615
- });
773
+ export const Included2$inboundSchema: z.ZodType<
774
+ Included2,
775
+ z.ZodTypeDef,
776
+ unknown
777
+ > = z.object({
778
+ type: IncludedType$inboundSchema,
779
+ id: z.string(),
780
+ });
616
781
 
617
782
  /** @internal */
618
- export type Two$Outbound = {
783
+ export type Included2$Outbound = {
619
784
  type: string;
620
785
  id: string;
621
786
  };
622
787
 
623
788
  /** @internal */
624
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
625
- .object({
626
- type: IncludedType$outboundSchema,
627
- id: z.string(),
628
- });
789
+ export const Included2$outboundSchema: z.ZodType<
790
+ Included2$Outbound,
791
+ z.ZodTypeDef,
792
+ Included2
793
+ > = z.object({
794
+ type: IncludedType$outboundSchema,
795
+ id: z.string(),
796
+ });
629
797
 
630
798
  /**
631
799
  * @internal
632
800
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
633
801
  */
634
- export namespace Two$ {
635
- /** @deprecated use `Two$inboundSchema` instead. */
636
- export const inboundSchema = Two$inboundSchema;
637
- /** @deprecated use `Two$outboundSchema` instead. */
638
- export const outboundSchema = Two$outboundSchema;
639
- /** @deprecated use `Two$Outbound` instead. */
640
- export type Outbound = Two$Outbound;
802
+ export namespace Included2$ {
803
+ /** @deprecated use `Included2$inboundSchema` instead. */
804
+ export const inboundSchema = Included2$inboundSchema;
805
+ /** @deprecated use `Included2$outboundSchema` instead. */
806
+ export const outboundSchema = Included2$outboundSchema;
807
+ /** @deprecated use `Included2$Outbound` instead. */
808
+ export type Outbound = Included2$Outbound;
641
809
  }
642
810
 
643
- export function twoToJSON(two: Two): string {
644
- return JSON.stringify(Two$outboundSchema.parse(two));
811
+ export function included2ToJSON(included2: Included2): string {
812
+ return JSON.stringify(Included2$outboundSchema.parse(included2));
645
813
  }
646
814
 
647
- export function twoFromJSON(
815
+ export function included2FromJSON(
648
816
  jsonString: string,
649
- ): SafeParseResult<Two, SDKValidationError> {
817
+ ): SafeParseResult<Included2, SDKValidationError> {
650
818
  return safeParse(
651
819
  jsonString,
652
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
653
- `Failed to parse 'Two' from JSON`,
820
+ (x) => Included2$inboundSchema.parse(JSON.parse(x)),
821
+ `Failed to parse 'Included2' from JSON`,
654
822
  );
655
823
  }
656
824
 
@@ -675,49 +843,55 @@ export namespace Type$ {
675
843
  }
676
844
 
677
845
  /** @internal */
678
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
679
- .object({
680
- type: Type$inboundSchema,
681
- id: z.string(),
682
- });
846
+ export const Included1$inboundSchema: z.ZodType<
847
+ Included1,
848
+ z.ZodTypeDef,
849
+ unknown
850
+ > = z.object({
851
+ type: Type$inboundSchema,
852
+ id: z.string(),
853
+ });
683
854
 
684
855
  /** @internal */
685
- export type One$Outbound = {
856
+ export type Included1$Outbound = {
686
857
  type: string;
687
858
  id: string;
688
859
  };
689
860
 
690
861
  /** @internal */
691
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
692
- .object({
693
- type: Type$outboundSchema,
694
- id: z.string(),
695
- });
862
+ export const Included1$outboundSchema: z.ZodType<
863
+ Included1$Outbound,
864
+ z.ZodTypeDef,
865
+ Included1
866
+ > = z.object({
867
+ type: Type$outboundSchema,
868
+ id: z.string(),
869
+ });
696
870
 
697
871
  /**
698
872
  * @internal
699
873
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
700
874
  */
701
- export namespace One$ {
702
- /** @deprecated use `One$inboundSchema` instead. */
703
- export const inboundSchema = One$inboundSchema;
704
- /** @deprecated use `One$outboundSchema` instead. */
705
- export const outboundSchema = One$outboundSchema;
706
- /** @deprecated use `One$Outbound` instead. */
707
- export type Outbound = One$Outbound;
875
+ export namespace Included1$ {
876
+ /** @deprecated use `Included1$inboundSchema` instead. */
877
+ export const inboundSchema = Included1$inboundSchema;
878
+ /** @deprecated use `Included1$outboundSchema` instead. */
879
+ export const outboundSchema = Included1$outboundSchema;
880
+ /** @deprecated use `Included1$Outbound` instead. */
881
+ export type Outbound = Included1$Outbound;
708
882
  }
709
883
 
710
- export function oneToJSON(one: One): string {
711
- return JSON.stringify(One$outboundSchema.parse(one));
884
+ export function included1ToJSON(included1: Included1): string {
885
+ return JSON.stringify(Included1$outboundSchema.parse(included1));
712
886
  }
713
887
 
714
- export function oneFromJSON(
888
+ export function included1FromJSON(
715
889
  jsonString: string,
716
- ): SafeParseResult<One, SDKValidationError> {
890
+ ): SafeParseResult<Included1, SDKValidationError> {
717
891
  return safeParse(
718
892
  jsonString,
719
- (x) => One$inboundSchema.parse(JSON.parse(x)),
720
- `Failed to parse 'One' from JSON`,
893
+ (x) => Included1$inboundSchema.parse(JSON.parse(x)),
894
+ `Failed to parse 'Included1' from JSON`,
721
895
  );
722
896
  }
723
897
 
@@ -727,8 +901,8 @@ export const Included$inboundSchema: z.ZodType<
727
901
  z.ZodTypeDef,
728
902
  unknown
729
903
  > = z.union([
730
- z.lazy(() => One$inboundSchema),
731
- z.lazy(() => Two$inboundSchema),
904
+ z.lazy(() => Included1$inboundSchema),
905
+ z.lazy(() => Included2$inboundSchema),
732
906
  z.lazy(() => Three$inboundSchema),
733
907
  z.lazy(() => Four$inboundSchema),
734
908
  z.lazy(() => Five$inboundSchema),
@@ -738,8 +912,8 @@ export const Included$inboundSchema: z.ZodType<
738
912
 
739
913
  /** @internal */
740
914
  export type Included$Outbound =
741
- | One$Outbound
742
- | Two$Outbound
915
+ | Included1$Outbound
916
+ | Included2$Outbound
743
917
  | Three$Outbound
744
918
  | Four$Outbound
745
919
  | Five$Outbound
@@ -752,8 +926,8 @@ export const Included$outboundSchema: z.ZodType<
752
926
  z.ZodTypeDef,
753
927
  Included
754
928
  > = z.union([
755
- z.lazy(() => One$outboundSchema),
756
- z.lazy(() => Two$outboundSchema),
929
+ z.lazy(() => Included1$outboundSchema),
930
+ z.lazy(() => Included2$outboundSchema),
757
931
  z.lazy(() => Three$outboundSchema),
758
932
  z.lazy(() => Four$outboundSchema),
759
933
  z.lazy(() => Five$outboundSchema),
@@ -838,8 +1012,8 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
838
1012
  data: components.ApplicationResource$inboundSchema,
839
1013
  included: z.array(
840
1014
  z.union([
841
- z.lazy(() => One$inboundSchema),
842
- z.lazy(() => Two$inboundSchema),
1015
+ z.lazy(() => Included1$inboundSchema),
1016
+ z.lazy(() => Included2$inboundSchema),
843
1017
  z.lazy(() => Three$inboundSchema),
844
1018
  z.lazy(() => Four$inboundSchema),
845
1019
  z.lazy(() => Five$inboundSchema),
@@ -855,8 +1029,8 @@ export type CreateApplicationResponseBody$Outbound = {
855
1029
  data: components.ApplicationResource$Outbound;
856
1030
  included?:
857
1031
  | Array<
858
- | One$Outbound
859
- | Two$Outbound
1032
+ | Included1$Outbound
1033
+ | Included2$Outbound
860
1034
  | Three$Outbound
861
1035
  | Four$Outbound
862
1036
  | Five$Outbound
@@ -876,8 +1050,8 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
876
1050
  data: components.ApplicationResource$outboundSchema,
877
1051
  included: z.array(
878
1052
  z.union([
879
- z.lazy(() => One$outboundSchema),
880
- z.lazy(() => Two$outboundSchema),
1053
+ z.lazy(() => Included1$outboundSchema),
1054
+ z.lazy(() => Included2$outboundSchema),
881
1055
  z.lazy(() => Three$outboundSchema),
882
1056
  z.lazy(() => Four$outboundSchema),
883
1057
  z.lazy(() => Five$outboundSchema),
@@ -920,3 +1094,64 @@ export function createApplicationResponseBodyFromJSON(
920
1094
  `Failed to parse 'CreateApplicationResponseBody' from JSON`,
921
1095
  );
922
1096
  }
1097
+
1098
+ /** @internal */
1099
+ export const CreateApplicationResponse$inboundSchema: z.ZodType<
1100
+ CreateApplicationResponse,
1101
+ z.ZodTypeDef,
1102
+ unknown
1103
+ > = z.union([
1104
+ z.lazy(() => CreateApplicationResponseBody$inboundSchema),
1105
+ z.lazy(() => CreateApplicationApplicationsResponseBody$inboundSchema),
1106
+ z.lazy(() => CreateApplicationApplicationsResponseResponseBody$inboundSchema),
1107
+ ]);
1108
+
1109
+ /** @internal */
1110
+ export type CreateApplicationResponse$Outbound =
1111
+ | CreateApplicationResponseBody$Outbound
1112
+ | CreateApplicationApplicationsResponseBody$Outbound
1113
+ | CreateApplicationApplicationsResponseResponseBody$Outbound;
1114
+
1115
+ /** @internal */
1116
+ export const CreateApplicationResponse$outboundSchema: z.ZodType<
1117
+ CreateApplicationResponse$Outbound,
1118
+ z.ZodTypeDef,
1119
+ CreateApplicationResponse
1120
+ > = z.union([
1121
+ z.lazy(() => CreateApplicationResponseBody$outboundSchema),
1122
+ z.lazy(() => CreateApplicationApplicationsResponseBody$outboundSchema),
1123
+ z.lazy(() =>
1124
+ CreateApplicationApplicationsResponseResponseBody$outboundSchema
1125
+ ),
1126
+ ]);
1127
+
1128
+ /**
1129
+ * @internal
1130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1131
+ */
1132
+ export namespace CreateApplicationResponse$ {
1133
+ /** @deprecated use `CreateApplicationResponse$inboundSchema` instead. */
1134
+ export const inboundSchema = CreateApplicationResponse$inboundSchema;
1135
+ /** @deprecated use `CreateApplicationResponse$outboundSchema` instead. */
1136
+ export const outboundSchema = CreateApplicationResponse$outboundSchema;
1137
+ /** @deprecated use `CreateApplicationResponse$Outbound` instead. */
1138
+ export type Outbound = CreateApplicationResponse$Outbound;
1139
+ }
1140
+
1141
+ export function createApplicationResponseToJSON(
1142
+ createApplicationResponse: CreateApplicationResponse,
1143
+ ): string {
1144
+ return JSON.stringify(
1145
+ CreateApplicationResponse$outboundSchema.parse(createApplicationResponse),
1146
+ );
1147
+ }
1148
+
1149
+ export function createApplicationResponseFromJSON(
1150
+ jsonString: string,
1151
+ ): SafeParseResult<CreateApplicationResponse, SDKValidationError> {
1152
+ return safeParse(
1153
+ jsonString,
1154
+ (x) => CreateApplicationResponse$inboundSchema.parse(JSON.parse(x)),
1155
+ `Failed to parse 'CreateApplicationResponse' from JSON`,
1156
+ );
1157
+ }