chore(protobuf): update protobuf

This commit is contained in:
Jiri Zbytovsky
2025-09-29 15:51:40 +02:00
committed by Jiri Zbytovsky
parent c9e89fc73b
commit 295afab848
4 changed files with 49 additions and 19 deletions

View File

@@ -2526,18 +2526,14 @@
"TextDetailsMemo": {
"fields": {
"title": {
"rule": "required",
"type": "string",
"id": 1,
"options": {
"default": ""
}
"id": 1
},
"text": {
"rule": "required",
"type": "string",
"id": 2,
"options": {
"default": ""
}
"id": 2
}
}
},
@@ -4565,6 +4561,10 @@
"soc": {
"type": "uint32",
"id": 55
},
"firmware_corrupted": {
"type": "bool",
"id": 56
}
},
"nested": {
@@ -4678,6 +4678,10 @@
"homescreen_length": {
"type": "uint32",
"id": 14
},
"auto_lock_delay_battery_ms": {
"type": "uint32",
"id": 15
}
}
},
@@ -4824,15 +4828,24 @@
},
"AuthenticityProof": {
"fields": {
"certificates": {
"optiga_certificates": {
"rule": "repeated",
"type": "bytes",
"id": 1
},
"signature": {
"optiga_signature": {
"rule": "required",
"type": "bytes",
"id": 2
},
"tropic_certificates": {
"rule": "repeated",
"type": "bytes",
"id": 3
},
"tropic_signature": {
"type": "bytes",
"id": 4
}
}
},
@@ -5980,6 +5993,10 @@
"rule": "required",
"type": "uint32",
"id": 14
},
"payment_req": {
"type": "PaymentRequest",
"id": 15
}
},
"nested": {

View File

@@ -85,8 +85,8 @@ export const CoinPurchaseMemo = Type.Object(
export type TextDetailsMemo = Static<typeof TextDetailsMemo>;
export const TextDetailsMemo = Type.Object(
{
title: Type.Optional(Type.String()),
text: Type.Optional(Type.String()),
title: Type.String(),
text: Type.String(),
},
{ $id: 'TextDetailsMemo' },
);
@@ -2400,6 +2400,7 @@ export const Features = Type.Object(
recovery_type: Type.Optional(RecoveryType),
optiga_sec: Type.Optional(Type.Number()),
soc: Type.Optional(Type.Number()),
firmware_corrupted: Type.Optional(Type.Boolean()),
},
{ $id: 'Features' },
);
@@ -2434,6 +2435,7 @@ export const ApplySettings = Type.Object(
hide_passphrase_from_host: Type.Optional(Type.Boolean()),
haptic_feedback: Type.Optional(Type.Boolean()),
homescreen_length: Type.Optional(Type.Number()),
auto_lock_delay_battery_ms: Type.Optional(Type.Number()),
},
{ $id: 'ApplySettings' },
);
@@ -2560,8 +2562,10 @@ export const AuthenticateDevice = Type.Object(
export type AuthenticityProof = Static<typeof AuthenticityProof>;
export const AuthenticityProof = Type.Object(
{
certificates: Type.Array(Type.String()),
signature: Type.String(),
optiga_certificates: Type.Array(Type.String()),
optiga_signature: Type.String(),
tropic_certificates: Type.Array(Type.String()),
tropic_signature: Type.Optional(Type.String()),
},
{ $id: 'AuthenticityProof' },
);
@@ -3175,6 +3179,7 @@ export const StellarSignTx = Type.Object(
memo_id: Type.Optional(Type.Uint()),
memo_hash: Type.Optional(Type.Union([Type.Buffer(), Type.String()])),
num_operations: Type.Number(),
payment_req: Type.Optional(PaymentRequest),
},
{ $id: 'StellarSignTx' },
);

View File

@@ -63,8 +63,8 @@ export type CoinPurchaseMemo = {
};
export type TextDetailsMemo = {
title?: string;
text?: string;
title: string;
text: string;
};
export type PaymentRequestMemo = {
@@ -1587,6 +1587,7 @@ export type Features = {
recovery_type?: RecoveryType;
optiga_sec?: number;
soc?: number;
firmware_corrupted?: boolean;
};
export type LockDevice = {};
@@ -1611,6 +1612,7 @@ export type ApplySettings = {
hide_passphrase_from_host?: boolean;
haptic_feedback?: boolean;
homescreen_length?: number;
auto_lock_delay_battery_ms?: number;
};
export type ChangeLanguage = {
@@ -1677,8 +1679,10 @@ export type AuthenticateDevice = {
};
export type AuthenticityProof = {
certificates: string[];
signature: string;
optiga_certificates: string[];
optiga_signature: string;
tropic_certificates: string[];
tropic_signature?: string;
};
export type WipeDevice = {};
@@ -2055,6 +2059,7 @@ export type StellarSignTx = {
memo_id?: UintType;
memo_hash?: Buffer | string;
num_operations: number;
payment_req?: PaymentRequest;
};
export type StellarTxOpRequest = {};

View File

@@ -27,7 +27,10 @@ export const getProtobufDefinitions = () => ({
},
},
ThpPairingRequest: {
fields: { host_name: { type: 'string', id: 1 }, app_name: { type: 'string', id: 2 } },
fields: {
host_name: { rule: 'required', type: 'string', id: 1 },
app_name: { rule: 'required', type: 'string', id: 2 },
},
},
ThpPairingRequestApproved: { fields: {} },
ThpSelectMethod: {