Skip to content

Commit e6a482e

Browse files
atrakhConvex, Inc.
authored andcommitted
Refactor AccessToken to be an enum (#40963)
GitOrigin-RevId: a4927ca5ec29189346cfb11a6de44090cb301f29
1 parent 66f935d commit e6a482e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4773,8 +4773,7 @@
47734773
"accessToken",
47744774
"name",
47754775
"creationTime",
4776-
"serializedAccessToken",
4777-
"creator"
4776+
"serializedAccessToken"
47784777
],
47794778
"properties": {
47804779
"accessToken": {
@@ -4785,7 +4784,14 @@
47854784
"format": "int64"
47864785
},
47874786
"creator": {
4788-
"$ref": "#/components/schemas/MemberId"
4787+
"oneOf": [
4788+
{
4789+
"type": "null"
4790+
},
4791+
{
4792+
"$ref": "#/components/schemas/MemberId"
4793+
}
4794+
]
47894795
},
47904796
"lastUsedTime": {
47914797
"type": [

npm-packages/dashboard/src/generatedApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ export interface components {
20762076
accessToken: string;
20772077
/** Format: int64 */
20782078
creationTime: number;
2079-
creator: components["schemas"]["MemberId"];
2079+
creator?: null | components["schemas"]["MemberId"];
20802080
/** Format: int64 */
20812081
lastUsedTime?: number | null;
20822082
name: components["schemas"]["DeviceName"];

0 commit comments

Comments
 (0)