@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/esm/models/userevent.js
CHANGED
|
@@ -8,9 +8,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
* The type of entity.
|
|
9
9
|
*/
|
|
10
10
|
export const UserEventType = {
|
|
11
|
-
Flag: "flag",
|
|
12
|
-
FlagsSegment: "flags-segment",
|
|
13
|
-
FlagsSettings: "flags-settings",
|
|
14
11
|
Author: "author",
|
|
15
12
|
BitbucketLogin: "bitbucket_login",
|
|
16
13
|
Bold: "bold",
|
|
@@ -22,6 +19,9 @@ export const UserEventType = {
|
|
|
22
19
|
HookName: "hook_name",
|
|
23
20
|
Integration: "integration",
|
|
24
21
|
EdgeConfig: "edge-config",
|
|
22
|
+
Flag: "flag",
|
|
23
|
+
FlagsSegment: "flags-segment",
|
|
24
|
+
FlagsSettings: "flags-settings",
|
|
25
25
|
Link: "link",
|
|
26
26
|
ProjectName: "project_name",
|
|
27
27
|
ScalingRules: "scaling_rules",
|
|
@@ -83,11 +83,11 @@ export const StoreType = {
|
|
|
83
83
|
Postgres: "postgres",
|
|
84
84
|
};
|
|
85
85
|
export const UserEventPayloadType = {
|
|
86
|
-
Integration: "integration",
|
|
87
|
-
EdgeConfig: "edge-config",
|
|
88
86
|
Redis: "redis",
|
|
89
87
|
Postgres: "postgres",
|
|
88
|
+
EdgeConfig: "edge-config",
|
|
90
89
|
Blob: "blob",
|
|
90
|
+
Integration: "integration",
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
93
|
* The budget type
|
|
@@ -192,11 +192,11 @@ export const UserEventPayload73Role = {
|
|
|
192
192
|
export const PayloadOrigin = {
|
|
193
193
|
Teams: "teams",
|
|
194
194
|
Saml: "saml",
|
|
195
|
-
Link: "link",
|
|
196
195
|
Github: "github",
|
|
197
196
|
Gitlab: "gitlab",
|
|
198
197
|
Bitbucket: "bitbucket",
|
|
199
198
|
Mail: "mail",
|
|
199
|
+
Link: "link",
|
|
200
200
|
Import: "import",
|
|
201
201
|
Dsync: "dsync",
|
|
202
202
|
Feedback: "feedback",
|
|
@@ -280,7 +280,6 @@ export const PayloadReason = {
|
|
|
280
280
|
BlockedForPlatformAbuse: "BLOCKED_FOR_PLATFORM_ABUSE",
|
|
281
281
|
};
|
|
282
282
|
export const PayloadBlockedDueToOverageType = {
|
|
283
|
-
AiCredits: "aiCredits",
|
|
284
283
|
AnalyticsUsage: "analyticsUsage",
|
|
285
284
|
Artifacts: "artifacts",
|
|
286
285
|
Bandwidth: "bandwidth",
|
|
@@ -352,11 +351,11 @@ export const PayloadTeamPermissions = {
|
|
|
352
351
|
export const UserEventPayloadOrigin = {
|
|
353
352
|
Teams: "teams",
|
|
354
353
|
Saml: "saml",
|
|
355
|
-
Link: "link",
|
|
356
354
|
Github: "github",
|
|
357
355
|
Gitlab: "gitlab",
|
|
358
356
|
Bitbucket: "bitbucket",
|
|
359
357
|
Mail: "mail",
|
|
358
|
+
Link: "link",
|
|
360
359
|
Import: "import",
|
|
361
360
|
Dsync: "dsync",
|
|
362
361
|
Feedback: "feedback",
|
|
@@ -413,7 +412,6 @@ export const UserEventPayload62NewOwnerFeatureBlocksBlobBlockReason = {
|
|
|
413
412
|
LimitsExceeded: "limits_exceeded",
|
|
414
413
|
};
|
|
415
414
|
export const OverageReason = {
|
|
416
|
-
AiCredits: "aiCredits",
|
|
417
415
|
AnalyticsUsage: "analyticsUsage",
|
|
418
416
|
Artifacts: "artifacts",
|
|
419
417
|
Bandwidth: "bandwidth",
|
|
@@ -462,7 +460,6 @@ export const UserEventPayload62NewOwnerFeatureBlocksPostgresBlockReason = {
|
|
|
462
460
|
LimitsExceeded: "limits_exceeded",
|
|
463
461
|
};
|
|
464
462
|
export const PayloadOverageReason = {
|
|
465
|
-
AiCredits: "aiCredits",
|
|
466
463
|
AnalyticsUsage: "analyticsUsage",
|
|
467
464
|
Artifacts: "artifacts",
|
|
468
465
|
Bandwidth: "bandwidth",
|
|
@@ -511,7 +508,6 @@ export const UserEventPayload62NewOwnerFeatureBlocksRedisBlockReason = {
|
|
|
511
508
|
LimitsExceeded: "limits_exceeded",
|
|
512
509
|
};
|
|
513
510
|
export const UserEventPayloadOverageReason = {
|
|
514
|
-
AiCredits: "aiCredits",
|
|
515
511
|
AnalyticsUsage: "analyticsUsage",
|
|
516
512
|
Artifacts: "artifacts",
|
|
517
513
|
Bandwidth: "bandwidth",
|
|
@@ -7421,35 +7417,6 @@ export function usageAlertsFromJSON(jsonString) {
|
|
|
7421
7417
|
return safeParse(jsonString, (x) => UsageAlerts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsageAlerts' from JSON`);
|
|
7422
7418
|
}
|
|
7423
7419
|
/** @internal */
|
|
7424
|
-
export const AiCredits$inboundSchema = z.object({
|
|
7425
|
-
currentThreshold: z.number(),
|
|
7426
|
-
warningAt: z.nullable(z.number()).optional(),
|
|
7427
|
-
blockedAt: z.nullable(z.number()).optional(),
|
|
7428
|
-
});
|
|
7429
|
-
/** @internal */
|
|
7430
|
-
export const AiCredits$outboundSchema = z.object({
|
|
7431
|
-
currentThreshold: z.number(),
|
|
7432
|
-
warningAt: z.nullable(z.number()).optional(),
|
|
7433
|
-
blockedAt: z.nullable(z.number()).optional(),
|
|
7434
|
-
});
|
|
7435
|
-
/**
|
|
7436
|
-
* @internal
|
|
7437
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
7438
|
-
*/
|
|
7439
|
-
export var AiCredits$;
|
|
7440
|
-
(function (AiCredits$) {
|
|
7441
|
-
/** @deprecated use `AiCredits$inboundSchema` instead. */
|
|
7442
|
-
AiCredits$.inboundSchema = AiCredits$inboundSchema;
|
|
7443
|
-
/** @deprecated use `AiCredits$outboundSchema` instead. */
|
|
7444
|
-
AiCredits$.outboundSchema = AiCredits$outboundSchema;
|
|
7445
|
-
})(AiCredits$ || (AiCredits$ = {}));
|
|
7446
|
-
export function aiCreditsToJSON(aiCredits) {
|
|
7447
|
-
return JSON.stringify(AiCredits$outboundSchema.parse(aiCredits));
|
|
7448
|
-
}
|
|
7449
|
-
export function aiCreditsFromJSON(jsonString) {
|
|
7450
|
-
return safeParse(jsonString, (x) => AiCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AiCredits' from JSON`);
|
|
7451
|
-
}
|
|
7452
|
-
/** @internal */
|
|
7453
7420
|
export const AnalyticsUsage$inboundSchema = z.object({
|
|
7454
7421
|
currentThreshold: z.number(),
|
|
7455
7422
|
warningAt: z.nullable(z.number()).optional(),
|
|
@@ -8669,7 +8636,6 @@ export function webAnalyticsEventFromJSON(jsonString) {
|
|
|
8669
8636
|
}
|
|
8670
8637
|
/** @internal */
|
|
8671
8638
|
export const OverageUsageAlerts$inboundSchema = z.object({
|
|
8672
|
-
aiCredits: z.lazy(() => AiCredits$inboundSchema).optional(),
|
|
8673
8639
|
analyticsUsage: z.lazy(() => AnalyticsUsage$inboundSchema).optional(),
|
|
8674
8640
|
artifacts: z.lazy(() => Artifacts$inboundSchema).optional(),
|
|
8675
8641
|
bandwidth: z.lazy(() => Bandwidth$inboundSchema).optional(),
|
|
@@ -8723,7 +8689,6 @@ export const OverageUsageAlerts$inboundSchema = z.object({
|
|
|
8723
8689
|
});
|
|
8724
8690
|
/** @internal */
|
|
8725
8691
|
export const OverageUsageAlerts$outboundSchema = z.object({
|
|
8726
|
-
aiCredits: z.lazy(() => AiCredits$outboundSchema).optional(),
|
|
8727
8692
|
analyticsUsage: z.lazy(() => AnalyticsUsage$outboundSchema).optional(),
|
|
8728
8693
|
artifacts: z.lazy(() => Artifacts$outboundSchema).optional(),
|
|
8729
8694
|
bandwidth: z.lazy(() => Bandwidth$outboundSchema).optional(),
|
|
@@ -9874,10 +9839,11 @@ export var UserEventPayloadTarget$;
|
|
|
9874
9839
|
})(UserEventPayloadTarget$ || (UserEventPayloadTarget$ = {}));
|
|
9875
9840
|
/** @internal */
|
|
9876
9841
|
export const OldEnvVar$inboundSchema = z.object({
|
|
9877
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9878
|
-
|
|
9842
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9843
|
+
.optional(),
|
|
9844
|
+
key: z.string().optional(),
|
|
9879
9845
|
ownerId: z.nullable(z.string()).optional(),
|
|
9880
|
-
id: z.string(),
|
|
9846
|
+
id: z.string().optional(),
|
|
9881
9847
|
createdBy: z.nullable(z.string()).optional(),
|
|
9882
9848
|
deletedBy: z.nullable(z.string()).optional(),
|
|
9883
9849
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -9889,16 +9855,16 @@ export const OldEnvVar$inboundSchema = z.object({
|
|
|
9889
9855
|
type: UserEventPayload58OldEnvVarType$inboundSchema.optional(),
|
|
9890
9856
|
target: z.array(UserEventPayloadTarget$inboundSchema).optional(),
|
|
9891
9857
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
9892
|
-
decrypted: z.boolean(),
|
|
9858
|
+
decrypted: z.boolean().optional(),
|
|
9893
9859
|
comment: z.string().optional(),
|
|
9894
9860
|
lastEditedByDisplayName: z.string().optional(),
|
|
9895
9861
|
});
|
|
9896
9862
|
/** @internal */
|
|
9897
9863
|
export const OldEnvVar$outboundSchema = z.object({
|
|
9898
|
-
created: z.date().transform(v => v.toISOString()),
|
|
9899
|
-
key: z.string(),
|
|
9864
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
9865
|
+
key: z.string().optional(),
|
|
9900
9866
|
ownerId: z.nullable(z.string()).optional(),
|
|
9901
|
-
id: z.string(),
|
|
9867
|
+
id: z.string().optional(),
|
|
9902
9868
|
createdBy: z.nullable(z.string()).optional(),
|
|
9903
9869
|
deletedBy: z.nullable(z.string()).optional(),
|
|
9904
9870
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -9910,7 +9876,7 @@ export const OldEnvVar$outboundSchema = z.object({
|
|
|
9910
9876
|
type: UserEventPayload58OldEnvVarType$outboundSchema.optional(),
|
|
9911
9877
|
target: z.array(UserEventPayloadTarget$outboundSchema).optional(),
|
|
9912
9878
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
9913
|
-
decrypted: z.boolean(),
|
|
9879
|
+
decrypted: z.boolean().optional(),
|
|
9914
9880
|
comment: z.string().optional(),
|
|
9915
9881
|
lastEditedByDisplayName: z.string().optional(),
|
|
9916
9882
|
});
|
|
@@ -9963,10 +9929,11 @@ export var UserEventPayload58Target$;
|
|
|
9963
9929
|
})(UserEventPayload58Target$ || (UserEventPayload58Target$ = {}));
|
|
9964
9930
|
/** @internal */
|
|
9965
9931
|
export const NewEnvVar$inboundSchema = z.object({
|
|
9966
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9967
|
-
|
|
9932
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
9933
|
+
.optional(),
|
|
9934
|
+
key: z.string().optional(),
|
|
9968
9935
|
ownerId: z.nullable(z.string()).optional(),
|
|
9969
|
-
id: z.string(),
|
|
9936
|
+
id: z.string().optional(),
|
|
9970
9937
|
createdBy: z.nullable(z.string()).optional(),
|
|
9971
9938
|
deletedBy: z.nullable(z.string()).optional(),
|
|
9972
9939
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -9978,16 +9945,16 @@ export const NewEnvVar$inboundSchema = z.object({
|
|
|
9978
9945
|
type: UserEventPayload58Type$inboundSchema.optional(),
|
|
9979
9946
|
target: z.array(UserEventPayload58Target$inboundSchema).optional(),
|
|
9980
9947
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
9981
|
-
decrypted: z.boolean(),
|
|
9948
|
+
decrypted: z.boolean().optional(),
|
|
9982
9949
|
comment: z.string().optional(),
|
|
9983
9950
|
lastEditedByDisplayName: z.string().optional(),
|
|
9984
9951
|
});
|
|
9985
9952
|
/** @internal */
|
|
9986
9953
|
export const NewEnvVar$outboundSchema = z.object({
|
|
9987
|
-
created: z.date().transform(v => v.toISOString()),
|
|
9988
|
-
key: z.string(),
|
|
9954
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
9955
|
+
key: z.string().optional(),
|
|
9989
9956
|
ownerId: z.nullable(z.string()).optional(),
|
|
9990
|
-
id: z.string(),
|
|
9957
|
+
id: z.string().optional(),
|
|
9991
9958
|
createdBy: z.nullable(z.string()).optional(),
|
|
9992
9959
|
deletedBy: z.nullable(z.string()).optional(),
|
|
9993
9960
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -9999,7 +9966,7 @@ export const NewEnvVar$outboundSchema = z.object({
|
|
|
9999
9966
|
type: UserEventPayload58Type$outboundSchema.optional(),
|
|
10000
9967
|
target: z.array(UserEventPayload58Target$outboundSchema).optional(),
|
|
10001
9968
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
10002
|
-
decrypted: z.boolean(),
|
|
9969
|
+
decrypted: z.boolean().optional(),
|
|
10003
9970
|
comment: z.string().optional(),
|
|
10004
9971
|
lastEditedByDisplayName: z.string().optional(),
|
|
10005
9972
|
});
|