@vercel/sdk 1.6.8 → 1.6.9
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/bin/mcp-server.js +106 -103
- package/bin/mcp-server.js.map +13 -13
- package/esm/__tests__/environment.test.js +12 -12
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -15
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/authuser.d.ts +0 -3
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +9 -9
- package/esm/models/createprojectop.js +3 -3
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/getbypassipop.d.ts +28 -28
- package/esm/models/getbypassipop.d.ts.map +1 -1
- package/esm/models/getbypassipop.js +28 -28
- package/esm/models/getbypassipop.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +78 -9
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +57 -3
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +37 -80
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +25 -58
- package/esm/models/userevent.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/environment.test.ts +12 -12
- package/src/__tests__/projects.test.ts +13 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/authuser.ts +0 -1
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +3 -3
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/getbypassipop.ts +56 -56
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/updateprojectop.ts +149 -3
- package/src/models/userevent.ts +41 -109
- package/vercel-spec.json +66 -82
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -24,9 +24,9 @@ test("Environment Create Custom Environment", async () => {
|
|
|
24
24
|
expect(result).toEqual({
|
|
25
25
|
id: "<id>",
|
|
26
26
|
slug: "<value>",
|
|
27
|
-
type: "
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
27
|
+
type: "production",
|
|
28
|
+
createdAt: 7602.36,
|
|
29
|
+
updatedAt: 6458.94,
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -75,9 +75,9 @@ test("Environment Get Custom Environment", async () => {
|
|
|
75
75
|
expect(result).toEqual({
|
|
76
76
|
id: "<id>",
|
|
77
77
|
slug: "<value>",
|
|
78
|
-
type: "
|
|
79
|
-
createdAt:
|
|
80
|
-
updatedAt:
|
|
78
|
+
type: "production",
|
|
79
|
+
createdAt: 6942.59,
|
|
80
|
+
updatedAt: 6821.31,
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
|
|
@@ -100,9 +100,9 @@ test("Environment Update Custom Environment", async () => {
|
|
|
100
100
|
expect(result).toEqual({
|
|
101
101
|
id: "<id>",
|
|
102
102
|
slug: "<value>",
|
|
103
|
-
type: "
|
|
104
|
-
createdAt:
|
|
105
|
-
updatedAt:
|
|
103
|
+
type: "production",
|
|
104
|
+
createdAt: 6942.59,
|
|
105
|
+
updatedAt: 6821.31,
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -125,8 +125,8 @@ test("Environment Remove Custom Environment", async () => {
|
|
|
125
125
|
expect(result).toEqual({
|
|
126
126
|
id: "<id>",
|
|
127
127
|
slug: "<value>",
|
|
128
|
-
type: "
|
|
129
|
-
createdAt:
|
|
130
|
-
updatedAt:
|
|
128
|
+
type: "development",
|
|
129
|
+
createdAt: 9269.2,
|
|
130
|
+
updatedAt: 4613.86,
|
|
131
131
|
});
|
|
132
132
|
});
|
|
@@ -671,21 +671,19 @@ test("Projects Create Project Env", async () => {
|
|
|
671
671
|
upsert: "true",
|
|
672
672
|
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
673
673
|
slug: "my-team-url-slug",
|
|
674
|
-
requestBody:
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
-
],
|
|
674
|
+
requestBody: {
|
|
675
|
+
key: "API_URL",
|
|
676
|
+
value: "https://api.vercel.com",
|
|
677
|
+
type: "plain",
|
|
678
|
+
target: [
|
|
679
|
+
"preview",
|
|
680
|
+
],
|
|
681
|
+
gitBranch: "feature-1",
|
|
682
|
+
comment: "database connection string for production",
|
|
683
|
+
customEnvironmentIds: [
|
|
684
|
+
"env_1234567890",
|
|
685
|
+
],
|
|
686
|
+
},
|
|
689
687
|
});
|
|
690
688
|
expect(result).toBeDefined();
|
|
691
689
|
expect(result).toEqual({
|
package/src/lib/config.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "1.6.
|
|
61
|
-
genVersion: "2.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 1.6.
|
|
60
|
+
sdkVersion: "1.6.9",
|
|
61
|
+
genVersion: "2.597.9",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.6.9 2.597.9 0.0.1 @vercel/sdk",
|
|
63
63
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
package/src/models/authuser.ts
CHANGED
|
@@ -271,10 +271,10 @@ export type CreateProjectEnvCreatedTarget =
|
|
|
271
271
|
|
|
272
272
|
export const CreateProjectEnvCreatedType = {
|
|
273
273
|
System: "system",
|
|
274
|
+
Secret: "secret",
|
|
274
275
|
Encrypted: "encrypted",
|
|
275
276
|
Plain: "plain",
|
|
276
277
|
Sensitive: "sensitive",
|
|
277
|
-
Secret: "secret",
|
|
278
278
|
} as const;
|
|
279
279
|
export type CreateProjectEnvCreatedType = ClosedEnum<
|
|
280
280
|
typeof CreateProjectEnvCreatedType
|
|
@@ -617,10 +617,10 @@ export type CreatedTarget =
|
|
|
617
617
|
|
|
618
618
|
export const CreatedType = {
|
|
619
619
|
System: "system",
|
|
620
|
+
Secret: "secret",
|
|
620
621
|
Encrypted: "encrypted",
|
|
621
622
|
Plain: "plain",
|
|
622
623
|
Sensitive: "sensitive",
|
|
623
|
-
Secret: "secret",
|
|
624
624
|
} as const;
|
|
625
625
|
export type CreatedType = ClosedEnum<typeof CreatedType>;
|
|
626
626
|
|
|
@@ -353,10 +353,10 @@ export type CreateProjectProjectsTarget =
|
|
|
353
353
|
|
|
354
354
|
export const CreateProjectProjectsResponseType = {
|
|
355
355
|
System: "system",
|
|
356
|
+
Secret: "secret",
|
|
356
357
|
Encrypted: "encrypted",
|
|
357
358
|
Plain: "plain",
|
|
358
359
|
Sensitive: "sensitive",
|
|
359
|
-
Secret: "secret",
|
|
360
360
|
} as const;
|
|
361
361
|
export type CreateProjectProjectsResponseType = ClosedEnum<
|
|
362
362
|
typeof CreateProjectProjectsResponseType
|
|
@@ -1804,8 +1804,8 @@ export type CreateProjectSrc = CreateProjectSrc2 | string;
|
|
|
1804
1804
|
|
|
1805
1805
|
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
|
|
1806
1806
|
{
|
|
1807
|
-
Path: "path",
|
|
1808
1807
|
Host: "host",
|
|
1808
|
+
Path: "path",
|
|
1809
1809
|
Method: "method",
|
|
1810
1810
|
Header: "header",
|
|
1811
1811
|
Cookie: "cookie",
|
|
@@ -1846,8 +1846,8 @@ export type CreateProjectHas = {
|
|
|
1846
1846
|
|
|
1847
1847
|
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
|
|
1848
1848
|
{
|
|
1849
|
-
Path: "path",
|
|
1850
1849
|
Host: "host",
|
|
1850
|
+
Path: "path",
|
|
1851
1851
|
Method: "method",
|
|
1852
1852
|
Header: "header",
|
|
1853
1853
|
Cookie: "cookie",
|
|
@@ -97,10 +97,10 @@ export type EditProjectEnvResponseBodyTarget =
|
|
|
97
97
|
|
|
98
98
|
export const EditProjectEnvResponseBodyType = {
|
|
99
99
|
System: "system",
|
|
100
|
+
Secret: "secret",
|
|
100
101
|
Encrypted: "encrypted",
|
|
101
102
|
Plain: "plain",
|
|
102
103
|
Sensitive: "sensitive",
|
|
103
|
-
Secret: "secret",
|
|
104
104
|
} as const;
|
|
105
105
|
export type EditProjectEnvResponseBodyType = ClosedEnum<
|
|
106
106
|
typeof EditProjectEnvResponseBodyType
|
|
@@ -47,18 +47,18 @@ export type GetBypassIpResponseBodyAction = ClosedEnum<
|
|
|
47
47
|
>;
|
|
48
48
|
|
|
49
49
|
export type GetBypassIpResponseBodyResult = {
|
|
50
|
-
ownerId
|
|
51
|
-
id
|
|
52
|
-
domain
|
|
53
|
-
ip
|
|
50
|
+
ownerId?: string | undefined;
|
|
51
|
+
id?: string | undefined;
|
|
52
|
+
domain?: string | undefined;
|
|
53
|
+
ip?: string | undefined;
|
|
54
54
|
action?: GetBypassIpResponseBodyAction | undefined;
|
|
55
55
|
projectId?: string | undefined;
|
|
56
56
|
isProjectRule?: boolean | undefined;
|
|
57
57
|
note?: string | undefined;
|
|
58
|
-
createdAt
|
|
58
|
+
createdAt?: string | undefined;
|
|
59
59
|
actorId?: string | undefined;
|
|
60
|
-
updatedAt
|
|
61
|
-
updatedAtHour
|
|
60
|
+
updatedAt?: string | undefined;
|
|
61
|
+
updatedAtHour?: string | undefined;
|
|
62
62
|
deletedAt?: string | undefined;
|
|
63
63
|
expiresAt?: number | null | undefined;
|
|
64
64
|
};
|
|
@@ -80,18 +80,18 @@ export const ResponseBodyAction = {
|
|
|
80
80
|
export type ResponseBodyAction = ClosedEnum<typeof ResponseBodyAction>;
|
|
81
81
|
|
|
82
82
|
export type ResponseBodyResult = {
|
|
83
|
-
ownerId
|
|
84
|
-
id
|
|
85
|
-
domain
|
|
86
|
-
ip
|
|
83
|
+
ownerId?: string | undefined;
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
domain?: string | undefined;
|
|
86
|
+
ip?: string | undefined;
|
|
87
87
|
action?: ResponseBodyAction | undefined;
|
|
88
88
|
projectId?: string | undefined;
|
|
89
89
|
isProjectRule?: boolean | undefined;
|
|
90
90
|
note?: string | undefined;
|
|
91
|
-
createdAt
|
|
91
|
+
createdAt?: string | undefined;
|
|
92
92
|
actorId?: string | undefined;
|
|
93
|
-
updatedAt
|
|
94
|
-
updatedAtHour
|
|
93
|
+
updatedAt?: string | undefined;
|
|
94
|
+
updatedAtHour?: string | undefined;
|
|
95
95
|
deletedAt?: string | undefined;
|
|
96
96
|
expiresAt?: number | null | undefined;
|
|
97
97
|
};
|
|
@@ -207,18 +207,18 @@ export const GetBypassIpResponseBodyResult$inboundSchema: z.ZodType<
|
|
|
207
207
|
z.ZodTypeDef,
|
|
208
208
|
unknown
|
|
209
209
|
> = z.object({
|
|
210
|
-
OwnerId: z.string(),
|
|
211
|
-
Id: z.string(),
|
|
212
|
-
Domain: z.string(),
|
|
213
|
-
Ip: z.string(),
|
|
210
|
+
OwnerId: z.string().optional(),
|
|
211
|
+
Id: z.string().optional(),
|
|
212
|
+
Domain: z.string().optional(),
|
|
213
|
+
Ip: z.string().optional(),
|
|
214
214
|
Action: GetBypassIpResponseBodyAction$inboundSchema.optional(),
|
|
215
215
|
ProjectId: z.string().optional(),
|
|
216
216
|
IsProjectRule: z.boolean().optional(),
|
|
217
217
|
Note: z.string().optional(),
|
|
218
|
-
CreatedAt: z.string(),
|
|
218
|
+
CreatedAt: z.string().optional(),
|
|
219
219
|
ActorId: z.string().optional(),
|
|
220
|
-
UpdatedAt: z.string(),
|
|
221
|
-
UpdatedAtHour: z.string(),
|
|
220
|
+
UpdatedAt: z.string().optional(),
|
|
221
|
+
UpdatedAtHour: z.string().optional(),
|
|
222
222
|
DeletedAt: z.string().optional(),
|
|
223
223
|
ExpiresAt: z.nullable(z.number()).optional(),
|
|
224
224
|
}).transform((v) => {
|
|
@@ -242,18 +242,18 @@ export const GetBypassIpResponseBodyResult$inboundSchema: z.ZodType<
|
|
|
242
242
|
|
|
243
243
|
/** @internal */
|
|
244
244
|
export type GetBypassIpResponseBodyResult$Outbound = {
|
|
245
|
-
OwnerId
|
|
246
|
-
Id
|
|
247
|
-
Domain
|
|
248
|
-
Ip
|
|
245
|
+
OwnerId?: string | undefined;
|
|
246
|
+
Id?: string | undefined;
|
|
247
|
+
Domain?: string | undefined;
|
|
248
|
+
Ip?: string | undefined;
|
|
249
249
|
Action?: string | undefined;
|
|
250
250
|
ProjectId?: string | undefined;
|
|
251
251
|
IsProjectRule?: boolean | undefined;
|
|
252
252
|
Note?: string | undefined;
|
|
253
|
-
CreatedAt
|
|
253
|
+
CreatedAt?: string | undefined;
|
|
254
254
|
ActorId?: string | undefined;
|
|
255
|
-
UpdatedAt
|
|
256
|
-
UpdatedAtHour
|
|
255
|
+
UpdatedAt?: string | undefined;
|
|
256
|
+
UpdatedAtHour?: string | undefined;
|
|
257
257
|
DeletedAt?: string | undefined;
|
|
258
258
|
ExpiresAt?: number | null | undefined;
|
|
259
259
|
};
|
|
@@ -264,18 +264,18 @@ export const GetBypassIpResponseBodyResult$outboundSchema: z.ZodType<
|
|
|
264
264
|
z.ZodTypeDef,
|
|
265
265
|
GetBypassIpResponseBodyResult
|
|
266
266
|
> = z.object({
|
|
267
|
-
ownerId: z.string(),
|
|
268
|
-
id: z.string(),
|
|
269
|
-
domain: z.string(),
|
|
270
|
-
ip: z.string(),
|
|
267
|
+
ownerId: z.string().optional(),
|
|
268
|
+
id: z.string().optional(),
|
|
269
|
+
domain: z.string().optional(),
|
|
270
|
+
ip: z.string().optional(),
|
|
271
271
|
action: GetBypassIpResponseBodyAction$outboundSchema.optional(),
|
|
272
272
|
projectId: z.string().optional(),
|
|
273
273
|
isProjectRule: z.boolean().optional(),
|
|
274
274
|
note: z.string().optional(),
|
|
275
|
-
createdAt: z.string(),
|
|
275
|
+
createdAt: z.string().optional(),
|
|
276
276
|
actorId: z.string().optional(),
|
|
277
|
-
updatedAt: z.string(),
|
|
278
|
-
updatedAtHour: z.string(),
|
|
277
|
+
updatedAt: z.string().optional(),
|
|
278
|
+
updatedAtHour: z.string().optional(),
|
|
279
279
|
deletedAt: z.string().optional(),
|
|
280
280
|
expiresAt: z.nullable(z.number()).optional(),
|
|
281
281
|
}).transform((v) => {
|
|
@@ -488,18 +488,18 @@ export const ResponseBodyResult$inboundSchema: z.ZodType<
|
|
|
488
488
|
z.ZodTypeDef,
|
|
489
489
|
unknown
|
|
490
490
|
> = z.object({
|
|
491
|
-
OwnerId: z.string(),
|
|
492
|
-
Id: z.string(),
|
|
493
|
-
Domain: z.string(),
|
|
494
|
-
Ip: z.string(),
|
|
491
|
+
OwnerId: z.string().optional(),
|
|
492
|
+
Id: z.string().optional(),
|
|
493
|
+
Domain: z.string().optional(),
|
|
494
|
+
Ip: z.string().optional(),
|
|
495
495
|
Action: ResponseBodyAction$inboundSchema.optional(),
|
|
496
496
|
ProjectId: z.string().optional(),
|
|
497
497
|
IsProjectRule: z.boolean().optional(),
|
|
498
498
|
Note: z.string().optional(),
|
|
499
|
-
CreatedAt: z.string(),
|
|
499
|
+
CreatedAt: z.string().optional(),
|
|
500
500
|
ActorId: z.string().optional(),
|
|
501
|
-
UpdatedAt: z.string(),
|
|
502
|
-
UpdatedAtHour: z.string(),
|
|
501
|
+
UpdatedAt: z.string().optional(),
|
|
502
|
+
UpdatedAtHour: z.string().optional(),
|
|
503
503
|
DeletedAt: z.string().optional(),
|
|
504
504
|
ExpiresAt: z.nullable(z.number()).optional(),
|
|
505
505
|
}).transform((v) => {
|
|
@@ -523,18 +523,18 @@ export const ResponseBodyResult$inboundSchema: z.ZodType<
|
|
|
523
523
|
|
|
524
524
|
/** @internal */
|
|
525
525
|
export type ResponseBodyResult$Outbound = {
|
|
526
|
-
OwnerId
|
|
527
|
-
Id
|
|
528
|
-
Domain
|
|
529
|
-
Ip
|
|
526
|
+
OwnerId?: string | undefined;
|
|
527
|
+
Id?: string | undefined;
|
|
528
|
+
Domain?: string | undefined;
|
|
529
|
+
Ip?: string | undefined;
|
|
530
530
|
Action?: string | undefined;
|
|
531
531
|
ProjectId?: string | undefined;
|
|
532
532
|
IsProjectRule?: boolean | undefined;
|
|
533
533
|
Note?: string | undefined;
|
|
534
|
-
CreatedAt
|
|
534
|
+
CreatedAt?: string | undefined;
|
|
535
535
|
ActorId?: string | undefined;
|
|
536
|
-
UpdatedAt
|
|
537
|
-
UpdatedAtHour
|
|
536
|
+
UpdatedAt?: string | undefined;
|
|
537
|
+
UpdatedAtHour?: string | undefined;
|
|
538
538
|
DeletedAt?: string | undefined;
|
|
539
539
|
ExpiresAt?: number | null | undefined;
|
|
540
540
|
};
|
|
@@ -545,18 +545,18 @@ export const ResponseBodyResult$outboundSchema: z.ZodType<
|
|
|
545
545
|
z.ZodTypeDef,
|
|
546
546
|
ResponseBodyResult
|
|
547
547
|
> = z.object({
|
|
548
|
-
ownerId: z.string(),
|
|
549
|
-
id: z.string(),
|
|
550
|
-
domain: z.string(),
|
|
551
|
-
ip: z.string(),
|
|
548
|
+
ownerId: z.string().optional(),
|
|
549
|
+
id: z.string().optional(),
|
|
550
|
+
domain: z.string().optional(),
|
|
551
|
+
ip: z.string().optional(),
|
|
552
552
|
action: ResponseBodyAction$outboundSchema.optional(),
|
|
553
553
|
projectId: z.string().optional(),
|
|
554
554
|
isProjectRule: z.boolean().optional(),
|
|
555
555
|
note: z.string().optional(),
|
|
556
|
-
createdAt: z.string(),
|
|
556
|
+
createdAt: z.string().optional(),
|
|
557
557
|
actorId: z.string().optional(),
|
|
558
|
-
updatedAt: z.string(),
|
|
559
|
-
updatedAtHour: z.string(),
|
|
558
|
+
updatedAt: z.string().optional(),
|
|
559
|
+
updatedAtHour: z.string().optional(),
|
|
560
560
|
deletedAt: z.string().optional(),
|
|
561
561
|
expiresAt: z.nullable(z.number()).optional(),
|
|
562
562
|
}).transform((v) => {
|
|
@@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget =
|
|
|
55
55
|
|
|
56
56
|
export const RemoveProjectEnvResponseBodyProjectsResponseType = {
|
|
57
57
|
System: "system",
|
|
58
|
+
Secret: "secret",
|
|
58
59
|
Encrypted: "encrypted",
|
|
59
60
|
Plain: "plain",
|
|
60
61
|
Sensitive: "sensitive",
|
|
61
|
-
Secret: "secret",
|
|
62
62
|
} as const;
|
|
63
63
|
export type RemoveProjectEnvResponseBodyProjectsResponseType = ClosedEnum<
|
|
64
64
|
typeof RemoveProjectEnvResponseBodyProjectsResponseType
|
|
@@ -405,10 +405,10 @@ export type RemoveProjectEnvResponseBodyProjectsTarget =
|
|
|
405
405
|
|
|
406
406
|
export const RemoveProjectEnvResponseBodyProjectsType = {
|
|
407
407
|
System: "system",
|
|
408
|
+
Secret: "secret",
|
|
408
409
|
Encrypted: "encrypted",
|
|
409
410
|
Plain: "plain",
|
|
410
411
|
Sensitive: "sensitive",
|
|
411
|
-
Secret: "secret",
|
|
412
412
|
} as const;
|
|
413
413
|
export type RemoveProjectEnvResponseBodyProjectsType = ClosedEnum<
|
|
414
414
|
typeof RemoveProjectEnvResponseBodyProjectsType
|
|
@@ -754,10 +754,10 @@ export type RemoveProjectEnvResponseBodyTarget =
|
|
|
754
754
|
|
|
755
755
|
export const RemoveProjectEnvResponseBodyType = {
|
|
756
756
|
System: "system",
|
|
757
|
+
Secret: "secret",
|
|
757
758
|
Encrypted: "encrypted",
|
|
758
759
|
Plain: "plain",
|
|
759
760
|
Sensitive: "sensitive",
|
|
760
|
-
Secret: "secret",
|
|
761
761
|
} as const;
|
|
762
762
|
export type RemoveProjectEnvResponseBodyType = ClosedEnum<
|
|
763
763
|
typeof RemoveProjectEnvResponseBodyType
|
|
@@ -233,6 +233,27 @@ export type UpdateProjectOptionsAllowlist = {
|
|
|
233
233
|
paths: Array<UpdateProjectPaths>;
|
|
234
234
|
};
|
|
235
235
|
|
|
236
|
+
export type ConnectConfigurations1 = {
|
|
237
|
+
/**
|
|
238
|
+
* The ID of the environment
|
|
239
|
+
*/
|
|
240
|
+
envId: string;
|
|
241
|
+
/**
|
|
242
|
+
* The ID of the Secure Compute network
|
|
243
|
+
*/
|
|
244
|
+
connectConfigurationId: string;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the configuration should be passive, meaning builds will not run there and only passive Serverless Functions will be deployed
|
|
247
|
+
*/
|
|
248
|
+
passive: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Flag saying if project builds should use Secure Compute
|
|
251
|
+
*/
|
|
252
|
+
buildsEnabled: boolean;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export type ConnectConfigurations = ConnectConfigurations1;
|
|
256
|
+
|
|
236
257
|
export type UpdateProjectRequestBody = {
|
|
237
258
|
autoExposeSystemEnvs?: boolean | undefined;
|
|
238
259
|
autoAssignCustomDomains?: boolean | undefined;
|
|
@@ -346,6 +367,10 @@ export type UpdateProjectRequestBody = {
|
|
|
346
367
|
* Specify a list of paths that should not be protected by Deployment Protection to enable Cors preflight requests
|
|
347
368
|
*/
|
|
348
369
|
optionsAllowlist?: UpdateProjectOptionsAllowlist | null | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* The list of connections from project environment to Secure Compute network
|
|
372
|
+
*/
|
|
373
|
+
connectConfigurations?: Array<ConnectConfigurations1> | null | undefined;
|
|
349
374
|
};
|
|
350
375
|
|
|
351
376
|
export type UpdateProjectRequest = {
|
|
@@ -440,10 +465,10 @@ export type UpdateProjectTarget = Array<string> | UpdateProjectTarget2;
|
|
|
440
465
|
|
|
441
466
|
export const UpdateProjectType = {
|
|
442
467
|
System: "system",
|
|
468
|
+
Secret: "secret",
|
|
443
469
|
Encrypted: "encrypted",
|
|
444
470
|
Plain: "plain",
|
|
445
471
|
Sensitive: "sensitive",
|
|
446
|
-
Secret: "secret",
|
|
447
472
|
} as const;
|
|
448
473
|
export type UpdateProjectType = ClosedEnum<typeof UpdateProjectType>;
|
|
449
474
|
|
|
@@ -1884,8 +1909,8 @@ export type UpdateProjectSrc = UpdateProjectSrc2 | string;
|
|
|
1884
1909
|
|
|
1885
1910
|
export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
|
|
1886
1911
|
{
|
|
1887
|
-
Path: "path",
|
|
1888
1912
|
Host: "host",
|
|
1913
|
+
Path: "path",
|
|
1889
1914
|
Method: "method",
|
|
1890
1915
|
Header: "header",
|
|
1891
1916
|
Cookie: "cookie",
|
|
@@ -1926,8 +1951,8 @@ export type UpdateProjectHas = {
|
|
|
1926
1951
|
|
|
1927
1952
|
export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
|
|
1928
1953
|
{
|
|
1929
|
-
Path: "path",
|
|
1930
1954
|
Host: "host",
|
|
1955
|
+
Path: "path",
|
|
1931
1956
|
Method: "method",
|
|
1932
1957
|
Header: "header",
|
|
1933
1958
|
Cookie: "cookie",
|
|
@@ -2713,6 +2738,117 @@ export function updateProjectOptionsAllowlistFromJSON(
|
|
|
2713
2738
|
);
|
|
2714
2739
|
}
|
|
2715
2740
|
|
|
2741
|
+
/** @internal */
|
|
2742
|
+
export const ConnectConfigurations1$inboundSchema: z.ZodType<
|
|
2743
|
+
ConnectConfigurations1,
|
|
2744
|
+
z.ZodTypeDef,
|
|
2745
|
+
unknown
|
|
2746
|
+
> = z.object({
|
|
2747
|
+
envId: z.string(),
|
|
2748
|
+
connectConfigurationId: z.string(),
|
|
2749
|
+
passive: z.boolean(),
|
|
2750
|
+
buildsEnabled: z.boolean(),
|
|
2751
|
+
});
|
|
2752
|
+
|
|
2753
|
+
/** @internal */
|
|
2754
|
+
export type ConnectConfigurations1$Outbound = {
|
|
2755
|
+
envId: string;
|
|
2756
|
+
connectConfigurationId: string;
|
|
2757
|
+
passive: boolean;
|
|
2758
|
+
buildsEnabled: boolean;
|
|
2759
|
+
};
|
|
2760
|
+
|
|
2761
|
+
/** @internal */
|
|
2762
|
+
export const ConnectConfigurations1$outboundSchema: z.ZodType<
|
|
2763
|
+
ConnectConfigurations1$Outbound,
|
|
2764
|
+
z.ZodTypeDef,
|
|
2765
|
+
ConnectConfigurations1
|
|
2766
|
+
> = z.object({
|
|
2767
|
+
envId: z.string(),
|
|
2768
|
+
connectConfigurationId: z.string(),
|
|
2769
|
+
passive: z.boolean(),
|
|
2770
|
+
buildsEnabled: z.boolean(),
|
|
2771
|
+
});
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* @internal
|
|
2775
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2776
|
+
*/
|
|
2777
|
+
export namespace ConnectConfigurations1$ {
|
|
2778
|
+
/** @deprecated use `ConnectConfigurations1$inboundSchema` instead. */
|
|
2779
|
+
export const inboundSchema = ConnectConfigurations1$inboundSchema;
|
|
2780
|
+
/** @deprecated use `ConnectConfigurations1$outboundSchema` instead. */
|
|
2781
|
+
export const outboundSchema = ConnectConfigurations1$outboundSchema;
|
|
2782
|
+
/** @deprecated use `ConnectConfigurations1$Outbound` instead. */
|
|
2783
|
+
export type Outbound = ConnectConfigurations1$Outbound;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
export function connectConfigurations1ToJSON(
|
|
2787
|
+
connectConfigurations1: ConnectConfigurations1,
|
|
2788
|
+
): string {
|
|
2789
|
+
return JSON.stringify(
|
|
2790
|
+
ConnectConfigurations1$outboundSchema.parse(connectConfigurations1),
|
|
2791
|
+
);
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
export function connectConfigurations1FromJSON(
|
|
2795
|
+
jsonString: string,
|
|
2796
|
+
): SafeParseResult<ConnectConfigurations1, SDKValidationError> {
|
|
2797
|
+
return safeParse(
|
|
2798
|
+
jsonString,
|
|
2799
|
+
(x) => ConnectConfigurations1$inboundSchema.parse(JSON.parse(x)),
|
|
2800
|
+
`Failed to parse 'ConnectConfigurations1' from JSON`,
|
|
2801
|
+
);
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
/** @internal */
|
|
2805
|
+
export const ConnectConfigurations$inboundSchema: z.ZodType<
|
|
2806
|
+
ConnectConfigurations,
|
|
2807
|
+
z.ZodTypeDef,
|
|
2808
|
+
unknown
|
|
2809
|
+
> = z.lazy(() => ConnectConfigurations1$inboundSchema);
|
|
2810
|
+
|
|
2811
|
+
/** @internal */
|
|
2812
|
+
export type ConnectConfigurations$Outbound = ConnectConfigurations1$Outbound;
|
|
2813
|
+
|
|
2814
|
+
/** @internal */
|
|
2815
|
+
export const ConnectConfigurations$outboundSchema: z.ZodType<
|
|
2816
|
+
ConnectConfigurations$Outbound,
|
|
2817
|
+
z.ZodTypeDef,
|
|
2818
|
+
ConnectConfigurations
|
|
2819
|
+
> = z.lazy(() => ConnectConfigurations1$outboundSchema);
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* @internal
|
|
2823
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2824
|
+
*/
|
|
2825
|
+
export namespace ConnectConfigurations$ {
|
|
2826
|
+
/** @deprecated use `ConnectConfigurations$inboundSchema` instead. */
|
|
2827
|
+
export const inboundSchema = ConnectConfigurations$inboundSchema;
|
|
2828
|
+
/** @deprecated use `ConnectConfigurations$outboundSchema` instead. */
|
|
2829
|
+
export const outboundSchema = ConnectConfigurations$outboundSchema;
|
|
2830
|
+
/** @deprecated use `ConnectConfigurations$Outbound` instead. */
|
|
2831
|
+
export type Outbound = ConnectConfigurations$Outbound;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
export function connectConfigurationsToJSON(
|
|
2835
|
+
connectConfigurations: ConnectConfigurations,
|
|
2836
|
+
): string {
|
|
2837
|
+
return JSON.stringify(
|
|
2838
|
+
ConnectConfigurations$outboundSchema.parse(connectConfigurations),
|
|
2839
|
+
);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
export function connectConfigurationsFromJSON(
|
|
2843
|
+
jsonString: string,
|
|
2844
|
+
): SafeParseResult<ConnectConfigurations, SDKValidationError> {
|
|
2845
|
+
return safeParse(
|
|
2846
|
+
jsonString,
|
|
2847
|
+
(x) => ConnectConfigurations$inboundSchema.parse(JSON.parse(x)),
|
|
2848
|
+
`Failed to parse 'ConnectConfigurations' from JSON`,
|
|
2849
|
+
);
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2716
2852
|
/** @internal */
|
|
2717
2853
|
export const UpdateProjectRequestBody$inboundSchema: z.ZodType<
|
|
2718
2854
|
UpdateProjectRequestBody,
|
|
@@ -2759,6 +2895,9 @@ export const UpdateProjectRequestBody$inboundSchema: z.ZodType<
|
|
|
2759
2895
|
optionsAllowlist: z.nullable(
|
|
2760
2896
|
z.lazy(() => UpdateProjectOptionsAllowlist$inboundSchema),
|
|
2761
2897
|
).optional(),
|
|
2898
|
+
connectConfigurations: z.nullable(
|
|
2899
|
+
z.array(z.lazy(() => ConnectConfigurations1$inboundSchema)),
|
|
2900
|
+
).optional(),
|
|
2762
2901
|
});
|
|
2763
2902
|
|
|
2764
2903
|
/** @internal */
|
|
@@ -2798,6 +2937,10 @@ export type UpdateProjectRequestBody$Outbound = {
|
|
|
2798
2937
|
ssoProtection?: UpdateProjectSsoProtection$Outbound | null | undefined;
|
|
2799
2938
|
trustedIps?: UpdateProjectTrustedIps$Outbound | null | undefined;
|
|
2800
2939
|
optionsAllowlist?: UpdateProjectOptionsAllowlist$Outbound | null | undefined;
|
|
2940
|
+
connectConfigurations?:
|
|
2941
|
+
| Array<ConnectConfigurations1$Outbound>
|
|
2942
|
+
| null
|
|
2943
|
+
| undefined;
|
|
2801
2944
|
};
|
|
2802
2945
|
|
|
2803
2946
|
/** @internal */
|
|
@@ -2846,6 +2989,9 @@ export const UpdateProjectRequestBody$outboundSchema: z.ZodType<
|
|
|
2846
2989
|
optionsAllowlist: z.nullable(
|
|
2847
2990
|
z.lazy(() => UpdateProjectOptionsAllowlist$outboundSchema),
|
|
2848
2991
|
).optional(),
|
|
2992
|
+
connectConfigurations: z.nullable(
|
|
2993
|
+
z.array(z.lazy(() => ConnectConfigurations1$outboundSchema)),
|
|
2994
|
+
).optional(),
|
|
2849
2995
|
});
|
|
2850
2996
|
|
|
2851
2997
|
/**
|