@vercel/sdk 1.6.12 → 1.7.1
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 +824 -348
- package/bin/mcp-server.js.map +24 -24
- package/docs/sdks/deployments/README.md +7 -5
- package/docs/sdks/teams/README.md +2 -2
- package/docs/sdks/user/README.md +2 -0
- package/esm/__tests__/deployments.test.js +2 -1
- package/esm/__tests__/deployments.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__/teams.test.js +34 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- 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/deploymentsGetDeploymentFileContents.d.ts +2 -2
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.js +2 -3
- package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/funcs/teamsGetTeam.d.ts +2 -3
- package/esm/funcs/teamsGetTeam.d.ts.map +1 -1
- package/esm/funcs/teamsGetTeam.js +2 -2
- package/esm/funcs/teamsGetTeam.js.map +1 -1
- package/esm/funcs/teamsPatchTeam.d.ts +2 -3
- package/esm/funcs/teamsPatchTeam.d.ts.map +1 -1
- package/esm/funcs/teamsPatchTeam.js +2 -2
- package/esm/funcs/teamsPatchTeam.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/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +2 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.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/getdeploymentfilecontentsop.d.ts +31 -0
- package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.js +25 -0
- package/esm/models/getdeploymentfilecontentsop.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 +17 -17
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +7 -7
- 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 +8 -4
- 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/esm/sdk/teams.d.ts +3 -6
- package/esm/sdk/teams.d.ts.map +1 -1
- package/esm/sdk/teams.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +2 -1
- package/src/__tests__/projects.test.ts +15 -13
- package/src/__tests__/teams.test.ts +34 -2
- package/src/funcs/deploymentsGetDeploymentEvents.ts +22 -10
- package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -5
- package/src/funcs/teamsGetTeam.ts +8 -5
- package/src/funcs/teamsPatchTeam.ts +8 -5
- 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/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +3 -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/getdeploymentfilecontentsop.ts +69 -0
- 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 +9 -9
- package/src/models/updateprojectop.ts +3 -3
- package/src/sdk/deployments.ts +16 -6
- package/src/sdk/teams.ts +3 -2
- package/vercel-spec.json +646 -135
|
@@ -30,6 +30,16 @@ export type GetDeploymentFileContentsRequest = {
|
|
|
30
30
|
slug?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* File content as base64 encoded string
|
|
35
|
+
*/
|
|
36
|
+
export type GetDeploymentFileContentsResponseBody = {
|
|
37
|
+
/**
|
|
38
|
+
* Base64 encoded file buffer
|
|
39
|
+
*/
|
|
40
|
+
data: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
33
43
|
/** @internal */
|
|
34
44
|
export const GetDeploymentFileContentsRequest$inboundSchema: z.ZodType<
|
|
35
45
|
GetDeploymentFileContentsRequest,
|
|
@@ -97,3 +107,62 @@ export function getDeploymentFileContentsRequestFromJSON(
|
|
|
97
107
|
`Failed to parse 'GetDeploymentFileContentsRequest' from JSON`,
|
|
98
108
|
);
|
|
99
109
|
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const GetDeploymentFileContentsResponseBody$inboundSchema: z.ZodType<
|
|
113
|
+
GetDeploymentFileContentsResponseBody,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
unknown
|
|
116
|
+
> = z.object({
|
|
117
|
+
data: z.string(),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type GetDeploymentFileContentsResponseBody$Outbound = {
|
|
122
|
+
data: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const GetDeploymentFileContentsResponseBody$outboundSchema: z.ZodType<
|
|
127
|
+
GetDeploymentFileContentsResponseBody$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
GetDeploymentFileContentsResponseBody
|
|
130
|
+
> = z.object({
|
|
131
|
+
data: z.string(),
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace GetDeploymentFileContentsResponseBody$ {
|
|
139
|
+
/** @deprecated use `GetDeploymentFileContentsResponseBody$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema =
|
|
141
|
+
GetDeploymentFileContentsResponseBody$inboundSchema;
|
|
142
|
+
/** @deprecated use `GetDeploymentFileContentsResponseBody$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema =
|
|
144
|
+
GetDeploymentFileContentsResponseBody$outboundSchema;
|
|
145
|
+
/** @deprecated use `GetDeploymentFileContentsResponseBody$Outbound` instead. */
|
|
146
|
+
export type Outbound = GetDeploymentFileContentsResponseBody$Outbound;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function getDeploymentFileContentsResponseBodyToJSON(
|
|
150
|
+
getDeploymentFileContentsResponseBody: GetDeploymentFileContentsResponseBody,
|
|
151
|
+
): string {
|
|
152
|
+
return JSON.stringify(
|
|
153
|
+
GetDeploymentFileContentsResponseBody$outboundSchema.parse(
|
|
154
|
+
getDeploymentFileContentsResponseBody,
|
|
155
|
+
),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function getDeploymentFileContentsResponseBodyFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<GetDeploymentFileContentsResponseBody, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) =>
|
|
165
|
+
GetDeploymentFileContentsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'GetDeploymentFileContentsResponseBody' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -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>;
|
|
@@ -116,14 +116,14 @@ export const TeamPermissions = {
|
|
|
116
116
|
export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
|
|
117
117
|
|
|
118
118
|
export const Origin = {
|
|
119
|
+
Mail: "mail",
|
|
119
120
|
Link: "link",
|
|
120
|
-
|
|
121
|
+
Import: "import",
|
|
122
|
+
Teams: "teams",
|
|
121
123
|
Github: "github",
|
|
122
124
|
Gitlab: "gitlab",
|
|
123
125
|
Bitbucket: "bitbucket",
|
|
124
|
-
|
|
125
|
-
Import: "import",
|
|
126
|
-
Teams: "teams",
|
|
126
|
+
Saml: "saml",
|
|
127
127
|
Dsync: "dsync",
|
|
128
128
|
Feedback: "feedback",
|
|
129
129
|
OrganizationTeams: "organization-teams",
|
|
@@ -152,13 +152,13 @@ export type JoinedFrom = {
|
|
|
152
152
|
export type Membership = {
|
|
153
153
|
uid?: string | undefined;
|
|
154
154
|
entitlements?: Array<Entitlements> | undefined;
|
|
155
|
+
teamId?: string | undefined;
|
|
155
156
|
confirmed: boolean;
|
|
156
157
|
confirmedAt: number;
|
|
157
158
|
accessRequestedAt?: number | undefined;
|
|
158
159
|
role: Role;
|
|
159
160
|
teamRoles?: Array<TeamRoles> | undefined;
|
|
160
161
|
teamPermissions?: Array<TeamPermissions> | undefined;
|
|
161
|
-
teamId?: string | undefined;
|
|
162
162
|
createdAt: number;
|
|
163
163
|
created: number;
|
|
164
164
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -659,13 +659,13 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
659
659
|
> = z.object({
|
|
660
660
|
uid: z.string().optional(),
|
|
661
661
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
662
|
+
teamId: z.string().optional(),
|
|
662
663
|
confirmed: z.boolean(),
|
|
663
664
|
confirmedAt: z.number(),
|
|
664
665
|
accessRequestedAt: z.number().optional(),
|
|
665
666
|
role: Role$inboundSchema,
|
|
666
667
|
teamRoles: z.array(TeamRoles$inboundSchema).optional(),
|
|
667
668
|
teamPermissions: z.array(TeamPermissions$inboundSchema).optional(),
|
|
668
|
-
teamId: z.string().optional(),
|
|
669
669
|
createdAt: z.number(),
|
|
670
670
|
created: z.number(),
|
|
671
671
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -675,13 +675,13 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
675
675
|
export type Membership$Outbound = {
|
|
676
676
|
uid?: string | undefined;
|
|
677
677
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
678
|
+
teamId?: string | undefined;
|
|
678
679
|
confirmed: boolean;
|
|
679
680
|
confirmedAt: number;
|
|
680
681
|
accessRequestedAt?: number | undefined;
|
|
681
682
|
role: string;
|
|
682
683
|
teamRoles?: Array<string> | undefined;
|
|
683
684
|
teamPermissions?: Array<string> | undefined;
|
|
684
|
-
teamId?: string | undefined;
|
|
685
685
|
createdAt: number;
|
|
686
686
|
created: number;
|
|
687
687
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -695,13 +695,13 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
695
695
|
> = z.object({
|
|
696
696
|
uid: z.string().optional(),
|
|
697
697
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
698
|
+
teamId: z.string().optional(),
|
|
698
699
|
confirmed: z.boolean(),
|
|
699
700
|
confirmedAt: z.number(),
|
|
700
701
|
accessRequestedAt: z.number().optional(),
|
|
701
702
|
role: Role$outboundSchema,
|
|
702
703
|
teamRoles: z.array(TeamRoles$outboundSchema).optional(),
|
|
703
704
|
teamPermissions: z.array(TeamPermissions$outboundSchema).optional(),
|
|
704
|
-
teamId: z.string().optional(),
|
|
705
705
|
createdAt: z.number(),
|
|
706
706
|
created: z.number(),
|
|
707
707
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|
|
@@ -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,9 +31,12 @@ 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
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
GetDeploymentFileContentsRequest,
|
|
38
|
+
GetDeploymentFileContentsResponseBody,
|
|
39
|
+
} from "../models/getdeploymentfilecontentsop.js";
|
|
34
40
|
import {
|
|
35
41
|
GetDeploymentRequest,
|
|
36
42
|
GetDeploymentResponseBody,
|
|
@@ -47,6 +53,8 @@ import {
|
|
|
47
53
|
} from "../models/uploadfileop.js";
|
|
48
54
|
import { unwrapAsync } from "../types/fp.js";
|
|
49
55
|
|
|
56
|
+
export { GetDeploymentEventsAcceptEnum } from "../funcs/deploymentsGetDeploymentEvents.js";
|
|
57
|
+
|
|
50
58
|
export class Deployments extends ClientSDK {
|
|
51
59
|
/**
|
|
52
60
|
* Get deployment events
|
|
@@ -56,8 +64,10 @@ export class Deployments extends ClientSDK {
|
|
|
56
64
|
*/
|
|
57
65
|
async getDeploymentEvents(
|
|
58
66
|
request: GetDeploymentEventsRequest,
|
|
59
|
-
options?: RequestOptions
|
|
60
|
-
|
|
67
|
+
options?: RequestOptions & {
|
|
68
|
+
acceptHeaderOverride?: GetDeploymentEventsAcceptEnum;
|
|
69
|
+
},
|
|
70
|
+
): Promise<GetDeploymentEventsResponse> {
|
|
61
71
|
return unwrapAsync(deploymentsGetDeploymentEvents(
|
|
62
72
|
this,
|
|
63
73
|
request,
|
|
@@ -176,7 +186,7 @@ export class Deployments extends ClientSDK {
|
|
|
176
186
|
async getDeploymentFileContents(
|
|
177
187
|
request: GetDeploymentFileContentsRequest,
|
|
178
188
|
options?: RequestOptions,
|
|
179
|
-
): Promise<
|
|
189
|
+
): Promise<GetDeploymentFileContentsResponseBody> {
|
|
180
190
|
return unwrapAsync(deploymentsGetDeploymentFileContents(
|
|
181
191
|
this,
|
|
182
192
|
request,
|
package/src/sdk/teams.ts
CHANGED
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
RequestAccessToTeamRequest,
|
|
53
53
|
RequestAccessToTeamResponseBody,
|
|
54
54
|
} from "../models/requestaccesstoteamop.js";
|
|
55
|
+
import { TeamLimited } from "../models/teamlimited.js";
|
|
55
56
|
import {
|
|
56
57
|
UpdateTeamMemberRequest,
|
|
57
58
|
UpdateTeamMemberResponseBody,
|
|
@@ -187,7 +188,7 @@ export class Teams extends ClientSDK {
|
|
|
187
188
|
async getTeam(
|
|
188
189
|
request: GetTeamRequest,
|
|
189
190
|
options?: RequestOptions,
|
|
190
|
-
): Promise<
|
|
191
|
+
): Promise<TeamLimited> {
|
|
191
192
|
return unwrapAsync(teamsGetTeam(
|
|
192
193
|
this,
|
|
193
194
|
request,
|
|
@@ -204,7 +205,7 @@ export class Teams extends ClientSDK {
|
|
|
204
205
|
async patchTeam(
|
|
205
206
|
request: PatchTeamRequest,
|
|
206
207
|
options?: RequestOptions,
|
|
207
|
-
): Promise<
|
|
208
|
+
): Promise<TeamLimited> {
|
|
208
209
|
return unwrapAsync(teamsPatchTeam(
|
|
209
210
|
this,
|
|
210
211
|
request,
|