@vercel/sdk 1.10.5 → 1.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/README.md +58 -45
  2. package/bin/mcp-server.js +5829 -1512
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/integrations/README.md +209 -0
  5. package/docs/sdks/projects/README.md +4 -0
  6. package/docs/sdks/teams/README.md +12 -0
  7. package/docs/sdks/vercel/README.md +74 -0
  8. package/esm/__tests__/domains.test.js +7 -2
  9. package/esm/__tests__/domains.test.js.map +1 -1
  10. package/esm/__tests__/edgeconfig.test.js +6 -6
  11. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  12. package/esm/__tests__/integrations.test.js +62 -0
  13. package/esm/__tests__/integrations.test.js.map +1 -1
  14. package/esm/__tests__/rollingrelease.test.js +1 -1
  15. package/esm/__tests__/security.test.js +1 -11
  16. package/esm/__tests__/security.test.js.map +1 -1
  17. package/esm/__tests__/vercel.test.js +28 -1
  18. package/esm/__tests__/vercel.test.js.map +1 -1
  19. package/esm/funcs/domainsCheckDomainPrice.js +2 -2
  20. package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
  21. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +14 -0
  22. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
  23. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +84 -0
  24. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
  25. package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts +20 -0
  26. package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
  27. package/esm/funcs/integrationsConnectIntegrationResourceToProject.js +97 -0
  28. package/esm/funcs/integrationsConnectIntegrationResourceToProject.js.map +1 -0
  29. package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts +21 -0
  30. package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
  31. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +90 -0
  32. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -0
  33. package/esm/funcs/marketplaceExchangeSsoToken.js +2 -2
  34. package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
  35. package/esm/funcs/marketplaceSubmitInvoice.js +2 -2
  36. package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
  37. package/esm/funcs/marketplaceUpdateInvoice.js +2 -2
  38. package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
  39. package/esm/funcs/projectsGetProjects.js +2 -0
  40. package/esm/funcs/projectsGetProjects.js.map +1 -1
  41. package/esm/lib/config.d.ts +3 -3
  42. package/esm/lib/config.js +3 -3
  43. package/esm/mcp-server/mcp-server.js +1 -1
  44. package/esm/mcp-server/server.d.ts.map +1 -1
  45. package/esm/mcp-server/server.js +7 -1
  46. package/esm/mcp-server/server.js.map +1 -1
  47. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +7 -0
  48. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
  49. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +26 -0
  50. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
  51. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts +7 -0
  52. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
  53. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js +27 -0
  54. package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js.map +1 -0
  55. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts +7 -0
  56. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
  57. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js +28 -0
  58. package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js.map +1 -0
  59. package/esm/models/acceptprojecttransferrequestop.d.ts +37 -0
  60. package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
  61. package/esm/models/acceptprojecttransferrequestop.js +40 -1
  62. package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
  63. package/esm/models/authuser.d.ts +3 -3
  64. package/esm/models/authuser.js +1 -1
  65. package/esm/models/authuser.js.map +1 -1
  66. package/esm/models/canceldeploymentop.d.ts +45 -7
  67. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  68. package/esm/models/canceldeploymentop.js +31 -2
  69. package/esm/models/canceldeploymentop.js.map +1 -1
  70. package/esm/models/connectintegrationresourcetoprojectop.d.ts +68 -0
  71. package/esm/models/connectintegrationresourcetoprojectop.d.ts.map +1 -0
  72. package/esm/models/connectintegrationresourcetoprojectop.js +73 -0
  73. package/esm/models/connectintegrationresourcetoprojectop.js.map +1 -0
  74. package/esm/models/createdeploymentop.d.ts +259 -221
  75. package/esm/models/createdeploymentop.d.ts.map +1 -1
  76. package/esm/models/createdeploymentop.js +233 -206
  77. package/esm/models/createdeploymentop.js.map +1 -1
  78. package/esm/models/createintegrationstoredirectop.d.ts +5995 -0
  79. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -0
  80. package/esm/models/createintegrationstoredirectop.js +6597 -0
  81. package/esm/models/createintegrationstoredirectop.js.map +1 -0
  82. package/esm/models/createprojectop.d.ts +31 -4
  83. package/esm/models/createprojectop.d.ts.map +1 -1
  84. package/esm/models/createprojectop.js +10 -4
  85. package/esm/models/createprojectop.js.map +1 -1
  86. package/esm/models/createwebhookop.d.ts +12 -0
  87. package/esm/models/createwebhookop.d.ts.map +1 -1
  88. package/esm/models/createwebhookop.js +4 -0
  89. package/esm/models/createwebhookop.js.map +1 -1
  90. package/esm/models/getconfigurationop.d.ts +6 -0
  91. package/esm/models/getconfigurationop.d.ts.map +1 -1
  92. package/esm/models/getconfigurationop.js +2 -0
  93. package/esm/models/getconfigurationop.js.map +1 -1
  94. package/esm/models/getconfigurationproductsop.d.ts +533 -533
  95. package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
  96. package/esm/models/getconfigurationproductsop.js +666 -665
  97. package/esm/models/getconfigurationproductsop.js.map +1 -1
  98. package/esm/models/getconfigurationsop.d.ts +6 -0
  99. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  100. package/esm/models/getconfigurationsop.js +2 -0
  101. package/esm/models/getconfigurationsop.js.map +1 -1
  102. package/esm/models/getdeploymentop.d.ts +45 -7
  103. package/esm/models/getdeploymentop.d.ts.map +1 -1
  104. package/esm/models/getdeploymentop.js +30 -2
  105. package/esm/models/getdeploymentop.js.map +1 -1
  106. package/esm/models/getintegrationresourceop.d.ts +13 -13
  107. package/esm/models/getintegrationresourceop.d.ts.map +1 -1
  108. package/esm/models/getintegrationresourceop.js +13 -13
  109. package/esm/models/getintegrationresourceop.js.map +1 -1
  110. package/esm/models/getprojectsop.d.ts +101 -4
  111. package/esm/models/getprojectsop.d.ts.map +1 -1
  112. package/esm/models/getprojectsop.js +57 -4
  113. package/esm/models/getprojectsop.js.map +1 -1
  114. package/esm/models/getteammembersop.d.ts +102 -9
  115. package/esm/models/getteammembersop.d.ts.map +1 -1
  116. package/esm/models/getteammembersop.js +60 -3
  117. package/esm/models/getteammembersop.js.map +1 -1
  118. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +247 -0
  119. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +1 -0
  120. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +246 -0
  121. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +1 -0
  122. package/esm/models/getwebhookop.d.ts +6 -0
  123. package/esm/models/getwebhookop.d.ts.map +1 -1
  124. package/esm/models/getwebhookop.js +2 -0
  125. package/esm/models/getwebhookop.js.map +1 -1
  126. package/esm/models/getwebhooksop.d.ts +27 -15
  127. package/esm/models/getwebhooksop.d.ts.map +1 -1
  128. package/esm/models/getwebhooksop.js +19 -15
  129. package/esm/models/getwebhooksop.js.map +1 -1
  130. package/esm/models/inviteusertoteamop.d.ts +3 -0
  131. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  132. package/esm/models/inviteusertoteamop.js +1 -0
  133. package/esm/models/inviteusertoteamop.js.map +1 -1
  134. package/esm/models/patchteamop.d.ts +253 -0
  135. package/esm/models/patchteamop.d.ts.map +1 -1
  136. package/esm/models/patchteamop.js +150 -0
  137. package/esm/models/patchteamop.js.map +1 -1
  138. package/esm/models/team.d.ts +47 -0
  139. package/esm/models/team.d.ts.map +1 -1
  140. package/esm/models/team.js +36 -0
  141. package/esm/models/team.js.map +1 -1
  142. package/esm/models/teamlimited.d.ts +3 -0
  143. package/esm/models/teamlimited.d.ts.map +1 -1
  144. package/esm/models/teamlimited.js +1 -0
  145. package/esm/models/teamlimited.js.map +1 -1
  146. package/esm/models/updatefirewallconfigop.d.ts +32 -32
  147. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  148. package/esm/models/updatefirewallconfigop.js +49 -49
  149. package/esm/models/updatefirewallconfigop.js.map +1 -1
  150. package/esm/models/updateinvoiceop.d.ts +36 -15
  151. package/esm/models/updateinvoiceop.d.ts.map +1 -1
  152. package/esm/models/updateinvoiceop.js +37 -16
  153. package/esm/models/updateinvoiceop.js.map +1 -1
  154. package/esm/models/updateprojectdatacacheop.d.ts +25 -0
  155. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  156. package/esm/models/updateprojectdatacacheop.js +4 -0
  157. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  158. package/esm/models/updateprojectop.d.ts +31 -4
  159. package/esm/models/updateprojectop.d.ts.map +1 -1
  160. package/esm/models/updateprojectop.js +10 -4
  161. package/esm/models/updateprojectop.js.map +1 -1
  162. package/esm/models/userevent.d.ts +406 -305
  163. package/esm/models/userevent.d.ts.map +1 -1
  164. package/esm/models/userevent.js +467 -365
  165. package/esm/models/userevent.js.map +1 -1
  166. package/esm/sdk/integrations.d.ts +16 -0
  167. package/esm/sdk/integrations.d.ts.map +1 -1
  168. package/esm/sdk/integrations.js +20 -0
  169. package/esm/sdk/integrations.js.map +1 -1
  170. package/esm/sdk/sdk.d.ts +3 -1
  171. package/esm/sdk/sdk.d.ts.map +1 -1
  172. package/esm/sdk/sdk.js +5 -0
  173. package/esm/sdk/sdk.js.map +1 -1
  174. package/examples/package-lock.json +1 -1
  175. package/jsr.json +1 -1
  176. package/package.json +1 -1
  177. package/src/__tests__/domains.test.ts +7 -2
  178. package/src/__tests__/edgeconfig.test.ts +6 -6
  179. package/src/__tests__/integrations.test.ts +65 -0
  180. package/src/__tests__/rollingrelease.test.ts +1 -1
  181. package/src/__tests__/security.test.ts +1 -11
  182. package/src/__tests__/vercel.test.ts +36 -1
  183. package/src/funcs/domainsCheckDomainPrice.ts +2 -2
  184. package/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +207 -0
  185. package/src/funcs/integrationsConnectIntegrationResourceToProject.ts +213 -0
  186. package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +207 -0
  187. package/src/funcs/marketplaceExchangeSsoToken.ts +2 -2
  188. package/src/funcs/marketplaceSubmitInvoice.ts +2 -2
  189. package/src/funcs/marketplaceUpdateInvoice.ts +2 -2
  190. package/src/funcs/projectsGetProjects.ts +2 -0
  191. package/src/lib/config.ts +3 -3
  192. package/src/mcp-server/mcp-server.ts +1 -1
  193. package/src/mcp-server/server.ts +9 -1
  194. package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +41 -0
  195. package/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts +37 -0
  196. package/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts +39 -0
  197. package/src/models/acceptprojecttransferrequestop.ts +88 -1
  198. package/src/models/authuser.ts +1 -1
  199. package/src/models/canceldeploymentop.ts +56 -9
  200. package/src/models/connectintegrationresourcetoprojectop.ts +185 -0
  201. package/src/models/createdeploymentop.ts +540 -498
  202. package/src/models/createintegrationstoredirectop.ts +15739 -0
  203. package/src/models/createprojectop.ts +41 -8
  204. package/src/models/createwebhookop.ts +4 -0
  205. package/src/models/getconfigurationop.ts +2 -0
  206. package/src/models/getconfigurationproductsop.ts +1326 -1163
  207. package/src/models/getconfigurationsop.ts +2 -0
  208. package/src/models/getdeploymentop.ts +59 -9
  209. package/src/models/getintegrationresourceop.ts +26 -20
  210. package/src/models/getprojectsop.ts +122 -8
  211. package/src/models/getteammembersop.ts +84 -3
  212. package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +575 -0
  213. package/src/models/getwebhookop.ts +2 -0
  214. package/src/models/getwebhooksop.ts +31 -25
  215. package/src/models/inviteusertoteamop.ts +1 -0
  216. package/src/models/patchteamop.ts +254 -0
  217. package/src/models/team.ts +92 -0
  218. package/src/models/teamlimited.ts +1 -0
  219. package/src/models/updatefirewallconfigop.ts +74 -68
  220. package/src/models/updateinvoiceop.ts +78 -27
  221. package/src/models/updateprojectdatacacheop.ts +29 -0
  222. package/src/models/updateprojectop.ts +41 -8
  223. package/src/models/userevent.ts +918 -682
  224. package/src/sdk/integrations.ts +41 -0
  225. package/src/sdk/sdk.ts +23 -1
  226. package/vercel-spec.json +3689 -540
@@ -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;
@@ -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 = {
@@ -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.
@@ -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
+ }