Skip to content

Commit 96d5f6f

Browse files
rrwang7Convex, Inc.
authored andcommitted
add max_chef_tokens entitlement (#36320)
GitOrigin-RevId: cf80619c620c1838a0a49d3467bbf8ab81ad8bc9
1 parent 8e26818 commit 96d5f6f

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

npm-packages/dashboard/dashboard-openapi.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4243,7 +4243,8 @@
42434243
"auditLogsEnabled",
42444244
"customDomainsEnabled",
42454245
"periodicBackupsEnabled",
4246-
"maxCloudBackups"
4246+
"maxCloudBackups",
4247+
"maxChefTokens"
42474248
],
42484249
"properties": {
42494250
"auditLogsEnabled": {
@@ -4255,6 +4256,11 @@
42554256
"logStreamingEnabled": {
42564257
"type": "boolean"
42574258
},
4259+
"maxChefTokens": {
4260+
"type": "integer",
4261+
"format": "int64",
4262+
"minimum": 0
4263+
},
42584264
"maxCloudBackups": {
42594265
"type": "integer",
42604266
"format": "int64",

npm-packages/dashboard/src/components/billing/PlanSummary.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const Primary: StoryObj<typeof PlanSummaryForTeam> = {
3737
maxCloudBackups: 50,
3838
maxProjects: 10,
3939
projectMaxPreviewDeployments: 10,
40+
maxChefTokens: 8500000,
4041
},
4142
},
4243
};

npm-packages/dashboard/src/generatedApi.ts

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,38 @@ export interface paths {
13031303
patch?: never;
13041304
trace?: never;
13051305
};
1306+
"/teams/{team_slug}/usage/get_token_info": {
1307+
parameters: {
1308+
query?: never;
1309+
header?: never;
1310+
path?: never;
1311+
cookie?: never;
1312+
};
1313+
get: operations["get_token_info"];
1314+
put?: never;
1315+
post?: never;
1316+
delete?: never;
1317+
options?: never;
1318+
head?: never;
1319+
patch?: never;
1320+
trace?: never;
1321+
};
1322+
"/teams/{team_slug}/usage/record_tokens": {
1323+
parameters: {
1324+
query?: never;
1325+
header?: never;
1326+
path?: never;
1327+
cookie?: never;
1328+
};
1329+
get?: never;
1330+
put?: never;
1331+
post: operations["record_tokens"];
1332+
delete?: never;
1333+
options?: never;
1334+
head?: never;
1335+
patch?: never;
1336+
trace?: never;
1337+
};
13061338
"/update_profile_name": {
13071339
parameters: {
13081340
query?: never;
@@ -1473,6 +1505,7 @@ export interface components {
14731505
projectSlug: components["schemas"]["ProjectSlug"];
14741506
/** Format: int64 */
14751507
projectsRemaining: number;
1508+
teamId: components["schemas"]["TeamId"];
14761509
teamSlug: components["schemas"]["TeamSlug"];
14771510
};
14781511
CreateSubscriptionArgs: {
@@ -1579,6 +1612,12 @@ export interface components {
15791612
/** Format: int64 */
15801613
warningThresholdCents?: number | null;
15811614
};
1615+
GetTokenInfoResponse: {
1616+
/** Format: int64 */
1617+
tokensQuota: number;
1618+
/** Format: int64 */
1619+
tokensUsed: number;
1620+
};
15821621
InstanceAuthForDashboardInteractionsResponse: {
15831622
adminKey: components["schemas"]["SerializedAccessToken"];
15841623
instanceUrl: string;
@@ -1726,6 +1765,10 @@ export interface components {
17261765
ProvisionDeploymentDashboardResponse: {
17271766
deploymentName: string;
17281767
};
1768+
RecordTokensArgs: {
1769+
/** Format: int64 */
1770+
tokens: number;
1771+
};
17291772
ReferralCode: string;
17301773
ReferralState: {
17311774
referrals: components["schemas"]["TeamName"][];
@@ -1805,6 +1848,8 @@ export interface components {
18051848
customDomainsEnabled: boolean;
18061849
logStreamingEnabled: boolean;
18071850
/** Format: int64 */
1851+
maxChefTokens: number;
1852+
/** Format: int64 */
18081853
maxCloudBackups: number;
18091854
/** Format: int64 */
18101855
maxProjects: number;
@@ -1962,6 +2007,7 @@ export type EnvironmentVariableJson = components['schemas']['EnvironmentVariable
19622007
export type GetCurrentSpendResponse = components['schemas']['GetCurrentSpendResponse'];
19632008
export type GetOptInsResponse = components['schemas']['GetOptInsResponse'];
19642009
export type GetSpendingLimitsResponse = components['schemas']['GetSpendingLimitsResponse'];
2010+
export type GetTokenInfoResponse = components['schemas']['GetTokenInfoResponse'];
19652011
export type InstanceAuthForDashboardInteractionsResponse = components['schemas']['InstanceAuthForDashboardInteractionsResponse'];
19662012
export type InstanceName = components['schemas']['InstanceName'];
19672013
export type InvitationResponse = components['schemas']['InvitationResponse'];
@@ -1994,6 +2040,7 @@ export type ProjectSlug = components['schemas']['ProjectSlug'];
19942040
export type ProposedTeamName = components['schemas']['ProposedTeamName'];
19952041
export type ProvisionDeploymentDashboardArgs = components['schemas']['ProvisionDeploymentDashboardArgs'];
19962042
export type ProvisionDeploymentDashboardResponse = components['schemas']['ProvisionDeploymentDashboardResponse'];
2043+
export type RecordTokensArgs = components['schemas']['RecordTokensArgs'];
19972044
export type ReferralCode = components['schemas']['ReferralCode'];
19982045
export type ReferralState = components['schemas']['ReferralState'];
19992046
export type RemoveMemberArgs = components['schemas']['RemoveMemberArgs'];
@@ -3858,6 +3905,52 @@ export interface operations {
38583905
};
38593906
};
38603907
};
3908+
get_token_info: {
3909+
parameters: {
3910+
query?: never;
3911+
header?: never;
3912+
path: {
3913+
team_slug: string;
3914+
};
3915+
cookie?: never;
3916+
};
3917+
requestBody?: never;
3918+
responses: {
3919+
200: {
3920+
headers: {
3921+
[name: string]: unknown;
3922+
};
3923+
content: {
3924+
"application/json": components["schemas"]["GetTokenInfoResponse"];
3925+
};
3926+
};
3927+
};
3928+
};
3929+
record_tokens: {
3930+
parameters: {
3931+
query?: never;
3932+
header?: never;
3933+
path: {
3934+
team_slug: string;
3935+
};
3936+
cookie?: never;
3937+
};
3938+
requestBody: {
3939+
content: {
3940+
"application/json": components["schemas"]["RecordTokensArgs"];
3941+
};
3942+
};
3943+
responses: {
3944+
200: {
3945+
headers: {
3946+
[name: string]: unknown;
3947+
};
3948+
content: {
3949+
"application/json": components["schemas"]["GetTokenInfoResponse"];
3950+
};
3951+
};
3952+
};
3953+
};
38613954
update_profile_name: {
38623955
parameters: {
38633956
query?: never;

0 commit comments

Comments
 (0)