@bitboxswiss/bitbox-api 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/index.d.ts +334 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +451 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/internal/connect-simulator.d.ts +2 -0
  6. package/dist/internal/connect-simulator.d.ts.map +1 -0
  7. package/dist/internal/connect-simulator.js +25 -0
  8. package/dist/internal/connect-simulator.js.map +1 -0
  9. package/dist/internal/connect.d.ts +2 -0
  10. package/dist/internal/connect.d.ts.map +1 -0
  11. package/dist/internal/connect.js +54 -0
  12. package/dist/internal/connect.js.map +1 -0
  13. package/dist/internal/constants.d.ts +2 -0
  14. package/dist/internal/constants.d.ts.map +1 -0
  15. package/dist/internal/constants.js +16 -0
  16. package/dist/internal/constants.js.map +1 -0
  17. package/dist/internal/device.d.ts +5 -0
  18. package/dist/internal/device.d.ts.map +1 -0
  19. package/dist/internal/device.js +40 -0
  20. package/dist/internal/device.js.map +1 -0
  21. package/dist/internal/errors.d.ts +2 -0
  22. package/dist/internal/errors.d.ts.map +1 -0
  23. package/dist/internal/errors.js +220 -0
  24. package/dist/internal/errors.js.map +1 -0
  25. package/dist/internal/eth/antiklepto.d.ts +5 -0
  26. package/dist/internal/eth/antiklepto.d.ts.map +1 -0
  27. package/dist/internal/eth/antiklepto.js +59 -0
  28. package/dist/internal/eth/antiklepto.js.map +1 -0
  29. package/dist/internal/eth/eip712.d.ts +25 -0
  30. package/dist/internal/eth/eip712.d.ts.map +1 -0
  31. package/dist/internal/eth/eip712.js +303 -0
  32. package/dist/internal/eth/eip712.js.map +1 -0
  33. package/dist/internal/eth/keypath.d.ts +4 -0
  34. package/dist/internal/eth/keypath.d.ts.map +1 -0
  35. package/dist/internal/eth/keypath.js +47 -0
  36. package/dist/internal/eth/keypath.js.map +1 -0
  37. package/dist/internal/eth/methods.d.ts +10 -0
  38. package/dist/internal/eth/methods.d.ts.map +1 -0
  39. package/dist/internal/eth/methods.js +250 -0
  40. package/dist/internal/eth/methods.js.map +1 -0
  41. package/dist/internal/eth/query.d.ts +7 -0
  42. package/dist/internal/eth/query.d.ts.map +1 -0
  43. package/dist/internal/eth/query.js +43 -0
  44. package/dist/internal/eth/query.js.map +1 -0
  45. package/dist/internal/eth/streaming.d.ts +4 -0
  46. package/dist/internal/eth/streaming.d.ts.map +1 -0
  47. package/dist/internal/eth/streaming.js +21 -0
  48. package/dist/internal/eth/streaming.js.map +1 -0
  49. package/dist/internal/eth/version.d.ts +9 -0
  50. package/dist/internal/eth/version.d.ts.map +1 -0
  51. package/dist/internal/eth/version.js +10 -0
  52. package/dist/internal/eth/version.js.map +1 -0
  53. package/dist/internal/hww.d.ts +2 -0
  54. package/dist/internal/hww.d.ts.map +1 -0
  55. package/dist/internal/hww.js +236 -0
  56. package/dist/internal/hww.js.map +1 -0
  57. package/dist/internal/message-queue.d.ts +2 -0
  58. package/dist/internal/message-queue.d.ts.map +1 -0
  59. package/dist/internal/message-queue.js +29 -0
  60. package/dist/internal/message-queue.js.map +1 -0
  61. package/dist/internal/noise-config.d.ts +2 -0
  62. package/dist/internal/noise-config.d.ts.map +1 -0
  63. package/dist/internal/noise-config.js +160 -0
  64. package/dist/internal/noise-config.js.map +1 -0
  65. package/dist/internal/noise.d.ts +2 -0
  66. package/dist/internal/noise.d.ts.map +1 -0
  67. package/dist/internal/noise.js +270 -0
  68. package/dist/internal/noise.js.map +1 -0
  69. package/dist/internal/pairing.d.ts +2 -0
  70. package/dist/internal/pairing.d.ts.map +1 -0
  71. package/dist/internal/pairing.js +130 -0
  72. package/dist/internal/pairing.js.map +1 -0
  73. package/dist/internal/read-write.d.ts +2 -0
  74. package/dist/internal/read-write.d.ts.map +1 -0
  75. package/dist/internal/read-write.js +40 -0
  76. package/dist/internal/read-write.js.map +1 -0
  77. package/dist/internal/restore.d.ts +3 -0
  78. package/dist/internal/restore.d.ts.map +1 -0
  79. package/dist/internal/restore.js +27 -0
  80. package/dist/internal/restore.js.map +1 -0
  81. package/dist/internal/transport-bridge.d.ts +2 -0
  82. package/dist/internal/transport-bridge.d.ts.map +1 -0
  83. package/dist/internal/transport-bridge.js +97 -0
  84. package/dist/internal/transport-bridge.js.map +1 -0
  85. package/dist/internal/transport-simulator.d.ts +2 -0
  86. package/dist/internal/transport-simulator.d.ts.map +1 -0
  87. package/dist/internal/transport-simulator.js +83 -0
  88. package/dist/internal/transport-simulator.js.map +1 -0
  89. package/dist/internal/transport-webhid.d.ts +2 -0
  90. package/dist/internal/transport-webhid.d.ts.map +1 -0
  91. package/dist/internal/transport-webhid.js +69 -0
  92. package/dist/internal/transport-webhid.js.map +1 -0
  93. package/dist/internal/u2f-framing.d.ts +2 -0
  94. package/dist/internal/u2f-framing.d.ts.map +1 -0
  95. package/dist/internal/u2f-framing.js +155 -0
  96. package/dist/internal/u2f-framing.js.map +1 -0
  97. package/dist/internal/utils.d.ts +2 -0
  98. package/dist/internal/utils.d.ts.map +1 -0
  99. package/dist/internal/utils.js +71 -0
  100. package/dist/internal/utils.js.map +1 -0
  101. package/dist/proto/gen/antiklepto_pb.d.ts +49 -0
  102. package/dist/proto/gen/antiklepto_pb.d.ts.map +1 -0
  103. package/dist/proto/gen/antiklepto_pb.js +22 -0
  104. package/dist/proto/gen/antiklepto_pb.js.map +1 -0
  105. package/dist/proto/gen/backup_commands_pb.d.ts +124 -0
  106. package/dist/proto/gen/backup_commands_pb.d.ts.map +1 -0
  107. package/dist/proto/gen/backup_commands_pb.js +42 -0
  108. package/dist/proto/gen/backup_commands_pb.js.map +1 -0
  109. package/dist/proto/gen/backup_pb.d.ts +150 -0
  110. package/dist/proto/gen/backup_pb.d.ts.map +1 -0
  111. package/dist/proto/gen/backup_pb.js +46 -0
  112. package/dist/proto/gen/backup_pb.js.map +1 -0
  113. package/dist/proto/gen/bitbox02_system_pb.d.ts +207 -0
  114. package/dist/proto/gen/bitbox02_system_pb.d.ts.map +1 -0
  115. package/dist/proto/gen/bitbox02_system_pb.js +80 -0
  116. package/dist/proto/gen/bitbox02_system_pb.js.map +1 -0
  117. package/dist/proto/gen/bluetooth_pb.d.ts +135 -0
  118. package/dist/proto/gen/bluetooth_pb.d.ts.map +1 -0
  119. package/dist/proto/gen/bluetooth_pb.js +42 -0
  120. package/dist/proto/gen/bluetooth_pb.js.map +1 -0
  121. package/dist/proto/gen/btc_pb.d.ts +1166 -0
  122. package/dist/proto/gen/btc_pb.d.ts.map +1 -0
  123. package/dist/proto/gen/btc_pb.js +442 -0
  124. package/dist/proto/gen/btc_pb.js.map +1 -0
  125. package/dist/proto/gen/cardano_pb.d.ts +504 -0
  126. package/dist/proto/gen/cardano_pb.d.ts.map +1 -0
  127. package/dist/proto/gen/cardano_pb.js +142 -0
  128. package/dist/proto/gen/cardano_pb.js.map +1 -0
  129. package/dist/proto/gen/common_pb.d.ts +129 -0
  130. package/dist/proto/gen/common_pb.d.ts.map +1 -0
  131. package/dist/proto/gen/common_pb.js +42 -0
  132. package/dist/proto/gen/common_pb.js.map +1 -0
  133. package/dist/proto/gen/eth_pb.d.ts +662 -0
  134. package/dist/proto/gen/eth_pb.d.ts.map +1 -0
  135. package/dist/proto/gen/eth_pb.js +221 -0
  136. package/dist/proto/gen/eth_pb.js.map +1 -0
  137. package/dist/proto/gen/hww_pb.d.ts +349 -0
  138. package/dist/proto/gen/hww_pb.d.ts.map +1 -0
  139. package/dist/proto/gen/hww_pb.js +38 -0
  140. package/dist/proto/gen/hww_pb.js.map +1 -0
  141. package/dist/proto/gen/keystore_pb.d.ts +108 -0
  142. package/dist/proto/gen/keystore_pb.d.ts.map +1 -0
  143. package/dist/proto/gen/keystore_pb.js +33 -0
  144. package/dist/proto/gen/keystore_pb.js.map +1 -0
  145. package/dist/proto/gen/mnemonic_pb.d.ts +48 -0
  146. package/dist/proto/gen/mnemonic_pb.d.ts.map +1 -0
  147. package/dist/proto/gen/mnemonic_pb.js +22 -0
  148. package/dist/proto/gen/mnemonic_pb.js.map +1 -0
  149. package/dist/proto/gen/perform_attestation_pb.d.ts +57 -0
  150. package/dist/proto/gen/perform_attestation_pb.d.ts.map +1 -0
  151. package/dist/proto/gen/perform_attestation_pb.js +17 -0
  152. package/dist/proto/gen/perform_attestation_pb.js.map +1 -0
  153. package/dist/proto/gen/system_pb.d.ts +38 -0
  154. package/dist/proto/gen/system_pb.d.ts.map +1 -0
  155. package/dist/proto/gen/system_pb.js +30 -0
  156. package/dist/proto/gen/system_pb.js.map +1 -0
  157. package/package.json +2 -1
@@ -0,0 +1,108 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Empty } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file keystore.proto.
6
+ */
7
+ export declare const file_keystore: GenFile;
8
+ /**
9
+ * @generated from message shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest
10
+ */
11
+ export type ElectrumEncryptionKeyRequest = Message<"shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest"> & {
12
+ /**
13
+ * @generated from field: repeated uint32 keypath = 1;
14
+ */
15
+ keypath: number[];
16
+ };
17
+ /**
18
+ * Describes the message shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest.
19
+ * Use `create(ElectrumEncryptionKeyRequestSchema)` to create a new message.
20
+ */
21
+ export declare const ElectrumEncryptionKeyRequestSchema: GenMessage<ElectrumEncryptionKeyRequest>;
22
+ /**
23
+ * @generated from message shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse
24
+ */
25
+ export type ElectrumEncryptionKeyResponse = Message<"shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse"> & {
26
+ /**
27
+ * @generated from field: string key = 1;
28
+ */
29
+ key: string;
30
+ };
31
+ /**
32
+ * Describes the message shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse.
33
+ * Use `create(ElectrumEncryptionKeyResponseSchema)` to create a new message.
34
+ */
35
+ export declare const ElectrumEncryptionKeyResponseSchema: GenMessage<ElectrumEncryptionKeyResponse>;
36
+ /**
37
+ * @generated from message shiftcrypto.bitbox02.BIP85Request
38
+ */
39
+ export type BIP85Request = Message<"shiftcrypto.bitbox02.BIP85Request"> & {
40
+ /**
41
+ * @generated from oneof shiftcrypto.bitbox02.BIP85Request.app
42
+ */
43
+ app: {
44
+ /**
45
+ * @generated from field: google.protobuf.Empty bip39 = 1;
46
+ */
47
+ value: Empty;
48
+ case: "bip39";
49
+ } | {
50
+ /**
51
+ * @generated from field: shiftcrypto.bitbox02.BIP85Request.AppLn ln = 2;
52
+ */
53
+ value: BIP85Request_AppLn;
54
+ case: "ln";
55
+ } | {
56
+ case: undefined;
57
+ value?: undefined;
58
+ };
59
+ };
60
+ /**
61
+ * Describes the message shiftcrypto.bitbox02.BIP85Request.
62
+ * Use `create(BIP85RequestSchema)` to create a new message.
63
+ */
64
+ export declare const BIP85RequestSchema: GenMessage<BIP85Request>;
65
+ /**
66
+ * @generated from message shiftcrypto.bitbox02.BIP85Request.AppLn
67
+ */
68
+ export type BIP85Request_AppLn = Message<"shiftcrypto.bitbox02.BIP85Request.AppLn"> & {
69
+ /**
70
+ * @generated from field: uint32 account_number = 1;
71
+ */
72
+ accountNumber: number;
73
+ };
74
+ /**
75
+ * Describes the message shiftcrypto.bitbox02.BIP85Request.AppLn.
76
+ * Use `create(BIP85Request_AppLnSchema)` to create a new message.
77
+ */
78
+ export declare const BIP85Request_AppLnSchema: GenMessage<BIP85Request_AppLn>;
79
+ /**
80
+ * @generated from message shiftcrypto.bitbox02.BIP85Response
81
+ */
82
+ export type BIP85Response = Message<"shiftcrypto.bitbox02.BIP85Response"> & {
83
+ /**
84
+ * @generated from oneof shiftcrypto.bitbox02.BIP85Response.app
85
+ */
86
+ app: {
87
+ /**
88
+ * @generated from field: google.protobuf.Empty bip39 = 1;
89
+ */
90
+ value: Empty;
91
+ case: "bip39";
92
+ } | {
93
+ /**
94
+ * @generated from field: bytes ln = 2;
95
+ */
96
+ value: Uint8Array;
97
+ case: "ln";
98
+ } | {
99
+ case: undefined;
100
+ value?: undefined;
101
+ };
102
+ };
103
+ /**
104
+ * Describes the message shiftcrypto.bitbox02.BIP85Response.
105
+ * Use `create(BIP85ResponseSchema)` to create a new message.
106
+ */
107
+ export declare const BIP85ResponseSchema: GenMessage<BIP85Response>;
108
+ //# sourceMappingURL=keystore_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keystore_pb.d.ts","sourceRoot":"","sources":["../../../src/proto/gen/keystore_pb.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,OACmgB,CAAC;AAEhiB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,mDAAmD,CAAC,GAAG;IACxG;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,UAAU,CAAC,4BAA4B,CACzD,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC,oDAAoD,CAAC,GAAG;IAC1G;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,EAAE,UAAU,CAAC,6BAA6B,CAC3D,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,mCAAmC,CAAC,GAAG;IACxE;;OAEG;IACH,GAAG,EAAE;QACH;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,OAAO,CAAC;KACf,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,kBAAkB,CAAC;QAC1B,IAAI,EAAE,IAAI,CAAC;KACZ,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,YAAY,CACzB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IACpF;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,kBAAkB,CAClC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IAC1E;;OAEG;IACH,GAAG,EAAE;QACH;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,OAAO,CAAC;KACf,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC;KACZ,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CAC3B,CAAC"}
@@ -0,0 +1,33 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
3
+ import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
4
+ /**
5
+ * Describes the file keystore.proto.
6
+ */
7
+ export const file_keystore = /*@__PURE__*/ fileDesc("Cg5rZXlzdG9yZS5wcm90bxIUc2hpZnRjcnlwdG8uYml0Ym94MDIiLwocRWxlY3RydW1FbmNyeXB0aW9uS2V5UmVxdWVzdBIPCgdrZXlwYXRoGAEgAygNIiwKHUVsZWN0cnVtRW5jcnlwdGlvbktleVJlc3BvbnNlEgsKA2tleRgBIAEoCSKXAQoMQklQODVSZXF1ZXN0EicKBWJpcDM5GAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASNgoCbG4YAiABKAsyKC5zaGlmdGNyeXB0by5iaXRib3gwMi5CSVA4NVJlcXVlc3QuQXBwTG5IABofCgVBcHBMbhIWCg5hY2NvdW50X251bWJlchgBIAEoDUIFCgNhcHAiTQoNQklQODVSZXNwb25zZRInCgViaXAzORgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEgwKAmxuGAIgASgMSABCBQoDYXBwYgZwcm90bzM", [file_google_protobuf_empty]);
8
+ /**
9
+ * Describes the message shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest.
10
+ * Use `create(ElectrumEncryptionKeyRequestSchema)` to create a new message.
11
+ */
12
+ export const ElectrumEncryptionKeyRequestSchema = /*@__PURE__*/ messageDesc(file_keystore, 0);
13
+ /**
14
+ * Describes the message shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse.
15
+ * Use `create(ElectrumEncryptionKeyResponseSchema)` to create a new message.
16
+ */
17
+ export const ElectrumEncryptionKeyResponseSchema = /*@__PURE__*/ messageDesc(file_keystore, 1);
18
+ /**
19
+ * Describes the message shiftcrypto.bitbox02.BIP85Request.
20
+ * Use `create(BIP85RequestSchema)` to create a new message.
21
+ */
22
+ export const BIP85RequestSchema = /*@__PURE__*/ messageDesc(file_keystore, 2);
23
+ /**
24
+ * Describes the message shiftcrypto.bitbox02.BIP85Request.AppLn.
25
+ * Use `create(BIP85Request_AppLnSchema)` to create a new message.
26
+ */
27
+ export const BIP85Request_AppLnSchema = /*@__PURE__*/ messageDesc(file_keystore, 2, 0);
28
+ /**
29
+ * Describes the message shiftcrypto.bitbox02.BIP85Response.
30
+ * Use `create(BIP85ResponseSchema)` to create a new message.
31
+ */
32
+ export const BIP85ResponseSchema = /*@__PURE__*/ messageDesc(file_keystore, 3);
33
+ //# sourceMappingURL=keystore_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keystore_pb.js","sourceRoot":"","sources":["../../../src/proto/gen/keystore_pb.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAUtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY,aAAa,CACjD,QAAQ,CAAC,qfAAqf,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAYhiB;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA6C,aAAa,CACvG,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAYhC;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA8C,aAAa,CACzG,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAwBhC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAYhC;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAwBnC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mnemonic.proto.
5
+ */
6
+ export declare const file_mnemonic: GenFile;
7
+ /**
8
+ * @generated from message shiftcrypto.bitbox02.ShowMnemonicRequest
9
+ */
10
+ export type ShowMnemonicRequest = Message<"shiftcrypto.bitbox02.ShowMnemonicRequest"> & {};
11
+ /**
12
+ * Describes the message shiftcrypto.bitbox02.ShowMnemonicRequest.
13
+ * Use `create(ShowMnemonicRequestSchema)` to create a new message.
14
+ */
15
+ export declare const ShowMnemonicRequestSchema: GenMessage<ShowMnemonicRequest>;
16
+ /**
17
+ * @generated from message shiftcrypto.bitbox02.RestoreFromMnemonicRequest
18
+ */
19
+ export type RestoreFromMnemonicRequest = Message<"shiftcrypto.bitbox02.RestoreFromMnemonicRequest"> & {
20
+ /**
21
+ * @generated from field: uint32 timestamp = 1;
22
+ */
23
+ timestamp: number;
24
+ /**
25
+ * @generated from field: int32 timezone_offset = 2;
26
+ */
27
+ timezoneOffset: number;
28
+ };
29
+ /**
30
+ * Describes the message shiftcrypto.bitbox02.RestoreFromMnemonicRequest.
31
+ * Use `create(RestoreFromMnemonicRequestSchema)` to create a new message.
32
+ */
33
+ export declare const RestoreFromMnemonicRequestSchema: GenMessage<RestoreFromMnemonicRequest>;
34
+ /**
35
+ * @generated from message shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest
36
+ */
37
+ export type SetMnemonicPassphraseEnabledRequest = Message<"shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest"> & {
38
+ /**
39
+ * @generated from field: bool enabled = 1;
40
+ */
41
+ enabled: boolean;
42
+ };
43
+ /**
44
+ * Describes the message shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest.
45
+ * Use `create(SetMnemonicPassphraseEnabledRequestSchema)` to create a new message.
46
+ */
47
+ export declare const SetMnemonicPassphraseEnabledRequestSchema: GenMessage<SetMnemonicPassphraseEnabledRequest>;
48
+ //# sourceMappingURL=mnemonic_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mnemonic_pb.d.ts","sourceRoot":"","sources":["../../../src/proto/gen/mnemonic_pb.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,OAC4P,CAAC;AAEzR;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,0CAA0C,CAAC,GAAG,EACvF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,mBAAmB,CACvC,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,iDAAiD,CAAC,GAAG;IACpG;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,0BAA0B,CACrD,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,OAAO,CAAC,0DAA0D,CAAC,GAAG;IACtH;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yCAAyC,EAAE,UAAU,CAAC,mCAAmC,CACvE,CAAC"}
@@ -0,0 +1,22 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
3
+ /**
4
+ * Describes the file mnemonic.proto.
5
+ */
6
+ export const file_mnemonic = /*@__PURE__*/ fileDesc("Cg5tbmVtb25pYy5wcm90bxIUc2hpZnRjcnlwdG8uYml0Ym94MDIiFQoTU2hvd01uZW1vbmljUmVxdWVzdCJIChpSZXN0b3JlRnJvbU1uZW1vbmljUmVxdWVzdBIRCgl0aW1lc3RhbXAYASABKA0SFwoPdGltZXpvbmVfb2Zmc2V0GAIgASgFIjYKI1NldE1uZW1vbmljUGFzc3BocmFzZUVuYWJsZWRSZXF1ZXN0Eg8KB2VuYWJsZWQYASABKAhiBnByb3RvMw");
7
+ /**
8
+ * Describes the message shiftcrypto.bitbox02.ShowMnemonicRequest.
9
+ * Use `create(ShowMnemonicRequestSchema)` to create a new message.
10
+ */
11
+ export const ShowMnemonicRequestSchema = /*@__PURE__*/ messageDesc(file_mnemonic, 0);
12
+ /**
13
+ * Describes the message shiftcrypto.bitbox02.RestoreFromMnemonicRequest.
14
+ * Use `create(RestoreFromMnemonicRequestSchema)` to create a new message.
15
+ */
16
+ export const RestoreFromMnemonicRequestSchema = /*@__PURE__*/ messageDesc(file_mnemonic, 1);
17
+ /**
18
+ * Describes the message shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest.
19
+ * Use `create(SetMnemonicPassphraseEnabledRequestSchema)` to create a new message.
20
+ */
21
+ export const SetMnemonicPassphraseEnabledRequestSchema = /*@__PURE__*/ messageDesc(file_mnemonic, 2);
22
+ //# sourceMappingURL=mnemonic_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mnemonic_pb.js","sourceRoot":"","sources":["../../../src/proto/gen/mnemonic_pb.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAOtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY,aAAa,CACjD,QAAQ,CAAC,4QAA4Q,CAAC,CAAC;AAQzR;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAiBhC;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA2C,aAAa,CACnG,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAYhC;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAoD,aAAa,CACrH,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file perform_attestation.proto.
5
+ */
6
+ export declare const file_perform_attestation: GenFile;
7
+ /**
8
+ * Deprecated, last used in v1.0.0
9
+ *
10
+ * @generated from message shiftcrypto.bitbox02.PerformAttestationRequest
11
+ */
12
+ export type PerformAttestationRequest = Message<"shiftcrypto.bitbox02.PerformAttestationRequest"> & {
13
+ /**
14
+ * 32 bytes challenge.
15
+ *
16
+ * @generated from field: bytes challenge = 1;
17
+ */
18
+ challenge: Uint8Array;
19
+ };
20
+ /**
21
+ * Describes the message shiftcrypto.bitbox02.PerformAttestationRequest.
22
+ * Use `create(PerformAttestationRequestSchema)` to create a new message.
23
+ */
24
+ export declare const PerformAttestationRequestSchema: GenMessage<PerformAttestationRequest>;
25
+ /**
26
+ * Deprecated, last used in v1.0.0
27
+ *
28
+ * @generated from message shiftcrypto.bitbox02.PerformAttestationResponse
29
+ */
30
+ export type PerformAttestationResponse = Message<"shiftcrypto.bitbox02.PerformAttestationResponse"> & {
31
+ /**
32
+ * @generated from field: bytes bootloader_hash = 1;
33
+ */
34
+ bootloaderHash: Uint8Array;
35
+ /**
36
+ * @generated from field: bytes device_pubkey = 2;
37
+ */
38
+ devicePubkey: Uint8Array;
39
+ /**
40
+ * @generated from field: bytes certificate = 3;
41
+ */
42
+ certificate: Uint8Array;
43
+ /**
44
+ * @generated from field: bytes root_pubkey_identifier = 4;
45
+ */
46
+ rootPubkeyIdentifier: Uint8Array;
47
+ /**
48
+ * @generated from field: bytes challenge_signature = 5;
49
+ */
50
+ challengeSignature: Uint8Array;
51
+ };
52
+ /**
53
+ * Describes the message shiftcrypto.bitbox02.PerformAttestationResponse.
54
+ * Use `create(PerformAttestationResponseSchema)` to create a new message.
55
+ */
56
+ export declare const PerformAttestationResponseSchema: GenMessage<PerformAttestationResponse>;
57
+ //# sourceMappingURL=perform_attestation_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perform_attestation_pb.d.ts","sourceRoot":"","sources":["../../../src/proto/gen/perform_attestation_pb.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,OAC0U,CAAC;AAElX;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,gDAAgD,CAAC,GAAG;IAClG;;;;OAIG;IACH,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,yBAAyB,CACxC,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,iDAAiD,CAAC,GAAG;IACpG;;OAEG;IACH,cAAc,EAAE,UAAU,CAAC;IAE3B;;OAEG;IACH,YAAY,EAAE,UAAU,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,oBAAoB,EAAE,UAAU,CAAC;IAEjC;;OAEG;IACH,kBAAkB,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,0BAA0B,CAC1C,CAAC"}
@@ -0,0 +1,17 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
3
+ /**
4
+ * Describes the file perform_attestation.proto.
5
+ */
6
+ export const file_perform_attestation = /*@__PURE__*/ fileDesc("ChlwZXJmb3JtX2F0dGVzdGF0aW9uLnByb3RvEhRzaGlmdGNyeXB0by5iaXRib3gwMiIuChlQZXJmb3JtQXR0ZXN0YXRpb25SZXF1ZXN0EhEKCWNoYWxsZW5nZRgBIAEoDCKeAQoaUGVyZm9ybUF0dGVzdGF0aW9uUmVzcG9uc2USFwoPYm9vdGxvYWRlcl9oYXNoGAEgASgMEhUKDWRldmljZV9wdWJrZXkYAiABKAwSEwoLY2VydGlmaWNhdGUYAyABKAwSHgoWcm9vdF9wdWJrZXlfaWRlbnRpZmllchgEIAEoDBIbChNjaGFsbGVuZ2Vfc2lnbmF0dXJlGAUgASgMYgZwcm90bzM");
7
+ /**
8
+ * Describes the message shiftcrypto.bitbox02.PerformAttestationRequest.
9
+ * Use `create(PerformAttestationRequestSchema)` to create a new message.
10
+ */
11
+ export const PerformAttestationRequestSchema = /*@__PURE__*/ messageDesc(file_perform_attestation, 0);
12
+ /**
13
+ * Describes the message shiftcrypto.bitbox02.PerformAttestationResponse.
14
+ * Use `create(PerformAttestationResponseSchema)` to create a new message.
15
+ */
16
+ export const PerformAttestationResponseSchema = /*@__PURE__*/ messageDesc(file_perform_attestation, 1);
17
+ //# sourceMappingURL=perform_attestation_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perform_attestation_pb.js","sourceRoot":"","sources":["../../../src/proto/gen/perform_attestation_pb.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAOtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAY,aAAa,CAC5D,QAAQ,CAAC,qWAAqW,CAAC,CAAC;AAgBlX;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0C,aAAa,CACjG,WAAW,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;AAkC3C;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA2C,aAAa,CACnG,WAAW,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file system.proto.
5
+ */
6
+ export declare const file_system: GenFile;
7
+ /**
8
+ * @generated from message shiftcrypto.bitbox02.RebootRequest
9
+ */
10
+ export type RebootRequest = Message<"shiftcrypto.bitbox02.RebootRequest"> & {
11
+ /**
12
+ * @generated from field: shiftcrypto.bitbox02.RebootRequest.Purpose purpose = 1;
13
+ */
14
+ purpose: RebootRequest_Purpose;
15
+ };
16
+ /**
17
+ * Describes the message shiftcrypto.bitbox02.RebootRequest.
18
+ * Use `create(RebootRequestSchema)` to create a new message.
19
+ */
20
+ export declare const RebootRequestSchema: GenMessage<RebootRequest>;
21
+ /**
22
+ * @generated from enum shiftcrypto.bitbox02.RebootRequest.Purpose
23
+ */
24
+ export declare enum RebootRequest_Purpose {
25
+ /**
26
+ * @generated from enum value: UPGRADE = 0;
27
+ */
28
+ UPGRADE = 0,
29
+ /**
30
+ * @generated from enum value: SETTINGS = 1;
31
+ */
32
+ SETTINGS = 1
33
+ }
34
+ /**
35
+ * Describes the enum shiftcrypto.bitbox02.RebootRequest.Purpose.
36
+ */
37
+ export declare const RebootRequest_PurposeSchema: GenEnum<RebootRequest_Purpose>;
38
+ //# sourceMappingURL=system_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system_pb.d.ts","sourceRoot":"","sources":["../../../src/proto/gen/system_pb.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAC2M,CAAC;AAEtO;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IAC1E;;OAEG;IACH,OAAO,EAAE,qBAAqB,CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CAC7B,CAAC;AAE9B;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,QAAQ,IAAI;CACb;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAAO,CAAC,qBAAqB,CAC1C,CAAC"}
@@ -0,0 +1,30 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
3
+ /**
4
+ * Describes the file system.proto.
5
+ */
6
+ export const file_system = /*@__PURE__*/ fileDesc("CgxzeXN0ZW0ucHJvdG8SFHNoaWZ0Y3J5cHRvLmJpdGJveDAyInMKDVJlYm9vdFJlcXVlc3QSPAoHcHVycG9zZRgBIAEoDjIrLnNoaWZ0Y3J5cHRvLmJpdGJveDAyLlJlYm9vdFJlcXVlc3QuUHVycG9zZSIkCgdQdXJwb3NlEgsKB1VQR1JBREUQABIMCghTRVRUSU5HUxABYgZwcm90bzM");
7
+ /**
8
+ * Describes the message shiftcrypto.bitbox02.RebootRequest.
9
+ * Use `create(RebootRequestSchema)` to create a new message.
10
+ */
11
+ export const RebootRequestSchema = /*@__PURE__*/ messageDesc(file_system, 0);
12
+ /**
13
+ * @generated from enum shiftcrypto.bitbox02.RebootRequest.Purpose
14
+ */
15
+ export var RebootRequest_Purpose;
16
+ (function (RebootRequest_Purpose) {
17
+ /**
18
+ * @generated from enum value: UPGRADE = 0;
19
+ */
20
+ RebootRequest_Purpose[RebootRequest_Purpose["UPGRADE"] = 0] = "UPGRADE";
21
+ /**
22
+ * @generated from enum value: SETTINGS = 1;
23
+ */
24
+ RebootRequest_Purpose[RebootRequest_Purpose["SETTINGS"] = 1] = "SETTINGS";
25
+ })(RebootRequest_Purpose || (RebootRequest_Purpose = {}));
26
+ /**
27
+ * Describes the enum shiftcrypto.bitbox02.RebootRequest.Purpose.
28
+ */
29
+ export const RebootRequest_PurposeSchema = /*@__PURE__*/ enumDesc(file_system, 0, 0);
30
+ //# sourceMappingURL=system_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system_pb.js","sourceRoot":"","sources":["../../../src/proto/gen/system_pb.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAOtC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG/E;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAY,aAAa,CAC/C,QAAQ,CAAC,yNAAyN,CAAC,CAAC;AAYtO;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AAE9B;;GAEG;AACH,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B;;OAEG;IACH,uEAAW,CAAA;IAEX;;OAEG;IACH,yEAAY,CAAA;AACd,CAAC,EAVW,qBAAqB,KAArB,qBAAqB,QAUhC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAmC,aAAa,CACtF,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitboxswiss/bitbox-api",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A pure TypeScript library to interact with BitBox hardware wallets.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -23,6 +23,7 @@
23
23
  "node": ">=20"
24
24
  },
25
25
  "scripts": {
26
+ "prepack": "npm run build",
26
27
  "build": "rm -rf dist && tsc -p tsconfig.build.json",
27
28
  "typecheck": "tsc --noEmit",
28
29
  "lint": "eslint .",