@unified-api/typescript-sdk 2.66.0 → 2.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/docs/sdks/unified/README.md +2 -2
  2. package/docs/sdks/webhook/README.md +2 -2
  3. package/funcs/projectListTaskProjects.js +1 -0
  4. package/funcs/projectListTaskProjects.js.map +1 -1
  5. package/funcs/taskListTaskProjects.js +1 -0
  6. package/funcs/taskListTaskProjects.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/package.json +1 -1
  11. package/sdk/models/operations/listtaskprojects.d.ts +5 -0
  12. package/sdk/models/operations/listtaskprojects.d.ts.map +1 -1
  13. package/sdk/models/operations/listtaskprojects.js +4 -0
  14. package/sdk/models/operations/listtaskprojects.js.map +1 -1
  15. package/sdk/models/shared/index.d.ts +1 -5
  16. package/sdk/models/shared/index.d.ts.map +1 -1
  17. package/sdk/models/shared/index.js +1 -5
  18. package/sdk/models/shared/index.js.map +1 -1
  19. package/sdk/models/shared/integration.d.ts +640 -10
  20. package/sdk/models/shared/integration.d.ts.map +1 -1
  21. package/sdk/models/shared/integration.js +938 -8
  22. package/sdk/models/shared/integration.js.map +1 -1
  23. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  24. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  25. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  26. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  27. package/sdk/models/shared/propertyintegrationtokeninstructions.d.ts +25 -0
  28. package/sdk/models/shared/propertyintegrationtokeninstructions.d.ts.map +1 -0
  29. package/sdk/models/shared/propertyintegrationtokeninstructions.js +49 -0
  30. package/sdk/models/shared/propertyintegrationtokeninstructions.js.map +1 -0
  31. package/sdk/models/shared/webhook.d.ts +3 -0
  32. package/sdk/models/shared/webhook.d.ts.map +1 -1
  33. package/sdk/models/shared/webhook.js +1 -0
  34. package/sdk/models/shared/webhook.js.map +1 -1
  35. package/src/funcs/projectListTaskProjects.ts +1 -0
  36. package/src/funcs/taskListTaskProjects.ts +1 -0
  37. package/src/lib/config.ts +2 -2
  38. package/src/sdk/models/operations/listtaskprojects.ts +9 -0
  39. package/src/sdk/models/shared/index.ts +1 -5
  40. package/src/sdk/models/shared/integration.ts +1872 -17
  41. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  42. package/src/sdk/models/shared/propertyintegrationtokeninstructions.ts +37 -0
  43. package/src/sdk/models/shared/webhook.ts +1 -0
  44. package/sdk/models/shared/integrationsupport.d.ts +0 -2036
  45. package/sdk/models/shared/integrationsupport.d.ts.map +0 -1
  46. package/sdk/models/shared/integrationsupport.js +0 -1704
  47. package/sdk/models/shared/integrationsupport.js.map +0 -1
  48. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +0 -36
  49. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts.map +0 -1
  50. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js +0 -69
  51. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js.map +0 -1
  52. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts +0 -28
  53. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts.map +0 -1
  54. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js +0 -51
  55. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js.map +0 -1
  56. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts +0 -28
  57. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts.map +0 -1
  58. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js +0 -51
  59. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js.map +0 -1
  60. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts +0 -28
  61. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts.map +0 -1
  62. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js +0 -51
  63. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js.map +0 -1
  64. package/src/sdk/models/shared/integrationsupport.ts +0 -2308
  65. package/src/sdk/models/shared/propertyintegrationsupportwebhookevents.ts +0 -109
  66. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.ts +0 -37
  67. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.ts +0 -37
  68. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.ts +0 -37
@@ -7,24 +7,122 @@ import { remap as remap$ } from "../../../lib/primitives.js";
7
7
  import { safeParse } from "../../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- IntegrationSupport,
12
- IntegrationSupport$inboundSchema,
13
- IntegrationSupport$Outbound,
14
- IntegrationSupport$outboundSchema,
15
- } from "./integrationsupport.js";
16
10
  import {
17
11
  PropertyIntegrationCategories,
18
12
  PropertyIntegrationCategories$inboundSchema,
19
13
  PropertyIntegrationCategories$outboundSchema,
20
14
  } from "./propertyintegrationcategories.js";
15
+ import {
16
+ PropertyIntegrationTokenInstructions,
17
+ PropertyIntegrationTokenInstructions$inboundSchema,
18
+ PropertyIntegrationTokenInstructions$outboundSchema,
19
+ } from "./propertyintegrationtokeninstructions.js";
20
+
21
+ export type IntegrationSchemasApi52 = {};
22
+
23
+ export type Integration5 = IntegrationSchemasApi52 | Array<any>;
24
+
25
+ export type IntegrationSchemasApi2 = {};
26
+
27
+ export type Integration4 = IntegrationSchemasApi2 | boolean;
28
+
29
+ export type IntegrationSchemasApi32 = {};
30
+
31
+ export type Integration3 = IntegrationSchemasApi32 | number;
32
+
33
+ export type IntegrationSchemasApi22 = {};
34
+
35
+ export type Integration2 = IntegrationSchemasApi22 | string;
36
+
37
+ export type Integration1 = {};
38
+
39
+ export type Api =
40
+ | Integration1
41
+ | IntegrationSchemasApi22
42
+ | string
43
+ | IntegrationSchemasApi32
44
+ | number
45
+ | IntegrationSchemasApi2
46
+ | boolean
47
+ | IntegrationSchemasApi52
48
+ | Array<any>;
49
+
50
+ export type IntegrationSchemasPartnership52 = {};
51
+
52
+ export type IntegrationSchemas5 = IntegrationSchemasPartnership52 | Array<any>;
53
+
54
+ export type IntegrationSchemasPartnership42 = {};
55
+
56
+ export type IntegrationSchemas4 = IntegrationSchemasPartnership42 | boolean;
57
+
58
+ export type IntegrationSchemasPartnership32 = {};
59
+
60
+ export type IntegrationSchemas3 = IntegrationSchemasPartnership32 | number;
61
+
62
+ export type IntegrationSchemasPartnership2 = {};
63
+
64
+ export type IntegrationSchemas2 = IntegrationSchemasPartnership2 | string;
65
+
66
+ export type IntegrationSchemas1 = {};
67
+
68
+ export type Partnership =
69
+ | IntegrationSchemas1
70
+ | IntegrationSchemasPartnership2
71
+ | string
72
+ | IntegrationSchemasPartnership32
73
+ | number
74
+ | IntegrationSchemasPartnership42
75
+ | boolean
76
+ | IntegrationSchemasPartnership52
77
+ | Array<any>;
78
+
79
+ export type IntegrationSchemasSandbox52 = {};
80
+
81
+ export type IntegrationSchemasSandbox5 =
82
+ | IntegrationSchemasSandbox52
83
+ | Array<any>;
84
+
85
+ export type IntegrationSchemasSandbox42 = {};
86
+
87
+ export type IntegrationSchemasSandbox4 = IntegrationSchemasSandbox42 | boolean;
88
+
89
+ export type IntegrationSchemasSandbox32 = {};
90
+
91
+ export type IntegrationSchemasSandbox3 = IntegrationSchemasSandbox32 | number;
92
+
93
+ export type IntegrationSchemasSandbox22 = {};
94
+
95
+ export type IntegrationSchemasSandbox2 = IntegrationSchemasSandbox22 | string;
96
+
97
+ export type IntegrationSchemasSandbox1 = {};
98
+
99
+ export type Sandbox =
100
+ | IntegrationSchemasSandbox1
101
+ | IntegrationSchemasSandbox22
102
+ | string
103
+ | IntegrationSchemasSandbox32
104
+ | number
105
+ | IntegrationSchemasSandbox42
106
+ | boolean
107
+ | IntegrationSchemasSandbox52
108
+ | Array<any>;
21
109
 
22
110
  /**
23
111
  * Informational object for supported integrations.
24
112
  */
25
113
  export type Integration = {
26
114
  activeHealthyConnections?: number | undefined;
27
- api?: { [k: string]: any } | undefined;
115
+ api?:
116
+ | Integration1
117
+ | IntegrationSchemasApi22
118
+ | string
119
+ | IntegrationSchemasApi32
120
+ | number
121
+ | IntegrationSchemasApi2
122
+ | boolean
123
+ | IntegrationSchemasApi52
124
+ | Array<any>
125
+ | undefined;
28
126
  apiDocsUrl?: string | undefined;
29
127
  beta?: boolean | undefined;
30
128
  /**
@@ -40,15 +138,37 @@ export type Integration = {
40
138
  isActive?: boolean | undefined;
41
139
  logoUrl?: string | undefined;
42
140
  name: string;
141
+ partnership?:
142
+ | IntegrationSchemas1
143
+ | IntegrationSchemasPartnership2
144
+ | string
145
+ | IntegrationSchemasPartnership32
146
+ | number
147
+ | IntegrationSchemasPartnership42
148
+ | boolean
149
+ | IntegrationSchemasPartnership52
150
+ | Array<any>
151
+ | undefined;
43
152
  popularity?: number | undefined;
44
153
  rateLimitDescription?: string | undefined;
45
- support?: { [k: string]: IntegrationSupport } | undefined;
154
+ sandbox?:
155
+ | IntegrationSchemasSandbox1
156
+ | IntegrationSchemasSandbox22
157
+ | string
158
+ | IntegrationSchemasSandbox32
159
+ | number
160
+ | IntegrationSchemasSandbox42
161
+ | boolean
162
+ | IntegrationSchemasSandbox52
163
+ | Array<any>
164
+ | undefined;
165
+ support?: { [k: string]: any } | undefined;
46
166
  testedAt?: Date | undefined;
47
167
  textColor?: string | undefined;
48
168
  /**
49
169
  * instructions for the user on how to find the token/key
50
170
  */
51
- tokenInstructions?: Array<string> | undefined;
171
+ tokenInstructions?: Array<PropertyIntegrationTokenInstructions> | undefined;
52
172
  /**
53
173
  * if auth_types = 'token'
54
174
  */
@@ -58,6 +178,1611 @@ export type Integration = {
58
178
  webUrl?: string | undefined;
59
179
  };
60
180
 
181
+ /** @internal */
182
+ export const IntegrationSchemasApi52$inboundSchema: z.ZodType<
183
+ IntegrationSchemasApi52,
184
+ z.ZodTypeDef,
185
+ unknown
186
+ > = z.object({});
187
+
188
+ /** @internal */
189
+ export type IntegrationSchemasApi52$Outbound = {};
190
+
191
+ /** @internal */
192
+ export const IntegrationSchemasApi52$outboundSchema: z.ZodType<
193
+ IntegrationSchemasApi52$Outbound,
194
+ z.ZodTypeDef,
195
+ IntegrationSchemasApi52
196
+ > = z.object({});
197
+
198
+ /**
199
+ * @internal
200
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
+ */
202
+ export namespace IntegrationSchemasApi52$ {
203
+ /** @deprecated use `IntegrationSchemasApi52$inboundSchema` instead. */
204
+ export const inboundSchema = IntegrationSchemasApi52$inboundSchema;
205
+ /** @deprecated use `IntegrationSchemasApi52$outboundSchema` instead. */
206
+ export const outboundSchema = IntegrationSchemasApi52$outboundSchema;
207
+ /** @deprecated use `IntegrationSchemasApi52$Outbound` instead. */
208
+ export type Outbound = IntegrationSchemasApi52$Outbound;
209
+ }
210
+
211
+ export function integrationSchemasApi52ToJSON(
212
+ integrationSchemasApi52: IntegrationSchemasApi52,
213
+ ): string {
214
+ return JSON.stringify(
215
+ IntegrationSchemasApi52$outboundSchema.parse(integrationSchemasApi52),
216
+ );
217
+ }
218
+
219
+ export function integrationSchemasApi52FromJSON(
220
+ jsonString: string,
221
+ ): SafeParseResult<IntegrationSchemasApi52, SDKValidationError> {
222
+ return safeParse(
223
+ jsonString,
224
+ (x) => IntegrationSchemasApi52$inboundSchema.parse(JSON.parse(x)),
225
+ `Failed to parse 'IntegrationSchemasApi52' from JSON`,
226
+ );
227
+ }
228
+
229
+ /** @internal */
230
+ export const Integration5$inboundSchema: z.ZodType<
231
+ Integration5,
232
+ z.ZodTypeDef,
233
+ unknown
234
+ > = z.union([
235
+ z.lazy(() => IntegrationSchemasApi52$inboundSchema),
236
+ z.array(z.any()),
237
+ ]);
238
+
239
+ /** @internal */
240
+ export type Integration5$Outbound =
241
+ | IntegrationSchemasApi52$Outbound
242
+ | Array<any>;
243
+
244
+ /** @internal */
245
+ export const Integration5$outboundSchema: z.ZodType<
246
+ Integration5$Outbound,
247
+ z.ZodTypeDef,
248
+ Integration5
249
+ > = z.union([
250
+ z.lazy(() => IntegrationSchemasApi52$outboundSchema),
251
+ z.array(z.any()),
252
+ ]);
253
+
254
+ /**
255
+ * @internal
256
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
257
+ */
258
+ export namespace Integration5$ {
259
+ /** @deprecated use `Integration5$inboundSchema` instead. */
260
+ export const inboundSchema = Integration5$inboundSchema;
261
+ /** @deprecated use `Integration5$outboundSchema` instead. */
262
+ export const outboundSchema = Integration5$outboundSchema;
263
+ /** @deprecated use `Integration5$Outbound` instead. */
264
+ export type Outbound = Integration5$Outbound;
265
+ }
266
+
267
+ export function integration5ToJSON(integration5: Integration5): string {
268
+ return JSON.stringify(Integration5$outboundSchema.parse(integration5));
269
+ }
270
+
271
+ export function integration5FromJSON(
272
+ jsonString: string,
273
+ ): SafeParseResult<Integration5, SDKValidationError> {
274
+ return safeParse(
275
+ jsonString,
276
+ (x) => Integration5$inboundSchema.parse(JSON.parse(x)),
277
+ `Failed to parse 'Integration5' from JSON`,
278
+ );
279
+ }
280
+
281
+ /** @internal */
282
+ export const IntegrationSchemasApi2$inboundSchema: z.ZodType<
283
+ IntegrationSchemasApi2,
284
+ z.ZodTypeDef,
285
+ unknown
286
+ > = z.object({});
287
+
288
+ /** @internal */
289
+ export type IntegrationSchemasApi2$Outbound = {};
290
+
291
+ /** @internal */
292
+ export const IntegrationSchemasApi2$outboundSchema: z.ZodType<
293
+ IntegrationSchemasApi2$Outbound,
294
+ z.ZodTypeDef,
295
+ IntegrationSchemasApi2
296
+ > = z.object({});
297
+
298
+ /**
299
+ * @internal
300
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
301
+ */
302
+ export namespace IntegrationSchemasApi2$ {
303
+ /** @deprecated use `IntegrationSchemasApi2$inboundSchema` instead. */
304
+ export const inboundSchema = IntegrationSchemasApi2$inboundSchema;
305
+ /** @deprecated use `IntegrationSchemasApi2$outboundSchema` instead. */
306
+ export const outboundSchema = IntegrationSchemasApi2$outboundSchema;
307
+ /** @deprecated use `IntegrationSchemasApi2$Outbound` instead. */
308
+ export type Outbound = IntegrationSchemasApi2$Outbound;
309
+ }
310
+
311
+ export function integrationSchemasApi2ToJSON(
312
+ integrationSchemasApi2: IntegrationSchemasApi2,
313
+ ): string {
314
+ return JSON.stringify(
315
+ IntegrationSchemasApi2$outboundSchema.parse(integrationSchemasApi2),
316
+ );
317
+ }
318
+
319
+ export function integrationSchemasApi2FromJSON(
320
+ jsonString: string,
321
+ ): SafeParseResult<IntegrationSchemasApi2, SDKValidationError> {
322
+ return safeParse(
323
+ jsonString,
324
+ (x) => IntegrationSchemasApi2$inboundSchema.parse(JSON.parse(x)),
325
+ `Failed to parse 'IntegrationSchemasApi2' from JSON`,
326
+ );
327
+ }
328
+
329
+ /** @internal */
330
+ export const Integration4$inboundSchema: z.ZodType<
331
+ Integration4,
332
+ z.ZodTypeDef,
333
+ unknown
334
+ > = z.union([z.lazy(() => IntegrationSchemasApi2$inboundSchema), z.boolean()]);
335
+
336
+ /** @internal */
337
+ export type Integration4$Outbound = IntegrationSchemasApi2$Outbound | boolean;
338
+
339
+ /** @internal */
340
+ export const Integration4$outboundSchema: z.ZodType<
341
+ Integration4$Outbound,
342
+ z.ZodTypeDef,
343
+ Integration4
344
+ > = z.union([z.lazy(() => IntegrationSchemasApi2$outboundSchema), z.boolean()]);
345
+
346
+ /**
347
+ * @internal
348
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
349
+ */
350
+ export namespace Integration4$ {
351
+ /** @deprecated use `Integration4$inboundSchema` instead. */
352
+ export const inboundSchema = Integration4$inboundSchema;
353
+ /** @deprecated use `Integration4$outboundSchema` instead. */
354
+ export const outboundSchema = Integration4$outboundSchema;
355
+ /** @deprecated use `Integration4$Outbound` instead. */
356
+ export type Outbound = Integration4$Outbound;
357
+ }
358
+
359
+ export function integration4ToJSON(integration4: Integration4): string {
360
+ return JSON.stringify(Integration4$outboundSchema.parse(integration4));
361
+ }
362
+
363
+ export function integration4FromJSON(
364
+ jsonString: string,
365
+ ): SafeParseResult<Integration4, SDKValidationError> {
366
+ return safeParse(
367
+ jsonString,
368
+ (x) => Integration4$inboundSchema.parse(JSON.parse(x)),
369
+ `Failed to parse 'Integration4' from JSON`,
370
+ );
371
+ }
372
+
373
+ /** @internal */
374
+ export const IntegrationSchemasApi32$inboundSchema: z.ZodType<
375
+ IntegrationSchemasApi32,
376
+ z.ZodTypeDef,
377
+ unknown
378
+ > = z.object({});
379
+
380
+ /** @internal */
381
+ export type IntegrationSchemasApi32$Outbound = {};
382
+
383
+ /** @internal */
384
+ export const IntegrationSchemasApi32$outboundSchema: z.ZodType<
385
+ IntegrationSchemasApi32$Outbound,
386
+ z.ZodTypeDef,
387
+ IntegrationSchemasApi32
388
+ > = z.object({});
389
+
390
+ /**
391
+ * @internal
392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
393
+ */
394
+ export namespace IntegrationSchemasApi32$ {
395
+ /** @deprecated use `IntegrationSchemasApi32$inboundSchema` instead. */
396
+ export const inboundSchema = IntegrationSchemasApi32$inboundSchema;
397
+ /** @deprecated use `IntegrationSchemasApi32$outboundSchema` instead. */
398
+ export const outboundSchema = IntegrationSchemasApi32$outboundSchema;
399
+ /** @deprecated use `IntegrationSchemasApi32$Outbound` instead. */
400
+ export type Outbound = IntegrationSchemasApi32$Outbound;
401
+ }
402
+
403
+ export function integrationSchemasApi32ToJSON(
404
+ integrationSchemasApi32: IntegrationSchemasApi32,
405
+ ): string {
406
+ return JSON.stringify(
407
+ IntegrationSchemasApi32$outboundSchema.parse(integrationSchemasApi32),
408
+ );
409
+ }
410
+
411
+ export function integrationSchemasApi32FromJSON(
412
+ jsonString: string,
413
+ ): SafeParseResult<IntegrationSchemasApi32, SDKValidationError> {
414
+ return safeParse(
415
+ jsonString,
416
+ (x) => IntegrationSchemasApi32$inboundSchema.parse(JSON.parse(x)),
417
+ `Failed to parse 'IntegrationSchemasApi32' from JSON`,
418
+ );
419
+ }
420
+
421
+ /** @internal */
422
+ export const Integration3$inboundSchema: z.ZodType<
423
+ Integration3,
424
+ z.ZodTypeDef,
425
+ unknown
426
+ > = z.union([z.lazy(() => IntegrationSchemasApi32$inboundSchema), z.number()]);
427
+
428
+ /** @internal */
429
+ export type Integration3$Outbound = IntegrationSchemasApi32$Outbound | number;
430
+
431
+ /** @internal */
432
+ export const Integration3$outboundSchema: z.ZodType<
433
+ Integration3$Outbound,
434
+ z.ZodTypeDef,
435
+ Integration3
436
+ > = z.union([z.lazy(() => IntegrationSchemasApi32$outboundSchema), z.number()]);
437
+
438
+ /**
439
+ * @internal
440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
441
+ */
442
+ export namespace Integration3$ {
443
+ /** @deprecated use `Integration3$inboundSchema` instead. */
444
+ export const inboundSchema = Integration3$inboundSchema;
445
+ /** @deprecated use `Integration3$outboundSchema` instead. */
446
+ export const outboundSchema = Integration3$outboundSchema;
447
+ /** @deprecated use `Integration3$Outbound` instead. */
448
+ export type Outbound = Integration3$Outbound;
449
+ }
450
+
451
+ export function integration3ToJSON(integration3: Integration3): string {
452
+ return JSON.stringify(Integration3$outboundSchema.parse(integration3));
453
+ }
454
+
455
+ export function integration3FromJSON(
456
+ jsonString: string,
457
+ ): SafeParseResult<Integration3, SDKValidationError> {
458
+ return safeParse(
459
+ jsonString,
460
+ (x) => Integration3$inboundSchema.parse(JSON.parse(x)),
461
+ `Failed to parse 'Integration3' from JSON`,
462
+ );
463
+ }
464
+
465
+ /** @internal */
466
+ export const IntegrationSchemasApi22$inboundSchema: z.ZodType<
467
+ IntegrationSchemasApi22,
468
+ z.ZodTypeDef,
469
+ unknown
470
+ > = z.object({});
471
+
472
+ /** @internal */
473
+ export type IntegrationSchemasApi22$Outbound = {};
474
+
475
+ /** @internal */
476
+ export const IntegrationSchemasApi22$outboundSchema: z.ZodType<
477
+ IntegrationSchemasApi22$Outbound,
478
+ z.ZodTypeDef,
479
+ IntegrationSchemasApi22
480
+ > = z.object({});
481
+
482
+ /**
483
+ * @internal
484
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
485
+ */
486
+ export namespace IntegrationSchemasApi22$ {
487
+ /** @deprecated use `IntegrationSchemasApi22$inboundSchema` instead. */
488
+ export const inboundSchema = IntegrationSchemasApi22$inboundSchema;
489
+ /** @deprecated use `IntegrationSchemasApi22$outboundSchema` instead. */
490
+ export const outboundSchema = IntegrationSchemasApi22$outboundSchema;
491
+ /** @deprecated use `IntegrationSchemasApi22$Outbound` instead. */
492
+ export type Outbound = IntegrationSchemasApi22$Outbound;
493
+ }
494
+
495
+ export function integrationSchemasApi22ToJSON(
496
+ integrationSchemasApi22: IntegrationSchemasApi22,
497
+ ): string {
498
+ return JSON.stringify(
499
+ IntegrationSchemasApi22$outboundSchema.parse(integrationSchemasApi22),
500
+ );
501
+ }
502
+
503
+ export function integrationSchemasApi22FromJSON(
504
+ jsonString: string,
505
+ ): SafeParseResult<IntegrationSchemasApi22, SDKValidationError> {
506
+ return safeParse(
507
+ jsonString,
508
+ (x) => IntegrationSchemasApi22$inboundSchema.parse(JSON.parse(x)),
509
+ `Failed to parse 'IntegrationSchemasApi22' from JSON`,
510
+ );
511
+ }
512
+
513
+ /** @internal */
514
+ export const Integration2$inboundSchema: z.ZodType<
515
+ Integration2,
516
+ z.ZodTypeDef,
517
+ unknown
518
+ > = z.union([z.lazy(() => IntegrationSchemasApi22$inboundSchema), z.string()]);
519
+
520
+ /** @internal */
521
+ export type Integration2$Outbound = IntegrationSchemasApi22$Outbound | string;
522
+
523
+ /** @internal */
524
+ export const Integration2$outboundSchema: z.ZodType<
525
+ Integration2$Outbound,
526
+ z.ZodTypeDef,
527
+ Integration2
528
+ > = z.union([z.lazy(() => IntegrationSchemasApi22$outboundSchema), z.string()]);
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 Integration2$ {
535
+ /** @deprecated use `Integration2$inboundSchema` instead. */
536
+ export const inboundSchema = Integration2$inboundSchema;
537
+ /** @deprecated use `Integration2$outboundSchema` instead. */
538
+ export const outboundSchema = Integration2$outboundSchema;
539
+ /** @deprecated use `Integration2$Outbound` instead. */
540
+ export type Outbound = Integration2$Outbound;
541
+ }
542
+
543
+ export function integration2ToJSON(integration2: Integration2): string {
544
+ return JSON.stringify(Integration2$outboundSchema.parse(integration2));
545
+ }
546
+
547
+ export function integration2FromJSON(
548
+ jsonString: string,
549
+ ): SafeParseResult<Integration2, SDKValidationError> {
550
+ return safeParse(
551
+ jsonString,
552
+ (x) => Integration2$inboundSchema.parse(JSON.parse(x)),
553
+ `Failed to parse 'Integration2' from JSON`,
554
+ );
555
+ }
556
+
557
+ /** @internal */
558
+ export const Integration1$inboundSchema: z.ZodType<
559
+ Integration1,
560
+ z.ZodTypeDef,
561
+ unknown
562
+ > = z.object({});
563
+
564
+ /** @internal */
565
+ export type Integration1$Outbound = {};
566
+
567
+ /** @internal */
568
+ export const Integration1$outboundSchema: z.ZodType<
569
+ Integration1$Outbound,
570
+ z.ZodTypeDef,
571
+ Integration1
572
+ > = z.object({});
573
+
574
+ /**
575
+ * @internal
576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
577
+ */
578
+ export namespace Integration1$ {
579
+ /** @deprecated use `Integration1$inboundSchema` instead. */
580
+ export const inboundSchema = Integration1$inboundSchema;
581
+ /** @deprecated use `Integration1$outboundSchema` instead. */
582
+ export const outboundSchema = Integration1$outboundSchema;
583
+ /** @deprecated use `Integration1$Outbound` instead. */
584
+ export type Outbound = Integration1$Outbound;
585
+ }
586
+
587
+ export function integration1ToJSON(integration1: Integration1): string {
588
+ return JSON.stringify(Integration1$outboundSchema.parse(integration1));
589
+ }
590
+
591
+ export function integration1FromJSON(
592
+ jsonString: string,
593
+ ): SafeParseResult<Integration1, SDKValidationError> {
594
+ return safeParse(
595
+ jsonString,
596
+ (x) => Integration1$inboundSchema.parse(JSON.parse(x)),
597
+ `Failed to parse 'Integration1' from JSON`,
598
+ );
599
+ }
600
+
601
+ /** @internal */
602
+ export const Api$inboundSchema: z.ZodType<Api, z.ZodTypeDef, unknown> = z.union(
603
+ [
604
+ z.lazy(() => Integration1$inboundSchema),
605
+ z.union([z.lazy(() => IntegrationSchemasApi22$inboundSchema), z.string()]),
606
+ z.union([z.lazy(() => IntegrationSchemasApi32$inboundSchema), z.number()]),
607
+ z.union([z.lazy(() => IntegrationSchemasApi2$inboundSchema), z.boolean()]),
608
+ z.union([
609
+ z.lazy(() => IntegrationSchemasApi52$inboundSchema),
610
+ z.array(z.any()),
611
+ ]),
612
+ ],
613
+ );
614
+
615
+ /** @internal */
616
+ export type Api$Outbound =
617
+ | Integration1$Outbound
618
+ | IntegrationSchemasApi22$Outbound
619
+ | string
620
+ | IntegrationSchemasApi32$Outbound
621
+ | number
622
+ | IntegrationSchemasApi2$Outbound
623
+ | boolean
624
+ | IntegrationSchemasApi52$Outbound
625
+ | Array<any>;
626
+
627
+ /** @internal */
628
+ export const Api$outboundSchema: z.ZodType<Api$Outbound, z.ZodTypeDef, Api> = z
629
+ .union([
630
+ z.lazy(() => Integration1$outboundSchema),
631
+ z.union([z.lazy(() => IntegrationSchemasApi22$outboundSchema), z.string()]),
632
+ z.union([z.lazy(() => IntegrationSchemasApi32$outboundSchema), z.number()]),
633
+ z.union([z.lazy(() => IntegrationSchemasApi2$outboundSchema), z.boolean()]),
634
+ z.union([
635
+ z.lazy(() => IntegrationSchemasApi52$outboundSchema),
636
+ z.array(z.any()),
637
+ ]),
638
+ ]);
639
+
640
+ /**
641
+ * @internal
642
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
643
+ */
644
+ export namespace Api$ {
645
+ /** @deprecated use `Api$inboundSchema` instead. */
646
+ export const inboundSchema = Api$inboundSchema;
647
+ /** @deprecated use `Api$outboundSchema` instead. */
648
+ export const outboundSchema = Api$outboundSchema;
649
+ /** @deprecated use `Api$Outbound` instead. */
650
+ export type Outbound = Api$Outbound;
651
+ }
652
+
653
+ export function apiToJSON(api: Api): string {
654
+ return JSON.stringify(Api$outboundSchema.parse(api));
655
+ }
656
+
657
+ export function apiFromJSON(
658
+ jsonString: string,
659
+ ): SafeParseResult<Api, SDKValidationError> {
660
+ return safeParse(
661
+ jsonString,
662
+ (x) => Api$inboundSchema.parse(JSON.parse(x)),
663
+ `Failed to parse 'Api' from JSON`,
664
+ );
665
+ }
666
+
667
+ /** @internal */
668
+ export const IntegrationSchemasPartnership52$inboundSchema: z.ZodType<
669
+ IntegrationSchemasPartnership52,
670
+ z.ZodTypeDef,
671
+ unknown
672
+ > = z.object({});
673
+
674
+ /** @internal */
675
+ export type IntegrationSchemasPartnership52$Outbound = {};
676
+
677
+ /** @internal */
678
+ export const IntegrationSchemasPartnership52$outboundSchema: z.ZodType<
679
+ IntegrationSchemasPartnership52$Outbound,
680
+ z.ZodTypeDef,
681
+ IntegrationSchemasPartnership52
682
+ > = z.object({});
683
+
684
+ /**
685
+ * @internal
686
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
687
+ */
688
+ export namespace IntegrationSchemasPartnership52$ {
689
+ /** @deprecated use `IntegrationSchemasPartnership52$inboundSchema` instead. */
690
+ export const inboundSchema = IntegrationSchemasPartnership52$inboundSchema;
691
+ /** @deprecated use `IntegrationSchemasPartnership52$outboundSchema` instead. */
692
+ export const outboundSchema = IntegrationSchemasPartnership52$outboundSchema;
693
+ /** @deprecated use `IntegrationSchemasPartnership52$Outbound` instead. */
694
+ export type Outbound = IntegrationSchemasPartnership52$Outbound;
695
+ }
696
+
697
+ export function integrationSchemasPartnership52ToJSON(
698
+ integrationSchemasPartnership52: IntegrationSchemasPartnership52,
699
+ ): string {
700
+ return JSON.stringify(
701
+ IntegrationSchemasPartnership52$outboundSchema.parse(
702
+ integrationSchemasPartnership52,
703
+ ),
704
+ );
705
+ }
706
+
707
+ export function integrationSchemasPartnership52FromJSON(
708
+ jsonString: string,
709
+ ): SafeParseResult<IntegrationSchemasPartnership52, SDKValidationError> {
710
+ return safeParse(
711
+ jsonString,
712
+ (x) => IntegrationSchemasPartnership52$inboundSchema.parse(JSON.parse(x)),
713
+ `Failed to parse 'IntegrationSchemasPartnership52' from JSON`,
714
+ );
715
+ }
716
+
717
+ /** @internal */
718
+ export const IntegrationSchemas5$inboundSchema: z.ZodType<
719
+ IntegrationSchemas5,
720
+ z.ZodTypeDef,
721
+ unknown
722
+ > = z.union([
723
+ z.lazy(() => IntegrationSchemasPartnership52$inboundSchema),
724
+ z.array(z.any()),
725
+ ]);
726
+
727
+ /** @internal */
728
+ export type IntegrationSchemas5$Outbound =
729
+ | IntegrationSchemasPartnership52$Outbound
730
+ | Array<any>;
731
+
732
+ /** @internal */
733
+ export const IntegrationSchemas5$outboundSchema: z.ZodType<
734
+ IntegrationSchemas5$Outbound,
735
+ z.ZodTypeDef,
736
+ IntegrationSchemas5
737
+ > = z.union([
738
+ z.lazy(() => IntegrationSchemasPartnership52$outboundSchema),
739
+ z.array(z.any()),
740
+ ]);
741
+
742
+ /**
743
+ * @internal
744
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
745
+ */
746
+ export namespace IntegrationSchemas5$ {
747
+ /** @deprecated use `IntegrationSchemas5$inboundSchema` instead. */
748
+ export const inboundSchema = IntegrationSchemas5$inboundSchema;
749
+ /** @deprecated use `IntegrationSchemas5$outboundSchema` instead. */
750
+ export const outboundSchema = IntegrationSchemas5$outboundSchema;
751
+ /** @deprecated use `IntegrationSchemas5$Outbound` instead. */
752
+ export type Outbound = IntegrationSchemas5$Outbound;
753
+ }
754
+
755
+ export function integrationSchemas5ToJSON(
756
+ integrationSchemas5: IntegrationSchemas5,
757
+ ): string {
758
+ return JSON.stringify(
759
+ IntegrationSchemas5$outboundSchema.parse(integrationSchemas5),
760
+ );
761
+ }
762
+
763
+ export function integrationSchemas5FromJSON(
764
+ jsonString: string,
765
+ ): SafeParseResult<IntegrationSchemas5, SDKValidationError> {
766
+ return safeParse(
767
+ jsonString,
768
+ (x) => IntegrationSchemas5$inboundSchema.parse(JSON.parse(x)),
769
+ `Failed to parse 'IntegrationSchemas5' from JSON`,
770
+ );
771
+ }
772
+
773
+ /** @internal */
774
+ export const IntegrationSchemasPartnership42$inboundSchema: z.ZodType<
775
+ IntegrationSchemasPartnership42,
776
+ z.ZodTypeDef,
777
+ unknown
778
+ > = z.object({});
779
+
780
+ /** @internal */
781
+ export type IntegrationSchemasPartnership42$Outbound = {};
782
+
783
+ /** @internal */
784
+ export const IntegrationSchemasPartnership42$outboundSchema: z.ZodType<
785
+ IntegrationSchemasPartnership42$Outbound,
786
+ z.ZodTypeDef,
787
+ IntegrationSchemasPartnership42
788
+ > = z.object({});
789
+
790
+ /**
791
+ * @internal
792
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
793
+ */
794
+ export namespace IntegrationSchemasPartnership42$ {
795
+ /** @deprecated use `IntegrationSchemasPartnership42$inboundSchema` instead. */
796
+ export const inboundSchema = IntegrationSchemasPartnership42$inboundSchema;
797
+ /** @deprecated use `IntegrationSchemasPartnership42$outboundSchema` instead. */
798
+ export const outboundSchema = IntegrationSchemasPartnership42$outboundSchema;
799
+ /** @deprecated use `IntegrationSchemasPartnership42$Outbound` instead. */
800
+ export type Outbound = IntegrationSchemasPartnership42$Outbound;
801
+ }
802
+
803
+ export function integrationSchemasPartnership42ToJSON(
804
+ integrationSchemasPartnership42: IntegrationSchemasPartnership42,
805
+ ): string {
806
+ return JSON.stringify(
807
+ IntegrationSchemasPartnership42$outboundSchema.parse(
808
+ integrationSchemasPartnership42,
809
+ ),
810
+ );
811
+ }
812
+
813
+ export function integrationSchemasPartnership42FromJSON(
814
+ jsonString: string,
815
+ ): SafeParseResult<IntegrationSchemasPartnership42, SDKValidationError> {
816
+ return safeParse(
817
+ jsonString,
818
+ (x) => IntegrationSchemasPartnership42$inboundSchema.parse(JSON.parse(x)),
819
+ `Failed to parse 'IntegrationSchemasPartnership42' from JSON`,
820
+ );
821
+ }
822
+
823
+ /** @internal */
824
+ export const IntegrationSchemas4$inboundSchema: z.ZodType<
825
+ IntegrationSchemas4,
826
+ z.ZodTypeDef,
827
+ unknown
828
+ > = z.union([
829
+ z.lazy(() => IntegrationSchemasPartnership42$inboundSchema),
830
+ z.boolean(),
831
+ ]);
832
+
833
+ /** @internal */
834
+ export type IntegrationSchemas4$Outbound =
835
+ | IntegrationSchemasPartnership42$Outbound
836
+ | boolean;
837
+
838
+ /** @internal */
839
+ export const IntegrationSchemas4$outboundSchema: z.ZodType<
840
+ IntegrationSchemas4$Outbound,
841
+ z.ZodTypeDef,
842
+ IntegrationSchemas4
843
+ > = z.union([
844
+ z.lazy(() => IntegrationSchemasPartnership42$outboundSchema),
845
+ z.boolean(),
846
+ ]);
847
+
848
+ /**
849
+ * @internal
850
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
851
+ */
852
+ export namespace IntegrationSchemas4$ {
853
+ /** @deprecated use `IntegrationSchemas4$inboundSchema` instead. */
854
+ export const inboundSchema = IntegrationSchemas4$inboundSchema;
855
+ /** @deprecated use `IntegrationSchemas4$outboundSchema` instead. */
856
+ export const outboundSchema = IntegrationSchemas4$outboundSchema;
857
+ /** @deprecated use `IntegrationSchemas4$Outbound` instead. */
858
+ export type Outbound = IntegrationSchemas4$Outbound;
859
+ }
860
+
861
+ export function integrationSchemas4ToJSON(
862
+ integrationSchemas4: IntegrationSchemas4,
863
+ ): string {
864
+ return JSON.stringify(
865
+ IntegrationSchemas4$outboundSchema.parse(integrationSchemas4),
866
+ );
867
+ }
868
+
869
+ export function integrationSchemas4FromJSON(
870
+ jsonString: string,
871
+ ): SafeParseResult<IntegrationSchemas4, SDKValidationError> {
872
+ return safeParse(
873
+ jsonString,
874
+ (x) => IntegrationSchemas4$inboundSchema.parse(JSON.parse(x)),
875
+ `Failed to parse 'IntegrationSchemas4' from JSON`,
876
+ );
877
+ }
878
+
879
+ /** @internal */
880
+ export const IntegrationSchemasPartnership32$inboundSchema: z.ZodType<
881
+ IntegrationSchemasPartnership32,
882
+ z.ZodTypeDef,
883
+ unknown
884
+ > = z.object({});
885
+
886
+ /** @internal */
887
+ export type IntegrationSchemasPartnership32$Outbound = {};
888
+
889
+ /** @internal */
890
+ export const IntegrationSchemasPartnership32$outboundSchema: z.ZodType<
891
+ IntegrationSchemasPartnership32$Outbound,
892
+ z.ZodTypeDef,
893
+ IntegrationSchemasPartnership32
894
+ > = z.object({});
895
+
896
+ /**
897
+ * @internal
898
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
899
+ */
900
+ export namespace IntegrationSchemasPartnership32$ {
901
+ /** @deprecated use `IntegrationSchemasPartnership32$inboundSchema` instead. */
902
+ export const inboundSchema = IntegrationSchemasPartnership32$inboundSchema;
903
+ /** @deprecated use `IntegrationSchemasPartnership32$outboundSchema` instead. */
904
+ export const outboundSchema = IntegrationSchemasPartnership32$outboundSchema;
905
+ /** @deprecated use `IntegrationSchemasPartnership32$Outbound` instead. */
906
+ export type Outbound = IntegrationSchemasPartnership32$Outbound;
907
+ }
908
+
909
+ export function integrationSchemasPartnership32ToJSON(
910
+ integrationSchemasPartnership32: IntegrationSchemasPartnership32,
911
+ ): string {
912
+ return JSON.stringify(
913
+ IntegrationSchemasPartnership32$outboundSchema.parse(
914
+ integrationSchemasPartnership32,
915
+ ),
916
+ );
917
+ }
918
+
919
+ export function integrationSchemasPartnership32FromJSON(
920
+ jsonString: string,
921
+ ): SafeParseResult<IntegrationSchemasPartnership32, SDKValidationError> {
922
+ return safeParse(
923
+ jsonString,
924
+ (x) => IntegrationSchemasPartnership32$inboundSchema.parse(JSON.parse(x)),
925
+ `Failed to parse 'IntegrationSchemasPartnership32' from JSON`,
926
+ );
927
+ }
928
+
929
+ /** @internal */
930
+ export const IntegrationSchemas3$inboundSchema: z.ZodType<
931
+ IntegrationSchemas3,
932
+ z.ZodTypeDef,
933
+ unknown
934
+ > = z.union([
935
+ z.lazy(() => IntegrationSchemasPartnership32$inboundSchema),
936
+ z.number(),
937
+ ]);
938
+
939
+ /** @internal */
940
+ export type IntegrationSchemas3$Outbound =
941
+ | IntegrationSchemasPartnership32$Outbound
942
+ | number;
943
+
944
+ /** @internal */
945
+ export const IntegrationSchemas3$outboundSchema: z.ZodType<
946
+ IntegrationSchemas3$Outbound,
947
+ z.ZodTypeDef,
948
+ IntegrationSchemas3
949
+ > = z.union([
950
+ z.lazy(() => IntegrationSchemasPartnership32$outboundSchema),
951
+ z.number(),
952
+ ]);
953
+
954
+ /**
955
+ * @internal
956
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
957
+ */
958
+ export namespace IntegrationSchemas3$ {
959
+ /** @deprecated use `IntegrationSchemas3$inboundSchema` instead. */
960
+ export const inboundSchema = IntegrationSchemas3$inboundSchema;
961
+ /** @deprecated use `IntegrationSchemas3$outboundSchema` instead. */
962
+ export const outboundSchema = IntegrationSchemas3$outboundSchema;
963
+ /** @deprecated use `IntegrationSchemas3$Outbound` instead. */
964
+ export type Outbound = IntegrationSchemas3$Outbound;
965
+ }
966
+
967
+ export function integrationSchemas3ToJSON(
968
+ integrationSchemas3: IntegrationSchemas3,
969
+ ): string {
970
+ return JSON.stringify(
971
+ IntegrationSchemas3$outboundSchema.parse(integrationSchemas3),
972
+ );
973
+ }
974
+
975
+ export function integrationSchemas3FromJSON(
976
+ jsonString: string,
977
+ ): SafeParseResult<IntegrationSchemas3, SDKValidationError> {
978
+ return safeParse(
979
+ jsonString,
980
+ (x) => IntegrationSchemas3$inboundSchema.parse(JSON.parse(x)),
981
+ `Failed to parse 'IntegrationSchemas3' from JSON`,
982
+ );
983
+ }
984
+
985
+ /** @internal */
986
+ export const IntegrationSchemasPartnership2$inboundSchema: z.ZodType<
987
+ IntegrationSchemasPartnership2,
988
+ z.ZodTypeDef,
989
+ unknown
990
+ > = z.object({});
991
+
992
+ /** @internal */
993
+ export type IntegrationSchemasPartnership2$Outbound = {};
994
+
995
+ /** @internal */
996
+ export const IntegrationSchemasPartnership2$outboundSchema: z.ZodType<
997
+ IntegrationSchemasPartnership2$Outbound,
998
+ z.ZodTypeDef,
999
+ IntegrationSchemasPartnership2
1000
+ > = z.object({});
1001
+
1002
+ /**
1003
+ * @internal
1004
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1005
+ */
1006
+ export namespace IntegrationSchemasPartnership2$ {
1007
+ /** @deprecated use `IntegrationSchemasPartnership2$inboundSchema` instead. */
1008
+ export const inboundSchema = IntegrationSchemasPartnership2$inboundSchema;
1009
+ /** @deprecated use `IntegrationSchemasPartnership2$outboundSchema` instead. */
1010
+ export const outboundSchema = IntegrationSchemasPartnership2$outboundSchema;
1011
+ /** @deprecated use `IntegrationSchemasPartnership2$Outbound` instead. */
1012
+ export type Outbound = IntegrationSchemasPartnership2$Outbound;
1013
+ }
1014
+
1015
+ export function integrationSchemasPartnership2ToJSON(
1016
+ integrationSchemasPartnership2: IntegrationSchemasPartnership2,
1017
+ ): string {
1018
+ return JSON.stringify(
1019
+ IntegrationSchemasPartnership2$outboundSchema.parse(
1020
+ integrationSchemasPartnership2,
1021
+ ),
1022
+ );
1023
+ }
1024
+
1025
+ export function integrationSchemasPartnership2FromJSON(
1026
+ jsonString: string,
1027
+ ): SafeParseResult<IntegrationSchemasPartnership2, SDKValidationError> {
1028
+ return safeParse(
1029
+ jsonString,
1030
+ (x) => IntegrationSchemasPartnership2$inboundSchema.parse(JSON.parse(x)),
1031
+ `Failed to parse 'IntegrationSchemasPartnership2' from JSON`,
1032
+ );
1033
+ }
1034
+
1035
+ /** @internal */
1036
+ export const IntegrationSchemas2$inboundSchema: z.ZodType<
1037
+ IntegrationSchemas2,
1038
+ z.ZodTypeDef,
1039
+ unknown
1040
+ > = z.union([
1041
+ z.lazy(() => IntegrationSchemasPartnership2$inboundSchema),
1042
+ z.string(),
1043
+ ]);
1044
+
1045
+ /** @internal */
1046
+ export type IntegrationSchemas2$Outbound =
1047
+ | IntegrationSchemasPartnership2$Outbound
1048
+ | string;
1049
+
1050
+ /** @internal */
1051
+ export const IntegrationSchemas2$outboundSchema: z.ZodType<
1052
+ IntegrationSchemas2$Outbound,
1053
+ z.ZodTypeDef,
1054
+ IntegrationSchemas2
1055
+ > = z.union([
1056
+ z.lazy(() => IntegrationSchemasPartnership2$outboundSchema),
1057
+ z.string(),
1058
+ ]);
1059
+
1060
+ /**
1061
+ * @internal
1062
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1063
+ */
1064
+ export namespace IntegrationSchemas2$ {
1065
+ /** @deprecated use `IntegrationSchemas2$inboundSchema` instead. */
1066
+ export const inboundSchema = IntegrationSchemas2$inboundSchema;
1067
+ /** @deprecated use `IntegrationSchemas2$outboundSchema` instead. */
1068
+ export const outboundSchema = IntegrationSchemas2$outboundSchema;
1069
+ /** @deprecated use `IntegrationSchemas2$Outbound` instead. */
1070
+ export type Outbound = IntegrationSchemas2$Outbound;
1071
+ }
1072
+
1073
+ export function integrationSchemas2ToJSON(
1074
+ integrationSchemas2: IntegrationSchemas2,
1075
+ ): string {
1076
+ return JSON.stringify(
1077
+ IntegrationSchemas2$outboundSchema.parse(integrationSchemas2),
1078
+ );
1079
+ }
1080
+
1081
+ export function integrationSchemas2FromJSON(
1082
+ jsonString: string,
1083
+ ): SafeParseResult<IntegrationSchemas2, SDKValidationError> {
1084
+ return safeParse(
1085
+ jsonString,
1086
+ (x) => IntegrationSchemas2$inboundSchema.parse(JSON.parse(x)),
1087
+ `Failed to parse 'IntegrationSchemas2' from JSON`,
1088
+ );
1089
+ }
1090
+
1091
+ /** @internal */
1092
+ export const IntegrationSchemas1$inboundSchema: z.ZodType<
1093
+ IntegrationSchemas1,
1094
+ z.ZodTypeDef,
1095
+ unknown
1096
+ > = z.object({});
1097
+
1098
+ /** @internal */
1099
+ export type IntegrationSchemas1$Outbound = {};
1100
+
1101
+ /** @internal */
1102
+ export const IntegrationSchemas1$outboundSchema: z.ZodType<
1103
+ IntegrationSchemas1$Outbound,
1104
+ z.ZodTypeDef,
1105
+ IntegrationSchemas1
1106
+ > = z.object({});
1107
+
1108
+ /**
1109
+ * @internal
1110
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1111
+ */
1112
+ export namespace IntegrationSchemas1$ {
1113
+ /** @deprecated use `IntegrationSchemas1$inboundSchema` instead. */
1114
+ export const inboundSchema = IntegrationSchemas1$inboundSchema;
1115
+ /** @deprecated use `IntegrationSchemas1$outboundSchema` instead. */
1116
+ export const outboundSchema = IntegrationSchemas1$outboundSchema;
1117
+ /** @deprecated use `IntegrationSchemas1$Outbound` instead. */
1118
+ export type Outbound = IntegrationSchemas1$Outbound;
1119
+ }
1120
+
1121
+ export function integrationSchemas1ToJSON(
1122
+ integrationSchemas1: IntegrationSchemas1,
1123
+ ): string {
1124
+ return JSON.stringify(
1125
+ IntegrationSchemas1$outboundSchema.parse(integrationSchemas1),
1126
+ );
1127
+ }
1128
+
1129
+ export function integrationSchemas1FromJSON(
1130
+ jsonString: string,
1131
+ ): SafeParseResult<IntegrationSchemas1, SDKValidationError> {
1132
+ return safeParse(
1133
+ jsonString,
1134
+ (x) => IntegrationSchemas1$inboundSchema.parse(JSON.parse(x)),
1135
+ `Failed to parse 'IntegrationSchemas1' from JSON`,
1136
+ );
1137
+ }
1138
+
1139
+ /** @internal */
1140
+ export const Partnership$inboundSchema: z.ZodType<
1141
+ Partnership,
1142
+ z.ZodTypeDef,
1143
+ unknown
1144
+ > = z.union([
1145
+ z.lazy(() => IntegrationSchemas1$inboundSchema),
1146
+ z.union([
1147
+ z.lazy(() => IntegrationSchemasPartnership2$inboundSchema),
1148
+ z.string(),
1149
+ ]),
1150
+ z.union([
1151
+ z.lazy(() => IntegrationSchemasPartnership32$inboundSchema),
1152
+ z.number(),
1153
+ ]),
1154
+ z.union([
1155
+ z.lazy(() => IntegrationSchemasPartnership42$inboundSchema),
1156
+ z.boolean(),
1157
+ ]),
1158
+ z.union([
1159
+ z.lazy(() => IntegrationSchemasPartnership52$inboundSchema),
1160
+ z.array(z.any()),
1161
+ ]),
1162
+ ]);
1163
+
1164
+ /** @internal */
1165
+ export type Partnership$Outbound =
1166
+ | IntegrationSchemas1$Outbound
1167
+ | IntegrationSchemasPartnership2$Outbound
1168
+ | string
1169
+ | IntegrationSchemasPartnership32$Outbound
1170
+ | number
1171
+ | IntegrationSchemasPartnership42$Outbound
1172
+ | boolean
1173
+ | IntegrationSchemasPartnership52$Outbound
1174
+ | Array<any>;
1175
+
1176
+ /** @internal */
1177
+ export const Partnership$outboundSchema: z.ZodType<
1178
+ Partnership$Outbound,
1179
+ z.ZodTypeDef,
1180
+ Partnership
1181
+ > = z.union([
1182
+ z.lazy(() => IntegrationSchemas1$outboundSchema),
1183
+ z.union([
1184
+ z.lazy(() => IntegrationSchemasPartnership2$outboundSchema),
1185
+ z.string(),
1186
+ ]),
1187
+ z.union([
1188
+ z.lazy(() => IntegrationSchemasPartnership32$outboundSchema),
1189
+ z.number(),
1190
+ ]),
1191
+ z.union([
1192
+ z.lazy(() => IntegrationSchemasPartnership42$outboundSchema),
1193
+ z.boolean(),
1194
+ ]),
1195
+ z.union([
1196
+ z.lazy(() => IntegrationSchemasPartnership52$outboundSchema),
1197
+ z.array(z.any()),
1198
+ ]),
1199
+ ]);
1200
+
1201
+ /**
1202
+ * @internal
1203
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1204
+ */
1205
+ export namespace Partnership$ {
1206
+ /** @deprecated use `Partnership$inboundSchema` instead. */
1207
+ export const inboundSchema = Partnership$inboundSchema;
1208
+ /** @deprecated use `Partnership$outboundSchema` instead. */
1209
+ export const outboundSchema = Partnership$outboundSchema;
1210
+ /** @deprecated use `Partnership$Outbound` instead. */
1211
+ export type Outbound = Partnership$Outbound;
1212
+ }
1213
+
1214
+ export function partnershipToJSON(partnership: Partnership): string {
1215
+ return JSON.stringify(Partnership$outboundSchema.parse(partnership));
1216
+ }
1217
+
1218
+ export function partnershipFromJSON(
1219
+ jsonString: string,
1220
+ ): SafeParseResult<Partnership, SDKValidationError> {
1221
+ return safeParse(
1222
+ jsonString,
1223
+ (x) => Partnership$inboundSchema.parse(JSON.parse(x)),
1224
+ `Failed to parse 'Partnership' from JSON`,
1225
+ );
1226
+ }
1227
+
1228
+ /** @internal */
1229
+ export const IntegrationSchemasSandbox52$inboundSchema: z.ZodType<
1230
+ IntegrationSchemasSandbox52,
1231
+ z.ZodTypeDef,
1232
+ unknown
1233
+ > = z.object({});
1234
+
1235
+ /** @internal */
1236
+ export type IntegrationSchemasSandbox52$Outbound = {};
1237
+
1238
+ /** @internal */
1239
+ export const IntegrationSchemasSandbox52$outboundSchema: z.ZodType<
1240
+ IntegrationSchemasSandbox52$Outbound,
1241
+ z.ZodTypeDef,
1242
+ IntegrationSchemasSandbox52
1243
+ > = z.object({});
1244
+
1245
+ /**
1246
+ * @internal
1247
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1248
+ */
1249
+ export namespace IntegrationSchemasSandbox52$ {
1250
+ /** @deprecated use `IntegrationSchemasSandbox52$inboundSchema` instead. */
1251
+ export const inboundSchema = IntegrationSchemasSandbox52$inboundSchema;
1252
+ /** @deprecated use `IntegrationSchemasSandbox52$outboundSchema` instead. */
1253
+ export const outboundSchema = IntegrationSchemasSandbox52$outboundSchema;
1254
+ /** @deprecated use `IntegrationSchemasSandbox52$Outbound` instead. */
1255
+ export type Outbound = IntegrationSchemasSandbox52$Outbound;
1256
+ }
1257
+
1258
+ export function integrationSchemasSandbox52ToJSON(
1259
+ integrationSchemasSandbox52: IntegrationSchemasSandbox52,
1260
+ ): string {
1261
+ return JSON.stringify(
1262
+ IntegrationSchemasSandbox52$outboundSchema.parse(
1263
+ integrationSchemasSandbox52,
1264
+ ),
1265
+ );
1266
+ }
1267
+
1268
+ export function integrationSchemasSandbox52FromJSON(
1269
+ jsonString: string,
1270
+ ): SafeParseResult<IntegrationSchemasSandbox52, SDKValidationError> {
1271
+ return safeParse(
1272
+ jsonString,
1273
+ (x) => IntegrationSchemasSandbox52$inboundSchema.parse(JSON.parse(x)),
1274
+ `Failed to parse 'IntegrationSchemasSandbox52' from JSON`,
1275
+ );
1276
+ }
1277
+
1278
+ /** @internal */
1279
+ export const IntegrationSchemasSandbox5$inboundSchema: z.ZodType<
1280
+ IntegrationSchemasSandbox5,
1281
+ z.ZodTypeDef,
1282
+ unknown
1283
+ > = z.union([
1284
+ z.lazy(() => IntegrationSchemasSandbox52$inboundSchema),
1285
+ z.array(z.any()),
1286
+ ]);
1287
+
1288
+ /** @internal */
1289
+ export type IntegrationSchemasSandbox5$Outbound =
1290
+ | IntegrationSchemasSandbox52$Outbound
1291
+ | Array<any>;
1292
+
1293
+ /** @internal */
1294
+ export const IntegrationSchemasSandbox5$outboundSchema: z.ZodType<
1295
+ IntegrationSchemasSandbox5$Outbound,
1296
+ z.ZodTypeDef,
1297
+ IntegrationSchemasSandbox5
1298
+ > = z.union([
1299
+ z.lazy(() => IntegrationSchemasSandbox52$outboundSchema),
1300
+ z.array(z.any()),
1301
+ ]);
1302
+
1303
+ /**
1304
+ * @internal
1305
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1306
+ */
1307
+ export namespace IntegrationSchemasSandbox5$ {
1308
+ /** @deprecated use `IntegrationSchemasSandbox5$inboundSchema` instead. */
1309
+ export const inboundSchema = IntegrationSchemasSandbox5$inboundSchema;
1310
+ /** @deprecated use `IntegrationSchemasSandbox5$outboundSchema` instead. */
1311
+ export const outboundSchema = IntegrationSchemasSandbox5$outboundSchema;
1312
+ /** @deprecated use `IntegrationSchemasSandbox5$Outbound` instead. */
1313
+ export type Outbound = IntegrationSchemasSandbox5$Outbound;
1314
+ }
1315
+
1316
+ export function integrationSchemasSandbox5ToJSON(
1317
+ integrationSchemasSandbox5: IntegrationSchemasSandbox5,
1318
+ ): string {
1319
+ return JSON.stringify(
1320
+ IntegrationSchemasSandbox5$outboundSchema.parse(integrationSchemasSandbox5),
1321
+ );
1322
+ }
1323
+
1324
+ export function integrationSchemasSandbox5FromJSON(
1325
+ jsonString: string,
1326
+ ): SafeParseResult<IntegrationSchemasSandbox5, SDKValidationError> {
1327
+ return safeParse(
1328
+ jsonString,
1329
+ (x) => IntegrationSchemasSandbox5$inboundSchema.parse(JSON.parse(x)),
1330
+ `Failed to parse 'IntegrationSchemasSandbox5' from JSON`,
1331
+ );
1332
+ }
1333
+
1334
+ /** @internal */
1335
+ export const IntegrationSchemasSandbox42$inboundSchema: z.ZodType<
1336
+ IntegrationSchemasSandbox42,
1337
+ z.ZodTypeDef,
1338
+ unknown
1339
+ > = z.object({});
1340
+
1341
+ /** @internal */
1342
+ export type IntegrationSchemasSandbox42$Outbound = {};
1343
+
1344
+ /** @internal */
1345
+ export const IntegrationSchemasSandbox42$outboundSchema: z.ZodType<
1346
+ IntegrationSchemasSandbox42$Outbound,
1347
+ z.ZodTypeDef,
1348
+ IntegrationSchemasSandbox42
1349
+ > = z.object({});
1350
+
1351
+ /**
1352
+ * @internal
1353
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1354
+ */
1355
+ export namespace IntegrationSchemasSandbox42$ {
1356
+ /** @deprecated use `IntegrationSchemasSandbox42$inboundSchema` instead. */
1357
+ export const inboundSchema = IntegrationSchemasSandbox42$inboundSchema;
1358
+ /** @deprecated use `IntegrationSchemasSandbox42$outboundSchema` instead. */
1359
+ export const outboundSchema = IntegrationSchemasSandbox42$outboundSchema;
1360
+ /** @deprecated use `IntegrationSchemasSandbox42$Outbound` instead. */
1361
+ export type Outbound = IntegrationSchemasSandbox42$Outbound;
1362
+ }
1363
+
1364
+ export function integrationSchemasSandbox42ToJSON(
1365
+ integrationSchemasSandbox42: IntegrationSchemasSandbox42,
1366
+ ): string {
1367
+ return JSON.stringify(
1368
+ IntegrationSchemasSandbox42$outboundSchema.parse(
1369
+ integrationSchemasSandbox42,
1370
+ ),
1371
+ );
1372
+ }
1373
+
1374
+ export function integrationSchemasSandbox42FromJSON(
1375
+ jsonString: string,
1376
+ ): SafeParseResult<IntegrationSchemasSandbox42, SDKValidationError> {
1377
+ return safeParse(
1378
+ jsonString,
1379
+ (x) => IntegrationSchemasSandbox42$inboundSchema.parse(JSON.parse(x)),
1380
+ `Failed to parse 'IntegrationSchemasSandbox42' from JSON`,
1381
+ );
1382
+ }
1383
+
1384
+ /** @internal */
1385
+ export const IntegrationSchemasSandbox4$inboundSchema: z.ZodType<
1386
+ IntegrationSchemasSandbox4,
1387
+ z.ZodTypeDef,
1388
+ unknown
1389
+ > = z.union([
1390
+ z.lazy(() => IntegrationSchemasSandbox42$inboundSchema),
1391
+ z.boolean(),
1392
+ ]);
1393
+
1394
+ /** @internal */
1395
+ export type IntegrationSchemasSandbox4$Outbound =
1396
+ | IntegrationSchemasSandbox42$Outbound
1397
+ | boolean;
1398
+
1399
+ /** @internal */
1400
+ export const IntegrationSchemasSandbox4$outboundSchema: z.ZodType<
1401
+ IntegrationSchemasSandbox4$Outbound,
1402
+ z.ZodTypeDef,
1403
+ IntegrationSchemasSandbox4
1404
+ > = z.union([
1405
+ z.lazy(() => IntegrationSchemasSandbox42$outboundSchema),
1406
+ z.boolean(),
1407
+ ]);
1408
+
1409
+ /**
1410
+ * @internal
1411
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1412
+ */
1413
+ export namespace IntegrationSchemasSandbox4$ {
1414
+ /** @deprecated use `IntegrationSchemasSandbox4$inboundSchema` instead. */
1415
+ export const inboundSchema = IntegrationSchemasSandbox4$inboundSchema;
1416
+ /** @deprecated use `IntegrationSchemasSandbox4$outboundSchema` instead. */
1417
+ export const outboundSchema = IntegrationSchemasSandbox4$outboundSchema;
1418
+ /** @deprecated use `IntegrationSchemasSandbox4$Outbound` instead. */
1419
+ export type Outbound = IntegrationSchemasSandbox4$Outbound;
1420
+ }
1421
+
1422
+ export function integrationSchemasSandbox4ToJSON(
1423
+ integrationSchemasSandbox4: IntegrationSchemasSandbox4,
1424
+ ): string {
1425
+ return JSON.stringify(
1426
+ IntegrationSchemasSandbox4$outboundSchema.parse(integrationSchemasSandbox4),
1427
+ );
1428
+ }
1429
+
1430
+ export function integrationSchemasSandbox4FromJSON(
1431
+ jsonString: string,
1432
+ ): SafeParseResult<IntegrationSchemasSandbox4, SDKValidationError> {
1433
+ return safeParse(
1434
+ jsonString,
1435
+ (x) => IntegrationSchemasSandbox4$inboundSchema.parse(JSON.parse(x)),
1436
+ `Failed to parse 'IntegrationSchemasSandbox4' from JSON`,
1437
+ );
1438
+ }
1439
+
1440
+ /** @internal */
1441
+ export const IntegrationSchemasSandbox32$inboundSchema: z.ZodType<
1442
+ IntegrationSchemasSandbox32,
1443
+ z.ZodTypeDef,
1444
+ unknown
1445
+ > = z.object({});
1446
+
1447
+ /** @internal */
1448
+ export type IntegrationSchemasSandbox32$Outbound = {};
1449
+
1450
+ /** @internal */
1451
+ export const IntegrationSchemasSandbox32$outboundSchema: z.ZodType<
1452
+ IntegrationSchemasSandbox32$Outbound,
1453
+ z.ZodTypeDef,
1454
+ IntegrationSchemasSandbox32
1455
+ > = z.object({});
1456
+
1457
+ /**
1458
+ * @internal
1459
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1460
+ */
1461
+ export namespace IntegrationSchemasSandbox32$ {
1462
+ /** @deprecated use `IntegrationSchemasSandbox32$inboundSchema` instead. */
1463
+ export const inboundSchema = IntegrationSchemasSandbox32$inboundSchema;
1464
+ /** @deprecated use `IntegrationSchemasSandbox32$outboundSchema` instead. */
1465
+ export const outboundSchema = IntegrationSchemasSandbox32$outboundSchema;
1466
+ /** @deprecated use `IntegrationSchemasSandbox32$Outbound` instead. */
1467
+ export type Outbound = IntegrationSchemasSandbox32$Outbound;
1468
+ }
1469
+
1470
+ export function integrationSchemasSandbox32ToJSON(
1471
+ integrationSchemasSandbox32: IntegrationSchemasSandbox32,
1472
+ ): string {
1473
+ return JSON.stringify(
1474
+ IntegrationSchemasSandbox32$outboundSchema.parse(
1475
+ integrationSchemasSandbox32,
1476
+ ),
1477
+ );
1478
+ }
1479
+
1480
+ export function integrationSchemasSandbox32FromJSON(
1481
+ jsonString: string,
1482
+ ): SafeParseResult<IntegrationSchemasSandbox32, SDKValidationError> {
1483
+ return safeParse(
1484
+ jsonString,
1485
+ (x) => IntegrationSchemasSandbox32$inboundSchema.parse(JSON.parse(x)),
1486
+ `Failed to parse 'IntegrationSchemasSandbox32' from JSON`,
1487
+ );
1488
+ }
1489
+
1490
+ /** @internal */
1491
+ export const IntegrationSchemasSandbox3$inboundSchema: z.ZodType<
1492
+ IntegrationSchemasSandbox3,
1493
+ z.ZodTypeDef,
1494
+ unknown
1495
+ > = z.union([
1496
+ z.lazy(() => IntegrationSchemasSandbox32$inboundSchema),
1497
+ z.number(),
1498
+ ]);
1499
+
1500
+ /** @internal */
1501
+ export type IntegrationSchemasSandbox3$Outbound =
1502
+ | IntegrationSchemasSandbox32$Outbound
1503
+ | number;
1504
+
1505
+ /** @internal */
1506
+ export const IntegrationSchemasSandbox3$outboundSchema: z.ZodType<
1507
+ IntegrationSchemasSandbox3$Outbound,
1508
+ z.ZodTypeDef,
1509
+ IntegrationSchemasSandbox3
1510
+ > = z.union([
1511
+ z.lazy(() => IntegrationSchemasSandbox32$outboundSchema),
1512
+ z.number(),
1513
+ ]);
1514
+
1515
+ /**
1516
+ * @internal
1517
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1518
+ */
1519
+ export namespace IntegrationSchemasSandbox3$ {
1520
+ /** @deprecated use `IntegrationSchemasSandbox3$inboundSchema` instead. */
1521
+ export const inboundSchema = IntegrationSchemasSandbox3$inboundSchema;
1522
+ /** @deprecated use `IntegrationSchemasSandbox3$outboundSchema` instead. */
1523
+ export const outboundSchema = IntegrationSchemasSandbox3$outboundSchema;
1524
+ /** @deprecated use `IntegrationSchemasSandbox3$Outbound` instead. */
1525
+ export type Outbound = IntegrationSchemasSandbox3$Outbound;
1526
+ }
1527
+
1528
+ export function integrationSchemasSandbox3ToJSON(
1529
+ integrationSchemasSandbox3: IntegrationSchemasSandbox3,
1530
+ ): string {
1531
+ return JSON.stringify(
1532
+ IntegrationSchemasSandbox3$outboundSchema.parse(integrationSchemasSandbox3),
1533
+ );
1534
+ }
1535
+
1536
+ export function integrationSchemasSandbox3FromJSON(
1537
+ jsonString: string,
1538
+ ): SafeParseResult<IntegrationSchemasSandbox3, SDKValidationError> {
1539
+ return safeParse(
1540
+ jsonString,
1541
+ (x) => IntegrationSchemasSandbox3$inboundSchema.parse(JSON.parse(x)),
1542
+ `Failed to parse 'IntegrationSchemasSandbox3' from JSON`,
1543
+ );
1544
+ }
1545
+
1546
+ /** @internal */
1547
+ export const IntegrationSchemasSandbox22$inboundSchema: z.ZodType<
1548
+ IntegrationSchemasSandbox22,
1549
+ z.ZodTypeDef,
1550
+ unknown
1551
+ > = z.object({});
1552
+
1553
+ /** @internal */
1554
+ export type IntegrationSchemasSandbox22$Outbound = {};
1555
+
1556
+ /** @internal */
1557
+ export const IntegrationSchemasSandbox22$outboundSchema: z.ZodType<
1558
+ IntegrationSchemasSandbox22$Outbound,
1559
+ z.ZodTypeDef,
1560
+ IntegrationSchemasSandbox22
1561
+ > = z.object({});
1562
+
1563
+ /**
1564
+ * @internal
1565
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1566
+ */
1567
+ export namespace IntegrationSchemasSandbox22$ {
1568
+ /** @deprecated use `IntegrationSchemasSandbox22$inboundSchema` instead. */
1569
+ export const inboundSchema = IntegrationSchemasSandbox22$inboundSchema;
1570
+ /** @deprecated use `IntegrationSchemasSandbox22$outboundSchema` instead. */
1571
+ export const outboundSchema = IntegrationSchemasSandbox22$outboundSchema;
1572
+ /** @deprecated use `IntegrationSchemasSandbox22$Outbound` instead. */
1573
+ export type Outbound = IntegrationSchemasSandbox22$Outbound;
1574
+ }
1575
+
1576
+ export function integrationSchemasSandbox22ToJSON(
1577
+ integrationSchemasSandbox22: IntegrationSchemasSandbox22,
1578
+ ): string {
1579
+ return JSON.stringify(
1580
+ IntegrationSchemasSandbox22$outboundSchema.parse(
1581
+ integrationSchemasSandbox22,
1582
+ ),
1583
+ );
1584
+ }
1585
+
1586
+ export function integrationSchemasSandbox22FromJSON(
1587
+ jsonString: string,
1588
+ ): SafeParseResult<IntegrationSchemasSandbox22, SDKValidationError> {
1589
+ return safeParse(
1590
+ jsonString,
1591
+ (x) => IntegrationSchemasSandbox22$inboundSchema.parse(JSON.parse(x)),
1592
+ `Failed to parse 'IntegrationSchemasSandbox22' from JSON`,
1593
+ );
1594
+ }
1595
+
1596
+ /** @internal */
1597
+ export const IntegrationSchemasSandbox2$inboundSchema: z.ZodType<
1598
+ IntegrationSchemasSandbox2,
1599
+ z.ZodTypeDef,
1600
+ unknown
1601
+ > = z.union([
1602
+ z.lazy(() => IntegrationSchemasSandbox22$inboundSchema),
1603
+ z.string(),
1604
+ ]);
1605
+
1606
+ /** @internal */
1607
+ export type IntegrationSchemasSandbox2$Outbound =
1608
+ | IntegrationSchemasSandbox22$Outbound
1609
+ | string;
1610
+
1611
+ /** @internal */
1612
+ export const IntegrationSchemasSandbox2$outboundSchema: z.ZodType<
1613
+ IntegrationSchemasSandbox2$Outbound,
1614
+ z.ZodTypeDef,
1615
+ IntegrationSchemasSandbox2
1616
+ > = z.union([
1617
+ z.lazy(() => IntegrationSchemasSandbox22$outboundSchema),
1618
+ z.string(),
1619
+ ]);
1620
+
1621
+ /**
1622
+ * @internal
1623
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1624
+ */
1625
+ export namespace IntegrationSchemasSandbox2$ {
1626
+ /** @deprecated use `IntegrationSchemasSandbox2$inboundSchema` instead. */
1627
+ export const inboundSchema = IntegrationSchemasSandbox2$inboundSchema;
1628
+ /** @deprecated use `IntegrationSchemasSandbox2$outboundSchema` instead. */
1629
+ export const outboundSchema = IntegrationSchemasSandbox2$outboundSchema;
1630
+ /** @deprecated use `IntegrationSchemasSandbox2$Outbound` instead. */
1631
+ export type Outbound = IntegrationSchemasSandbox2$Outbound;
1632
+ }
1633
+
1634
+ export function integrationSchemasSandbox2ToJSON(
1635
+ integrationSchemasSandbox2: IntegrationSchemasSandbox2,
1636
+ ): string {
1637
+ return JSON.stringify(
1638
+ IntegrationSchemasSandbox2$outboundSchema.parse(integrationSchemasSandbox2),
1639
+ );
1640
+ }
1641
+
1642
+ export function integrationSchemasSandbox2FromJSON(
1643
+ jsonString: string,
1644
+ ): SafeParseResult<IntegrationSchemasSandbox2, SDKValidationError> {
1645
+ return safeParse(
1646
+ jsonString,
1647
+ (x) => IntegrationSchemasSandbox2$inboundSchema.parse(JSON.parse(x)),
1648
+ `Failed to parse 'IntegrationSchemasSandbox2' from JSON`,
1649
+ );
1650
+ }
1651
+
1652
+ /** @internal */
1653
+ export const IntegrationSchemasSandbox1$inboundSchema: z.ZodType<
1654
+ IntegrationSchemasSandbox1,
1655
+ z.ZodTypeDef,
1656
+ unknown
1657
+ > = z.object({});
1658
+
1659
+ /** @internal */
1660
+ export type IntegrationSchemasSandbox1$Outbound = {};
1661
+
1662
+ /** @internal */
1663
+ export const IntegrationSchemasSandbox1$outboundSchema: z.ZodType<
1664
+ IntegrationSchemasSandbox1$Outbound,
1665
+ z.ZodTypeDef,
1666
+ IntegrationSchemasSandbox1
1667
+ > = z.object({});
1668
+
1669
+ /**
1670
+ * @internal
1671
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1672
+ */
1673
+ export namespace IntegrationSchemasSandbox1$ {
1674
+ /** @deprecated use `IntegrationSchemasSandbox1$inboundSchema` instead. */
1675
+ export const inboundSchema = IntegrationSchemasSandbox1$inboundSchema;
1676
+ /** @deprecated use `IntegrationSchemasSandbox1$outboundSchema` instead. */
1677
+ export const outboundSchema = IntegrationSchemasSandbox1$outboundSchema;
1678
+ /** @deprecated use `IntegrationSchemasSandbox1$Outbound` instead. */
1679
+ export type Outbound = IntegrationSchemasSandbox1$Outbound;
1680
+ }
1681
+
1682
+ export function integrationSchemasSandbox1ToJSON(
1683
+ integrationSchemasSandbox1: IntegrationSchemasSandbox1,
1684
+ ): string {
1685
+ return JSON.stringify(
1686
+ IntegrationSchemasSandbox1$outboundSchema.parse(integrationSchemasSandbox1),
1687
+ );
1688
+ }
1689
+
1690
+ export function integrationSchemasSandbox1FromJSON(
1691
+ jsonString: string,
1692
+ ): SafeParseResult<IntegrationSchemasSandbox1, SDKValidationError> {
1693
+ return safeParse(
1694
+ jsonString,
1695
+ (x) => IntegrationSchemasSandbox1$inboundSchema.parse(JSON.parse(x)),
1696
+ `Failed to parse 'IntegrationSchemasSandbox1' from JSON`,
1697
+ );
1698
+ }
1699
+
1700
+ /** @internal */
1701
+ export const Sandbox$inboundSchema: z.ZodType<Sandbox, z.ZodTypeDef, unknown> =
1702
+ z.union([
1703
+ z.lazy(() => IntegrationSchemasSandbox1$inboundSchema),
1704
+ z.union([
1705
+ z.lazy(() => IntegrationSchemasSandbox22$inboundSchema),
1706
+ z.string(),
1707
+ ]),
1708
+ z.union([
1709
+ z.lazy(() => IntegrationSchemasSandbox32$inboundSchema),
1710
+ z.number(),
1711
+ ]),
1712
+ z.union([
1713
+ z.lazy(() => IntegrationSchemasSandbox42$inboundSchema),
1714
+ z.boolean(),
1715
+ ]),
1716
+ z.union([
1717
+ z.lazy(() => IntegrationSchemasSandbox52$inboundSchema),
1718
+ z.array(z.any()),
1719
+ ]),
1720
+ ]);
1721
+
1722
+ /** @internal */
1723
+ export type Sandbox$Outbound =
1724
+ | IntegrationSchemasSandbox1$Outbound
1725
+ | IntegrationSchemasSandbox22$Outbound
1726
+ | string
1727
+ | IntegrationSchemasSandbox32$Outbound
1728
+ | number
1729
+ | IntegrationSchemasSandbox42$Outbound
1730
+ | boolean
1731
+ | IntegrationSchemasSandbox52$Outbound
1732
+ | Array<any>;
1733
+
1734
+ /** @internal */
1735
+ export const Sandbox$outboundSchema: z.ZodType<
1736
+ Sandbox$Outbound,
1737
+ z.ZodTypeDef,
1738
+ Sandbox
1739
+ > = z.union([
1740
+ z.lazy(() => IntegrationSchemasSandbox1$outboundSchema),
1741
+ z.union([
1742
+ z.lazy(() => IntegrationSchemasSandbox22$outboundSchema),
1743
+ z.string(),
1744
+ ]),
1745
+ z.union([
1746
+ z.lazy(() => IntegrationSchemasSandbox32$outboundSchema),
1747
+ z.number(),
1748
+ ]),
1749
+ z.union([
1750
+ z.lazy(() => IntegrationSchemasSandbox42$outboundSchema),
1751
+ z.boolean(),
1752
+ ]),
1753
+ z.union([
1754
+ z.lazy(() => IntegrationSchemasSandbox52$outboundSchema),
1755
+ z.array(z.any()),
1756
+ ]),
1757
+ ]);
1758
+
1759
+ /**
1760
+ * @internal
1761
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1762
+ */
1763
+ export namespace Sandbox$ {
1764
+ /** @deprecated use `Sandbox$inboundSchema` instead. */
1765
+ export const inboundSchema = Sandbox$inboundSchema;
1766
+ /** @deprecated use `Sandbox$outboundSchema` instead. */
1767
+ export const outboundSchema = Sandbox$outboundSchema;
1768
+ /** @deprecated use `Sandbox$Outbound` instead. */
1769
+ export type Outbound = Sandbox$Outbound;
1770
+ }
1771
+
1772
+ export function sandboxToJSON(sandbox: Sandbox): string {
1773
+ return JSON.stringify(Sandbox$outboundSchema.parse(sandbox));
1774
+ }
1775
+
1776
+ export function sandboxFromJSON(
1777
+ jsonString: string,
1778
+ ): SafeParseResult<Sandbox, SDKValidationError> {
1779
+ return safeParse(
1780
+ jsonString,
1781
+ (x) => Sandbox$inboundSchema.parse(JSON.parse(x)),
1782
+ `Failed to parse 'Sandbox' from JSON`,
1783
+ );
1784
+ }
1785
+
61
1786
  /** @internal */
62
1787
  export const Integration$inboundSchema: z.ZodType<
63
1788
  Integration,
@@ -65,7 +1790,16 @@ export const Integration$inboundSchema: z.ZodType<
65
1790
  unknown
66
1791
  > = z.object({
67
1792
  active_healthy_connections: z.number().optional(),
68
- api: z.record(z.any()).optional(),
1793
+ api: z.union([
1794
+ z.lazy(() => Integration1$inboundSchema),
1795
+ z.union([z.lazy(() => IntegrationSchemasApi22$inboundSchema), z.string()]),
1796
+ z.union([z.lazy(() => IntegrationSchemasApi32$inboundSchema), z.number()]),
1797
+ z.union([z.lazy(() => IntegrationSchemasApi2$inboundSchema), z.boolean()]),
1798
+ z.union([
1799
+ z.lazy(() => IntegrationSchemasApi52$inboundSchema),
1800
+ z.array(z.any()),
1801
+ ]),
1802
+ ]).optional(),
69
1803
  api_docs_url: z.string().optional(),
70
1804
  beta: z.boolean().optional(),
71
1805
  categories: z.array(PropertyIntegrationCategories$inboundSchema),
@@ -78,13 +1812,53 @@ export const Integration$inboundSchema: z.ZodType<
78
1812
  is_active: z.boolean().optional(),
79
1813
  logo_url: z.string().optional(),
80
1814
  name: z.string(),
1815
+ partnership: z.union([
1816
+ z.lazy(() => IntegrationSchemas1$inboundSchema),
1817
+ z.union([
1818
+ z.lazy(() => IntegrationSchemasPartnership2$inboundSchema),
1819
+ z.string(),
1820
+ ]),
1821
+ z.union([
1822
+ z.lazy(() => IntegrationSchemasPartnership32$inboundSchema),
1823
+ z.number(),
1824
+ ]),
1825
+ z.union([
1826
+ z.lazy(() => IntegrationSchemasPartnership42$inboundSchema),
1827
+ z.boolean(),
1828
+ ]),
1829
+ z.union([
1830
+ z.lazy(() => IntegrationSchemasPartnership52$inboundSchema),
1831
+ z.array(z.any()),
1832
+ ]),
1833
+ ]).optional(),
81
1834
  popularity: z.number().optional(),
82
1835
  rate_limit_description: z.string().optional(),
83
- support: z.record(IntegrationSupport$inboundSchema).optional(),
1836
+ sandbox: z.union([
1837
+ z.lazy(() => IntegrationSchemasSandbox1$inboundSchema),
1838
+ z.union([
1839
+ z.lazy(() => IntegrationSchemasSandbox22$inboundSchema),
1840
+ z.string(),
1841
+ ]),
1842
+ z.union([
1843
+ z.lazy(() => IntegrationSchemasSandbox32$inboundSchema),
1844
+ z.number(),
1845
+ ]),
1846
+ z.union([
1847
+ z.lazy(() => IntegrationSchemasSandbox42$inboundSchema),
1848
+ z.boolean(),
1849
+ ]),
1850
+ z.union([
1851
+ z.lazy(() => IntegrationSchemasSandbox52$inboundSchema),
1852
+ z.array(z.any()),
1853
+ ]),
1854
+ ]).optional(),
1855
+ support: z.record(z.any()).optional(),
84
1856
  tested_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
85
1857
  .optional(),
86
1858
  text_color: z.string().optional(),
87
- token_instructions: z.array(z.string()).optional(),
1859
+ token_instructions: z.array(
1860
+ PropertyIntegrationTokenInstructions$inboundSchema,
1861
+ ).optional(),
88
1862
  token_names: z.array(z.string()).optional(),
89
1863
  type: z.string(),
90
1864
  updated_at: z.string().optional(),
@@ -111,7 +1885,17 @@ export const Integration$inboundSchema: z.ZodType<
111
1885
  /** @internal */
112
1886
  export type Integration$Outbound = {
113
1887
  active_healthy_connections?: number | undefined;
114
- api?: { [k: string]: any } | undefined;
1888
+ api?:
1889
+ | Integration1$Outbound
1890
+ | IntegrationSchemasApi22$Outbound
1891
+ | string
1892
+ | IntegrationSchemasApi32$Outbound
1893
+ | number
1894
+ | IntegrationSchemasApi2$Outbound
1895
+ | boolean
1896
+ | IntegrationSchemasApi52$Outbound
1897
+ | Array<any>
1898
+ | undefined;
115
1899
  api_docs_url?: string | undefined;
116
1900
  beta?: boolean | undefined;
117
1901
  categories: Array<string>;
@@ -124,9 +1908,31 @@ export type Integration$Outbound = {
124
1908
  is_active?: boolean | undefined;
125
1909
  logo_url?: string | undefined;
126
1910
  name: string;
1911
+ partnership?:
1912
+ | IntegrationSchemas1$Outbound
1913
+ | IntegrationSchemasPartnership2$Outbound
1914
+ | string
1915
+ | IntegrationSchemasPartnership32$Outbound
1916
+ | number
1917
+ | IntegrationSchemasPartnership42$Outbound
1918
+ | boolean
1919
+ | IntegrationSchemasPartnership52$Outbound
1920
+ | Array<any>
1921
+ | undefined;
127
1922
  popularity?: number | undefined;
128
1923
  rate_limit_description?: string | undefined;
129
- support?: { [k: string]: IntegrationSupport$Outbound } | undefined;
1924
+ sandbox?:
1925
+ | IntegrationSchemasSandbox1$Outbound
1926
+ | IntegrationSchemasSandbox22$Outbound
1927
+ | string
1928
+ | IntegrationSchemasSandbox32$Outbound
1929
+ | number
1930
+ | IntegrationSchemasSandbox42$Outbound
1931
+ | boolean
1932
+ | IntegrationSchemasSandbox52$Outbound
1933
+ | Array<any>
1934
+ | undefined;
1935
+ support?: { [k: string]: any } | undefined;
130
1936
  tested_at?: string | undefined;
131
1937
  text_color?: string | undefined;
132
1938
  token_instructions?: Array<string> | undefined;
@@ -143,7 +1949,16 @@ export const Integration$outboundSchema: z.ZodType<
143
1949
  Integration
144
1950
  > = z.object({
145
1951
  activeHealthyConnections: z.number().optional(),
146
- api: z.record(z.any()).optional(),
1952
+ api: z.union([
1953
+ z.lazy(() => Integration1$outboundSchema),
1954
+ z.union([z.lazy(() => IntegrationSchemasApi22$outboundSchema), z.string()]),
1955
+ z.union([z.lazy(() => IntegrationSchemasApi32$outboundSchema), z.number()]),
1956
+ z.union([z.lazy(() => IntegrationSchemasApi2$outboundSchema), z.boolean()]),
1957
+ z.union([
1958
+ z.lazy(() => IntegrationSchemasApi52$outboundSchema),
1959
+ z.array(z.any()),
1960
+ ]),
1961
+ ]).optional(),
147
1962
  apiDocsUrl: z.string().optional(),
148
1963
  beta: z.boolean().optional(),
149
1964
  categories: z.array(PropertyIntegrationCategories$outboundSchema),
@@ -156,12 +1971,52 @@ export const Integration$outboundSchema: z.ZodType<
156
1971
  isActive: z.boolean().optional(),
157
1972
  logoUrl: z.string().optional(),
158
1973
  name: z.string(),
1974
+ partnership: z.union([
1975
+ z.lazy(() => IntegrationSchemas1$outboundSchema),
1976
+ z.union([
1977
+ z.lazy(() => IntegrationSchemasPartnership2$outboundSchema),
1978
+ z.string(),
1979
+ ]),
1980
+ z.union([
1981
+ z.lazy(() => IntegrationSchemasPartnership32$outboundSchema),
1982
+ z.number(),
1983
+ ]),
1984
+ z.union([
1985
+ z.lazy(() => IntegrationSchemasPartnership42$outboundSchema),
1986
+ z.boolean(),
1987
+ ]),
1988
+ z.union([
1989
+ z.lazy(() => IntegrationSchemasPartnership52$outboundSchema),
1990
+ z.array(z.any()),
1991
+ ]),
1992
+ ]).optional(),
159
1993
  popularity: z.number().optional(),
160
1994
  rateLimitDescription: z.string().optional(),
161
- support: z.record(IntegrationSupport$outboundSchema).optional(),
1995
+ sandbox: z.union([
1996
+ z.lazy(() => IntegrationSchemasSandbox1$outboundSchema),
1997
+ z.union([
1998
+ z.lazy(() => IntegrationSchemasSandbox22$outboundSchema),
1999
+ z.string(),
2000
+ ]),
2001
+ z.union([
2002
+ z.lazy(() => IntegrationSchemasSandbox32$outboundSchema),
2003
+ z.number(),
2004
+ ]),
2005
+ z.union([
2006
+ z.lazy(() => IntegrationSchemasSandbox42$outboundSchema),
2007
+ z.boolean(),
2008
+ ]),
2009
+ z.union([
2010
+ z.lazy(() => IntegrationSchemasSandbox52$outboundSchema),
2011
+ z.array(z.any()),
2012
+ ]),
2013
+ ]).optional(),
2014
+ support: z.record(z.any()).optional(),
162
2015
  testedAt: z.date().transform(v => v.toISOString()).optional(),
163
2016
  textColor: z.string().optional(),
164
- tokenInstructions: z.array(z.string()).optional(),
2017
+ tokenInstructions: z.array(
2018
+ PropertyIntegrationTokenInstructions$outboundSchema,
2019
+ ).optional(),
165
2020
  tokenNames: z.array(z.string()).optional(),
166
2021
  type: z.string(),
167
2022
  updatedAt: z.string().optional(),