Skip to content

Commit 98a6c4e

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Reuse the managed_by enum in teams.rs (#43006)
GitOrigin-RevId: 6f17ce96bf5459470057bc2ad6cc53e891099987
1 parent a33157d commit 98a6c4e

File tree

3 files changed

+38
-11
lines changed

3 files changed

+38
-11
lines changed

npm-packages/convex/management-openapi.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@
271271
}
272272
}
273273
},
274+
"ManagedBy": {
275+
"type": "string",
276+
"enum": [
277+
"vercel"
278+
]
279+
},
274280
"MemberId": {
275281
"type": "integer",
276282
"format": "int64",
@@ -429,9 +435,13 @@
429435
"$ref": "#/components/schemas/TeamId"
430436
},
431437
"managedBy": {
432-
"type": [
433-
"string",
434-
"null"
438+
"oneOf": [
439+
{
440+
"type": "null"
441+
},
442+
{
443+
"$ref": "#/components/schemas/ManagedBy"
444+
}
435445
]
436446
},
437447
"name": {

npm-packages/dashboard/dashboard-management-openapi.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4528,6 +4528,12 @@
45284528
}
45294529
}
45304530
},
4531+
"ManagedBy": {
4532+
"type": "string",
4533+
"enum": [
4534+
"vercel"
4535+
]
4536+
},
45314537
"MemberDataResponse": {
45324538
"type": "object",
45334539
"required": [
@@ -5310,9 +5316,13 @@
53105316
"$ref": "#/components/schemas/TeamId"
53115317
},
53125318
"managedBy": {
5313-
"type": [
5314-
"string",
5315-
"null"
5319+
"oneOf": [
5320+
{
5321+
"type": "null"
5322+
},
5323+
{
5324+
"$ref": "#/components/schemas/ManagedBy"
5325+
}
53165326
]
53175327
},
53185328
"name": {
@@ -5582,9 +5592,13 @@
55825592
"$ref": "#/components/schemas/TeamId"
55835593
},
55845594
"managedBy": {
5585-
"type": [
5586-
"string",
5587-
"null"
5595+
"oneOf": [
5596+
{
5597+
"type": "null"
5598+
},
5599+
{
5600+
"$ref": "#/components/schemas/ManagedBy"
5601+
}
55885602
]
55895603
},
55905604
"name": {

npm-packages/dashboard/src/generatedApi.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,8 @@ export interface components {
20892089
ListVanityDomainsResponse: {
20902090
domains: components["schemas"]["VanityDomainResponse"][];
20912091
};
2092+
/** @enum {string} */
2093+
ManagedBy: "vercel";
20922094
MemberDataResponse: {
20932095
deployments: components["schemas"]["DeploymentResponse"][];
20942096
optInsToAccept: components["schemas"]["OptInToAccept"][];
@@ -2305,7 +2307,7 @@ export interface components {
23052307
Team: {
23062308
creator?: null | components["schemas"]["MemberId"];
23072309
id: components["schemas"]["TeamId"];
2308-
managedBy?: string | null;
2310+
managedBy?: null | components["schemas"]["ManagedBy"];
23092311
name: components["schemas"]["TeamName"];
23102312
referralCode: components["schemas"]["ReferralCode"];
23112313
referredBy?: null | components["schemas"]["TeamId"];
@@ -2377,7 +2379,7 @@ export interface components {
23772379
TeamResponse: {
23782380
creator?: null | components["schemas"]["MemberId"];
23792381
id: components["schemas"]["TeamId"];
2380-
managedBy?: string | null;
2382+
managedBy?: null | components["schemas"]["ManagedBy"];
23812383
name: components["schemas"]["TeamName"];
23822384
referralCode: components["schemas"]["ReferralCode"];
23832385
referredBy?: null | components["schemas"]["TeamId"];
@@ -2554,6 +2556,7 @@ export type InvoiceResponse = components['schemas']['InvoiceResponse'];
25542556
export type InvoicesResponse = components['schemas']['InvoicesResponse'];
25552557
export type ListEnvVariableResponse = components['schemas']['ListEnvVariableResponse'];
25562558
export type ListVanityDomainsResponse = components['schemas']['ListVanityDomainsResponse'];
2559+
export type ManagedBy = components['schemas']['ManagedBy'];
25572560
export type MemberDataResponse = components['schemas']['MemberDataResponse'];
25582561
export type MemberEmailId = components['schemas']['MemberEmailId'];
25592562
export type MemberEmailResponse = components['schemas']['MemberEmailResponse'];

0 commit comments

Comments
 (0)