@vercel/sdk 1.10.8 → 1.11.0

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