@vercel/sdk 1.7.4 → 1.7.6
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 +6 -6
- package/bin/mcp-server.js +590 -349
- package/bin/mcp-server.js.map +37 -37
- package/docs/sdks/accessgroups/README.md +16 -0
- package/docs/sdks/artifacts/README.md +6 -6
- package/docs/sdks/authentication/README.md +1 -1
- package/docs/sdks/deployments/README.md +8 -14
- package/docs/sdks/dns/README.md +12 -26
- package/docs/sdks/domains/README.md +2 -2
- package/docs/sdks/edgeconfig/README.md +10 -2
- package/docs/sdks/marketplace/README.md +77 -97
- package/docs/sdks/security/README.md +4 -10
- package/docs/sdks/teams/README.md +8 -0
- package/docs/sdks/vercel/README.md +2 -2
- package/docs/sdks/webhooks/README.md +12 -4
- package/esm/__tests__/deployments.test.js +1 -2
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/funcs/authenticationExchangeSsoToken.d.ts +1 -1
- package/esm/funcs/authenticationExchangeSsoToken.js +1 -1
- package/esm/funcs/certsGetCertById.js +1 -1
- package/esm/funcs/certsIssueCert.js +1 -1
- package/esm/funcs/certsRemoveCert.js +1 -1
- package/esm/funcs/certsUploadCert.js +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.js +4 -3
- package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/funcs/marketplaceExchangeSsoToken.d.ts +1 -1
- package/esm/funcs/marketplaceExchangeSsoToken.js +1 -1
- package/esm/funcs/projectsRemoveProjectDomain.js +3 -2
- package/esm/funcs/projectsRemoveProjectDomain.js.map +1 -1
- package/esm/funcs/projectsRequestPromote.js +0 -1
- package/esm/funcs/projectsRequestPromote.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/cli/start/impl.js +2 -2
- package/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/authenticationExchangeSsoToken.js +1 -1
- package/esm/mcp-server/tools/authenticationExchangeSsoToken.js.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +1 -2
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js +1 -1
- package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/models/authuser.d.ts +0 -93
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -64
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/authuserlimited.d.ts +0 -34
- package/esm/models/authuserlimited.d.ts.map +1 -1
- package/esm/models/authuserlimited.js +0 -23
- package/esm/models/authuserlimited.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +10 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +4 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +38 -28
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +16 -12
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +123 -11
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +111 -5
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.d.ts +0 -31
- package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.js +0 -25
- package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +10 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +4 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +114 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +108 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +9 -0
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +2 -0
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/issuecertop.d.ts +2 -2
- package/esm/models/issuecertop.d.ts.map +1 -1
- package/esm/models/issuecertop.js +2 -2
- package/esm/models/issuecertop.js.map +1 -1
- package/esm/models/removeprojectdomainop.d.ts +30 -0
- package/esm/models/removeprojectdomainop.d.ts.map +1 -1
- package/esm/models/removeprojectdomainop.js +38 -0
- package/esm/models/removeprojectdomainop.js.map +1 -1
- package/esm/models/requestpromoteop.d.ts +0 -5
- package/esm/models/requestpromoteop.d.ts.map +1 -1
- package/esm/models/requestpromoteop.js +0 -2
- package/esm/models/requestpromoteop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +13 -13
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +6 -6
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +114 -2
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +108 -2
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +123 -11
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +111 -5
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.d.ts +10 -1
- package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.js +2 -0
- package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
- package/esm/models/updateresourcesecretsop.d.ts +9 -0
- package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsop.js +2 -0
- package/esm/models/updateresourcesecretsop.js.map +1 -1
- package/esm/models/uploadcertop.d.ts +2 -2
- package/esm/models/uploadcertop.d.ts.map +1 -1
- package/esm/models/uploadcertop.js +2 -2
- package/esm/models/uploadcertop.js.map +1 -1
- package/esm/models/userevent.d.ts +391 -280
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +450 -342
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/authentication.d.ts +1 -1
- package/esm/sdk/authentication.js +1 -1
- package/esm/sdk/deployments.d.ts +2 -2
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +1 -1
- package/esm/sdk/marketplace.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +1 -2
- package/src/funcs/authenticationExchangeSsoToken.ts +1 -1
- package/src/funcs/certsGetCertById.ts +1 -1
- package/src/funcs/certsIssueCert.ts +1 -1
- package/src/funcs/certsRemoveCert.ts +1 -1
- package/src/funcs/certsUploadCert.ts +1 -1
- package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -7
- package/src/funcs/marketplaceExchangeSsoToken.ts +1 -1
- package/src/funcs/projectsRemoveProjectDomain.ts +3 -2
- package/src/funcs/projectsRequestPromote.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/authenticationExchangeSsoToken.ts +1 -1
- package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +1 -3
- package/src/mcp-server/tools/marketplaceExchangeSsoToken.ts +1 -1
- package/src/models/authuser.ts +0 -145
- package/src/models/authuserlimited.ts +0 -40
- package/src/models/canceldeploymentop.ts +14 -0
- package/src/models/createdeploymentop.ts +30 -16
- package/src/models/createprojectop.ts +246 -7
- package/src/models/getdeploymentfilecontentsop.ts +0 -69
- package/src/models/getdeploymentop.ts +14 -0
- package/src/models/getprojectsop.ts +237 -4
- package/src/models/importresourceop.ts +7 -0
- package/src/models/issuecertop.ts +4 -4
- package/src/models/removeprojectdomainop.ts +78 -0
- package/src/models/requestpromoteop.ts +0 -7
- package/src/models/teamlimited.ts +13 -13
- package/src/models/updateprojectdatacacheop.ts +260 -4
- package/src/models/updateprojectop.ts +246 -7
- package/src/models/updateresourcesecretsbyidop.ts +8 -1
- package/src/models/updateresourcesecretsop.ts +7 -0
- package/src/models/uploadcertop.ts +4 -4
- package/src/models/userevent.ts +837 -624
- package/src/sdk/authentication.ts +1 -1
- package/src/sdk/deployments.ts +2 -5
- package/src/sdk/marketplace.ts +1 -1
- package/vercel-spec.json +508 -163
|
@@ -30,16 +30,6 @@ export type GetDeploymentFileContentsRequest = {
|
|
|
30
30
|
slug?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* File content as base64 encoded string
|
|
35
|
-
*/
|
|
36
|
-
export type GetDeploymentFileContentsResponseBody = {
|
|
37
|
-
/**
|
|
38
|
-
* Base64 encoded file buffer
|
|
39
|
-
*/
|
|
40
|
-
data: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
33
|
/** @internal */
|
|
44
34
|
export const GetDeploymentFileContentsRequest$inboundSchema: z.ZodType<
|
|
45
35
|
GetDeploymentFileContentsRequest,
|
|
@@ -107,62 +97,3 @@ export function getDeploymentFileContentsRequestFromJSON(
|
|
|
107
97
|
`Failed to parse 'GetDeploymentFileContentsRequest' from JSON`,
|
|
108
98
|
);
|
|
109
99
|
}
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const GetDeploymentFileContentsResponseBody$inboundSchema: z.ZodType<
|
|
113
|
-
GetDeploymentFileContentsResponseBody,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
unknown
|
|
116
|
-
> = z.object({
|
|
117
|
-
data: z.string(),
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type GetDeploymentFileContentsResponseBody$Outbound = {
|
|
122
|
-
data: string;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const GetDeploymentFileContentsResponseBody$outboundSchema: z.ZodType<
|
|
127
|
-
GetDeploymentFileContentsResponseBody$Outbound,
|
|
128
|
-
z.ZodTypeDef,
|
|
129
|
-
GetDeploymentFileContentsResponseBody
|
|
130
|
-
> = z.object({
|
|
131
|
-
data: z.string(),
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
-
*/
|
|
138
|
-
export namespace GetDeploymentFileContentsResponseBody$ {
|
|
139
|
-
/** @deprecated use `GetDeploymentFileContentsResponseBody$inboundSchema` instead. */
|
|
140
|
-
export const inboundSchema =
|
|
141
|
-
GetDeploymentFileContentsResponseBody$inboundSchema;
|
|
142
|
-
/** @deprecated use `GetDeploymentFileContentsResponseBody$outboundSchema` instead. */
|
|
143
|
-
export const outboundSchema =
|
|
144
|
-
GetDeploymentFileContentsResponseBody$outboundSchema;
|
|
145
|
-
/** @deprecated use `GetDeploymentFileContentsResponseBody$Outbound` instead. */
|
|
146
|
-
export type Outbound = GetDeploymentFileContentsResponseBody$Outbound;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function getDeploymentFileContentsResponseBodyToJSON(
|
|
150
|
-
getDeploymentFileContentsResponseBody: GetDeploymentFileContentsResponseBody,
|
|
151
|
-
): string {
|
|
152
|
-
return JSON.stringify(
|
|
153
|
-
GetDeploymentFileContentsResponseBody$outboundSchema.parse(
|
|
154
|
-
getDeploymentFileContentsResponseBody,
|
|
155
|
-
),
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function getDeploymentFileContentsResponseBodyFromJSON(
|
|
160
|
-
jsonString: string,
|
|
161
|
-
): SafeParseResult<GetDeploymentFileContentsResponseBody, SDKValidationError> {
|
|
162
|
-
return safeParse(
|
|
163
|
-
jsonString,
|
|
164
|
-
(x) =>
|
|
165
|
-
GetDeploymentFileContentsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
-
`Failed to parse 'GetDeploymentFileContentsResponseBody' from JSON`,
|
|
167
|
-
);
|
|
168
|
-
}
|
|
@@ -1633,6 +1633,10 @@ export type GetDeploymentMicrofrontends2 = {
|
|
|
1633
1633
|
| { [k: string]: GetDeploymentMicrofrontendsApplications }
|
|
1634
1634
|
| undefined;
|
|
1635
1635
|
isDefaultApp: boolean;
|
|
1636
|
+
/**
|
|
1637
|
+
* The project name of the default app of this deployment's microfrontends group.
|
|
1638
|
+
*/
|
|
1639
|
+
defaultAppProjectName: string;
|
|
1636
1640
|
/**
|
|
1637
1641
|
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
|
|
1638
1642
|
*/
|
|
@@ -1648,6 +1652,10 @@ export type GetDeploymentMicrofrontends1 = {
|
|
|
1648
1652
|
* 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.
|
|
1649
1653
|
*/
|
|
1650
1654
|
isDefaultApp?: boolean | undefined;
|
|
1655
|
+
/**
|
|
1656
|
+
* The project name of the default app of this deployment's microfrontends group.
|
|
1657
|
+
*/
|
|
1658
|
+
defaultAppProjectName: string;
|
|
1651
1659
|
/**
|
|
1652
1660
|
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
|
|
1653
1661
|
*/
|
|
@@ -10092,6 +10100,7 @@ export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType<
|
|
|
10092
10100
|
z.lazy(() => GetDeploymentMicrofrontendsApplications$inboundSchema),
|
|
10093
10101
|
).optional(),
|
|
10094
10102
|
isDefaultApp: z.boolean(),
|
|
10103
|
+
defaultAppProjectName: z.string(),
|
|
10095
10104
|
defaultRoute: z.string().optional(),
|
|
10096
10105
|
groupIds: z.array(z.string()),
|
|
10097
10106
|
});
|
|
@@ -10102,6 +10111,7 @@ export type GetDeploymentMicrofrontends2$Outbound = {
|
|
|
10102
10111
|
[k: string]: GetDeploymentMicrofrontendsApplications$Outbound;
|
|
10103
10112
|
} | undefined;
|
|
10104
10113
|
isDefaultApp: boolean;
|
|
10114
|
+
defaultAppProjectName: string;
|
|
10105
10115
|
defaultRoute?: string | undefined;
|
|
10106
10116
|
groupIds: Array<string>;
|
|
10107
10117
|
};
|
|
@@ -10116,6 +10126,7 @@ export const GetDeploymentMicrofrontends2$outboundSchema: z.ZodType<
|
|
|
10116
10126
|
z.lazy(() => GetDeploymentMicrofrontendsApplications$outboundSchema),
|
|
10117
10127
|
).optional(),
|
|
10118
10128
|
isDefaultApp: z.boolean(),
|
|
10129
|
+
defaultAppProjectName: z.string(),
|
|
10119
10130
|
defaultRoute: z.string().optional(),
|
|
10120
10131
|
groupIds: z.array(z.string()),
|
|
10121
10132
|
});
|
|
@@ -10160,6 +10171,7 @@ export const GetDeploymentMicrofrontends1$inboundSchema: z.ZodType<
|
|
|
10160
10171
|
unknown
|
|
10161
10172
|
> = z.object({
|
|
10162
10173
|
isDefaultApp: z.boolean().optional(),
|
|
10174
|
+
defaultAppProjectName: z.string(),
|
|
10163
10175
|
defaultRoute: z.string().optional(),
|
|
10164
10176
|
groupIds: z.array(z.string()),
|
|
10165
10177
|
});
|
|
@@ -10167,6 +10179,7 @@ export const GetDeploymentMicrofrontends1$inboundSchema: z.ZodType<
|
|
|
10167
10179
|
/** @internal */
|
|
10168
10180
|
export type GetDeploymentMicrofrontends1$Outbound = {
|
|
10169
10181
|
isDefaultApp?: boolean | undefined;
|
|
10182
|
+
defaultAppProjectName: string;
|
|
10170
10183
|
defaultRoute?: string | undefined;
|
|
10171
10184
|
groupIds: Array<string>;
|
|
10172
10185
|
};
|
|
@@ -10178,6 +10191,7 @@ export const GetDeploymentMicrofrontends1$outboundSchema: z.ZodType<
|
|
|
10178
10191
|
GetDeploymentMicrofrontends1
|
|
10179
10192
|
> = z.object({
|
|
10180
10193
|
isDefaultApp: z.boolean().optional(),
|
|
10194
|
+
defaultAppProjectName: z.string(),
|
|
10181
10195
|
defaultRoute: z.string().optional(),
|
|
10182
10196
|
groupIds: z.array(z.string()),
|
|
10183
10197
|
});
|
|
@@ -103,6 +103,29 @@ export type GetProjectsSpeedInsights = {
|
|
|
103
103
|
paidAt?: number | undefined;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
export const GetProjectsEnvId2 = {
|
|
107
|
+
Production: "production",
|
|
108
|
+
Preview: "preview",
|
|
109
|
+
} as const;
|
|
110
|
+
export type GetProjectsEnvId2 = ClosedEnum<typeof GetProjectsEnvId2>;
|
|
111
|
+
|
|
112
|
+
export type GetProjectsEnvId = string | GetProjectsEnvId2;
|
|
113
|
+
|
|
114
|
+
export type GetProjectsAws = {
|
|
115
|
+
subnetIds: Array<string>;
|
|
116
|
+
securityGroupId: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type GetProjectsConnectConfigurations = {
|
|
120
|
+
envId: string | GetProjectsEnvId2;
|
|
121
|
+
connectConfigurationId: string;
|
|
122
|
+
passive: boolean;
|
|
123
|
+
buildsEnabled: boolean;
|
|
124
|
+
aws?: GetProjectsAws | undefined;
|
|
125
|
+
createdAt: number;
|
|
126
|
+
updatedAt: number;
|
|
127
|
+
};
|
|
128
|
+
|
|
106
129
|
export type GetProjectsDefinitions = {
|
|
107
130
|
/**
|
|
108
131
|
* The hostname that should be used.
|
|
@@ -1820,8 +1843,13 @@ export type GetProjectsProjects = {
|
|
|
1820
1843
|
autoAssignCustomDomainsUpdatedBy?: string | undefined;
|
|
1821
1844
|
buildCommand?: string | null | undefined;
|
|
1822
1845
|
commandForIgnoringBuildStep?: string | null | undefined;
|
|
1846
|
+
connectConfigurations?:
|
|
1847
|
+
| Array<GetProjectsConnectConfigurations>
|
|
1848
|
+
| null
|
|
1849
|
+
| undefined;
|
|
1823
1850
|
connectConfigurationId?: string | null | undefined;
|
|
1824
1851
|
connectBuildsEnabled?: boolean | undefined;
|
|
1852
|
+
passiveConnectConfigurationId?: string | null | undefined;
|
|
1825
1853
|
createdAt?: number | undefined;
|
|
1826
1854
|
customerSupportCodeVisibility?: boolean | undefined;
|
|
1827
1855
|
crons?: GetProjectsCrons | undefined;
|
|
@@ -1852,7 +1880,6 @@ export type GetProjectsProjects = {
|
|
|
1852
1880
|
nodeVersion: GetProjectsNodeVersion;
|
|
1853
1881
|
optionsAllowlist?: GetProjectsOptionsAllowlist | null | undefined;
|
|
1854
1882
|
outputDirectory?: string | null | undefined;
|
|
1855
|
-
passiveConnectConfigurationId?: string | null | undefined;
|
|
1856
1883
|
passwordProtection?: GetProjectsPasswordProtection | null | undefined;
|
|
1857
1884
|
productionDeploymentsFastLane?: boolean | undefined;
|
|
1858
1885
|
publicSource?: boolean | null | undefined;
|
|
@@ -2162,6 +2189,202 @@ export function getProjectsSpeedInsightsFromJSON(
|
|
|
2162
2189
|
);
|
|
2163
2190
|
}
|
|
2164
2191
|
|
|
2192
|
+
/** @internal */
|
|
2193
|
+
export const GetProjectsEnvId2$inboundSchema: z.ZodNativeEnum<
|
|
2194
|
+
typeof GetProjectsEnvId2
|
|
2195
|
+
> = z.nativeEnum(GetProjectsEnvId2);
|
|
2196
|
+
|
|
2197
|
+
/** @internal */
|
|
2198
|
+
export const GetProjectsEnvId2$outboundSchema: z.ZodNativeEnum<
|
|
2199
|
+
typeof GetProjectsEnvId2
|
|
2200
|
+
> = GetProjectsEnvId2$inboundSchema;
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* @internal
|
|
2204
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2205
|
+
*/
|
|
2206
|
+
export namespace GetProjectsEnvId2$ {
|
|
2207
|
+
/** @deprecated use `GetProjectsEnvId2$inboundSchema` instead. */
|
|
2208
|
+
export const inboundSchema = GetProjectsEnvId2$inboundSchema;
|
|
2209
|
+
/** @deprecated use `GetProjectsEnvId2$outboundSchema` instead. */
|
|
2210
|
+
export const outboundSchema = GetProjectsEnvId2$outboundSchema;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
/** @internal */
|
|
2214
|
+
export const GetProjectsEnvId$inboundSchema: z.ZodType<
|
|
2215
|
+
GetProjectsEnvId,
|
|
2216
|
+
z.ZodTypeDef,
|
|
2217
|
+
unknown
|
|
2218
|
+
> = z.union([z.string(), GetProjectsEnvId2$inboundSchema]);
|
|
2219
|
+
|
|
2220
|
+
/** @internal */
|
|
2221
|
+
export type GetProjectsEnvId$Outbound = string | string;
|
|
2222
|
+
|
|
2223
|
+
/** @internal */
|
|
2224
|
+
export const GetProjectsEnvId$outboundSchema: z.ZodType<
|
|
2225
|
+
GetProjectsEnvId$Outbound,
|
|
2226
|
+
z.ZodTypeDef,
|
|
2227
|
+
GetProjectsEnvId
|
|
2228
|
+
> = z.union([z.string(), GetProjectsEnvId2$outboundSchema]);
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* @internal
|
|
2232
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2233
|
+
*/
|
|
2234
|
+
export namespace GetProjectsEnvId$ {
|
|
2235
|
+
/** @deprecated use `GetProjectsEnvId$inboundSchema` instead. */
|
|
2236
|
+
export const inboundSchema = GetProjectsEnvId$inboundSchema;
|
|
2237
|
+
/** @deprecated use `GetProjectsEnvId$outboundSchema` instead. */
|
|
2238
|
+
export const outboundSchema = GetProjectsEnvId$outboundSchema;
|
|
2239
|
+
/** @deprecated use `GetProjectsEnvId$Outbound` instead. */
|
|
2240
|
+
export type Outbound = GetProjectsEnvId$Outbound;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
export function getProjectsEnvIdToJSON(
|
|
2244
|
+
getProjectsEnvId: GetProjectsEnvId,
|
|
2245
|
+
): string {
|
|
2246
|
+
return JSON.stringify(
|
|
2247
|
+
GetProjectsEnvId$outboundSchema.parse(getProjectsEnvId),
|
|
2248
|
+
);
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
export function getProjectsEnvIdFromJSON(
|
|
2252
|
+
jsonString: string,
|
|
2253
|
+
): SafeParseResult<GetProjectsEnvId, SDKValidationError> {
|
|
2254
|
+
return safeParse(
|
|
2255
|
+
jsonString,
|
|
2256
|
+
(x) => GetProjectsEnvId$inboundSchema.parse(JSON.parse(x)),
|
|
2257
|
+
`Failed to parse 'GetProjectsEnvId' from JSON`,
|
|
2258
|
+
);
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
/** @internal */
|
|
2262
|
+
export const GetProjectsAws$inboundSchema: z.ZodType<
|
|
2263
|
+
GetProjectsAws,
|
|
2264
|
+
z.ZodTypeDef,
|
|
2265
|
+
unknown
|
|
2266
|
+
> = z.object({
|
|
2267
|
+
subnetIds: z.array(z.string()),
|
|
2268
|
+
securityGroupId: z.string(),
|
|
2269
|
+
});
|
|
2270
|
+
|
|
2271
|
+
/** @internal */
|
|
2272
|
+
export type GetProjectsAws$Outbound = {
|
|
2273
|
+
subnetIds: Array<string>;
|
|
2274
|
+
securityGroupId: string;
|
|
2275
|
+
};
|
|
2276
|
+
|
|
2277
|
+
/** @internal */
|
|
2278
|
+
export const GetProjectsAws$outboundSchema: z.ZodType<
|
|
2279
|
+
GetProjectsAws$Outbound,
|
|
2280
|
+
z.ZodTypeDef,
|
|
2281
|
+
GetProjectsAws
|
|
2282
|
+
> = z.object({
|
|
2283
|
+
subnetIds: z.array(z.string()),
|
|
2284
|
+
securityGroupId: z.string(),
|
|
2285
|
+
});
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* @internal
|
|
2289
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2290
|
+
*/
|
|
2291
|
+
export namespace GetProjectsAws$ {
|
|
2292
|
+
/** @deprecated use `GetProjectsAws$inboundSchema` instead. */
|
|
2293
|
+
export const inboundSchema = GetProjectsAws$inboundSchema;
|
|
2294
|
+
/** @deprecated use `GetProjectsAws$outboundSchema` instead. */
|
|
2295
|
+
export const outboundSchema = GetProjectsAws$outboundSchema;
|
|
2296
|
+
/** @deprecated use `GetProjectsAws$Outbound` instead. */
|
|
2297
|
+
export type Outbound = GetProjectsAws$Outbound;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
export function getProjectsAwsToJSON(getProjectsAws: GetProjectsAws): string {
|
|
2301
|
+
return JSON.stringify(GetProjectsAws$outboundSchema.parse(getProjectsAws));
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
export function getProjectsAwsFromJSON(
|
|
2305
|
+
jsonString: string,
|
|
2306
|
+
): SafeParseResult<GetProjectsAws, SDKValidationError> {
|
|
2307
|
+
return safeParse(
|
|
2308
|
+
jsonString,
|
|
2309
|
+
(x) => GetProjectsAws$inboundSchema.parse(JSON.parse(x)),
|
|
2310
|
+
`Failed to parse 'GetProjectsAws' from JSON`,
|
|
2311
|
+
);
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
/** @internal */
|
|
2315
|
+
export const GetProjectsConnectConfigurations$inboundSchema: z.ZodType<
|
|
2316
|
+
GetProjectsConnectConfigurations,
|
|
2317
|
+
z.ZodTypeDef,
|
|
2318
|
+
unknown
|
|
2319
|
+
> = z.object({
|
|
2320
|
+
envId: z.union([z.string(), GetProjectsEnvId2$inboundSchema]),
|
|
2321
|
+
connectConfigurationId: z.string(),
|
|
2322
|
+
passive: z.boolean(),
|
|
2323
|
+
buildsEnabled: z.boolean(),
|
|
2324
|
+
aws: z.lazy(() => GetProjectsAws$inboundSchema).optional(),
|
|
2325
|
+
createdAt: z.number(),
|
|
2326
|
+
updatedAt: z.number(),
|
|
2327
|
+
});
|
|
2328
|
+
|
|
2329
|
+
/** @internal */
|
|
2330
|
+
export type GetProjectsConnectConfigurations$Outbound = {
|
|
2331
|
+
envId: string | string;
|
|
2332
|
+
connectConfigurationId: string;
|
|
2333
|
+
passive: boolean;
|
|
2334
|
+
buildsEnabled: boolean;
|
|
2335
|
+
aws?: GetProjectsAws$Outbound | undefined;
|
|
2336
|
+
createdAt: number;
|
|
2337
|
+
updatedAt: number;
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
/** @internal */
|
|
2341
|
+
export const GetProjectsConnectConfigurations$outboundSchema: z.ZodType<
|
|
2342
|
+
GetProjectsConnectConfigurations$Outbound,
|
|
2343
|
+
z.ZodTypeDef,
|
|
2344
|
+
GetProjectsConnectConfigurations
|
|
2345
|
+
> = z.object({
|
|
2346
|
+
envId: z.union([z.string(), GetProjectsEnvId2$outboundSchema]),
|
|
2347
|
+
connectConfigurationId: z.string(),
|
|
2348
|
+
passive: z.boolean(),
|
|
2349
|
+
buildsEnabled: z.boolean(),
|
|
2350
|
+
aws: z.lazy(() => GetProjectsAws$outboundSchema).optional(),
|
|
2351
|
+
createdAt: z.number(),
|
|
2352
|
+
updatedAt: z.number(),
|
|
2353
|
+
});
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* @internal
|
|
2357
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2358
|
+
*/
|
|
2359
|
+
export namespace GetProjectsConnectConfigurations$ {
|
|
2360
|
+
/** @deprecated use `GetProjectsConnectConfigurations$inboundSchema` instead. */
|
|
2361
|
+
export const inboundSchema = GetProjectsConnectConfigurations$inboundSchema;
|
|
2362
|
+
/** @deprecated use `GetProjectsConnectConfigurations$outboundSchema` instead. */
|
|
2363
|
+
export const outboundSchema = GetProjectsConnectConfigurations$outboundSchema;
|
|
2364
|
+
/** @deprecated use `GetProjectsConnectConfigurations$Outbound` instead. */
|
|
2365
|
+
export type Outbound = GetProjectsConnectConfigurations$Outbound;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
export function getProjectsConnectConfigurationsToJSON(
|
|
2369
|
+
getProjectsConnectConfigurations: GetProjectsConnectConfigurations,
|
|
2370
|
+
): string {
|
|
2371
|
+
return JSON.stringify(
|
|
2372
|
+
GetProjectsConnectConfigurations$outboundSchema.parse(
|
|
2373
|
+
getProjectsConnectConfigurations,
|
|
2374
|
+
),
|
|
2375
|
+
);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
export function getProjectsConnectConfigurationsFromJSON(
|
|
2379
|
+
jsonString: string,
|
|
2380
|
+
): SafeParseResult<GetProjectsConnectConfigurations, SDKValidationError> {
|
|
2381
|
+
return safeParse(
|
|
2382
|
+
jsonString,
|
|
2383
|
+
(x) => GetProjectsConnectConfigurations$inboundSchema.parse(JSON.parse(x)),
|
|
2384
|
+
`Failed to parse 'GetProjectsConnectConfigurations' from JSON`,
|
|
2385
|
+
);
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2165
2388
|
/** @internal */
|
|
2166
2389
|
export const GetProjectsDefinitions$inboundSchema: z.ZodType<
|
|
2167
2390
|
GetProjectsDefinitions,
|
|
@@ -10329,8 +10552,12 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
10329
10552
|
autoAssignCustomDomainsUpdatedBy: z.string().optional(),
|
|
10330
10553
|
buildCommand: z.nullable(z.string()).optional(),
|
|
10331
10554
|
commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
|
|
10555
|
+
connectConfigurations: z.nullable(
|
|
10556
|
+
z.array(z.lazy(() => GetProjectsConnectConfigurations$inboundSchema)),
|
|
10557
|
+
).optional(),
|
|
10332
10558
|
connectConfigurationId: z.nullable(z.string()).optional(),
|
|
10333
10559
|
connectBuildsEnabled: z.boolean().optional(),
|
|
10560
|
+
passiveConnectConfigurationId: z.nullable(z.string()).optional(),
|
|
10334
10561
|
createdAt: z.number().optional(),
|
|
10335
10562
|
customerSupportCodeVisibility: z.boolean().optional(),
|
|
10336
10563
|
crons: z.lazy(() => GetProjectsCrons$inboundSchema).optional(),
|
|
@@ -10370,7 +10597,6 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
10370
10597
|
z.lazy(() => GetProjectsOptionsAllowlist$inboundSchema),
|
|
10371
10598
|
).optional(),
|
|
10372
10599
|
outputDirectory: z.nullable(z.string()).optional(),
|
|
10373
|
-
passiveConnectConfigurationId: z.nullable(z.string()).optional(),
|
|
10374
10600
|
passwordProtection: z.nullable(
|
|
10375
10601
|
z.lazy(() => GetProjectsPasswordProtection$inboundSchema),
|
|
10376
10602
|
).optional(),
|
|
@@ -10446,8 +10672,13 @@ export type GetProjectsProjects$Outbound = {
|
|
|
10446
10672
|
autoAssignCustomDomainsUpdatedBy?: string | undefined;
|
|
10447
10673
|
buildCommand?: string | null | undefined;
|
|
10448
10674
|
commandForIgnoringBuildStep?: string | null | undefined;
|
|
10675
|
+
connectConfigurations?:
|
|
10676
|
+
| Array<GetProjectsConnectConfigurations$Outbound>
|
|
10677
|
+
| null
|
|
10678
|
+
| undefined;
|
|
10449
10679
|
connectConfigurationId?: string | null | undefined;
|
|
10450
10680
|
connectBuildsEnabled?: boolean | undefined;
|
|
10681
|
+
passiveConnectConfigurationId?: string | null | undefined;
|
|
10451
10682
|
createdAt?: number | undefined;
|
|
10452
10683
|
customerSupportCodeVisibility?: boolean | undefined;
|
|
10453
10684
|
crons?: GetProjectsCrons$Outbound | undefined;
|
|
@@ -10483,7 +10714,6 @@ export type GetProjectsProjects$Outbound = {
|
|
|
10483
10714
|
nodeVersion: string;
|
|
10484
10715
|
optionsAllowlist?: GetProjectsOptionsAllowlist$Outbound | null | undefined;
|
|
10485
10716
|
outputDirectory?: string | null | undefined;
|
|
10486
|
-
passiveConnectConfigurationId?: string | null | undefined;
|
|
10487
10717
|
passwordProtection?:
|
|
10488
10718
|
| GetProjectsPasswordProtection$Outbound
|
|
10489
10719
|
| null
|
|
@@ -10553,8 +10783,12 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
|
|
|
10553
10783
|
autoAssignCustomDomainsUpdatedBy: z.string().optional(),
|
|
10554
10784
|
buildCommand: z.nullable(z.string()).optional(),
|
|
10555
10785
|
commandForIgnoringBuildStep: z.nullable(z.string()).optional(),
|
|
10786
|
+
connectConfigurations: z.nullable(
|
|
10787
|
+
z.array(z.lazy(() => GetProjectsConnectConfigurations$outboundSchema)),
|
|
10788
|
+
).optional(),
|
|
10556
10789
|
connectConfigurationId: z.nullable(z.string()).optional(),
|
|
10557
10790
|
connectBuildsEnabled: z.boolean().optional(),
|
|
10791
|
+
passiveConnectConfigurationId: z.nullable(z.string()).optional(),
|
|
10558
10792
|
createdAt: z.number().optional(),
|
|
10559
10793
|
customerSupportCodeVisibility: z.boolean().optional(),
|
|
10560
10794
|
crons: z.lazy(() => GetProjectsCrons$outboundSchema).optional(),
|
|
@@ -10594,7 +10828,6 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
|
|
|
10594
10828
|
z.lazy(() => GetProjectsOptionsAllowlist$outboundSchema),
|
|
10595
10829
|
).optional(),
|
|
10596
10830
|
outputDirectory: z.nullable(z.string()).optional(),
|
|
10597
|
-
passiveConnectConfigurationId: z.nullable(z.string()).optional(),
|
|
10598
10831
|
passwordProtection: z.nullable(
|
|
10599
10832
|
z.lazy(() => GetProjectsPasswordProtection$outboundSchema),
|
|
10600
10833
|
).optional(),
|
|
@@ -69,6 +69,10 @@ export type ImportResourceSecrets = {
|
|
|
69
69
|
name: string;
|
|
70
70
|
value: string;
|
|
71
71
|
prefix?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.
|
|
74
|
+
*/
|
|
75
|
+
environmentOverrides?: { [k: string]: string } | undefined;
|
|
72
76
|
};
|
|
73
77
|
|
|
74
78
|
export type ImportResourceRequestBody = {
|
|
@@ -419,6 +423,7 @@ export const ImportResourceSecrets$inboundSchema: z.ZodType<
|
|
|
419
423
|
name: z.string(),
|
|
420
424
|
value: z.string(),
|
|
421
425
|
prefix: z.string().optional(),
|
|
426
|
+
environmentOverrides: z.record(z.string()).optional(),
|
|
422
427
|
});
|
|
423
428
|
|
|
424
429
|
/** @internal */
|
|
@@ -426,6 +431,7 @@ export type ImportResourceSecrets$Outbound = {
|
|
|
426
431
|
name: string;
|
|
427
432
|
value: string;
|
|
428
433
|
prefix?: string | undefined;
|
|
434
|
+
environmentOverrides?: { [k: string]: string } | undefined;
|
|
429
435
|
};
|
|
430
436
|
|
|
431
437
|
/** @internal */
|
|
@@ -437,6 +443,7 @@ export const ImportResourceSecrets$outboundSchema: z.ZodType<
|
|
|
437
443
|
name: z.string(),
|
|
438
444
|
value: z.string(),
|
|
439
445
|
prefix: z.string().optional(),
|
|
446
|
+
environmentOverrides: z.record(z.string()).optional(),
|
|
440
447
|
});
|
|
441
448
|
|
|
442
449
|
/**
|
|
@@ -24,7 +24,7 @@ export type IssueCertRequest = {
|
|
|
24
24
|
* The Team slug to perform the request on behalf of.
|
|
25
25
|
*/
|
|
26
26
|
slug?: string | undefined;
|
|
27
|
-
requestBody
|
|
27
|
+
requestBody?: IssueCertRequestBody | undefined;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export type IssueCertResponseBody = {
|
|
@@ -97,7 +97,7 @@ export const IssueCertRequest$inboundSchema: z.ZodType<
|
|
|
97
97
|
> = z.object({
|
|
98
98
|
teamId: z.string().optional(),
|
|
99
99
|
slug: z.string().optional(),
|
|
100
|
-
RequestBody: z.lazy(() => IssueCertRequestBody$inboundSchema),
|
|
100
|
+
RequestBody: z.lazy(() => IssueCertRequestBody$inboundSchema).optional(),
|
|
101
101
|
}).transform((v) => {
|
|
102
102
|
return remap$(v, {
|
|
103
103
|
"RequestBody": "requestBody",
|
|
@@ -108,7 +108,7 @@ export const IssueCertRequest$inboundSchema: z.ZodType<
|
|
|
108
108
|
export type IssueCertRequest$Outbound = {
|
|
109
109
|
teamId?: string | undefined;
|
|
110
110
|
slug?: string | undefined;
|
|
111
|
-
RequestBody
|
|
111
|
+
RequestBody?: IssueCertRequestBody$Outbound | undefined;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
/** @internal */
|
|
@@ -119,7 +119,7 @@ export const IssueCertRequest$outboundSchema: z.ZodType<
|
|
|
119
119
|
> = z.object({
|
|
120
120
|
teamId: z.string().optional(),
|
|
121
121
|
slug: z.string().optional(),
|
|
122
|
-
requestBody: z.lazy(() => IssueCertRequestBody$outboundSchema),
|
|
122
|
+
requestBody: z.lazy(() => IssueCertRequestBody$outboundSchema).optional(),
|
|
123
123
|
}).transform((v) => {
|
|
124
124
|
return remap$(v, {
|
|
125
125
|
requestBody: "RequestBody",
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
export type RemoveProjectDomainRequestBody = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether to remove all domains from this project that redirect to the domain being removed.
|
|
14
|
+
*/
|
|
15
|
+
removeRedirects?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
10
18
|
export type RemoveProjectDomainRequest = {
|
|
11
19
|
/**
|
|
12
20
|
* The unique project identifier or the project name
|
|
@@ -24,6 +32,7 @@ export type RemoveProjectDomainRequest = {
|
|
|
24
32
|
* The Team slug to perform the request on behalf of.
|
|
25
33
|
*/
|
|
26
34
|
slug?: string | undefined;
|
|
35
|
+
requestBody?: RemoveProjectDomainRequestBody | undefined;
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
/**
|
|
@@ -31,6 +40,62 @@ export type RemoveProjectDomainRequest = {
|
|
|
31
40
|
*/
|
|
32
41
|
export type RemoveProjectDomainResponseBody = {};
|
|
33
42
|
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const RemoveProjectDomainRequestBody$inboundSchema: z.ZodType<
|
|
45
|
+
RemoveProjectDomainRequestBody,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
removeRedirects: z.boolean().optional(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type RemoveProjectDomainRequestBody$Outbound = {
|
|
54
|
+
removeRedirects?: boolean | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const RemoveProjectDomainRequestBody$outboundSchema: z.ZodType<
|
|
59
|
+
RemoveProjectDomainRequestBody$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
RemoveProjectDomainRequestBody
|
|
62
|
+
> = z.object({
|
|
63
|
+
removeRedirects: z.boolean().optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace RemoveProjectDomainRequestBody$ {
|
|
71
|
+
/** @deprecated use `RemoveProjectDomainRequestBody$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = RemoveProjectDomainRequestBody$inboundSchema;
|
|
73
|
+
/** @deprecated use `RemoveProjectDomainRequestBody$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = RemoveProjectDomainRequestBody$outboundSchema;
|
|
75
|
+
/** @deprecated use `RemoveProjectDomainRequestBody$Outbound` instead. */
|
|
76
|
+
export type Outbound = RemoveProjectDomainRequestBody$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function removeProjectDomainRequestBodyToJSON(
|
|
80
|
+
removeProjectDomainRequestBody: RemoveProjectDomainRequestBody,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
RemoveProjectDomainRequestBody$outboundSchema.parse(
|
|
84
|
+
removeProjectDomainRequestBody,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function removeProjectDomainRequestBodyFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<RemoveProjectDomainRequestBody, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => RemoveProjectDomainRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'RemoveProjectDomainRequestBody' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
34
99
|
/** @internal */
|
|
35
100
|
export const RemoveProjectDomainRequest$inboundSchema: z.ZodType<
|
|
36
101
|
RemoveProjectDomainRequest,
|
|
@@ -41,6 +106,12 @@ export const RemoveProjectDomainRequest$inboundSchema: z.ZodType<
|
|
|
41
106
|
domain: z.string(),
|
|
42
107
|
teamId: z.string().optional(),
|
|
43
108
|
slug: z.string().optional(),
|
|
109
|
+
RequestBody: z.lazy(() => RemoveProjectDomainRequestBody$inboundSchema)
|
|
110
|
+
.optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
"RequestBody": "requestBody",
|
|
114
|
+
});
|
|
44
115
|
});
|
|
45
116
|
|
|
46
117
|
/** @internal */
|
|
@@ -49,6 +120,7 @@ export type RemoveProjectDomainRequest$Outbound = {
|
|
|
49
120
|
domain: string;
|
|
50
121
|
teamId?: string | undefined;
|
|
51
122
|
slug?: string | undefined;
|
|
123
|
+
RequestBody?: RemoveProjectDomainRequestBody$Outbound | undefined;
|
|
52
124
|
};
|
|
53
125
|
|
|
54
126
|
/** @internal */
|
|
@@ -61,6 +133,12 @@ export const RemoveProjectDomainRequest$outboundSchema: z.ZodType<
|
|
|
61
133
|
domain: z.string(),
|
|
62
134
|
teamId: z.string().optional(),
|
|
63
135
|
slug: z.string().optional(),
|
|
136
|
+
requestBody: z.lazy(() => RemoveProjectDomainRequestBody$outboundSchema)
|
|
137
|
+
.optional(),
|
|
138
|
+
}).transform((v) => {
|
|
139
|
+
return remap$(v, {
|
|
140
|
+
requestBody: "RequestBody",
|
|
141
|
+
});
|
|
64
142
|
});
|
|
65
143
|
|
|
66
144
|
/**
|
|
@@ -10,10 +10,6 @@ import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
|
10
10
|
export type RequestPromoteRequest = {
|
|
11
11
|
projectId: string;
|
|
12
12
|
deploymentId: string;
|
|
13
|
-
/**
|
|
14
|
-
* Skip the rolling release process and promote directly to production
|
|
15
|
-
*/
|
|
16
|
-
dangerouslyForcePromoteCanary?: boolean | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The Team identifier to perform the request on behalf of.
|
|
19
15
|
*/
|
|
@@ -32,7 +28,6 @@ export const RequestPromoteRequest$inboundSchema: z.ZodType<
|
|
|
32
28
|
> = z.object({
|
|
33
29
|
projectId: z.string(),
|
|
34
30
|
deploymentId: z.string(),
|
|
35
|
-
dangerouslyForcePromoteCanary: z.boolean().optional(),
|
|
36
31
|
teamId: z.string().optional(),
|
|
37
32
|
slug: z.string().optional(),
|
|
38
33
|
});
|
|
@@ -41,7 +36,6 @@ export const RequestPromoteRequest$inboundSchema: z.ZodType<
|
|
|
41
36
|
export type RequestPromoteRequest$Outbound = {
|
|
42
37
|
projectId: string;
|
|
43
38
|
deploymentId: string;
|
|
44
|
-
dangerouslyForcePromoteCanary?: boolean | undefined;
|
|
45
39
|
teamId?: string | undefined;
|
|
46
40
|
slug?: string | undefined;
|
|
47
41
|
};
|
|
@@ -54,7 +48,6 @@ export const RequestPromoteRequest$outboundSchema: z.ZodType<
|
|
|
54
48
|
> = z.object({
|
|
55
49
|
projectId: z.string(),
|
|
56
50
|
deploymentId: z.string(),
|
|
57
|
-
dangerouslyForcePromoteCanary: z.boolean().optional(),
|
|
58
51
|
teamId: z.string().optional(),
|
|
59
52
|
slug: z.string().optional(),
|
|
60
53
|
});
|