Skip to content

Commit

Permalink
fix(protobuf): ApplySettings.display_rotation allow both enum keys an…
Browse files Browse the repository at this point in the history
…d values
  • Loading branch information
martykan authored and mroz22 committed Nov 28, 2024
1 parent 528f58f commit 12af705
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/protobuf/scripts/protobuf-patches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export const TYPE_PATCH = {
'Features.display_rotation': 'DisplayRotation | null',
'Features.experimental_features': 'boolean | null',
'Features.internal_model': DeviceModelInternal,
'ApplySettings.display_rotation': 'DisplayRotation | Enum_DisplayRotation',
'HDNodePathType.node': 'HDNodeType | string',
'FirmwareUpload.payload': 'Buffer | ArrayBuffer',
'EthereumGetAddress.encoded_network': 'ArrayBuffer',
Expand Down
2 changes: 1 addition & 1 deletion packages/protobuf/src/messages-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2402,7 +2402,7 @@ export const ApplySettings = Type.Object(
homescreen: Type.Optional(Type.String()),
_passphrase_source: Type.Optional(Type.Number()),
auto_lock_delay_ms: Type.Optional(Type.Number()),
display_rotation: Type.Optional(DisplayRotation),
display_rotation: Type.Optional(Type.Union([DisplayRotation, EnumEnum_DisplayRotation])),
passphrase_always_on_device: Type.Optional(Type.Boolean()),
safety_checks: Type.Optional(SafetyCheckLevel),
experimental_features: Type.Optional(Type.Boolean()),
Expand Down
2 changes: 1 addition & 1 deletion packages/protobuf/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ export type ApplySettings = {
homescreen?: string;
_passphrase_source?: number;
auto_lock_delay_ms?: number;
display_rotation?: DisplayRotation;
display_rotation?: DisplayRotation | Enum_DisplayRotation;
passphrase_always_on_device?: boolean;
safety_checks?: SafetyCheckLevel;
experimental_features?: boolean;
Expand Down

0 comments on commit 12af705

Please sign in to comment.