@vercel/sdk 1.7.0 → 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 +258 -248
- package/bin/mcp-server.js.map +12 -12
- package/docs/sdks/deployments/README.md +6 -4
- package/docs/sdks/teams/README.md +2 -2
- 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/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/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/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/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/teamlimited.d.ts +14 -14
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +6 -6
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/sdk/deployments.d.ts +2 -2
- package/esm/sdk/deployments.d.ts.map +1 -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/deploymentsGetDeploymentFileContents.ts +6 -5
- package/src/funcs/teamsGetTeam.ts +8 -5
- package/src/funcs/teamsPatchTeam.ts +8 -5
- 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/getdeploymentfilecontentsop.ts +69 -0
- package/src/models/teamlimited.ts +8 -8
- package/src/sdk/deployments.ts +5 -2
- package/src/sdk/teams.ts +3 -2
- package/vercel-spec.json +37 -14
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { VercelCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -14,6 +13,8 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
14
13
|
import {
|
|
15
14
|
GetDeploymentFileContentsRequest,
|
|
16
15
|
GetDeploymentFileContentsRequest$outboundSchema,
|
|
16
|
+
GetDeploymentFileContentsResponseBody,
|
|
17
|
+
GetDeploymentFileContentsResponseBody$inboundSchema,
|
|
17
18
|
} from "../models/getdeploymentfilecontentsop.js";
|
|
18
19
|
import {
|
|
19
20
|
ConnectionError,
|
|
@@ -51,7 +52,7 @@ export function deploymentsGetDeploymentFileContents(
|
|
|
51
52
|
options?: RequestOptions,
|
|
52
53
|
): APIPromise<
|
|
53
54
|
Result<
|
|
54
|
-
|
|
55
|
+
GetDeploymentFileContentsResponseBody,
|
|
55
56
|
| VercelBadRequestError
|
|
56
57
|
| VercelForbiddenError
|
|
57
58
|
| VercelNotFoundError
|
|
@@ -78,7 +79,7 @@ async function $do(
|
|
|
78
79
|
): Promise<
|
|
79
80
|
[
|
|
80
81
|
Result<
|
|
81
|
-
|
|
82
|
+
GetDeploymentFileContentsResponseBody,
|
|
82
83
|
| VercelBadRequestError
|
|
83
84
|
| VercelForbiddenError
|
|
84
85
|
| VercelNotFoundError
|
|
@@ -176,7 +177,7 @@ async function $do(
|
|
|
176
177
|
};
|
|
177
178
|
|
|
178
179
|
const [result] = await M.match<
|
|
179
|
-
|
|
180
|
+
GetDeploymentFileContentsResponseBody,
|
|
180
181
|
| VercelBadRequestError
|
|
181
182
|
| VercelForbiddenError
|
|
182
183
|
| VercelNotFoundError
|
|
@@ -188,10 +189,10 @@ async function $do(
|
|
|
188
189
|
| RequestTimeoutError
|
|
189
190
|
| ConnectionError
|
|
190
191
|
>(
|
|
192
|
+
M.json(200, GetDeploymentFileContentsResponseBody$inboundSchema),
|
|
191
193
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
192
194
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
193
195
|
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
194
|
-
M.nil("2XX", z.void()),
|
|
195
196
|
M.fail([403, 410, "4XX"]),
|
|
196
197
|
M.fail("5XX"),
|
|
197
198
|
)(response, { extraFields: responseFields });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { VercelCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -24,6 +23,10 @@ import {
|
|
|
24
23
|
} from "../models/httpclienterrors.js";
|
|
25
24
|
import { SDKError } from "../models/sdkerror.js";
|
|
26
25
|
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
26
|
+
import {
|
|
27
|
+
TeamLimited,
|
|
28
|
+
TeamLimited$inboundSchema,
|
|
29
|
+
} from "../models/teamlimited.js";
|
|
27
30
|
import {
|
|
28
31
|
VercelBadRequestError,
|
|
29
32
|
VercelBadRequestError$inboundSchema,
|
|
@@ -51,7 +54,7 @@ export function teamsGetTeam(
|
|
|
51
54
|
options?: RequestOptions,
|
|
52
55
|
): APIPromise<
|
|
53
56
|
Result<
|
|
54
|
-
|
|
57
|
+
TeamLimited,
|
|
55
58
|
| VercelBadRequestError
|
|
56
59
|
| VercelForbiddenError
|
|
57
60
|
| VercelNotFoundError
|
|
@@ -78,7 +81,7 @@ async function $do(
|
|
|
78
81
|
): Promise<
|
|
79
82
|
[
|
|
80
83
|
Result<
|
|
81
|
-
|
|
84
|
+
TeamLimited,
|
|
82
85
|
| VercelBadRequestError
|
|
83
86
|
| VercelForbiddenError
|
|
84
87
|
| VercelNotFoundError
|
|
@@ -170,7 +173,7 @@ async function $do(
|
|
|
170
173
|
};
|
|
171
174
|
|
|
172
175
|
const [result] = await M.match<
|
|
173
|
-
|
|
176
|
+
TeamLimited,
|
|
174
177
|
| VercelBadRequestError
|
|
175
178
|
| VercelForbiddenError
|
|
176
179
|
| VercelNotFoundError
|
|
@@ -182,7 +185,7 @@ async function $do(
|
|
|
182
185
|
| RequestTimeoutError
|
|
183
186
|
| ConnectionError
|
|
184
187
|
>(
|
|
185
|
-
M.json(200,
|
|
188
|
+
M.json(200, TeamLimited$inboundSchema),
|
|
186
189
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
187
190
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
188
191
|
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { VercelCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -24,6 +23,10 @@ import {
|
|
|
24
23
|
} from "../models/patchteamop.js";
|
|
25
24
|
import { SDKError } from "../models/sdkerror.js";
|
|
26
25
|
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
26
|
+
import {
|
|
27
|
+
TeamLimited,
|
|
28
|
+
TeamLimited$inboundSchema,
|
|
29
|
+
} from "../models/teamlimited.js";
|
|
27
30
|
import {
|
|
28
31
|
VercelBadRequestError,
|
|
29
32
|
VercelBadRequestError$inboundSchema,
|
|
@@ -51,7 +54,7 @@ export function teamsPatchTeam(
|
|
|
51
54
|
options?: RequestOptions,
|
|
52
55
|
): APIPromise<
|
|
53
56
|
Result<
|
|
54
|
-
|
|
57
|
+
TeamLimited,
|
|
55
58
|
| VercelBadRequestError
|
|
56
59
|
| VercelForbiddenError
|
|
57
60
|
| VercelNotFoundError
|
|
@@ -78,7 +81,7 @@ async function $do(
|
|
|
78
81
|
): Promise<
|
|
79
82
|
[
|
|
80
83
|
Result<
|
|
81
|
-
|
|
84
|
+
TeamLimited,
|
|
82
85
|
| VercelBadRequestError
|
|
83
86
|
| VercelForbiddenError
|
|
84
87
|
| VercelNotFoundError
|
|
@@ -171,7 +174,7 @@ async function $do(
|
|
|
171
174
|
};
|
|
172
175
|
|
|
173
176
|
const [result] = await M.match<
|
|
174
|
-
|
|
177
|
+
TeamLimited,
|
|
175
178
|
| VercelBadRequestError
|
|
176
179
|
| VercelForbiddenError
|
|
177
180
|
| VercelNotFoundError
|
|
@@ -183,7 +186,7 @@ async function $do(
|
|
|
183
186
|
| RequestTimeoutError
|
|
184
187
|
| ConnectionError
|
|
185
188
|
>(
|
|
186
|
-
M.json(200,
|
|
189
|
+
M.json(200, TeamLimited$inboundSchema),
|
|
187
190
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
188
191
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
189
192
|
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
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.7.
|
|
61
|
-
genVersion: "2.598.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 1.7.
|
|
60
|
+
sdkVersion: "1.7.1",
|
|
61
|
+
genVersion: "2.598.22",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.7.1 2.598.22 0.0.1 @vercel/sdk",
|
|
63
63
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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(),
|
package/src/sdk/deployments.ts
CHANGED
|
@@ -33,7 +33,10 @@ import {
|
|
|
33
33
|
GetDeploymentEventsRequest,
|
|
34
34
|
GetDeploymentEventsResponse,
|
|
35
35
|
} from "../models/getdeploymenteventsop.js";
|
|
36
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
GetDeploymentFileContentsRequest,
|
|
38
|
+
GetDeploymentFileContentsResponseBody,
|
|
39
|
+
} from "../models/getdeploymentfilecontentsop.js";
|
|
37
40
|
import {
|
|
38
41
|
GetDeploymentRequest,
|
|
39
42
|
GetDeploymentResponseBody,
|
|
@@ -183,7 +186,7 @@ export class Deployments extends ClientSDK {
|
|
|
183
186
|
async getDeploymentFileContents(
|
|
184
187
|
request: GetDeploymentFileContentsRequest,
|
|
185
188
|
options?: RequestOptions,
|
|
186
|
-
): Promise<
|
|
189
|
+
): Promise<GetDeploymentFileContentsResponseBody> {
|
|
187
190
|
return unwrapAsync(deploymentsGetDeploymentFileContents(
|
|
188
191
|
this,
|
|
189
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,
|
package/vercel-spec.json
CHANGED
|
@@ -58904,7 +58904,7 @@
|
|
|
58904
58904
|
"content": {
|
|
58905
58905
|
"application/json": {
|
|
58906
58906
|
"schema": {
|
|
58907
|
-
"$ref": "#/components/schemas/
|
|
58907
|
+
"$ref": "#/components/schemas/TeamLimited"
|
|
58908
58908
|
}
|
|
58909
58909
|
}
|
|
58910
58910
|
}
|
|
@@ -58982,7 +58982,7 @@
|
|
|
58982
58982
|
"content": {
|
|
58983
58983
|
"application/json": {
|
|
58984
58984
|
"schema": {
|
|
58985
|
-
"$ref": "#/components/schemas/
|
|
58985
|
+
"$ref": "#/components/schemas/TeamLimited"
|
|
58986
58986
|
}
|
|
58987
58987
|
}
|
|
58988
58988
|
}
|
|
@@ -63584,6 +63584,29 @@
|
|
|
63584
63584
|
},
|
|
63585
63585
|
"410": {
|
|
63586
63586
|
"description": "Invalid API version."
|
|
63587
|
+
},
|
|
63588
|
+
"200": {
|
|
63589
|
+
"description": "File content as base64 encoded string",
|
|
63590
|
+
"content": {
|
|
63591
|
+
"application/json": {
|
|
63592
|
+
"schema": {
|
|
63593
|
+
"type": "object",
|
|
63594
|
+
"properties": {
|
|
63595
|
+
"data": {
|
|
63596
|
+
"type": "string",
|
|
63597
|
+
"description": "Base64 encoded file buffer",
|
|
63598
|
+
"format": "byte"
|
|
63599
|
+
}
|
|
63600
|
+
},
|
|
63601
|
+
"required": [
|
|
63602
|
+
"data"
|
|
63603
|
+
]
|
|
63604
|
+
},
|
|
63605
|
+
"example": {
|
|
63606
|
+
"data": "SGVsbG8gV29ybGQhIFRoaXMgaXMgYSByYW5kb20gc2hvcnQgZmlsZSBidWZmZXIgZXhhbXBsZS4="
|
|
63607
|
+
}
|
|
63608
|
+
}
|
|
63609
|
+
}
|
|
63587
63610
|
}
|
|
63588
63611
|
},
|
|
63589
63612
|
"parameters": [
|
|
@@ -72279,11 +72302,6 @@
|
|
|
72279
72302
|
"type": "object",
|
|
72280
72303
|
"description": "Array of events generated by the User."
|
|
72281
72304
|
},
|
|
72282
|
-
"Team": {
|
|
72283
|
-
"type": "object",
|
|
72284
|
-
"description": "Data representing a Team.",
|
|
72285
|
-
"additionalProperties": true
|
|
72286
|
-
},
|
|
72287
72305
|
"TeamLimited": {
|
|
72288
72306
|
"properties": {
|
|
72289
72307
|
"limited": {
|
|
@@ -72425,6 +72443,9 @@
|
|
|
72425
72443
|
},
|
|
72426
72444
|
"type": "array"
|
|
72427
72445
|
},
|
|
72446
|
+
"teamId": {
|
|
72447
|
+
"type": "string"
|
|
72448
|
+
},
|
|
72428
72449
|
"confirmed": {
|
|
72429
72450
|
"type": "boolean"
|
|
72430
72451
|
},
|
|
@@ -72474,9 +72495,6 @@
|
|
|
72474
72495
|
},
|
|
72475
72496
|
"type": "array"
|
|
72476
72497
|
},
|
|
72477
|
-
"teamId": {
|
|
72478
|
-
"type": "string"
|
|
72479
|
-
},
|
|
72480
72498
|
"createdAt": {
|
|
72481
72499
|
"type": "number"
|
|
72482
72500
|
},
|
|
@@ -72488,14 +72506,14 @@
|
|
|
72488
72506
|
"origin": {
|
|
72489
72507
|
"type": "string",
|
|
72490
72508
|
"enum": [
|
|
72509
|
+
"mail",
|
|
72491
72510
|
"link",
|
|
72492
|
-
"
|
|
72511
|
+
"import",
|
|
72512
|
+
"teams",
|
|
72493
72513
|
"github",
|
|
72494
72514
|
"gitlab",
|
|
72495
72515
|
"bitbucket",
|
|
72496
|
-
"
|
|
72497
|
-
"import",
|
|
72498
|
-
"teams",
|
|
72516
|
+
"saml",
|
|
72499
72517
|
"dsync",
|
|
72500
72518
|
"feedback",
|
|
72501
72519
|
"organization-teams"
|
|
@@ -72579,6 +72597,11 @@
|
|
|
72579
72597
|
"type": "object",
|
|
72580
72598
|
"description": "A limited form of data representing a Team, due to the authentication token missing privileges to read the full Team data."
|
|
72581
72599
|
},
|
|
72600
|
+
"Team": {
|
|
72601
|
+
"type": "object",
|
|
72602
|
+
"description": "Data representing a Team.",
|
|
72603
|
+
"additionalProperties": true
|
|
72604
|
+
},
|
|
72582
72605
|
"AuthToken": {
|
|
72583
72606
|
"properties": {
|
|
72584
72607
|
"id": {
|