@vercel/sdk 1.6.8 → 1.6.10
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 +310 -118
- package/bin/mcp-server.js.map +18 -18
- package/docs/sdks/user/README.md +2 -0
- 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/funcs/userListUserEvents.js +1 -0
- package/esm/funcs/userListUserEvents.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +3 -3
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +1 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +6 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +24 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +8 -0
- package/esm/models/createwebhookop.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/getprojectsop.d.ts +6 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +12 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +4 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +24 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +8 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/listusereventsop.d.ts +6 -1
- package/esm/models/listusereventsop.d.ts.map +1 -1
- package/esm/models/listusereventsop.js +2 -0
- package/esm/models/listusereventsop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +30 -1
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +24 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +6 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +75 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +56 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +361 -114
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +338 -98
- 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/funcs/userListUserEvents.ts +1 -0
- 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 +1 -1
- package/src/models/createprojectop.ts +2 -0
- package/src/models/createwebhookop.ts +8 -0
- package/src/models/getbypassipop.ts +56 -56
- package/src/models/getprojectsop.ts +2 -0
- package/src/models/getwebhookop.ts +4 -0
- package/src/models/getwebhooksop.ts +8 -0
- package/src/models/listusereventsop.ts +8 -1
- package/src/models/teamlimited.ts +34 -1
- package/src/models/updateprojectdatacacheop.ts +2 -0
- package/src/models/updateprojectop.ts +148 -0
- package/src/models/userevent.ts +620 -179
- package/vercel-spec.json +282 -87
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.10",
|
|
61
|
+
genVersion: "2.597.9",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.6.10 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
|
@@ -19,7 +19,6 @@ export const Reason = {
|
|
|
19
19
|
export type Reason = ClosedEnum<typeof Reason>;
|
|
20
20
|
|
|
21
21
|
export const BlockedDueToOverageType = {
|
|
22
|
-
AiCredits: "aiCredits",
|
|
23
22
|
AnalyticsUsage: "analyticsUsage",
|
|
24
23
|
Artifacts: "artifacts",
|
|
25
24
|
Bandwidth: "bandwidth",
|
|
@@ -98,6 +97,7 @@ export type BuildEntitlements = {
|
|
|
98
97
|
*/
|
|
99
98
|
export const PurchaseType = {
|
|
100
99
|
Enhanced: "enhanced",
|
|
100
|
+
Ultra: "ultra",
|
|
101
101
|
} as const;
|
|
102
102
|
/**
|
|
103
103
|
* An object containing infomation related to the amount of platform resources may be allocated to the User account.
|
|
@@ -1201,6 +1201,7 @@ export type CreateProjectFunctionDefaultMemoryType = ClosedEnum<
|
|
|
1201
1201
|
|
|
1202
1202
|
export const CreateProjectBuildMachineType = {
|
|
1203
1203
|
Enhanced: "enhanced",
|
|
1204
|
+
Ultra: "ultra",
|
|
1204
1205
|
} as const;
|
|
1205
1206
|
export type CreateProjectBuildMachineType = ClosedEnum<
|
|
1206
1207
|
typeof CreateProjectBuildMachineType
|
|
@@ -1266,6 +1267,7 @@ export type CreateProjectProjectsFunctionDefaultMemoryType = ClosedEnum<
|
|
|
1266
1267
|
|
|
1267
1268
|
export const CreateProjectProjectsBuildMachineType = {
|
|
1268
1269
|
Enhanced: "enhanced",
|
|
1270
|
+
Ultra: "ultra",
|
|
1269
1271
|
} as const;
|
|
1270
1272
|
export type CreateProjectProjectsBuildMachineType = ClosedEnum<
|
|
1271
1273
|
typeof CreateProjectProjectsBuildMachineType
|
|
@@ -37,6 +37,10 @@ export const Events = {
|
|
|
37
37
|
"integration-resource.project-disconnected",
|
|
38
38
|
ProjectCreated: "project.created",
|
|
39
39
|
ProjectRemoved: "project.removed",
|
|
40
|
+
ProjectRollingReleaseStarted: "project.rolling-release.started",
|
|
41
|
+
ProjectRollingReleaseAborted: "project.rolling-release.aborted",
|
|
42
|
+
ProjectRollingReleaseCompleted: "project.rolling-release.completed",
|
|
43
|
+
ProjectRollingReleaseApproved: "project.rolling-release.approved",
|
|
40
44
|
DeploymentChecksCompletedLegacy: "deployment-checks-completed",
|
|
41
45
|
DeploymentReadyLegacy: "deployment-ready",
|
|
42
46
|
DeploymentPreparedLegacy: "deployment-prepared",
|
|
@@ -110,6 +114,10 @@ export const CreateWebhookEvents = {
|
|
|
110
114
|
"integration-resource.project-disconnected",
|
|
111
115
|
ProjectCreated: "project.created",
|
|
112
116
|
ProjectRemoved: "project.removed",
|
|
117
|
+
ProjectRollingReleaseStarted: "project.rolling-release.started",
|
|
118
|
+
ProjectRollingReleaseAborted: "project.rolling-release.aborted",
|
|
119
|
+
ProjectRollingReleaseCompleted: "project.rolling-release.completed",
|
|
120
|
+
ProjectRollingReleaseApproved: "project.rolling-release.approved",
|
|
113
121
|
DeploymentChecksCompletedLegacy: "deployment-checks-completed",
|
|
114
122
|
DeploymentReadyLegacy: "deployment-ready",
|
|
115
123
|
DeploymentPreparedLegacy: "deployment-prepared",
|
|
@@ -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) => {
|
|
@@ -1004,6 +1004,7 @@ export type GetProjectsFunctionDefaultMemoryType = ClosedEnum<
|
|
|
1004
1004
|
|
|
1005
1005
|
export const GetProjectsBuildMachineType = {
|
|
1006
1006
|
Enhanced: "enhanced",
|
|
1007
|
+
Ultra: "ultra",
|
|
1007
1008
|
} as const;
|
|
1008
1009
|
export type GetProjectsBuildMachineType = ClosedEnum<
|
|
1009
1010
|
typeof GetProjectsBuildMachineType
|
|
@@ -1067,6 +1068,7 @@ export type GetProjectsProjectsFunctionDefaultMemoryType = ClosedEnum<
|
|
|
1067
1068
|
|
|
1068
1069
|
export const GetProjectsProjectsBuildMachineType = {
|
|
1069
1070
|
Enhanced: "enhanced",
|
|
1071
|
+
Ultra: "ultra",
|
|
1070
1072
|
} as const;
|
|
1071
1073
|
export type GetProjectsProjectsBuildMachineType = ClosedEnum<
|
|
1072
1074
|
typeof GetProjectsProjectsBuildMachineType
|
|
@@ -51,6 +51,10 @@ export const GetWebhookEvents = {
|
|
|
51
51
|
"integration-resource.project-disconnected",
|
|
52
52
|
ProjectCreated: "project.created",
|
|
53
53
|
ProjectRemoved: "project.removed",
|
|
54
|
+
ProjectRollingReleaseStarted: "project.rolling-release.started",
|
|
55
|
+
ProjectRollingReleaseAborted: "project.rolling-release.aborted",
|
|
56
|
+
ProjectRollingReleaseCompleted: "project.rolling-release.completed",
|
|
57
|
+
ProjectRollingReleaseApproved: "project.rolling-release.approved",
|
|
54
58
|
DeploymentChecksCompletedLegacy: "deployment-checks-completed",
|
|
55
59
|
DeploymentReadyLegacy: "deployment-ready",
|
|
56
60
|
DeploymentPreparedLegacy: "deployment-prepared",
|
|
@@ -51,6 +51,10 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
51
51
|
"integration-resource.project-disconnected",
|
|
52
52
|
ProjectCreated: "project.created",
|
|
53
53
|
ProjectRemoved: "project.removed",
|
|
54
|
+
ProjectRollingReleaseStarted: "project.rolling-release.started",
|
|
55
|
+
ProjectRollingReleaseAborted: "project.rolling-release.aborted",
|
|
56
|
+
ProjectRollingReleaseCompleted: "project.rolling-release.completed",
|
|
57
|
+
ProjectRollingReleaseApproved: "project.rolling-release.approved",
|
|
54
58
|
DeploymentChecksCompletedLegacy: "deployment-checks-completed",
|
|
55
59
|
DeploymentReadyLegacy: "deployment-ready",
|
|
56
60
|
DeploymentPreparedLegacy: "deployment-prepared",
|
|
@@ -201,6 +205,10 @@ export const ResponseBodyEvents = {
|
|
|
201
205
|
"integration-resource.project-disconnected",
|
|
202
206
|
ProjectCreated: "project.created",
|
|
203
207
|
ProjectRemoved: "project.removed",
|
|
208
|
+
ProjectRollingReleaseStarted: "project.rolling-release.started",
|
|
209
|
+
ProjectRollingReleaseAborted: "project.rolling-release.aborted",
|
|
210
|
+
ProjectRollingReleaseCompleted: "project.rolling-release.completed",
|
|
211
|
+
ProjectRollingReleaseApproved: "project.rolling-release.approved",
|
|
204
212
|
DeploymentChecksCompletedLegacy: "deployment-checks-completed",
|
|
205
213
|
DeploymentReadyLegacy: "deployment-ready",
|
|
206
214
|
DeploymentPreparedLegacy: "deployment-prepared",
|
|
@@ -31,9 +31,13 @@ export type ListUserEventsRequest = {
|
|
|
31
31
|
*/
|
|
32
32
|
types?: string | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Deprecated. Use `principalId` instead. If `principalId` and `userId` both exist, `principalId` will be used.
|
|
35
35
|
*/
|
|
36
36
|
userId?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* When retrieving events for a Team, the `principalId` parameter may be specified to filter events generated by a specific principal.
|
|
39
|
+
*/
|
|
40
|
+
principalId?: string | undefined;
|
|
37
41
|
/**
|
|
38
42
|
* When set to `true`, the response will include the `payload` field for each event.
|
|
39
43
|
*/
|
|
@@ -69,6 +73,7 @@ export const ListUserEventsRequest$inboundSchema: z.ZodType<
|
|
|
69
73
|
until: z.string().optional(),
|
|
70
74
|
types: z.string().optional(),
|
|
71
75
|
userId: z.string().optional(),
|
|
76
|
+
principalId: z.string().optional(),
|
|
72
77
|
withPayload: z.string().optional(),
|
|
73
78
|
teamId: z.string().optional(),
|
|
74
79
|
slug: z.string().optional(),
|
|
@@ -81,6 +86,7 @@ export type ListUserEventsRequest$Outbound = {
|
|
|
81
86
|
until?: string | undefined;
|
|
82
87
|
types?: string | undefined;
|
|
83
88
|
userId?: string | undefined;
|
|
89
|
+
principalId?: string | undefined;
|
|
84
90
|
withPayload?: string | undefined;
|
|
85
91
|
teamId?: string | undefined;
|
|
86
92
|
slug?: string | undefined;
|
|
@@ -97,6 +103,7 @@ export const ListUserEventsRequest$outboundSchema: z.ZodType<
|
|
|
97
103
|
until: z.string().optional(),
|
|
98
104
|
types: z.string().optional(),
|
|
99
105
|
userId: z.string().optional(),
|
|
106
|
+
principalId: z.string().optional(),
|
|
100
107
|
withPayload: z.string().optional(),
|
|
101
108
|
teamId: z.string().optional(),
|
|
102
109
|
slug: z.string().optional(),
|
|
@@ -8,6 +8,12 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
+
export const LimitedBy = {
|
|
12
|
+
Saml: "saml",
|
|
13
|
+
Mfa: "mfa",
|
|
14
|
+
} as const;
|
|
15
|
+
export type LimitedBy = ClosedEnum<typeof LimitedBy>;
|
|
16
|
+
|
|
11
17
|
/**
|
|
12
18
|
* Information for the SAML Single Sign-On configuration.
|
|
13
19
|
*/
|
|
@@ -163,13 +169,15 @@ export type Membership = {
|
|
|
163
169
|
*/
|
|
164
170
|
export type TeamLimited = {
|
|
165
171
|
/**
|
|
166
|
-
* Property indicating that this Team data contains only limited information, due to the authentication token missing privileges to read the full Team data. Re-login with the Team's configured SAML Single Sign-On provider in order to upgrade the authentication token with the necessary privileges.
|
|
172
|
+
* Property indicating that this Team data contains only limited information, due to the authentication token missing privileges to read the full Team data or due to team having MFA enforced and the user not having MFA enabled. Re-login with the Team's configured SAML Single Sign-On provider in order to upgrade the authentication token with the necessary privileges.
|
|
167
173
|
*/
|
|
168
174
|
limited: boolean;
|
|
175
|
+
limitedBy: Array<LimitedBy>;
|
|
169
176
|
/**
|
|
170
177
|
* When "Single Sign-On (SAML)" is configured, this object contains information that allows the client-side to identify whether or not this Team has SAML enforced.
|
|
171
178
|
*/
|
|
172
179
|
saml?: Saml | undefined;
|
|
180
|
+
mfaEnforced?: boolean | undefined;
|
|
173
181
|
/**
|
|
174
182
|
* The Team's unique identifier.
|
|
175
183
|
*/
|
|
@@ -200,6 +208,25 @@ export type TeamLimited = {
|
|
|
200
208
|
createdAt: number;
|
|
201
209
|
};
|
|
202
210
|
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const LimitedBy$inboundSchema: z.ZodNativeEnum<typeof LimitedBy> = z
|
|
213
|
+
.nativeEnum(LimitedBy);
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const LimitedBy$outboundSchema: z.ZodNativeEnum<typeof LimitedBy> =
|
|
217
|
+
LimitedBy$inboundSchema;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
+
*/
|
|
223
|
+
export namespace LimitedBy$ {
|
|
224
|
+
/** @deprecated use `LimitedBy$inboundSchema` instead. */
|
|
225
|
+
export const inboundSchema = LimitedBy$inboundSchema;
|
|
226
|
+
/** @deprecated use `LimitedBy$outboundSchema` instead. */
|
|
227
|
+
export const outboundSchema = LimitedBy$outboundSchema;
|
|
228
|
+
}
|
|
229
|
+
|
|
203
230
|
/** @internal */
|
|
204
231
|
export const Connection$inboundSchema: z.ZodType<
|
|
205
232
|
Connection,
|
|
@@ -714,7 +741,9 @@ export const TeamLimited$inboundSchema: z.ZodType<
|
|
|
714
741
|
unknown
|
|
715
742
|
> = z.object({
|
|
716
743
|
limited: z.boolean(),
|
|
744
|
+
limitedBy: z.array(LimitedBy$inboundSchema),
|
|
717
745
|
saml: z.lazy(() => Saml$inboundSchema).optional(),
|
|
746
|
+
mfaEnforced: z.boolean().optional(),
|
|
718
747
|
id: z.string(),
|
|
719
748
|
slug: z.string(),
|
|
720
749
|
name: z.nullable(z.string()),
|
|
@@ -727,7 +756,9 @@ export const TeamLimited$inboundSchema: z.ZodType<
|
|
|
727
756
|
/** @internal */
|
|
728
757
|
export type TeamLimited$Outbound = {
|
|
729
758
|
limited: boolean;
|
|
759
|
+
limitedBy: Array<string>;
|
|
730
760
|
saml?: Saml$Outbound | undefined;
|
|
761
|
+
mfaEnforced?: boolean | undefined;
|
|
731
762
|
id: string;
|
|
732
763
|
slug: string;
|
|
733
764
|
name: string | null;
|
|
@@ -744,7 +775,9 @@ export const TeamLimited$outboundSchema: z.ZodType<
|
|
|
744
775
|
TeamLimited
|
|
745
776
|
> = z.object({
|
|
746
777
|
limited: z.boolean(),
|
|
778
|
+
limitedBy: z.array(LimitedBy$outboundSchema),
|
|
747
779
|
saml: z.lazy(() => Saml$outboundSchema).optional(),
|
|
780
|
+
mfaEnforced: z.boolean().optional(),
|
|
748
781
|
id: z.string(),
|
|
749
782
|
slug: z.string(),
|
|
750
783
|
name: z.nullable(z.string()),
|
|
@@ -974,6 +974,7 @@ export type FunctionDefaultMemoryType = ClosedEnum<
|
|
|
974
974
|
|
|
975
975
|
export const BuildMachineType = {
|
|
976
976
|
Enhanced: "enhanced",
|
|
977
|
+
Ultra: "ultra",
|
|
977
978
|
} as const;
|
|
978
979
|
export type BuildMachineType = ClosedEnum<typeof BuildMachineType>;
|
|
979
980
|
|
|
@@ -1035,6 +1036,7 @@ export type UpdateProjectDataCacheFunctionDefaultMemoryType = ClosedEnum<
|
|
|
1035
1036
|
|
|
1036
1037
|
export const UpdateProjectDataCacheBuildMachineType = {
|
|
1037
1038
|
Enhanced: "enhanced",
|
|
1039
|
+
Ultra: "ultra",
|
|
1038
1040
|
} as const;
|
|
1039
1041
|
export type UpdateProjectDataCacheBuildMachineType = ClosedEnum<
|
|
1040
1042
|
typeof UpdateProjectDataCacheBuildMachineType
|