@vercel/sdk 1.11.0 → 1.11.2

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 (155) hide show
  1. package/bin/mcp-server.js +1341 -1092
  2. package/bin/mcp-server.js.map +30 -30
  3. package/esm/__tests__/accessgroups.test.js +1 -3
  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 +3 -1
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/edgeconfig.test.js +6 -6
  10. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  11. package/esm/__tests__/integrations.test.js +1 -1
  12. package/esm/__tests__/rollingrelease.test.js +6 -2
  13. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +4 -4
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/__tests__/teams.test.js +2 -2
  17. package/esm/__tests__/teams.test.js.map +1 -1
  18. package/esm/funcs/deploymentsUploadFile.js +0 -1
  19. package/esm/funcs/deploymentsUploadFile.js.map +1 -1
  20. package/esm/funcs/domainsGetDomainTransfer.js +2 -2
  21. package/esm/funcs/domainsGetDomainTransfer.js.map +1 -1
  22. package/esm/funcs/marketplaceUpdateResourceSecrets.js +2 -2
  23. package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -1
  24. package/esm/lib/config.d.ts +3 -3
  25. package/esm/lib/config.js +3 -3
  26. package/esm/mcp-server/mcp-server.js +1 -1
  27. package/esm/mcp-server/server.js +1 -1
  28. package/esm/models/canceldeploymentop.d.ts +9 -6
  29. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  30. package/esm/models/canceldeploymentop.js +3 -2
  31. package/esm/models/canceldeploymentop.js.map +1 -1
  32. package/esm/models/createdeploymentop.d.ts +47 -41
  33. package/esm/models/createdeploymentop.d.ts.map +1 -1
  34. package/esm/models/createdeploymentop.js +17 -15
  35. package/esm/models/createdeploymentop.js.map +1 -1
  36. package/esm/models/createedgeconfigop.d.ts +2 -0
  37. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  38. package/esm/models/createedgeconfigop.js +2 -0
  39. package/esm/models/createedgeconfigop.js.map +1 -1
  40. package/esm/models/createintegrationstoredirectop.d.ts +282 -243
  41. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  42. package/esm/models/createintegrationstoredirectop.js +320 -295
  43. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  44. package/esm/models/createprojectop.d.ts +6 -0
  45. package/esm/models/createprojectop.d.ts.map +1 -1
  46. package/esm/models/createprojectop.js +2 -0
  47. package/esm/models/createprojectop.js.map +1 -1
  48. package/esm/models/getallchecksop.d.ts +2 -0
  49. package/esm/models/getallchecksop.d.ts.map +1 -1
  50. package/esm/models/getallchecksop.js +2 -0
  51. package/esm/models/getallchecksop.js.map +1 -1
  52. package/esm/models/getconfigurationproductsop.d.ts +421 -331
  53. package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
  54. package/esm/models/getconfigurationproductsop.js +482 -410
  55. package/esm/models/getconfigurationproductsop.js.map +1 -1
  56. package/esm/models/getdeploymentop.d.ts +9 -6
  57. package/esm/models/getdeploymentop.d.ts.map +1 -1
  58. package/esm/models/getdeploymentop.js +3 -2
  59. package/esm/models/getdeploymentop.js.map +1 -1
  60. package/esm/models/getdeploymentsop.d.ts +3 -0
  61. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  62. package/esm/models/getdeploymentsop.js +1 -0
  63. package/esm/models/getdeploymentsop.js.map +1 -1
  64. package/esm/models/getdomaintransferop.d.ts +99 -25
  65. package/esm/models/getdomaintransferop.d.ts.map +1 -1
  66. package/esm/models/getdomaintransferop.js +101 -25
  67. package/esm/models/getdomaintransferop.js.map +1 -1
  68. package/esm/models/getedgeconfigop.d.ts +2 -0
  69. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  70. package/esm/models/getedgeconfigop.js +2 -0
  71. package/esm/models/getedgeconfigop.js.map +1 -1
  72. package/esm/models/getprojectsop.d.ts +3 -0
  73. package/esm/models/getprojectsop.d.ts.map +1 -1
  74. package/esm/models/getprojectsop.js +1 -0
  75. package/esm/models/getprojectsop.js.map +1 -1
  76. package/esm/models/getteammembersop.d.ts +36 -30
  77. package/esm/models/getteammembersop.d.ts.map +1 -1
  78. package/esm/models/getteammembersop.js +12 -10
  79. package/esm/models/getteammembersop.js.map +1 -1
  80. package/esm/models/getwebhooksop.d.ts +3 -0
  81. package/esm/models/getwebhooksop.d.ts.map +1 -1
  82. package/esm/models/getwebhooksop.js +1 -0
  83. package/esm/models/getwebhooksop.js.map +1 -1
  84. package/esm/models/importresourceop.d.ts +36 -0
  85. package/esm/models/importresourceop.d.ts.map +1 -1
  86. package/esm/models/importresourceop.js +25 -0
  87. package/esm/models/importresourceop.js.map +1 -1
  88. package/esm/models/patchteamop.d.ts +12 -0
  89. package/esm/models/patchteamop.d.ts.map +1 -1
  90. package/esm/models/patchteamop.js +4 -0
  91. package/esm/models/patchteamop.js.map +1 -1
  92. package/esm/models/team.d.ts +150 -26
  93. package/esm/models/team.d.ts.map +1 -1
  94. package/esm/models/team.js +110 -30
  95. package/esm/models/team.js.map +1 -1
  96. package/esm/models/updateedgeconfigop.d.ts +2 -0
  97. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  98. package/esm/models/updateedgeconfigop.js +2 -0
  99. package/esm/models/updateedgeconfigop.js.map +1 -1
  100. package/esm/models/updateprojectdatacacheop.d.ts +3 -0
  101. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  102. package/esm/models/updateprojectdatacacheop.js +1 -0
  103. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  104. package/esm/models/updateprojectop.d.ts +6 -0
  105. package/esm/models/updateprojectop.d.ts.map +1 -1
  106. package/esm/models/updateprojectop.js +2 -0
  107. package/esm/models/updateprojectop.js.map +1 -1
  108. package/esm/models/uploadfileop.d.ts +0 -5
  109. package/esm/models/uploadfileop.d.ts.map +1 -1
  110. package/esm/models/uploadfileop.js +0 -4
  111. package/esm/models/uploadfileop.js.map +1 -1
  112. package/esm/models/userevent.d.ts +963 -773
  113. package/esm/models/userevent.d.ts.map +1 -1
  114. package/esm/models/userevent.js +1102 -974
  115. package/esm/models/userevent.js.map +1 -1
  116. package/examples/package-lock.json +1 -1
  117. package/jsr.json +1 -1
  118. package/package.json +1 -1
  119. package/src/__tests__/accessgroups.test.ts +1 -3
  120. package/src/__tests__/checks.test.ts +1 -0
  121. package/src/__tests__/domains.test.ts +3 -1
  122. package/src/__tests__/edgeconfig.test.ts +6 -6
  123. package/src/__tests__/integrations.test.ts +1 -1
  124. package/src/__tests__/rollingrelease.test.ts +6 -2
  125. package/src/__tests__/security.test.ts +4 -4
  126. package/src/__tests__/teams.test.ts +2 -2
  127. package/src/funcs/deploymentsUploadFile.ts +0 -5
  128. package/src/funcs/domainsGetDomainTransfer.ts +2 -2
  129. package/src/funcs/marketplaceUpdateResourceSecrets.ts +2 -2
  130. package/src/lib/config.ts +3 -3
  131. package/src/mcp-server/mcp-server.ts +1 -1
  132. package/src/mcp-server/server.ts +1 -1
  133. package/src/models/canceldeploymentop.ts +5 -4
  134. package/src/models/createdeploymentop.ts +21 -19
  135. package/src/models/createedgeconfigop.ts +4 -0
  136. package/src/models/createintegrationstoredirectop.ts +546 -506
  137. package/src/models/createprojectop.ts +2 -0
  138. package/src/models/getallchecksop.ts +4 -0
  139. package/src/models/getconfigurationproductsop.ts +847 -706
  140. package/src/models/getdeploymentop.ts +5 -4
  141. package/src/models/getdeploymentsop.ts +1 -0
  142. package/src/models/getdomaintransferop.ts +203 -39
  143. package/src/models/getedgeconfigop.ts +4 -0
  144. package/src/models/getprojectsop.ts +1 -0
  145. package/src/models/getteammembersop.ts +12 -10
  146. package/src/models/getwebhooksop.ts +1 -0
  147. package/src/models/importresourceop.ts +34 -0
  148. package/src/models/patchteamop.ts +4 -0
  149. package/src/models/team.ts +177 -42
  150. package/src/models/updateedgeconfigop.ts +4 -0
  151. package/src/models/updateprojectdatacacheop.ts +1 -0
  152. package/src/models/updateprojectop.ts +2 -0
  153. package/src/models/uploadfileop.ts +0 -9
  154. package/src/models/userevent.ts +2222 -1920
  155. package/vercel-spec.json +517 -260
@@ -806,6 +806,7 @@ export const ResponseBodyFramework = {
806
806
  Vitepress: "vitepress",
807
807
  Vuepress: "vuepress",
808
808
  Parcel: "parcel",
809
+ Fastapi: "fastapi",
809
810
  Fasthtml: "fasthtml",
810
811
  SanityV3: "sanity-v3",
811
812
  Sanity: "sanity",
@@ -2009,15 +2010,15 @@ export type GetDeploymentMicrofrontendsApplications = {
2009
2010
  };
2010
2011
 
2011
2012
  /**
2012
- * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet.
2013
+ * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
2013
2014
  */
2014
2015
  export const GetDeploymentMicrofrontendsMfeConfigUploadState = {
2015
- Error: "error",
2016
2016
  Success: "success",
2017
+ WaitingOnBuild: "waiting_on_build",
2017
2018
  NoConfig: "no_config",
2018
2019
  } as const;
2019
2020
  /**
2020
- * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet.
2021
+ * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
2021
2022
  */
2022
2023
  export type GetDeploymentMicrofrontendsMfeConfigUploadState = ClosedEnum<
2023
2024
  typeof GetDeploymentMicrofrontendsMfeConfigUploadState
@@ -2032,7 +2033,7 @@ export type GetDeploymentMicrofrontends2 = {
2032
2033
  | { [k: string]: GetDeploymentMicrofrontendsApplications }
2033
2034
  | undefined;
2034
2035
  /**
2035
- * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet.
2036
+ * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
2036
2037
  */
2037
2038
  mfeConfigUploadState?:
2038
2039
  | GetDeploymentMicrofrontendsMfeConfigUploadState
@@ -321,6 +321,7 @@ export const GetDeploymentsFramework = {
321
321
  Vitepress: "vitepress",
322
322
  Vuepress: "vuepress",
323
323
  Parcel: "parcel",
324
+ Fastapi: "fastapi",
324
325
  Fasthtml: "fasthtml",
325
326
  SanityV3: "sanity-v3",
326
327
  Sanity: "sanity",
@@ -23,7 +23,7 @@ export type GetDomainTransferRequest = {
23
23
  /**
24
24
  * The domain's transfer policy (depends on TLD requirements). `charge-and-renew`: transfer will charge for renewal and will renew the existing domain's registration. `no-charge-no-change`: transfer will have no change to registration period and does not require charge. `no-change`: transfer charge is required, but no change in registration period. `new-term`: transfer charge is required and a new registry term is set based on the transfer date. `not-supported`: transfers are not supported for this domain or TLD. `null`: This TLD is not supported by Vercel's Registrar.
25
25
  */
26
- export const TransferPolicy = {
26
+ export const ResponseBodyTransferPolicy = {
27
27
  ChargeAndRenew: "charge-and-renew",
28
28
  NoChargeNoChange: "no-charge-no-change",
29
29
  NoChange: "no-change",
@@ -33,28 +33,30 @@ export const TransferPolicy = {
33
33
  /**
34
34
  * The domain's transfer policy (depends on TLD requirements). `charge-and-renew`: transfer will charge for renewal and will renew the existing domain's registration. `no-charge-no-change`: transfer will have no change to registration period and does not require charge. `no-change`: transfer charge is required, but no change in registration period. `new-term`: transfer charge is required and a new registry term is set based on the transfer date. `not-supported`: transfers are not supported for this domain or TLD. `null`: This TLD is not supported by Vercel's Registrar.
35
35
  */
36
- export type TransferPolicy = ClosedEnum<typeof TransferPolicy>;
36
+ export type ResponseBodyTransferPolicy = ClosedEnum<
37
+ typeof ResponseBodyTransferPolicy
38
+ >;
37
39
 
38
40
  /**
39
41
  * The current state of an ongoing transfer. `pending_owner`: Awaiting approval by domain's admin contact (every transfer begins with this status). If approval is not given within five days, the transfer is cancelled. `pending_admin`: Waiting for approval by Vercel Registrar admin. `pending_registry`: Awaiting registry approval (the transfer completes after 7 days unless it is declined by the current registrar). `completed`: The transfer completed successfully. `cancelled`: The transfer was cancelled. `undef`: No transfer exists for this domain. `unknown`: This TLD is not supported by Vercel's Registrar.
40
42
  */
41
- export const GetDomainTransferStatus = {
43
+ export const GetDomainTransferResponseBodyStatus = {
44
+ Completed: "completed",
45
+ Undef: "undef",
42
46
  PendingOwner: "pending_owner",
43
47
  PendingAdmin: "pending_admin",
44
48
  PendingRegistry: "pending_registry",
45
- Completed: "completed",
46
49
  Cancelled: "cancelled",
47
- Undef: "undef",
48
50
  Unknown: "unknown",
49
51
  } as const;
50
52
  /**
51
53
  * The current state of an ongoing transfer. `pending_owner`: Awaiting approval by domain's admin contact (every transfer begins with this status). If approval is not given within five days, the transfer is cancelled. `pending_admin`: Waiting for approval by Vercel Registrar admin. `pending_registry`: Awaiting registry approval (the transfer completes after 7 days unless it is declined by the current registrar). `completed`: The transfer completed successfully. `cancelled`: The transfer was cancelled. `undef`: No transfer exists for this domain. `unknown`: This TLD is not supported by Vercel's Registrar.
52
54
  */
53
- export type GetDomainTransferStatus = ClosedEnum<
54
- typeof GetDomainTransferStatus
55
+ export type GetDomainTransferResponseBodyStatus = ClosedEnum<
56
+ typeof GetDomainTransferResponseBodyStatus
55
57
  >;
56
58
 
57
- export type GetDomainTransferResponseBody = {
59
+ export type GetDomainTransferResponseBody2 = {
58
60
  /**
59
61
  * Whether or not the domain is transferable
60
62
  */
@@ -62,7 +64,7 @@ export type GetDomainTransferResponseBody = {
62
64
  /**
63
65
  * The domain's transfer policy (depends on TLD requirements). `charge-and-renew`: transfer will charge for renewal and will renew the existing domain's registration. `no-charge-no-change`: transfer will have no change to registration period and does not require charge. `no-change`: transfer charge is required, but no change in registration period. `new-term`: transfer charge is required and a new registry term is set based on the transfer date. `not-supported`: transfers are not supported for this domain or TLD. `null`: This TLD is not supported by Vercel's Registrar.
64
66
  */
65
- transferPolicy: TransferPolicy | null;
67
+ transferPolicy: ResponseBodyTransferPolicy | null;
66
68
  /**
67
69
  * Description associated with transferable state.
68
70
  */
@@ -70,9 +72,25 @@ export type GetDomainTransferResponseBody = {
70
72
  /**
71
73
  * The current state of an ongoing transfer. `pending_owner`: Awaiting approval by domain's admin contact (every transfer begins with this status). If approval is not given within five days, the transfer is cancelled. `pending_admin`: Waiting for approval by Vercel Registrar admin. `pending_registry`: Awaiting registry approval (the transfer completes after 7 days unless it is declined by the current registrar). `completed`: The transfer completed successfully. `cancelled`: The transfer was cancelled. `undef`: No transfer exists for this domain. `unknown`: This TLD is not supported by Vercel's Registrar.
72
74
  */
73
- status: GetDomainTransferStatus;
75
+ status: GetDomainTransferResponseBodyStatus;
76
+ };
77
+
78
+ export const TransferPolicy = {
79
+ ChargeAndRenew: "charge-and-renew",
80
+ } as const;
81
+ export type TransferPolicy = ClosedEnum<typeof TransferPolicy>;
82
+
83
+ export type GetDomainTransferResponseBody1 = {
84
+ reason: string;
85
+ status: string;
86
+ transferable: boolean;
87
+ transferPolicy: TransferPolicy;
74
88
  };
75
89
 
90
+ export type GetDomainTransferResponseBody =
91
+ | GetDomainTransferResponseBody1
92
+ | GetDomainTransferResponseBody2;
93
+
76
94
  /** @internal */
77
95
  export const GetDomainTransferRequest$inboundSchema: z.ZodType<
78
96
  GetDomainTransferRequest,
@@ -133,6 +151,115 @@ export function getDomainTransferRequestFromJSON(
133
151
  );
134
152
  }
135
153
 
154
+ /** @internal */
155
+ export const ResponseBodyTransferPolicy$inboundSchema: z.ZodNativeEnum<
156
+ typeof ResponseBodyTransferPolicy
157
+ > = z.nativeEnum(ResponseBodyTransferPolicy);
158
+
159
+ /** @internal */
160
+ export const ResponseBodyTransferPolicy$outboundSchema: z.ZodNativeEnum<
161
+ typeof ResponseBodyTransferPolicy
162
+ > = ResponseBodyTransferPolicy$inboundSchema;
163
+
164
+ /**
165
+ * @internal
166
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
167
+ */
168
+ export namespace ResponseBodyTransferPolicy$ {
169
+ /** @deprecated use `ResponseBodyTransferPolicy$inboundSchema` instead. */
170
+ export const inboundSchema = ResponseBodyTransferPolicy$inboundSchema;
171
+ /** @deprecated use `ResponseBodyTransferPolicy$outboundSchema` instead. */
172
+ export const outboundSchema = ResponseBodyTransferPolicy$outboundSchema;
173
+ }
174
+
175
+ /** @internal */
176
+ export const GetDomainTransferResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
177
+ typeof GetDomainTransferResponseBodyStatus
178
+ > = z.nativeEnum(GetDomainTransferResponseBodyStatus);
179
+
180
+ /** @internal */
181
+ export const GetDomainTransferResponseBodyStatus$outboundSchema:
182
+ z.ZodNativeEnum<typeof GetDomainTransferResponseBodyStatus> =
183
+ GetDomainTransferResponseBodyStatus$inboundSchema;
184
+
185
+ /**
186
+ * @internal
187
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
188
+ */
189
+ export namespace GetDomainTransferResponseBodyStatus$ {
190
+ /** @deprecated use `GetDomainTransferResponseBodyStatus$inboundSchema` instead. */
191
+ export const inboundSchema =
192
+ GetDomainTransferResponseBodyStatus$inboundSchema;
193
+ /** @deprecated use `GetDomainTransferResponseBodyStatus$outboundSchema` instead. */
194
+ export const outboundSchema =
195
+ GetDomainTransferResponseBodyStatus$outboundSchema;
196
+ }
197
+
198
+ /** @internal */
199
+ export const GetDomainTransferResponseBody2$inboundSchema: z.ZodType<
200
+ GetDomainTransferResponseBody2,
201
+ z.ZodTypeDef,
202
+ unknown
203
+ > = z.object({
204
+ transferable: z.boolean(),
205
+ transferPolicy: z.nullable(ResponseBodyTransferPolicy$inboundSchema),
206
+ reason: z.string(),
207
+ status: GetDomainTransferResponseBodyStatus$inboundSchema,
208
+ });
209
+
210
+ /** @internal */
211
+ export type GetDomainTransferResponseBody2$Outbound = {
212
+ transferable: boolean;
213
+ transferPolicy: string | null;
214
+ reason: string;
215
+ status: string;
216
+ };
217
+
218
+ /** @internal */
219
+ export const GetDomainTransferResponseBody2$outboundSchema: z.ZodType<
220
+ GetDomainTransferResponseBody2$Outbound,
221
+ z.ZodTypeDef,
222
+ GetDomainTransferResponseBody2
223
+ > = z.object({
224
+ transferable: z.boolean(),
225
+ transferPolicy: z.nullable(ResponseBodyTransferPolicy$outboundSchema),
226
+ reason: z.string(),
227
+ status: GetDomainTransferResponseBodyStatus$outboundSchema,
228
+ });
229
+
230
+ /**
231
+ * @internal
232
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
233
+ */
234
+ export namespace GetDomainTransferResponseBody2$ {
235
+ /** @deprecated use `GetDomainTransferResponseBody2$inboundSchema` instead. */
236
+ export const inboundSchema = GetDomainTransferResponseBody2$inboundSchema;
237
+ /** @deprecated use `GetDomainTransferResponseBody2$outboundSchema` instead. */
238
+ export const outboundSchema = GetDomainTransferResponseBody2$outboundSchema;
239
+ /** @deprecated use `GetDomainTransferResponseBody2$Outbound` instead. */
240
+ export type Outbound = GetDomainTransferResponseBody2$Outbound;
241
+ }
242
+
243
+ export function getDomainTransferResponseBody2ToJSON(
244
+ getDomainTransferResponseBody2: GetDomainTransferResponseBody2,
245
+ ): string {
246
+ return JSON.stringify(
247
+ GetDomainTransferResponseBody2$outboundSchema.parse(
248
+ getDomainTransferResponseBody2,
249
+ ),
250
+ );
251
+ }
252
+
253
+ export function getDomainTransferResponseBody2FromJSON(
254
+ jsonString: string,
255
+ ): SafeParseResult<GetDomainTransferResponseBody2, SDKValidationError> {
256
+ return safeParse(
257
+ jsonString,
258
+ (x) => GetDomainTransferResponseBody2$inboundSchema.parse(JSON.parse(x)),
259
+ `Failed to parse 'GetDomainTransferResponseBody2' from JSON`,
260
+ );
261
+ }
262
+
136
263
  /** @internal */
137
264
  export const TransferPolicy$inboundSchema: z.ZodNativeEnum<
138
265
  typeof TransferPolicy
@@ -155,24 +282,68 @@ export namespace TransferPolicy$ {
155
282
  }
156
283
 
157
284
  /** @internal */
158
- export const GetDomainTransferStatus$inboundSchema: z.ZodNativeEnum<
159
- typeof GetDomainTransferStatus
160
- > = z.nativeEnum(GetDomainTransferStatus);
285
+ export const GetDomainTransferResponseBody1$inboundSchema: z.ZodType<
286
+ GetDomainTransferResponseBody1,
287
+ z.ZodTypeDef,
288
+ unknown
289
+ > = z.object({
290
+ reason: z.string(),
291
+ status: z.string(),
292
+ transferable: z.boolean(),
293
+ transferPolicy: TransferPolicy$inboundSchema,
294
+ });
295
+
296
+ /** @internal */
297
+ export type GetDomainTransferResponseBody1$Outbound = {
298
+ reason: string;
299
+ status: string;
300
+ transferable: boolean;
301
+ transferPolicy: string;
302
+ };
161
303
 
162
304
  /** @internal */
163
- export const GetDomainTransferStatus$outboundSchema: z.ZodNativeEnum<
164
- typeof GetDomainTransferStatus
165
- > = GetDomainTransferStatus$inboundSchema;
305
+ export const GetDomainTransferResponseBody1$outboundSchema: z.ZodType<
306
+ GetDomainTransferResponseBody1$Outbound,
307
+ z.ZodTypeDef,
308
+ GetDomainTransferResponseBody1
309
+ > = z.object({
310
+ reason: z.string(),
311
+ status: z.string(),
312
+ transferable: z.boolean(),
313
+ transferPolicy: TransferPolicy$outboundSchema,
314
+ });
166
315
 
167
316
  /**
168
317
  * @internal
169
318
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
170
319
  */
171
- export namespace GetDomainTransferStatus$ {
172
- /** @deprecated use `GetDomainTransferStatus$inboundSchema` instead. */
173
- export const inboundSchema = GetDomainTransferStatus$inboundSchema;
174
- /** @deprecated use `GetDomainTransferStatus$outboundSchema` instead. */
175
- export const outboundSchema = GetDomainTransferStatus$outboundSchema;
320
+ export namespace GetDomainTransferResponseBody1$ {
321
+ /** @deprecated use `GetDomainTransferResponseBody1$inboundSchema` instead. */
322
+ export const inboundSchema = GetDomainTransferResponseBody1$inboundSchema;
323
+ /** @deprecated use `GetDomainTransferResponseBody1$outboundSchema` instead. */
324
+ export const outboundSchema = GetDomainTransferResponseBody1$outboundSchema;
325
+ /** @deprecated use `GetDomainTransferResponseBody1$Outbound` instead. */
326
+ export type Outbound = GetDomainTransferResponseBody1$Outbound;
327
+ }
328
+
329
+ export function getDomainTransferResponseBody1ToJSON(
330
+ getDomainTransferResponseBody1: GetDomainTransferResponseBody1,
331
+ ): string {
332
+ return JSON.stringify(
333
+ GetDomainTransferResponseBody1$outboundSchema.parse(
334
+ getDomainTransferResponseBody1,
335
+ ),
336
+ );
337
+ }
338
+
339
+ export function getDomainTransferResponseBody1FromJSON(
340
+ jsonString: string,
341
+ ): SafeParseResult<GetDomainTransferResponseBody1, SDKValidationError> {
342
+ return safeParse(
343
+ jsonString,
344
+ (x) => GetDomainTransferResponseBody1$inboundSchema.parse(JSON.parse(x)),
345
+ `Failed to parse 'GetDomainTransferResponseBody1' from JSON`,
346
+ );
176
347
  }
177
348
 
178
349
  /** @internal */
@@ -180,32 +351,25 @@ export const GetDomainTransferResponseBody$inboundSchema: z.ZodType<
180
351
  GetDomainTransferResponseBody,
181
352
  z.ZodTypeDef,
182
353
  unknown
183
- > = z.object({
184
- transferable: z.boolean(),
185
- transferPolicy: z.nullable(TransferPolicy$inboundSchema),
186
- reason: z.string(),
187
- status: GetDomainTransferStatus$inboundSchema,
188
- });
354
+ > = z.union([
355
+ z.lazy(() => GetDomainTransferResponseBody1$inboundSchema),
356
+ z.lazy(() => GetDomainTransferResponseBody2$inboundSchema),
357
+ ]);
189
358
 
190
359
  /** @internal */
191
- export type GetDomainTransferResponseBody$Outbound = {
192
- transferable: boolean;
193
- transferPolicy: string | null;
194
- reason: string;
195
- status: string;
196
- };
360
+ export type GetDomainTransferResponseBody$Outbound =
361
+ | GetDomainTransferResponseBody1$Outbound
362
+ | GetDomainTransferResponseBody2$Outbound;
197
363
 
198
364
  /** @internal */
199
365
  export const GetDomainTransferResponseBody$outboundSchema: z.ZodType<
200
366
  GetDomainTransferResponseBody$Outbound,
201
367
  z.ZodTypeDef,
202
368
  GetDomainTransferResponseBody
203
- > = z.object({
204
- transferable: z.boolean(),
205
- transferPolicy: z.nullable(TransferPolicy$outboundSchema),
206
- reason: z.string(),
207
- status: GetDomainTransferStatus$outboundSchema,
208
- });
369
+ > = z.union([
370
+ z.lazy(() => GetDomainTransferResponseBody1$outboundSchema),
371
+ z.lazy(() => GetDomainTransferResponseBody2$outboundSchema),
372
+ ]);
209
373
 
210
374
  /**
211
375
  * @internal
@@ -65,6 +65,7 @@ export type GetEdgeConfigPurpose =
65
65
  export type GetEdgeConfigResponseBody = {
66
66
  createdAt: number;
67
67
  updatedAt: number;
68
+ deletedAt?: number | undefined;
68
69
  id: string;
69
70
  /**
70
71
  * Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
@@ -475,6 +476,7 @@ export const GetEdgeConfigResponseBody$inboundSchema: z.ZodType<
475
476
  > = z.object({
476
477
  createdAt: z.number(),
477
478
  updatedAt: z.number(),
479
+ deletedAt: z.number().optional(),
478
480
  id: z.string(),
479
481
  slug: z.string(),
480
482
  ownerId: z.string(),
@@ -494,6 +496,7 @@ export const GetEdgeConfigResponseBody$inboundSchema: z.ZodType<
494
496
  export type GetEdgeConfigResponseBody$Outbound = {
495
497
  createdAt: number;
496
498
  updatedAt: number;
499
+ deletedAt?: number | undefined;
497
500
  id: string;
498
501
  slug: string;
499
502
  ownerId: string;
@@ -517,6 +520,7 @@ export const GetEdgeConfigResponseBody$outboundSchema: z.ZodType<
517
520
  > = z.object({
518
521
  createdAt: z.number(),
519
522
  updatedAt: z.number(),
523
+ deletedAt: z.number().optional(),
520
524
  id: z.string(),
521
525
  slug: z.string(),
522
526
  ownerId: z.string(),
@@ -713,6 +713,7 @@ export const GetProjectsFramework = {
713
713
  Vitepress: "vitepress",
714
714
  Vuepress: "vuepress",
715
715
  Parcel: "parcel",
716
+ Fastapi: "fastapi",
716
717
  Fasthtml: "fasthtml",
717
718
  SanityV3: "sanity-v3",
718
719
  Sanity: "sanity",
@@ -15,8 +15,10 @@ export const QueryParamRole = {
15
15
  Owner: "OWNER",
16
16
  Member: "MEMBER",
17
17
  Developer: "DEVELOPER",
18
- Viewer: "VIEWER",
18
+ Security: "SECURITY",
19
19
  Billing: "BILLING",
20
+ Viewer: "VIEWER",
21
+ ViewerForPlus: "VIEWER_FOR_PLUS",
20
22
  Contributor: "CONTRIBUTOR",
21
23
  } as const;
22
24
  /**
@@ -83,11 +85,11 @@ export const GetTeamMembersRole = {
83
85
  Owner: "OWNER",
84
86
  Member: "MEMBER",
85
87
  Developer: "DEVELOPER",
86
- Viewer: "VIEWER",
87
- Billing: "BILLING",
88
- Contributor: "CONTRIBUTOR",
89
88
  Security: "SECURITY",
89
+ Billing: "BILLING",
90
+ Viewer: "VIEWER",
90
91
  ViewerForPlus: "VIEWER_FOR_PLUS",
92
+ Contributor: "CONTRIBUTOR",
91
93
  } as const;
92
94
  /**
93
95
  * Role of this user in the team.
@@ -209,11 +211,11 @@ export const GetTeamMembersTeamsRole = {
209
211
  Owner: "OWNER",
210
212
  Member: "MEMBER",
211
213
  Developer: "DEVELOPER",
212
- Viewer: "VIEWER",
213
- Billing: "BILLING",
214
- Contributor: "CONTRIBUTOR",
215
214
  Security: "SECURITY",
215
+ Billing: "BILLING",
216
+ Viewer: "VIEWER",
216
217
  ViewerForPlus: "VIEWER_FOR_PLUS",
218
+ Contributor: "CONTRIBUTOR",
217
219
  } as const;
218
220
  export type GetTeamMembersTeamsRole = ClosedEnum<
219
221
  typeof GetTeamMembersTeamsRole
@@ -223,11 +225,11 @@ export const GetTeamMembersTeamRoles = {
223
225
  Owner: "OWNER",
224
226
  Member: "MEMBER",
225
227
  Developer: "DEVELOPER",
226
- Viewer: "VIEWER",
227
- Billing: "BILLING",
228
- Contributor: "CONTRIBUTOR",
229
228
  Security: "SECURITY",
229
+ Billing: "BILLING",
230
+ Viewer: "VIEWER",
230
231
  ViewerForPlus: "VIEWER_FOR_PLUS",
232
+ Contributor: "CONTRIBUTOR",
231
233
  } as const;
232
234
  export type GetTeamMembersTeamRoles = ClosedEnum<
233
235
  typeof GetTeamMembersTeamRoles
@@ -183,6 +183,7 @@ export const GetWebhooksResponseBodyFramework = {
183
183
  Vitepress: "vitepress",
184
184
  Vuepress: "vuepress",
185
185
  Parcel: "parcel",
186
+ Fastapi: "fastapi",
186
187
  Fasthtml: "fasthtml",
187
188
  SanityV3: "sanity-v3",
188
189
  Sanity: "sanity",
@@ -12,6 +12,13 @@ import { ClosedEnum } from "../types/enums.js";
12
12
  import { Result as SafeParseResult } from "../types/fp.js";
13
13
  import { SDKValidationError } from "./sdkvalidationerror.js";
14
14
 
15
+ export const Ownership = {
16
+ Owned: "owned",
17
+ Linked: "linked",
18
+ Sandbox: "sandbox",
19
+ } as const;
20
+ export type Ownership = ClosedEnum<typeof Ownership>;
21
+
15
22
  export const ImportResourceStatus = {
16
23
  Ready: "ready",
17
24
  Pending: "pending",
@@ -94,12 +101,14 @@ export type ImportResourceSecrets = {
94
101
  };
95
102
 
96
103
  export type ImportResourceRequestBody = {
104
+ ownership?: Ownership | undefined;
97
105
  productId: string;
98
106
  name: string;
99
107
  status: ImportResourceStatus;
100
108
  metadata?: { [k: string]: any } | undefined;
101
109
  billingPlan?: BillingPlan | undefined;
102
110
  notification?: Notification | undefined;
111
+ extras?: { [k: string]: any } | undefined;
103
112
  secrets?: Array<ImportResourceSecrets> | undefined;
104
113
  };
105
114
 
@@ -113,6 +122,25 @@ export type ImportResourceResponseBody = {
113
122
  name: string;
114
123
  };
115
124
 
125
+ /** @internal */
126
+ export const Ownership$inboundSchema: z.ZodNativeEnum<typeof Ownership> = z
127
+ .nativeEnum(Ownership);
128
+
129
+ /** @internal */
130
+ export const Ownership$outboundSchema: z.ZodNativeEnum<typeof Ownership> =
131
+ Ownership$inboundSchema;
132
+
133
+ /**
134
+ * @internal
135
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
136
+ */
137
+ export namespace Ownership$ {
138
+ /** @deprecated use `Ownership$inboundSchema` instead. */
139
+ export const inboundSchema = Ownership$inboundSchema;
140
+ /** @deprecated use `Ownership$outboundSchema` instead. */
141
+ export const outboundSchema = Ownership$outboundSchema;
142
+ }
143
+
116
144
  /** @internal */
117
145
  export const ImportResourceStatus$inboundSchema: z.ZodNativeEnum<
118
146
  typeof ImportResourceStatus
@@ -563,24 +591,28 @@ export const ImportResourceRequestBody$inboundSchema: z.ZodType<
563
591
  z.ZodTypeDef,
564
592
  unknown
565
593
  > = z.object({
594
+ ownership: Ownership$inboundSchema.optional(),
566
595
  productId: z.string(),
567
596
  name: z.string(),
568
597
  status: ImportResourceStatus$inboundSchema,
569
598
  metadata: z.record(z.any()).optional(),
570
599
  billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
571
600
  notification: z.lazy(() => Notification$inboundSchema).optional(),
601
+ extras: z.record(z.any()).optional(),
572
602
  secrets: z.array(z.lazy(() => ImportResourceSecrets$inboundSchema))
573
603
  .optional(),
574
604
  });
575
605
 
576
606
  /** @internal */
577
607
  export type ImportResourceRequestBody$Outbound = {
608
+ ownership?: string | undefined;
578
609
  productId: string;
579
610
  name: string;
580
611
  status: string;
581
612
  metadata?: { [k: string]: any } | undefined;
582
613
  billingPlan?: BillingPlan$Outbound | undefined;
583
614
  notification?: Notification$Outbound | undefined;
615
+ extras?: { [k: string]: any } | undefined;
584
616
  secrets?: Array<ImportResourceSecrets$Outbound> | undefined;
585
617
  };
586
618
 
@@ -590,12 +622,14 @@ export const ImportResourceRequestBody$outboundSchema: z.ZodType<
590
622
  z.ZodTypeDef,
591
623
  ImportResourceRequestBody
592
624
  > = z.object({
625
+ ownership: Ownership$outboundSchema.optional(),
593
626
  productId: z.string(),
594
627
  name: z.string(),
595
628
  status: ImportResourceStatus$outboundSchema,
596
629
  metadata: z.record(z.any()).optional(),
597
630
  billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
598
631
  notification: z.lazy(() => Notification$outboundSchema).optional(),
632
+ extras: z.record(z.any()).optional(),
599
633
  secrets: z.array(z.lazy(() => ImportResourceSecrets$outboundSchema))
600
634
  .optional(),
601
635
  });
@@ -122,6 +122,8 @@ export type PatchTeamDefaultDeploymentProtection = {
122
122
  * The time period to keep non-production deployments for
123
123
  */
124
124
  export const Expiration = {
125
+ Threey: "3y",
126
+ Twoy: "2y",
125
127
  Oney: "1y",
126
128
  Sixm: "6m",
127
129
  Threem: "3m",
@@ -141,6 +143,8 @@ export type Expiration = ClosedEnum<typeof Expiration>;
141
143
  * The time period to keep production deployments for
142
144
  */
143
145
  export const ExpirationProduction = {
146
+ Threey: "3y",
147
+ Twoy: "2y",
144
148
  Oney: "1y",
145
149
  Sixm: "6m",
146
150
  Threem: "3m",