@vercel/sdk 1.6.5 → 1.6.7

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 (120) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +519 -281
  3. package/bin/mcp-server.js.map +16 -13
  4. package/docs/sdks/projects/README.md +85 -0
  5. package/esm/__tests__/accessgroups.test.js +94 -60
  6. package/esm/__tests__/accessgroups.test.js.map +1 -1
  7. package/esm/__tests__/aliases.test.js +41 -41
  8. package/esm/__tests__/aliases.test.js.map +1 -1
  9. package/esm/__tests__/certs.test.js +2 -2
  10. package/esm/__tests__/checks.test.js +5 -3
  11. package/esm/__tests__/checks.test.js.map +1 -1
  12. package/esm/__tests__/deployments.test.js +51 -35
  13. package/esm/__tests__/deployments.test.js.map +1 -1
  14. package/esm/__tests__/dns.test.js +0 -27
  15. package/esm/__tests__/dns.test.js.map +1 -1
  16. package/esm/__tests__/domains.test.js +2 -2
  17. package/esm/__tests__/domains.test.js.map +1 -1
  18. package/esm/__tests__/edgeconfig.test.js +9 -5
  19. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  20. package/esm/__tests__/environment.test.js +15 -27
  21. package/esm/__tests__/environment.test.js.map +1 -1
  22. package/esm/__tests__/integrations.test.js +1 -7
  23. package/esm/__tests__/integrations.test.js.map +1 -1
  24. package/esm/__tests__/logdrains.test.js +72 -24
  25. package/esm/__tests__/logdrains.test.js.map +1 -1
  26. package/esm/__tests__/marketplace.test.js +60 -72
  27. package/esm/__tests__/marketplace.test.js.map +1 -1
  28. package/esm/__tests__/projects.test.js +185 -103
  29. package/esm/__tests__/projects.test.js.map +1 -1
  30. package/esm/__tests__/security.test.js +97 -120
  31. package/esm/__tests__/security.test.js.map +1 -1
  32. package/esm/__tests__/teams.test.js +11 -6
  33. package/esm/__tests__/teams.test.js.map +1 -1
  34. package/esm/funcs/projectsMoveProjectDomain.d.ts +18 -0
  35. package/esm/funcs/projectsMoveProjectDomain.d.ts.map +1 -0
  36. package/esm/funcs/projectsMoveProjectDomain.js +96 -0
  37. package/esm/funcs/projectsMoveProjectDomain.js.map +1 -0
  38. package/esm/lib/config.d.ts +2 -2
  39. package/esm/lib/config.js +2 -2
  40. package/esm/mcp-server/mcp-server.js +1 -1
  41. package/esm/mcp-server/server.d.ts.map +1 -1
  42. package/esm/mcp-server/server.js +3 -1
  43. package/esm/mcp-server/server.js.map +1 -1
  44. package/esm/mcp-server/tools/projectsMoveProjectDomain.d.ts +7 -0
  45. package/esm/mcp-server/tools/projectsMoveProjectDomain.d.ts.map +1 -0
  46. package/esm/mcp-server/tools/projectsMoveProjectDomain.js +28 -0
  47. package/esm/mcp-server/tools/projectsMoveProjectDomain.js.map +1 -0
  48. package/esm/models/authuser.d.ts +5 -0
  49. package/esm/models/authuser.d.ts.map +1 -1
  50. package/esm/models/authuser.js +2 -0
  51. package/esm/models/authuser.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +7 -0
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +4 -0
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/getdomainconfigop.d.ts +0 -7
  57. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  58. package/esm/models/getdomainconfigop.js +0 -4
  59. package/esm/models/getdomainconfigop.js.map +1 -1
  60. package/esm/models/getprojectsop.d.ts +7 -0
  61. package/esm/models/getprojectsop.d.ts.map +1 -1
  62. package/esm/models/getprojectsop.js +4 -0
  63. package/esm/models/getprojectsop.js.map +1 -1
  64. package/esm/models/moveprojectdomainop.d.ts +165 -0
  65. package/esm/models/moveprojectdomainop.d.ts.map +1 -0
  66. package/esm/models/moveprojectdomainop.js +151 -0
  67. package/esm/models/moveprojectdomainop.js.map +1 -0
  68. package/esm/models/updateprojectdatacacheop.d.ts +7 -0
  69. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  70. package/esm/models/updateprojectdatacacheop.js +4 -0
  71. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  72. package/esm/models/updateprojectop.d.ts +7 -0
  73. package/esm/models/updateprojectop.d.ts.map +1 -1
  74. package/esm/models/updateprojectop.js +4 -0
  75. package/esm/models/updateprojectop.js.map +1 -1
  76. package/esm/models/userevent.d.ts +43 -0
  77. package/esm/models/userevent.d.ts.map +1 -1
  78. package/esm/models/userevent.js +31 -0
  79. package/esm/models/userevent.js.map +1 -1
  80. package/esm/sdk/projects.d.ts +8 -0
  81. package/esm/sdk/projects.d.ts.map +1 -1
  82. package/esm/sdk/projects.js +10 -0
  83. package/esm/sdk/projects.js.map +1 -1
  84. package/jsr.json +1 -1
  85. package/package.json +1 -1
  86. package/src/__tests__/accessgroups.test.ts +94 -63
  87. package/src/__tests__/aliases.test.ts +47 -47
  88. package/src/__tests__/certs.test.ts +2 -2
  89. package/src/__tests__/checks.test.ts +5 -3
  90. package/src/__tests__/deployments.test.ts +56 -40
  91. package/src/__tests__/dns.test.ts +0 -30
  92. package/src/__tests__/domains.test.ts +2 -2
  93. package/src/__tests__/edgeconfig.test.ts +9 -5
  94. package/src/__tests__/environment.test.ts +18 -42
  95. package/src/__tests__/integrations.test.ts +1 -13
  96. package/src/__tests__/logdrains.test.ts +75 -36
  97. package/src/__tests__/marketplace.test.ts +63 -83
  98. package/src/__tests__/projects.test.ts +188 -106
  99. package/src/__tests__/security.test.ts +97 -123
  100. package/src/__tests__/teams.test.ts +11 -9
  101. package/src/funcs/projectsMoveProjectDomain.ts +198 -0
  102. package/src/lib/config.ts +2 -2
  103. package/src/mcp-server/mcp-server.ts +1 -1
  104. package/src/mcp-server/server.ts +3 -1
  105. package/src/mcp-server/tools/projectsMoveProjectDomain.ts +37 -0
  106. package/src/models/authuser.ts +7 -0
  107. package/src/models/createprojectop.ts +11 -0
  108. package/src/models/getdomainconfigop.ts +0 -11
  109. package/src/models/getprojectsop.ts +11 -0
  110. package/src/models/moveprojectdomainop.ts +356 -0
  111. package/src/models/updateprojectdatacacheop.ts +11 -0
  112. package/src/models/updateprojectop.ts +11 -0
  113. package/src/models/userevent.ts +80 -0
  114. package/src/sdk/projects.ts +22 -0
  115. package/vercel-spec.json +269 -12
  116. package/esm/__tests__/apiexperimentation.test.d.ts +0 -2
  117. package/esm/__tests__/apiexperimentation.test.d.ts.map +0 -1
  118. package/esm/__tests__/apiexperimentation.test.js +0 -8
  119. package/esm/__tests__/apiexperimentation.test.js.map +0 -1
  120. package/src/__tests__/apiexperimentation.test.ts +0 -11
@@ -116,6 +116,10 @@ export type BuildMachine = {
116
116
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
117
117
  */
118
118
  abovePlan?: boolean | undefined;
119
+ /**
120
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
121
+ */
122
+ isDefaultBuildMachine?: boolean | undefined;
119
123
  /**
120
124
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
121
125
  */
@@ -678,6 +682,7 @@ export const BuildMachine$inboundSchema: z.ZodType<
678
682
  > = z.object({
679
683
  purchaseType: PurchaseType$inboundSchema.optional(),
680
684
  abovePlan: z.boolean().optional(),
685
+ isDefaultBuildMachine: z.boolean().optional(),
681
686
  cores: z.number().optional(),
682
687
  memory: z.number().optional(),
683
688
  });
@@ -686,6 +691,7 @@ export const BuildMachine$inboundSchema: z.ZodType<
686
691
  export type BuildMachine$Outbound = {
687
692
  purchaseType?: string | undefined;
688
693
  abovePlan?: boolean | undefined;
694
+ isDefaultBuildMachine?: boolean | undefined;
689
695
  cores?: number | undefined;
690
696
  memory?: number | undefined;
691
697
  };
@@ -698,6 +704,7 @@ export const BuildMachine$outboundSchema: z.ZodType<
698
704
  > = z.object({
699
705
  purchaseType: PurchaseType$outboundSchema.optional(),
700
706
  abovePlan: z.boolean().optional(),
707
+ isDefaultBuildMachine: z.boolean().optional(),
701
708
  cores: z.number().optional(),
702
709
  memory: z.number().optional(),
703
710
  });
@@ -1106,6 +1106,10 @@ export type CreateProjectStages = {
1106
1106
  * Whether or not this stage requires approval to proceed.
1107
1107
  */
1108
1108
  requireApproval?: boolean | undefined;
1109
+ /**
1110
+ * duration is the total time to serve a stage, at the given targetPercentage.
1111
+ */
1112
+ duration?: number | undefined;
1109
1113
  };
1110
1114
 
1111
1115
  export type CreateProjectRollingRelease = {
@@ -1408,6 +1412,7 @@ export type CreateProjectPermissions = {
1408
1412
  observabilityConfiguration?: Array<ACLAction> | undefined;
1409
1413
  observabilityNotebook?: Array<ACLAction> | undefined;
1410
1414
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1415
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1411
1416
  paymentMethod?: Array<ACLAction> | undefined;
1412
1417
  permissions?: Array<ACLAction> | undefined;
1413
1418
  postgres?: Array<ACLAction> | undefined;
@@ -6764,6 +6769,7 @@ export const CreateProjectStages$inboundSchema: z.ZodType<
6764
6769
  targetPercentage: z.number(),
6765
6770
  minutesToRelease: z.number().optional(),
6766
6771
  requireApproval: z.boolean().optional(),
6772
+ duration: z.number().optional(),
6767
6773
  });
6768
6774
 
6769
6775
  /** @internal */
@@ -6771,6 +6777,7 @@ export type CreateProjectStages$Outbound = {
6771
6777
  targetPercentage: number;
6772
6778
  minutesToRelease?: number | undefined;
6773
6779
  requireApproval?: boolean | undefined;
6780
+ duration?: number | undefined;
6774
6781
  };
6775
6782
 
6776
6783
  /** @internal */
@@ -6782,6 +6789,7 @@ export const CreateProjectStages$outboundSchema: z.ZodType<
6782
6789
  targetPercentage: z.number(),
6783
6790
  minutesToRelease: z.number().optional(),
6784
6791
  requireApproval: z.boolean().optional(),
6792
+ duration: z.number().optional(),
6785
6793
  });
6786
6794
 
6787
6795
  /**
@@ -7906,6 +7914,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
7906
7914
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7907
7915
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7908
7916
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7917
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7909
7918
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7910
7919
  permissions: z.array(ACLAction$inboundSchema).optional(),
7911
7920
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -8112,6 +8121,7 @@ export type CreateProjectPermissions$Outbound = {
8112
8121
  observabilityConfiguration?: Array<string> | undefined;
8113
8122
  observabilityNotebook?: Array<string> | undefined;
8114
8123
  openTelemetryEndpoint?: Array<string> | undefined;
8124
+ vercelAppInstallation?: Array<string> | undefined;
8115
8125
  paymentMethod?: Array<string> | undefined;
8116
8126
  permissions?: Array<string> | undefined;
8117
8127
  postgres?: Array<string> | undefined;
@@ -8319,6 +8329,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
8319
8329
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8320
8330
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8321
8331
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8332
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
8322
8333
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8323
8334
  permissions: z.array(ACLAction$outboundSchema).optional(),
8324
8335
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -78,11 +78,6 @@ export type GetDomainConfigResponseBody = {
78
78
  * Whether or not the domain is configured AND we can automatically generate a TLS certificate.
79
79
  */
80
80
  misconfigured: boolean;
81
- /**
82
- * Recommended IPs and CNAME for the domain.
83
- */
84
- recommendedIps?: Array<string> | undefined;
85
- recommendedCname?: string | undefined;
86
81
  };
87
82
 
88
83
  /** @internal */
@@ -216,8 +211,6 @@ export const GetDomainConfigResponseBody$inboundSchema: z.ZodType<
216
211
  configuredBy: z.nullable(ConfiguredBy$inboundSchema).optional(),
217
212
  acceptedChallenges: z.array(AcceptedChallenges$inboundSchema).optional(),
218
213
  misconfigured: z.boolean(),
219
- recommendedIps: z.array(z.string()).optional(),
220
- recommendedCname: z.string().optional(),
221
214
  });
222
215
 
223
216
  /** @internal */
@@ -225,8 +218,6 @@ export type GetDomainConfigResponseBody$Outbound = {
225
218
  configuredBy?: string | null | undefined;
226
219
  acceptedChallenges?: Array<string> | undefined;
227
220
  misconfigured: boolean;
228
- recommendedIps?: Array<string> | undefined;
229
- recommendedCname?: string | undefined;
230
221
  };
231
222
 
232
223
  /** @internal */
@@ -238,8 +229,6 @@ export const GetDomainConfigResponseBody$outboundSchema: z.ZodType<
238
229
  configuredBy: z.nullable(ConfiguredBy$outboundSchema).optional(),
239
230
  acceptedChallenges: z.array(AcceptedChallenges$outboundSchema).optional(),
240
231
  misconfigured: z.boolean(),
241
- recommendedIps: z.array(z.string()).optional(),
242
- recommendedCname: z.string().optional(),
243
232
  });
244
233
 
245
234
  /**
@@ -914,6 +914,10 @@ export type GetProjectsStages = {
914
914
  * Whether or not this stage requires approval to proceed.
915
915
  */
916
916
  requireApproval?: boolean | undefined;
917
+ /**
918
+ * duration is the total time to serve a stage, at the given targetPercentage.
919
+ */
920
+ duration?: number | undefined;
917
921
  };
918
922
 
919
923
  export type GetProjectsRollingRelease = {
@@ -1214,6 +1218,7 @@ export type GetProjectsPermissions = {
1214
1218
  observabilityConfiguration?: Array<ACLAction> | undefined;
1215
1219
  observabilityNotebook?: Array<ACLAction> | undefined;
1216
1220
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1221
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1217
1222
  paymentMethod?: Array<ACLAction> | undefined;
1218
1223
  permissions?: Array<ACLAction> | undefined;
1219
1224
  postgres?: Array<ACLAction> | undefined;
@@ -6136,6 +6141,7 @@ export const GetProjectsStages$inboundSchema: z.ZodType<
6136
6141
  targetPercentage: z.number(),
6137
6142
  minutesToRelease: z.number().optional(),
6138
6143
  requireApproval: z.boolean().optional(),
6144
+ duration: z.number().optional(),
6139
6145
  });
6140
6146
 
6141
6147
  /** @internal */
@@ -6143,6 +6149,7 @@ export type GetProjectsStages$Outbound = {
6143
6149
  targetPercentage: number;
6144
6150
  minutesToRelease?: number | undefined;
6145
6151
  requireApproval?: boolean | undefined;
6152
+ duration?: number | undefined;
6146
6153
  };
6147
6154
 
6148
6155
  /** @internal */
@@ -6154,6 +6161,7 @@ export const GetProjectsStages$outboundSchema: z.ZodType<
6154
6161
  targetPercentage: z.number(),
6155
6162
  minutesToRelease: z.number().optional(),
6156
6163
  requireApproval: z.boolean().optional(),
6164
+ duration: z.number().optional(),
6157
6165
  });
6158
6166
 
6159
6167
  /**
@@ -7251,6 +7259,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
7251
7259
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7252
7260
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7253
7261
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7262
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7254
7263
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7255
7264
  permissions: z.array(ACLAction$inboundSchema).optional(),
7256
7265
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -7457,6 +7466,7 @@ export type GetProjectsPermissions$Outbound = {
7457
7466
  observabilityConfiguration?: Array<string> | undefined;
7458
7467
  observabilityNotebook?: Array<string> | undefined;
7459
7468
  openTelemetryEndpoint?: Array<string> | undefined;
7469
+ vercelAppInstallation?: Array<string> | undefined;
7460
7470
  paymentMethod?: Array<string> | undefined;
7461
7471
  permissions?: Array<string> | undefined;
7462
7472
  postgres?: Array<string> | undefined;
@@ -7664,6 +7674,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7664
7674
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7665
7675
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7666
7676
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7677
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
7667
7678
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7668
7679
  permissions: z.array(ACLAction$outboundSchema).optional(),
7669
7680
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -0,0 +1,356 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./sdkvalidationerror.js";
10
+
11
+ export type MoveProjectDomainRequestBody = {
12
+ /**
13
+ * The unique target project identifier
14
+ */
15
+ projectId: string;
16
+ };
17
+
18
+ export type MoveProjectDomainRequest = {
19
+ /**
20
+ * The unique project identifier or the project name
21
+ */
22
+ idOrName: string;
23
+ /**
24
+ * The project domain name
25
+ */
26
+ domain: string;
27
+ /**
28
+ * The Team identifier to perform the request on behalf of.
29
+ */
30
+ teamId?: string | undefined;
31
+ /**
32
+ * The Team slug to perform the request on behalf of.
33
+ */
34
+ slug?: string | undefined;
35
+ requestBody?: MoveProjectDomainRequestBody | undefined;
36
+ };
37
+
38
+ /**
39
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
40
+ */
41
+ export type MoveProjectDomainVerification = {
42
+ type: string;
43
+ domain: string;
44
+ value: string;
45
+ reason: string;
46
+ };
47
+
48
+ /**
49
+ * The domain was updated successfuly
50
+ */
51
+ export type MoveProjectDomainResponseBody = {
52
+ name: string;
53
+ apexName: string;
54
+ projectId: string;
55
+ redirect?: string | null | undefined;
56
+ redirectStatusCode?: number | null | undefined;
57
+ gitBranch?: string | null | undefined;
58
+ customEnvironmentId?: string | null | undefined;
59
+ updatedAt?: number | undefined;
60
+ createdAt?: number | undefined;
61
+ /**
62
+ * `true` if the domain is verified for use with the project. If `false` it will not be used as an alias on this project until the challenge in `verification` is completed.
63
+ */
64
+ verified: boolean;
65
+ /**
66
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
67
+ */
68
+ verification?: Array<MoveProjectDomainVerification> | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const MoveProjectDomainRequestBody$inboundSchema: z.ZodType<
73
+ MoveProjectDomainRequestBody,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ projectId: z.string(),
78
+ });
79
+
80
+ /** @internal */
81
+ export type MoveProjectDomainRequestBody$Outbound = {
82
+ projectId: string;
83
+ };
84
+
85
+ /** @internal */
86
+ export const MoveProjectDomainRequestBody$outboundSchema: z.ZodType<
87
+ MoveProjectDomainRequestBody$Outbound,
88
+ z.ZodTypeDef,
89
+ MoveProjectDomainRequestBody
90
+ > = z.object({
91
+ projectId: z.string(),
92
+ });
93
+
94
+ /**
95
+ * @internal
96
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
+ */
98
+ export namespace MoveProjectDomainRequestBody$ {
99
+ /** @deprecated use `MoveProjectDomainRequestBody$inboundSchema` instead. */
100
+ export const inboundSchema = MoveProjectDomainRequestBody$inboundSchema;
101
+ /** @deprecated use `MoveProjectDomainRequestBody$outboundSchema` instead. */
102
+ export const outboundSchema = MoveProjectDomainRequestBody$outboundSchema;
103
+ /** @deprecated use `MoveProjectDomainRequestBody$Outbound` instead. */
104
+ export type Outbound = MoveProjectDomainRequestBody$Outbound;
105
+ }
106
+
107
+ export function moveProjectDomainRequestBodyToJSON(
108
+ moveProjectDomainRequestBody: MoveProjectDomainRequestBody,
109
+ ): string {
110
+ return JSON.stringify(
111
+ MoveProjectDomainRequestBody$outboundSchema.parse(
112
+ moveProjectDomainRequestBody,
113
+ ),
114
+ );
115
+ }
116
+
117
+ export function moveProjectDomainRequestBodyFromJSON(
118
+ jsonString: string,
119
+ ): SafeParseResult<MoveProjectDomainRequestBody, SDKValidationError> {
120
+ return safeParse(
121
+ jsonString,
122
+ (x) => MoveProjectDomainRequestBody$inboundSchema.parse(JSON.parse(x)),
123
+ `Failed to parse 'MoveProjectDomainRequestBody' from JSON`,
124
+ );
125
+ }
126
+
127
+ /** @internal */
128
+ export const MoveProjectDomainRequest$inboundSchema: z.ZodType<
129
+ MoveProjectDomainRequest,
130
+ z.ZodTypeDef,
131
+ unknown
132
+ > = z.object({
133
+ idOrName: z.string(),
134
+ domain: z.string(),
135
+ teamId: z.string().optional(),
136
+ slug: z.string().optional(),
137
+ RequestBody: z.lazy(() => MoveProjectDomainRequestBody$inboundSchema)
138
+ .optional(),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ "RequestBody": "requestBody",
142
+ });
143
+ });
144
+
145
+ /** @internal */
146
+ export type MoveProjectDomainRequest$Outbound = {
147
+ idOrName: string;
148
+ domain: string;
149
+ teamId?: string | undefined;
150
+ slug?: string | undefined;
151
+ RequestBody?: MoveProjectDomainRequestBody$Outbound | undefined;
152
+ };
153
+
154
+ /** @internal */
155
+ export const MoveProjectDomainRequest$outboundSchema: z.ZodType<
156
+ MoveProjectDomainRequest$Outbound,
157
+ z.ZodTypeDef,
158
+ MoveProjectDomainRequest
159
+ > = z.object({
160
+ idOrName: z.string(),
161
+ domain: z.string(),
162
+ teamId: z.string().optional(),
163
+ slug: z.string().optional(),
164
+ requestBody: z.lazy(() => MoveProjectDomainRequestBody$outboundSchema)
165
+ .optional(),
166
+ }).transform((v) => {
167
+ return remap$(v, {
168
+ requestBody: "RequestBody",
169
+ });
170
+ });
171
+
172
+ /**
173
+ * @internal
174
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
+ */
176
+ export namespace MoveProjectDomainRequest$ {
177
+ /** @deprecated use `MoveProjectDomainRequest$inboundSchema` instead. */
178
+ export const inboundSchema = MoveProjectDomainRequest$inboundSchema;
179
+ /** @deprecated use `MoveProjectDomainRequest$outboundSchema` instead. */
180
+ export const outboundSchema = MoveProjectDomainRequest$outboundSchema;
181
+ /** @deprecated use `MoveProjectDomainRequest$Outbound` instead. */
182
+ export type Outbound = MoveProjectDomainRequest$Outbound;
183
+ }
184
+
185
+ export function moveProjectDomainRequestToJSON(
186
+ moveProjectDomainRequest: MoveProjectDomainRequest,
187
+ ): string {
188
+ return JSON.stringify(
189
+ MoveProjectDomainRequest$outboundSchema.parse(moveProjectDomainRequest),
190
+ );
191
+ }
192
+
193
+ export function moveProjectDomainRequestFromJSON(
194
+ jsonString: string,
195
+ ): SafeParseResult<MoveProjectDomainRequest, SDKValidationError> {
196
+ return safeParse(
197
+ jsonString,
198
+ (x) => MoveProjectDomainRequest$inboundSchema.parse(JSON.parse(x)),
199
+ `Failed to parse 'MoveProjectDomainRequest' from JSON`,
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const MoveProjectDomainVerification$inboundSchema: z.ZodType<
205
+ MoveProjectDomainVerification,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ type: z.string(),
210
+ domain: z.string(),
211
+ value: z.string(),
212
+ reason: z.string(),
213
+ });
214
+
215
+ /** @internal */
216
+ export type MoveProjectDomainVerification$Outbound = {
217
+ type: string;
218
+ domain: string;
219
+ value: string;
220
+ reason: string;
221
+ };
222
+
223
+ /** @internal */
224
+ export const MoveProjectDomainVerification$outboundSchema: z.ZodType<
225
+ MoveProjectDomainVerification$Outbound,
226
+ z.ZodTypeDef,
227
+ MoveProjectDomainVerification
228
+ > = z.object({
229
+ type: z.string(),
230
+ domain: z.string(),
231
+ value: z.string(),
232
+ reason: z.string(),
233
+ });
234
+
235
+ /**
236
+ * @internal
237
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
238
+ */
239
+ export namespace MoveProjectDomainVerification$ {
240
+ /** @deprecated use `MoveProjectDomainVerification$inboundSchema` instead. */
241
+ export const inboundSchema = MoveProjectDomainVerification$inboundSchema;
242
+ /** @deprecated use `MoveProjectDomainVerification$outboundSchema` instead. */
243
+ export const outboundSchema = MoveProjectDomainVerification$outboundSchema;
244
+ /** @deprecated use `MoveProjectDomainVerification$Outbound` instead. */
245
+ export type Outbound = MoveProjectDomainVerification$Outbound;
246
+ }
247
+
248
+ export function moveProjectDomainVerificationToJSON(
249
+ moveProjectDomainVerification: MoveProjectDomainVerification,
250
+ ): string {
251
+ return JSON.stringify(
252
+ MoveProjectDomainVerification$outboundSchema.parse(
253
+ moveProjectDomainVerification,
254
+ ),
255
+ );
256
+ }
257
+
258
+ export function moveProjectDomainVerificationFromJSON(
259
+ jsonString: string,
260
+ ): SafeParseResult<MoveProjectDomainVerification, SDKValidationError> {
261
+ return safeParse(
262
+ jsonString,
263
+ (x) => MoveProjectDomainVerification$inboundSchema.parse(JSON.parse(x)),
264
+ `Failed to parse 'MoveProjectDomainVerification' from JSON`,
265
+ );
266
+ }
267
+
268
+ /** @internal */
269
+ export const MoveProjectDomainResponseBody$inboundSchema: z.ZodType<
270
+ MoveProjectDomainResponseBody,
271
+ z.ZodTypeDef,
272
+ unknown
273
+ > = z.object({
274
+ name: z.string(),
275
+ apexName: z.string(),
276
+ projectId: z.string(),
277
+ redirect: z.nullable(z.string()).optional(),
278
+ redirectStatusCode: z.nullable(z.number()).optional(),
279
+ gitBranch: z.nullable(z.string()).optional(),
280
+ customEnvironmentId: z.nullable(z.string()).optional(),
281
+ updatedAt: z.number().optional(),
282
+ createdAt: z.number().optional(),
283
+ verified: z.boolean(),
284
+ verification: z.array(
285
+ z.lazy(() => MoveProjectDomainVerification$inboundSchema),
286
+ ).optional(),
287
+ });
288
+
289
+ /** @internal */
290
+ export type MoveProjectDomainResponseBody$Outbound = {
291
+ name: string;
292
+ apexName: string;
293
+ projectId: string;
294
+ redirect?: string | null | undefined;
295
+ redirectStatusCode?: number | null | undefined;
296
+ gitBranch?: string | null | undefined;
297
+ customEnvironmentId?: string | null | undefined;
298
+ updatedAt?: number | undefined;
299
+ createdAt?: number | undefined;
300
+ verified: boolean;
301
+ verification?: Array<MoveProjectDomainVerification$Outbound> | undefined;
302
+ };
303
+
304
+ /** @internal */
305
+ export const MoveProjectDomainResponseBody$outboundSchema: z.ZodType<
306
+ MoveProjectDomainResponseBody$Outbound,
307
+ z.ZodTypeDef,
308
+ MoveProjectDomainResponseBody
309
+ > = z.object({
310
+ name: z.string(),
311
+ apexName: z.string(),
312
+ projectId: z.string(),
313
+ redirect: z.nullable(z.string()).optional(),
314
+ redirectStatusCode: z.nullable(z.number()).optional(),
315
+ gitBranch: z.nullable(z.string()).optional(),
316
+ customEnvironmentId: z.nullable(z.string()).optional(),
317
+ updatedAt: z.number().optional(),
318
+ createdAt: z.number().optional(),
319
+ verified: z.boolean(),
320
+ verification: z.array(
321
+ z.lazy(() => MoveProjectDomainVerification$outboundSchema),
322
+ ).optional(),
323
+ });
324
+
325
+ /**
326
+ * @internal
327
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
328
+ */
329
+ export namespace MoveProjectDomainResponseBody$ {
330
+ /** @deprecated use `MoveProjectDomainResponseBody$inboundSchema` instead. */
331
+ export const inboundSchema = MoveProjectDomainResponseBody$inboundSchema;
332
+ /** @deprecated use `MoveProjectDomainResponseBody$outboundSchema` instead. */
333
+ export const outboundSchema = MoveProjectDomainResponseBody$outboundSchema;
334
+ /** @deprecated use `MoveProjectDomainResponseBody$Outbound` instead. */
335
+ export type Outbound = MoveProjectDomainResponseBody$Outbound;
336
+ }
337
+
338
+ export function moveProjectDomainResponseBodyToJSON(
339
+ moveProjectDomainResponseBody: MoveProjectDomainResponseBody,
340
+ ): string {
341
+ return JSON.stringify(
342
+ MoveProjectDomainResponseBody$outboundSchema.parse(
343
+ moveProjectDomainResponseBody,
344
+ ),
345
+ );
346
+ }
347
+
348
+ export function moveProjectDomainResponseBodyFromJSON(
349
+ jsonString: string,
350
+ ): SafeParseResult<MoveProjectDomainResponseBody, SDKValidationError> {
351
+ return safeParse(
352
+ jsonString,
353
+ (x) => MoveProjectDomainResponseBody$inboundSchema.parse(JSON.parse(x)),
354
+ `Failed to parse 'MoveProjectDomainResponseBody' from JSON`,
355
+ );
356
+ }
@@ -878,6 +878,10 @@ export type Stages = {
878
878
  * Whether or not this stage requires approval to proceed.
879
879
  */
880
880
  requireApproval?: boolean | undefined;
881
+ /**
882
+ * duration is the total time to serve a stage, at the given targetPercentage.
883
+ */
884
+ duration?: number | undefined;
881
885
  };
882
886
 
883
887
  export type RollingRelease = {
@@ -1181,6 +1185,7 @@ export type Permissions = {
1181
1185
  observabilityConfiguration?: Array<ACLAction> | undefined;
1182
1186
  observabilityNotebook?: Array<ACLAction> | undefined;
1183
1187
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1188
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1184
1189
  paymentMethod?: Array<ACLAction> | undefined;
1185
1190
  permissions?: Array<ACLAction> | undefined;
1186
1191
  postgres?: Array<ACLAction> | undefined;
@@ -6068,6 +6073,7 @@ export const Stages$inboundSchema: z.ZodType<Stages, z.ZodTypeDef, unknown> = z
6068
6073
  targetPercentage: z.number(),
6069
6074
  minutesToRelease: z.number().optional(),
6070
6075
  requireApproval: z.boolean().optional(),
6076
+ duration: z.number().optional(),
6071
6077
  });
6072
6078
 
6073
6079
  /** @internal */
@@ -6075,6 +6081,7 @@ export type Stages$Outbound = {
6075
6081
  targetPercentage: number;
6076
6082
  minutesToRelease?: number | undefined;
6077
6083
  requireApproval?: boolean | undefined;
6084
+ duration?: number | undefined;
6078
6085
  };
6079
6086
 
6080
6087
  /** @internal */
@@ -6086,6 +6093,7 @@ export const Stages$outboundSchema: z.ZodType<
6086
6093
  targetPercentage: z.number(),
6087
6094
  minutesToRelease: z.number().optional(),
6088
6095
  requireApproval: z.boolean().optional(),
6096
+ duration: z.number().optional(),
6089
6097
  });
6090
6098
 
6091
6099
  /**
@@ -7202,6 +7210,7 @@ export const Permissions$inboundSchema: z.ZodType<
7202
7210
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7203
7211
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7204
7212
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7213
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7205
7214
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7206
7215
  permissions: z.array(ACLAction$inboundSchema).optional(),
7207
7216
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -7408,6 +7417,7 @@ export type Permissions$Outbound = {
7408
7417
  observabilityConfiguration?: Array<string> | undefined;
7409
7418
  observabilityNotebook?: Array<string> | undefined;
7410
7419
  openTelemetryEndpoint?: Array<string> | undefined;
7420
+ vercelAppInstallation?: Array<string> | undefined;
7411
7421
  paymentMethod?: Array<string> | undefined;
7412
7422
  permissions?: Array<string> | undefined;
7413
7423
  postgres?: Array<string> | undefined;
@@ -7615,6 +7625,7 @@ export const Permissions$outboundSchema: z.ZodType<
7615
7625
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7616
7626
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7617
7627
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7628
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
7618
7629
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7619
7630
  permissions: z.array(ACLAction$outboundSchema).optional(),
7620
7631
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -1197,6 +1197,10 @@ export type UpdateProjectStages = {
1197
1197
  * Whether or not this stage requires approval to proceed.
1198
1198
  */
1199
1199
  requireApproval?: boolean | undefined;
1200
+ /**
1201
+ * duration is the total time to serve a stage, at the given targetPercentage.
1202
+ */
1203
+ duration?: number | undefined;
1200
1204
  };
1201
1205
 
1202
1206
  export type UpdateProjectRollingRelease = {
@@ -1497,6 +1501,7 @@ export type UpdateProjectPermissions = {
1497
1501
  observabilityConfiguration?: Array<ACLAction> | undefined;
1498
1502
  observabilityNotebook?: Array<ACLAction> | undefined;
1499
1503
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1504
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1500
1505
  paymentMethod?: Array<ACLAction> | undefined;
1501
1506
  permissions?: Array<ACLAction> | undefined;
1502
1507
  postgres?: Array<ACLAction> | undefined;
@@ -7104,6 +7109,7 @@ export const UpdateProjectStages$inboundSchema: z.ZodType<
7104
7109
  targetPercentage: z.number(),
7105
7110
  minutesToRelease: z.number().optional(),
7106
7111
  requireApproval: z.boolean().optional(),
7112
+ duration: z.number().optional(),
7107
7113
  });
7108
7114
 
7109
7115
  /** @internal */
@@ -7111,6 +7117,7 @@ export type UpdateProjectStages$Outbound = {
7111
7117
  targetPercentage: number;
7112
7118
  minutesToRelease?: number | undefined;
7113
7119
  requireApproval?: boolean | undefined;
7120
+ duration?: number | undefined;
7114
7121
  };
7115
7122
 
7116
7123
  /** @internal */
@@ -7122,6 +7129,7 @@ export const UpdateProjectStages$outboundSchema: z.ZodType<
7122
7129
  targetPercentage: z.number(),
7123
7130
  minutesToRelease: z.number().optional(),
7124
7131
  requireApproval: z.boolean().optional(),
7132
+ duration: z.number().optional(),
7125
7133
  });
7126
7134
 
7127
7135
  /**
@@ -8244,6 +8252,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
8244
8252
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
8245
8253
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
8246
8254
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
8255
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
8247
8256
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
8248
8257
  permissions: z.array(ACLAction$inboundSchema).optional(),
8249
8258
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -8450,6 +8459,7 @@ export type UpdateProjectPermissions$Outbound = {
8450
8459
  observabilityConfiguration?: Array<string> | undefined;
8451
8460
  observabilityNotebook?: Array<string> | undefined;
8452
8461
  openTelemetryEndpoint?: Array<string> | undefined;
8462
+ vercelAppInstallation?: Array<string> | undefined;
8453
8463
  paymentMethod?: Array<string> | undefined;
8454
8464
  permissions?: Array<string> | undefined;
8455
8465
  postgres?: Array<string> | undefined;
@@ -8657,6 +8667,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
8657
8667
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8658
8668
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8659
8669
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8670
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
8660
8671
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8661
8672
  permissions: z.array(ACLAction$outboundSchema).optional(),
8662
8673
  postgres: z.array(ACLAction$outboundSchema).optional(),