@vercel/sdk 1.10.8 → 1.11.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 (140) hide show
  1. package/bin/mcp-server.js +3728 -805
  2. package/bin/mcp-server.js.map +28 -28
  3. package/esm/__tests__/accessgroups.test.js +6 -6
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/checks.test.js +1 -0
  6. package/esm/__tests__/checks.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +4 -12
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/rollingrelease.test.js +2 -2
  11. package/esm/__tests__/rollingrelease.test.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/server.js +1 -1
  16. package/esm/models/canceldeploymentop.d.ts +44 -41
  17. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  18. package/esm/models/canceldeploymentop.js +44 -41
  19. package/esm/models/canceldeploymentop.js.map +1 -1
  20. package/esm/models/createdeploymentop.d.ts +104 -98
  21. package/esm/models/createdeploymentop.d.ts.map +1 -1
  22. package/esm/models/createdeploymentop.js +115 -117
  23. package/esm/models/createdeploymentop.js.map +1 -1
  24. package/esm/models/createedgeconfigop.d.ts +2 -0
  25. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  26. package/esm/models/createedgeconfigop.js +2 -0
  27. package/esm/models/createedgeconfigop.js.map +1 -1
  28. package/esm/models/createintegrationstoredirectop.d.ts +252 -240
  29. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  30. package/esm/models/createintegrationstoredirectop.js +298 -294
  31. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  32. package/esm/models/createprojectop.d.ts +1410 -57
  33. package/esm/models/createprojectop.d.ts.map +1 -1
  34. package/esm/models/createprojectop.js +1584 -202
  35. package/esm/models/createprojectop.js.map +1 -1
  36. package/esm/models/createwebhookop.d.ts +72 -66
  37. package/esm/models/createwebhookop.d.ts.map +1 -1
  38. package/esm/models/createwebhookop.js +24 -22
  39. package/esm/models/createwebhookop.js.map +1 -1
  40. package/esm/models/getallchecksop.d.ts +2 -0
  41. package/esm/models/getallchecksop.d.ts.map +1 -1
  42. package/esm/models/getallchecksop.js +2 -0
  43. package/esm/models/getallchecksop.js.map +1 -1
  44. package/esm/models/getconfigurationproductsop.d.ts +421 -331
  45. package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
  46. package/esm/models/getconfigurationproductsop.js +482 -410
  47. package/esm/models/getconfigurationproductsop.js.map +1 -1
  48. package/esm/models/getdeploymentop.d.ts +19 -16
  49. package/esm/models/getdeploymentop.d.ts.map +1 -1
  50. package/esm/models/getdeploymentop.js +25 -24
  51. package/esm/models/getdeploymentop.js.map +1 -1
  52. package/esm/models/getdeploymentsop.d.ts +3 -0
  53. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  54. package/esm/models/getdeploymentsop.js +1 -0
  55. package/esm/models/getdeploymentsop.js.map +1 -1
  56. package/esm/models/getedgeconfigop.d.ts +2 -0
  57. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  58. package/esm/models/getedgeconfigop.js +2 -0
  59. package/esm/models/getedgeconfigop.js.map +1 -1
  60. package/esm/models/getprojectsop.d.ts +1407 -57
  61. package/esm/models/getprojectsop.d.ts.map +1 -1
  62. package/esm/models/getprojectsop.js +1578 -202
  63. package/esm/models/getprojectsop.js.map +1 -1
  64. package/esm/models/getteammembersop.d.ts +36 -30
  65. package/esm/models/getteammembersop.d.ts.map +1 -1
  66. package/esm/models/getteammembersop.js +12 -10
  67. package/esm/models/getteammembersop.js.map +1 -1
  68. package/esm/models/getwebhookop.d.ts +36 -33
  69. package/esm/models/getwebhookop.d.ts.map +1 -1
  70. package/esm/models/getwebhookop.js +12 -11
  71. package/esm/models/getwebhookop.js.map +1 -1
  72. package/esm/models/getwebhooksop.d.ts +75 -66
  73. package/esm/models/getwebhooksop.d.ts.map +1 -1
  74. package/esm/models/getwebhooksop.js +25 -22
  75. package/esm/models/getwebhooksop.js.map +1 -1
  76. package/esm/models/importresourceop.d.ts +36 -0
  77. package/esm/models/importresourceop.d.ts.map +1 -1
  78. package/esm/models/importresourceop.js +25 -0
  79. package/esm/models/importresourceop.js.map +1 -1
  80. package/esm/models/listaccessgroupsop.d.ts +2 -5
  81. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  82. package/esm/models/listaccessgroupsop.js +2 -2
  83. package/esm/models/listaccessgroupsop.js.map +1 -1
  84. package/esm/models/readaccessgroupop.d.ts +48 -5
  85. package/esm/models/readaccessgroupop.d.ts.map +1 -1
  86. package/esm/models/readaccessgroupop.js +30 -2
  87. package/esm/models/readaccessgroupop.js.map +1 -1
  88. package/esm/models/team.d.ts +165 -24
  89. package/esm/models/team.d.ts.map +1 -1
  90. package/esm/models/team.js +115 -33
  91. package/esm/models/team.js.map +1 -1
  92. package/esm/models/updateedgeconfigop.d.ts +2 -0
  93. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  94. package/esm/models/updateedgeconfigop.js +2 -0
  95. package/esm/models/updateedgeconfigop.js.map +1 -1
  96. package/esm/models/updateprojectdatacacheop.d.ts +1407 -57
  97. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  98. package/esm/models/updateprojectdatacacheop.js +1587 -200
  99. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  100. package/esm/models/updateprojectop.d.ts +1410 -57
  101. package/esm/models/updateprojectop.d.ts.map +1 -1
  102. package/esm/models/updateprojectop.js +1583 -202
  103. package/esm/models/updateprojectop.js.map +1 -1
  104. package/esm/models/userevent.d.ts +2 -2
  105. package/examples/package-lock.json +1 -1
  106. package/examples/projectsUpdateProject.example.ts +1 -1
  107. package/jsr.json +1 -1
  108. package/package.json +1 -1
  109. package/src/__tests__/accessgroups.test.ts +6 -6
  110. package/src/__tests__/checks.test.ts +1 -0
  111. package/src/__tests__/domains.test.ts +4 -12
  112. package/src/__tests__/integrations.test.ts +1 -1
  113. package/src/__tests__/rollingrelease.test.ts +2 -2
  114. package/src/lib/config.ts +3 -3
  115. package/src/mcp-server/mcp-server.ts +1 -1
  116. package/src/mcp-server/server.ts +1 -1
  117. package/src/models/canceldeploymentop.ts +85 -64
  118. package/src/models/createdeploymentop.ts +241 -192
  119. package/src/models/createedgeconfigop.ts +4 -0
  120. package/src/models/createintegrationstoredirectop.ts +509 -505
  121. package/src/models/createprojectop.ts +3282 -299
  122. package/src/models/createwebhookop.ts +24 -22
  123. package/src/models/getallchecksop.ts +4 -0
  124. package/src/models/getconfigurationproductsop.ts +847 -706
  125. package/src/models/getdeploymentop.ts +35 -34
  126. package/src/models/getdeploymentsop.ts +1 -0
  127. package/src/models/getedgeconfigop.ts +4 -0
  128. package/src/models/getprojectsop.ts +3260 -300
  129. package/src/models/getteammembersop.ts +12 -10
  130. package/src/models/getwebhookop.ts +12 -11
  131. package/src/models/getwebhooksop.ts +25 -22
  132. package/src/models/importresourceop.ts +34 -0
  133. package/src/models/listaccessgroupsop.ts +4 -7
  134. package/src/models/readaccessgroupop.ts +42 -7
  135. package/src/models/team.ts +200 -46
  136. package/src/models/updateedgeconfigop.ts +4 -0
  137. package/src/models/updateprojectdatacacheop.ts +3189 -307
  138. package/src/models/updateprojectop.ts +3296 -298
  139. package/src/models/userevent.ts +2 -2
  140. package/vercel-spec.json +5360 -2352
@@ -271,6 +271,7 @@ export const Framework = {
271
271
  Vitepress: "vitepress",
272
272
  Vuepress: "vuepress",
273
273
  Parcel: "parcel",
274
+ Fastapi: "fastapi",
274
275
  Fasthtml: "fasthtml",
275
276
  SanityV3: "sanity-v3",
276
277
  Sanity: "sanity",
@@ -484,6 +485,7 @@ export const CreateDeploymentFramework = {
484
485
  Vitepress: "vitepress",
485
486
  Vuepress: "vuepress",
486
487
  Parcel: "parcel",
488
+ Fastapi: "fastapi",
487
489
  Fasthtml: "fasthtml",
488
490
  SanityV3: "sanity-v3",
489
491
  Sanity: "sanity",
@@ -1322,13 +1324,13 @@ export type Routes2 = {
1322
1324
  status?: number | undefined;
1323
1325
  };
1324
1326
 
1325
- export const CreateDeploymentHasType = {
1327
+ export const CreateDeploymentHasDeploymentsType = {
1326
1328
  Header: "header",
1327
1329
  Cookie: "cookie",
1328
1330
  Query: "query",
1329
1331
  } as const;
1330
- export type CreateDeploymentHasType = ClosedEnum<
1331
- typeof CreateDeploymentHasType
1332
+ export type CreateDeploymentHasDeploymentsType = ClosedEnum<
1333
+ typeof CreateDeploymentHasDeploymentsType
1332
1334
  >;
1333
1335
 
1334
1336
  export type ValueEq = string | number;
@@ -1347,18 +1349,22 @@ export type CreateDeploymentValue2 = {
1347
1349
  lte?: number | undefined;
1348
1350
  };
1349
1351
 
1350
- export type HasValue = CreateDeploymentValue2 | string;
1352
+ export type CreateDeploymentHasDeploymentsValue =
1353
+ | CreateDeploymentValue2
1354
+ | string;
1351
1355
 
1352
- export type Has2 = {
1353
- type: CreateDeploymentHasType;
1356
+ export type CreateDeploymentHas2 = {
1357
+ type: CreateDeploymentHasDeploymentsType;
1354
1358
  key: string;
1355
1359
  value?: CreateDeploymentValue2 | string | undefined;
1356
1360
  };
1357
1361
 
1358
- export const HasType = {
1362
+ export const CreateDeploymentHasType = {
1359
1363
  Host: "host",
1360
1364
  } as const;
1361
- export type HasType = ClosedEnum<typeof HasType>;
1365
+ export type CreateDeploymentHasType = ClosedEnum<
1366
+ typeof CreateDeploymentHasType
1367
+ >;
1362
1368
 
1363
1369
  export type Eq = string | number;
1364
1370
 
@@ -1380,12 +1386,12 @@ export type CreateDeploymentHasValue =
1380
1386
  | CreateDeploymentValueDeploymentsResponse2002
1381
1387
  | string;
1382
1388
 
1383
- export type Has1 = {
1384
- type: HasType;
1389
+ export type CreateDeploymentHas1 = {
1390
+ type: CreateDeploymentHasType;
1385
1391
  value: CreateDeploymentValueDeploymentsResponse2002 | string;
1386
1392
  };
1387
1393
 
1388
- export type Has = Has1 | Has2;
1394
+ export type RoutesHas = CreateDeploymentHas1 | CreateDeploymentHas2;
1389
1395
 
1390
1396
  export const CreateDeploymentMissingType = {
1391
1397
  Header: "header",
@@ -1458,7 +1464,7 @@ export const RoutesAction = {
1458
1464
  } as const;
1459
1465
  export type RoutesAction = ClosedEnum<typeof RoutesAction>;
1460
1466
 
1461
- export type CreateDeploymentRoutesMitigate = {
1467
+ export type RoutesMitigate = {
1462
1468
  action: RoutesAction;
1463
1469
  };
1464
1470
 
@@ -1493,7 +1499,7 @@ export type Key2 = {
1493
1499
  lte?: number | undefined;
1494
1500
  };
1495
1501
 
1496
- export type Key = Key2 | string;
1502
+ export type RoutesKey = Key2 | string;
1497
1503
 
1498
1504
  export type RoutesTarget = {
1499
1505
  key: Key2 | string;
@@ -1524,9 +1530,9 @@ export type Routes1 = {
1524
1530
  check?: boolean | undefined;
1525
1531
  important?: boolean | undefined;
1526
1532
  status?: number | undefined;
1527
- has?: Array<Has1 | Has2> | undefined;
1533
+ has?: Array<CreateDeploymentHas1 | CreateDeploymentHas2> | undefined;
1528
1534
  missing?: Array<Missing1 | Missing2> | undefined;
1529
- mitigate?: CreateDeploymentRoutesMitigate | undefined;
1535
+ mitigate?: RoutesMitigate | undefined;
1530
1536
  transforms?: Array<Transforms> | undefined;
1531
1537
  locale?: Locale | undefined;
1532
1538
  /**
@@ -7166,24 +7172,25 @@ export function routes2FromJSON(
7166
7172
  }
7167
7173
 
7168
7174
  /** @internal */
7169
- export const CreateDeploymentHasType$inboundSchema: z.ZodNativeEnum<
7170
- typeof CreateDeploymentHasType
7171
- > = z.nativeEnum(CreateDeploymentHasType);
7175
+ export const CreateDeploymentHasDeploymentsType$inboundSchema: z.ZodNativeEnum<
7176
+ typeof CreateDeploymentHasDeploymentsType
7177
+ > = z.nativeEnum(CreateDeploymentHasDeploymentsType);
7172
7178
 
7173
7179
  /** @internal */
7174
- export const CreateDeploymentHasType$outboundSchema: z.ZodNativeEnum<
7175
- typeof CreateDeploymentHasType
7176
- > = CreateDeploymentHasType$inboundSchema;
7180
+ export const CreateDeploymentHasDeploymentsType$outboundSchema: z.ZodNativeEnum<
7181
+ typeof CreateDeploymentHasDeploymentsType
7182
+ > = CreateDeploymentHasDeploymentsType$inboundSchema;
7177
7183
 
7178
7184
  /**
7179
7185
  * @internal
7180
7186
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7181
7187
  */
7182
- export namespace CreateDeploymentHasType$ {
7183
- /** @deprecated use `CreateDeploymentHasType$inboundSchema` instead. */
7184
- export const inboundSchema = CreateDeploymentHasType$inboundSchema;
7185
- /** @deprecated use `CreateDeploymentHasType$outboundSchema` instead. */
7186
- export const outboundSchema = CreateDeploymentHasType$outboundSchema;
7188
+ export namespace CreateDeploymentHasDeploymentsType$ {
7189
+ /** @deprecated use `CreateDeploymentHasDeploymentsType$inboundSchema` instead. */
7190
+ export const inboundSchema = CreateDeploymentHasDeploymentsType$inboundSchema;
7191
+ /** @deprecated use `CreateDeploymentHasDeploymentsType$outboundSchema` instead. */
7192
+ export const outboundSchema =
7193
+ CreateDeploymentHasDeploymentsType$outboundSchema;
7187
7194
  }
7188
7195
 
7189
7196
  /** @internal */
@@ -7312,122 +7319,145 @@ export function createDeploymentValue2FromJSON(
7312
7319
  }
7313
7320
 
7314
7321
  /** @internal */
7315
- export const HasValue$inboundSchema: z.ZodType<
7316
- HasValue,
7322
+ export const CreateDeploymentHasDeploymentsValue$inboundSchema: z.ZodType<
7323
+ CreateDeploymentHasDeploymentsValue,
7317
7324
  z.ZodTypeDef,
7318
7325
  unknown
7319
7326
  > = z.union([z.lazy(() => CreateDeploymentValue2$inboundSchema), z.string()]);
7320
7327
 
7321
7328
  /** @internal */
7322
- export type HasValue$Outbound = CreateDeploymentValue2$Outbound | string;
7329
+ export type CreateDeploymentHasDeploymentsValue$Outbound =
7330
+ | CreateDeploymentValue2$Outbound
7331
+ | string;
7323
7332
 
7324
7333
  /** @internal */
7325
- export const HasValue$outboundSchema: z.ZodType<
7326
- HasValue$Outbound,
7334
+ export const CreateDeploymentHasDeploymentsValue$outboundSchema: z.ZodType<
7335
+ CreateDeploymentHasDeploymentsValue$Outbound,
7327
7336
  z.ZodTypeDef,
7328
- HasValue
7337
+ CreateDeploymentHasDeploymentsValue
7329
7338
  > = z.union([z.lazy(() => CreateDeploymentValue2$outboundSchema), z.string()]);
7330
7339
 
7331
7340
  /**
7332
7341
  * @internal
7333
7342
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7334
7343
  */
7335
- export namespace HasValue$ {
7336
- /** @deprecated use `HasValue$inboundSchema` instead. */
7337
- export const inboundSchema = HasValue$inboundSchema;
7338
- /** @deprecated use `HasValue$outboundSchema` instead. */
7339
- export const outboundSchema = HasValue$outboundSchema;
7340
- /** @deprecated use `HasValue$Outbound` instead. */
7341
- export type Outbound = HasValue$Outbound;
7344
+ export namespace CreateDeploymentHasDeploymentsValue$ {
7345
+ /** @deprecated use `CreateDeploymentHasDeploymentsValue$inboundSchema` instead. */
7346
+ export const inboundSchema =
7347
+ CreateDeploymentHasDeploymentsValue$inboundSchema;
7348
+ /** @deprecated use `CreateDeploymentHasDeploymentsValue$outboundSchema` instead. */
7349
+ export const outboundSchema =
7350
+ CreateDeploymentHasDeploymentsValue$outboundSchema;
7351
+ /** @deprecated use `CreateDeploymentHasDeploymentsValue$Outbound` instead. */
7352
+ export type Outbound = CreateDeploymentHasDeploymentsValue$Outbound;
7342
7353
  }
7343
7354
 
7344
- export function hasValueToJSON(hasValue: HasValue): string {
7345
- return JSON.stringify(HasValue$outboundSchema.parse(hasValue));
7355
+ export function createDeploymentHasDeploymentsValueToJSON(
7356
+ createDeploymentHasDeploymentsValue: CreateDeploymentHasDeploymentsValue,
7357
+ ): string {
7358
+ return JSON.stringify(
7359
+ CreateDeploymentHasDeploymentsValue$outboundSchema.parse(
7360
+ createDeploymentHasDeploymentsValue,
7361
+ ),
7362
+ );
7346
7363
  }
7347
7364
 
7348
- export function hasValueFromJSON(
7365
+ export function createDeploymentHasDeploymentsValueFromJSON(
7349
7366
  jsonString: string,
7350
- ): SafeParseResult<HasValue, SDKValidationError> {
7367
+ ): SafeParseResult<CreateDeploymentHasDeploymentsValue, SDKValidationError> {
7351
7368
  return safeParse(
7352
7369
  jsonString,
7353
- (x) => HasValue$inboundSchema.parse(JSON.parse(x)),
7354
- `Failed to parse 'HasValue' from JSON`,
7370
+ (x) =>
7371
+ CreateDeploymentHasDeploymentsValue$inboundSchema.parse(JSON.parse(x)),
7372
+ `Failed to parse 'CreateDeploymentHasDeploymentsValue' from JSON`,
7355
7373
  );
7356
7374
  }
7357
7375
 
7358
7376
  /** @internal */
7359
- export const Has2$inboundSchema: z.ZodType<Has2, z.ZodTypeDef, unknown> = z
7360
- .object({
7361
- type: CreateDeploymentHasType$inboundSchema,
7362
- key: z.string(),
7363
- value: z.union([
7364
- z.lazy(() => CreateDeploymentValue2$inboundSchema),
7365
- z.string(),
7366
- ]).optional(),
7367
- });
7377
+ export const CreateDeploymentHas2$inboundSchema: z.ZodType<
7378
+ CreateDeploymentHas2,
7379
+ z.ZodTypeDef,
7380
+ unknown
7381
+ > = z.object({
7382
+ type: CreateDeploymentHasDeploymentsType$inboundSchema,
7383
+ key: z.string(),
7384
+ value: z.union([
7385
+ z.lazy(() => CreateDeploymentValue2$inboundSchema),
7386
+ z.string(),
7387
+ ]).optional(),
7388
+ });
7368
7389
 
7369
7390
  /** @internal */
7370
- export type Has2$Outbound = {
7391
+ export type CreateDeploymentHas2$Outbound = {
7371
7392
  type: string;
7372
7393
  key: string;
7373
7394
  value?: CreateDeploymentValue2$Outbound | string | undefined;
7374
7395
  };
7375
7396
 
7376
7397
  /** @internal */
7377
- export const Has2$outboundSchema: z.ZodType<Has2$Outbound, z.ZodTypeDef, Has2> =
7378
- z.object({
7379
- type: CreateDeploymentHasType$outboundSchema,
7380
- key: z.string(),
7381
- value: z.union([
7382
- z.lazy(() => CreateDeploymentValue2$outboundSchema),
7383
- z.string(),
7384
- ]).optional(),
7385
- });
7398
+ export const CreateDeploymentHas2$outboundSchema: z.ZodType<
7399
+ CreateDeploymentHas2$Outbound,
7400
+ z.ZodTypeDef,
7401
+ CreateDeploymentHas2
7402
+ > = z.object({
7403
+ type: CreateDeploymentHasDeploymentsType$outboundSchema,
7404
+ key: z.string(),
7405
+ value: z.union([
7406
+ z.lazy(() => CreateDeploymentValue2$outboundSchema),
7407
+ z.string(),
7408
+ ]).optional(),
7409
+ });
7386
7410
 
7387
7411
  /**
7388
7412
  * @internal
7389
7413
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7390
7414
  */
7391
- export namespace Has2$ {
7392
- /** @deprecated use `Has2$inboundSchema` instead. */
7393
- export const inboundSchema = Has2$inboundSchema;
7394
- /** @deprecated use `Has2$outboundSchema` instead. */
7395
- export const outboundSchema = Has2$outboundSchema;
7396
- /** @deprecated use `Has2$Outbound` instead. */
7397
- export type Outbound = Has2$Outbound;
7415
+ export namespace CreateDeploymentHas2$ {
7416
+ /** @deprecated use `CreateDeploymentHas2$inboundSchema` instead. */
7417
+ export const inboundSchema = CreateDeploymentHas2$inboundSchema;
7418
+ /** @deprecated use `CreateDeploymentHas2$outboundSchema` instead. */
7419
+ export const outboundSchema = CreateDeploymentHas2$outboundSchema;
7420
+ /** @deprecated use `CreateDeploymentHas2$Outbound` instead. */
7421
+ export type Outbound = CreateDeploymentHas2$Outbound;
7398
7422
  }
7399
7423
 
7400
- export function has2ToJSON(has2: Has2): string {
7401
- return JSON.stringify(Has2$outboundSchema.parse(has2));
7424
+ export function createDeploymentHas2ToJSON(
7425
+ createDeploymentHas2: CreateDeploymentHas2,
7426
+ ): string {
7427
+ return JSON.stringify(
7428
+ CreateDeploymentHas2$outboundSchema.parse(createDeploymentHas2),
7429
+ );
7402
7430
  }
7403
7431
 
7404
- export function has2FromJSON(
7432
+ export function createDeploymentHas2FromJSON(
7405
7433
  jsonString: string,
7406
- ): SafeParseResult<Has2, SDKValidationError> {
7434
+ ): SafeParseResult<CreateDeploymentHas2, SDKValidationError> {
7407
7435
  return safeParse(
7408
7436
  jsonString,
7409
- (x) => Has2$inboundSchema.parse(JSON.parse(x)),
7410
- `Failed to parse 'Has2' from JSON`,
7437
+ (x) => CreateDeploymentHas2$inboundSchema.parse(JSON.parse(x)),
7438
+ `Failed to parse 'CreateDeploymentHas2' from JSON`,
7411
7439
  );
7412
7440
  }
7413
7441
 
7414
7442
  /** @internal */
7415
- export const HasType$inboundSchema: z.ZodNativeEnum<typeof HasType> = z
7416
- .nativeEnum(HasType);
7443
+ export const CreateDeploymentHasType$inboundSchema: z.ZodNativeEnum<
7444
+ typeof CreateDeploymentHasType
7445
+ > = z.nativeEnum(CreateDeploymentHasType);
7417
7446
 
7418
7447
  /** @internal */
7419
- export const HasType$outboundSchema: z.ZodNativeEnum<typeof HasType> =
7420
- HasType$inboundSchema;
7448
+ export const CreateDeploymentHasType$outboundSchema: z.ZodNativeEnum<
7449
+ typeof CreateDeploymentHasType
7450
+ > = CreateDeploymentHasType$inboundSchema;
7421
7451
 
7422
7452
  /**
7423
7453
  * @internal
7424
7454
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7425
7455
  */
7426
- export namespace HasType$ {
7427
- /** @deprecated use `HasType$inboundSchema` instead. */
7428
- export const inboundSchema = HasType$inboundSchema;
7429
- /** @deprecated use `HasType$outboundSchema` instead. */
7430
- export const outboundSchema = HasType$outboundSchema;
7456
+ export namespace CreateDeploymentHasType$ {
7457
+ /** @deprecated use `CreateDeploymentHasType$inboundSchema` instead. */
7458
+ export const inboundSchema = CreateDeploymentHasType$inboundSchema;
7459
+ /** @deprecated use `CreateDeploymentHasType$outboundSchema` instead. */
7460
+ export const outboundSchema = CreateDeploymentHasType$outboundSchema;
7431
7461
  }
7432
7462
 
7433
7463
  /** @internal */
@@ -7624,97 +7654,117 @@ export function createDeploymentHasValueFromJSON(
7624
7654
  }
7625
7655
 
7626
7656
  /** @internal */
7627
- export const Has1$inboundSchema: z.ZodType<Has1, z.ZodTypeDef, unknown> = z
7628
- .object({
7629
- type: HasType$inboundSchema,
7630
- value: z.union([
7631
- z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$inboundSchema),
7632
- z.string(),
7633
- ]),
7634
- });
7657
+ export const CreateDeploymentHas1$inboundSchema: z.ZodType<
7658
+ CreateDeploymentHas1,
7659
+ z.ZodTypeDef,
7660
+ unknown
7661
+ > = z.object({
7662
+ type: CreateDeploymentHasType$inboundSchema,
7663
+ value: z.union([
7664
+ z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$inboundSchema),
7665
+ z.string(),
7666
+ ]),
7667
+ });
7635
7668
 
7636
7669
  /** @internal */
7637
- export type Has1$Outbound = {
7670
+ export type CreateDeploymentHas1$Outbound = {
7638
7671
  type: string;
7639
7672
  value: CreateDeploymentValueDeploymentsResponse2002$Outbound | string;
7640
7673
  };
7641
7674
 
7642
7675
  /** @internal */
7643
- export const Has1$outboundSchema: z.ZodType<Has1$Outbound, z.ZodTypeDef, Has1> =
7644
- z.object({
7645
- type: HasType$outboundSchema,
7646
- value: z.union([
7647
- z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$outboundSchema),
7648
- z.string(),
7649
- ]),
7650
- });
7676
+ export const CreateDeploymentHas1$outboundSchema: z.ZodType<
7677
+ CreateDeploymentHas1$Outbound,
7678
+ z.ZodTypeDef,
7679
+ CreateDeploymentHas1
7680
+ > = z.object({
7681
+ type: CreateDeploymentHasType$outboundSchema,
7682
+ value: z.union([
7683
+ z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$outboundSchema),
7684
+ z.string(),
7685
+ ]),
7686
+ });
7651
7687
 
7652
7688
  /**
7653
7689
  * @internal
7654
7690
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7655
7691
  */
7656
- export namespace Has1$ {
7657
- /** @deprecated use `Has1$inboundSchema` instead. */
7658
- export const inboundSchema = Has1$inboundSchema;
7659
- /** @deprecated use `Has1$outboundSchema` instead. */
7660
- export const outboundSchema = Has1$outboundSchema;
7661
- /** @deprecated use `Has1$Outbound` instead. */
7662
- export type Outbound = Has1$Outbound;
7692
+ export namespace CreateDeploymentHas1$ {
7693
+ /** @deprecated use `CreateDeploymentHas1$inboundSchema` instead. */
7694
+ export const inboundSchema = CreateDeploymentHas1$inboundSchema;
7695
+ /** @deprecated use `CreateDeploymentHas1$outboundSchema` instead. */
7696
+ export const outboundSchema = CreateDeploymentHas1$outboundSchema;
7697
+ /** @deprecated use `CreateDeploymentHas1$Outbound` instead. */
7698
+ export type Outbound = CreateDeploymentHas1$Outbound;
7663
7699
  }
7664
7700
 
7665
- export function has1ToJSON(has1: Has1): string {
7666
- return JSON.stringify(Has1$outboundSchema.parse(has1));
7701
+ export function createDeploymentHas1ToJSON(
7702
+ createDeploymentHas1: CreateDeploymentHas1,
7703
+ ): string {
7704
+ return JSON.stringify(
7705
+ CreateDeploymentHas1$outboundSchema.parse(createDeploymentHas1),
7706
+ );
7667
7707
  }
7668
7708
 
7669
- export function has1FromJSON(
7709
+ export function createDeploymentHas1FromJSON(
7670
7710
  jsonString: string,
7671
- ): SafeParseResult<Has1, SDKValidationError> {
7711
+ ): SafeParseResult<CreateDeploymentHas1, SDKValidationError> {
7672
7712
  return safeParse(
7673
7713
  jsonString,
7674
- (x) => Has1$inboundSchema.parse(JSON.parse(x)),
7675
- `Failed to parse 'Has1' from JSON`,
7714
+ (x) => CreateDeploymentHas1$inboundSchema.parse(JSON.parse(x)),
7715
+ `Failed to parse 'CreateDeploymentHas1' from JSON`,
7676
7716
  );
7677
7717
  }
7678
7718
 
7679
7719
  /** @internal */
7680
- export const Has$inboundSchema: z.ZodType<Has, z.ZodTypeDef, unknown> = z.union(
7681
- [z.lazy(() => Has1$inboundSchema), z.lazy(() => Has2$inboundSchema)],
7682
- );
7720
+ export const RoutesHas$inboundSchema: z.ZodType<
7721
+ RoutesHas,
7722
+ z.ZodTypeDef,
7723
+ unknown
7724
+ > = z.union([
7725
+ z.lazy(() => CreateDeploymentHas1$inboundSchema),
7726
+ z.lazy(() => CreateDeploymentHas2$inboundSchema),
7727
+ ]);
7683
7728
 
7684
7729
  /** @internal */
7685
- export type Has$Outbound = Has1$Outbound | Has2$Outbound;
7730
+ export type RoutesHas$Outbound =
7731
+ | CreateDeploymentHas1$Outbound
7732
+ | CreateDeploymentHas2$Outbound;
7686
7733
 
7687
7734
  /** @internal */
7688
- export const Has$outboundSchema: z.ZodType<Has$Outbound, z.ZodTypeDef, Has> = z
7689
- .union([
7690
- z.lazy(() => Has1$outboundSchema),
7691
- z.lazy(() => Has2$outboundSchema),
7692
- ]);
7735
+ export const RoutesHas$outboundSchema: z.ZodType<
7736
+ RoutesHas$Outbound,
7737
+ z.ZodTypeDef,
7738
+ RoutesHas
7739
+ > = z.union([
7740
+ z.lazy(() => CreateDeploymentHas1$outboundSchema),
7741
+ z.lazy(() => CreateDeploymentHas2$outboundSchema),
7742
+ ]);
7693
7743
 
7694
7744
  /**
7695
7745
  * @internal
7696
7746
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7697
7747
  */
7698
- export namespace Has$ {
7699
- /** @deprecated use `Has$inboundSchema` instead. */
7700
- export const inboundSchema = Has$inboundSchema;
7701
- /** @deprecated use `Has$outboundSchema` instead. */
7702
- export const outboundSchema = Has$outboundSchema;
7703
- /** @deprecated use `Has$Outbound` instead. */
7704
- export type Outbound = Has$Outbound;
7748
+ export namespace RoutesHas$ {
7749
+ /** @deprecated use `RoutesHas$inboundSchema` instead. */
7750
+ export const inboundSchema = RoutesHas$inboundSchema;
7751
+ /** @deprecated use `RoutesHas$outboundSchema` instead. */
7752
+ export const outboundSchema = RoutesHas$outboundSchema;
7753
+ /** @deprecated use `RoutesHas$Outbound` instead. */
7754
+ export type Outbound = RoutesHas$Outbound;
7705
7755
  }
7706
7756
 
7707
- export function hasToJSON(has: Has): string {
7708
- return JSON.stringify(Has$outboundSchema.parse(has));
7757
+ export function routesHasToJSON(routesHas: RoutesHas): string {
7758
+ return JSON.stringify(RoutesHas$outboundSchema.parse(routesHas));
7709
7759
  }
7710
7760
 
7711
- export function hasFromJSON(
7761
+ export function routesHasFromJSON(
7712
7762
  jsonString: string,
7713
- ): SafeParseResult<Has, SDKValidationError> {
7763
+ ): SafeParseResult<RoutesHas, SDKValidationError> {
7714
7764
  return safeParse(
7715
7765
  jsonString,
7716
- (x) => Has$inboundSchema.parse(JSON.parse(x)),
7717
- `Failed to parse 'Has' from JSON`,
7766
+ (x) => RoutesHas$inboundSchema.parse(JSON.parse(x)),
7767
+ `Failed to parse 'RoutesHas' from JSON`,
7718
7768
  );
7719
7769
  }
7720
7770
 
@@ -8342,8 +8392,8 @@ export namespace RoutesAction$ {
8342
8392
  }
8343
8393
 
8344
8394
  /** @internal */
8345
- export const CreateDeploymentRoutesMitigate$inboundSchema: z.ZodType<
8346
- CreateDeploymentRoutesMitigate,
8395
+ export const RoutesMitigate$inboundSchema: z.ZodType<
8396
+ RoutesMitigate,
8347
8397
  z.ZodTypeDef,
8348
8398
  unknown
8349
8399
  > = z.object({
@@ -8351,15 +8401,15 @@ export const CreateDeploymentRoutesMitigate$inboundSchema: z.ZodType<
8351
8401
  });
8352
8402
 
8353
8403
  /** @internal */
8354
- export type CreateDeploymentRoutesMitigate$Outbound = {
8404
+ export type RoutesMitigate$Outbound = {
8355
8405
  action: string;
8356
8406
  };
8357
8407
 
8358
8408
  /** @internal */
8359
- export const CreateDeploymentRoutesMitigate$outboundSchema: z.ZodType<
8360
- CreateDeploymentRoutesMitigate$Outbound,
8409
+ export const RoutesMitigate$outboundSchema: z.ZodType<
8410
+ RoutesMitigate$Outbound,
8361
8411
  z.ZodTypeDef,
8362
- CreateDeploymentRoutesMitigate
8412
+ RoutesMitigate
8363
8413
  > = z.object({
8364
8414
  action: RoutesAction$outboundSchema,
8365
8415
  });
@@ -8368,32 +8418,26 @@ export const CreateDeploymentRoutesMitigate$outboundSchema: z.ZodType<
8368
8418
  * @internal
8369
8419
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8370
8420
  */
8371
- export namespace CreateDeploymentRoutesMitigate$ {
8372
- /** @deprecated use `CreateDeploymentRoutesMitigate$inboundSchema` instead. */
8373
- export const inboundSchema = CreateDeploymentRoutesMitigate$inboundSchema;
8374
- /** @deprecated use `CreateDeploymentRoutesMitigate$outboundSchema` instead. */
8375
- export const outboundSchema = CreateDeploymentRoutesMitigate$outboundSchema;
8376
- /** @deprecated use `CreateDeploymentRoutesMitigate$Outbound` instead. */
8377
- export type Outbound = CreateDeploymentRoutesMitigate$Outbound;
8421
+ export namespace RoutesMitigate$ {
8422
+ /** @deprecated use `RoutesMitigate$inboundSchema` instead. */
8423
+ export const inboundSchema = RoutesMitigate$inboundSchema;
8424
+ /** @deprecated use `RoutesMitigate$outboundSchema` instead. */
8425
+ export const outboundSchema = RoutesMitigate$outboundSchema;
8426
+ /** @deprecated use `RoutesMitigate$Outbound` instead. */
8427
+ export type Outbound = RoutesMitigate$Outbound;
8378
8428
  }
8379
8429
 
8380
- export function createDeploymentRoutesMitigateToJSON(
8381
- createDeploymentRoutesMitigate: CreateDeploymentRoutesMitigate,
8382
- ): string {
8383
- return JSON.stringify(
8384
- CreateDeploymentRoutesMitigate$outboundSchema.parse(
8385
- createDeploymentRoutesMitigate,
8386
- ),
8387
- );
8430
+ export function routesMitigateToJSON(routesMitigate: RoutesMitigate): string {
8431
+ return JSON.stringify(RoutesMitigate$outboundSchema.parse(routesMitigate));
8388
8432
  }
8389
8433
 
8390
- export function createDeploymentRoutesMitigateFromJSON(
8434
+ export function routesMitigateFromJSON(
8391
8435
  jsonString: string,
8392
- ): SafeParseResult<CreateDeploymentRoutesMitigate, SDKValidationError> {
8436
+ ): SafeParseResult<RoutesMitigate, SDKValidationError> {
8393
8437
  return safeParse(
8394
8438
  jsonString,
8395
- (x) => CreateDeploymentRoutesMitigate$inboundSchema.parse(JSON.parse(x)),
8396
- `Failed to parse 'CreateDeploymentRoutesMitigate' from JSON`,
8439
+ (x) => RoutesMitigate$inboundSchema.parse(JSON.parse(x)),
8440
+ `Failed to parse 'RoutesMitigate' from JSON`,
8397
8441
  );
8398
8442
  }
8399
8443
 
@@ -8550,41 +8594,46 @@ export function key2FromJSON(
8550
8594
  }
8551
8595
 
8552
8596
  /** @internal */
8553
- export const Key$inboundSchema: z.ZodType<Key, z.ZodTypeDef, unknown> = z.union(
8554
- [z.lazy(() => Key2$inboundSchema), z.string()],
8555
- );
8597
+ export const RoutesKey$inboundSchema: z.ZodType<
8598
+ RoutesKey,
8599
+ z.ZodTypeDef,
8600
+ unknown
8601
+ > = z.union([z.lazy(() => Key2$inboundSchema), z.string()]);
8556
8602
 
8557
8603
  /** @internal */
8558
- export type Key$Outbound = Key2$Outbound | string;
8604
+ export type RoutesKey$Outbound = Key2$Outbound | string;
8559
8605
 
8560
8606
  /** @internal */
8561
- export const Key$outboundSchema: z.ZodType<Key$Outbound, z.ZodTypeDef, Key> = z
8562
- .union([z.lazy(() => Key2$outboundSchema), z.string()]);
8607
+ export const RoutesKey$outboundSchema: z.ZodType<
8608
+ RoutesKey$Outbound,
8609
+ z.ZodTypeDef,
8610
+ RoutesKey
8611
+ > = z.union([z.lazy(() => Key2$outboundSchema), z.string()]);
8563
8612
 
8564
8613
  /**
8565
8614
  * @internal
8566
8615
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8567
8616
  */
8568
- export namespace Key$ {
8569
- /** @deprecated use `Key$inboundSchema` instead. */
8570
- export const inboundSchema = Key$inboundSchema;
8571
- /** @deprecated use `Key$outboundSchema` instead. */
8572
- export const outboundSchema = Key$outboundSchema;
8573
- /** @deprecated use `Key$Outbound` instead. */
8574
- export type Outbound = Key$Outbound;
8617
+ export namespace RoutesKey$ {
8618
+ /** @deprecated use `RoutesKey$inboundSchema` instead. */
8619
+ export const inboundSchema = RoutesKey$inboundSchema;
8620
+ /** @deprecated use `RoutesKey$outboundSchema` instead. */
8621
+ export const outboundSchema = RoutesKey$outboundSchema;
8622
+ /** @deprecated use `RoutesKey$Outbound` instead. */
8623
+ export type Outbound = RoutesKey$Outbound;
8575
8624
  }
8576
8625
 
8577
- export function keyToJSON(key: Key): string {
8578
- return JSON.stringify(Key$outboundSchema.parse(key));
8626
+ export function routesKeyToJSON(routesKey: RoutesKey): string {
8627
+ return JSON.stringify(RoutesKey$outboundSchema.parse(routesKey));
8579
8628
  }
8580
8629
 
8581
- export function keyFromJSON(
8630
+ export function routesKeyFromJSON(
8582
8631
  jsonString: string,
8583
- ): SafeParseResult<Key, SDKValidationError> {
8632
+ ): SafeParseResult<RoutesKey, SDKValidationError> {
8584
8633
  return safeParse(
8585
8634
  jsonString,
8586
- (x) => Key$inboundSchema.parse(JSON.parse(x)),
8587
- `Failed to parse 'Key' from JSON`,
8635
+ (x) => RoutesKey$inboundSchema.parse(JSON.parse(x)),
8636
+ `Failed to parse 'RoutesKey' from JSON`,
8588
8637
  );
8589
8638
  }
8590
8639
 
@@ -8800,8 +8849,8 @@ export const Routes1$inboundSchema: z.ZodType<Routes1, z.ZodTypeDef, unknown> =
8800
8849
  status: z.number().optional(),
8801
8850
  has: z.array(
8802
8851
  z.union([
8803
- z.lazy(() => Has1$inboundSchema),
8804
- z.lazy(() => Has2$inboundSchema),
8852
+ z.lazy(() => CreateDeploymentHas1$inboundSchema),
8853
+ z.lazy(() => CreateDeploymentHas2$inboundSchema),
8805
8854
  ]),
8806
8855
  ).optional(),
8807
8856
  missing: z.array(
@@ -8810,8 +8859,7 @@ export const Routes1$inboundSchema: z.ZodType<Routes1, z.ZodTypeDef, unknown> =
8810
8859
  z.lazy(() => Missing2$inboundSchema),
8811
8860
  ]),
8812
8861
  ).optional(),
8813
- mitigate: z.lazy(() => CreateDeploymentRoutesMitigate$inboundSchema)
8814
- .optional(),
8862
+ mitigate: z.lazy(() => RoutesMitigate$inboundSchema).optional(),
8815
8863
  transforms: z.array(z.lazy(() => Transforms$inboundSchema)).optional(),
8816
8864
  locale: z.lazy(() => Locale$inboundSchema).optional(),
8817
8865
  middlewarePath: z.string().optional(),
@@ -8831,9 +8879,11 @@ export type Routes1$Outbound = {
8831
8879
  check?: boolean | undefined;
8832
8880
  important?: boolean | undefined;
8833
8881
  status?: number | undefined;
8834
- has?: Array<Has1$Outbound | Has2$Outbound> | undefined;
8882
+ has?:
8883
+ | Array<CreateDeploymentHas1$Outbound | CreateDeploymentHas2$Outbound>
8884
+ | undefined;
8835
8885
  missing?: Array<Missing1$Outbound | Missing2$Outbound> | undefined;
8836
- mitigate?: CreateDeploymentRoutesMitigate$Outbound | undefined;
8886
+ mitigate?: RoutesMitigate$Outbound | undefined;
8837
8887
  transforms?: Array<Transforms$Outbound> | undefined;
8838
8888
  locale?: Locale$Outbound | undefined;
8839
8889
  middlewarePath?: string | undefined;
@@ -8859,8 +8909,8 @@ export const Routes1$outboundSchema: z.ZodType<
8859
8909
  status: z.number().optional(),
8860
8910
  has: z.array(
8861
8911
  z.union([
8862
- z.lazy(() => Has1$outboundSchema),
8863
- z.lazy(() => Has2$outboundSchema),
8912
+ z.lazy(() => CreateDeploymentHas1$outboundSchema),
8913
+ z.lazy(() => CreateDeploymentHas2$outboundSchema),
8864
8914
  ]),
8865
8915
  ).optional(),
8866
8916
  missing: z.array(
@@ -8869,8 +8919,7 @@ export const Routes1$outboundSchema: z.ZodType<
8869
8919
  z.lazy(() => Missing2$outboundSchema),
8870
8920
  ]),
8871
8921
  ).optional(),
8872
- mitigate: z.lazy(() => CreateDeploymentRoutesMitigate$outboundSchema)
8873
- .optional(),
8922
+ mitigate: z.lazy(() => RoutesMitigate$outboundSchema).optional(),
8874
8923
  transforms: z.array(z.lazy(() => Transforms$outboundSchema)).optional(),
8875
8924
  locale: z.lazy(() => Locale$outboundSchema).optional(),
8876
8925
  middlewarePath: z.string().optional(),