@vercel/sdk 1.13.8 → 1.13.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +24 -20
  2. package/bin/mcp-server.js +2169 -1565
  3. package/bin/mcp-server.js.map +27 -21
  4. package/docs/sdks/marketplace/README.md +150 -0
  5. package/esm/__tests__/domains.test.js +2 -7
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/logdrains.test.js +2 -6
  11. package/esm/__tests__/logdrains.test.js.map +1 -1
  12. package/esm/__tests__/marketplace.test.js +16 -0
  13. package/esm/__tests__/marketplace.test.js.map +1 -1
  14. package/esm/__tests__/rollingrelease.test.js +6 -2
  15. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +4 -4
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/funcs/marketplaceUpdateInstallation.d.ts +17 -0
  19. package/esm/funcs/marketplaceUpdateInstallation.d.ts.map +1 -0
  20. package/esm/funcs/marketplaceUpdateInstallation.js +82 -0
  21. package/esm/funcs/marketplaceUpdateInstallation.js.map +1 -0
  22. package/esm/funcs/marketplaceUpdateResource.d.ts +17 -0
  23. package/esm/funcs/marketplaceUpdateResource.d.ts.map +1 -0
  24. package/esm/funcs/marketplaceUpdateResource.js +85 -0
  25. package/esm/funcs/marketplaceUpdateResource.js.map +1 -0
  26. package/esm/lib/config.d.ts +2 -2
  27. package/esm/lib/config.js +2 -2
  28. package/esm/mcp-server/mcp-server.js +1 -1
  29. package/esm/mcp-server/server.d.ts.map +1 -1
  30. package/esm/mcp-server/server.js +5 -1
  31. package/esm/mcp-server/server.js.map +1 -1
  32. package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts +7 -0
  33. package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts.map +1 -0
  34. package/esm/mcp-server/tools/marketplaceUpdateInstallation.js +27 -0
  35. package/esm/mcp-server/tools/marketplaceUpdateInstallation.js.map +1 -0
  36. package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts +7 -0
  37. package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts.map +1 -0
  38. package/esm/mcp-server/tools/marketplaceUpdateResource.js +28 -0
  39. package/esm/mcp-server/tools/marketplaceUpdateResource.js.map +1 -0
  40. package/esm/models/buysingledomainop.d.ts +8 -8
  41. package/esm/models/buysingledomainop.d.ts.map +1 -1
  42. package/esm/models/buysingledomainop.js +12 -13
  43. package/esm/models/buysingledomainop.js.map +1 -1
  44. package/esm/models/createintegrationstoredirectop.d.ts +285 -285
  45. package/esm/models/createintegrationstoredirectop.js +351 -351
  46. package/esm/models/createprojectenvop.d.ts +6 -6
  47. package/esm/models/createprojectenvop.js +2 -2
  48. package/esm/models/createprojectenvop.js.map +1 -1
  49. package/esm/models/createprojectop.d.ts +154 -156
  50. package/esm/models/createprojectop.d.ts.map +1 -1
  51. package/esm/models/createprojectop.js +149 -151
  52. package/esm/models/createprojectop.js.map +1 -1
  53. package/esm/models/editprojectenvop.d.ts +3 -3
  54. package/esm/models/editprojectenvop.js +1 -1
  55. package/esm/models/editprojectenvop.js.map +1 -1
  56. package/esm/models/exchangessotokenop.d.ts +2 -0
  57. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  58. package/esm/models/exchangessotokenop.js +4 -0
  59. package/esm/models/exchangessotokenop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +9 -9
  61. package/esm/models/filterprojectenvsop.js +3 -3
  62. package/esm/models/filterprojectenvsop.js.map +1 -1
  63. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  64. package/esm/models/getconfigurationproductsop.js +465 -465
  65. package/esm/models/getprojectenvop.d.ts +9 -9
  66. package/esm/models/getprojectenvop.js +3 -3
  67. package/esm/models/getprojectenvop.js.map +1 -1
  68. package/esm/models/getprojectsop.d.ts +124 -126
  69. package/esm/models/getprojectsop.d.ts.map +1 -1
  70. package/esm/models/getprojectsop.js +131 -133
  71. package/esm/models/getprojectsop.js.map +1 -1
  72. package/esm/models/importresourceop.d.ts +68 -68
  73. package/esm/models/importresourceop.d.ts.map +1 -1
  74. package/esm/models/importresourceop.js +75 -72
  75. package/esm/models/importresourceop.js.map +1 -1
  76. package/esm/models/removeprojectenvop.d.ts +9 -9
  77. package/esm/models/removeprojectenvop.js +3 -3
  78. package/esm/models/removeprojectenvop.js.map +1 -1
  79. package/esm/models/updateinstallationop.d.ts +242 -0
  80. package/esm/models/updateinstallationop.d.ts.map +1 -0
  81. package/esm/models/updateinstallationop.js +246 -0
  82. package/esm/models/updateinstallationop.js.map +1 -0
  83. package/esm/models/updateprojectdatacacheop.d.ts +124 -126
  84. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  85. package/esm/models/updateprojectdatacacheop.js +131 -133
  86. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  87. package/esm/models/updateprojectop.d.ts +154 -156
  88. package/esm/models/updateprojectop.d.ts.map +1 -1
  89. package/esm/models/updateprojectop.js +149 -151
  90. package/esm/models/updateprojectop.js.map +1 -1
  91. package/esm/models/updateresourceop.d.ts +432 -0
  92. package/esm/models/updateresourceop.d.ts.map +1 -0
  93. package/esm/models/updateresourceop.js +393 -0
  94. package/esm/models/updateresourceop.js.map +1 -0
  95. package/esm/models/userevent.d.ts +122 -6
  96. package/esm/models/userevent.d.ts.map +1 -1
  97. package/esm/models/userevent.js +90 -2
  98. package/esm/models/userevent.js.map +1 -1
  99. package/esm/sdk/marketplace.d.ts +16 -0
  100. package/esm/sdk/marketplace.d.ts.map +1 -1
  101. package/esm/sdk/marketplace.js +20 -0
  102. package/esm/sdk/marketplace.js.map +1 -1
  103. package/examples/package-lock.json +1 -1
  104. package/jsr.json +1 -1
  105. package/package.json +1 -1
  106. package/src/__tests__/domains.test.ts +2 -7
  107. package/src/__tests__/edgeconfig.test.ts +6 -6
  108. package/src/__tests__/integrations.test.ts +1 -1
  109. package/src/__tests__/logdrains.test.ts +2 -6
  110. package/src/__tests__/marketplace.test.ts +19 -0
  111. package/src/__tests__/rollingrelease.test.ts +6 -2
  112. package/src/__tests__/security.test.ts +4 -4
  113. package/src/funcs/marketplaceUpdateInstallation.ts +174 -0
  114. package/src/funcs/marketplaceUpdateResource.ts +179 -0
  115. package/src/lib/config.ts +2 -2
  116. package/src/mcp-server/mcp-server.ts +1 -1
  117. package/src/mcp-server/server.ts +5 -1
  118. package/src/mcp-server/tools/marketplaceUpdateInstallation.ts +35 -0
  119. package/src/mcp-server/tools/marketplaceUpdateResource.ts +37 -0
  120. package/src/models/buysingledomainop.ts +16 -14
  121. package/src/models/createintegrationstoredirectop.ts +604 -604
  122. package/src/models/createprojectenvop.ts +2 -2
  123. package/src/models/createprojectop.ts +285 -289
  124. package/src/models/editprojectenvop.ts +1 -1
  125. package/src/models/exchangessotokenop.ts +6 -0
  126. package/src/models/filterprojectenvsop.ts +3 -3
  127. package/src/models/getconfigurationproductsop.ts +802 -802
  128. package/src/models/getprojectenvop.ts +3 -3
  129. package/src/models/getprojectsop.ts +255 -259
  130. package/src/models/importresourceop.ts +142 -115
  131. package/src/models/removeprojectenvop.ts +3 -3
  132. package/src/models/updateinstallationop.ts +488 -0
  133. package/src/models/updateprojectdatacacheop.ts +255 -259
  134. package/src/models/updateprojectop.ts +285 -289
  135. package/src/models/updateresourceop.ts +823 -0
  136. package/src/models/userevent.ts +188 -2
  137. package/src/sdk/marketplace.ts +41 -0
  138. package/vercel-spec.json +1618 -1190
@@ -36,38 +36,38 @@ export const ImportResourceType = {
36
36
  } as const;
37
37
  export type ImportResourceType = ClosedEnum<typeof ImportResourceType>;
38
38
 
39
- export type Details = {
39
+ export type ImportResourceDetails = {
40
40
  label: string;
41
41
  value?: string | undefined;
42
42
  };
43
43
 
44
- export type HighlightedDetails = {
44
+ export type ImportResourceHighlightedDetails = {
45
45
  label: string;
46
46
  value?: string | undefined;
47
47
  };
48
48
 
49
- export type BillingPlan = {
49
+ export type ImportResourceBillingPlan = {
50
50
  id: string;
51
51
  type: ImportResourceType;
52
52
  name: string;
53
53
  description?: string | undefined;
54
54
  paymentMethodRequired?: boolean | undefined;
55
55
  cost?: string | undefined;
56
- details?: Array<Details> | undefined;
57
- highlightedDetails?: Array<HighlightedDetails> | undefined;
56
+ details?: Array<ImportResourceDetails> | undefined;
57
+ highlightedDetails?: Array<ImportResourceHighlightedDetails> | undefined;
58
58
  effectiveDate?: string | undefined;
59
59
  additionalProperties?: { [k: string]: any };
60
60
  };
61
61
 
62
- export const Level = {
62
+ export const ImportResourceLevel = {
63
63
  Info: "info",
64
64
  Warn: "warn",
65
65
  Error: "error",
66
66
  } as const;
67
- export type Level = ClosedEnum<typeof Level>;
67
+ export type ImportResourceLevel = ClosedEnum<typeof ImportResourceLevel>;
68
68
 
69
- export type Notification = {
70
- level: Level;
69
+ export type ImportResourceNotification = {
70
+ level: ImportResourceLevel;
71
71
  title: string;
72
72
  message?: string | undefined;
73
73
  href?: string | undefined;
@@ -107,8 +107,8 @@ export type ImportResourceRequestBody = {
107
107
  name: string;
108
108
  status: ImportResourceStatus;
109
109
  metadata?: { [k: string]: any } | undefined;
110
- billingPlan?: BillingPlan | undefined;
111
- notification?: Notification | undefined;
110
+ billingPlan?: ImportResourceBillingPlan | undefined;
111
+ notification?: ImportResourceNotification | undefined;
112
112
  extras?: { [k: string]: any } | undefined;
113
113
  secrets?: Array<ImportResourceSecrets> | undefined;
114
114
  };
@@ -185,23 +185,26 @@ export namespace ImportResourceType$ {
185
185
  }
186
186
 
187
187
  /** @internal */
188
- export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
189
- z.object({
190
- label: z.string(),
191
- value: z.string().optional(),
192
- });
188
+ export const ImportResourceDetails$inboundSchema: z.ZodType<
189
+ ImportResourceDetails,
190
+ z.ZodTypeDef,
191
+ unknown
192
+ > = z.object({
193
+ label: z.string(),
194
+ value: z.string().optional(),
195
+ });
193
196
 
194
197
  /** @internal */
195
- export type Details$Outbound = {
198
+ export type ImportResourceDetails$Outbound = {
196
199
  label: string;
197
200
  value?: string | undefined;
198
201
  };
199
202
 
200
203
  /** @internal */
201
- export const Details$outboundSchema: z.ZodType<
202
- Details$Outbound,
204
+ export const ImportResourceDetails$outboundSchema: z.ZodType<
205
+ ImportResourceDetails$Outbound,
203
206
  z.ZodTypeDef,
204
- Details
207
+ ImportResourceDetails
205
208
  > = z.object({
206
209
  label: z.string(),
207
210
  value: z.string().optional(),
@@ -211,32 +214,36 @@ export const Details$outboundSchema: z.ZodType<
211
214
  * @internal
212
215
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
213
216
  */
214
- export namespace Details$ {
215
- /** @deprecated use `Details$inboundSchema` instead. */
216
- export const inboundSchema = Details$inboundSchema;
217
- /** @deprecated use `Details$outboundSchema` instead. */
218
- export const outboundSchema = Details$outboundSchema;
219
- /** @deprecated use `Details$Outbound` instead. */
220
- export type Outbound = Details$Outbound;
217
+ export namespace ImportResourceDetails$ {
218
+ /** @deprecated use `ImportResourceDetails$inboundSchema` instead. */
219
+ export const inboundSchema = ImportResourceDetails$inboundSchema;
220
+ /** @deprecated use `ImportResourceDetails$outboundSchema` instead. */
221
+ export const outboundSchema = ImportResourceDetails$outboundSchema;
222
+ /** @deprecated use `ImportResourceDetails$Outbound` instead. */
223
+ export type Outbound = ImportResourceDetails$Outbound;
221
224
  }
222
225
 
223
- export function detailsToJSON(details: Details): string {
224
- return JSON.stringify(Details$outboundSchema.parse(details));
226
+ export function importResourceDetailsToJSON(
227
+ importResourceDetails: ImportResourceDetails,
228
+ ): string {
229
+ return JSON.stringify(
230
+ ImportResourceDetails$outboundSchema.parse(importResourceDetails),
231
+ );
225
232
  }
226
233
 
227
- export function detailsFromJSON(
234
+ export function importResourceDetailsFromJSON(
228
235
  jsonString: string,
229
- ): SafeParseResult<Details, SDKValidationError> {
236
+ ): SafeParseResult<ImportResourceDetails, SDKValidationError> {
230
237
  return safeParse(
231
238
  jsonString,
232
- (x) => Details$inboundSchema.parse(JSON.parse(x)),
233
- `Failed to parse 'Details' from JSON`,
239
+ (x) => ImportResourceDetails$inboundSchema.parse(JSON.parse(x)),
240
+ `Failed to parse 'ImportResourceDetails' from JSON`,
234
241
  );
235
242
  }
236
243
 
237
244
  /** @internal */
238
- export const HighlightedDetails$inboundSchema: z.ZodType<
239
- HighlightedDetails,
245
+ export const ImportResourceHighlightedDetails$inboundSchema: z.ZodType<
246
+ ImportResourceHighlightedDetails,
240
247
  z.ZodTypeDef,
241
248
  unknown
242
249
  > = z.object({
@@ -245,16 +252,16 @@ export const HighlightedDetails$inboundSchema: z.ZodType<
245
252
  });
246
253
 
247
254
  /** @internal */
248
- export type HighlightedDetails$Outbound = {
255
+ export type ImportResourceHighlightedDetails$Outbound = {
249
256
  label: string;
250
257
  value?: string | undefined;
251
258
  };
252
259
 
253
260
  /** @internal */
254
- export const HighlightedDetails$outboundSchema: z.ZodType<
255
- HighlightedDetails$Outbound,
261
+ export const ImportResourceHighlightedDetails$outboundSchema: z.ZodType<
262
+ ImportResourceHighlightedDetails$Outbound,
256
263
  z.ZodTypeDef,
257
- HighlightedDetails
264
+ ImportResourceHighlightedDetails
258
265
  > = z.object({
259
266
  label: z.string(),
260
267
  value: z.string().optional(),
@@ -264,36 +271,38 @@ export const HighlightedDetails$outboundSchema: z.ZodType<
264
271
  * @internal
265
272
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
266
273
  */
267
- export namespace HighlightedDetails$ {
268
- /** @deprecated use `HighlightedDetails$inboundSchema` instead. */
269
- export const inboundSchema = HighlightedDetails$inboundSchema;
270
- /** @deprecated use `HighlightedDetails$outboundSchema` instead. */
271
- export const outboundSchema = HighlightedDetails$outboundSchema;
272
- /** @deprecated use `HighlightedDetails$Outbound` instead. */
273
- export type Outbound = HighlightedDetails$Outbound;
274
+ export namespace ImportResourceHighlightedDetails$ {
275
+ /** @deprecated use `ImportResourceHighlightedDetails$inboundSchema` instead. */
276
+ export const inboundSchema = ImportResourceHighlightedDetails$inboundSchema;
277
+ /** @deprecated use `ImportResourceHighlightedDetails$outboundSchema` instead. */
278
+ export const outboundSchema = ImportResourceHighlightedDetails$outboundSchema;
279
+ /** @deprecated use `ImportResourceHighlightedDetails$Outbound` instead. */
280
+ export type Outbound = ImportResourceHighlightedDetails$Outbound;
274
281
  }
275
282
 
276
- export function highlightedDetailsToJSON(
277
- highlightedDetails: HighlightedDetails,
283
+ export function importResourceHighlightedDetailsToJSON(
284
+ importResourceHighlightedDetails: ImportResourceHighlightedDetails,
278
285
  ): string {
279
286
  return JSON.stringify(
280
- HighlightedDetails$outboundSchema.parse(highlightedDetails),
287
+ ImportResourceHighlightedDetails$outboundSchema.parse(
288
+ importResourceHighlightedDetails,
289
+ ),
281
290
  );
282
291
  }
283
292
 
284
- export function highlightedDetailsFromJSON(
293
+ export function importResourceHighlightedDetailsFromJSON(
285
294
  jsonString: string,
286
- ): SafeParseResult<HighlightedDetails, SDKValidationError> {
295
+ ): SafeParseResult<ImportResourceHighlightedDetails, SDKValidationError> {
287
296
  return safeParse(
288
297
  jsonString,
289
- (x) => HighlightedDetails$inboundSchema.parse(JSON.parse(x)),
290
- `Failed to parse 'HighlightedDetails' from JSON`,
298
+ (x) => ImportResourceHighlightedDetails$inboundSchema.parse(JSON.parse(x)),
299
+ `Failed to parse 'ImportResourceHighlightedDetails' from JSON`,
291
300
  );
292
301
  }
293
302
 
294
303
  /** @internal */
295
- export const BillingPlan$inboundSchema: z.ZodType<
296
- BillingPlan,
304
+ export const ImportResourceBillingPlan$inboundSchema: z.ZodType<
305
+ ImportResourceBillingPlan,
297
306
  z.ZodTypeDef,
298
307
  unknown
299
308
  > = collectExtraKeys$(
@@ -304,9 +313,11 @@ export const BillingPlan$inboundSchema: z.ZodType<
304
313
  description: z.string().optional(),
305
314
  paymentMethodRequired: z.boolean().optional(),
306
315
  cost: z.string().optional(),
307
- details: z.array(z.lazy(() => Details$inboundSchema)).optional(),
308
- highlightedDetails: z.array(z.lazy(() => HighlightedDetails$inboundSchema))
316
+ details: z.array(z.lazy(() => ImportResourceDetails$inboundSchema))
309
317
  .optional(),
318
+ highlightedDetails: z.array(
319
+ z.lazy(() => ImportResourceHighlightedDetails$inboundSchema),
320
+ ).optional(),
310
321
  effectiveDate: z.string().optional(),
311
322
  }).catchall(z.any()),
312
323
  "additionalProperties",
@@ -314,24 +325,26 @@ export const BillingPlan$inboundSchema: z.ZodType<
314
325
  );
315
326
 
316
327
  /** @internal */
317
- export type BillingPlan$Outbound = {
328
+ export type ImportResourceBillingPlan$Outbound = {
318
329
  id: string;
319
330
  type: string;
320
331
  name: string;
321
332
  description?: string | undefined;
322
333
  paymentMethodRequired?: boolean | undefined;
323
334
  cost?: string | undefined;
324
- details?: Array<Details$Outbound> | undefined;
325
- highlightedDetails?: Array<HighlightedDetails$Outbound> | undefined;
335
+ details?: Array<ImportResourceDetails$Outbound> | undefined;
336
+ highlightedDetails?:
337
+ | Array<ImportResourceHighlightedDetails$Outbound>
338
+ | undefined;
326
339
  effectiveDate?: string | undefined;
327
340
  [additionalProperties: string]: unknown;
328
341
  };
329
342
 
330
343
  /** @internal */
331
- export const BillingPlan$outboundSchema: z.ZodType<
332
- BillingPlan$Outbound,
344
+ export const ImportResourceBillingPlan$outboundSchema: z.ZodType<
345
+ ImportResourceBillingPlan$Outbound,
333
346
  z.ZodTypeDef,
334
- BillingPlan
347
+ ImportResourceBillingPlan
335
348
  > = z.object({
336
349
  id: z.string(),
337
350
  type: ImportResourceType$outboundSchema,
@@ -339,9 +352,11 @@ export const BillingPlan$outboundSchema: z.ZodType<
339
352
  description: z.string().optional(),
340
353
  paymentMethodRequired: z.boolean().optional(),
341
354
  cost: z.string().optional(),
342
- details: z.array(z.lazy(() => Details$outboundSchema)).optional(),
343
- highlightedDetails: z.array(z.lazy(() => HighlightedDetails$outboundSchema))
355
+ details: z.array(z.lazy(() => ImportResourceDetails$outboundSchema))
344
356
  .optional(),
357
+ highlightedDetails: z.array(
358
+ z.lazy(() => ImportResourceHighlightedDetails$outboundSchema),
359
+ ).optional(),
345
360
  effectiveDate: z.string().optional(),
346
361
  additionalProperties: z.record(z.any()),
347
362
  }).transform((v) => {
@@ -357,63 +372,68 @@ export const BillingPlan$outboundSchema: z.ZodType<
357
372
  * @internal
358
373
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
359
374
  */
360
- export namespace BillingPlan$ {
361
- /** @deprecated use `BillingPlan$inboundSchema` instead. */
362
- export const inboundSchema = BillingPlan$inboundSchema;
363
- /** @deprecated use `BillingPlan$outboundSchema` instead. */
364
- export const outboundSchema = BillingPlan$outboundSchema;
365
- /** @deprecated use `BillingPlan$Outbound` instead. */
366
- export type Outbound = BillingPlan$Outbound;
375
+ export namespace ImportResourceBillingPlan$ {
376
+ /** @deprecated use `ImportResourceBillingPlan$inboundSchema` instead. */
377
+ export const inboundSchema = ImportResourceBillingPlan$inboundSchema;
378
+ /** @deprecated use `ImportResourceBillingPlan$outboundSchema` instead. */
379
+ export const outboundSchema = ImportResourceBillingPlan$outboundSchema;
380
+ /** @deprecated use `ImportResourceBillingPlan$Outbound` instead. */
381
+ export type Outbound = ImportResourceBillingPlan$Outbound;
367
382
  }
368
383
 
369
- export function billingPlanToJSON(billingPlan: BillingPlan): string {
370
- return JSON.stringify(BillingPlan$outboundSchema.parse(billingPlan));
384
+ export function importResourceBillingPlanToJSON(
385
+ importResourceBillingPlan: ImportResourceBillingPlan,
386
+ ): string {
387
+ return JSON.stringify(
388
+ ImportResourceBillingPlan$outboundSchema.parse(importResourceBillingPlan),
389
+ );
371
390
  }
372
391
 
373
- export function billingPlanFromJSON(
392
+ export function importResourceBillingPlanFromJSON(
374
393
  jsonString: string,
375
- ): SafeParseResult<BillingPlan, SDKValidationError> {
394
+ ): SafeParseResult<ImportResourceBillingPlan, SDKValidationError> {
376
395
  return safeParse(
377
396
  jsonString,
378
- (x) => BillingPlan$inboundSchema.parse(JSON.parse(x)),
379
- `Failed to parse 'BillingPlan' from JSON`,
397
+ (x) => ImportResourceBillingPlan$inboundSchema.parse(JSON.parse(x)),
398
+ `Failed to parse 'ImportResourceBillingPlan' from JSON`,
380
399
  );
381
400
  }
382
401
 
383
402
  /** @internal */
384
- export const Level$inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(
385
- Level,
386
- );
403
+ export const ImportResourceLevel$inboundSchema: z.ZodNativeEnum<
404
+ typeof ImportResourceLevel
405
+ > = z.nativeEnum(ImportResourceLevel);
387
406
 
388
407
  /** @internal */
389
- export const Level$outboundSchema: z.ZodNativeEnum<typeof Level> =
390
- Level$inboundSchema;
408
+ export const ImportResourceLevel$outboundSchema: z.ZodNativeEnum<
409
+ typeof ImportResourceLevel
410
+ > = ImportResourceLevel$inboundSchema;
391
411
 
392
412
  /**
393
413
  * @internal
394
414
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
395
415
  */
396
- export namespace Level$ {
397
- /** @deprecated use `Level$inboundSchema` instead. */
398
- export const inboundSchema = Level$inboundSchema;
399
- /** @deprecated use `Level$outboundSchema` instead. */
400
- export const outboundSchema = Level$outboundSchema;
416
+ export namespace ImportResourceLevel$ {
417
+ /** @deprecated use `ImportResourceLevel$inboundSchema` instead. */
418
+ export const inboundSchema = ImportResourceLevel$inboundSchema;
419
+ /** @deprecated use `ImportResourceLevel$outboundSchema` instead. */
420
+ export const outboundSchema = ImportResourceLevel$outboundSchema;
401
421
  }
402
422
 
403
423
  /** @internal */
404
- export const Notification$inboundSchema: z.ZodType<
405
- Notification,
424
+ export const ImportResourceNotification$inboundSchema: z.ZodType<
425
+ ImportResourceNotification,
406
426
  z.ZodTypeDef,
407
427
  unknown
408
428
  > = z.object({
409
- level: Level$inboundSchema,
429
+ level: ImportResourceLevel$inboundSchema,
410
430
  title: z.string(),
411
431
  message: z.string().optional(),
412
432
  href: z.string().optional(),
413
433
  });
414
434
 
415
435
  /** @internal */
416
- export type Notification$Outbound = {
436
+ export type ImportResourceNotification$Outbound = {
417
437
  level: string;
418
438
  title: string;
419
439
  message?: string | undefined;
@@ -421,12 +441,12 @@ export type Notification$Outbound = {
421
441
  };
422
442
 
423
443
  /** @internal */
424
- export const Notification$outboundSchema: z.ZodType<
425
- Notification$Outbound,
444
+ export const ImportResourceNotification$outboundSchema: z.ZodType<
445
+ ImportResourceNotification$Outbound,
426
446
  z.ZodTypeDef,
427
- Notification
447
+ ImportResourceNotification
428
448
  > = z.object({
429
- level: Level$outboundSchema,
449
+ level: ImportResourceLevel$outboundSchema,
430
450
  title: z.string(),
431
451
  message: z.string().optional(),
432
452
  href: z.string().optional(),
@@ -436,26 +456,30 @@ export const Notification$outboundSchema: z.ZodType<
436
456
  * @internal
437
457
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
438
458
  */
439
- export namespace Notification$ {
440
- /** @deprecated use `Notification$inboundSchema` instead. */
441
- export const inboundSchema = Notification$inboundSchema;
442
- /** @deprecated use `Notification$outboundSchema` instead. */
443
- export const outboundSchema = Notification$outboundSchema;
444
- /** @deprecated use `Notification$Outbound` instead. */
445
- export type Outbound = Notification$Outbound;
459
+ export namespace ImportResourceNotification$ {
460
+ /** @deprecated use `ImportResourceNotification$inboundSchema` instead. */
461
+ export const inboundSchema = ImportResourceNotification$inboundSchema;
462
+ /** @deprecated use `ImportResourceNotification$outboundSchema` instead. */
463
+ export const outboundSchema = ImportResourceNotification$outboundSchema;
464
+ /** @deprecated use `ImportResourceNotification$Outbound` instead. */
465
+ export type Outbound = ImportResourceNotification$Outbound;
446
466
  }
447
467
 
448
- export function notificationToJSON(notification: Notification): string {
449
- return JSON.stringify(Notification$outboundSchema.parse(notification));
468
+ export function importResourceNotificationToJSON(
469
+ importResourceNotification: ImportResourceNotification,
470
+ ): string {
471
+ return JSON.stringify(
472
+ ImportResourceNotification$outboundSchema.parse(importResourceNotification),
473
+ );
450
474
  }
451
475
 
452
- export function notificationFromJSON(
476
+ export function importResourceNotificationFromJSON(
453
477
  jsonString: string,
454
- ): SafeParseResult<Notification, SDKValidationError> {
478
+ ): SafeParseResult<ImportResourceNotification, SDKValidationError> {
455
479
  return safeParse(
456
480
  jsonString,
457
- (x) => Notification$inboundSchema.parse(JSON.parse(x)),
458
- `Failed to parse 'Notification' from JSON`,
481
+ (x) => ImportResourceNotification$inboundSchema.parse(JSON.parse(x)),
482
+ `Failed to parse 'ImportResourceNotification' from JSON`,
459
483
  );
460
484
  }
461
485
 
@@ -595,8 +619,9 @@ export const ImportResourceRequestBody$inboundSchema: z.ZodType<
595
619
  name: z.string(),
596
620
  status: ImportResourceStatus$inboundSchema,
597
621
  metadata: z.record(z.any()).optional(),
598
- billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
599
- notification: z.lazy(() => Notification$inboundSchema).optional(),
622
+ billingPlan: z.lazy(() => ImportResourceBillingPlan$inboundSchema).optional(),
623
+ notification: z.lazy(() => ImportResourceNotification$inboundSchema)
624
+ .optional(),
600
625
  extras: z.record(z.any()).optional(),
601
626
  secrets: z.array(z.lazy(() => ImportResourceSecrets$inboundSchema))
602
627
  .optional(),
@@ -609,8 +634,8 @@ export type ImportResourceRequestBody$Outbound = {
609
634
  name: string;
610
635
  status: string;
611
636
  metadata?: { [k: string]: any } | undefined;
612
- billingPlan?: BillingPlan$Outbound | undefined;
613
- notification?: Notification$Outbound | undefined;
637
+ billingPlan?: ImportResourceBillingPlan$Outbound | undefined;
638
+ notification?: ImportResourceNotification$Outbound | undefined;
614
639
  extras?: { [k: string]: any } | undefined;
615
640
  secrets?: Array<ImportResourceSecrets$Outbound> | undefined;
616
641
  };
@@ -626,8 +651,10 @@ export const ImportResourceRequestBody$outboundSchema: z.ZodType<
626
651
  name: z.string(),
627
652
  status: ImportResourceStatus$outboundSchema,
628
653
  metadata: z.record(z.any()).optional(),
629
- billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
630
- notification: z.lazy(() => Notification$outboundSchema).optional(),
654
+ billingPlan: z.lazy(() => ImportResourceBillingPlan$outboundSchema)
655
+ .optional(),
656
+ notification: z.lazy(() => ImportResourceNotification$outboundSchema)
657
+ .optional(),
631
658
  extras: z.record(z.any()).optional(),
632
659
  secrets: z.array(z.lazy(() => ImportResourceSecrets$outboundSchema))
633
660
  .optional(),
@@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget =
55
55
 
56
56
  export const RemoveProjectEnvResponseBodyProjectsResponseType = {
57
57
  System: "system",
58
- Secret: "secret",
59
58
  Encrypted: "encrypted",
60
59
  Plain: "plain",
61
60
  Sensitive: "sensitive",
61
+ Secret: "secret",
62
62
  } as const;
63
63
  export type RemoveProjectEnvResponseBodyProjectsResponseType = ClosedEnum<
64
64
  typeof RemoveProjectEnvResponseBodyProjectsResponseType
@@ -405,10 +405,10 @@ export type RemoveProjectEnvResponseBodyProjectsTarget =
405
405
 
406
406
  export const RemoveProjectEnvResponseBodyProjectsType = {
407
407
  System: "system",
408
- Secret: "secret",
409
408
  Encrypted: "encrypted",
410
409
  Plain: "plain",
411
410
  Sensitive: "sensitive",
411
+ Secret: "secret",
412
412
  } as const;
413
413
  export type RemoveProjectEnvResponseBodyProjectsType = ClosedEnum<
414
414
  typeof RemoveProjectEnvResponseBodyProjectsType
@@ -754,10 +754,10 @@ export type RemoveProjectEnvResponseBodyTarget =
754
754
 
755
755
  export const RemoveProjectEnvResponseBodyType = {
756
756
  System: "system",
757
- Secret: "secret",
758
757
  Encrypted: "encrypted",
759
758
  Plain: "plain",
760
759
  Sensitive: "sensitive",
760
+ Secret: "secret",
761
761
  } as const;
762
762
  export type RemoveProjectEnvResponseBodyType = ClosedEnum<
763
763
  typeof RemoveProjectEnvResponseBodyType