Skip to content

Commit d1a83e8

Browse files
committed
app+proto: run make protos
We also upate sample data to reflect the latest state of the api.
1 parent 7bbf7b5 commit d1a83e8

File tree

7 files changed

+79
-3
lines changed

7 files changed

+79
-3
lines changed

app/src/types/generated/lit-autopilot_pb.d.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/types/generated/lit-autopilot_pb.js

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/types/generated/lit-sessions_pb.d.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/types/generated/lit-sessions_pb.js

Lines changed: 30 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/util/tests/sampleData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ export const litListSessions: LIT.ListSessionsResponse.AsObject = {
971971
},
972972
],
973973
],
974+
featureConfigsMap: [['SampleFeature', '{}']],
974975
},
975976
{
976977
id: '',
@@ -1051,6 +1052,7 @@ export const litListSessions: LIT.ListSessionsResponse.AsObject = {
10511052
},
10521053
],
10531054
],
1055+
featureConfigsMap: [['SampleFeature', '{}']],
10541056
},
10551057
],
10561058
};

proto/lit-autopilot.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ message Feature {
156156
feature rules set contains a rule that Litd is unaware of.
157157
*/
158158
bool requires_upgrade = 5;
159+
160+
/*
161+
The JSON-marshaled representation of a feature's default configuration.
162+
*/
163+
string default_config = 6;
159164
}
160165

161166
message RuleValues {
@@ -191,4 +196,4 @@ message Permissions {
191196
A list of the permissions required for this method.
192197
*/
193198
repeated MacaroonPermission operations = 2;
194-
}
199+
}

proto/lit-sessions.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ message Session {
199199
not revoked. Readers should instead first check the session_state field.
200200
*/
201201
uint64 revoked_at = 16 [jstype = JS_STRING];
202+
203+
/*
204+
Configurations for each individual feature mapping from the feature name to
205+
a JSON-serialized configuration.
206+
*/
207+
map<string, string> feature_configs = 17;
202208
}
203209

204210
message MacaroonRecipe {

0 commit comments

Comments
 (0)