@vercel/sdk 1.6.12 → 1.7.0
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 +573 -107
- package/bin/mcp-server.js.map +18 -18
- package/docs/sdks/deployments/README.md +1 -1
- package/docs/sdks/user/README.md +2 -0
- package/esm/funcs/deploymentsGetDeploymentEvents.d.ts +8 -2
- package/esm/funcs/deploymentsGetDeploymentEvents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentEvents.js +11 -4
- package/esm/funcs/deploymentsGetDeploymentEvents.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/createdeploymentop.d.ts +28 -28
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +12 -12
- package/esm/models/createdeploymentop.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/filterprojectenvsop.d.ts +9 -9
- package/esm/models/filterprojectenvsop.js +3 -3
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getdeploymenteventsop.d.ts +908 -74
- package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
- package/esm/models/getdeploymenteventsop.js +784 -43
- package/esm/models/getdeploymenteventsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +16 -16
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +25 -24
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/listusereventsop.d.ts +5 -0
- 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/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +3 -3
- package/esm/models/teamlimited.js +1 -1
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +9 -9
- package/esm/models/updateprojectop.js +3 -3
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/sdk/deployments.d.ts +6 -2
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +2 -1
- package/esm/sdk/deployments.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/deploymentsGetDeploymentEvents.ts +22 -10
- 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/createdeploymentop.ts +16 -16
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +3 -3
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getdeploymenteventsop.ts +1602 -132
- package/src/models/getdeploymentop.ts +37 -33
- package/src/models/listusereventsop.ts +7 -0
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/teamlimited.ts +1 -1
- package/src/models/updateprojectop.ts +3 -3
- package/src/sdk/deployments.ts +11 -4
- package/vercel-spec.json +609 -121
|
@@ -220,11 +220,11 @@ export type ResponseBodyAliasWarning = {
|
|
|
220
220
|
action?: string | undefined;
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
export const
|
|
223
|
+
export const GetDeploymentResponseBodyDeploymentsType = {
|
|
224
224
|
Lambdas: "LAMBDAS",
|
|
225
225
|
} as const;
|
|
226
|
-
export type
|
|
227
|
-
typeof
|
|
226
|
+
export type GetDeploymentResponseBodyDeploymentsType = ClosedEnum<
|
|
227
|
+
typeof GetDeploymentResponseBodyDeploymentsType
|
|
228
228
|
>;
|
|
229
229
|
|
|
230
230
|
export const GetDeploymentResponseBodyReadyState = {
|
|
@@ -597,7 +597,7 @@ export type GetDeploymentResponseBody2 = {
|
|
|
597
597
|
aliasWarning?: ResponseBodyAliasWarning | null | undefined;
|
|
598
598
|
id: string;
|
|
599
599
|
name: string;
|
|
600
|
-
type:
|
|
600
|
+
type: GetDeploymentResponseBodyDeploymentsType;
|
|
601
601
|
createdAt: number;
|
|
602
602
|
readyState: GetDeploymentResponseBodyReadyState;
|
|
603
603
|
aliasError?: GetDeploymentResponseBodyAliasError | null | undefined;
|
|
@@ -1026,10 +1026,12 @@ export type GetDeploymentResponseBodyAliasWarning = {
|
|
|
1026
1026
|
action?: string | undefined;
|
|
1027
1027
|
};
|
|
1028
1028
|
|
|
1029
|
-
export const
|
|
1029
|
+
export const GetDeploymentResponseBodyType = {
|
|
1030
1030
|
Lambdas: "LAMBDAS",
|
|
1031
1031
|
} as const;
|
|
1032
|
-
export type
|
|
1032
|
+
export type GetDeploymentResponseBodyType = ClosedEnum<
|
|
1033
|
+
typeof GetDeploymentResponseBodyType
|
|
1034
|
+
>;
|
|
1033
1035
|
|
|
1034
1036
|
export const ResponseBodyReadyState = {
|
|
1035
1037
|
Queued: "QUEUED",
|
|
@@ -1733,7 +1735,7 @@ export type GetDeploymentResponseBody1 = {
|
|
|
1733
1735
|
aliasWarning?: GetDeploymentResponseBodyAliasWarning | null | undefined;
|
|
1734
1736
|
id: string;
|
|
1735
1737
|
name: string;
|
|
1736
|
-
type:
|
|
1738
|
+
type: GetDeploymentResponseBodyType;
|
|
1737
1739
|
createdAt: number;
|
|
1738
1740
|
readyState: ResponseBodyReadyState;
|
|
1739
1741
|
aliasError?: ResponseBodyAliasError | null | undefined;
|
|
@@ -2747,24 +2749,26 @@ export function responseBodyAliasWarningFromJSON(
|
|
|
2747
2749
|
}
|
|
2748
2750
|
|
|
2749
2751
|
/** @internal */
|
|
2750
|
-
export const
|
|
2751
|
-
typeof
|
|
2752
|
-
|
|
2752
|
+
export const GetDeploymentResponseBodyDeploymentsType$inboundSchema:
|
|
2753
|
+
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsType> = z
|
|
2754
|
+
.nativeEnum(GetDeploymentResponseBodyDeploymentsType);
|
|
2753
2755
|
|
|
2754
2756
|
/** @internal */
|
|
2755
|
-
export const
|
|
2756
|
-
typeof
|
|
2757
|
-
|
|
2757
|
+
export const GetDeploymentResponseBodyDeploymentsType$outboundSchema:
|
|
2758
|
+
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsType> =
|
|
2759
|
+
GetDeploymentResponseBodyDeploymentsType$inboundSchema;
|
|
2758
2760
|
|
|
2759
2761
|
/**
|
|
2760
2762
|
* @internal
|
|
2761
2763
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2762
2764
|
*/
|
|
2763
|
-
export namespace
|
|
2764
|
-
/** @deprecated use `
|
|
2765
|
-
export const inboundSchema =
|
|
2766
|
-
|
|
2767
|
-
|
|
2765
|
+
export namespace GetDeploymentResponseBodyDeploymentsType$ {
|
|
2766
|
+
/** @deprecated use `GetDeploymentResponseBodyDeploymentsType$inboundSchema` instead. */
|
|
2767
|
+
export const inboundSchema =
|
|
2768
|
+
GetDeploymentResponseBodyDeploymentsType$inboundSchema;
|
|
2769
|
+
/** @deprecated use `GetDeploymentResponseBodyDeploymentsType$outboundSchema` instead. */
|
|
2770
|
+
export const outboundSchema =
|
|
2771
|
+
GetDeploymentResponseBodyDeploymentsType$outboundSchema;
|
|
2768
2772
|
}
|
|
2769
2773
|
|
|
2770
2774
|
/** @internal */
|
|
@@ -4591,7 +4595,7 @@ export const GetDeploymentResponseBody2$inboundSchema: z.ZodType<
|
|
|
4591
4595
|
.optional(),
|
|
4592
4596
|
id: z.string(),
|
|
4593
4597
|
name: z.string(),
|
|
4594
|
-
type:
|
|
4598
|
+
type: GetDeploymentResponseBodyDeploymentsType$inboundSchema,
|
|
4595
4599
|
createdAt: z.number(),
|
|
4596
4600
|
readyState: GetDeploymentResponseBodyReadyState$inboundSchema,
|
|
4597
4601
|
aliasError: z.nullable(
|
|
@@ -4750,7 +4754,7 @@ export const GetDeploymentResponseBody2$outboundSchema: z.ZodType<
|
|
|
4750
4754
|
).optional(),
|
|
4751
4755
|
id: z.string(),
|
|
4752
4756
|
name: z.string(),
|
|
4753
|
-
type:
|
|
4757
|
+
type: GetDeploymentResponseBodyDeploymentsType$outboundSchema,
|
|
4754
4758
|
createdAt: z.number(),
|
|
4755
4759
|
readyState: GetDeploymentResponseBodyReadyState$outboundSchema,
|
|
4756
4760
|
aliasError: z.nullable(
|
|
@@ -6510,24 +6514,24 @@ export function getDeploymentResponseBodyAliasWarningFromJSON(
|
|
|
6510
6514
|
}
|
|
6511
6515
|
|
|
6512
6516
|
/** @internal */
|
|
6513
|
-
export const
|
|
6514
|
-
typeof
|
|
6515
|
-
> = z.nativeEnum(
|
|
6517
|
+
export const GetDeploymentResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
6518
|
+
typeof GetDeploymentResponseBodyType
|
|
6519
|
+
> = z.nativeEnum(GetDeploymentResponseBodyType);
|
|
6516
6520
|
|
|
6517
6521
|
/** @internal */
|
|
6518
|
-
export const
|
|
6519
|
-
typeof
|
|
6520
|
-
> =
|
|
6522
|
+
export const GetDeploymentResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
6523
|
+
typeof GetDeploymentResponseBodyType
|
|
6524
|
+
> = GetDeploymentResponseBodyType$inboundSchema;
|
|
6521
6525
|
|
|
6522
6526
|
/**
|
|
6523
6527
|
* @internal
|
|
6524
6528
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6525
6529
|
*/
|
|
6526
|
-
export namespace
|
|
6527
|
-
/** @deprecated use `
|
|
6528
|
-
export const inboundSchema =
|
|
6529
|
-
/** @deprecated use `
|
|
6530
|
-
export const outboundSchema =
|
|
6530
|
+
export namespace GetDeploymentResponseBodyType$ {
|
|
6531
|
+
/** @deprecated use `GetDeploymentResponseBodyType$inboundSchema` instead. */
|
|
6532
|
+
export const inboundSchema = GetDeploymentResponseBodyType$inboundSchema;
|
|
6533
|
+
/** @deprecated use `GetDeploymentResponseBodyType$outboundSchema` instead. */
|
|
6534
|
+
export const outboundSchema = GetDeploymentResponseBodyType$outboundSchema;
|
|
6531
6535
|
}
|
|
6532
6536
|
|
|
6533
6537
|
/** @internal */
|
|
@@ -10424,7 +10428,7 @@ export const GetDeploymentResponseBody1$inboundSchema: z.ZodType<
|
|
|
10424
10428
|
).optional(),
|
|
10425
10429
|
id: z.string(),
|
|
10426
10430
|
name: z.string(),
|
|
10427
|
-
type:
|
|
10431
|
+
type: GetDeploymentResponseBodyType$inboundSchema,
|
|
10428
10432
|
createdAt: z.number(),
|
|
10429
10433
|
readyState: ResponseBodyReadyState$inboundSchema,
|
|
10430
10434
|
aliasError: z.nullable(z.lazy(() => ResponseBodyAliasError$inboundSchema))
|
|
@@ -10680,7 +10684,7 @@ export const GetDeploymentResponseBody1$outboundSchema: z.ZodType<
|
|
|
10680
10684
|
).optional(),
|
|
10681
10685
|
id: z.string(),
|
|
10682
10686
|
name: z.string(),
|
|
10683
|
-
type:
|
|
10687
|
+
type: GetDeploymentResponseBodyType$outboundSchema,
|
|
10684
10688
|
createdAt: z.number(),
|
|
10685
10689
|
readyState: ResponseBodyReadyState$outboundSchema,
|
|
10686
10690
|
aliasError: z.nullable(z.lazy(() => ResponseBodyAliasError$outboundSchema))
|
|
@@ -38,6 +38,10 @@ export type ListUserEventsRequest = {
|
|
|
38
38
|
* When retrieving events for a Team, the `principalId` parameter may be specified to filter events generated by a specific principal.
|
|
39
39
|
*/
|
|
40
40
|
principalId?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Comma-delimited list of project IDs to filter the results by.
|
|
43
|
+
*/
|
|
44
|
+
projectIds?: string | undefined;
|
|
41
45
|
/**
|
|
42
46
|
* When set to `true`, the response will include the `payload` field for each event.
|
|
43
47
|
*/
|
|
@@ -74,6 +78,7 @@ export const ListUserEventsRequest$inboundSchema: z.ZodType<
|
|
|
74
78
|
types: z.string().optional(),
|
|
75
79
|
userId: z.string().optional(),
|
|
76
80
|
principalId: z.string().optional(),
|
|
81
|
+
projectIds: z.string().optional(),
|
|
77
82
|
withPayload: z.string().optional(),
|
|
78
83
|
teamId: z.string().optional(),
|
|
79
84
|
slug: z.string().optional(),
|
|
@@ -87,6 +92,7 @@ export type ListUserEventsRequest$Outbound = {
|
|
|
87
92
|
types?: string | undefined;
|
|
88
93
|
userId?: string | undefined;
|
|
89
94
|
principalId?: string | undefined;
|
|
95
|
+
projectIds?: string | undefined;
|
|
90
96
|
withPayload?: string | undefined;
|
|
91
97
|
teamId?: string | undefined;
|
|
92
98
|
slug?: string | undefined;
|
|
@@ -104,6 +110,7 @@ export const ListUserEventsRequest$outboundSchema: z.ZodType<
|
|
|
104
110
|
types: z.string().optional(),
|
|
105
111
|
userId: z.string().optional(),
|
|
106
112
|
principalId: z.string().optional(),
|
|
113
|
+
projectIds: z.string().optional(),
|
|
107
114
|
withPayload: z.string().optional(),
|
|
108
115
|
teamId: z.string().optional(),
|
|
109
116
|
slug: z.string().optional(),
|
|
@@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget =
|
|
|
55
55
|
|
|
56
56
|
export const RemoveProjectEnvResponseBodyProjectsResponseType = {
|
|
57
57
|
System: "system",
|
|
58
|
-
Secret: "secret",
|
|
59
58
|
Encrypted: "encrypted",
|
|
60
59
|
Plain: "plain",
|
|
61
60
|
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",
|
|
409
408
|
Encrypted: "encrypted",
|
|
410
409
|
Plain: "plain",
|
|
411
410
|
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",
|
|
758
757
|
Encrypted: "encrypted",
|
|
759
758
|
Plain: "plain",
|
|
760
759
|
Sensitive: "sensitive",
|
|
760
|
+
Secret: "secret",
|
|
761
761
|
} as const;
|
|
762
762
|
export type RemoveProjectEnvResponseBodyType = ClosedEnum<
|
|
763
763
|
typeof RemoveProjectEnvResponseBodyType
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export const LimitedBy = {
|
|
12
|
-
|
|
12
|
+
Scope: "scope",
|
|
13
13
|
Mfa: "mfa",
|
|
14
14
|
} as const;
|
|
15
15
|
export type LimitedBy = ClosedEnum<typeof LimitedBy>;
|
|
@@ -507,10 +507,10 @@ export type UpdateProjectTarget = Array<string> | UpdateProjectTarget2;
|
|
|
507
507
|
|
|
508
508
|
export const UpdateProjectType = {
|
|
509
509
|
System: "system",
|
|
510
|
-
Secret: "secret",
|
|
511
510
|
Encrypted: "encrypted",
|
|
512
511
|
Plain: "plain",
|
|
513
512
|
Sensitive: "sensitive",
|
|
513
|
+
Secret: "secret",
|
|
514
514
|
} as const;
|
|
515
515
|
export type UpdateProjectType = ClosedEnum<typeof UpdateProjectType>;
|
|
516
516
|
|
|
@@ -1973,8 +1973,8 @@ export type UpdateProjectSrc = UpdateProjectSrc2 | string;
|
|
|
1973
1973
|
|
|
1974
1974
|
export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityType =
|
|
1975
1975
|
{
|
|
1976
|
-
Host: "host",
|
|
1977
1976
|
Path: "path",
|
|
1977
|
+
Host: "host",
|
|
1978
1978
|
Method: "method",
|
|
1979
1979
|
Header: "header",
|
|
1980
1980
|
Cookie: "cookie",
|
|
@@ -2015,8 +2015,8 @@ export type UpdateProjectHas = {
|
|
|
2015
2015
|
|
|
2016
2016
|
export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodySecurityFirewallRoutesType =
|
|
2017
2017
|
{
|
|
2018
|
-
Host: "host",
|
|
2019
2018
|
Path: "path",
|
|
2019
|
+
Host: "host",
|
|
2020
2020
|
Method: "method",
|
|
2021
2021
|
Header: "header",
|
|
2022
2022
|
Cookie: "cookie",
|
package/src/sdk/deployments.ts
CHANGED
|
@@ -6,7 +6,10 @@ import { deploymentsCancelDeployment } from "../funcs/deploymentsCancelDeploymen
|
|
|
6
6
|
import { deploymentsCreateDeployment } from "../funcs/deploymentsCreateDeployment.js";
|
|
7
7
|
import { deploymentsDeleteDeployment } from "../funcs/deploymentsDeleteDeployment.js";
|
|
8
8
|
import { deploymentsGetDeployment } from "../funcs/deploymentsGetDeployment.js";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
deploymentsGetDeploymentEvents,
|
|
11
|
+
GetDeploymentEventsAcceptEnum,
|
|
12
|
+
} from "../funcs/deploymentsGetDeploymentEvents.js";
|
|
10
13
|
import { deploymentsGetDeploymentFileContents } from "../funcs/deploymentsGetDeploymentFileContents.js";
|
|
11
14
|
import { deploymentsGetDeployments } from "../funcs/deploymentsGetDeployments.js";
|
|
12
15
|
import { deploymentsListDeploymentFiles } from "../funcs/deploymentsListDeploymentFiles.js";
|
|
@@ -28,7 +31,7 @@ import {
|
|
|
28
31
|
import { FileTree } from "../models/filetree.js";
|
|
29
32
|
import {
|
|
30
33
|
GetDeploymentEventsRequest,
|
|
31
|
-
|
|
34
|
+
GetDeploymentEventsResponse,
|
|
32
35
|
} from "../models/getdeploymenteventsop.js";
|
|
33
36
|
import { GetDeploymentFileContentsRequest } from "../models/getdeploymentfilecontentsop.js";
|
|
34
37
|
import {
|
|
@@ -47,6 +50,8 @@ import {
|
|
|
47
50
|
} from "../models/uploadfileop.js";
|
|
48
51
|
import { unwrapAsync } from "../types/fp.js";
|
|
49
52
|
|
|
53
|
+
export { GetDeploymentEventsAcceptEnum } from "../funcs/deploymentsGetDeploymentEvents.js";
|
|
54
|
+
|
|
50
55
|
export class Deployments extends ClientSDK {
|
|
51
56
|
/**
|
|
52
57
|
* Get deployment events
|
|
@@ -56,8 +61,10 @@ export class Deployments extends ClientSDK {
|
|
|
56
61
|
*/
|
|
57
62
|
async getDeploymentEvents(
|
|
58
63
|
request: GetDeploymentEventsRequest,
|
|
59
|
-
options?: RequestOptions
|
|
60
|
-
|
|
64
|
+
options?: RequestOptions & {
|
|
65
|
+
acceptHeaderOverride?: GetDeploymentEventsAcceptEnum;
|
|
66
|
+
},
|
|
67
|
+
): Promise<GetDeploymentEventsResponse> {
|
|
61
68
|
return unwrapAsync(deploymentsGetDeploymentEvents(
|
|
62
69
|
this,
|
|
63
70
|
request,
|