@vercel/sdk 1.13.8 → 1.13.9

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 (138) hide show
  1. package/README.md +24 -20
  2. package/bin/mcp-server.js +2169 -1565
  3. package/bin/mcp-server.js.map +27 -21
  4. package/docs/sdks/marketplace/README.md +150 -0
  5. package/esm/__tests__/domains.test.js +2 -7
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/logdrains.test.js +2 -6
  11. package/esm/__tests__/logdrains.test.js.map +1 -1
  12. package/esm/__tests__/marketplace.test.js +16 -0
  13. package/esm/__tests__/marketplace.test.js.map +1 -1
  14. package/esm/__tests__/rollingrelease.test.js +6 -2
  15. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +4 -4
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/funcs/marketplaceUpdateInstallation.d.ts +17 -0
  19. package/esm/funcs/marketplaceUpdateInstallation.d.ts.map +1 -0
  20. package/esm/funcs/marketplaceUpdateInstallation.js +82 -0
  21. package/esm/funcs/marketplaceUpdateInstallation.js.map +1 -0
  22. package/esm/funcs/marketplaceUpdateResource.d.ts +17 -0
  23. package/esm/funcs/marketplaceUpdateResource.d.ts.map +1 -0
  24. package/esm/funcs/marketplaceUpdateResource.js +85 -0
  25. package/esm/funcs/marketplaceUpdateResource.js.map +1 -0
  26. package/esm/lib/config.d.ts +2 -2
  27. package/esm/lib/config.js +2 -2
  28. package/esm/mcp-server/mcp-server.js +1 -1
  29. package/esm/mcp-server/server.d.ts.map +1 -1
  30. package/esm/mcp-server/server.js +5 -1
  31. package/esm/mcp-server/server.js.map +1 -1
  32. package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts +7 -0
  33. package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts.map +1 -0
  34. package/esm/mcp-server/tools/marketplaceUpdateInstallation.js +27 -0
  35. package/esm/mcp-server/tools/marketplaceUpdateInstallation.js.map +1 -0
  36. package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts +7 -0
  37. package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts.map +1 -0
  38. package/esm/mcp-server/tools/marketplaceUpdateResource.js +28 -0
  39. package/esm/mcp-server/tools/marketplaceUpdateResource.js.map +1 -0
  40. package/esm/models/buysingledomainop.d.ts +8 -8
  41. package/esm/models/buysingledomainop.d.ts.map +1 -1
  42. package/esm/models/buysingledomainop.js +12 -13
  43. package/esm/models/buysingledomainop.js.map +1 -1
  44. package/esm/models/createintegrationstoredirectop.d.ts +285 -285
  45. package/esm/models/createintegrationstoredirectop.js +351 -351
  46. package/esm/models/createprojectenvop.d.ts +6 -6
  47. package/esm/models/createprojectenvop.js +2 -2
  48. package/esm/models/createprojectenvop.js.map +1 -1
  49. package/esm/models/createprojectop.d.ts +154 -156
  50. package/esm/models/createprojectop.d.ts.map +1 -1
  51. package/esm/models/createprojectop.js +149 -151
  52. package/esm/models/createprojectop.js.map +1 -1
  53. package/esm/models/editprojectenvop.d.ts +3 -3
  54. package/esm/models/editprojectenvop.js +1 -1
  55. package/esm/models/editprojectenvop.js.map +1 -1
  56. package/esm/models/exchangessotokenop.d.ts +2 -0
  57. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  58. package/esm/models/exchangessotokenop.js +4 -0
  59. package/esm/models/exchangessotokenop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +9 -9
  61. package/esm/models/filterprojectenvsop.js +3 -3
  62. package/esm/models/filterprojectenvsop.js.map +1 -1
  63. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  64. package/esm/models/getconfigurationproductsop.js +465 -465
  65. package/esm/models/getprojectenvop.d.ts +9 -9
  66. package/esm/models/getprojectenvop.js +3 -3
  67. package/esm/models/getprojectenvop.js.map +1 -1
  68. package/esm/models/getprojectsop.d.ts +124 -126
  69. package/esm/models/getprojectsop.d.ts.map +1 -1
  70. package/esm/models/getprojectsop.js +131 -133
  71. package/esm/models/getprojectsop.js.map +1 -1
  72. package/esm/models/importresourceop.d.ts +68 -68
  73. package/esm/models/importresourceop.d.ts.map +1 -1
  74. package/esm/models/importresourceop.js +75 -72
  75. package/esm/models/importresourceop.js.map +1 -1
  76. package/esm/models/removeprojectenvop.d.ts +9 -9
  77. package/esm/models/removeprojectenvop.js +3 -3
  78. package/esm/models/removeprojectenvop.js.map +1 -1
  79. package/esm/models/updateinstallationop.d.ts +242 -0
  80. package/esm/models/updateinstallationop.d.ts.map +1 -0
  81. package/esm/models/updateinstallationop.js +246 -0
  82. package/esm/models/updateinstallationop.js.map +1 -0
  83. package/esm/models/updateprojectdatacacheop.d.ts +124 -126
  84. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  85. package/esm/models/updateprojectdatacacheop.js +131 -133
  86. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  87. package/esm/models/updateprojectop.d.ts +154 -156
  88. package/esm/models/updateprojectop.d.ts.map +1 -1
  89. package/esm/models/updateprojectop.js +149 -151
  90. package/esm/models/updateprojectop.js.map +1 -1
  91. package/esm/models/updateresourceop.d.ts +432 -0
  92. package/esm/models/updateresourceop.d.ts.map +1 -0
  93. package/esm/models/updateresourceop.js +393 -0
  94. package/esm/models/updateresourceop.js.map +1 -0
  95. package/esm/models/userevent.d.ts +122 -6
  96. package/esm/models/userevent.d.ts.map +1 -1
  97. package/esm/models/userevent.js +90 -2
  98. package/esm/models/userevent.js.map +1 -1
  99. package/esm/sdk/marketplace.d.ts +16 -0
  100. package/esm/sdk/marketplace.d.ts.map +1 -1
  101. package/esm/sdk/marketplace.js +20 -0
  102. package/esm/sdk/marketplace.js.map +1 -1
  103. package/examples/package-lock.json +1 -1
  104. package/jsr.json +1 -1
  105. package/package.json +1 -1
  106. package/src/__tests__/domains.test.ts +2 -7
  107. package/src/__tests__/edgeconfig.test.ts +6 -6
  108. package/src/__tests__/integrations.test.ts +1 -1
  109. package/src/__tests__/logdrains.test.ts +2 -6
  110. package/src/__tests__/marketplace.test.ts +19 -0
  111. package/src/__tests__/rollingrelease.test.ts +6 -2
  112. package/src/__tests__/security.test.ts +4 -4
  113. package/src/funcs/marketplaceUpdateInstallation.ts +174 -0
  114. package/src/funcs/marketplaceUpdateResource.ts +179 -0
  115. package/src/lib/config.ts +2 -2
  116. package/src/mcp-server/mcp-server.ts +1 -1
  117. package/src/mcp-server/server.ts +5 -1
  118. package/src/mcp-server/tools/marketplaceUpdateInstallation.ts +35 -0
  119. package/src/mcp-server/tools/marketplaceUpdateResource.ts +37 -0
  120. package/src/models/buysingledomainop.ts +16 -14
  121. package/src/models/createintegrationstoredirectop.ts +604 -604
  122. package/src/models/createprojectenvop.ts +2 -2
  123. package/src/models/createprojectop.ts +285 -289
  124. package/src/models/editprojectenvop.ts +1 -1
  125. package/src/models/exchangessotokenop.ts +6 -0
  126. package/src/models/filterprojectenvsop.ts +3 -3
  127. package/src/models/getconfigurationproductsop.ts +802 -802
  128. package/src/models/getprojectenvop.ts +3 -3
  129. package/src/models/getprojectsop.ts +255 -259
  130. package/src/models/importresourceop.ts +142 -115
  131. package/src/models/removeprojectenvop.ts +3 -3
  132. package/src/models/updateinstallationop.ts +488 -0
  133. package/src/models/updateprojectdatacacheop.ts +255 -259
  134. package/src/models/updateprojectop.ts +285 -289
  135. package/src/models/updateresourceop.ts +823 -0
  136. package/src/models/userevent.ts +188 -2
  137. package/src/sdk/marketplace.ts +41 -0
  138. package/vercel-spec.json +1618 -1190
@@ -0,0 +1,488 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../lib/schemas.js";
11
+ import { ClosedEnum } from "../types/enums.js";
12
+ import { Result as SafeParseResult } from "../types/fp.js";
13
+ import { SDKValidationError } from "./sdkvalidationerror.js";
14
+
15
+ export const UpdateInstallationType = {
16
+ Prepayment: "prepayment",
17
+ Subscription: "subscription",
18
+ } as const;
19
+ export type UpdateInstallationType = ClosedEnum<typeof UpdateInstallationType>;
20
+
21
+ export type Details = {
22
+ label: string;
23
+ value?: string | undefined;
24
+ };
25
+
26
+ export type HighlightedDetails = {
27
+ label: string;
28
+ value?: string | undefined;
29
+ };
30
+
31
+ export type BillingPlan = {
32
+ id: string;
33
+ type: UpdateInstallationType;
34
+ name: string;
35
+ description?: string | undefined;
36
+ paymentMethodRequired?: boolean | undefined;
37
+ cost?: string | undefined;
38
+ details?: Array<Details> | undefined;
39
+ highlightedDetails?: Array<HighlightedDetails> | undefined;
40
+ effectiveDate?: string | undefined;
41
+ additionalProperties?: { [k: string]: any };
42
+ };
43
+
44
+ export const Level = {
45
+ Info: "info",
46
+ Warn: "warn",
47
+ Error: "error",
48
+ } as const;
49
+ export type Level = ClosedEnum<typeof Level>;
50
+
51
+ export type Notification = {
52
+ level: Level;
53
+ title: string;
54
+ message?: string | undefined;
55
+ href?: string | undefined;
56
+ };
57
+
58
+ export type UpdateInstallationRequestBody = {
59
+ billingPlan?: BillingPlan | undefined;
60
+ notification?: Notification | undefined;
61
+ };
62
+
63
+ export type UpdateInstallationRequest = {
64
+ integrationConfigurationId: string;
65
+ requestBody?: UpdateInstallationRequestBody | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const UpdateInstallationType$inboundSchema: z.ZodNativeEnum<
70
+ typeof UpdateInstallationType
71
+ > = z.nativeEnum(UpdateInstallationType);
72
+
73
+ /** @internal */
74
+ export const UpdateInstallationType$outboundSchema: z.ZodNativeEnum<
75
+ typeof UpdateInstallationType
76
+ > = UpdateInstallationType$inboundSchema;
77
+
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export namespace UpdateInstallationType$ {
83
+ /** @deprecated use `UpdateInstallationType$inboundSchema` instead. */
84
+ export const inboundSchema = UpdateInstallationType$inboundSchema;
85
+ /** @deprecated use `UpdateInstallationType$outboundSchema` instead. */
86
+ export const outboundSchema = UpdateInstallationType$outboundSchema;
87
+ }
88
+
89
+ /** @internal */
90
+ export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
91
+ z.object({
92
+ label: z.string(),
93
+ value: z.string().optional(),
94
+ });
95
+
96
+ /** @internal */
97
+ export type Details$Outbound = {
98
+ label: string;
99
+ value?: string | undefined;
100
+ };
101
+
102
+ /** @internal */
103
+ export const Details$outboundSchema: z.ZodType<
104
+ Details$Outbound,
105
+ z.ZodTypeDef,
106
+ Details
107
+ > = z.object({
108
+ label: z.string(),
109
+ value: z.string().optional(),
110
+ });
111
+
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export namespace Details$ {
117
+ /** @deprecated use `Details$inboundSchema` instead. */
118
+ export const inboundSchema = Details$inboundSchema;
119
+ /** @deprecated use `Details$outboundSchema` instead. */
120
+ export const outboundSchema = Details$outboundSchema;
121
+ /** @deprecated use `Details$Outbound` instead. */
122
+ export type Outbound = Details$Outbound;
123
+ }
124
+
125
+ export function detailsToJSON(details: Details): string {
126
+ return JSON.stringify(Details$outboundSchema.parse(details));
127
+ }
128
+
129
+ export function detailsFromJSON(
130
+ jsonString: string,
131
+ ): SafeParseResult<Details, SDKValidationError> {
132
+ return safeParse(
133
+ jsonString,
134
+ (x) => Details$inboundSchema.parse(JSON.parse(x)),
135
+ `Failed to parse 'Details' from JSON`,
136
+ );
137
+ }
138
+
139
+ /** @internal */
140
+ export const HighlightedDetails$inboundSchema: z.ZodType<
141
+ HighlightedDetails,
142
+ z.ZodTypeDef,
143
+ unknown
144
+ > = z.object({
145
+ label: z.string(),
146
+ value: z.string().optional(),
147
+ });
148
+
149
+ /** @internal */
150
+ export type HighlightedDetails$Outbound = {
151
+ label: string;
152
+ value?: string | undefined;
153
+ };
154
+
155
+ /** @internal */
156
+ export const HighlightedDetails$outboundSchema: z.ZodType<
157
+ HighlightedDetails$Outbound,
158
+ z.ZodTypeDef,
159
+ HighlightedDetails
160
+ > = z.object({
161
+ label: z.string(),
162
+ value: z.string().optional(),
163
+ });
164
+
165
+ /**
166
+ * @internal
167
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
168
+ */
169
+ export namespace HighlightedDetails$ {
170
+ /** @deprecated use `HighlightedDetails$inboundSchema` instead. */
171
+ export const inboundSchema = HighlightedDetails$inboundSchema;
172
+ /** @deprecated use `HighlightedDetails$outboundSchema` instead. */
173
+ export const outboundSchema = HighlightedDetails$outboundSchema;
174
+ /** @deprecated use `HighlightedDetails$Outbound` instead. */
175
+ export type Outbound = HighlightedDetails$Outbound;
176
+ }
177
+
178
+ export function highlightedDetailsToJSON(
179
+ highlightedDetails: HighlightedDetails,
180
+ ): string {
181
+ return JSON.stringify(
182
+ HighlightedDetails$outboundSchema.parse(highlightedDetails),
183
+ );
184
+ }
185
+
186
+ export function highlightedDetailsFromJSON(
187
+ jsonString: string,
188
+ ): SafeParseResult<HighlightedDetails, SDKValidationError> {
189
+ return safeParse(
190
+ jsonString,
191
+ (x) => HighlightedDetails$inboundSchema.parse(JSON.parse(x)),
192
+ `Failed to parse 'HighlightedDetails' from JSON`,
193
+ );
194
+ }
195
+
196
+ /** @internal */
197
+ export const BillingPlan$inboundSchema: z.ZodType<
198
+ BillingPlan,
199
+ z.ZodTypeDef,
200
+ unknown
201
+ > = collectExtraKeys$(
202
+ z.object({
203
+ id: z.string(),
204
+ type: UpdateInstallationType$inboundSchema,
205
+ name: z.string(),
206
+ description: z.string().optional(),
207
+ paymentMethodRequired: z.boolean().optional(),
208
+ cost: z.string().optional(),
209
+ details: z.array(z.lazy(() => Details$inboundSchema)).optional(),
210
+ highlightedDetails: z.array(z.lazy(() => HighlightedDetails$inboundSchema))
211
+ .optional(),
212
+ effectiveDate: z.string().optional(),
213
+ }).catchall(z.any()),
214
+ "additionalProperties",
215
+ true,
216
+ );
217
+
218
+ /** @internal */
219
+ export type BillingPlan$Outbound = {
220
+ id: string;
221
+ type: string;
222
+ name: string;
223
+ description?: string | undefined;
224
+ paymentMethodRequired?: boolean | undefined;
225
+ cost?: string | undefined;
226
+ details?: Array<Details$Outbound> | undefined;
227
+ highlightedDetails?: Array<HighlightedDetails$Outbound> | undefined;
228
+ effectiveDate?: string | undefined;
229
+ [additionalProperties: string]: unknown;
230
+ };
231
+
232
+ /** @internal */
233
+ export const BillingPlan$outboundSchema: z.ZodType<
234
+ BillingPlan$Outbound,
235
+ z.ZodTypeDef,
236
+ BillingPlan
237
+ > = z.object({
238
+ id: z.string(),
239
+ type: UpdateInstallationType$outboundSchema,
240
+ name: z.string(),
241
+ description: z.string().optional(),
242
+ paymentMethodRequired: z.boolean().optional(),
243
+ cost: z.string().optional(),
244
+ details: z.array(z.lazy(() => Details$outboundSchema)).optional(),
245
+ highlightedDetails: z.array(z.lazy(() => HighlightedDetails$outboundSchema))
246
+ .optional(),
247
+ effectiveDate: z.string().optional(),
248
+ additionalProperties: z.record(z.any()),
249
+ }).transform((v) => {
250
+ return {
251
+ ...v.additionalProperties,
252
+ ...remap$(v, {
253
+ additionalProperties: null,
254
+ }),
255
+ };
256
+ });
257
+
258
+ /**
259
+ * @internal
260
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
261
+ */
262
+ export namespace BillingPlan$ {
263
+ /** @deprecated use `BillingPlan$inboundSchema` instead. */
264
+ export const inboundSchema = BillingPlan$inboundSchema;
265
+ /** @deprecated use `BillingPlan$outboundSchema` instead. */
266
+ export const outboundSchema = BillingPlan$outboundSchema;
267
+ /** @deprecated use `BillingPlan$Outbound` instead. */
268
+ export type Outbound = BillingPlan$Outbound;
269
+ }
270
+
271
+ export function billingPlanToJSON(billingPlan: BillingPlan): string {
272
+ return JSON.stringify(BillingPlan$outboundSchema.parse(billingPlan));
273
+ }
274
+
275
+ export function billingPlanFromJSON(
276
+ jsonString: string,
277
+ ): SafeParseResult<BillingPlan, SDKValidationError> {
278
+ return safeParse(
279
+ jsonString,
280
+ (x) => BillingPlan$inboundSchema.parse(JSON.parse(x)),
281
+ `Failed to parse 'BillingPlan' from JSON`,
282
+ );
283
+ }
284
+
285
+ /** @internal */
286
+ export const Level$inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(
287
+ Level,
288
+ );
289
+
290
+ /** @internal */
291
+ export const Level$outboundSchema: z.ZodNativeEnum<typeof Level> =
292
+ Level$inboundSchema;
293
+
294
+ /**
295
+ * @internal
296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
297
+ */
298
+ export namespace Level$ {
299
+ /** @deprecated use `Level$inboundSchema` instead. */
300
+ export const inboundSchema = Level$inboundSchema;
301
+ /** @deprecated use `Level$outboundSchema` instead. */
302
+ export const outboundSchema = Level$outboundSchema;
303
+ }
304
+
305
+ /** @internal */
306
+ export const Notification$inboundSchema: z.ZodType<
307
+ Notification,
308
+ z.ZodTypeDef,
309
+ unknown
310
+ > = z.object({
311
+ level: Level$inboundSchema,
312
+ title: z.string(),
313
+ message: z.string().optional(),
314
+ href: z.string().optional(),
315
+ });
316
+
317
+ /** @internal */
318
+ export type Notification$Outbound = {
319
+ level: string;
320
+ title: string;
321
+ message?: string | undefined;
322
+ href?: string | undefined;
323
+ };
324
+
325
+ /** @internal */
326
+ export const Notification$outboundSchema: z.ZodType<
327
+ Notification$Outbound,
328
+ z.ZodTypeDef,
329
+ Notification
330
+ > = z.object({
331
+ level: Level$outboundSchema,
332
+ title: z.string(),
333
+ message: z.string().optional(),
334
+ href: z.string().optional(),
335
+ });
336
+
337
+ /**
338
+ * @internal
339
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
340
+ */
341
+ export namespace Notification$ {
342
+ /** @deprecated use `Notification$inboundSchema` instead. */
343
+ export const inboundSchema = Notification$inboundSchema;
344
+ /** @deprecated use `Notification$outboundSchema` instead. */
345
+ export const outboundSchema = Notification$outboundSchema;
346
+ /** @deprecated use `Notification$Outbound` instead. */
347
+ export type Outbound = Notification$Outbound;
348
+ }
349
+
350
+ export function notificationToJSON(notification: Notification): string {
351
+ return JSON.stringify(Notification$outboundSchema.parse(notification));
352
+ }
353
+
354
+ export function notificationFromJSON(
355
+ jsonString: string,
356
+ ): SafeParseResult<Notification, SDKValidationError> {
357
+ return safeParse(
358
+ jsonString,
359
+ (x) => Notification$inboundSchema.parse(JSON.parse(x)),
360
+ `Failed to parse 'Notification' from JSON`,
361
+ );
362
+ }
363
+
364
+ /** @internal */
365
+ export const UpdateInstallationRequestBody$inboundSchema: z.ZodType<
366
+ UpdateInstallationRequestBody,
367
+ z.ZodTypeDef,
368
+ unknown
369
+ > = z.object({
370
+ billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
371
+ notification: z.lazy(() => Notification$inboundSchema).optional(),
372
+ });
373
+
374
+ /** @internal */
375
+ export type UpdateInstallationRequestBody$Outbound = {
376
+ billingPlan?: BillingPlan$Outbound | undefined;
377
+ notification?: Notification$Outbound | undefined;
378
+ };
379
+
380
+ /** @internal */
381
+ export const UpdateInstallationRequestBody$outboundSchema: z.ZodType<
382
+ UpdateInstallationRequestBody$Outbound,
383
+ z.ZodTypeDef,
384
+ UpdateInstallationRequestBody
385
+ > = z.object({
386
+ billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
387
+ notification: z.lazy(() => Notification$outboundSchema).optional(),
388
+ });
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 UpdateInstallationRequestBody$ {
395
+ /** @deprecated use `UpdateInstallationRequestBody$inboundSchema` instead. */
396
+ export const inboundSchema = UpdateInstallationRequestBody$inboundSchema;
397
+ /** @deprecated use `UpdateInstallationRequestBody$outboundSchema` instead. */
398
+ export const outboundSchema = UpdateInstallationRequestBody$outboundSchema;
399
+ /** @deprecated use `UpdateInstallationRequestBody$Outbound` instead. */
400
+ export type Outbound = UpdateInstallationRequestBody$Outbound;
401
+ }
402
+
403
+ export function updateInstallationRequestBodyToJSON(
404
+ updateInstallationRequestBody: UpdateInstallationRequestBody,
405
+ ): string {
406
+ return JSON.stringify(
407
+ UpdateInstallationRequestBody$outboundSchema.parse(
408
+ updateInstallationRequestBody,
409
+ ),
410
+ );
411
+ }
412
+
413
+ export function updateInstallationRequestBodyFromJSON(
414
+ jsonString: string,
415
+ ): SafeParseResult<UpdateInstallationRequestBody, SDKValidationError> {
416
+ return safeParse(
417
+ jsonString,
418
+ (x) => UpdateInstallationRequestBody$inboundSchema.parse(JSON.parse(x)),
419
+ `Failed to parse 'UpdateInstallationRequestBody' from JSON`,
420
+ );
421
+ }
422
+
423
+ /** @internal */
424
+ export const UpdateInstallationRequest$inboundSchema: z.ZodType<
425
+ UpdateInstallationRequest,
426
+ z.ZodTypeDef,
427
+ unknown
428
+ > = z.object({
429
+ integrationConfigurationId: z.string(),
430
+ RequestBody: z.lazy(() => UpdateInstallationRequestBody$inboundSchema)
431
+ .optional(),
432
+ }).transform((v) => {
433
+ return remap$(v, {
434
+ "RequestBody": "requestBody",
435
+ });
436
+ });
437
+
438
+ /** @internal */
439
+ export type UpdateInstallationRequest$Outbound = {
440
+ integrationConfigurationId: string;
441
+ RequestBody?: UpdateInstallationRequestBody$Outbound | undefined;
442
+ };
443
+
444
+ /** @internal */
445
+ export const UpdateInstallationRequest$outboundSchema: z.ZodType<
446
+ UpdateInstallationRequest$Outbound,
447
+ z.ZodTypeDef,
448
+ UpdateInstallationRequest
449
+ > = z.object({
450
+ integrationConfigurationId: z.string(),
451
+ requestBody: z.lazy(() => UpdateInstallationRequestBody$outboundSchema)
452
+ .optional(),
453
+ }).transform((v) => {
454
+ return remap$(v, {
455
+ requestBody: "RequestBody",
456
+ });
457
+ });
458
+
459
+ /**
460
+ * @internal
461
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
462
+ */
463
+ export namespace UpdateInstallationRequest$ {
464
+ /** @deprecated use `UpdateInstallationRequest$inboundSchema` instead. */
465
+ export const inboundSchema = UpdateInstallationRequest$inboundSchema;
466
+ /** @deprecated use `UpdateInstallationRequest$outboundSchema` instead. */
467
+ export const outboundSchema = UpdateInstallationRequest$outboundSchema;
468
+ /** @deprecated use `UpdateInstallationRequest$Outbound` instead. */
469
+ export type Outbound = UpdateInstallationRequest$Outbound;
470
+ }
471
+
472
+ export function updateInstallationRequestToJSON(
473
+ updateInstallationRequest: UpdateInstallationRequest,
474
+ ): string {
475
+ return JSON.stringify(
476
+ UpdateInstallationRequest$outboundSchema.parse(updateInstallationRequest),
477
+ );
478
+ }
479
+
480
+ export function updateInstallationRequestFromJSON(
481
+ jsonString: string,
482
+ ): SafeParseResult<UpdateInstallationRequest, SDKValidationError> {
483
+ return safeParse(
484
+ jsonString,
485
+ (x) => UpdateInstallationRequest$inboundSchema.parse(JSON.parse(x)),
486
+ `Failed to parse 'UpdateInstallationRequest' from JSON`,
487
+ );
488
+ }