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