@vercel/sdk 1.6.12 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/bin/mcp-server.js +824 -348
  2. package/bin/mcp-server.js.map +24 -24
  3. package/docs/sdks/deployments/README.md +7 -5
  4. package/docs/sdks/teams/README.md +2 -2
  5. package/docs/sdks/user/README.md +2 -0
  6. package/esm/__tests__/deployments.test.js +2 -1
  7. package/esm/__tests__/deployments.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +15 -13
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/__tests__/teams.test.js +34 -2
  11. package/esm/__tests__/teams.test.js.map +1 -1
  12. package/esm/funcs/deploymentsGetDeploymentEvents.d.ts +8 -2
  13. package/esm/funcs/deploymentsGetDeploymentEvents.d.ts.map +1 -1
  14. package/esm/funcs/deploymentsGetDeploymentEvents.js +11 -4
  15. package/esm/funcs/deploymentsGetDeploymentEvents.js.map +1 -1
  16. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
  17. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  18. package/esm/funcs/deploymentsGetDeploymentFileContents.js +2 -3
  19. package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
  20. package/esm/funcs/teamsGetTeam.d.ts +2 -3
  21. package/esm/funcs/teamsGetTeam.d.ts.map +1 -1
  22. package/esm/funcs/teamsGetTeam.js +2 -2
  23. package/esm/funcs/teamsGetTeam.js.map +1 -1
  24. package/esm/funcs/teamsPatchTeam.d.ts +2 -3
  25. package/esm/funcs/teamsPatchTeam.d.ts.map +1 -1
  26. package/esm/funcs/teamsPatchTeam.js +2 -2
  27. package/esm/funcs/teamsPatchTeam.js.map +1 -1
  28. package/esm/funcs/userListUserEvents.js +1 -0
  29. package/esm/funcs/userListUserEvents.js.map +1 -1
  30. package/esm/lib/config.d.ts +3 -3
  31. package/esm/lib/config.js +3 -3
  32. package/esm/lib/config.js.map +1 -1
  33. package/esm/mcp-server/mcp-server.js +1 -1
  34. package/esm/mcp-server/mcp-server.js.map +1 -1
  35. package/esm/mcp-server/server.js +1 -1
  36. package/esm/mcp-server/server.js.map +1 -1
  37. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  38. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +2 -1
  39. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
  40. package/esm/models/createdeploymentop.d.ts +28 -28
  41. package/esm/models/createdeploymentop.d.ts.map +1 -1
  42. package/esm/models/createdeploymentop.js +12 -12
  43. package/esm/models/createdeploymentop.js.map +1 -1
  44. package/esm/models/createprojectenvop.d.ts +6 -6
  45. package/esm/models/createprojectenvop.js +2 -2
  46. package/esm/models/createprojectenvop.js.map +1 -1
  47. package/esm/models/createprojectop.d.ts +9 -9
  48. package/esm/models/createprojectop.js +3 -3
  49. package/esm/models/createprojectop.js.map +1 -1
  50. package/esm/models/editprojectenvop.d.ts +3 -3
  51. package/esm/models/editprojectenvop.js +1 -1
  52. package/esm/models/editprojectenvop.js.map +1 -1
  53. package/esm/models/filterprojectenvsop.d.ts +9 -9
  54. package/esm/models/filterprojectenvsop.js +3 -3
  55. package/esm/models/filterprojectenvsop.js.map +1 -1
  56. package/esm/models/getdeploymenteventsop.d.ts +908 -74
  57. package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
  58. package/esm/models/getdeploymenteventsop.js +784 -43
  59. package/esm/models/getdeploymenteventsop.js.map +1 -1
  60. package/esm/models/getdeploymentfilecontentsop.d.ts +31 -0
  61. package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
  62. package/esm/models/getdeploymentfilecontentsop.js +25 -0
  63. package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
  64. package/esm/models/getdeploymentop.d.ts +16 -16
  65. package/esm/models/getdeploymentop.d.ts.map +1 -1
  66. package/esm/models/getdeploymentop.js +25 -24
  67. package/esm/models/getdeploymentop.js.map +1 -1
  68. package/esm/models/listusereventsop.d.ts +5 -0
  69. package/esm/models/listusereventsop.d.ts.map +1 -1
  70. package/esm/models/listusereventsop.js +2 -0
  71. package/esm/models/listusereventsop.js.map +1 -1
  72. package/esm/models/removeprojectenvop.d.ts +9 -9
  73. package/esm/models/removeprojectenvop.js +3 -3
  74. package/esm/models/removeprojectenvop.js.map +1 -1
  75. package/esm/models/teamlimited.d.ts +17 -17
  76. package/esm/models/teamlimited.d.ts.map +1 -1
  77. package/esm/models/teamlimited.js +7 -7
  78. package/esm/models/teamlimited.js.map +1 -1
  79. package/esm/models/updateprojectop.d.ts +9 -9
  80. package/esm/models/updateprojectop.js +3 -3
  81. package/esm/models/updateprojectop.js.map +1 -1
  82. package/esm/sdk/deployments.d.ts +8 -4
  83. package/esm/sdk/deployments.d.ts.map +1 -1
  84. package/esm/sdk/deployments.js +2 -1
  85. package/esm/sdk/deployments.js.map +1 -1
  86. package/esm/sdk/teams.d.ts +3 -6
  87. package/esm/sdk/teams.d.ts.map +1 -1
  88. package/esm/sdk/teams.js.map +1 -1
  89. package/jsr.json +1 -1
  90. package/package.json +1 -1
  91. package/src/__tests__/deployments.test.ts +2 -1
  92. package/src/__tests__/projects.test.ts +15 -13
  93. package/src/__tests__/teams.test.ts +34 -2
  94. package/src/funcs/deploymentsGetDeploymentEvents.ts +22 -10
  95. package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -5
  96. package/src/funcs/teamsGetTeam.ts +8 -5
  97. package/src/funcs/teamsPatchTeam.ts +8 -5
  98. package/src/funcs/userListUserEvents.ts +1 -0
  99. package/src/lib/config.ts +3 -3
  100. package/src/mcp-server/mcp-server.ts +1 -1
  101. package/src/mcp-server/server.ts +1 -1
  102. package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +3 -1
  103. package/src/models/createdeploymentop.ts +16 -16
  104. package/src/models/createprojectenvop.ts +2 -2
  105. package/src/models/createprojectop.ts +3 -3
  106. package/src/models/editprojectenvop.ts +1 -1
  107. package/src/models/filterprojectenvsop.ts +3 -3
  108. package/src/models/getdeploymenteventsop.ts +1602 -132
  109. package/src/models/getdeploymentfilecontentsop.ts +69 -0
  110. package/src/models/getdeploymentop.ts +37 -33
  111. package/src/models/listusereventsop.ts +7 -0
  112. package/src/models/removeprojectenvop.ts +3 -3
  113. package/src/models/teamlimited.ts +9 -9
  114. package/src/models/updateprojectop.ts +3 -3
  115. package/src/sdk/deployments.ts +16 -6
  116. package/src/sdk/teams.ts +3 -2
  117. package/vercel-spec.json +646 -135
@@ -70,67 +70,287 @@ export type GetDeploymentEventsRequest = {
70
70
  slug?: string | undefined;
71
71
  };
72
72
 
73
- /**
74
- * Type of log entry
75
- */
76
- export const GetDeploymentEventsType = {
73
+ export type ResponseBodyInfo = {
74
+ type: string;
75
+ name: string;
76
+ entrypoint?: string | undefined;
77
+ path?: string | undefined;
78
+ step?: string | undefined;
79
+ readyState?: string | undefined;
80
+ };
81
+
82
+ export const GetDeploymentEventsResponseBodyDeploymentsResponseType = {
83
+ Delimiter: "delimiter",
84
+ Command: "command",
77
85
  Stdout: "stdout",
78
86
  Stderr: "stderr",
87
+ Exit: "exit",
88
+ DeploymentState: "deployment-state",
89
+ Middleware: "middleware",
90
+ MiddlewareInvocation: "middleware-invocation",
91
+ EdgeFunctionInvocation: "edge-function-invocation",
92
+ Metric: "metric",
93
+ Report: "report",
94
+ Fatal: "fatal",
79
95
  } as const;
80
- /**
81
- * Type of log entry
82
- */
83
- export type GetDeploymentEventsType = ClosedEnum<
84
- typeof GetDeploymentEventsType
96
+ export type GetDeploymentEventsResponseBodyDeploymentsResponseType = ClosedEnum<
97
+ typeof GetDeploymentEventsResponseBodyDeploymentsResponseType
85
98
  >;
86
99
 
87
- export type Info = {
88
- /**
89
- * Type of operation
90
- */
91
- type?: string | undefined;
92
- /**
93
- * Name of the build
94
- */
95
- name?: string | undefined;
96
- /**
97
- * Entrypoint for the build
98
- */
100
+ export const ResponseBodyLevel = {
101
+ Error: "error",
102
+ Warning: "warning",
103
+ } as const;
104
+ export type ResponseBodyLevel = ClosedEnum<typeof ResponseBodyLevel>;
105
+
106
+ export type GetDeploymentEventsResponseBodyDeployments2 = {
107
+ created: number;
108
+ date: number;
109
+ deploymentId: string;
110
+ id: string;
111
+ info: ResponseBodyInfo;
112
+ serial: string;
113
+ text?: string | undefined;
114
+ type: GetDeploymentEventsResponseBodyDeploymentsResponseType;
115
+ level?: ResponseBodyLevel | undefined;
116
+ };
117
+
118
+ export const GetDeploymentEventsResponseBodyDeploymentsType = {
119
+ Delimiter: "delimiter",
120
+ Command: "command",
121
+ Stdout: "stdout",
122
+ Stderr: "stderr",
123
+ Exit: "exit",
124
+ DeploymentState: "deployment-state",
125
+ Middleware: "middleware",
126
+ MiddlewareInvocation: "middleware-invocation",
127
+ EdgeFunctionInvocation: "edge-function-invocation",
128
+ Metric: "metric",
129
+ Report: "report",
130
+ Fatal: "fatal",
131
+ } as const;
132
+ export type GetDeploymentEventsResponseBodyDeploymentsType = ClosedEnum<
133
+ typeof GetDeploymentEventsResponseBodyDeploymentsType
134
+ >;
135
+
136
+ export type GetDeploymentEventsResponseBodyInfo = {
137
+ type: string;
138
+ name: string;
99
139
  entrypoint?: string | undefined;
140
+ path?: string | undefined;
141
+ step?: string | undefined;
142
+ readyState?: string | undefined;
100
143
  };
101
144
 
102
- export type GetDeploymentEventsResponseBody = {
103
- /**
104
- * Unix timestamp when the log entry was created
105
- */
145
+ export const ResponseBodyVercelCache = {
146
+ Miss: "MISS",
147
+ Hit: "HIT",
148
+ Stale: "STALE",
149
+ Bypass: "BYPASS",
150
+ Prerender: "PRERENDER",
151
+ Revalidated: "REVALIDATED",
152
+ } as const;
153
+ export type ResponseBodyVercelCache = ClosedEnum<
154
+ typeof ResponseBodyVercelCache
155
+ >;
156
+
157
+ export const ResponseBodyWafAction = {
158
+ Log: "log",
159
+ Challenge: "challenge",
160
+ Deny: "deny",
161
+ Bypass: "bypass",
162
+ RateLimit: "rate_limit",
163
+ } as const;
164
+ export type ResponseBodyWafAction = ClosedEnum<typeof ResponseBodyWafAction>;
165
+
166
+ export type ResponseBodyProxy = {
167
+ timestamp: number;
168
+ method: string;
169
+ host: string;
170
+ path: string;
171
+ statusCode?: number | undefined;
172
+ userAgent: Array<string>;
173
+ referer: string;
174
+ clientIp?: string | undefined;
175
+ region: string;
176
+ scheme?: string | undefined;
177
+ responseByteSize?: number | undefined;
178
+ cacheId?: string | undefined;
179
+ pathType?: string | undefined;
180
+ pathTypeVariant?: string | undefined;
181
+ vercelId?: string | undefined;
182
+ vercelCache?: ResponseBodyVercelCache | undefined;
183
+ lambdaRegion?: string | undefined;
184
+ wafAction?: ResponseBodyWafAction | undefined;
185
+ wafRuleId?: string | undefined;
186
+ };
187
+
188
+ export type ResponseBodyPayload = {
189
+ deploymentId: string;
190
+ info?: GetDeploymentEventsResponseBodyInfo | undefined;
191
+ text?: string | undefined;
192
+ id: string;
193
+ date: number;
194
+ serial: string;
106
195
  created?: number | undefined;
107
- /**
108
- * Unix timestamp of the log entry date
109
- */
110
- date?: number | undefined;
111
- /**
112
- * Unique identifier for the deployment
113
- */
114
- deploymentId?: string | undefined;
115
- /**
116
- * Unique identifier for the log entry
117
- */
118
- id?: string | undefined;
119
- /**
120
- * Log message content
121
- */
196
+ statusCode?: number | undefined;
197
+ requestId?: string | undefined;
198
+ proxy?: ResponseBodyProxy | undefined;
199
+ };
200
+
201
+ export type GetDeploymentEventsResponseBodyDeployments1 = {
202
+ type: GetDeploymentEventsResponseBodyDeploymentsType;
203
+ created: number;
204
+ payload: ResponseBodyPayload;
205
+ };
206
+
207
+ export type GetDeploymentEventsResponseBody =
208
+ | GetDeploymentEventsResponseBodyDeployments1
209
+ | GetDeploymentEventsResponseBodyDeployments2;
210
+
211
+ export type Info = {
212
+ type: string;
213
+ name: string;
214
+ entrypoint?: string | undefined;
215
+ path?: string | undefined;
216
+ step?: string | undefined;
217
+ readyState?: string | undefined;
218
+ };
219
+
220
+ export const GetDeploymentEventsResponseBodyType = {
221
+ Delimiter: "delimiter",
222
+ Command: "command",
223
+ Stdout: "stdout",
224
+ Stderr: "stderr",
225
+ Exit: "exit",
226
+ DeploymentState: "deployment-state",
227
+ Middleware: "middleware",
228
+ MiddlewareInvocation: "middleware-invocation",
229
+ EdgeFunctionInvocation: "edge-function-invocation",
230
+ Metric: "metric",
231
+ Report: "report",
232
+ Fatal: "fatal",
233
+ } as const;
234
+ export type GetDeploymentEventsResponseBodyType = ClosedEnum<
235
+ typeof GetDeploymentEventsResponseBodyType
236
+ >;
237
+
238
+ export const GetDeploymentEventsResponseBodyLevel = {
239
+ Error: "error",
240
+ Warning: "warning",
241
+ } as const;
242
+ export type GetDeploymentEventsResponseBodyLevel = ClosedEnum<
243
+ typeof GetDeploymentEventsResponseBodyLevel
244
+ >;
245
+
246
+ export type GetDeploymentEventsResponseBody2 = {
247
+ created: number;
248
+ date: number;
249
+ deploymentId: string;
250
+ id: string;
251
+ info: Info;
252
+ serial: string;
122
253
  text?: string | undefined;
123
- /**
124
- * Type of log entry
125
- */
126
- type?: GetDeploymentEventsType | undefined;
127
- /**
128
- * Serial identifier for the log entry
129
- */
130
- serial?: string | undefined;
131
- info?: Info | undefined;
254
+ type: GetDeploymentEventsResponseBodyType;
255
+ level?: GetDeploymentEventsResponseBodyLevel | undefined;
132
256
  };
133
257
 
258
+ export const ResponseBodyType = {
259
+ Delimiter: "delimiter",
260
+ Command: "command",
261
+ Stdout: "stdout",
262
+ Stderr: "stderr",
263
+ Exit: "exit",
264
+ DeploymentState: "deployment-state",
265
+ Middleware: "middleware",
266
+ MiddlewareInvocation: "middleware-invocation",
267
+ EdgeFunctionInvocation: "edge-function-invocation",
268
+ Metric: "metric",
269
+ Report: "report",
270
+ Fatal: "fatal",
271
+ } as const;
272
+ export type ResponseBodyType = ClosedEnum<typeof ResponseBodyType>;
273
+
274
+ export type GetDeploymentEventsResponseBodyDeploymentsInfo = {
275
+ type: string;
276
+ name: string;
277
+ entrypoint?: string | undefined;
278
+ path?: string | undefined;
279
+ step?: string | undefined;
280
+ readyState?: string | undefined;
281
+ };
282
+
283
+ export const VercelCache = {
284
+ Miss: "MISS",
285
+ Hit: "HIT",
286
+ Stale: "STALE",
287
+ Bypass: "BYPASS",
288
+ Prerender: "PRERENDER",
289
+ Revalidated: "REVALIDATED",
290
+ } as const;
291
+ export type VercelCache = ClosedEnum<typeof VercelCache>;
292
+
293
+ export const WafAction = {
294
+ Log: "log",
295
+ Challenge: "challenge",
296
+ Deny: "deny",
297
+ Bypass: "bypass",
298
+ RateLimit: "rate_limit",
299
+ } as const;
300
+ export type WafAction = ClosedEnum<typeof WafAction>;
301
+
302
+ export type Proxy = {
303
+ timestamp: number;
304
+ method: string;
305
+ host: string;
306
+ path: string;
307
+ statusCode?: number | undefined;
308
+ userAgent: Array<string>;
309
+ referer: string;
310
+ clientIp?: string | undefined;
311
+ region: string;
312
+ scheme?: string | undefined;
313
+ responseByteSize?: number | undefined;
314
+ cacheId?: string | undefined;
315
+ pathType?: string | undefined;
316
+ pathTypeVariant?: string | undefined;
317
+ vercelId?: string | undefined;
318
+ vercelCache?: VercelCache | undefined;
319
+ lambdaRegion?: string | undefined;
320
+ wafAction?: WafAction | undefined;
321
+ wafRuleId?: string | undefined;
322
+ };
323
+
324
+ export type GetDeploymentEventsResponseBodyPayload = {
325
+ deploymentId: string;
326
+ info?: GetDeploymentEventsResponseBodyDeploymentsInfo | undefined;
327
+ text?: string | undefined;
328
+ id: string;
329
+ date: number;
330
+ serial: string;
331
+ created?: number | undefined;
332
+ statusCode?: number | undefined;
333
+ requestId?: string | undefined;
334
+ proxy?: Proxy | undefined;
335
+ };
336
+
337
+ export type GetDeploymentEventsResponseBody1 = {
338
+ type: ResponseBodyType;
339
+ created: number;
340
+ payload: GetDeploymentEventsResponseBodyPayload;
341
+ };
342
+
343
+ export type GetDeploymentEventsDeploymentsResponseBody =
344
+ | GetDeploymentEventsResponseBody1
345
+ | GetDeploymentEventsResponseBody2;
346
+
347
+ export type GetDeploymentEventsResponse =
348
+ | Array<
349
+ GetDeploymentEventsResponseBody1 | GetDeploymentEventsResponseBody2 | null
350
+ >
351
+ | GetDeploymentEventsResponseBodyDeployments1
352
+ | GetDeploymentEventsResponseBodyDeployments2;
353
+
134
354
  /** @internal */
135
355
  export const Direction$inboundSchema: z.ZodNativeEnum<typeof Direction> = z
136
356
  .nativeEnum(Direction);
@@ -282,149 +502,1399 @@ export function getDeploymentEventsRequestFromJSON(
282
502
  }
283
503
 
284
504
  /** @internal */
285
- export const GetDeploymentEventsType$inboundSchema: z.ZodNativeEnum<
286
- typeof GetDeploymentEventsType
287
- > = z.nativeEnum(GetDeploymentEventsType);
505
+ export const ResponseBodyInfo$inboundSchema: z.ZodType<
506
+ ResponseBodyInfo,
507
+ z.ZodTypeDef,
508
+ unknown
509
+ > = z.object({
510
+ type: z.string(),
511
+ name: z.string(),
512
+ entrypoint: z.string().optional(),
513
+ path: z.string().optional(),
514
+ step: z.string().optional(),
515
+ readyState: z.string().optional(),
516
+ });
517
+
518
+ /** @internal */
519
+ export type ResponseBodyInfo$Outbound = {
520
+ type: string;
521
+ name: string;
522
+ entrypoint?: string | undefined;
523
+ path?: string | undefined;
524
+ step?: string | undefined;
525
+ readyState?: string | undefined;
526
+ };
527
+
528
+ /** @internal */
529
+ export const ResponseBodyInfo$outboundSchema: z.ZodType<
530
+ ResponseBodyInfo$Outbound,
531
+ z.ZodTypeDef,
532
+ ResponseBodyInfo
533
+ > = z.object({
534
+ type: z.string(),
535
+ name: z.string(),
536
+ entrypoint: z.string().optional(),
537
+ path: z.string().optional(),
538
+ step: z.string().optional(),
539
+ readyState: z.string().optional(),
540
+ });
541
+
542
+ /**
543
+ * @internal
544
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
545
+ */
546
+ export namespace ResponseBodyInfo$ {
547
+ /** @deprecated use `ResponseBodyInfo$inboundSchema` instead. */
548
+ export const inboundSchema = ResponseBodyInfo$inboundSchema;
549
+ /** @deprecated use `ResponseBodyInfo$outboundSchema` instead. */
550
+ export const outboundSchema = ResponseBodyInfo$outboundSchema;
551
+ /** @deprecated use `ResponseBodyInfo$Outbound` instead. */
552
+ export type Outbound = ResponseBodyInfo$Outbound;
553
+ }
554
+
555
+ export function responseBodyInfoToJSON(
556
+ responseBodyInfo: ResponseBodyInfo,
557
+ ): string {
558
+ return JSON.stringify(
559
+ ResponseBodyInfo$outboundSchema.parse(responseBodyInfo),
560
+ );
561
+ }
562
+
563
+ export function responseBodyInfoFromJSON(
564
+ jsonString: string,
565
+ ): SafeParseResult<ResponseBodyInfo, SDKValidationError> {
566
+ return safeParse(
567
+ jsonString,
568
+ (x) => ResponseBodyInfo$inboundSchema.parse(JSON.parse(x)),
569
+ `Failed to parse 'ResponseBodyInfo' from JSON`,
570
+ );
571
+ }
572
+
573
+ /** @internal */
574
+ export const GetDeploymentEventsResponseBodyDeploymentsResponseType$inboundSchema:
575
+ z.ZodNativeEnum<
576
+ typeof GetDeploymentEventsResponseBodyDeploymentsResponseType
577
+ > = z.nativeEnum(GetDeploymentEventsResponseBodyDeploymentsResponseType);
288
578
 
289
579
  /** @internal */
290
- export const GetDeploymentEventsType$outboundSchema: z.ZodNativeEnum<
291
- typeof GetDeploymentEventsType
292
- > = GetDeploymentEventsType$inboundSchema;
580
+ export const GetDeploymentEventsResponseBodyDeploymentsResponseType$outboundSchema:
581
+ z.ZodNativeEnum<
582
+ typeof GetDeploymentEventsResponseBodyDeploymentsResponseType
583
+ > = GetDeploymentEventsResponseBodyDeploymentsResponseType$inboundSchema;
293
584
 
294
585
  /**
295
586
  * @internal
296
587
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
297
588
  */
298
- export namespace GetDeploymentEventsType$ {
299
- /** @deprecated use `GetDeploymentEventsType$inboundSchema` instead. */
300
- export const inboundSchema = GetDeploymentEventsType$inboundSchema;
301
- /** @deprecated use `GetDeploymentEventsType$outboundSchema` instead. */
302
- export const outboundSchema = GetDeploymentEventsType$outboundSchema;
589
+ export namespace GetDeploymentEventsResponseBodyDeploymentsResponseType$ {
590
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsResponseType$inboundSchema` instead. */
591
+ export const inboundSchema =
592
+ GetDeploymentEventsResponseBodyDeploymentsResponseType$inboundSchema;
593
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsResponseType$outboundSchema` instead. */
594
+ export const outboundSchema =
595
+ GetDeploymentEventsResponseBodyDeploymentsResponseType$outboundSchema;
303
596
  }
304
597
 
305
598
  /** @internal */
306
- export const Info$inboundSchema: z.ZodType<Info, z.ZodTypeDef, unknown> = z
307
- .object({
308
- type: z.string().optional(),
309
- name: z.string().optional(),
310
- entrypoint: z.string().optional(),
599
+ export const ResponseBodyLevel$inboundSchema: z.ZodNativeEnum<
600
+ typeof ResponseBodyLevel
601
+ > = z.nativeEnum(ResponseBodyLevel);
602
+
603
+ /** @internal */
604
+ export const ResponseBodyLevel$outboundSchema: z.ZodNativeEnum<
605
+ typeof ResponseBodyLevel
606
+ > = ResponseBodyLevel$inboundSchema;
607
+
608
+ /**
609
+ * @internal
610
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
611
+ */
612
+ export namespace ResponseBodyLevel$ {
613
+ /** @deprecated use `ResponseBodyLevel$inboundSchema` instead. */
614
+ export const inboundSchema = ResponseBodyLevel$inboundSchema;
615
+ /** @deprecated use `ResponseBodyLevel$outboundSchema` instead. */
616
+ export const outboundSchema = ResponseBodyLevel$outboundSchema;
617
+ }
618
+
619
+ /** @internal */
620
+ export const GetDeploymentEventsResponseBodyDeployments2$inboundSchema:
621
+ z.ZodType<
622
+ GetDeploymentEventsResponseBodyDeployments2,
623
+ z.ZodTypeDef,
624
+ unknown
625
+ > = z.object({
626
+ created: z.number(),
627
+ date: z.number(),
628
+ deploymentId: z.string(),
629
+ id: z.string(),
630
+ info: z.lazy(() => ResponseBodyInfo$inboundSchema),
631
+ serial: z.string(),
632
+ text: z.string().optional(),
633
+ type: GetDeploymentEventsResponseBodyDeploymentsResponseType$inboundSchema,
634
+ level: ResponseBodyLevel$inboundSchema.optional(),
311
635
  });
312
636
 
313
637
  /** @internal */
314
- export type Info$Outbound = {
315
- type?: string | undefined;
316
- name?: string | undefined;
317
- entrypoint?: string | undefined;
638
+ export type GetDeploymentEventsResponseBodyDeployments2$Outbound = {
639
+ created: number;
640
+ date: number;
641
+ deploymentId: string;
642
+ id: string;
643
+ info: ResponseBodyInfo$Outbound;
644
+ serial: string;
645
+ text?: string | undefined;
646
+ type: string;
647
+ level?: string | undefined;
318
648
  };
319
649
 
320
650
  /** @internal */
321
- export const Info$outboundSchema: z.ZodType<Info$Outbound, z.ZodTypeDef, Info> =
322
- z.object({
323
- type: z.string().optional(),
324
- name: z.string().optional(),
325
- entrypoint: z.string().optional(),
651
+ export const GetDeploymentEventsResponseBodyDeployments2$outboundSchema:
652
+ z.ZodType<
653
+ GetDeploymentEventsResponseBodyDeployments2$Outbound,
654
+ z.ZodTypeDef,
655
+ GetDeploymentEventsResponseBodyDeployments2
656
+ > = z.object({
657
+ created: z.number(),
658
+ date: z.number(),
659
+ deploymentId: z.string(),
660
+ id: z.string(),
661
+ info: z.lazy(() => ResponseBodyInfo$outboundSchema),
662
+ serial: z.string(),
663
+ text: z.string().optional(),
664
+ type: GetDeploymentEventsResponseBodyDeploymentsResponseType$outboundSchema,
665
+ level: ResponseBodyLevel$outboundSchema.optional(),
326
666
  });
327
667
 
328
668
  /**
329
669
  * @internal
330
670
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
331
671
  */
332
- export namespace Info$ {
333
- /** @deprecated use `Info$inboundSchema` instead. */
334
- export const inboundSchema = Info$inboundSchema;
335
- /** @deprecated use `Info$outboundSchema` instead. */
336
- export const outboundSchema = Info$outboundSchema;
337
- /** @deprecated use `Info$Outbound` instead. */
338
- export type Outbound = Info$Outbound;
672
+ export namespace GetDeploymentEventsResponseBodyDeployments2$ {
673
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments2$inboundSchema` instead. */
674
+ export const inboundSchema =
675
+ GetDeploymentEventsResponseBodyDeployments2$inboundSchema;
676
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments2$outboundSchema` instead. */
677
+ export const outboundSchema =
678
+ GetDeploymentEventsResponseBodyDeployments2$outboundSchema;
679
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments2$Outbound` instead. */
680
+ export type Outbound = GetDeploymentEventsResponseBodyDeployments2$Outbound;
339
681
  }
340
682
 
341
- export function infoToJSON(info: Info): string {
342
- return JSON.stringify(Info$outboundSchema.parse(info));
683
+ export function getDeploymentEventsResponseBodyDeployments2ToJSON(
684
+ getDeploymentEventsResponseBodyDeployments2:
685
+ GetDeploymentEventsResponseBodyDeployments2,
686
+ ): string {
687
+ return JSON.stringify(
688
+ GetDeploymentEventsResponseBodyDeployments2$outboundSchema.parse(
689
+ getDeploymentEventsResponseBodyDeployments2,
690
+ ),
691
+ );
343
692
  }
344
693
 
345
- export function infoFromJSON(
694
+ export function getDeploymentEventsResponseBodyDeployments2FromJSON(
346
695
  jsonString: string,
347
- ): SafeParseResult<Info, SDKValidationError> {
696
+ ): SafeParseResult<
697
+ GetDeploymentEventsResponseBodyDeployments2,
698
+ SDKValidationError
699
+ > {
348
700
  return safeParse(
349
701
  jsonString,
350
- (x) => Info$inboundSchema.parse(JSON.parse(x)),
351
- `Failed to parse 'Info' from JSON`,
702
+ (x) =>
703
+ GetDeploymentEventsResponseBodyDeployments2$inboundSchema.parse(
704
+ JSON.parse(x),
705
+ ),
706
+ `Failed to parse 'GetDeploymentEventsResponseBodyDeployments2' from JSON`,
352
707
  );
353
708
  }
354
709
 
355
710
  /** @internal */
356
- export const GetDeploymentEventsResponseBody$inboundSchema: z.ZodType<
357
- GetDeploymentEventsResponseBody,
711
+ export const GetDeploymentEventsResponseBodyDeploymentsType$inboundSchema:
712
+ z.ZodNativeEnum<typeof GetDeploymentEventsResponseBodyDeploymentsType> = z
713
+ .nativeEnum(GetDeploymentEventsResponseBodyDeploymentsType);
714
+
715
+ /** @internal */
716
+ export const GetDeploymentEventsResponseBodyDeploymentsType$outboundSchema:
717
+ z.ZodNativeEnum<typeof GetDeploymentEventsResponseBodyDeploymentsType> =
718
+ GetDeploymentEventsResponseBodyDeploymentsType$inboundSchema;
719
+
720
+ /**
721
+ * @internal
722
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
723
+ */
724
+ export namespace GetDeploymentEventsResponseBodyDeploymentsType$ {
725
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsType$inboundSchema` instead. */
726
+ export const inboundSchema =
727
+ GetDeploymentEventsResponseBodyDeploymentsType$inboundSchema;
728
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsType$outboundSchema` instead. */
729
+ export const outboundSchema =
730
+ GetDeploymentEventsResponseBodyDeploymentsType$outboundSchema;
731
+ }
732
+
733
+ /** @internal */
734
+ export const GetDeploymentEventsResponseBodyInfo$inboundSchema: z.ZodType<
735
+ GetDeploymentEventsResponseBodyInfo,
358
736
  z.ZodTypeDef,
359
737
  unknown
360
738
  > = z.object({
361
- created: z.number().optional(),
362
- date: z.number().optional(),
363
- deploymentId: z.string().optional(),
364
- id: z.string().optional(),
365
- text: z.string().optional(),
366
- type: GetDeploymentEventsType$inboundSchema.optional(),
367
- serial: z.string().optional(),
368
- info: z.lazy(() => Info$inboundSchema).optional(),
739
+ type: z.string(),
740
+ name: z.string(),
741
+ entrypoint: z.string().optional(),
742
+ path: z.string().optional(),
743
+ step: z.string().optional(),
744
+ readyState: z.string().optional(),
369
745
  });
370
746
 
371
747
  /** @internal */
372
- export type GetDeploymentEventsResponseBody$Outbound = {
373
- created?: number | undefined;
374
- date?: number | undefined;
375
- deploymentId?: string | undefined;
376
- id?: string | undefined;
377
- text?: string | undefined;
378
- type?: string | undefined;
379
- serial?: string | undefined;
380
- info?: Info$Outbound | undefined;
748
+ export type GetDeploymentEventsResponseBodyInfo$Outbound = {
749
+ type: string;
750
+ name: string;
751
+ entrypoint?: string | undefined;
752
+ path?: string | undefined;
753
+ step?: string | undefined;
754
+ readyState?: string | undefined;
381
755
  };
382
756
 
383
757
  /** @internal */
384
- export const GetDeploymentEventsResponseBody$outboundSchema: z.ZodType<
385
- GetDeploymentEventsResponseBody$Outbound,
758
+ export const GetDeploymentEventsResponseBodyInfo$outboundSchema: z.ZodType<
759
+ GetDeploymentEventsResponseBodyInfo$Outbound,
386
760
  z.ZodTypeDef,
387
- GetDeploymentEventsResponseBody
761
+ GetDeploymentEventsResponseBodyInfo
388
762
  > = z.object({
389
- created: z.number().optional(),
390
- date: z.number().optional(),
391
- deploymentId: z.string().optional(),
392
- id: z.string().optional(),
393
- text: z.string().optional(),
394
- type: GetDeploymentEventsType$outboundSchema.optional(),
395
- serial: z.string().optional(),
396
- info: z.lazy(() => Info$outboundSchema).optional(),
763
+ type: z.string(),
764
+ name: z.string(),
765
+ entrypoint: z.string().optional(),
766
+ path: z.string().optional(),
767
+ step: z.string().optional(),
768
+ readyState: z.string().optional(),
397
769
  });
398
770
 
399
771
  /**
400
772
  * @internal
401
773
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
402
774
  */
403
- export namespace GetDeploymentEventsResponseBody$ {
404
- /** @deprecated use `GetDeploymentEventsResponseBody$inboundSchema` instead. */
405
- export const inboundSchema = GetDeploymentEventsResponseBody$inboundSchema;
406
- /** @deprecated use `GetDeploymentEventsResponseBody$outboundSchema` instead. */
407
- export const outboundSchema = GetDeploymentEventsResponseBody$outboundSchema;
408
- /** @deprecated use `GetDeploymentEventsResponseBody$Outbound` instead. */
409
- export type Outbound = GetDeploymentEventsResponseBody$Outbound;
775
+ export namespace GetDeploymentEventsResponseBodyInfo$ {
776
+ /** @deprecated use `GetDeploymentEventsResponseBodyInfo$inboundSchema` instead. */
777
+ export const inboundSchema =
778
+ GetDeploymentEventsResponseBodyInfo$inboundSchema;
779
+ /** @deprecated use `GetDeploymentEventsResponseBodyInfo$outboundSchema` instead. */
780
+ export const outboundSchema =
781
+ GetDeploymentEventsResponseBodyInfo$outboundSchema;
782
+ /** @deprecated use `GetDeploymentEventsResponseBodyInfo$Outbound` instead. */
783
+ export type Outbound = GetDeploymentEventsResponseBodyInfo$Outbound;
410
784
  }
411
785
 
412
- export function getDeploymentEventsResponseBodyToJSON(
413
- getDeploymentEventsResponseBody: GetDeploymentEventsResponseBody,
786
+ export function getDeploymentEventsResponseBodyInfoToJSON(
787
+ getDeploymentEventsResponseBodyInfo: GetDeploymentEventsResponseBodyInfo,
414
788
  ): string {
415
789
  return JSON.stringify(
416
- GetDeploymentEventsResponseBody$outboundSchema.parse(
417
- getDeploymentEventsResponseBody,
790
+ GetDeploymentEventsResponseBodyInfo$outboundSchema.parse(
791
+ getDeploymentEventsResponseBodyInfo,
418
792
  ),
419
793
  );
420
794
  }
421
795
 
422
- export function getDeploymentEventsResponseBodyFromJSON(
796
+ export function getDeploymentEventsResponseBodyInfoFromJSON(
423
797
  jsonString: string,
424
- ): SafeParseResult<GetDeploymentEventsResponseBody, SDKValidationError> {
798
+ ): SafeParseResult<GetDeploymentEventsResponseBodyInfo, SDKValidationError> {
425
799
  return safeParse(
426
800
  jsonString,
427
- (x) => GetDeploymentEventsResponseBody$inboundSchema.parse(JSON.parse(x)),
428
- `Failed to parse 'GetDeploymentEventsResponseBody' from JSON`,
801
+ (x) =>
802
+ GetDeploymentEventsResponseBodyInfo$inboundSchema.parse(JSON.parse(x)),
803
+ `Failed to parse 'GetDeploymentEventsResponseBodyInfo' from JSON`,
804
+ );
805
+ }
806
+
807
+ /** @internal */
808
+ export const ResponseBodyVercelCache$inboundSchema: z.ZodNativeEnum<
809
+ typeof ResponseBodyVercelCache
810
+ > = z.nativeEnum(ResponseBodyVercelCache);
811
+
812
+ /** @internal */
813
+ export const ResponseBodyVercelCache$outboundSchema: z.ZodNativeEnum<
814
+ typeof ResponseBodyVercelCache
815
+ > = ResponseBodyVercelCache$inboundSchema;
816
+
817
+ /**
818
+ * @internal
819
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
820
+ */
821
+ export namespace ResponseBodyVercelCache$ {
822
+ /** @deprecated use `ResponseBodyVercelCache$inboundSchema` instead. */
823
+ export const inboundSchema = ResponseBodyVercelCache$inboundSchema;
824
+ /** @deprecated use `ResponseBodyVercelCache$outboundSchema` instead. */
825
+ export const outboundSchema = ResponseBodyVercelCache$outboundSchema;
826
+ }
827
+
828
+ /** @internal */
829
+ export const ResponseBodyWafAction$inboundSchema: z.ZodNativeEnum<
830
+ typeof ResponseBodyWafAction
831
+ > = z.nativeEnum(ResponseBodyWafAction);
832
+
833
+ /** @internal */
834
+ export const ResponseBodyWafAction$outboundSchema: z.ZodNativeEnum<
835
+ typeof ResponseBodyWafAction
836
+ > = ResponseBodyWafAction$inboundSchema;
837
+
838
+ /**
839
+ * @internal
840
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
841
+ */
842
+ export namespace ResponseBodyWafAction$ {
843
+ /** @deprecated use `ResponseBodyWafAction$inboundSchema` instead. */
844
+ export const inboundSchema = ResponseBodyWafAction$inboundSchema;
845
+ /** @deprecated use `ResponseBodyWafAction$outboundSchema` instead. */
846
+ export const outboundSchema = ResponseBodyWafAction$outboundSchema;
847
+ }
848
+
849
+ /** @internal */
850
+ export const ResponseBodyProxy$inboundSchema: z.ZodType<
851
+ ResponseBodyProxy,
852
+ z.ZodTypeDef,
853
+ unknown
854
+ > = z.object({
855
+ timestamp: z.number(),
856
+ method: z.string(),
857
+ host: z.string(),
858
+ path: z.string(),
859
+ statusCode: z.number().optional(),
860
+ userAgent: z.array(z.string()),
861
+ referer: z.string(),
862
+ clientIp: z.string().optional(),
863
+ region: z.string(),
864
+ scheme: z.string().optional(),
865
+ responseByteSize: z.number().optional(),
866
+ cacheId: z.string().optional(),
867
+ pathType: z.string().optional(),
868
+ pathTypeVariant: z.string().optional(),
869
+ vercelId: z.string().optional(),
870
+ vercelCache: ResponseBodyVercelCache$inboundSchema.optional(),
871
+ lambdaRegion: z.string().optional(),
872
+ wafAction: ResponseBodyWafAction$inboundSchema.optional(),
873
+ wafRuleId: z.string().optional(),
874
+ });
875
+
876
+ /** @internal */
877
+ export type ResponseBodyProxy$Outbound = {
878
+ timestamp: number;
879
+ method: string;
880
+ host: string;
881
+ path: string;
882
+ statusCode?: number | undefined;
883
+ userAgent: Array<string>;
884
+ referer: string;
885
+ clientIp?: string | undefined;
886
+ region: string;
887
+ scheme?: string | undefined;
888
+ responseByteSize?: number | undefined;
889
+ cacheId?: string | undefined;
890
+ pathType?: string | undefined;
891
+ pathTypeVariant?: string | undefined;
892
+ vercelId?: string | undefined;
893
+ vercelCache?: string | undefined;
894
+ lambdaRegion?: string | undefined;
895
+ wafAction?: string | undefined;
896
+ wafRuleId?: string | undefined;
897
+ };
898
+
899
+ /** @internal */
900
+ export const ResponseBodyProxy$outboundSchema: z.ZodType<
901
+ ResponseBodyProxy$Outbound,
902
+ z.ZodTypeDef,
903
+ ResponseBodyProxy
904
+ > = z.object({
905
+ timestamp: z.number(),
906
+ method: z.string(),
907
+ host: z.string(),
908
+ path: z.string(),
909
+ statusCode: z.number().optional(),
910
+ userAgent: z.array(z.string()),
911
+ referer: z.string(),
912
+ clientIp: z.string().optional(),
913
+ region: z.string(),
914
+ scheme: z.string().optional(),
915
+ responseByteSize: z.number().optional(),
916
+ cacheId: z.string().optional(),
917
+ pathType: z.string().optional(),
918
+ pathTypeVariant: z.string().optional(),
919
+ vercelId: z.string().optional(),
920
+ vercelCache: ResponseBodyVercelCache$outboundSchema.optional(),
921
+ lambdaRegion: z.string().optional(),
922
+ wafAction: ResponseBodyWafAction$outboundSchema.optional(),
923
+ wafRuleId: z.string().optional(),
924
+ });
925
+
926
+ /**
927
+ * @internal
928
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
929
+ */
930
+ export namespace ResponseBodyProxy$ {
931
+ /** @deprecated use `ResponseBodyProxy$inboundSchema` instead. */
932
+ export const inboundSchema = ResponseBodyProxy$inboundSchema;
933
+ /** @deprecated use `ResponseBodyProxy$outboundSchema` instead. */
934
+ export const outboundSchema = ResponseBodyProxy$outboundSchema;
935
+ /** @deprecated use `ResponseBodyProxy$Outbound` instead. */
936
+ export type Outbound = ResponseBodyProxy$Outbound;
937
+ }
938
+
939
+ export function responseBodyProxyToJSON(
940
+ responseBodyProxy: ResponseBodyProxy,
941
+ ): string {
942
+ return JSON.stringify(
943
+ ResponseBodyProxy$outboundSchema.parse(responseBodyProxy),
944
+ );
945
+ }
946
+
947
+ export function responseBodyProxyFromJSON(
948
+ jsonString: string,
949
+ ): SafeParseResult<ResponseBodyProxy, SDKValidationError> {
950
+ return safeParse(
951
+ jsonString,
952
+ (x) => ResponseBodyProxy$inboundSchema.parse(JSON.parse(x)),
953
+ `Failed to parse 'ResponseBodyProxy' from JSON`,
954
+ );
955
+ }
956
+
957
+ /** @internal */
958
+ export const ResponseBodyPayload$inboundSchema: z.ZodType<
959
+ ResponseBodyPayload,
960
+ z.ZodTypeDef,
961
+ unknown
962
+ > = z.object({
963
+ deploymentId: z.string(),
964
+ info: z.lazy(() => GetDeploymentEventsResponseBodyInfo$inboundSchema)
965
+ .optional(),
966
+ text: z.string().optional(),
967
+ id: z.string(),
968
+ date: z.number(),
969
+ serial: z.string(),
970
+ created: z.number().optional(),
971
+ statusCode: z.number().optional(),
972
+ requestId: z.string().optional(),
973
+ proxy: z.lazy(() => ResponseBodyProxy$inboundSchema).optional(),
974
+ });
975
+
976
+ /** @internal */
977
+ export type ResponseBodyPayload$Outbound = {
978
+ deploymentId: string;
979
+ info?: GetDeploymentEventsResponseBodyInfo$Outbound | undefined;
980
+ text?: string | undefined;
981
+ id: string;
982
+ date: number;
983
+ serial: string;
984
+ created?: number | undefined;
985
+ statusCode?: number | undefined;
986
+ requestId?: string | undefined;
987
+ proxy?: ResponseBodyProxy$Outbound | undefined;
988
+ };
989
+
990
+ /** @internal */
991
+ export const ResponseBodyPayload$outboundSchema: z.ZodType<
992
+ ResponseBodyPayload$Outbound,
993
+ z.ZodTypeDef,
994
+ ResponseBodyPayload
995
+ > = z.object({
996
+ deploymentId: z.string(),
997
+ info: z.lazy(() => GetDeploymentEventsResponseBodyInfo$outboundSchema)
998
+ .optional(),
999
+ text: z.string().optional(),
1000
+ id: z.string(),
1001
+ date: z.number(),
1002
+ serial: z.string(),
1003
+ created: z.number().optional(),
1004
+ statusCode: z.number().optional(),
1005
+ requestId: z.string().optional(),
1006
+ proxy: z.lazy(() => ResponseBodyProxy$outboundSchema).optional(),
1007
+ });
1008
+
1009
+ /**
1010
+ * @internal
1011
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1012
+ */
1013
+ export namespace ResponseBodyPayload$ {
1014
+ /** @deprecated use `ResponseBodyPayload$inboundSchema` instead. */
1015
+ export const inboundSchema = ResponseBodyPayload$inboundSchema;
1016
+ /** @deprecated use `ResponseBodyPayload$outboundSchema` instead. */
1017
+ export const outboundSchema = ResponseBodyPayload$outboundSchema;
1018
+ /** @deprecated use `ResponseBodyPayload$Outbound` instead. */
1019
+ export type Outbound = ResponseBodyPayload$Outbound;
1020
+ }
1021
+
1022
+ export function responseBodyPayloadToJSON(
1023
+ responseBodyPayload: ResponseBodyPayload,
1024
+ ): string {
1025
+ return JSON.stringify(
1026
+ ResponseBodyPayload$outboundSchema.parse(responseBodyPayload),
1027
+ );
1028
+ }
1029
+
1030
+ export function responseBodyPayloadFromJSON(
1031
+ jsonString: string,
1032
+ ): SafeParseResult<ResponseBodyPayload, SDKValidationError> {
1033
+ return safeParse(
1034
+ jsonString,
1035
+ (x) => ResponseBodyPayload$inboundSchema.parse(JSON.parse(x)),
1036
+ `Failed to parse 'ResponseBodyPayload' from JSON`,
1037
+ );
1038
+ }
1039
+
1040
+ /** @internal */
1041
+ export const GetDeploymentEventsResponseBodyDeployments1$inboundSchema:
1042
+ z.ZodType<
1043
+ GetDeploymentEventsResponseBodyDeployments1,
1044
+ z.ZodTypeDef,
1045
+ unknown
1046
+ > = z.object({
1047
+ type: GetDeploymentEventsResponseBodyDeploymentsType$inboundSchema,
1048
+ created: z.number(),
1049
+ payload: z.lazy(() => ResponseBodyPayload$inboundSchema),
1050
+ });
1051
+
1052
+ /** @internal */
1053
+ export type GetDeploymentEventsResponseBodyDeployments1$Outbound = {
1054
+ type: string;
1055
+ created: number;
1056
+ payload: ResponseBodyPayload$Outbound;
1057
+ };
1058
+
1059
+ /** @internal */
1060
+ export const GetDeploymentEventsResponseBodyDeployments1$outboundSchema:
1061
+ z.ZodType<
1062
+ GetDeploymentEventsResponseBodyDeployments1$Outbound,
1063
+ z.ZodTypeDef,
1064
+ GetDeploymentEventsResponseBodyDeployments1
1065
+ > = z.object({
1066
+ type: GetDeploymentEventsResponseBodyDeploymentsType$outboundSchema,
1067
+ created: z.number(),
1068
+ payload: z.lazy(() => ResponseBodyPayload$outboundSchema),
1069
+ });
1070
+
1071
+ /**
1072
+ * @internal
1073
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1074
+ */
1075
+ export namespace GetDeploymentEventsResponseBodyDeployments1$ {
1076
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments1$inboundSchema` instead. */
1077
+ export const inboundSchema =
1078
+ GetDeploymentEventsResponseBodyDeployments1$inboundSchema;
1079
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments1$outboundSchema` instead. */
1080
+ export const outboundSchema =
1081
+ GetDeploymentEventsResponseBodyDeployments1$outboundSchema;
1082
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeployments1$Outbound` instead. */
1083
+ export type Outbound = GetDeploymentEventsResponseBodyDeployments1$Outbound;
1084
+ }
1085
+
1086
+ export function getDeploymentEventsResponseBodyDeployments1ToJSON(
1087
+ getDeploymentEventsResponseBodyDeployments1:
1088
+ GetDeploymentEventsResponseBodyDeployments1,
1089
+ ): string {
1090
+ return JSON.stringify(
1091
+ GetDeploymentEventsResponseBodyDeployments1$outboundSchema.parse(
1092
+ getDeploymentEventsResponseBodyDeployments1,
1093
+ ),
1094
+ );
1095
+ }
1096
+
1097
+ export function getDeploymentEventsResponseBodyDeployments1FromJSON(
1098
+ jsonString: string,
1099
+ ): SafeParseResult<
1100
+ GetDeploymentEventsResponseBodyDeployments1,
1101
+ SDKValidationError
1102
+ > {
1103
+ return safeParse(
1104
+ jsonString,
1105
+ (x) =>
1106
+ GetDeploymentEventsResponseBodyDeployments1$inboundSchema.parse(
1107
+ JSON.parse(x),
1108
+ ),
1109
+ `Failed to parse 'GetDeploymentEventsResponseBodyDeployments1' from JSON`,
1110
+ );
1111
+ }
1112
+
1113
+ /** @internal */
1114
+ export const GetDeploymentEventsResponseBody$inboundSchema: z.ZodType<
1115
+ GetDeploymentEventsResponseBody,
1116
+ z.ZodTypeDef,
1117
+ unknown
1118
+ > = z.union([
1119
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$inboundSchema),
1120
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$inboundSchema),
1121
+ ]);
1122
+
1123
+ /** @internal */
1124
+ export type GetDeploymentEventsResponseBody$Outbound =
1125
+ | GetDeploymentEventsResponseBodyDeployments1$Outbound
1126
+ | GetDeploymentEventsResponseBodyDeployments2$Outbound;
1127
+
1128
+ /** @internal */
1129
+ export const GetDeploymentEventsResponseBody$outboundSchema: z.ZodType<
1130
+ GetDeploymentEventsResponseBody$Outbound,
1131
+ z.ZodTypeDef,
1132
+ GetDeploymentEventsResponseBody
1133
+ > = z.union([
1134
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$outboundSchema),
1135
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$outboundSchema),
1136
+ ]);
1137
+
1138
+ /**
1139
+ * @internal
1140
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1141
+ */
1142
+ export namespace GetDeploymentEventsResponseBody$ {
1143
+ /** @deprecated use `GetDeploymentEventsResponseBody$inboundSchema` instead. */
1144
+ export const inboundSchema = GetDeploymentEventsResponseBody$inboundSchema;
1145
+ /** @deprecated use `GetDeploymentEventsResponseBody$outboundSchema` instead. */
1146
+ export const outboundSchema = GetDeploymentEventsResponseBody$outboundSchema;
1147
+ /** @deprecated use `GetDeploymentEventsResponseBody$Outbound` instead. */
1148
+ export type Outbound = GetDeploymentEventsResponseBody$Outbound;
1149
+ }
1150
+
1151
+ export function getDeploymentEventsResponseBodyToJSON(
1152
+ getDeploymentEventsResponseBody: GetDeploymentEventsResponseBody,
1153
+ ): string {
1154
+ return JSON.stringify(
1155
+ GetDeploymentEventsResponseBody$outboundSchema.parse(
1156
+ getDeploymentEventsResponseBody,
1157
+ ),
1158
+ );
1159
+ }
1160
+
1161
+ export function getDeploymentEventsResponseBodyFromJSON(
1162
+ jsonString: string,
1163
+ ): SafeParseResult<GetDeploymentEventsResponseBody, SDKValidationError> {
1164
+ return safeParse(
1165
+ jsonString,
1166
+ (x) => GetDeploymentEventsResponseBody$inboundSchema.parse(JSON.parse(x)),
1167
+ `Failed to parse 'GetDeploymentEventsResponseBody' from JSON`,
1168
+ );
1169
+ }
1170
+
1171
+ /** @internal */
1172
+ export const Info$inboundSchema: z.ZodType<Info, z.ZodTypeDef, unknown> = z
1173
+ .object({
1174
+ type: z.string(),
1175
+ name: z.string(),
1176
+ entrypoint: z.string().optional(),
1177
+ path: z.string().optional(),
1178
+ step: z.string().optional(),
1179
+ readyState: z.string().optional(),
1180
+ });
1181
+
1182
+ /** @internal */
1183
+ export type Info$Outbound = {
1184
+ type: string;
1185
+ name: string;
1186
+ entrypoint?: string | undefined;
1187
+ path?: string | undefined;
1188
+ step?: string | undefined;
1189
+ readyState?: string | undefined;
1190
+ };
1191
+
1192
+ /** @internal */
1193
+ export const Info$outboundSchema: z.ZodType<Info$Outbound, z.ZodTypeDef, Info> =
1194
+ z.object({
1195
+ type: z.string(),
1196
+ name: z.string(),
1197
+ entrypoint: z.string().optional(),
1198
+ path: z.string().optional(),
1199
+ step: z.string().optional(),
1200
+ readyState: z.string().optional(),
1201
+ });
1202
+
1203
+ /**
1204
+ * @internal
1205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1206
+ */
1207
+ export namespace Info$ {
1208
+ /** @deprecated use `Info$inboundSchema` instead. */
1209
+ export const inboundSchema = Info$inboundSchema;
1210
+ /** @deprecated use `Info$outboundSchema` instead. */
1211
+ export const outboundSchema = Info$outboundSchema;
1212
+ /** @deprecated use `Info$Outbound` instead. */
1213
+ export type Outbound = Info$Outbound;
1214
+ }
1215
+
1216
+ export function infoToJSON(info: Info): string {
1217
+ return JSON.stringify(Info$outboundSchema.parse(info));
1218
+ }
1219
+
1220
+ export function infoFromJSON(
1221
+ jsonString: string,
1222
+ ): SafeParseResult<Info, SDKValidationError> {
1223
+ return safeParse(
1224
+ jsonString,
1225
+ (x) => Info$inboundSchema.parse(JSON.parse(x)),
1226
+ `Failed to parse 'Info' from JSON`,
1227
+ );
1228
+ }
1229
+
1230
+ /** @internal */
1231
+ export const GetDeploymentEventsResponseBodyType$inboundSchema: z.ZodNativeEnum<
1232
+ typeof GetDeploymentEventsResponseBodyType
1233
+ > = z.nativeEnum(GetDeploymentEventsResponseBodyType);
1234
+
1235
+ /** @internal */
1236
+ export const GetDeploymentEventsResponseBodyType$outboundSchema:
1237
+ z.ZodNativeEnum<typeof GetDeploymentEventsResponseBodyType> =
1238
+ GetDeploymentEventsResponseBodyType$inboundSchema;
1239
+
1240
+ /**
1241
+ * @internal
1242
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1243
+ */
1244
+ export namespace GetDeploymentEventsResponseBodyType$ {
1245
+ /** @deprecated use `GetDeploymentEventsResponseBodyType$inboundSchema` instead. */
1246
+ export const inboundSchema =
1247
+ GetDeploymentEventsResponseBodyType$inboundSchema;
1248
+ /** @deprecated use `GetDeploymentEventsResponseBodyType$outboundSchema` instead. */
1249
+ export const outboundSchema =
1250
+ GetDeploymentEventsResponseBodyType$outboundSchema;
1251
+ }
1252
+
1253
+ /** @internal */
1254
+ export const GetDeploymentEventsResponseBodyLevel$inboundSchema:
1255
+ z.ZodNativeEnum<typeof GetDeploymentEventsResponseBodyLevel> = z.nativeEnum(
1256
+ GetDeploymentEventsResponseBodyLevel,
1257
+ );
1258
+
1259
+ /** @internal */
1260
+ export const GetDeploymentEventsResponseBodyLevel$outboundSchema:
1261
+ z.ZodNativeEnum<typeof GetDeploymentEventsResponseBodyLevel> =
1262
+ GetDeploymentEventsResponseBodyLevel$inboundSchema;
1263
+
1264
+ /**
1265
+ * @internal
1266
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1267
+ */
1268
+ export namespace GetDeploymentEventsResponseBodyLevel$ {
1269
+ /** @deprecated use `GetDeploymentEventsResponseBodyLevel$inboundSchema` instead. */
1270
+ export const inboundSchema =
1271
+ GetDeploymentEventsResponseBodyLevel$inboundSchema;
1272
+ /** @deprecated use `GetDeploymentEventsResponseBodyLevel$outboundSchema` instead. */
1273
+ export const outboundSchema =
1274
+ GetDeploymentEventsResponseBodyLevel$outboundSchema;
1275
+ }
1276
+
1277
+ /** @internal */
1278
+ export const GetDeploymentEventsResponseBody2$inboundSchema: z.ZodType<
1279
+ GetDeploymentEventsResponseBody2,
1280
+ z.ZodTypeDef,
1281
+ unknown
1282
+ > = z.object({
1283
+ created: z.number(),
1284
+ date: z.number(),
1285
+ deploymentId: z.string(),
1286
+ id: z.string(),
1287
+ info: z.lazy(() => Info$inboundSchema),
1288
+ serial: z.string(),
1289
+ text: z.string().optional(),
1290
+ type: GetDeploymentEventsResponseBodyType$inboundSchema,
1291
+ level: GetDeploymentEventsResponseBodyLevel$inboundSchema.optional(),
1292
+ });
1293
+
1294
+ /** @internal */
1295
+ export type GetDeploymentEventsResponseBody2$Outbound = {
1296
+ created: number;
1297
+ date: number;
1298
+ deploymentId: string;
1299
+ id: string;
1300
+ info: Info$Outbound;
1301
+ serial: string;
1302
+ text?: string | undefined;
1303
+ type: string;
1304
+ level?: string | undefined;
1305
+ };
1306
+
1307
+ /** @internal */
1308
+ export const GetDeploymentEventsResponseBody2$outboundSchema: z.ZodType<
1309
+ GetDeploymentEventsResponseBody2$Outbound,
1310
+ z.ZodTypeDef,
1311
+ GetDeploymentEventsResponseBody2
1312
+ > = z.object({
1313
+ created: z.number(),
1314
+ date: z.number(),
1315
+ deploymentId: z.string(),
1316
+ id: z.string(),
1317
+ info: z.lazy(() => Info$outboundSchema),
1318
+ serial: z.string(),
1319
+ text: z.string().optional(),
1320
+ type: GetDeploymentEventsResponseBodyType$outboundSchema,
1321
+ level: GetDeploymentEventsResponseBodyLevel$outboundSchema.optional(),
1322
+ });
1323
+
1324
+ /**
1325
+ * @internal
1326
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1327
+ */
1328
+ export namespace GetDeploymentEventsResponseBody2$ {
1329
+ /** @deprecated use `GetDeploymentEventsResponseBody2$inboundSchema` instead. */
1330
+ export const inboundSchema = GetDeploymentEventsResponseBody2$inboundSchema;
1331
+ /** @deprecated use `GetDeploymentEventsResponseBody2$outboundSchema` instead. */
1332
+ export const outboundSchema = GetDeploymentEventsResponseBody2$outboundSchema;
1333
+ /** @deprecated use `GetDeploymentEventsResponseBody2$Outbound` instead. */
1334
+ export type Outbound = GetDeploymentEventsResponseBody2$Outbound;
1335
+ }
1336
+
1337
+ export function getDeploymentEventsResponseBody2ToJSON(
1338
+ getDeploymentEventsResponseBody2: GetDeploymentEventsResponseBody2,
1339
+ ): string {
1340
+ return JSON.stringify(
1341
+ GetDeploymentEventsResponseBody2$outboundSchema.parse(
1342
+ getDeploymentEventsResponseBody2,
1343
+ ),
1344
+ );
1345
+ }
1346
+
1347
+ export function getDeploymentEventsResponseBody2FromJSON(
1348
+ jsonString: string,
1349
+ ): SafeParseResult<GetDeploymentEventsResponseBody2, SDKValidationError> {
1350
+ return safeParse(
1351
+ jsonString,
1352
+ (x) => GetDeploymentEventsResponseBody2$inboundSchema.parse(JSON.parse(x)),
1353
+ `Failed to parse 'GetDeploymentEventsResponseBody2' from JSON`,
1354
+ );
1355
+ }
1356
+
1357
+ /** @internal */
1358
+ export const ResponseBodyType$inboundSchema: z.ZodNativeEnum<
1359
+ typeof ResponseBodyType
1360
+ > = z.nativeEnum(ResponseBodyType);
1361
+
1362
+ /** @internal */
1363
+ export const ResponseBodyType$outboundSchema: z.ZodNativeEnum<
1364
+ typeof ResponseBodyType
1365
+ > = ResponseBodyType$inboundSchema;
1366
+
1367
+ /**
1368
+ * @internal
1369
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1370
+ */
1371
+ export namespace ResponseBodyType$ {
1372
+ /** @deprecated use `ResponseBodyType$inboundSchema` instead. */
1373
+ export const inboundSchema = ResponseBodyType$inboundSchema;
1374
+ /** @deprecated use `ResponseBodyType$outboundSchema` instead. */
1375
+ export const outboundSchema = ResponseBodyType$outboundSchema;
1376
+ }
1377
+
1378
+ /** @internal */
1379
+ export const GetDeploymentEventsResponseBodyDeploymentsInfo$inboundSchema:
1380
+ z.ZodType<
1381
+ GetDeploymentEventsResponseBodyDeploymentsInfo,
1382
+ z.ZodTypeDef,
1383
+ unknown
1384
+ > = z.object({
1385
+ type: z.string(),
1386
+ name: z.string(),
1387
+ entrypoint: z.string().optional(),
1388
+ path: z.string().optional(),
1389
+ step: z.string().optional(),
1390
+ readyState: z.string().optional(),
1391
+ });
1392
+
1393
+ /** @internal */
1394
+ export type GetDeploymentEventsResponseBodyDeploymentsInfo$Outbound = {
1395
+ type: string;
1396
+ name: string;
1397
+ entrypoint?: string | undefined;
1398
+ path?: string | undefined;
1399
+ step?: string | undefined;
1400
+ readyState?: string | undefined;
1401
+ };
1402
+
1403
+ /** @internal */
1404
+ export const GetDeploymentEventsResponseBodyDeploymentsInfo$outboundSchema:
1405
+ z.ZodType<
1406
+ GetDeploymentEventsResponseBodyDeploymentsInfo$Outbound,
1407
+ z.ZodTypeDef,
1408
+ GetDeploymentEventsResponseBodyDeploymentsInfo
1409
+ > = z.object({
1410
+ type: z.string(),
1411
+ name: z.string(),
1412
+ entrypoint: z.string().optional(),
1413
+ path: z.string().optional(),
1414
+ step: z.string().optional(),
1415
+ readyState: z.string().optional(),
1416
+ });
1417
+
1418
+ /**
1419
+ * @internal
1420
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1421
+ */
1422
+ export namespace GetDeploymentEventsResponseBodyDeploymentsInfo$ {
1423
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsInfo$inboundSchema` instead. */
1424
+ export const inboundSchema =
1425
+ GetDeploymentEventsResponseBodyDeploymentsInfo$inboundSchema;
1426
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsInfo$outboundSchema` instead. */
1427
+ export const outboundSchema =
1428
+ GetDeploymentEventsResponseBodyDeploymentsInfo$outboundSchema;
1429
+ /** @deprecated use `GetDeploymentEventsResponseBodyDeploymentsInfo$Outbound` instead. */
1430
+ export type Outbound =
1431
+ GetDeploymentEventsResponseBodyDeploymentsInfo$Outbound;
1432
+ }
1433
+
1434
+ export function getDeploymentEventsResponseBodyDeploymentsInfoToJSON(
1435
+ getDeploymentEventsResponseBodyDeploymentsInfo:
1436
+ GetDeploymentEventsResponseBodyDeploymentsInfo,
1437
+ ): string {
1438
+ return JSON.stringify(
1439
+ GetDeploymentEventsResponseBodyDeploymentsInfo$outboundSchema.parse(
1440
+ getDeploymentEventsResponseBodyDeploymentsInfo,
1441
+ ),
1442
+ );
1443
+ }
1444
+
1445
+ export function getDeploymentEventsResponseBodyDeploymentsInfoFromJSON(
1446
+ jsonString: string,
1447
+ ): SafeParseResult<
1448
+ GetDeploymentEventsResponseBodyDeploymentsInfo,
1449
+ SDKValidationError
1450
+ > {
1451
+ return safeParse(
1452
+ jsonString,
1453
+ (x) =>
1454
+ GetDeploymentEventsResponseBodyDeploymentsInfo$inboundSchema.parse(
1455
+ JSON.parse(x),
1456
+ ),
1457
+ `Failed to parse 'GetDeploymentEventsResponseBodyDeploymentsInfo' from JSON`,
1458
+ );
1459
+ }
1460
+
1461
+ /** @internal */
1462
+ export const VercelCache$inboundSchema: z.ZodNativeEnum<typeof VercelCache> = z
1463
+ .nativeEnum(VercelCache);
1464
+
1465
+ /** @internal */
1466
+ export const VercelCache$outboundSchema: z.ZodNativeEnum<typeof VercelCache> =
1467
+ VercelCache$inboundSchema;
1468
+
1469
+ /**
1470
+ * @internal
1471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1472
+ */
1473
+ export namespace VercelCache$ {
1474
+ /** @deprecated use `VercelCache$inboundSchema` instead. */
1475
+ export const inboundSchema = VercelCache$inboundSchema;
1476
+ /** @deprecated use `VercelCache$outboundSchema` instead. */
1477
+ export const outboundSchema = VercelCache$outboundSchema;
1478
+ }
1479
+
1480
+ /** @internal */
1481
+ export const WafAction$inboundSchema: z.ZodNativeEnum<typeof WafAction> = z
1482
+ .nativeEnum(WafAction);
1483
+
1484
+ /** @internal */
1485
+ export const WafAction$outboundSchema: z.ZodNativeEnum<typeof WafAction> =
1486
+ WafAction$inboundSchema;
1487
+
1488
+ /**
1489
+ * @internal
1490
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1491
+ */
1492
+ export namespace WafAction$ {
1493
+ /** @deprecated use `WafAction$inboundSchema` instead. */
1494
+ export const inboundSchema = WafAction$inboundSchema;
1495
+ /** @deprecated use `WafAction$outboundSchema` instead. */
1496
+ export const outboundSchema = WafAction$outboundSchema;
1497
+ }
1498
+
1499
+ /** @internal */
1500
+ export const Proxy$inboundSchema: z.ZodType<Proxy, z.ZodTypeDef, unknown> = z
1501
+ .object({
1502
+ timestamp: z.number(),
1503
+ method: z.string(),
1504
+ host: z.string(),
1505
+ path: z.string(),
1506
+ statusCode: z.number().optional(),
1507
+ userAgent: z.array(z.string()),
1508
+ referer: z.string(),
1509
+ clientIp: z.string().optional(),
1510
+ region: z.string(),
1511
+ scheme: z.string().optional(),
1512
+ responseByteSize: z.number().optional(),
1513
+ cacheId: z.string().optional(),
1514
+ pathType: z.string().optional(),
1515
+ pathTypeVariant: z.string().optional(),
1516
+ vercelId: z.string().optional(),
1517
+ vercelCache: VercelCache$inboundSchema.optional(),
1518
+ lambdaRegion: z.string().optional(),
1519
+ wafAction: WafAction$inboundSchema.optional(),
1520
+ wafRuleId: z.string().optional(),
1521
+ });
1522
+
1523
+ /** @internal */
1524
+ export type Proxy$Outbound = {
1525
+ timestamp: number;
1526
+ method: string;
1527
+ host: string;
1528
+ path: string;
1529
+ statusCode?: number | undefined;
1530
+ userAgent: Array<string>;
1531
+ referer: string;
1532
+ clientIp?: string | undefined;
1533
+ region: string;
1534
+ scheme?: string | undefined;
1535
+ responseByteSize?: number | undefined;
1536
+ cacheId?: string | undefined;
1537
+ pathType?: string | undefined;
1538
+ pathTypeVariant?: string | undefined;
1539
+ vercelId?: string | undefined;
1540
+ vercelCache?: string | undefined;
1541
+ lambdaRegion?: string | undefined;
1542
+ wafAction?: string | undefined;
1543
+ wafRuleId?: string | undefined;
1544
+ };
1545
+
1546
+ /** @internal */
1547
+ export const Proxy$outboundSchema: z.ZodType<
1548
+ Proxy$Outbound,
1549
+ z.ZodTypeDef,
1550
+ Proxy
1551
+ > = z.object({
1552
+ timestamp: z.number(),
1553
+ method: z.string(),
1554
+ host: z.string(),
1555
+ path: z.string(),
1556
+ statusCode: z.number().optional(),
1557
+ userAgent: z.array(z.string()),
1558
+ referer: z.string(),
1559
+ clientIp: z.string().optional(),
1560
+ region: z.string(),
1561
+ scheme: z.string().optional(),
1562
+ responseByteSize: z.number().optional(),
1563
+ cacheId: z.string().optional(),
1564
+ pathType: z.string().optional(),
1565
+ pathTypeVariant: z.string().optional(),
1566
+ vercelId: z.string().optional(),
1567
+ vercelCache: VercelCache$outboundSchema.optional(),
1568
+ lambdaRegion: z.string().optional(),
1569
+ wafAction: WafAction$outboundSchema.optional(),
1570
+ wafRuleId: z.string().optional(),
1571
+ });
1572
+
1573
+ /**
1574
+ * @internal
1575
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1576
+ */
1577
+ export namespace Proxy$ {
1578
+ /** @deprecated use `Proxy$inboundSchema` instead. */
1579
+ export const inboundSchema = Proxy$inboundSchema;
1580
+ /** @deprecated use `Proxy$outboundSchema` instead. */
1581
+ export const outboundSchema = Proxy$outboundSchema;
1582
+ /** @deprecated use `Proxy$Outbound` instead. */
1583
+ export type Outbound = Proxy$Outbound;
1584
+ }
1585
+
1586
+ export function proxyToJSON(proxy: Proxy): string {
1587
+ return JSON.stringify(Proxy$outboundSchema.parse(proxy));
1588
+ }
1589
+
1590
+ export function proxyFromJSON(
1591
+ jsonString: string,
1592
+ ): SafeParseResult<Proxy, SDKValidationError> {
1593
+ return safeParse(
1594
+ jsonString,
1595
+ (x) => Proxy$inboundSchema.parse(JSON.parse(x)),
1596
+ `Failed to parse 'Proxy' from JSON`,
1597
+ );
1598
+ }
1599
+
1600
+ /** @internal */
1601
+ export const GetDeploymentEventsResponseBodyPayload$inboundSchema: z.ZodType<
1602
+ GetDeploymentEventsResponseBodyPayload,
1603
+ z.ZodTypeDef,
1604
+ unknown
1605
+ > = z.object({
1606
+ deploymentId: z.string(),
1607
+ info: z.lazy(() =>
1608
+ GetDeploymentEventsResponseBodyDeploymentsInfo$inboundSchema
1609
+ ).optional(),
1610
+ text: z.string().optional(),
1611
+ id: z.string(),
1612
+ date: z.number(),
1613
+ serial: z.string(),
1614
+ created: z.number().optional(),
1615
+ statusCode: z.number().optional(),
1616
+ requestId: z.string().optional(),
1617
+ proxy: z.lazy(() => Proxy$inboundSchema).optional(),
1618
+ });
1619
+
1620
+ /** @internal */
1621
+ export type GetDeploymentEventsResponseBodyPayload$Outbound = {
1622
+ deploymentId: string;
1623
+ info?: GetDeploymentEventsResponseBodyDeploymentsInfo$Outbound | undefined;
1624
+ text?: string | undefined;
1625
+ id: string;
1626
+ date: number;
1627
+ serial: string;
1628
+ created?: number | undefined;
1629
+ statusCode?: number | undefined;
1630
+ requestId?: string | undefined;
1631
+ proxy?: Proxy$Outbound | undefined;
1632
+ };
1633
+
1634
+ /** @internal */
1635
+ export const GetDeploymentEventsResponseBodyPayload$outboundSchema: z.ZodType<
1636
+ GetDeploymentEventsResponseBodyPayload$Outbound,
1637
+ z.ZodTypeDef,
1638
+ GetDeploymentEventsResponseBodyPayload
1639
+ > = z.object({
1640
+ deploymentId: z.string(),
1641
+ info: z.lazy(() =>
1642
+ GetDeploymentEventsResponseBodyDeploymentsInfo$outboundSchema
1643
+ ).optional(),
1644
+ text: z.string().optional(),
1645
+ id: z.string(),
1646
+ date: z.number(),
1647
+ serial: z.string(),
1648
+ created: z.number().optional(),
1649
+ statusCode: z.number().optional(),
1650
+ requestId: z.string().optional(),
1651
+ proxy: z.lazy(() => Proxy$outboundSchema).optional(),
1652
+ });
1653
+
1654
+ /**
1655
+ * @internal
1656
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1657
+ */
1658
+ export namespace GetDeploymentEventsResponseBodyPayload$ {
1659
+ /** @deprecated use `GetDeploymentEventsResponseBodyPayload$inboundSchema` instead. */
1660
+ export const inboundSchema =
1661
+ GetDeploymentEventsResponseBodyPayload$inboundSchema;
1662
+ /** @deprecated use `GetDeploymentEventsResponseBodyPayload$outboundSchema` instead. */
1663
+ export const outboundSchema =
1664
+ GetDeploymentEventsResponseBodyPayload$outboundSchema;
1665
+ /** @deprecated use `GetDeploymentEventsResponseBodyPayload$Outbound` instead. */
1666
+ export type Outbound = GetDeploymentEventsResponseBodyPayload$Outbound;
1667
+ }
1668
+
1669
+ export function getDeploymentEventsResponseBodyPayloadToJSON(
1670
+ getDeploymentEventsResponseBodyPayload:
1671
+ GetDeploymentEventsResponseBodyPayload,
1672
+ ): string {
1673
+ return JSON.stringify(
1674
+ GetDeploymentEventsResponseBodyPayload$outboundSchema.parse(
1675
+ getDeploymentEventsResponseBodyPayload,
1676
+ ),
1677
+ );
1678
+ }
1679
+
1680
+ export function getDeploymentEventsResponseBodyPayloadFromJSON(
1681
+ jsonString: string,
1682
+ ): SafeParseResult<GetDeploymentEventsResponseBodyPayload, SDKValidationError> {
1683
+ return safeParse(
1684
+ jsonString,
1685
+ (x) =>
1686
+ GetDeploymentEventsResponseBodyPayload$inboundSchema.parse(JSON.parse(x)),
1687
+ `Failed to parse 'GetDeploymentEventsResponseBodyPayload' from JSON`,
1688
+ );
1689
+ }
1690
+
1691
+ /** @internal */
1692
+ export const GetDeploymentEventsResponseBody1$inboundSchema: z.ZodType<
1693
+ GetDeploymentEventsResponseBody1,
1694
+ z.ZodTypeDef,
1695
+ unknown
1696
+ > = z.object({
1697
+ type: ResponseBodyType$inboundSchema,
1698
+ created: z.number(),
1699
+ payload: z.lazy(() => GetDeploymentEventsResponseBodyPayload$inboundSchema),
1700
+ });
1701
+
1702
+ /** @internal */
1703
+ export type GetDeploymentEventsResponseBody1$Outbound = {
1704
+ type: string;
1705
+ created: number;
1706
+ payload: GetDeploymentEventsResponseBodyPayload$Outbound;
1707
+ };
1708
+
1709
+ /** @internal */
1710
+ export const GetDeploymentEventsResponseBody1$outboundSchema: z.ZodType<
1711
+ GetDeploymentEventsResponseBody1$Outbound,
1712
+ z.ZodTypeDef,
1713
+ GetDeploymentEventsResponseBody1
1714
+ > = z.object({
1715
+ type: ResponseBodyType$outboundSchema,
1716
+ created: z.number(),
1717
+ payload: z.lazy(() => GetDeploymentEventsResponseBodyPayload$outboundSchema),
1718
+ });
1719
+
1720
+ /**
1721
+ * @internal
1722
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1723
+ */
1724
+ export namespace GetDeploymentEventsResponseBody1$ {
1725
+ /** @deprecated use `GetDeploymentEventsResponseBody1$inboundSchema` instead. */
1726
+ export const inboundSchema = GetDeploymentEventsResponseBody1$inboundSchema;
1727
+ /** @deprecated use `GetDeploymentEventsResponseBody1$outboundSchema` instead. */
1728
+ export const outboundSchema = GetDeploymentEventsResponseBody1$outboundSchema;
1729
+ /** @deprecated use `GetDeploymentEventsResponseBody1$Outbound` instead. */
1730
+ export type Outbound = GetDeploymentEventsResponseBody1$Outbound;
1731
+ }
1732
+
1733
+ export function getDeploymentEventsResponseBody1ToJSON(
1734
+ getDeploymentEventsResponseBody1: GetDeploymentEventsResponseBody1,
1735
+ ): string {
1736
+ return JSON.stringify(
1737
+ GetDeploymentEventsResponseBody1$outboundSchema.parse(
1738
+ getDeploymentEventsResponseBody1,
1739
+ ),
1740
+ );
1741
+ }
1742
+
1743
+ export function getDeploymentEventsResponseBody1FromJSON(
1744
+ jsonString: string,
1745
+ ): SafeParseResult<GetDeploymentEventsResponseBody1, SDKValidationError> {
1746
+ return safeParse(
1747
+ jsonString,
1748
+ (x) => GetDeploymentEventsResponseBody1$inboundSchema.parse(JSON.parse(x)),
1749
+ `Failed to parse 'GetDeploymentEventsResponseBody1' from JSON`,
1750
+ );
1751
+ }
1752
+
1753
+ /** @internal */
1754
+ export const GetDeploymentEventsDeploymentsResponseBody$inboundSchema:
1755
+ z.ZodType<GetDeploymentEventsDeploymentsResponseBody, z.ZodTypeDef, unknown> =
1756
+ z.union([
1757
+ z.lazy(() => GetDeploymentEventsResponseBody1$inboundSchema),
1758
+ z.lazy(() => GetDeploymentEventsResponseBody2$inboundSchema),
1759
+ ]);
1760
+
1761
+ /** @internal */
1762
+ export type GetDeploymentEventsDeploymentsResponseBody$Outbound =
1763
+ | GetDeploymentEventsResponseBody1$Outbound
1764
+ | GetDeploymentEventsResponseBody2$Outbound;
1765
+
1766
+ /** @internal */
1767
+ export const GetDeploymentEventsDeploymentsResponseBody$outboundSchema:
1768
+ z.ZodType<
1769
+ GetDeploymentEventsDeploymentsResponseBody$Outbound,
1770
+ z.ZodTypeDef,
1771
+ GetDeploymentEventsDeploymentsResponseBody
1772
+ > = z.union([
1773
+ z.lazy(() => GetDeploymentEventsResponseBody1$outboundSchema),
1774
+ z.lazy(() => GetDeploymentEventsResponseBody2$outboundSchema),
1775
+ ]);
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace GetDeploymentEventsDeploymentsResponseBody$ {
1782
+ /** @deprecated use `GetDeploymentEventsDeploymentsResponseBody$inboundSchema` instead. */
1783
+ export const inboundSchema =
1784
+ GetDeploymentEventsDeploymentsResponseBody$inboundSchema;
1785
+ /** @deprecated use `GetDeploymentEventsDeploymentsResponseBody$outboundSchema` instead. */
1786
+ export const outboundSchema =
1787
+ GetDeploymentEventsDeploymentsResponseBody$outboundSchema;
1788
+ /** @deprecated use `GetDeploymentEventsDeploymentsResponseBody$Outbound` instead. */
1789
+ export type Outbound = GetDeploymentEventsDeploymentsResponseBody$Outbound;
1790
+ }
1791
+
1792
+ export function getDeploymentEventsDeploymentsResponseBodyToJSON(
1793
+ getDeploymentEventsDeploymentsResponseBody:
1794
+ GetDeploymentEventsDeploymentsResponseBody,
1795
+ ): string {
1796
+ return JSON.stringify(
1797
+ GetDeploymentEventsDeploymentsResponseBody$outboundSchema.parse(
1798
+ getDeploymentEventsDeploymentsResponseBody,
1799
+ ),
1800
+ );
1801
+ }
1802
+
1803
+ export function getDeploymentEventsDeploymentsResponseBodyFromJSON(
1804
+ jsonString: string,
1805
+ ): SafeParseResult<
1806
+ GetDeploymentEventsDeploymentsResponseBody,
1807
+ SDKValidationError
1808
+ > {
1809
+ return safeParse(
1810
+ jsonString,
1811
+ (x) =>
1812
+ GetDeploymentEventsDeploymentsResponseBody$inboundSchema.parse(
1813
+ JSON.parse(x),
1814
+ ),
1815
+ `Failed to parse 'GetDeploymentEventsDeploymentsResponseBody' from JSON`,
1816
+ );
1817
+ }
1818
+
1819
+ /** @internal */
1820
+ export const GetDeploymentEventsResponse$inboundSchema: z.ZodType<
1821
+ GetDeploymentEventsResponse,
1822
+ z.ZodTypeDef,
1823
+ unknown
1824
+ > = z.union([
1825
+ z.array(z.nullable(z.union([
1826
+ z.lazy(() => GetDeploymentEventsResponseBody1$inboundSchema),
1827
+ z.lazy(() =>
1828
+ GetDeploymentEventsResponseBody2$inboundSchema
1829
+ ),
1830
+ ]))),
1831
+ z.union([
1832
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$inboundSchema),
1833
+ z.lazy(() =>
1834
+ GetDeploymentEventsResponseBodyDeployments2$inboundSchema
1835
+ ),
1836
+ ]),
1837
+ ]);
1838
+
1839
+ /** @internal */
1840
+ export type GetDeploymentEventsResponse$Outbound =
1841
+ | Array<
1842
+ | GetDeploymentEventsResponseBody1$Outbound
1843
+ | GetDeploymentEventsResponseBody2$Outbound
1844
+ | null
1845
+ >
1846
+ | GetDeploymentEventsResponseBodyDeployments1$Outbound
1847
+ | GetDeploymentEventsResponseBodyDeployments2$Outbound;
1848
+
1849
+ /** @internal */
1850
+ export const GetDeploymentEventsResponse$outboundSchema: z.ZodType<
1851
+ GetDeploymentEventsResponse$Outbound,
1852
+ z.ZodTypeDef,
1853
+ GetDeploymentEventsResponse
1854
+ > = z.union([
1855
+ z.array(z.nullable(z.union([
1856
+ z.lazy(() => GetDeploymentEventsResponseBody1$outboundSchema),
1857
+ z.lazy(() =>
1858
+ GetDeploymentEventsResponseBody2$outboundSchema
1859
+ ),
1860
+ ]))),
1861
+ z.union([
1862
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$outboundSchema),
1863
+ z.lazy(() =>
1864
+ GetDeploymentEventsResponseBodyDeployments2$outboundSchema
1865
+ ),
1866
+ ]),
1867
+ ]);
1868
+
1869
+ /**
1870
+ * @internal
1871
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1872
+ */
1873
+ export namespace GetDeploymentEventsResponse$ {
1874
+ /** @deprecated use `GetDeploymentEventsResponse$inboundSchema` instead. */
1875
+ export const inboundSchema = GetDeploymentEventsResponse$inboundSchema;
1876
+ /** @deprecated use `GetDeploymentEventsResponse$outboundSchema` instead. */
1877
+ export const outboundSchema = GetDeploymentEventsResponse$outboundSchema;
1878
+ /** @deprecated use `GetDeploymentEventsResponse$Outbound` instead. */
1879
+ export type Outbound = GetDeploymentEventsResponse$Outbound;
1880
+ }
1881
+
1882
+ export function getDeploymentEventsResponseToJSON(
1883
+ getDeploymentEventsResponse: GetDeploymentEventsResponse,
1884
+ ): string {
1885
+ return JSON.stringify(
1886
+ GetDeploymentEventsResponse$outboundSchema.parse(
1887
+ getDeploymentEventsResponse,
1888
+ ),
1889
+ );
1890
+ }
1891
+
1892
+ export function getDeploymentEventsResponseFromJSON(
1893
+ jsonString: string,
1894
+ ): SafeParseResult<GetDeploymentEventsResponse, SDKValidationError> {
1895
+ return safeParse(
1896
+ jsonString,
1897
+ (x) => GetDeploymentEventsResponse$inboundSchema.parse(JSON.parse(x)),
1898
+ `Failed to parse 'GetDeploymentEventsResponse' from JSON`,
429
1899
  );
430
1900
  }