@vercel/sdk 1.10.6 → 1.10.8

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 (259) hide show
  1. package/README.md +58 -45
  2. package/bin/mcp-server.js +6081 -1764
  3. package/bin/mcp-server.js.map +51 -42
  4. package/docs/sdks/integrations/README.md +209 -0
  5. package/docs/sdks/projects/README.md +2 -0
  6. package/docs/sdks/teams/README.md +12 -0
  7. package/docs/sdks/vercel/README.md +74 -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 +12 -4
  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 +62 -0
  15. package/esm/__tests__/integrations.test.js.map +1 -1
  16. package/esm/__tests__/rollingrelease.test.js +2 -6
  17. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  18. package/esm/__tests__/security.test.js +1 -11
  19. package/esm/__tests__/security.test.js.map +1 -1
  20. package/esm/__tests__/vercel.test.js +28 -1
  21. package/esm/__tests__/vercel.test.js.map +1 -1
  22. package/esm/funcs/domainsCheckDomainPrice.js +2 -2
  23. package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
  24. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +14 -0
  25. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
  26. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +84 -0
  27. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
  28. package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts +20 -0
  29. package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
  30. package/esm/funcs/integrationsConnectIntegrationResourceToProject.js +97 -0
  31. package/esm/funcs/integrationsConnectIntegrationResourceToProject.js.map +1 -0
  32. package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts +21 -0
  33. package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
  34. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +90 -0
  35. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -0
  36. package/esm/funcs/marketplaceExchangeSsoToken.js +2 -2
  37. package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
  38. package/esm/funcs/marketplaceSubmitInvoice.js +2 -2
  39. package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
  40. package/esm/funcs/marketplaceUpdateInvoice.js +2 -2
  41. package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
  42. package/esm/funcs/projectsGetProjects.js +1 -0
  43. package/esm/funcs/projectsGetProjects.js.map +1 -1
  44. package/esm/lib/config.d.ts +3 -3
  45. package/esm/lib/config.js +3 -3
  46. package/esm/mcp-server/mcp-server.js +1 -1
  47. package/esm/mcp-server/server.d.ts.map +1 -1
  48. package/esm/mcp-server/server.js +7 -1
  49. package/esm/mcp-server/server.js.map +1 -1
  50. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +7 -0
  51. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
  52. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +26 -0
  53. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
  54. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts +7 -0
  55. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
  56. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js +27 -0
  57. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js.map +1 -0
  58. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts +7 -0
  59. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
  60. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js +28 -0
  61. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js.map +1 -0
  62. package/esm/models/acceptprojecttransferrequestop.d.ts +37 -0
  63. package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
  64. package/esm/models/acceptprojecttransferrequestop.js +40 -1
  65. package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
  66. package/esm/models/authuser.d.ts +3 -3
  67. package/esm/models/authuser.js +1 -1
  68. package/esm/models/authuser.js.map +1 -1
  69. package/esm/models/canceldeploymentop.d.ts +80 -42
  70. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  71. package/esm/models/canceldeploymentop.js +44 -15
  72. package/esm/models/canceldeploymentop.js.map +1 -1
  73. package/esm/models/connectintegrationresourcetoprojectop.d.ts +68 -0
  74. package/esm/models/connectintegrationresourcetoprojectop.d.ts.map +1 -0
  75. package/esm/models/connectintegrationresourcetoprojectop.js +73 -0
  76. package/esm/models/connectintegrationresourcetoprojectop.js.map +1 -0
  77. package/esm/models/createdeploymentop.d.ts +292 -254
  78. package/esm/models/createdeploymentop.d.ts.map +1 -1
  79. package/esm/models/createdeploymentop.js +244 -217
  80. package/esm/models/createdeploymentop.js.map +1 -1
  81. package/esm/models/createintegrationstoredirectop.d.ts +5995 -0
  82. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -0
  83. package/esm/models/createintegrationstoredirectop.js +6597 -0
  84. package/esm/models/createintegrationstoredirectop.js.map +1 -0
  85. package/esm/models/createortransferdomainop.d.ts +33 -0
  86. package/esm/models/createortransferdomainop.d.ts.map +1 -1
  87. package/esm/models/createortransferdomainop.js +23 -0
  88. package/esm/models/createortransferdomainop.js.map +1 -1
  89. package/esm/models/createprojectenvop.d.ts +6 -6
  90. package/esm/models/createprojectenvop.js +2 -2
  91. package/esm/models/createprojectenvop.js.map +1 -1
  92. package/esm/models/createprojectop.d.ts +183 -162
  93. package/esm/models/createprojectop.d.ts.map +1 -1
  94. package/esm/models/createprojectop.js +154 -154
  95. package/esm/models/createprojectop.js.map +1 -1
  96. package/esm/models/createwebhookop.d.ts +12 -0
  97. package/esm/models/createwebhookop.d.ts.map +1 -1
  98. package/esm/models/createwebhookop.js +4 -0
  99. package/esm/models/createwebhookop.js.map +1 -1
  100. package/esm/models/editprojectenvop.d.ts +3 -3
  101. package/esm/models/editprojectenvop.js +1 -1
  102. package/esm/models/editprojectenvop.js.map +1 -1
  103. package/esm/models/filterprojectenvsop.d.ts +9 -9
  104. package/esm/models/filterprojectenvsop.js +3 -3
  105. package/esm/models/filterprojectenvsop.js.map +1 -1
  106. package/esm/models/getconfigurationop.d.ts +6 -0
  107. package/esm/models/getconfigurationop.d.ts.map +1 -1
  108. package/esm/models/getconfigurationop.js +2 -0
  109. package/esm/models/getconfigurationop.js.map +1 -1
  110. package/esm/models/getconfigurationproductsop.d.ts +533 -533
  111. package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
  112. package/esm/models/getconfigurationproductsop.js +666 -665
  113. package/esm/models/getconfigurationproductsop.js.map +1 -1
  114. package/esm/models/getconfigurationsop.d.ts +6 -0
  115. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  116. package/esm/models/getconfigurationsop.js +2 -0
  117. package/esm/models/getconfigurationsop.js.map +1 -1
  118. package/esm/models/getdeploymentop.d.ts +45 -7
  119. package/esm/models/getdeploymentop.d.ts.map +1 -1
  120. package/esm/models/getdeploymentop.js +30 -2
  121. package/esm/models/getdeploymentop.js.map +1 -1
  122. package/esm/models/getdomainop.d.ts +33 -0
  123. package/esm/models/getdomainop.d.ts.map +1 -1
  124. package/esm/models/getdomainop.js +24 -0
  125. package/esm/models/getdomainop.js.map +1 -1
  126. package/esm/models/getdomainsop.d.ts +33 -0
  127. package/esm/models/getdomainsop.d.ts.map +1 -1
  128. package/esm/models/getdomainsop.js +23 -0
  129. package/esm/models/getdomainsop.js.map +1 -1
  130. package/esm/models/getintegrationresourceop.d.ts +13 -13
  131. package/esm/models/getintegrationresourceop.d.ts.map +1 -1
  132. package/esm/models/getintegrationresourceop.js +13 -13
  133. package/esm/models/getintegrationresourceop.js.map +1 -1
  134. package/esm/models/getprojectsop.d.ts +57 -0
  135. package/esm/models/getprojectsop.d.ts.map +1 -1
  136. package/esm/models/getprojectsop.js +24 -0
  137. package/esm/models/getprojectsop.js.map +1 -1
  138. package/esm/models/getteammembersop.d.ts +102 -9
  139. package/esm/models/getteammembersop.d.ts.map +1 -1
  140. package/esm/models/getteammembersop.js +60 -3
  141. package/esm/models/getteammembersop.js.map +1 -1
  142. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +247 -0
  143. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +1 -0
  144. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +246 -0
  145. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +1 -0
  146. package/esm/models/getwebhookop.d.ts +6 -0
  147. package/esm/models/getwebhookop.d.ts.map +1 -1
  148. package/esm/models/getwebhookop.js +2 -0
  149. package/esm/models/getwebhookop.js.map +1 -1
  150. package/esm/models/getwebhooksop.d.ts +27 -15
  151. package/esm/models/getwebhooksop.d.ts.map +1 -1
  152. package/esm/models/getwebhooksop.js +19 -15
  153. package/esm/models/getwebhooksop.js.map +1 -1
  154. package/esm/models/inviteusertoteamop.d.ts +3 -0
  155. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  156. package/esm/models/inviteusertoteamop.js +1 -0
  157. package/esm/models/inviteusertoteamop.js.map +1 -1
  158. package/esm/models/patchteamop.d.ts +253 -0
  159. package/esm/models/patchteamop.d.ts.map +1 -1
  160. package/esm/models/patchteamop.js +150 -0
  161. package/esm/models/patchteamop.js.map +1 -1
  162. package/esm/models/removeprojectenvop.d.ts +9 -9
  163. package/esm/models/removeprojectenvop.js +3 -3
  164. package/esm/models/removeprojectenvop.js.map +1 -1
  165. package/esm/models/team.d.ts +47 -0
  166. package/esm/models/team.d.ts.map +1 -1
  167. package/esm/models/team.js +36 -0
  168. package/esm/models/team.js.map +1 -1
  169. package/esm/models/teamlimited.d.ts +3 -0
  170. package/esm/models/teamlimited.d.ts.map +1 -1
  171. package/esm/models/teamlimited.js +1 -0
  172. package/esm/models/teamlimited.js.map +1 -1
  173. package/esm/models/updatefirewallconfigop.d.ts +32 -32
  174. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  175. package/esm/models/updatefirewallconfigop.js +49 -49
  176. package/esm/models/updatefirewallconfigop.js.map +1 -1
  177. package/esm/models/updateinvoiceop.d.ts +36 -15
  178. package/esm/models/updateinvoiceop.d.ts.map +1 -1
  179. package/esm/models/updateinvoiceop.js +37 -16
  180. package/esm/models/updateinvoiceop.js.map +1 -1
  181. package/esm/models/updateprojectdatacacheop.d.ts +21 -0
  182. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  183. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  184. package/esm/models/updateprojectop.d.ts +21 -0
  185. package/esm/models/updateprojectop.d.ts.map +1 -1
  186. package/esm/models/updateprojectop.js.map +1 -1
  187. package/esm/models/userevent.d.ts +406 -305
  188. package/esm/models/userevent.d.ts.map +1 -1
  189. package/esm/models/userevent.js +467 -365
  190. package/esm/models/userevent.js.map +1 -1
  191. package/esm/sdk/integrations.d.ts +16 -0
  192. package/esm/sdk/integrations.d.ts.map +1 -1
  193. package/esm/sdk/integrations.js +20 -0
  194. package/esm/sdk/integrations.js.map +1 -1
  195. package/esm/sdk/sdk.d.ts +3 -1
  196. package/esm/sdk/sdk.d.ts.map +1 -1
  197. package/esm/sdk/sdk.js +5 -0
  198. package/esm/sdk/sdk.js.map +1 -1
  199. package/examples/package-lock.json +1 -1
  200. package/jsr.json +1 -1
  201. package/package.json +1 -1
  202. package/src/__tests__/accessgroups.test.ts +3 -1
  203. package/src/__tests__/domains.test.ts +12 -4
  204. package/src/__tests__/edgeconfig.test.ts +6 -6
  205. package/src/__tests__/integrations.test.ts +65 -0
  206. package/src/__tests__/rollingrelease.test.ts +2 -6
  207. package/src/__tests__/security.test.ts +1 -11
  208. package/src/__tests__/vercel.test.ts +36 -1
  209. package/src/funcs/domainsCheckDomainPrice.ts +2 -2
  210. package/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +207 -0
  211. package/src/funcs/integrationsConnectIntegrationResourceToProject.ts +213 -0
  212. package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +207 -0
  213. package/src/funcs/marketplaceExchangeSsoToken.ts +2 -2
  214. package/src/funcs/marketplaceSubmitInvoice.ts +2 -2
  215. package/src/funcs/marketplaceUpdateInvoice.ts +2 -2
  216. package/src/funcs/projectsGetProjects.ts +1 -0
  217. package/src/lib/config.ts +3 -3
  218. package/src/mcp-server/mcp-server.ts +1 -1
  219. package/src/mcp-server/server.ts +9 -1
  220. package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +41 -0
  221. package/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts +37 -0
  222. package/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts +39 -0
  223. package/src/models/acceptprojecttransferrequestop.ts +88 -1
  224. package/src/models/authuser.ts +1 -1
  225. package/src/models/canceldeploymentop.ts +71 -24
  226. package/src/models/connectintegrationresourcetoprojectop.ts +185 -0
  227. package/src/models/createdeploymentop.ts +545 -503
  228. package/src/models/createintegrationstoredirectop.ts +15739 -0
  229. package/src/models/createortransferdomainop.ts +41 -0
  230. package/src/models/createprojectenvop.ts +2 -2
  231. package/src/models/createprojectop.ts +364 -343
  232. package/src/models/createwebhookop.ts +4 -0
  233. package/src/models/editprojectenvop.ts +1 -1
  234. package/src/models/filterprojectenvsop.ts +3 -3
  235. package/src/models/getconfigurationop.ts +2 -0
  236. package/src/models/getconfigurationproductsop.ts +1326 -1163
  237. package/src/models/getconfigurationsop.ts +2 -0
  238. package/src/models/getdeploymentop.ts +59 -9
  239. package/src/models/getdomainop.ts +37 -0
  240. package/src/models/getdomainsop.ts +39 -0
  241. package/src/models/getintegrationresourceop.ts +26 -20
  242. package/src/models/getprojectsop.ts +63 -0
  243. package/src/models/getteammembersop.ts +84 -3
  244. package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +575 -0
  245. package/src/models/getwebhookop.ts +2 -0
  246. package/src/models/getwebhooksop.ts +31 -25
  247. package/src/models/inviteusertoteamop.ts +1 -0
  248. package/src/models/patchteamop.ts +254 -0
  249. package/src/models/removeprojectenvop.ts +3 -3
  250. package/src/models/team.ts +92 -0
  251. package/src/models/teamlimited.ts +1 -0
  252. package/src/models/updatefirewallconfigop.ts +74 -68
  253. package/src/models/updateinvoiceop.ts +78 -27
  254. package/src/models/updateprojectdatacacheop.ts +21 -0
  255. package/src/models/updateprojectop.ts +21 -0
  256. package/src/models/userevent.ts +918 -682
  257. package/src/sdk/integrations.ts +41 -0
  258. package/src/sdk/sdk.ts +23 -1
  259. package/vercel-spec.json +4270 -1150
@@ -4,7 +4,10 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
7
+ import {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../lib/schemas.js";
8
11
  import { ClosedEnum } from "../types/enums.js";
9
12
  import { Result as SafeParseResult } from "../types/fp.js";
10
13
  import { SDKValidationError } from "./sdkvalidationerror.js";
@@ -15,12 +18,19 @@ export type PaidFeatures = {
15
18
  previewDeploymentSuffix?: boolean | null | undefined;
16
19
  };
17
20
 
21
+ export type AcceptedPolicies = {
22
+ eula: Date;
23
+ privacy: Date;
24
+ additionalProperties?: { [k: string]: Date };
25
+ };
26
+
18
27
  export type AcceptProjectTransferRequestRequestBody = {
19
28
  /**
20
29
  * The desired name for the project
21
30
  */
22
31
  newProjectName?: string | undefined;
23
32
  paidFeatures?: PaidFeatures | undefined;
33
+ acceptedPolicies?: { [k: string]: AcceptedPolicies } | undefined;
24
34
  };
25
35
 
26
36
  export type AcceptProjectTransferRequestRequest = {
@@ -133,6 +143,78 @@ export function paidFeaturesFromJSON(
133
143
  );
134
144
  }
135
145
 
146
+ /** @internal */
147
+ export const AcceptedPolicies$inboundSchema: z.ZodType<
148
+ AcceptedPolicies,
149
+ z.ZodTypeDef,
150
+ unknown
151
+ > = collectExtraKeys$(
152
+ z.object({
153
+ eula: z.string().datetime({ offset: true }).transform(v => new Date(v)),
154
+ privacy: z.string().datetime({ offset: true }).transform(v => new Date(v)),
155
+ }).catchall(
156
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
157
+ ),
158
+ "additionalProperties",
159
+ true,
160
+ );
161
+
162
+ /** @internal */
163
+ export type AcceptedPolicies$Outbound = {
164
+ eula: string;
165
+ privacy: string;
166
+ [additionalProperties: string]: unknown;
167
+ };
168
+
169
+ /** @internal */
170
+ export const AcceptedPolicies$outboundSchema: z.ZodType<
171
+ AcceptedPolicies$Outbound,
172
+ z.ZodTypeDef,
173
+ AcceptedPolicies
174
+ > = z.object({
175
+ eula: z.date().transform(v => v.toISOString()),
176
+ privacy: z.date().transform(v => v.toISOString()),
177
+ additionalProperties: z.record(z.date().transform(v => v.toISOString())),
178
+ }).transform((v) => {
179
+ return {
180
+ ...v.additionalProperties,
181
+ ...remap$(v, {
182
+ additionalProperties: null,
183
+ }),
184
+ };
185
+ });
186
+
187
+ /**
188
+ * @internal
189
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
190
+ */
191
+ export namespace AcceptedPolicies$ {
192
+ /** @deprecated use `AcceptedPolicies$inboundSchema` instead. */
193
+ export const inboundSchema = AcceptedPolicies$inboundSchema;
194
+ /** @deprecated use `AcceptedPolicies$outboundSchema` instead. */
195
+ export const outboundSchema = AcceptedPolicies$outboundSchema;
196
+ /** @deprecated use `AcceptedPolicies$Outbound` instead. */
197
+ export type Outbound = AcceptedPolicies$Outbound;
198
+ }
199
+
200
+ export function acceptedPoliciesToJSON(
201
+ acceptedPolicies: AcceptedPolicies,
202
+ ): string {
203
+ return JSON.stringify(
204
+ AcceptedPolicies$outboundSchema.parse(acceptedPolicies),
205
+ );
206
+ }
207
+
208
+ export function acceptedPoliciesFromJSON(
209
+ jsonString: string,
210
+ ): SafeParseResult<AcceptedPolicies, SDKValidationError> {
211
+ return safeParse(
212
+ jsonString,
213
+ (x) => AcceptedPolicies$inboundSchema.parse(JSON.parse(x)),
214
+ `Failed to parse 'AcceptedPolicies' from JSON`,
215
+ );
216
+ }
217
+
136
218
  /** @internal */
137
219
  export const AcceptProjectTransferRequestRequestBody$inboundSchema: z.ZodType<
138
220
  AcceptProjectTransferRequestRequestBody,
@@ -141,12 +223,15 @@ export const AcceptProjectTransferRequestRequestBody$inboundSchema: z.ZodType<
141
223
  > = z.object({
142
224
  newProjectName: z.string().optional(),
143
225
  paidFeatures: z.lazy(() => PaidFeatures$inboundSchema).optional(),
226
+ acceptedPolicies: z.record(z.lazy(() => AcceptedPolicies$inboundSchema))
227
+ .optional(),
144
228
  });
145
229
 
146
230
  /** @internal */
147
231
  export type AcceptProjectTransferRequestRequestBody$Outbound = {
148
232
  newProjectName?: string | undefined;
149
233
  paidFeatures?: PaidFeatures$Outbound | undefined;
234
+ acceptedPolicies?: { [k: string]: AcceptedPolicies$Outbound } | undefined;
150
235
  };
151
236
 
152
237
  /** @internal */
@@ -157,6 +242,8 @@ export const AcceptProjectTransferRequestRequestBody$outboundSchema: z.ZodType<
157
242
  > = z.object({
158
243
  newProjectName: z.string().optional(),
159
244
  paidFeatures: z.lazy(() => PaidFeatures$outboundSchema).optional(),
245
+ acceptedPolicies: z.record(z.lazy(() => AcceptedPolicies$outboundSchema))
246
+ .optional(),
160
247
  });
161
248
 
162
249
  /**
@@ -289,9 +289,9 @@ export type ImportFlowGitNamespace = string | number;
289
289
  export type ImportFlowGitNamespaceId = string | number;
290
290
 
291
291
  export const ImportFlowGitProvider = {
292
- Github: "github",
293
292
  Gitlab: "gitlab",
294
293
  Bitbucket: "bitbucket",
294
+ Github: "github",
295
295
  GithubLimited: "github-limited",
296
296
  GithubCustomHost: "github-custom-host",
297
297
  } as const;
@@ -127,11 +127,11 @@ export type CancelDeploymentProjectSettings = {
127
127
  };
128
128
 
129
129
  export const CancelDeploymentDeploymentsStatus = {
130
- Error: "error",
131
- Timeout: "timeout",
132
130
  Skipped: "skipped",
133
131
  Pending: "pending",
134
132
  Ready: "ready",
133
+ Error: "error",
134
+ Timeout: "timeout",
135
135
  } as const;
136
136
  export type CancelDeploymentDeploymentsStatus = ClosedEnum<
137
137
  typeof CancelDeploymentDeploymentsStatus
@@ -229,8 +229,8 @@ export type CancelDeploymentCreator = {
229
229
  };
230
230
 
231
231
  export const CancelDeploymentDeploymentsReadyState = {
232
- Error: "ERROR",
233
232
  Building: "BUILDING",
233
+ Error: "ERROR",
234
234
  Initializing: "INITIALIZING",
235
235
  Ready: "READY",
236
236
  } as const;
@@ -268,8 +268,8 @@ export type CancelDeploymentStatus = ClosedEnum<typeof CancelDeploymentStatus>;
268
268
  export type CancelDeploymentTeam = {
269
269
  id: string;
270
270
  name: string;
271
- slug: string;
272
271
  avatar?: string | undefined;
272
+ slug: string;
273
273
  };
274
274
 
275
275
  export type CancelDeploymentCustomEnvironment2 = {
@@ -891,6 +891,7 @@ export type CancelDeploymentFunctions = {
891
891
  experimentalTriggers?:
892
892
  | Array<CancelDeploymentExperimentalTriggers>
893
893
  | undefined;
894
+ supportsCancellation?: boolean | undefined;
894
895
  };
895
896
 
896
897
  export const CancelDeploymentPlan = {
@@ -907,12 +908,12 @@ export type CancelDeploymentRoutes3 = {
907
908
  };
908
909
 
909
910
  export const RoutesHandle = {
910
- Filesystem: "filesystem",
911
911
  Error: "error",
912
+ Filesystem: "filesystem",
912
913
  Hit: "hit",
913
914
  Miss: "miss",
914
- Resource: "resource",
915
915
  Rewrite: "rewrite",
916
+ Resource: "resource",
916
917
  } as const;
917
918
  export type RoutesHandle = ClosedEnum<typeof RoutesHandle>;
918
919
 
@@ -1081,8 +1082,8 @@ export type CancelDeploymentRoutesType = ClosedEnum<
1081
1082
  >;
1082
1083
 
1083
1084
  export const RoutesOp = {
1084
- Set: "set",
1085
1085
  Append: "append",
1086
+ Set: "set",
1086
1087
  Delete: "delete",
1087
1088
  } as const;
1088
1089
  export type RoutesOp = ClosedEnum<typeof RoutesOp>;
@@ -1167,8 +1168,8 @@ export type CancelDeploymentGitRepoDeploymentsResponseType = ClosedEnum<
1167
1168
  >;
1168
1169
 
1169
1170
  export const CancelDeploymentGitRepoDeploymentsResponseOwnerType = {
1170
- User: "user",
1171
1171
  Team: "team",
1172
+ User: "user",
1172
1173
  } as const;
1173
1174
  export type CancelDeploymentGitRepoDeploymentsResponseOwnerType = ClosedEnum<
1174
1175
  typeof CancelDeploymentGitRepoDeploymentsResponseOwnerType
@@ -1195,8 +1196,8 @@ export type CancelDeploymentGitRepoDeploymentsType = ClosedEnum<
1195
1196
  >;
1196
1197
 
1197
1198
  export const CancelDeploymentGitRepoDeploymentsOwnerType = {
1198
- User: "user",
1199
1199
  Team: "team",
1200
+ User: "user",
1200
1201
  } as const;
1201
1202
  export type CancelDeploymentGitRepoDeploymentsOwnerType = ClosedEnum<
1202
1203
  typeof CancelDeploymentGitRepoDeploymentsOwnerType
@@ -1223,8 +1224,8 @@ export type CancelDeploymentGitRepoType = ClosedEnum<
1223
1224
  >;
1224
1225
 
1225
1226
  export const CancelDeploymentGitRepoOwnerType = {
1226
- User: "user",
1227
1227
  Team: "team",
1228
+ User: "user",
1228
1229
  } as const;
1229
1230
  export type CancelDeploymentGitRepoOwnerType = ClosedEnum<
1230
1231
  typeof CancelDeploymentGitRepoOwnerType
@@ -1275,7 +1276,7 @@ export type CancelDeploymentFlags =
1275
1276
  | Array<CancelDeploymentFlags2>;
1276
1277
 
1277
1278
  /**
1278
- * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment.
1279
+ * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out.
1279
1280
  */
1280
1281
  export type MicrofrontendsApplications = {
1281
1282
  isDefaultApp?: boolean | undefined;
@@ -1290,12 +1291,31 @@ export type MicrofrontendsApplications = {
1290
1291
  deploymentHost?: string | undefined;
1291
1292
  };
1292
1293
 
1294
+ /**
1295
+ * 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.
1296
+ */
1297
+ export const MicrofrontendsMfeConfigUploadState = {
1298
+ Error: "error",
1299
+ Success: "success",
1300
+ NoConfig: "no_config",
1301
+ } as const;
1302
+ /**
1303
+ * 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.
1304
+ */
1305
+ export type MicrofrontendsMfeConfigUploadState = ClosedEnum<
1306
+ typeof MicrofrontendsMfeConfigUploadState
1307
+ >;
1308
+
1293
1309
  export type CancelDeploymentMicrofrontends2 = {
1310
+ isDefaultApp: boolean;
1294
1311
  /**
1295
- * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment.
1312
+ * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out.
1296
1313
  */
1297
1314
  applications?: { [k: string]: MicrofrontendsApplications } | undefined;
1298
- isDefaultApp: boolean;
1315
+ /**
1316
+ * 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.
1317
+ */
1318
+ mfeConfigUploadState?: MicrofrontendsMfeConfigUploadState | undefined;
1299
1319
  /**
1300
1320
  * The project name of the default app of this deployment's microfrontends group.
1301
1321
  */
@@ -1315,9 +1335,6 @@ export type CancelDeploymentMicrofrontends2 = {
1315
1335
  };
1316
1336
 
1317
1337
  export type CancelDeploymentMicrofrontends1 = {
1318
- /**
1319
- * Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends.
1320
- */
1321
1338
  isDefaultApp?: boolean | undefined;
1322
1339
  /**
1323
1340
  * The project name of the default app of this deployment's microfrontends group.
@@ -1342,16 +1359,16 @@ export type CancelDeploymentMicrofrontends =
1342
1359
  | CancelDeploymentMicrofrontends1;
1343
1360
 
1344
1361
  export const CancelDeploymentFunctionType = {
1345
- Standard: "standard",
1346
1362
  Fluid: "fluid",
1363
+ Standard: "standard",
1347
1364
  } as const;
1348
1365
  export type CancelDeploymentFunctionType = ClosedEnum<
1349
1366
  typeof CancelDeploymentFunctionType
1350
1367
  >;
1351
1368
 
1352
1369
  export const CancelDeploymentFunctionMemoryType = {
1353
- StandardLegacy: "standard_legacy",
1354
1370
  Standard: "standard",
1371
+ StandardLegacy: "standard_legacy",
1355
1372
  Performance: "performance",
1356
1373
  } as const;
1357
1374
  export type CancelDeploymentFunctionMemoryType = ClosedEnum<
@@ -2618,16 +2635,16 @@ export const CancelDeploymentTeam$inboundSchema: z.ZodType<
2618
2635
  > = z.object({
2619
2636
  id: z.string(),
2620
2637
  name: z.string(),
2621
- slug: z.string(),
2622
2638
  avatar: z.string().optional(),
2639
+ slug: z.string(),
2623
2640
  });
2624
2641
 
2625
2642
  /** @internal */
2626
2643
  export type CancelDeploymentTeam$Outbound = {
2627
2644
  id: string;
2628
2645
  name: string;
2629
- slug: string;
2630
2646
  avatar?: string | undefined;
2647
+ slug: string;
2631
2648
  };
2632
2649
 
2633
2650
  /** @internal */
@@ -2638,8 +2655,8 @@ export const CancelDeploymentTeam$outboundSchema: z.ZodType<
2638
2655
  > = z.object({
2639
2656
  id: z.string(),
2640
2657
  name: z.string(),
2641
- slug: z.string(),
2642
2658
  avatar: z.string().optional(),
2659
+ slug: z.string(),
2643
2660
  });
2644
2661
 
2645
2662
  /**
@@ -5552,6 +5569,7 @@ export const CancelDeploymentFunctions$inboundSchema: z.ZodType<
5552
5569
  experimentalTriggers: z.array(
5553
5570
  z.lazy(() => CancelDeploymentExperimentalTriggers$inboundSchema),
5554
5571
  ).optional(),
5572
+ supportsCancellation: z.boolean().optional(),
5555
5573
  });
5556
5574
 
5557
5575
  /** @internal */
@@ -5565,6 +5583,7 @@ export type CancelDeploymentFunctions$Outbound = {
5565
5583
  experimentalTriggers?:
5566
5584
  | Array<CancelDeploymentExperimentalTriggers$Outbound>
5567
5585
  | undefined;
5586
+ supportsCancellation?: boolean | undefined;
5568
5587
  };
5569
5588
 
5570
5589
  /** @internal */
@@ -5582,6 +5601,7 @@ export const CancelDeploymentFunctions$outboundSchema: z.ZodType<
5582
5601
  experimentalTriggers: z.array(
5583
5602
  z.lazy(() => CancelDeploymentExperimentalTriggers$outboundSchema),
5584
5603
  ).optional(),
5604
+ supportsCancellation: z.boolean().optional(),
5585
5605
  });
5586
5606
 
5587
5607
  /**
@@ -8518,15 +8538,39 @@ export function microfrontendsApplicationsFromJSON(
8518
8538
  );
8519
8539
  }
8520
8540
 
8541
+ /** @internal */
8542
+ export const MicrofrontendsMfeConfigUploadState$inboundSchema: z.ZodNativeEnum<
8543
+ typeof MicrofrontendsMfeConfigUploadState
8544
+ > = z.nativeEnum(MicrofrontendsMfeConfigUploadState);
8545
+
8546
+ /** @internal */
8547
+ export const MicrofrontendsMfeConfigUploadState$outboundSchema: z.ZodNativeEnum<
8548
+ typeof MicrofrontendsMfeConfigUploadState
8549
+ > = MicrofrontendsMfeConfigUploadState$inboundSchema;
8550
+
8551
+ /**
8552
+ * @internal
8553
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8554
+ */
8555
+ export namespace MicrofrontendsMfeConfigUploadState$ {
8556
+ /** @deprecated use `MicrofrontendsMfeConfigUploadState$inboundSchema` instead. */
8557
+ export const inboundSchema = MicrofrontendsMfeConfigUploadState$inboundSchema;
8558
+ /** @deprecated use `MicrofrontendsMfeConfigUploadState$outboundSchema` instead. */
8559
+ export const outboundSchema =
8560
+ MicrofrontendsMfeConfigUploadState$outboundSchema;
8561
+ }
8562
+
8521
8563
  /** @internal */
8522
8564
  export const CancelDeploymentMicrofrontends2$inboundSchema: z.ZodType<
8523
8565
  CancelDeploymentMicrofrontends2,
8524
8566
  z.ZodTypeDef,
8525
8567
  unknown
8526
8568
  > = z.object({
8569
+ isDefaultApp: z.boolean(),
8527
8570
  applications: z.record(z.lazy(() => MicrofrontendsApplications$inboundSchema))
8528
8571
  .optional(),
8529
- isDefaultApp: z.boolean(),
8572
+ mfeConfigUploadState: MicrofrontendsMfeConfigUploadState$inboundSchema
8573
+ .optional(),
8530
8574
  defaultAppProjectName: z.string(),
8531
8575
  defaultRoute: z.string().optional(),
8532
8576
  groupIds: z.array(z.string()),
@@ -8535,10 +8579,11 @@ export const CancelDeploymentMicrofrontends2$inboundSchema: z.ZodType<
8535
8579
 
8536
8580
  /** @internal */
8537
8581
  export type CancelDeploymentMicrofrontends2$Outbound = {
8582
+ isDefaultApp: boolean;
8538
8583
  applications?:
8539
8584
  | { [k: string]: MicrofrontendsApplications$Outbound }
8540
8585
  | undefined;
8541
- isDefaultApp: boolean;
8586
+ mfeConfigUploadState?: string | undefined;
8542
8587
  defaultAppProjectName: string;
8543
8588
  defaultRoute?: string | undefined;
8544
8589
  groupIds: Array<string>;
@@ -8551,10 +8596,12 @@ export const CancelDeploymentMicrofrontends2$outboundSchema: z.ZodType<
8551
8596
  z.ZodTypeDef,
8552
8597
  CancelDeploymentMicrofrontends2
8553
8598
  > = z.object({
8599
+ isDefaultApp: z.boolean(),
8554
8600
  applications: z.record(
8555
8601
  z.lazy(() => MicrofrontendsApplications$outboundSchema),
8556
8602
  ).optional(),
8557
- isDefaultApp: z.boolean(),
8603
+ mfeConfigUploadState: MicrofrontendsMfeConfigUploadState$outboundSchema
8604
+ .optional(),
8558
8605
  defaultAppProjectName: z.string(),
8559
8606
  defaultRoute: z.string().optional(),
8560
8607
  groupIds: z.array(z.string()),
@@ -0,0 +1,185 @@
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 ConnectIntegrationResourceToProjectRequestBody = {
12
+ projectId: string;
13
+ };
14
+
15
+ export type ConnectIntegrationResourceToProjectRequest = {
16
+ integrationConfigurationId: string;
17
+ resourceId: string;
18
+ /**
19
+ * The Team identifier to perform the request on behalf of.
20
+ */
21
+ teamId?: string | undefined;
22
+ /**
23
+ * The Team slug to perform the request on behalf of.
24
+ */
25
+ slug?: string | undefined;
26
+ requestBody?: ConnectIntegrationResourceToProjectRequestBody | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ConnectIntegrationResourceToProjectRequestBody$inboundSchema:
31
+ z.ZodType<
32
+ ConnectIntegrationResourceToProjectRequestBody,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ projectId: z.string(),
37
+ });
38
+
39
+ /** @internal */
40
+ export type ConnectIntegrationResourceToProjectRequestBody$Outbound = {
41
+ projectId: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const ConnectIntegrationResourceToProjectRequestBody$outboundSchema:
46
+ z.ZodType<
47
+ ConnectIntegrationResourceToProjectRequestBody$Outbound,
48
+ z.ZodTypeDef,
49
+ ConnectIntegrationResourceToProjectRequestBody
50
+ > = z.object({
51
+ projectId: z.string(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace ConnectIntegrationResourceToProjectRequestBody$ {
59
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$inboundSchema` instead. */
60
+ export const inboundSchema =
61
+ ConnectIntegrationResourceToProjectRequestBody$inboundSchema;
62
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$outboundSchema` instead. */
63
+ export const outboundSchema =
64
+ ConnectIntegrationResourceToProjectRequestBody$outboundSchema;
65
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$Outbound` instead. */
66
+ export type Outbound =
67
+ ConnectIntegrationResourceToProjectRequestBody$Outbound;
68
+ }
69
+
70
+ export function connectIntegrationResourceToProjectRequestBodyToJSON(
71
+ connectIntegrationResourceToProjectRequestBody:
72
+ ConnectIntegrationResourceToProjectRequestBody,
73
+ ): string {
74
+ return JSON.stringify(
75
+ ConnectIntegrationResourceToProjectRequestBody$outboundSchema.parse(
76
+ connectIntegrationResourceToProjectRequestBody,
77
+ ),
78
+ );
79
+ }
80
+
81
+ export function connectIntegrationResourceToProjectRequestBodyFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<
84
+ ConnectIntegrationResourceToProjectRequestBody,
85
+ SDKValidationError
86
+ > {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) =>
90
+ ConnectIntegrationResourceToProjectRequestBody$inboundSchema.parse(
91
+ JSON.parse(x),
92
+ ),
93
+ `Failed to parse 'ConnectIntegrationResourceToProjectRequestBody' from JSON`,
94
+ );
95
+ }
96
+
97
+ /** @internal */
98
+ export const ConnectIntegrationResourceToProjectRequest$inboundSchema:
99
+ z.ZodType<ConnectIntegrationResourceToProjectRequest, z.ZodTypeDef, unknown> =
100
+ z.object({
101
+ integrationConfigurationId: z.string(),
102
+ resourceId: z.string(),
103
+ teamId: z.string().optional(),
104
+ slug: z.string().optional(),
105
+ RequestBody: z.lazy(() =>
106
+ ConnectIntegrationResourceToProjectRequestBody$inboundSchema
107
+ ).optional(),
108
+ }).transform((v) => {
109
+ return remap$(v, {
110
+ "RequestBody": "requestBody",
111
+ });
112
+ });
113
+
114
+ /** @internal */
115
+ export type ConnectIntegrationResourceToProjectRequest$Outbound = {
116
+ integrationConfigurationId: string;
117
+ resourceId: string;
118
+ teamId?: string | undefined;
119
+ slug?: string | undefined;
120
+ RequestBody?:
121
+ | ConnectIntegrationResourceToProjectRequestBody$Outbound
122
+ | undefined;
123
+ };
124
+
125
+ /** @internal */
126
+ export const ConnectIntegrationResourceToProjectRequest$outboundSchema:
127
+ z.ZodType<
128
+ ConnectIntegrationResourceToProjectRequest$Outbound,
129
+ z.ZodTypeDef,
130
+ ConnectIntegrationResourceToProjectRequest
131
+ > = z.object({
132
+ integrationConfigurationId: z.string(),
133
+ resourceId: z.string(),
134
+ teamId: z.string().optional(),
135
+ slug: z.string().optional(),
136
+ requestBody: z.lazy(() =>
137
+ ConnectIntegrationResourceToProjectRequestBody$outboundSchema
138
+ ).optional(),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ requestBody: "RequestBody",
142
+ });
143
+ });
144
+
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export namespace ConnectIntegrationResourceToProjectRequest$ {
150
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequest$inboundSchema` instead. */
151
+ export const inboundSchema =
152
+ ConnectIntegrationResourceToProjectRequest$inboundSchema;
153
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequest$outboundSchema` instead. */
154
+ export const outboundSchema =
155
+ ConnectIntegrationResourceToProjectRequest$outboundSchema;
156
+ /** @deprecated use `ConnectIntegrationResourceToProjectRequest$Outbound` instead. */
157
+ export type Outbound = ConnectIntegrationResourceToProjectRequest$Outbound;
158
+ }
159
+
160
+ export function connectIntegrationResourceToProjectRequestToJSON(
161
+ connectIntegrationResourceToProjectRequest:
162
+ ConnectIntegrationResourceToProjectRequest,
163
+ ): string {
164
+ return JSON.stringify(
165
+ ConnectIntegrationResourceToProjectRequest$outboundSchema.parse(
166
+ connectIntegrationResourceToProjectRequest,
167
+ ),
168
+ );
169
+ }
170
+
171
+ export function connectIntegrationResourceToProjectRequestFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<
174
+ ConnectIntegrationResourceToProjectRequest,
175
+ SDKValidationError
176
+ > {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) =>
180
+ ConnectIntegrationResourceToProjectRequest$inboundSchema.parse(
181
+ JSON.parse(x),
182
+ ),
183
+ `Failed to parse 'ConnectIntegrationResourceToProjectRequest' from JSON`,
184
+ );
185
+ }