@financeable/aggregation 0.2.0 → 0.2.5

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