Skip to content

Commit

Permalink
chore(protobuf): update messages.json
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz authored and mroz22 committed Oct 9, 2024
1 parent 6c4a79b commit 71bbde8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/connect/src/api/resetDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default class ResetDevice extends AbstractMethod<'resetDevice', PROTO.Res
Assert(PROTO.ResetDevice, payload);

this.params = {
display_random: payload.display_random,
strength: payload.strength || 256,
passphrase_protection: payload.passphrase_protection,
pin_protection: payload.pin_protection,
Expand Down
19 changes: 15 additions & 4 deletions packages/protobuf/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"options": {
"syntax": "proto2"
},
"nested": {
"BinanceGetAddress": {
"fields": {
Expand Down Expand Up @@ -2572,6 +2575,10 @@
"pages": {
"type": "uint32",
"id": 2
},
"name": {
"type": "string",
"id": 4
}
},
"nested": {
Expand Down Expand Up @@ -3118,6 +3125,9 @@
"DebugLinkResetDebugEvents": {
"fields": {}
},
"DebugLinkOptigaSetSecMax": {
"fields": {}
},
"EosGetPublicKey": {
"fields": {
"address_n": {
Expand Down Expand Up @@ -4877,10 +4887,6 @@
},
"ResetDevice": {
"fields": {
"display_random": {
"type": "bool",
"id": 1
},
"strength": {
"type": "uint32",
"id": 2,
Expand Down Expand Up @@ -8255,6 +8261,10 @@
"(bitcoin_only)": true,
"(wire_debug_in)": true
},
"MessageType_DebugLinkOptigaSetSecMax": {
"(bitcoin_only)": true,
"(wire_debug_in)": true
},
"MessageType_EthereumGetPublicKey": {
"(wire_in)": true
},
Expand Down Expand Up @@ -8785,6 +8795,7 @@
"MessageType_DebugLinkEraseSdCard": 9005,
"MessageType_DebugLinkWatchLayout": 9006,
"MessageType_DebugLinkResetDebugEvents": 9007,
"MessageType_DebugLinkOptigaSetSecMax": 9008,
"MessageType_EthereumGetPublicKey": 450,
"MessageType_EthereumPublicKey": 451,
"MessageType_EthereumGetAddress": 56,
Expand Down
6 changes: 5 additions & 1 deletion packages/protobuf/src/messages-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,7 @@ export const ButtonRequest = Type.Object(
{
code: Type.Optional(ButtonRequestType),
pages: Type.Optional(Type.Number()),
name: Type.Optional(Type.String()),
},
{ $id: 'ButtonRequest' },
);
Expand Down Expand Up @@ -1583,6 +1584,9 @@ export const EnumDebugPhysicalButton = Type.Enum(DebugPhysicalButton);
export type DebugLinkResetDebugEvents = Static<typeof DebugLinkResetDebugEvents>;
export const DebugLinkResetDebugEvents = Type.Object({}, { $id: 'DebugLinkResetDebugEvents' });

export type DebugLinkOptigaSetSecMax = Static<typeof DebugLinkOptigaSetSecMax>;
export const DebugLinkOptigaSetSecMax = Type.Object({}, { $id: 'DebugLinkOptigaSetSecMax' });

export type EosGetPublicKey = Static<typeof EosGetPublicKey>;
export const EosGetPublicKey = Type.Object(
{
Expand Down Expand Up @@ -2519,7 +2523,6 @@ export const WipeDevice = Type.Object({}, { $id: 'WipeDevice' });
export type ResetDevice = Static<typeof ResetDevice>;
export const ResetDevice = Type.Object(
{
display_random: Type.Optional(Type.Boolean()),
strength: Type.Optional(Type.Number()),
passphrase_protection: Type.Optional(Type.Boolean()),
pin_protection: Type.Optional(Type.Boolean()),
Expand Down Expand Up @@ -3597,6 +3600,7 @@ export const MessageType = Type.Object(
GetECDHSessionKey,
ECDHSessionKey,
DebugLinkResetDebugEvents,
DebugLinkOptigaSetSecMax,
EosGetPublicKey,
EosPublicKey,
EosTxHeader,
Expand Down
7 changes: 6 additions & 1 deletion packages/protobuf/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum DeviceModelInternal {
T1B1 = 'T1B1',
T2T1 = 'T2T1',
T2B1 = 'T2B1',
T3B1 = 'T3B1',
T3T1 = 'T3T1',
}

Expand Down Expand Up @@ -1025,6 +1026,7 @@ export type ButtonRequestType = keyof typeof Enum_ButtonRequestType;
export type ButtonRequest = {
code?: ButtonRequestType;
pages?: number;
name?: string;
};

// ButtonAck
Expand Down Expand Up @@ -1139,6 +1141,9 @@ export enum DebugPhysicalButton {
// DebugLinkResetDebugEvents
export type DebugLinkResetDebugEvents = {};

// DebugLinkOptigaSetSecMax
export type DebugLinkOptigaSetSecMax = {};

// EosGetPublicKey
export type EosGetPublicKey = {
address_n: number[];
Expand Down Expand Up @@ -1793,7 +1798,6 @@ export type WipeDevice = {};

// ResetDevice
export type ResetDevice = {
display_random?: boolean;
strength?: number;
passphrase_protection?: boolean;
pin_protection?: boolean;
Expand Down Expand Up @@ -2578,6 +2582,7 @@ export type MessageType = {
GetECDHSessionKey: GetECDHSessionKey;
ECDHSessionKey: ECDHSessionKey;
DebugLinkResetDebugEvents: DebugLinkResetDebugEvents;
DebugLinkOptigaSetSecMax: DebugLinkOptigaSetSecMax;
EosGetPublicKey: EosGetPublicKey;
EosPublicKey: EosPublicKey;
EosTxHeader: EosTxHeader;
Expand Down

0 comments on commit 71bbde8

Please sign in to comment.