@vercel/sdk 1.6.0 → 1.6.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 (93) hide show
  1. package/README.md +0 -2
  2. package/bin/mcp-server.js +718 -728
  3. package/bin/mcp-server.js.map +23 -26
  4. package/docs/sdks/marketplace/README.md +0 -81
  5. package/docs/sdks/security/README.md +8 -2
  6. package/esm/__tests__/marketplace.test.js +3 -13
  7. package/esm/__tests__/marketplace.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +13 -15
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/funcs/deploymentsUploadFile.js +2 -1
  11. package/esm/funcs/deploymentsUploadFile.js.map +1 -1
  12. package/esm/lib/config.d.ts +3 -3
  13. package/esm/lib/config.js +3 -3
  14. package/esm/mcp-server/mcp-server.js +1 -1
  15. package/esm/mcp-server/prompts.d.ts.map +1 -1
  16. package/esm/mcp-server/prompts.js +5 -1
  17. package/esm/mcp-server/prompts.js.map +1 -1
  18. package/esm/mcp-server/resources.d.ts.map +1 -1
  19. package/esm/mcp-server/resources.js +10 -2
  20. package/esm/mcp-server/resources.js.map +1 -1
  21. package/esm/mcp-server/server.d.ts.map +1 -1
  22. package/esm/mcp-server/server.js +2 -5
  23. package/esm/mcp-server/server.js.map +1 -1
  24. package/esm/mcp-server/tools.d.ts.map +1 -1
  25. package/esm/mcp-server/tools.js +4 -3
  26. package/esm/mcp-server/tools.js.map +1 -1
  27. package/esm/models/authuser.d.ts +17 -66
  28. package/esm/models/authuser.d.ts.map +1 -1
  29. package/esm/models/authuser.js +10 -74
  30. package/esm/models/authuser.js.map +1 -1
  31. package/esm/models/createprojectop.d.ts +1 -1
  32. package/esm/models/createprojectop.d.ts.map +1 -1
  33. package/esm/models/createprojectop.js +4 -4
  34. package/esm/models/createprojectop.js.map +1 -1
  35. package/esm/models/getconfigurationop.d.ts +306 -0
  36. package/esm/models/getconfigurationop.d.ts.map +1 -1
  37. package/esm/models/getconfigurationop.js +296 -0
  38. package/esm/models/getconfigurationop.js.map +1 -1
  39. package/esm/models/importresourceop.d.ts +64 -0
  40. package/esm/models/importresourceop.d.ts.map +1 -1
  41. package/esm/models/importresourceop.js +64 -0
  42. package/esm/models/importresourceop.js.map +1 -1
  43. package/esm/models/updateprojectop.d.ts +1 -1
  44. package/esm/models/updateprojectop.d.ts.map +1 -1
  45. package/esm/models/updateprojectop.js +4 -4
  46. package/esm/models/updateprojectop.js.map +1 -1
  47. package/esm/models/uploadfileop.d.ts +2 -0
  48. package/esm/models/uploadfileop.d.ts.map +1 -1
  49. package/esm/models/uploadfileop.js +14 -0
  50. package/esm/models/uploadfileop.js.map +1 -1
  51. package/esm/models/userevent.d.ts +11 -63
  52. package/esm/models/userevent.d.ts.map +1 -1
  53. package/esm/models/userevent.js +10 -74
  54. package/esm/models/userevent.js.map +1 -1
  55. package/esm/sdk/marketplace.d.ts +0 -8
  56. package/esm/sdk/marketplace.d.ts.map +1 -1
  57. package/esm/sdk/marketplace.js +0 -10
  58. package/esm/sdk/marketplace.js.map +1 -1
  59. package/jsr.json +1 -1
  60. package/package.json +1 -1
  61. package/src/__tests__/marketplace.test.ts +5 -15
  62. package/src/__tests__/projects.test.ts +13 -15
  63. package/src/funcs/deploymentsUploadFile.ts +2 -1
  64. package/src/lib/config.ts +3 -3
  65. package/src/mcp-server/mcp-server.ts +1 -1
  66. package/src/mcp-server/prompts.ts +8 -1
  67. package/src/mcp-server/resources.ts +16 -2
  68. package/src/mcp-server/server.ts +3 -5
  69. package/src/mcp-server/tools.ts +6 -3
  70. package/src/models/authuser.ts +29 -166
  71. package/src/models/createprojectop.ts +5 -5
  72. package/src/models/getconfigurationop.ts +579 -0
  73. package/src/models/importresourceop.ts +141 -0
  74. package/src/models/updateprojectop.ts +5 -5
  75. package/src/models/uploadfileop.ts +26 -0
  76. package/src/models/userevent.ts +23 -174
  77. package/src/sdk/marketplace.ts +0 -22
  78. package/vercel-spec.json +271 -229
  79. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts +0 -18
  80. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts.map +0 -1
  81. package/esm/funcs/marketplaceQueryExperimentationItems.js +0 -84
  82. package/esm/funcs/marketplaceQueryExperimentationItems.js.map +0 -1
  83. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts +0 -7
  84. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts.map +0 -1
  85. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js +0 -28
  86. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js.map +0 -1
  87. package/esm/models/queryexperimentationitemsop.d.ts +0 -148
  88. package/esm/models/queryexperimentationitemsop.d.ts.map +0 -1
  89. package/esm/models/queryexperimentationitemsop.js +0 -125
  90. package/esm/models/queryexperimentationitemsop.js.map +0 -1
  91. package/src/funcs/marketplaceQueryExperimentationItems.ts +0 -183
  92. package/src/mcp-server/tools/marketplaceQueryExperimentationItems.ts +0 -39
  93. 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 {
@@ -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
 
@@ -1826,24 +1826,11 @@ export type PayloadDismissedToasts = {
1826
1826
  dismissals: Array<PayloadDismissals>;
1827
1827
  };
1828
1828
 
1829
- export type UserEventFavoriteProjectsAndSpaces2 = {
1830
- spaceId: string;
1831
- scopeSlug: string;
1832
- scopeId: string;
1833
- teamId?: string | undefined;
1834
- };
1835
-
1836
- export type UserEventFavoriteProjectsAndSpaces1 = {
1829
+ export type PayloadFavoriteProjectsAndSpaces = {
1830
+ teamId: string;
1837
1831
  projectId: string;
1838
- scopeSlug: string;
1839
- scopeId: string;
1840
- teamId?: string | undefined;
1841
1832
  };
1842
1833
 
1843
- export type PayloadFavoriteProjectsAndSpaces =
1844
- | UserEventFavoriteProjectsAndSpaces1
1845
- | UserEventFavoriteProjectsAndSpaces2;
1846
-
1847
1834
  export type PayloadImportFlowGitNamespace = string | number;
1848
1835
 
1849
1836
  export type PayloadImportFlowGitNamespaceId = string | number;
@@ -1899,6 +1886,8 @@ export type PayloadResourceConfig = {
1899
1886
  cronJobsPerProject?: number | undefined;
1900
1887
  microfrontendGroupsPerTeam?: number | undefined;
1901
1888
  microfrontendProjectsPerGroup?: number | undefined;
1889
+ flagsExplorerOverridesThreshold?: number | undefined;
1890
+ flagsExplorerUnlimitedOverrides?: boolean | undefined;
1902
1891
  };
1903
1892
 
1904
1893
  export type ResourceLimits = {
@@ -2848,9 +2837,7 @@ export type NewOwner = {
2848
2837
  dismissedTeams?: Array<string> | undefined;
2849
2838
  dismissedToasts?: Array<PayloadDismissedToasts> | undefined;
2850
2839
  favoriteProjectsAndSpaces?:
2851
- | Array<
2852
- UserEventFavoriteProjectsAndSpaces1 | UserEventFavoriteProjectsAndSpaces2
2853
- >
2840
+ | Array<PayloadFavoriteProjectsAndSpaces>
2854
2841
  | undefined;
2855
2842
  email: string;
2856
2843
  id: string;
@@ -15534,165 +15521,30 @@ export function payloadDismissedToastsFromJSON(
15534
15521
  }
15535
15522
 
15536
15523
  /** @internal */
15537
- export const UserEventFavoriteProjectsAndSpaces2$inboundSchema: z.ZodType<
15538
- UserEventFavoriteProjectsAndSpaces2,
15539
- z.ZodTypeDef,
15540
- unknown
15541
- > = z.object({
15542
- spaceId: z.string(),
15543
- scopeSlug: z.string(),
15544
- scopeId: z.string(),
15545
- teamId: z.string().optional(),
15546
- });
15547
-
15548
- /** @internal */
15549
- export type UserEventFavoriteProjectsAndSpaces2$Outbound = {
15550
- spaceId: string;
15551
- scopeSlug: string;
15552
- scopeId: string;
15553
- teamId?: string | undefined;
15554
- };
15555
-
15556
- /** @internal */
15557
- export const UserEventFavoriteProjectsAndSpaces2$outboundSchema: z.ZodType<
15558
- UserEventFavoriteProjectsAndSpaces2$Outbound,
15559
- z.ZodTypeDef,
15560
- UserEventFavoriteProjectsAndSpaces2
15561
- > = z.object({
15562
- spaceId: z.string(),
15563
- scopeSlug: z.string(),
15564
- scopeId: z.string(),
15565
- teamId: z.string().optional(),
15566
- });
15567
-
15568
- /**
15569
- * @internal
15570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
15571
- */
15572
- export namespace UserEventFavoriteProjectsAndSpaces2$ {
15573
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces2$inboundSchema` instead. */
15574
- export const inboundSchema =
15575
- UserEventFavoriteProjectsAndSpaces2$inboundSchema;
15576
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces2$outboundSchema` instead. */
15577
- export const outboundSchema =
15578
- UserEventFavoriteProjectsAndSpaces2$outboundSchema;
15579
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces2$Outbound` instead. */
15580
- export type Outbound = UserEventFavoriteProjectsAndSpaces2$Outbound;
15581
- }
15582
-
15583
- export function userEventFavoriteProjectsAndSpaces2ToJSON(
15584
- userEventFavoriteProjectsAndSpaces2: UserEventFavoriteProjectsAndSpaces2,
15585
- ): string {
15586
- return JSON.stringify(
15587
- UserEventFavoriteProjectsAndSpaces2$outboundSchema.parse(
15588
- userEventFavoriteProjectsAndSpaces2,
15589
- ),
15590
- );
15591
- }
15592
-
15593
- export function userEventFavoriteProjectsAndSpaces2FromJSON(
15594
- jsonString: string,
15595
- ): SafeParseResult<UserEventFavoriteProjectsAndSpaces2, SDKValidationError> {
15596
- return safeParse(
15597
- jsonString,
15598
- (x) =>
15599
- UserEventFavoriteProjectsAndSpaces2$inboundSchema.parse(JSON.parse(x)),
15600
- `Failed to parse 'UserEventFavoriteProjectsAndSpaces2' from JSON`,
15601
- );
15602
- }
15603
-
15604
- /** @internal */
15605
- export const UserEventFavoriteProjectsAndSpaces1$inboundSchema: z.ZodType<
15606
- UserEventFavoriteProjectsAndSpaces1,
15524
+ export const PayloadFavoriteProjectsAndSpaces$inboundSchema: z.ZodType<
15525
+ PayloadFavoriteProjectsAndSpaces,
15607
15526
  z.ZodTypeDef,
15608
15527
  unknown
15609
15528
  > = z.object({
15529
+ teamId: z.string(),
15610
15530
  projectId: z.string(),
15611
- scopeSlug: z.string(),
15612
- scopeId: z.string(),
15613
- teamId: z.string().optional(),
15614
15531
  });
15615
15532
 
15616
15533
  /** @internal */
15617
- export type UserEventFavoriteProjectsAndSpaces1$Outbound = {
15534
+ export type PayloadFavoriteProjectsAndSpaces$Outbound = {
15535
+ teamId: string;
15618
15536
  projectId: string;
15619
- scopeSlug: string;
15620
- scopeId: string;
15621
- teamId?: string | undefined;
15622
15537
  };
15623
15538
 
15624
- /** @internal */
15625
- export const UserEventFavoriteProjectsAndSpaces1$outboundSchema: z.ZodType<
15626
- UserEventFavoriteProjectsAndSpaces1$Outbound,
15627
- z.ZodTypeDef,
15628
- UserEventFavoriteProjectsAndSpaces1
15629
- > = z.object({
15630
- projectId: z.string(),
15631
- scopeSlug: z.string(),
15632
- scopeId: z.string(),
15633
- teamId: z.string().optional(),
15634
- });
15635
-
15636
- /**
15637
- * @internal
15638
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
15639
- */
15640
- export namespace UserEventFavoriteProjectsAndSpaces1$ {
15641
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces1$inboundSchema` instead. */
15642
- export const inboundSchema =
15643
- UserEventFavoriteProjectsAndSpaces1$inboundSchema;
15644
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces1$outboundSchema` instead. */
15645
- export const outboundSchema =
15646
- UserEventFavoriteProjectsAndSpaces1$outboundSchema;
15647
- /** @deprecated use `UserEventFavoriteProjectsAndSpaces1$Outbound` instead. */
15648
- export type Outbound = UserEventFavoriteProjectsAndSpaces1$Outbound;
15649
- }
15650
-
15651
- export function userEventFavoriteProjectsAndSpaces1ToJSON(
15652
- userEventFavoriteProjectsAndSpaces1: UserEventFavoriteProjectsAndSpaces1,
15653
- ): string {
15654
- return JSON.stringify(
15655
- UserEventFavoriteProjectsAndSpaces1$outboundSchema.parse(
15656
- userEventFavoriteProjectsAndSpaces1,
15657
- ),
15658
- );
15659
- }
15660
-
15661
- export function userEventFavoriteProjectsAndSpaces1FromJSON(
15662
- jsonString: string,
15663
- ): SafeParseResult<UserEventFavoriteProjectsAndSpaces1, SDKValidationError> {
15664
- return safeParse(
15665
- jsonString,
15666
- (x) =>
15667
- UserEventFavoriteProjectsAndSpaces1$inboundSchema.parse(JSON.parse(x)),
15668
- `Failed to parse 'UserEventFavoriteProjectsAndSpaces1' from JSON`,
15669
- );
15670
- }
15671
-
15672
- /** @internal */
15673
- export const PayloadFavoriteProjectsAndSpaces$inboundSchema: z.ZodType<
15674
- PayloadFavoriteProjectsAndSpaces,
15675
- z.ZodTypeDef,
15676
- unknown
15677
- > = z.union([
15678
- z.lazy(() => UserEventFavoriteProjectsAndSpaces1$inboundSchema),
15679
- z.lazy(() => UserEventFavoriteProjectsAndSpaces2$inboundSchema),
15680
- ]);
15681
-
15682
- /** @internal */
15683
- export type PayloadFavoriteProjectsAndSpaces$Outbound =
15684
- | UserEventFavoriteProjectsAndSpaces1$Outbound
15685
- | UserEventFavoriteProjectsAndSpaces2$Outbound;
15686
-
15687
15539
  /** @internal */
15688
15540
  export const PayloadFavoriteProjectsAndSpaces$outboundSchema: z.ZodType<
15689
15541
  PayloadFavoriteProjectsAndSpaces$Outbound,
15690
15542
  z.ZodTypeDef,
15691
15543
  PayloadFavoriteProjectsAndSpaces
15692
- > = z.union([
15693
- z.lazy(() => UserEventFavoriteProjectsAndSpaces1$outboundSchema),
15694
- z.lazy(() => UserEventFavoriteProjectsAndSpaces2$outboundSchema),
15695
- ]);
15544
+ > = z.object({
15545
+ teamId: z.string(),
15546
+ projectId: z.string(),
15547
+ });
15696
15548
 
15697
15549
  /**
15698
15550
  * @internal
@@ -16145,6 +15997,8 @@ export const PayloadResourceConfig$inboundSchema: z.ZodType<
16145
15997
  cronJobsPerProject: z.number().optional(),
16146
15998
  microfrontendGroupsPerTeam: z.number().optional(),
16147
15999
  microfrontendProjectsPerGroup: z.number().optional(),
16000
+ flagsExplorerOverridesThreshold: z.number().optional(),
16001
+ flagsExplorerUnlimitedOverrides: z.boolean().optional(),
16148
16002
  });
16149
16003
 
16150
16004
  /** @internal */
@@ -16170,6 +16024,8 @@ export type PayloadResourceConfig$Outbound = {
16170
16024
  cronJobsPerProject?: number | undefined;
16171
16025
  microfrontendGroupsPerTeam?: number | undefined;
16172
16026
  microfrontendProjectsPerGroup?: number | undefined;
16027
+ flagsExplorerOverridesThreshold?: number | undefined;
16028
+ flagsExplorerUnlimitedOverrides?: boolean | undefined;
16173
16029
  };
16174
16030
 
16175
16031
  /** @internal */
@@ -16200,6 +16056,8 @@ export const PayloadResourceConfig$outboundSchema: z.ZodType<
16200
16056
  cronJobsPerProject: z.number().optional(),
16201
16057
  microfrontendGroupsPerTeam: z.number().optional(),
16202
16058
  microfrontendProjectsPerGroup: z.number().optional(),
16059
+ flagsExplorerOverridesThreshold: z.number().optional(),
16060
+ flagsExplorerUnlimitedOverrides: z.boolean().optional(),
16203
16061
  });
16204
16062
 
16205
16063
  /**
@@ -21290,10 +21148,7 @@ export const NewOwner$inboundSchema: z.ZodType<
21290
21148
  dismissedToasts: z.array(z.lazy(() => PayloadDismissedToasts$inboundSchema))
21291
21149
  .optional(),
21292
21150
  favoriteProjectsAndSpaces: z.array(
21293
- z.union([
21294
- z.lazy(() => UserEventFavoriteProjectsAndSpaces1$inboundSchema),
21295
- z.lazy(() => UserEventFavoriteProjectsAndSpaces2$inboundSchema),
21296
- ]),
21151
+ z.lazy(() => PayloadFavoriteProjectsAndSpaces$inboundSchema),
21297
21152
  ).optional(),
21298
21153
  email: z.string(),
21299
21154
  id: z.string(),
@@ -21384,10 +21239,7 @@ export type NewOwner$Outbound = {
21384
21239
  dismissedTeams?: Array<string> | undefined;
21385
21240
  dismissedToasts?: Array<PayloadDismissedToasts$Outbound> | undefined;
21386
21241
  favoriteProjectsAndSpaces?:
21387
- | Array<
21388
- | UserEventFavoriteProjectsAndSpaces1$Outbound
21389
- | UserEventFavoriteProjectsAndSpaces2$Outbound
21390
- >
21242
+ | Array<PayloadFavoriteProjectsAndSpaces$Outbound>
21391
21243
  | undefined;
21392
21244
  email: string;
21393
21245
  id: string;
@@ -21478,10 +21330,7 @@ export const NewOwner$outboundSchema: z.ZodType<
21478
21330
  dismissedToasts: z.array(z.lazy(() => PayloadDismissedToasts$outboundSchema))
21479
21331
  .optional(),
21480
21332
  favoriteProjectsAndSpaces: z.array(
21481
- z.union([
21482
- z.lazy(() => UserEventFavoriteProjectsAndSpaces1$outboundSchema),
21483
- z.lazy(() => UserEventFavoriteProjectsAndSpaces2$outboundSchema),
21484
- ]),
21333
+ z.lazy(() => PayloadFavoriteProjectsAndSpaces$outboundSchema),
21485
21334
  ).optional(),
21486
21335
  email: z.string(),
21487
21336
  id: z.string(),
@@ -11,7 +11,6 @@ import { marketplaceGetAccountInfo } from "../funcs/marketplaceGetAccountInfo.js
11
11
  import { marketplaceGetInvoice } from "../funcs/marketplaceGetInvoice.js";
12
12
  import { marketplaceGetMember } from "../funcs/marketplaceGetMember.js";
13
13
  import { marketplaceImportResource } from "../funcs/marketplaceImportResource.js";
14
- import { marketplaceQueryExperimentationItems } from "../funcs/marketplaceQueryExperimentationItems.js";
15
14
  import { marketplaceSubmitBillingData } from "../funcs/marketplaceSubmitBillingData.js";
16
15
  import { marketplaceSubmitInvoice } from "../funcs/marketplaceSubmitInvoice.js";
17
16
  import { marketplaceSubmitPrepaymentBalances } from "../funcs/marketplaceSubmitPrepaymentBalances.js";
@@ -59,10 +58,6 @@ import {
59
58
  PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigRequest,
60
59
  PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigResponseBody,
61
60
  } from "../models/putv1installationsintegrationconfigurationidresourcesresourceidexperimentationedgeconfigop.js";
62
- import {
63
- QueryExperimentationItemsRequest,
64
- QueryExperimentationItemsResponseBody,
65
- } from "../models/queryexperimentationitemsop.js";
66
61
  import { SubmitBillingDataRequest } from "../models/submitbillingdataop.js";
67
62
  import {
68
63
  SubmitInvoiceRequest,
@@ -279,23 +274,6 @@ export class Marketplace extends ClientSDK {
279
274
  ));
280
275
  }
281
276
 
282
- /**
283
- * Query experimentation items
284
- *
285
- * @remarks
286
- * Queries flags, experiments under a Marketplace resource.
287
- */
288
- async queryExperimentationItems(
289
- request: QueryExperimentationItemsRequest,
290
- options?: RequestOptions,
291
- ): Promise<QueryExperimentationItemsResponseBody> {
292
- return unwrapAsync(marketplaceQueryExperimentationItems(
293
- this,
294
- request,
295
- options,
296
- ));
297
- }
298
-
299
277
  /**
300
278
  * Create one or multiple experimentation items
301
279
  *