@vercel/sdk 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -29
- package/bin/mcp-server.js +2591 -901
- package/bin/mcp-server.js.map +29 -26
- package/docs/sdks/vercel/README.md +77 -0
- package/esm/__tests__/environment.test.js +28 -4
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/vercel.test.d.ts +2 -0
- package/esm/__tests__/vercel.test.d.ts.map +1 -0
- package/esm/__tests__/vercel.test.js +21 -0
- package/esm/__tests__/vercel.test.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
- package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/sdks.d.ts +3 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +6 -11
- package/esm/lib/sdks.js.map +1 -1
- 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 +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
- package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
- package/esm/models/authuser.d.ts +0 -5
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -2
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +268 -26
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +194 -24
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createcustomenvironmentop.d.ts +244 -2
- package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/createcustomenvironmentop.js +174 -2
- package/esm/models/createcustomenvironmentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +357 -58
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +290 -60
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +328 -71
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +253 -75
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +43 -43
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +51 -51
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +8 -8
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +12 -13
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +242 -2
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.js +175 -2
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +502 -18
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +354 -14
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getprojectdomainsop.d.ts +30 -30
- package/esm/models/getprojectdomainsop.d.ts.map +1 -1
- package/esm/models/getprojectdomainsop.js +32 -32
- package/esm/models/getprojectdomainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +342 -95
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +285 -112
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +8 -8
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +12 -12
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
- package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
- package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
- package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
- package/esm/models/removecustomenvironmentop.d.ts +245 -2
- package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
- package/esm/models/removecustomenvironmentop.js +173 -2
- package/esm/models/removecustomenvironmentop.js.map +1 -1
- package/esm/models/updatecustomenvironmentop.d.ts +244 -2
- package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
- package/esm/models/updatecustomenvironmentop.js +174 -2
- package/esm/models/updatecustomenvironmentop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +358 -111
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +309 -135
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +342 -95
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +285 -111
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +124 -6
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +114 -6
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/sdk.d.ts +8 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +8 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/environment.test.ts +28 -4
- package/src/__tests__/vercel.test.ts +26 -0
- package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
- package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
- package/src/models/authuser.ts +0 -7
- package/src/models/canceldeploymentop.ts +503 -43
- package/src/models/createcustomenvironmentop.ts +426 -4
- package/src/models/createdeploymentop.ts +640 -117
- package/src/models/createprojectop.ts +658 -201
- package/src/models/createrecordop.ts +96 -84
- package/src/models/getaliasop.ts +16 -14
- package/src/models/getcustomenvironmentop.ts +412 -4
- package/src/models/getdeploymentop.ts +962 -49
- package/src/models/getprojectdomainsop.ts +84 -84
- package/src/models/getprojectsop.ts +630 -189
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
- package/src/models/listaliasesop.ts +19 -16
- package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
- package/src/models/removecustomenvironmentop.ts +425 -4
- package/src/models/updatecustomenvironmentop.ts +437 -4
- package/src/models/updateprojectdatacacheop.ts +731 -271
- package/src/models/updateprojectop.ts +692 -249
- package/src/models/userevent.ts +205 -12
- package/src/sdk/sdk.ts +18 -1
- package/vercel-spec.json +2646 -161
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
11
|
|
|
@@ -35,7 +36,124 @@ export type RemoveCustomEnvironmentRequest = {
|
|
|
35
36
|
requestBody?: RemoveCustomEnvironmentRequestBody | undefined;
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
/**
|
|
40
|
+
* The type of environment (production, preview, or development)
|
|
41
|
+
*/
|
|
42
|
+
export const RemoveCustomEnvironmentType = {
|
|
43
|
+
Production: "production",
|
|
44
|
+
Preview: "preview",
|
|
45
|
+
Development: "development",
|
|
46
|
+
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* The type of environment (production, preview, or development)
|
|
49
|
+
*/
|
|
50
|
+
export type RemoveCustomEnvironmentType = ClosedEnum<
|
|
51
|
+
typeof RemoveCustomEnvironmentType
|
|
52
|
+
>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The type of matching to perform
|
|
56
|
+
*/
|
|
57
|
+
export const RemoveCustomEnvironmentEnvironmentType = {
|
|
58
|
+
EndsWith: "endsWith",
|
|
59
|
+
StartsWith: "startsWith",
|
|
60
|
+
Equals: "equals",
|
|
61
|
+
} as const;
|
|
62
|
+
/**
|
|
63
|
+
* The type of matching to perform
|
|
64
|
+
*/
|
|
65
|
+
export type RemoveCustomEnvironmentEnvironmentType = ClosedEnum<
|
|
66
|
+
typeof RemoveCustomEnvironmentEnvironmentType
|
|
67
|
+
>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Configuration for matching git branches to this environment
|
|
71
|
+
*/
|
|
72
|
+
export type RemoveCustomEnvironmentBranchMatcher = {
|
|
73
|
+
/**
|
|
74
|
+
* The type of matching to perform
|
|
75
|
+
*/
|
|
76
|
+
type: RemoveCustomEnvironmentEnvironmentType;
|
|
77
|
+
/**
|
|
78
|
+
* The pattern to match against branch names
|
|
79
|
+
*/
|
|
80
|
+
pattern: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
|
|
85
|
+
*/
|
|
86
|
+
export type RemoveCustomEnvironmentVerification = {
|
|
87
|
+
type: string;
|
|
88
|
+
domain: string;
|
|
89
|
+
value: string;
|
|
90
|
+
reason: string;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* List of domains associated with this environment
|
|
95
|
+
*/
|
|
96
|
+
export type RemoveCustomEnvironmentDomains = {
|
|
97
|
+
name: string;
|
|
98
|
+
apexName: string;
|
|
99
|
+
projectId: string;
|
|
100
|
+
redirect?: string | null | undefined;
|
|
101
|
+
redirectStatusCode?: number | null | undefined;
|
|
102
|
+
gitBranch?: string | null | undefined;
|
|
103
|
+
customEnvironmentId?: string | null | undefined;
|
|
104
|
+
updatedAt?: number | undefined;
|
|
105
|
+
createdAt?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* `true` if the domain is verified for use with the project. If `false` it will not be used as an alias on this project until the challenge in `verification` is completed.
|
|
108
|
+
*/
|
|
109
|
+
verified: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
|
|
112
|
+
*/
|
|
113
|
+
verification?: Array<RemoveCustomEnvironmentVerification> | undefined;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Internal representation of a custom environment with all required properties
|
|
118
|
+
*/
|
|
119
|
+
export type RemoveCustomEnvironmentResponseBody = {
|
|
120
|
+
/**
|
|
121
|
+
* Unique identifier for the custom environment (format: env_*)
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* URL-friendly name of the environment
|
|
126
|
+
*/
|
|
127
|
+
slug: string;
|
|
128
|
+
/**
|
|
129
|
+
* The type of environment (production, preview, or development)
|
|
130
|
+
*/
|
|
131
|
+
type: RemoveCustomEnvironmentType;
|
|
132
|
+
/**
|
|
133
|
+
* Optional description of the environment's purpose
|
|
134
|
+
*/
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Configuration for matching git branches to this environment
|
|
138
|
+
*/
|
|
139
|
+
branchMatcher?: RemoveCustomEnvironmentBranchMatcher | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* List of domains associated with this environment
|
|
142
|
+
*/
|
|
143
|
+
domains?: Array<RemoveCustomEnvironmentDomains> | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* List of aliases for the current deployment
|
|
146
|
+
*/
|
|
147
|
+
currentDeploymentAliases?: Array<string> | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Timestamp when the environment was created
|
|
150
|
+
*/
|
|
151
|
+
createdAt: number;
|
|
152
|
+
/**
|
|
153
|
+
* Timestamp when the environment was last updated
|
|
154
|
+
*/
|
|
155
|
+
updatedAt: number;
|
|
156
|
+
};
|
|
39
157
|
|
|
40
158
|
/** @internal */
|
|
41
159
|
export const RemoveCustomEnvironmentRequestBody$inboundSchema: z.ZodType<
|
|
@@ -173,22 +291,325 @@ export function removeCustomEnvironmentRequestFromJSON(
|
|
|
173
291
|
);
|
|
174
292
|
}
|
|
175
293
|
|
|
294
|
+
/** @internal */
|
|
295
|
+
export const RemoveCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
|
|
296
|
+
typeof RemoveCustomEnvironmentType
|
|
297
|
+
> = z.nativeEnum(RemoveCustomEnvironmentType);
|
|
298
|
+
|
|
299
|
+
/** @internal */
|
|
300
|
+
export const RemoveCustomEnvironmentType$outboundSchema: z.ZodNativeEnum<
|
|
301
|
+
typeof RemoveCustomEnvironmentType
|
|
302
|
+
> = RemoveCustomEnvironmentType$inboundSchema;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
307
|
+
*/
|
|
308
|
+
export namespace RemoveCustomEnvironmentType$ {
|
|
309
|
+
/** @deprecated use `RemoveCustomEnvironmentType$inboundSchema` instead. */
|
|
310
|
+
export const inboundSchema = RemoveCustomEnvironmentType$inboundSchema;
|
|
311
|
+
/** @deprecated use `RemoveCustomEnvironmentType$outboundSchema` instead. */
|
|
312
|
+
export const outboundSchema = RemoveCustomEnvironmentType$outboundSchema;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const RemoveCustomEnvironmentEnvironmentType$inboundSchema:
|
|
317
|
+
z.ZodNativeEnum<typeof RemoveCustomEnvironmentEnvironmentType> = z.nativeEnum(
|
|
318
|
+
RemoveCustomEnvironmentEnvironmentType,
|
|
319
|
+
);
|
|
320
|
+
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const RemoveCustomEnvironmentEnvironmentType$outboundSchema:
|
|
323
|
+
z.ZodNativeEnum<typeof RemoveCustomEnvironmentEnvironmentType> =
|
|
324
|
+
RemoveCustomEnvironmentEnvironmentType$inboundSchema;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @internal
|
|
328
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
329
|
+
*/
|
|
330
|
+
export namespace RemoveCustomEnvironmentEnvironmentType$ {
|
|
331
|
+
/** @deprecated use `RemoveCustomEnvironmentEnvironmentType$inboundSchema` instead. */
|
|
332
|
+
export const inboundSchema =
|
|
333
|
+
RemoveCustomEnvironmentEnvironmentType$inboundSchema;
|
|
334
|
+
/** @deprecated use `RemoveCustomEnvironmentEnvironmentType$outboundSchema` instead. */
|
|
335
|
+
export const outboundSchema =
|
|
336
|
+
RemoveCustomEnvironmentEnvironmentType$outboundSchema;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/** @internal */
|
|
340
|
+
export const RemoveCustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<
|
|
341
|
+
RemoveCustomEnvironmentBranchMatcher,
|
|
342
|
+
z.ZodTypeDef,
|
|
343
|
+
unknown
|
|
344
|
+
> = z.object({
|
|
345
|
+
type: RemoveCustomEnvironmentEnvironmentType$inboundSchema,
|
|
346
|
+
pattern: z.string(),
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
/** @internal */
|
|
350
|
+
export type RemoveCustomEnvironmentBranchMatcher$Outbound = {
|
|
351
|
+
type: string;
|
|
352
|
+
pattern: string;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const RemoveCustomEnvironmentBranchMatcher$outboundSchema: z.ZodType<
|
|
357
|
+
RemoveCustomEnvironmentBranchMatcher$Outbound,
|
|
358
|
+
z.ZodTypeDef,
|
|
359
|
+
RemoveCustomEnvironmentBranchMatcher
|
|
360
|
+
> = z.object({
|
|
361
|
+
type: RemoveCustomEnvironmentEnvironmentType$outboundSchema,
|
|
362
|
+
pattern: z.string(),
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @internal
|
|
367
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
368
|
+
*/
|
|
369
|
+
export namespace RemoveCustomEnvironmentBranchMatcher$ {
|
|
370
|
+
/** @deprecated use `RemoveCustomEnvironmentBranchMatcher$inboundSchema` instead. */
|
|
371
|
+
export const inboundSchema =
|
|
372
|
+
RemoveCustomEnvironmentBranchMatcher$inboundSchema;
|
|
373
|
+
/** @deprecated use `RemoveCustomEnvironmentBranchMatcher$outboundSchema` instead. */
|
|
374
|
+
export const outboundSchema =
|
|
375
|
+
RemoveCustomEnvironmentBranchMatcher$outboundSchema;
|
|
376
|
+
/** @deprecated use `RemoveCustomEnvironmentBranchMatcher$Outbound` instead. */
|
|
377
|
+
export type Outbound = RemoveCustomEnvironmentBranchMatcher$Outbound;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export function removeCustomEnvironmentBranchMatcherToJSON(
|
|
381
|
+
removeCustomEnvironmentBranchMatcher: RemoveCustomEnvironmentBranchMatcher,
|
|
382
|
+
): string {
|
|
383
|
+
return JSON.stringify(
|
|
384
|
+
RemoveCustomEnvironmentBranchMatcher$outboundSchema.parse(
|
|
385
|
+
removeCustomEnvironmentBranchMatcher,
|
|
386
|
+
),
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export function removeCustomEnvironmentBranchMatcherFromJSON(
|
|
391
|
+
jsonString: string,
|
|
392
|
+
): SafeParseResult<RemoveCustomEnvironmentBranchMatcher, SDKValidationError> {
|
|
393
|
+
return safeParse(
|
|
394
|
+
jsonString,
|
|
395
|
+
(x) =>
|
|
396
|
+
RemoveCustomEnvironmentBranchMatcher$inboundSchema.parse(JSON.parse(x)),
|
|
397
|
+
`Failed to parse 'RemoveCustomEnvironmentBranchMatcher' from JSON`,
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/** @internal */
|
|
402
|
+
export const RemoveCustomEnvironmentVerification$inboundSchema: z.ZodType<
|
|
403
|
+
RemoveCustomEnvironmentVerification,
|
|
404
|
+
z.ZodTypeDef,
|
|
405
|
+
unknown
|
|
406
|
+
> = z.object({
|
|
407
|
+
type: z.string(),
|
|
408
|
+
domain: z.string(),
|
|
409
|
+
value: z.string(),
|
|
410
|
+
reason: z.string(),
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
/** @internal */
|
|
414
|
+
export type RemoveCustomEnvironmentVerification$Outbound = {
|
|
415
|
+
type: string;
|
|
416
|
+
domain: string;
|
|
417
|
+
value: string;
|
|
418
|
+
reason: string;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
/** @internal */
|
|
422
|
+
export const RemoveCustomEnvironmentVerification$outboundSchema: z.ZodType<
|
|
423
|
+
RemoveCustomEnvironmentVerification$Outbound,
|
|
424
|
+
z.ZodTypeDef,
|
|
425
|
+
RemoveCustomEnvironmentVerification
|
|
426
|
+
> = z.object({
|
|
427
|
+
type: z.string(),
|
|
428
|
+
domain: z.string(),
|
|
429
|
+
value: z.string(),
|
|
430
|
+
reason: z.string(),
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @internal
|
|
435
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
436
|
+
*/
|
|
437
|
+
export namespace RemoveCustomEnvironmentVerification$ {
|
|
438
|
+
/** @deprecated use `RemoveCustomEnvironmentVerification$inboundSchema` instead. */
|
|
439
|
+
export const inboundSchema =
|
|
440
|
+
RemoveCustomEnvironmentVerification$inboundSchema;
|
|
441
|
+
/** @deprecated use `RemoveCustomEnvironmentVerification$outboundSchema` instead. */
|
|
442
|
+
export const outboundSchema =
|
|
443
|
+
RemoveCustomEnvironmentVerification$outboundSchema;
|
|
444
|
+
/** @deprecated use `RemoveCustomEnvironmentVerification$Outbound` instead. */
|
|
445
|
+
export type Outbound = RemoveCustomEnvironmentVerification$Outbound;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export function removeCustomEnvironmentVerificationToJSON(
|
|
449
|
+
removeCustomEnvironmentVerification: RemoveCustomEnvironmentVerification,
|
|
450
|
+
): string {
|
|
451
|
+
return JSON.stringify(
|
|
452
|
+
RemoveCustomEnvironmentVerification$outboundSchema.parse(
|
|
453
|
+
removeCustomEnvironmentVerification,
|
|
454
|
+
),
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export function removeCustomEnvironmentVerificationFromJSON(
|
|
459
|
+
jsonString: string,
|
|
460
|
+
): SafeParseResult<RemoveCustomEnvironmentVerification, SDKValidationError> {
|
|
461
|
+
return safeParse(
|
|
462
|
+
jsonString,
|
|
463
|
+
(x) =>
|
|
464
|
+
RemoveCustomEnvironmentVerification$inboundSchema.parse(JSON.parse(x)),
|
|
465
|
+
`Failed to parse 'RemoveCustomEnvironmentVerification' from JSON`,
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/** @internal */
|
|
470
|
+
export const RemoveCustomEnvironmentDomains$inboundSchema: z.ZodType<
|
|
471
|
+
RemoveCustomEnvironmentDomains,
|
|
472
|
+
z.ZodTypeDef,
|
|
473
|
+
unknown
|
|
474
|
+
> = z.object({
|
|
475
|
+
name: z.string(),
|
|
476
|
+
apexName: z.string(),
|
|
477
|
+
projectId: z.string(),
|
|
478
|
+
redirect: z.nullable(z.string()).optional(),
|
|
479
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
480
|
+
gitBranch: z.nullable(z.string()).optional(),
|
|
481
|
+
customEnvironmentId: z.nullable(z.string()).optional(),
|
|
482
|
+
updatedAt: z.number().optional(),
|
|
483
|
+
createdAt: z.number().optional(),
|
|
484
|
+
verified: z.boolean(),
|
|
485
|
+
verification: z.array(
|
|
486
|
+
z.lazy(() => RemoveCustomEnvironmentVerification$inboundSchema),
|
|
487
|
+
).optional(),
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
/** @internal */
|
|
491
|
+
export type RemoveCustomEnvironmentDomains$Outbound = {
|
|
492
|
+
name: string;
|
|
493
|
+
apexName: string;
|
|
494
|
+
projectId: string;
|
|
495
|
+
redirect?: string | null | undefined;
|
|
496
|
+
redirectStatusCode?: number | null | undefined;
|
|
497
|
+
gitBranch?: string | null | undefined;
|
|
498
|
+
customEnvironmentId?: string | null | undefined;
|
|
499
|
+
updatedAt?: number | undefined;
|
|
500
|
+
createdAt?: number | undefined;
|
|
501
|
+
verified: boolean;
|
|
502
|
+
verification?:
|
|
503
|
+
| Array<RemoveCustomEnvironmentVerification$Outbound>
|
|
504
|
+
| undefined;
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
/** @internal */
|
|
508
|
+
export const RemoveCustomEnvironmentDomains$outboundSchema: z.ZodType<
|
|
509
|
+
RemoveCustomEnvironmentDomains$Outbound,
|
|
510
|
+
z.ZodTypeDef,
|
|
511
|
+
RemoveCustomEnvironmentDomains
|
|
512
|
+
> = z.object({
|
|
513
|
+
name: z.string(),
|
|
514
|
+
apexName: z.string(),
|
|
515
|
+
projectId: z.string(),
|
|
516
|
+
redirect: z.nullable(z.string()).optional(),
|
|
517
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
518
|
+
gitBranch: z.nullable(z.string()).optional(),
|
|
519
|
+
customEnvironmentId: z.nullable(z.string()).optional(),
|
|
520
|
+
updatedAt: z.number().optional(),
|
|
521
|
+
createdAt: z.number().optional(),
|
|
522
|
+
verified: z.boolean(),
|
|
523
|
+
verification: z.array(
|
|
524
|
+
z.lazy(() => RemoveCustomEnvironmentVerification$outboundSchema),
|
|
525
|
+
).optional(),
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @internal
|
|
530
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
531
|
+
*/
|
|
532
|
+
export namespace RemoveCustomEnvironmentDomains$ {
|
|
533
|
+
/** @deprecated use `RemoveCustomEnvironmentDomains$inboundSchema` instead. */
|
|
534
|
+
export const inboundSchema = RemoveCustomEnvironmentDomains$inboundSchema;
|
|
535
|
+
/** @deprecated use `RemoveCustomEnvironmentDomains$outboundSchema` instead. */
|
|
536
|
+
export const outboundSchema = RemoveCustomEnvironmentDomains$outboundSchema;
|
|
537
|
+
/** @deprecated use `RemoveCustomEnvironmentDomains$Outbound` instead. */
|
|
538
|
+
export type Outbound = RemoveCustomEnvironmentDomains$Outbound;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export function removeCustomEnvironmentDomainsToJSON(
|
|
542
|
+
removeCustomEnvironmentDomains: RemoveCustomEnvironmentDomains,
|
|
543
|
+
): string {
|
|
544
|
+
return JSON.stringify(
|
|
545
|
+
RemoveCustomEnvironmentDomains$outboundSchema.parse(
|
|
546
|
+
removeCustomEnvironmentDomains,
|
|
547
|
+
),
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export function removeCustomEnvironmentDomainsFromJSON(
|
|
552
|
+
jsonString: string,
|
|
553
|
+
): SafeParseResult<RemoveCustomEnvironmentDomains, SDKValidationError> {
|
|
554
|
+
return safeParse(
|
|
555
|
+
jsonString,
|
|
556
|
+
(x) => RemoveCustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
|
|
557
|
+
`Failed to parse 'RemoveCustomEnvironmentDomains' from JSON`,
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
|
|
176
561
|
/** @internal */
|
|
177
562
|
export const RemoveCustomEnvironmentResponseBody$inboundSchema: z.ZodType<
|
|
178
563
|
RemoveCustomEnvironmentResponseBody,
|
|
179
564
|
z.ZodTypeDef,
|
|
180
565
|
unknown
|
|
181
|
-
> = z.object({
|
|
566
|
+
> = z.object({
|
|
567
|
+
id: z.string(),
|
|
568
|
+
slug: z.string(),
|
|
569
|
+
type: RemoveCustomEnvironmentType$inboundSchema,
|
|
570
|
+
description: z.string().optional(),
|
|
571
|
+
branchMatcher: z.lazy(() =>
|
|
572
|
+
RemoveCustomEnvironmentBranchMatcher$inboundSchema
|
|
573
|
+
).optional(),
|
|
574
|
+
domains: z.array(z.lazy(() => RemoveCustomEnvironmentDomains$inboundSchema))
|
|
575
|
+
.optional(),
|
|
576
|
+
currentDeploymentAliases: z.array(z.string()).optional(),
|
|
577
|
+
createdAt: z.number(),
|
|
578
|
+
updatedAt: z.number(),
|
|
579
|
+
});
|
|
182
580
|
|
|
183
581
|
/** @internal */
|
|
184
|
-
export type RemoveCustomEnvironmentResponseBody$Outbound = {
|
|
582
|
+
export type RemoveCustomEnvironmentResponseBody$Outbound = {
|
|
583
|
+
id: string;
|
|
584
|
+
slug: string;
|
|
585
|
+
type: string;
|
|
586
|
+
description?: string | undefined;
|
|
587
|
+
branchMatcher?: RemoveCustomEnvironmentBranchMatcher$Outbound | undefined;
|
|
588
|
+
domains?: Array<RemoveCustomEnvironmentDomains$Outbound> | undefined;
|
|
589
|
+
currentDeploymentAliases?: Array<string> | undefined;
|
|
590
|
+
createdAt: number;
|
|
591
|
+
updatedAt: number;
|
|
592
|
+
};
|
|
185
593
|
|
|
186
594
|
/** @internal */
|
|
187
595
|
export const RemoveCustomEnvironmentResponseBody$outboundSchema: z.ZodType<
|
|
188
596
|
RemoveCustomEnvironmentResponseBody$Outbound,
|
|
189
597
|
z.ZodTypeDef,
|
|
190
598
|
RemoveCustomEnvironmentResponseBody
|
|
191
|
-
> = z.object({
|
|
599
|
+
> = z.object({
|
|
600
|
+
id: z.string(),
|
|
601
|
+
slug: z.string(),
|
|
602
|
+
type: RemoveCustomEnvironmentType$outboundSchema,
|
|
603
|
+
description: z.string().optional(),
|
|
604
|
+
branchMatcher: z.lazy(() =>
|
|
605
|
+
RemoveCustomEnvironmentBranchMatcher$outboundSchema
|
|
606
|
+
).optional(),
|
|
607
|
+
domains: z.array(z.lazy(() => RemoveCustomEnvironmentDomains$outboundSchema))
|
|
608
|
+
.optional(),
|
|
609
|
+
currentDeploymentAliases: z.array(z.string()).optional(),
|
|
610
|
+
createdAt: z.number(),
|
|
611
|
+
updatedAt: z.number(),
|
|
612
|
+
});
|
|
192
613
|
|
|
193
614
|
/**
|
|
194
615
|
* @internal
|