@vercel/sdk 1.6.6 → 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 +19 -31
- package/bin/mcp-server.js +2608 -910
- package/bin/mcp-server.js.map +31 -28
- package/docs/sdks/projects/README.md +1 -1
- 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__/projects.test.js +15 -13
- package/esm/__tests__/projects.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/funcs/projectsMoveProjectDomain.d.ts +1 -1
- package/esm/funcs/projectsMoveProjectDomain.js +1 -1
- 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/mcp-server/tools/projectsMoveProjectDomain.js +1 -1
- 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 +333 -71
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +255 -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 +347 -95
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +287 -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 +363 -111
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +311 -135
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +347 -95
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +287 -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/projects.d.ts +1 -1
- package/esm/sdk/projects.js +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__/projects.test.ts +15 -13
- package/src/__tests__/vercel.test.ts +26 -0
- package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
- package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
- package/src/funcs/projectsMoveProjectDomain.ts +1 -1
- 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/mcp-server/tools/projectsMoveProjectDomain.ts +1 -1
- 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 +664 -200
- 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 +637 -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 +738 -271
- package/src/models/updateprojectop.ts +697 -247
- package/src/models/userevent.ts +205 -12
- package/src/sdk/projects.ts +1 -1
- package/src/sdk/sdk.ts +18 -1
- package/vercel-spec.json +2667 -162
|
@@ -73,7 +73,124 @@ export type CreateCustomEnvironmentRequest = {
|
|
|
73
73
|
requestBody?: CreateCustomEnvironmentRequestBody | undefined;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
/**
|
|
77
|
+
* The type of environment (production, preview, or development)
|
|
78
|
+
*/
|
|
79
|
+
export const CreateCustomEnvironmentEnvironmentType = {
|
|
80
|
+
Production: "production",
|
|
81
|
+
Preview: "preview",
|
|
82
|
+
Development: "development",
|
|
83
|
+
} as const;
|
|
84
|
+
/**
|
|
85
|
+
* The type of environment (production, preview, or development)
|
|
86
|
+
*/
|
|
87
|
+
export type CreateCustomEnvironmentEnvironmentType = ClosedEnum<
|
|
88
|
+
typeof CreateCustomEnvironmentEnvironmentType
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The type of matching to perform
|
|
93
|
+
*/
|
|
94
|
+
export const CreateCustomEnvironmentEnvironmentResponseType = {
|
|
95
|
+
EndsWith: "endsWith",
|
|
96
|
+
StartsWith: "startsWith",
|
|
97
|
+
Equals: "equals",
|
|
98
|
+
} as const;
|
|
99
|
+
/**
|
|
100
|
+
* The type of matching to perform
|
|
101
|
+
*/
|
|
102
|
+
export type CreateCustomEnvironmentEnvironmentResponseType = ClosedEnum<
|
|
103
|
+
typeof CreateCustomEnvironmentEnvironmentResponseType
|
|
104
|
+
>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Configuration for matching git branches to this environment
|
|
108
|
+
*/
|
|
109
|
+
export type CreateCustomEnvironmentBranchMatcher = {
|
|
110
|
+
/**
|
|
111
|
+
* The type of matching to perform
|
|
112
|
+
*/
|
|
113
|
+
type: CreateCustomEnvironmentEnvironmentResponseType;
|
|
114
|
+
/**
|
|
115
|
+
* The pattern to match against branch names
|
|
116
|
+
*/
|
|
117
|
+
pattern: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 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`.
|
|
122
|
+
*/
|
|
123
|
+
export type CreateCustomEnvironmentVerification = {
|
|
124
|
+
type: string;
|
|
125
|
+
domain: string;
|
|
126
|
+
value: string;
|
|
127
|
+
reason: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* List of domains associated with this environment
|
|
132
|
+
*/
|
|
133
|
+
export type CreateCustomEnvironmentDomains = {
|
|
134
|
+
name: string;
|
|
135
|
+
apexName: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
redirect?: string | null | undefined;
|
|
138
|
+
redirectStatusCode?: number | null | undefined;
|
|
139
|
+
gitBranch?: string | null | undefined;
|
|
140
|
+
customEnvironmentId?: string | null | undefined;
|
|
141
|
+
updatedAt?: number | undefined;
|
|
142
|
+
createdAt?: number | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* `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.
|
|
145
|
+
*/
|
|
146
|
+
verified: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* 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`.
|
|
149
|
+
*/
|
|
150
|
+
verification?: Array<CreateCustomEnvironmentVerification> | undefined;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Internal representation of a custom environment with all required properties
|
|
155
|
+
*/
|
|
156
|
+
export type CreateCustomEnvironmentResponseBody = {
|
|
157
|
+
/**
|
|
158
|
+
* Unique identifier for the custom environment (format: env_*)
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* URL-friendly name of the environment
|
|
163
|
+
*/
|
|
164
|
+
slug: string;
|
|
165
|
+
/**
|
|
166
|
+
* The type of environment (production, preview, or development)
|
|
167
|
+
*/
|
|
168
|
+
type: CreateCustomEnvironmentEnvironmentType;
|
|
169
|
+
/**
|
|
170
|
+
* Optional description of the environment's purpose
|
|
171
|
+
*/
|
|
172
|
+
description?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Configuration for matching git branches to this environment
|
|
175
|
+
*/
|
|
176
|
+
branchMatcher?: CreateCustomEnvironmentBranchMatcher | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* List of domains associated with this environment
|
|
179
|
+
*/
|
|
180
|
+
domains?: Array<CreateCustomEnvironmentDomains> | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* List of aliases for the current deployment
|
|
183
|
+
*/
|
|
184
|
+
currentDeploymentAliases?: Array<string> | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Timestamp when the environment was created
|
|
187
|
+
*/
|
|
188
|
+
createdAt: number;
|
|
189
|
+
/**
|
|
190
|
+
* Timestamp when the environment was last updated
|
|
191
|
+
*/
|
|
192
|
+
updatedAt: number;
|
|
193
|
+
};
|
|
77
194
|
|
|
78
195
|
/** @internal */
|
|
79
196
|
export const CreateCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
|
|
@@ -291,22 +408,327 @@ export function createCustomEnvironmentRequestFromJSON(
|
|
|
291
408
|
);
|
|
292
409
|
}
|
|
293
410
|
|
|
411
|
+
/** @internal */
|
|
412
|
+
export const CreateCustomEnvironmentEnvironmentType$inboundSchema:
|
|
413
|
+
z.ZodNativeEnum<typeof CreateCustomEnvironmentEnvironmentType> = z.nativeEnum(
|
|
414
|
+
CreateCustomEnvironmentEnvironmentType,
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
/** @internal */
|
|
418
|
+
export const CreateCustomEnvironmentEnvironmentType$outboundSchema:
|
|
419
|
+
z.ZodNativeEnum<typeof CreateCustomEnvironmentEnvironmentType> =
|
|
420
|
+
CreateCustomEnvironmentEnvironmentType$inboundSchema;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
|
+
*/
|
|
426
|
+
export namespace CreateCustomEnvironmentEnvironmentType$ {
|
|
427
|
+
/** @deprecated use `CreateCustomEnvironmentEnvironmentType$inboundSchema` instead. */
|
|
428
|
+
export const inboundSchema =
|
|
429
|
+
CreateCustomEnvironmentEnvironmentType$inboundSchema;
|
|
430
|
+
/** @deprecated use `CreateCustomEnvironmentEnvironmentType$outboundSchema` instead. */
|
|
431
|
+
export const outboundSchema =
|
|
432
|
+
CreateCustomEnvironmentEnvironmentType$outboundSchema;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/** @internal */
|
|
436
|
+
export const CreateCustomEnvironmentEnvironmentResponseType$inboundSchema:
|
|
437
|
+
z.ZodNativeEnum<typeof CreateCustomEnvironmentEnvironmentResponseType> = z
|
|
438
|
+
.nativeEnum(CreateCustomEnvironmentEnvironmentResponseType);
|
|
439
|
+
|
|
440
|
+
/** @internal */
|
|
441
|
+
export const CreateCustomEnvironmentEnvironmentResponseType$outboundSchema:
|
|
442
|
+
z.ZodNativeEnum<typeof CreateCustomEnvironmentEnvironmentResponseType> =
|
|
443
|
+
CreateCustomEnvironmentEnvironmentResponseType$inboundSchema;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @internal
|
|
447
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
448
|
+
*/
|
|
449
|
+
export namespace CreateCustomEnvironmentEnvironmentResponseType$ {
|
|
450
|
+
/** @deprecated use `CreateCustomEnvironmentEnvironmentResponseType$inboundSchema` instead. */
|
|
451
|
+
export const inboundSchema =
|
|
452
|
+
CreateCustomEnvironmentEnvironmentResponseType$inboundSchema;
|
|
453
|
+
/** @deprecated use `CreateCustomEnvironmentEnvironmentResponseType$outboundSchema` instead. */
|
|
454
|
+
export const outboundSchema =
|
|
455
|
+
CreateCustomEnvironmentEnvironmentResponseType$outboundSchema;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** @internal */
|
|
459
|
+
export const CreateCustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<
|
|
460
|
+
CreateCustomEnvironmentBranchMatcher,
|
|
461
|
+
z.ZodTypeDef,
|
|
462
|
+
unknown
|
|
463
|
+
> = z.object({
|
|
464
|
+
type: CreateCustomEnvironmentEnvironmentResponseType$inboundSchema,
|
|
465
|
+
pattern: z.string(),
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
/** @internal */
|
|
469
|
+
export type CreateCustomEnvironmentBranchMatcher$Outbound = {
|
|
470
|
+
type: string;
|
|
471
|
+
pattern: string;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/** @internal */
|
|
475
|
+
export const CreateCustomEnvironmentBranchMatcher$outboundSchema: z.ZodType<
|
|
476
|
+
CreateCustomEnvironmentBranchMatcher$Outbound,
|
|
477
|
+
z.ZodTypeDef,
|
|
478
|
+
CreateCustomEnvironmentBranchMatcher
|
|
479
|
+
> = z.object({
|
|
480
|
+
type: CreateCustomEnvironmentEnvironmentResponseType$outboundSchema,
|
|
481
|
+
pattern: z.string(),
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @internal
|
|
486
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
487
|
+
*/
|
|
488
|
+
export namespace CreateCustomEnvironmentBranchMatcher$ {
|
|
489
|
+
/** @deprecated use `CreateCustomEnvironmentBranchMatcher$inboundSchema` instead. */
|
|
490
|
+
export const inboundSchema =
|
|
491
|
+
CreateCustomEnvironmentBranchMatcher$inboundSchema;
|
|
492
|
+
/** @deprecated use `CreateCustomEnvironmentBranchMatcher$outboundSchema` instead. */
|
|
493
|
+
export const outboundSchema =
|
|
494
|
+
CreateCustomEnvironmentBranchMatcher$outboundSchema;
|
|
495
|
+
/** @deprecated use `CreateCustomEnvironmentBranchMatcher$Outbound` instead. */
|
|
496
|
+
export type Outbound = CreateCustomEnvironmentBranchMatcher$Outbound;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export function createCustomEnvironmentBranchMatcherToJSON(
|
|
500
|
+
createCustomEnvironmentBranchMatcher: CreateCustomEnvironmentBranchMatcher,
|
|
501
|
+
): string {
|
|
502
|
+
return JSON.stringify(
|
|
503
|
+
CreateCustomEnvironmentBranchMatcher$outboundSchema.parse(
|
|
504
|
+
createCustomEnvironmentBranchMatcher,
|
|
505
|
+
),
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export function createCustomEnvironmentBranchMatcherFromJSON(
|
|
510
|
+
jsonString: string,
|
|
511
|
+
): SafeParseResult<CreateCustomEnvironmentBranchMatcher, SDKValidationError> {
|
|
512
|
+
return safeParse(
|
|
513
|
+
jsonString,
|
|
514
|
+
(x) =>
|
|
515
|
+
CreateCustomEnvironmentBranchMatcher$inboundSchema.parse(JSON.parse(x)),
|
|
516
|
+
`Failed to parse 'CreateCustomEnvironmentBranchMatcher' from JSON`,
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/** @internal */
|
|
521
|
+
export const CreateCustomEnvironmentVerification$inboundSchema: z.ZodType<
|
|
522
|
+
CreateCustomEnvironmentVerification,
|
|
523
|
+
z.ZodTypeDef,
|
|
524
|
+
unknown
|
|
525
|
+
> = z.object({
|
|
526
|
+
type: z.string(),
|
|
527
|
+
domain: z.string(),
|
|
528
|
+
value: z.string(),
|
|
529
|
+
reason: z.string(),
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
/** @internal */
|
|
533
|
+
export type CreateCustomEnvironmentVerification$Outbound = {
|
|
534
|
+
type: string;
|
|
535
|
+
domain: string;
|
|
536
|
+
value: string;
|
|
537
|
+
reason: string;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const CreateCustomEnvironmentVerification$outboundSchema: z.ZodType<
|
|
542
|
+
CreateCustomEnvironmentVerification$Outbound,
|
|
543
|
+
z.ZodTypeDef,
|
|
544
|
+
CreateCustomEnvironmentVerification
|
|
545
|
+
> = z.object({
|
|
546
|
+
type: z.string(),
|
|
547
|
+
domain: z.string(),
|
|
548
|
+
value: z.string(),
|
|
549
|
+
reason: z.string(),
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
555
|
+
*/
|
|
556
|
+
export namespace CreateCustomEnvironmentVerification$ {
|
|
557
|
+
/** @deprecated use `CreateCustomEnvironmentVerification$inboundSchema` instead. */
|
|
558
|
+
export const inboundSchema =
|
|
559
|
+
CreateCustomEnvironmentVerification$inboundSchema;
|
|
560
|
+
/** @deprecated use `CreateCustomEnvironmentVerification$outboundSchema` instead. */
|
|
561
|
+
export const outboundSchema =
|
|
562
|
+
CreateCustomEnvironmentVerification$outboundSchema;
|
|
563
|
+
/** @deprecated use `CreateCustomEnvironmentVerification$Outbound` instead. */
|
|
564
|
+
export type Outbound = CreateCustomEnvironmentVerification$Outbound;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export function createCustomEnvironmentVerificationToJSON(
|
|
568
|
+
createCustomEnvironmentVerification: CreateCustomEnvironmentVerification,
|
|
569
|
+
): string {
|
|
570
|
+
return JSON.stringify(
|
|
571
|
+
CreateCustomEnvironmentVerification$outboundSchema.parse(
|
|
572
|
+
createCustomEnvironmentVerification,
|
|
573
|
+
),
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export function createCustomEnvironmentVerificationFromJSON(
|
|
578
|
+
jsonString: string,
|
|
579
|
+
): SafeParseResult<CreateCustomEnvironmentVerification, SDKValidationError> {
|
|
580
|
+
return safeParse(
|
|
581
|
+
jsonString,
|
|
582
|
+
(x) =>
|
|
583
|
+
CreateCustomEnvironmentVerification$inboundSchema.parse(JSON.parse(x)),
|
|
584
|
+
`Failed to parse 'CreateCustomEnvironmentVerification' from JSON`,
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/** @internal */
|
|
589
|
+
export const CreateCustomEnvironmentDomains$inboundSchema: z.ZodType<
|
|
590
|
+
CreateCustomEnvironmentDomains,
|
|
591
|
+
z.ZodTypeDef,
|
|
592
|
+
unknown
|
|
593
|
+
> = z.object({
|
|
594
|
+
name: z.string(),
|
|
595
|
+
apexName: z.string(),
|
|
596
|
+
projectId: z.string(),
|
|
597
|
+
redirect: z.nullable(z.string()).optional(),
|
|
598
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
599
|
+
gitBranch: z.nullable(z.string()).optional(),
|
|
600
|
+
customEnvironmentId: z.nullable(z.string()).optional(),
|
|
601
|
+
updatedAt: z.number().optional(),
|
|
602
|
+
createdAt: z.number().optional(),
|
|
603
|
+
verified: z.boolean(),
|
|
604
|
+
verification: z.array(
|
|
605
|
+
z.lazy(() => CreateCustomEnvironmentVerification$inboundSchema),
|
|
606
|
+
).optional(),
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
/** @internal */
|
|
610
|
+
export type CreateCustomEnvironmentDomains$Outbound = {
|
|
611
|
+
name: string;
|
|
612
|
+
apexName: string;
|
|
613
|
+
projectId: string;
|
|
614
|
+
redirect?: string | null | undefined;
|
|
615
|
+
redirectStatusCode?: number | null | undefined;
|
|
616
|
+
gitBranch?: string | null | undefined;
|
|
617
|
+
customEnvironmentId?: string | null | undefined;
|
|
618
|
+
updatedAt?: number | undefined;
|
|
619
|
+
createdAt?: number | undefined;
|
|
620
|
+
verified: boolean;
|
|
621
|
+
verification?:
|
|
622
|
+
| Array<CreateCustomEnvironmentVerification$Outbound>
|
|
623
|
+
| undefined;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/** @internal */
|
|
627
|
+
export const CreateCustomEnvironmentDomains$outboundSchema: z.ZodType<
|
|
628
|
+
CreateCustomEnvironmentDomains$Outbound,
|
|
629
|
+
z.ZodTypeDef,
|
|
630
|
+
CreateCustomEnvironmentDomains
|
|
631
|
+
> = z.object({
|
|
632
|
+
name: z.string(),
|
|
633
|
+
apexName: z.string(),
|
|
634
|
+
projectId: z.string(),
|
|
635
|
+
redirect: z.nullable(z.string()).optional(),
|
|
636
|
+
redirectStatusCode: z.nullable(z.number()).optional(),
|
|
637
|
+
gitBranch: z.nullable(z.string()).optional(),
|
|
638
|
+
customEnvironmentId: z.nullable(z.string()).optional(),
|
|
639
|
+
updatedAt: z.number().optional(),
|
|
640
|
+
createdAt: z.number().optional(),
|
|
641
|
+
verified: z.boolean(),
|
|
642
|
+
verification: z.array(
|
|
643
|
+
z.lazy(() => CreateCustomEnvironmentVerification$outboundSchema),
|
|
644
|
+
).optional(),
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @internal
|
|
649
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
650
|
+
*/
|
|
651
|
+
export namespace CreateCustomEnvironmentDomains$ {
|
|
652
|
+
/** @deprecated use `CreateCustomEnvironmentDomains$inboundSchema` instead. */
|
|
653
|
+
export const inboundSchema = CreateCustomEnvironmentDomains$inboundSchema;
|
|
654
|
+
/** @deprecated use `CreateCustomEnvironmentDomains$outboundSchema` instead. */
|
|
655
|
+
export const outboundSchema = CreateCustomEnvironmentDomains$outboundSchema;
|
|
656
|
+
/** @deprecated use `CreateCustomEnvironmentDomains$Outbound` instead. */
|
|
657
|
+
export type Outbound = CreateCustomEnvironmentDomains$Outbound;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export function createCustomEnvironmentDomainsToJSON(
|
|
661
|
+
createCustomEnvironmentDomains: CreateCustomEnvironmentDomains,
|
|
662
|
+
): string {
|
|
663
|
+
return JSON.stringify(
|
|
664
|
+
CreateCustomEnvironmentDomains$outboundSchema.parse(
|
|
665
|
+
createCustomEnvironmentDomains,
|
|
666
|
+
),
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export function createCustomEnvironmentDomainsFromJSON(
|
|
671
|
+
jsonString: string,
|
|
672
|
+
): SafeParseResult<CreateCustomEnvironmentDomains, SDKValidationError> {
|
|
673
|
+
return safeParse(
|
|
674
|
+
jsonString,
|
|
675
|
+
(x) => CreateCustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
|
|
676
|
+
`Failed to parse 'CreateCustomEnvironmentDomains' from JSON`,
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
294
680
|
/** @internal */
|
|
295
681
|
export const CreateCustomEnvironmentResponseBody$inboundSchema: z.ZodType<
|
|
296
682
|
CreateCustomEnvironmentResponseBody,
|
|
297
683
|
z.ZodTypeDef,
|
|
298
684
|
unknown
|
|
299
|
-
> = z.object({
|
|
685
|
+
> = z.object({
|
|
686
|
+
id: z.string(),
|
|
687
|
+
slug: z.string(),
|
|
688
|
+
type: CreateCustomEnvironmentEnvironmentType$inboundSchema,
|
|
689
|
+
description: z.string().optional(),
|
|
690
|
+
branchMatcher: z.lazy(() =>
|
|
691
|
+
CreateCustomEnvironmentBranchMatcher$inboundSchema
|
|
692
|
+
).optional(),
|
|
693
|
+
domains: z.array(z.lazy(() => CreateCustomEnvironmentDomains$inboundSchema))
|
|
694
|
+
.optional(),
|
|
695
|
+
currentDeploymentAliases: z.array(z.string()).optional(),
|
|
696
|
+
createdAt: z.number(),
|
|
697
|
+
updatedAt: z.number(),
|
|
698
|
+
});
|
|
300
699
|
|
|
301
700
|
/** @internal */
|
|
302
|
-
export type CreateCustomEnvironmentResponseBody$Outbound = {
|
|
701
|
+
export type CreateCustomEnvironmentResponseBody$Outbound = {
|
|
702
|
+
id: string;
|
|
703
|
+
slug: string;
|
|
704
|
+
type: string;
|
|
705
|
+
description?: string | undefined;
|
|
706
|
+
branchMatcher?: CreateCustomEnvironmentBranchMatcher$Outbound | undefined;
|
|
707
|
+
domains?: Array<CreateCustomEnvironmentDomains$Outbound> | undefined;
|
|
708
|
+
currentDeploymentAliases?: Array<string> | undefined;
|
|
709
|
+
createdAt: number;
|
|
710
|
+
updatedAt: number;
|
|
711
|
+
};
|
|
303
712
|
|
|
304
713
|
/** @internal */
|
|
305
714
|
export const CreateCustomEnvironmentResponseBody$outboundSchema: z.ZodType<
|
|
306
715
|
CreateCustomEnvironmentResponseBody$Outbound,
|
|
307
716
|
z.ZodTypeDef,
|
|
308
717
|
CreateCustomEnvironmentResponseBody
|
|
309
|
-
> = z.object({
|
|
718
|
+
> = z.object({
|
|
719
|
+
id: z.string(),
|
|
720
|
+
slug: z.string(),
|
|
721
|
+
type: CreateCustomEnvironmentEnvironmentType$outboundSchema,
|
|
722
|
+
description: z.string().optional(),
|
|
723
|
+
branchMatcher: z.lazy(() =>
|
|
724
|
+
CreateCustomEnvironmentBranchMatcher$outboundSchema
|
|
725
|
+
).optional(),
|
|
726
|
+
domains: z.array(z.lazy(() => CreateCustomEnvironmentDomains$outboundSchema))
|
|
727
|
+
.optional(),
|
|
728
|
+
currentDeploymentAliases: z.array(z.string()).optional(),
|
|
729
|
+
createdAt: z.number(),
|
|
730
|
+
updatedAt: z.number(),
|
|
731
|
+
});
|
|
310
732
|
|
|
311
733
|
/**
|
|
312
734
|
* @internal
|