@vercel/sdk 1.6.0 → 1.6.2

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 (130) hide show
  1. package/README.md +4 -2
  2. package/bin/mcp-server.js +965 -707
  3. package/bin/mcp-server.js.map +29 -26
  4. package/docs/sdks/marketplace/README.md +0 -81
  5. package/docs/sdks/projects/README.md +162 -0
  6. package/docs/sdks/security/README.md +8 -2
  7. package/esm/__tests__/marketplace.test.js +3 -13
  8. package/esm/__tests__/marketplace.test.js.map +1 -1
  9. package/esm/__tests__/projects.test.js +26 -0
  10. package/esm/__tests__/projects.test.js.map +1 -1
  11. package/esm/__tests__/security.test.js +14 -1
  12. package/esm/__tests__/security.test.js.map +1 -1
  13. package/esm/funcs/deploymentsUploadFile.js +2 -1
  14. package/esm/funcs/deploymentsUploadFile.js.map +1 -1
  15. package/esm/funcs/projectsPauseProject.d.ts +18 -0
  16. package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
  17. package/esm/funcs/{marketplaceQueryExperimentationItems.js → projectsPauseProject.js} +21 -13
  18. package/esm/funcs/projectsPauseProject.js.map +1 -0
  19. package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
  20. package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
  21. package/esm/funcs/projectsUnpauseProject.js +92 -0
  22. package/esm/funcs/projectsUnpauseProject.js.map +1 -0
  23. package/esm/lib/config.d.ts +3 -3
  24. package/esm/lib/config.js +3 -3
  25. package/esm/mcp-server/mcp-server.js +1 -1
  26. package/esm/mcp-server/prompts.d.ts.map +1 -1
  27. package/esm/mcp-server/prompts.js +5 -1
  28. package/esm/mcp-server/prompts.js.map +1 -1
  29. package/esm/mcp-server/resources.d.ts.map +1 -1
  30. package/esm/mcp-server/resources.js +10 -2
  31. package/esm/mcp-server/resources.js.map +1 -1
  32. package/esm/mcp-server/server.d.ts.map +1 -1
  33. package/esm/mcp-server/server.js +6 -5
  34. package/esm/mcp-server/server.js.map +1 -1
  35. package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
  36. package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
  37. package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
  38. package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
  39. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
  40. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
  41. package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
  42. package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
  43. package/esm/mcp-server/tools.d.ts.map +1 -1
  44. package/esm/mcp-server/tools.js +4 -3
  45. package/esm/mcp-server/tools.js.map +1 -1
  46. package/esm/models/authuser.d.ts +17 -66
  47. package/esm/models/authuser.d.ts.map +1 -1
  48. package/esm/models/authuser.js +10 -74
  49. package/esm/models/authuser.js.map +1 -1
  50. package/esm/models/createprojectop.d.ts +1 -1
  51. package/esm/models/createprojectop.d.ts.map +1 -1
  52. package/esm/models/createprojectop.js +4 -4
  53. package/esm/models/createprojectop.js.map +1 -1
  54. package/esm/models/getconfigurationop.d.ts +306 -0
  55. package/esm/models/getconfigurationop.d.ts.map +1 -1
  56. package/esm/models/getconfigurationop.js +296 -0
  57. package/esm/models/getconfigurationop.js.map +1 -1
  58. package/esm/models/importresourceop.d.ts +64 -0
  59. package/esm/models/importresourceop.d.ts.map +1 -1
  60. package/esm/models/importresourceop.js +64 -0
  61. package/esm/models/importresourceop.js.map +1 -1
  62. package/esm/models/pauseprojectop.d.ts +42 -0
  63. package/esm/models/pauseprojectop.d.ts.map +1 -0
  64. package/esm/models/pauseprojectop.js +35 -0
  65. package/esm/models/pauseprojectop.js.map +1 -0
  66. package/esm/models/unpauseprojectop.d.ts +42 -0
  67. package/esm/models/unpauseprojectop.d.ts.map +1 -0
  68. package/esm/models/unpauseprojectop.js +35 -0
  69. package/esm/models/unpauseprojectop.js.map +1 -0
  70. package/esm/models/updateprojectop.d.ts +1 -1
  71. package/esm/models/updateprojectop.d.ts.map +1 -1
  72. package/esm/models/updateprojectop.js +4 -4
  73. package/esm/models/updateprojectop.js.map +1 -1
  74. package/esm/models/uploadfileop.d.ts +2 -0
  75. package/esm/models/uploadfileop.d.ts.map +1 -1
  76. package/esm/models/uploadfileop.js +14 -0
  77. package/esm/models/uploadfileop.js.map +1 -1
  78. package/esm/models/userevent.d.ts +11 -63
  79. package/esm/models/userevent.d.ts.map +1 -1
  80. package/esm/models/userevent.js +10 -74
  81. package/esm/models/userevent.js.map +1 -1
  82. package/esm/sdk/marketplace.d.ts +0 -8
  83. package/esm/sdk/marketplace.d.ts.map +1 -1
  84. package/esm/sdk/marketplace.js +0 -10
  85. package/esm/sdk/marketplace.js.map +1 -1
  86. package/esm/sdk/projects.d.ts +16 -0
  87. package/esm/sdk/projects.d.ts.map +1 -1
  88. package/esm/sdk/projects.js +20 -0
  89. package/esm/sdk/projects.js.map +1 -1
  90. package/jsr.json +1 -1
  91. package/package.json +1 -1
  92. package/src/__tests__/marketplace.test.ts +5 -15
  93. package/src/__tests__/projects.test.ts +32 -0
  94. package/src/__tests__/security.test.ts +14 -1
  95. package/src/funcs/deploymentsUploadFile.ts +2 -1
  96. package/src/funcs/projectsPauseProject.ts +190 -0
  97. package/src/funcs/{marketplaceQueryExperimentationItems.ts → projectsUnpauseProject.ts} +30 -23
  98. package/src/lib/config.ts +3 -3
  99. package/src/mcp-server/mcp-server.ts +1 -1
  100. package/src/mcp-server/prompts.ts +8 -1
  101. package/src/mcp-server/resources.ts +16 -2
  102. package/src/mcp-server/server.ts +7 -5
  103. package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
  104. package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
  105. package/src/mcp-server/tools.ts +6 -3
  106. package/src/models/authuser.ts +29 -166
  107. package/src/models/createprojectop.ts +5 -5
  108. package/src/models/getconfigurationop.ts +579 -0
  109. package/src/models/importresourceop.ts +141 -0
  110. package/src/models/pauseprojectop.ts +83 -0
  111. package/src/models/unpauseprojectop.ts +83 -0
  112. package/src/models/updateprojectop.ts +5 -5
  113. package/src/models/uploadfileop.ts +26 -0
  114. package/src/models/userevent.ts +23 -174
  115. package/src/sdk/marketplace.ts +0 -22
  116. package/src/sdk/projects.ts +38 -0
  117. package/vercel-spec.json +426 -229
  118. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts +0 -18
  119. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts.map +0 -1
  120. package/esm/funcs/marketplaceQueryExperimentationItems.js.map +0 -1
  121. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts +0 -7
  122. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts.map +0 -1
  123. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js +0 -28
  124. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js.map +0 -1
  125. package/esm/models/queryexperimentationitemsop.d.ts +0 -148
  126. package/esm/models/queryexperimentationitemsop.d.ts.map +0 -1
  127. package/esm/models/queryexperimentationitemsop.js +0 -125
  128. package/esm/models/queryexperimentationitemsop.js.map +0 -1
  129. package/src/mcp-server/tools/marketplaceQueryExperimentationItems.ts +0 -39
  130. package/src/models/queryexperimentationitemsop.ts +0 -287
@@ -28,11 +28,26 @@ export const ImportResourceType = {
28
28
  } as const;
29
29
  export type ImportResourceType = ClosedEnum<typeof ImportResourceType>;
30
30
 
31
+ export type Details = {
32
+ label: string;
33
+ value?: string | undefined;
34
+ };
35
+
36
+ export type HeightlightedDetails = {
37
+ label: string;
38
+ value?: string | undefined;
39
+ };
40
+
31
41
  export type BillingPlan = {
32
42
  id: string;
33
43
  type: ImportResourceType;
34
44
  name: string;
45
+ description?: string | undefined;
35
46
  paymentMethodRequired?: boolean | undefined;
47
+ cost?: string | undefined;
48
+ details?: Array<Details> | undefined;
49
+ heightlightedDetails?: Array<HeightlightedDetails> | undefined;
50
+ effectiveDate?: string | undefined;
36
51
  additionalProperties?: { [k: string]: any };
37
52
  };
38
53
 
@@ -118,6 +133,113 @@ export namespace ImportResourceType$ {
118
133
  export const outboundSchema = ImportResourceType$outboundSchema;
119
134
  }
120
135
 
136
+ /** @internal */
137
+ export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
138
+ z.object({
139
+ label: z.string(),
140
+ value: z.string().optional(),
141
+ });
142
+
143
+ /** @internal */
144
+ export type Details$Outbound = {
145
+ label: string;
146
+ value?: string | undefined;
147
+ };
148
+
149
+ /** @internal */
150
+ export const Details$outboundSchema: z.ZodType<
151
+ Details$Outbound,
152
+ z.ZodTypeDef,
153
+ Details
154
+ > = z.object({
155
+ label: z.string(),
156
+ value: z.string().optional(),
157
+ });
158
+
159
+ /**
160
+ * @internal
161
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
162
+ */
163
+ export namespace Details$ {
164
+ /** @deprecated use `Details$inboundSchema` instead. */
165
+ export const inboundSchema = Details$inboundSchema;
166
+ /** @deprecated use `Details$outboundSchema` instead. */
167
+ export const outboundSchema = Details$outboundSchema;
168
+ /** @deprecated use `Details$Outbound` instead. */
169
+ export type Outbound = Details$Outbound;
170
+ }
171
+
172
+ export function detailsToJSON(details: Details): string {
173
+ return JSON.stringify(Details$outboundSchema.parse(details));
174
+ }
175
+
176
+ export function detailsFromJSON(
177
+ jsonString: string,
178
+ ): SafeParseResult<Details, SDKValidationError> {
179
+ return safeParse(
180
+ jsonString,
181
+ (x) => Details$inboundSchema.parse(JSON.parse(x)),
182
+ `Failed to parse 'Details' from JSON`,
183
+ );
184
+ }
185
+
186
+ /** @internal */
187
+ export const HeightlightedDetails$inboundSchema: z.ZodType<
188
+ HeightlightedDetails,
189
+ z.ZodTypeDef,
190
+ unknown
191
+ > = z.object({
192
+ label: z.string(),
193
+ value: z.string().optional(),
194
+ });
195
+
196
+ /** @internal */
197
+ export type HeightlightedDetails$Outbound = {
198
+ label: string;
199
+ value?: string | undefined;
200
+ };
201
+
202
+ /** @internal */
203
+ export const HeightlightedDetails$outboundSchema: z.ZodType<
204
+ HeightlightedDetails$Outbound,
205
+ z.ZodTypeDef,
206
+ HeightlightedDetails
207
+ > = z.object({
208
+ label: z.string(),
209
+ value: z.string().optional(),
210
+ });
211
+
212
+ /**
213
+ * @internal
214
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
215
+ */
216
+ export namespace HeightlightedDetails$ {
217
+ /** @deprecated use `HeightlightedDetails$inboundSchema` instead. */
218
+ export const inboundSchema = HeightlightedDetails$inboundSchema;
219
+ /** @deprecated use `HeightlightedDetails$outboundSchema` instead. */
220
+ export const outboundSchema = HeightlightedDetails$outboundSchema;
221
+ /** @deprecated use `HeightlightedDetails$Outbound` instead. */
222
+ export type Outbound = HeightlightedDetails$Outbound;
223
+ }
224
+
225
+ export function heightlightedDetailsToJSON(
226
+ heightlightedDetails: HeightlightedDetails,
227
+ ): string {
228
+ return JSON.stringify(
229
+ HeightlightedDetails$outboundSchema.parse(heightlightedDetails),
230
+ );
231
+ }
232
+
233
+ export function heightlightedDetailsFromJSON(
234
+ jsonString: string,
235
+ ): SafeParseResult<HeightlightedDetails, SDKValidationError> {
236
+ return safeParse(
237
+ jsonString,
238
+ (x) => HeightlightedDetails$inboundSchema.parse(JSON.parse(x)),
239
+ `Failed to parse 'HeightlightedDetails' from JSON`,
240
+ );
241
+ }
242
+
121
243
  /** @internal */
122
244
  export const BillingPlan$inboundSchema: z.ZodType<
123
245
  BillingPlan,
@@ -128,7 +250,14 @@ export const BillingPlan$inboundSchema: z.ZodType<
128
250
  id: z.string(),
129
251
  type: ImportResourceType$inboundSchema,
130
252
  name: z.string(),
253
+ description: z.string().optional(),
131
254
  paymentMethodRequired: z.boolean().optional(),
255
+ cost: z.string().optional(),
256
+ details: z.array(z.lazy(() => Details$inboundSchema)).optional(),
257
+ heightlightedDetails: z.array(
258
+ z.lazy(() => HeightlightedDetails$inboundSchema),
259
+ ).optional(),
260
+ effectiveDate: z.string().optional(),
132
261
  }).catchall(z.any()),
133
262
  "additionalProperties",
134
263
  true,
@@ -139,7 +268,12 @@ export type BillingPlan$Outbound = {
139
268
  id: string;
140
269
  type: string;
141
270
  name: string;
271
+ description?: string | undefined;
142
272
  paymentMethodRequired?: boolean | undefined;
273
+ cost?: string | undefined;
274
+ details?: Array<Details$Outbound> | undefined;
275
+ heightlightedDetails?: Array<HeightlightedDetails$Outbound> | undefined;
276
+ effectiveDate?: string | undefined;
143
277
  [additionalProperties: string]: unknown;
144
278
  };
145
279
 
@@ -152,7 +286,14 @@ export const BillingPlan$outboundSchema: z.ZodType<
152
286
  id: z.string(),
153
287
  type: ImportResourceType$outboundSchema,
154
288
  name: z.string(),
289
+ description: z.string().optional(),
155
290
  paymentMethodRequired: z.boolean().optional(),
291
+ cost: z.string().optional(),
292
+ details: z.array(z.lazy(() => Details$outboundSchema)).optional(),
293
+ heightlightedDetails: z.array(
294
+ z.lazy(() => HeightlightedDetails$outboundSchema),
295
+ ).optional(),
296
+ effectiveDate: z.string().optional(),
156
297
  additionalProperties: z.record(z.any()),
157
298
  }).transform((v) => {
158
299
  return {
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./sdkvalidationerror.js";
9
+
10
+ export type PauseProjectRequest = {
11
+ /**
12
+ * The unique project identifier
13
+ */
14
+ projectId: string;
15
+ /**
16
+ * The Team identifier to perform the request on behalf of.
17
+ */
18
+ teamId?: string | undefined;
19
+ /**
20
+ * The Team slug to perform the request on behalf of.
21
+ */
22
+ slug?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const PauseProjectRequest$inboundSchema: z.ZodType<
27
+ PauseProjectRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ projectId: z.string(),
32
+ teamId: z.string().optional(),
33
+ slug: z.string().optional(),
34
+ });
35
+
36
+ /** @internal */
37
+ export type PauseProjectRequest$Outbound = {
38
+ projectId: string;
39
+ teamId?: string | undefined;
40
+ slug?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const PauseProjectRequest$outboundSchema: z.ZodType<
45
+ PauseProjectRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ PauseProjectRequest
48
+ > = z.object({
49
+ projectId: z.string(),
50
+ teamId: z.string().optional(),
51
+ slug: z.string().optional(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace PauseProjectRequest$ {
59
+ /** @deprecated use `PauseProjectRequest$inboundSchema` instead. */
60
+ export const inboundSchema = PauseProjectRequest$inboundSchema;
61
+ /** @deprecated use `PauseProjectRequest$outboundSchema` instead. */
62
+ export const outboundSchema = PauseProjectRequest$outboundSchema;
63
+ /** @deprecated use `PauseProjectRequest$Outbound` instead. */
64
+ export type Outbound = PauseProjectRequest$Outbound;
65
+ }
66
+
67
+ export function pauseProjectRequestToJSON(
68
+ pauseProjectRequest: PauseProjectRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ PauseProjectRequest$outboundSchema.parse(pauseProjectRequest),
72
+ );
73
+ }
74
+
75
+ export function pauseProjectRequestFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<PauseProjectRequest, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => PauseProjectRequest$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'PauseProjectRequest' from JSON`,
82
+ );
83
+ }
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./sdkvalidationerror.js";
9
+
10
+ export type UnpauseProjectRequest = {
11
+ /**
12
+ * The unique project identifier
13
+ */
14
+ projectId: string;
15
+ /**
16
+ * The Team identifier to perform the request on behalf of.
17
+ */
18
+ teamId?: string | undefined;
19
+ /**
20
+ * The Team slug to perform the request on behalf of.
21
+ */
22
+ slug?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const UnpauseProjectRequest$inboundSchema: z.ZodType<
27
+ UnpauseProjectRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ projectId: z.string(),
32
+ teamId: z.string().optional(),
33
+ slug: z.string().optional(),
34
+ });
35
+
36
+ /** @internal */
37
+ export type UnpauseProjectRequest$Outbound = {
38
+ projectId: string;
39
+ teamId?: string | undefined;
40
+ slug?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const UnpauseProjectRequest$outboundSchema: z.ZodType<
45
+ UnpauseProjectRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ UnpauseProjectRequest
48
+ > = z.object({
49
+ projectId: z.string(),
50
+ teamId: z.string().optional(),
51
+ slug: z.string().optional(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace UnpauseProjectRequest$ {
59
+ /** @deprecated use `UnpauseProjectRequest$inboundSchema` instead. */
60
+ export const inboundSchema = UnpauseProjectRequest$inboundSchema;
61
+ /** @deprecated use `UnpauseProjectRequest$outboundSchema` instead. */
62
+ export const outboundSchema = UnpauseProjectRequest$outboundSchema;
63
+ /** @deprecated use `UnpauseProjectRequest$Outbound` instead. */
64
+ export type Outbound = UnpauseProjectRequest$Outbound;
65
+ }
66
+
67
+ export function unpauseProjectRequestToJSON(
68
+ unpauseProjectRequest: UnpauseProjectRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ UnpauseProjectRequest$outboundSchema.parse(unpauseProjectRequest),
72
+ );
73
+ }
74
+
75
+ export function unpauseProjectRequestFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<UnpauseProjectRequest, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => UnpauseProjectRequest$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'UnpauseProjectRequest' from JSON`,
82
+ );
83
+ }
@@ -104,7 +104,7 @@ export type UpdateProjectOidcTokenConfig = {
104
104
  /**
105
105
  * Whether or not to generate OpenID Connect JSON Web Tokens.
106
106
  */
107
- enabled: boolean;
107
+ enabled?: boolean | undefined;
108
108
  /**
109
109
  * team: `https://oidc.vercel.com/[team_slug]` global: `https://oidc.vercel.com`
110
110
  */
@@ -2016,8 +2016,8 @@ export const UpdateProjectOidcTokenConfig$inboundSchema: z.ZodType<
2016
2016
  z.ZodTypeDef,
2017
2017
  unknown
2018
2018
  > = z.object({
2019
- enabled: z.boolean(),
2020
- issuerMode: UpdateProjectIssuerMode$inboundSchema.default("global"),
2019
+ enabled: z.boolean().default(true),
2020
+ issuerMode: UpdateProjectIssuerMode$inboundSchema.default("team"),
2021
2021
  });
2022
2022
 
2023
2023
  /** @internal */
@@ -2032,8 +2032,8 @@ export const UpdateProjectOidcTokenConfig$outboundSchema: z.ZodType<
2032
2032
  z.ZodTypeDef,
2033
2033
  UpdateProjectOidcTokenConfig
2034
2034
  > = z.object({
2035
- enabled: z.boolean(),
2036
- issuerMode: UpdateProjectIssuerMode$outboundSchema.default("global"),
2035
+ enabled: z.boolean().default(true),
2036
+ issuerMode: UpdateProjectIssuerMode$outboundSchema.default("team"),
2037
2037
  });
2038
2038
 
2039
2039
  /**
@@ -33,6 +33,12 @@ export type UploadFileRequest = {
33
33
  * The Team slug to perform the request on behalf of.
34
34
  */
35
35
  slug?: string | undefined;
36
+ requestBody?:
37
+ | ReadableStream<Uint8Array>
38
+ | Blob
39
+ | ArrayBuffer
40
+ | Uint8Array
41
+ | undefined;
36
42
  };
37
43
 
38
44
  export type UploadFileResponseBody2 = {};
@@ -66,12 +72,19 @@ export const UploadFileRequest$inboundSchema: z.ZodType<
66
72
  "x-now-size": z.number().optional(),
67
73
  teamId: z.string().optional(),
68
74
  slug: z.string().optional(),
75
+ RequestBody: z.union([
76
+ z.instanceof(ReadableStream<Uint8Array>),
77
+ z.instanceof(Blob),
78
+ z.instanceof(ArrayBuffer),
79
+ z.instanceof(Uint8Array),
80
+ ]).optional(),
69
81
  }).transform((v) => {
70
82
  return remap$(v, {
71
83
  "Content-Length": "contentLength",
72
84
  "x-vercel-digest": "xVercelDigest",
73
85
  "x-now-digest": "xNowDigest",
74
86
  "x-now-size": "xNowSize",
87
+ "RequestBody": "requestBody",
75
88
  });
76
89
  });
77
90
 
@@ -83,6 +96,12 @@ export type UploadFileRequest$Outbound = {
83
96
  "x-now-size"?: number | undefined;
84
97
  teamId?: string | undefined;
85
98
  slug?: string | undefined;
99
+ RequestBody?:
100
+ | ReadableStream<Uint8Array>
101
+ | Blob
102
+ | ArrayBuffer
103
+ | Uint8Array
104
+ | undefined;
86
105
  };
87
106
 
88
107
  /** @internal */
@@ -97,12 +116,19 @@ export const UploadFileRequest$outboundSchema: z.ZodType<
97
116
  xNowSize: z.number().optional(),
98
117
  teamId: z.string().optional(),
99
118
  slug: z.string().optional(),
119
+ requestBody: z.union([
120
+ z.instanceof(ReadableStream<Uint8Array>),
121
+ z.instanceof(Blob),
122
+ z.instanceof(ArrayBuffer),
123
+ z.instanceof(Uint8Array),
124
+ ]).optional(),
100
125
  }).transform((v) => {
101
126
  return remap$(v, {
102
127
  contentLength: "Content-Length",
103
128
  xVercelDigest: "x-vercel-digest",
104
129
  xNowDigest: "x-now-digest",
105
130
  xNowSize: "x-now-size",
131
+ requestBody: "RequestBody",
106
132
  });
107
133
  });
108
134