@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.
- package/README.md +58 -45
- package/bin/mcp-server.js +5829 -1512
- package/bin/mcp-server.js.map +44 -35
- package/docs/sdks/integrations/README.md +209 -0
- package/docs/sdks/projects/README.md +4 -0
- package/docs/sdks/teams/README.md +12 -0
- package/docs/sdks/vercel/README.md +74 -0
- package/esm/__tests__/domains.test.js +7 -2
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +62 -0
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +28 -1
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.js +2 -2
- package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +14 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +84 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts +20 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js +97 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts +21 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +90 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/funcs/marketplaceExchangeSsoToken.js +2 -2
- package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/funcs/marketplaceSubmitInvoice.js +2 -2
- package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInvoice.js +2 -2
- package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +2 -0
- package/esm/funcs/projectsGetProjects.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +7 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +7 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +26 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js +27 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js +28 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts +37 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.js +40 -1
- package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
- package/esm/models/authuser.d.ts +3 -3
- package/esm/models/authuser.js +1 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +45 -7
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +31 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/connectintegrationresourcetoprojectop.d.ts +68 -0
- package/esm/models/connectintegrationresourcetoprojectop.d.ts.map +1 -0
- package/esm/models/connectintegrationresourcetoprojectop.js +73 -0
- package/esm/models/connectintegrationresourcetoprojectop.js.map +1 -0
- package/esm/models/createdeploymentop.d.ts +259 -221
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +233 -206
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +5995 -0
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -0
- package/esm/models/createintegrationstoredirectop.js +6597 -0
- package/esm/models/createintegrationstoredirectop.js.map +1 -0
- package/esm/models/createprojectop.d.ts +31 -4
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +10 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +12 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +6 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +2 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +533 -533
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
- package/esm/models/getconfigurationproductsop.js +666 -665
- package/esm/models/getconfigurationproductsop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +6 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +2 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +45 -7
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +30 -2
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getintegrationresourceop.d.ts +13 -13
- package/esm/models/getintegrationresourceop.d.ts.map +1 -1
- package/esm/models/getintegrationresourceop.js +13 -13
- package/esm/models/getintegrationresourceop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +101 -4
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +57 -4
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +102 -9
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +60 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +247 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +1 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +246 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +6 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +27 -15
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +19 -15
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +3 -0
- package/esm/models/inviteusertoteamop.d.ts.map +1 -1
- package/esm/models/inviteusertoteamop.js +1 -0
- package/esm/models/inviteusertoteamop.js.map +1 -1
- package/esm/models/patchteamop.d.ts +253 -0
- package/esm/models/patchteamop.d.ts.map +1 -1
- package/esm/models/patchteamop.js +150 -0
- package/esm/models/patchteamop.js.map +1 -1
- package/esm/models/team.d.ts +47 -0
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +36 -0
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +3 -0
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +1 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +32 -32
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +49 -49
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateinvoiceop.d.ts +36 -15
- package/esm/models/updateinvoiceop.d.ts.map +1 -1
- package/esm/models/updateinvoiceop.js +37 -16
- package/esm/models/updateinvoiceop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +25 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +4 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +31 -4
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +10 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +406 -305
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +467 -365
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +16 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +20 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/domains.test.ts +7 -2
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +65 -0
- package/src/__tests__/rollingrelease.test.ts +1 -1
- package/src/__tests__/security.test.ts +1 -11
- package/src/__tests__/vercel.test.ts +36 -1
- package/src/funcs/domainsCheckDomainPrice.ts +2 -2
- package/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +207 -0
- package/src/funcs/integrationsConnectIntegrationResourceToProject.ts +213 -0
- package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +207 -0
- package/src/funcs/marketplaceExchangeSsoToken.ts +2 -2
- package/src/funcs/marketplaceSubmitInvoice.ts +2 -2
- package/src/funcs/marketplaceUpdateInvoice.ts +2 -2
- package/src/funcs/projectsGetProjects.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +41 -0
- package/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts +37 -0
- package/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts +39 -0
- package/src/models/acceptprojecttransferrequestop.ts +88 -1
- package/src/models/authuser.ts +1 -1
- package/src/models/canceldeploymentop.ts +56 -9
- package/src/models/connectintegrationresourcetoprojectop.ts +185 -0
- package/src/models/createdeploymentop.ts +540 -498
- package/src/models/createintegrationstoredirectop.ts +15739 -0
- package/src/models/createprojectop.ts +41 -8
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/getconfigurationop.ts +2 -0
- package/src/models/getconfigurationproductsop.ts +1326 -1163
- package/src/models/getconfigurationsop.ts +2 -0
- package/src/models/getdeploymentop.ts +59 -9
- package/src/models/getintegrationresourceop.ts +26 -20
- package/src/models/getprojectsop.ts +122 -8
- package/src/models/getteammembersop.ts +84 -3
- package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +575 -0
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +31 -25
- package/src/models/inviteusertoteamop.ts +1 -0
- package/src/models/patchteamop.ts +254 -0
- package/src/models/team.ts +92 -0
- package/src/models/teamlimited.ts +1 -0
- package/src/models/updatefirewallconfigop.ts +74 -68
- package/src/models/updateinvoiceop.ts +78 -27
- package/src/models/updateprojectdatacacheop.ts +29 -0
- package/src/models/updateprojectop.ts +41 -8
- package/src/models/userevent.ts +918 -682
- package/src/sdk/integrations.ts +41 -0
- package/src/sdk/sdk.ts +23 -1
- 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 {
|
|
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
|
/**
|
package/src/models/authuser.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
}
|