@metamask-previews/keyring-utils 3.1.0-e017e7a → 3.1.0-fc46964
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.
- package/dist/hardware-error-codes.cjs +80 -0
- package/dist/hardware-error-codes.cjs.map +1 -0
- package/dist/hardware-error-codes.d.cts +64 -0
- package/dist/hardware-error-codes.d.cts.map +1 -0
- package/dist/hardware-error-codes.d.mts +64 -0
- package/dist/hardware-error-codes.d.mts.map +1 -0
- package/dist/hardware-error-codes.mjs +76 -0
- package/dist/hardware-error-codes.mjs.map +1 -0
- package/dist/hardware-error-mappings.cjs +815 -0
- package/dist/hardware-error-mappings.cjs.map +1 -0
- package/dist/hardware-error-mappings.d.cts +791 -0
- package/dist/hardware-error-mappings.d.cts.map +1 -0
- package/dist/hardware-error-mappings.d.mts +791 -0
- package/dist/hardware-error-mappings.d.mts.map +1 -0
- package/dist/hardware-error-mappings.mjs +812 -0
- package/dist/hardware-error-mappings.mjs.map +1 -0
- package/dist/hardware-error.cjs +191 -0
- package/dist/hardware-error.cjs.map +1 -0
- package/dist/hardware-error.d.cts +86 -0
- package/dist/hardware-error.d.cts.map +1 -0
- package/dist/hardware-error.d.mts +86 -0
- package/dist/hardware-error.d.mts.map +1 -0
- package/dist/hardware-error.mjs +187 -0
- package/dist/hardware-error.mjs.map +1 -0
- package/dist/hardware-errors-enums.cjs +115 -0
- package/dist/hardware-errors-enums.cjs.map +1 -0
- package/dist/hardware-errors-enums.d.cts +91 -0
- package/dist/hardware-errors-enums.d.cts.map +1 -0
- package/dist/hardware-errors-enums.d.mts +91 -0
- package/dist/hardware-errors-enums.d.mts.map +1 -0
- package/dist/hardware-errors-enums.mjs +112 -0
- package/dist/hardware-errors-enums.mjs.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROTO_CMD_001 = exports.SYS_FIRMWARE_002 = exports.SYS_FIRMWARE_001 = exports.SYS_LICENSE_001 = exports.SYS_FILE_002 = exports.SYS_FILE_001 = exports.SYS_MEMORY_002 = exports.SYS_MEMORY_001 = exports.SYS_INTERNAL_001 = exports.CRYPTO_ENTROPY_001 = exports.CRYPTO_KEY_001 = exports.CRYPTO_ALGO_001 = exports.CRYPTO_SIGN_001 = exports.DATA_NOTFOUND_003 = exports.DATA_NOTFOUND_002 = exports.DATA_NOTFOUND_001 = exports.DATA_VALIDATION_002 = exports.DATA_VALIDATION_001 = exports.DATA_MISSING_001 = exports.DATA_FORMAT_003 = exports.DATA_FORMAT_002 = exports.DATA_FORMAT_001 = exports.CONN_BLOCKED_001 = exports.CONN_TIMEOUT_001 = exports.CONN_SUITE_001 = exports.CONN_IFRAME_001 = exports.CONN_CLOSED_001 = exports.CONN_TRANSPORT_001 = exports.DEVICE_MODE_001 = exports.DEVICE_CAP_002 = exports.DEVICE_CAP_001 = exports.DEVICE_DETECT_001 = exports.DEVICE_STATE_005 = exports.DEVICE_STATE_004 = exports.DEVICE_STATE_003 = exports.DEVICE_STATE_002 = exports.DEVICE_STATE_001 = exports.USER_CONFIRM_001 = exports.USER_INPUT_001 = exports.USER_CANCEL_002 = exports.USER_CANCEL_001 = exports.AUTH_WIPE_001 = exports.AUTH_SEC_002 = exports.AUTH_SEC_001 = exports.AUTH_LOCK_002 = exports.AUTH_LOCK_001 = exports.AUTH_PIN_004 = exports.AUTH_PIN_003 = exports.AUTH_PIN_002 = exports.AUTH_PIN_001 = void 0;
|
|
4
|
+
exports.UNKNOWN_001 = exports.SUCCESS_000 = exports.TX_FAIL_001 = exports.TX_FUNDS_001 = exports.CONFIG_METHOD_001 = exports.CONFIG_PERM_001 = exports.CONFIG_INIT_003 = exports.CONFIG_INIT_002 = exports.CONFIG_INIT_001 = exports.PROTO_PARAM_001 = exports.PROTO_MSG_001 = exports.PROTO_CMD_003 = exports.PROTO_CMD_002 = void 0;
|
|
5
|
+
// Authentication & Security
|
|
6
|
+
exports.AUTH_PIN_001 = 'PIN invalid';
|
|
7
|
+
exports.AUTH_PIN_002 = 'PIN cancelled by user';
|
|
8
|
+
exports.AUTH_PIN_003 = 'PIN attempts remaining';
|
|
9
|
+
exports.AUTH_PIN_004 = 'PIN mismatch';
|
|
10
|
+
exports.AUTH_LOCK_001 = 'Device is locked';
|
|
11
|
+
exports.AUTH_LOCK_002 = 'Device blocked due to failed attempts';
|
|
12
|
+
exports.AUTH_SEC_001 = 'Security conditions not satisfied';
|
|
13
|
+
exports.AUTH_SEC_002 = 'Access rights insufficient';
|
|
14
|
+
exports.AUTH_WIPE_001 = 'Wipe code mismatch';
|
|
15
|
+
// User Action
|
|
16
|
+
exports.USER_CANCEL_001 = 'User rejected action on device';
|
|
17
|
+
exports.USER_CANCEL_002 = 'User cancelled operation';
|
|
18
|
+
exports.USER_INPUT_001 = 'User input expected';
|
|
19
|
+
exports.USER_CONFIRM_001 = 'User confirmation required';
|
|
20
|
+
// Device State
|
|
21
|
+
exports.DEVICE_STATE_001 = 'Device not initialized';
|
|
22
|
+
exports.DEVICE_STATE_002 = 'Device busy';
|
|
23
|
+
exports.DEVICE_STATE_003 = 'Device disconnected';
|
|
24
|
+
exports.DEVICE_STATE_004 = 'Device used elsewhere';
|
|
25
|
+
exports.DEVICE_STATE_005 = 'Device call in progress';
|
|
26
|
+
exports.DEVICE_DETECT_001 = 'Device not found';
|
|
27
|
+
exports.DEVICE_CAP_001 = 'Device missing required capability';
|
|
28
|
+
exports.DEVICE_CAP_002 = 'Device is BTC-only, operation not supported';
|
|
29
|
+
exports.DEVICE_MODE_001 = 'Invalid device mode';
|
|
30
|
+
// Connection & Transport
|
|
31
|
+
exports.CONN_TRANSPORT_001 = 'Transport layer missing';
|
|
32
|
+
exports.CONN_CLOSED_001 = 'Connection closed unexpectedly';
|
|
33
|
+
exports.CONN_IFRAME_001 = 'Unable to establish iframe connection';
|
|
34
|
+
exports.CONN_SUITE_001 = 'Unable to connect to Suite';
|
|
35
|
+
exports.CONN_TIMEOUT_001 = 'Connection timeout';
|
|
36
|
+
exports.CONN_BLOCKED_001 = 'Connection blocked';
|
|
37
|
+
// Data & Validation
|
|
38
|
+
exports.DATA_FORMAT_001 = 'Incorrect data length';
|
|
39
|
+
exports.DATA_FORMAT_002 = 'Invalid data received';
|
|
40
|
+
exports.DATA_FORMAT_003 = 'Invalid parameter';
|
|
41
|
+
exports.DATA_MISSING_001 = 'Missing critical parameter';
|
|
42
|
+
exports.DATA_VALIDATION_001 = 'Address mismatch';
|
|
43
|
+
exports.DATA_VALIDATION_002 = 'Invalid signature';
|
|
44
|
+
exports.DATA_NOTFOUND_001 = 'Referenced data not found';
|
|
45
|
+
exports.DATA_NOTFOUND_002 = 'File not found';
|
|
46
|
+
exports.DATA_NOTFOUND_003 = 'Coin not found';
|
|
47
|
+
// Cryptographic Operations
|
|
48
|
+
exports.CRYPTO_SIGN_001 = 'Signature operation failed';
|
|
49
|
+
exports.CRYPTO_ALGO_001 = 'Algorithm not supported';
|
|
50
|
+
exports.CRYPTO_KEY_001 = 'Invalid key check value';
|
|
51
|
+
exports.CRYPTO_ENTROPY_001 = 'Entropy check failed';
|
|
52
|
+
// System & Internal
|
|
53
|
+
exports.SYS_INTERNAL_001 = 'Internal device error';
|
|
54
|
+
exports.SYS_MEMORY_001 = 'Not enough memory';
|
|
55
|
+
exports.SYS_MEMORY_002 = 'Memory problem';
|
|
56
|
+
exports.SYS_FILE_001 = 'File system error';
|
|
57
|
+
exports.SYS_FILE_002 = 'Inconsistent file';
|
|
58
|
+
exports.SYS_LICENSE_001 = 'Licensing error';
|
|
59
|
+
exports.SYS_FIRMWARE_001 = 'Firmware error';
|
|
60
|
+
exports.SYS_FIRMWARE_002 = 'Firmware installation failed';
|
|
61
|
+
// Command & Protocol
|
|
62
|
+
exports.PROTO_CMD_001 = 'Command not supported';
|
|
63
|
+
exports.PROTO_CMD_002 = 'Command incompatible';
|
|
64
|
+
exports.PROTO_CMD_003 = 'Unexpected message';
|
|
65
|
+
exports.PROTO_MSG_001 = 'Invalid APDU command';
|
|
66
|
+
exports.PROTO_PARAM_001 = 'Invalid command parameters';
|
|
67
|
+
// Configuration & Initialization
|
|
68
|
+
exports.CONFIG_INIT_001 = 'Not initialized';
|
|
69
|
+
exports.CONFIG_INIT_002 = 'Already initialized';
|
|
70
|
+
exports.CONFIG_INIT_003 = 'Manifest missing';
|
|
71
|
+
exports.CONFIG_PERM_001 = 'Permissions not granted';
|
|
72
|
+
exports.CONFIG_METHOD_001 = 'Method not allowed';
|
|
73
|
+
// Transaction
|
|
74
|
+
exports.TX_FUNDS_001 = 'Insufficient funds';
|
|
75
|
+
exports.TX_FAIL_001 = 'Transaction failed';
|
|
76
|
+
// Success
|
|
77
|
+
exports.SUCCESS_000 = 'Operation successful';
|
|
78
|
+
// Unknown/Fallback
|
|
79
|
+
exports.UNKNOWN_001 = 'Unknown error';
|
|
80
|
+
//# sourceMappingURL=hardware-error-codes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardware-error-codes.cjs","sourceRoot":"","sources":["../src/hardware-error-codes.ts"],"names":[],"mappings":";;;;AAAA,4BAA4B;AACf,QAAA,YAAY,GAAG,aAAa,CAAC;AAC7B,QAAA,YAAY,GAAG,uBAAuB,CAAC;AACvC,QAAA,YAAY,GAAG,wBAAwB,CAAC;AACxC,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,aAAa,GAAG,kBAAkB,CAAC;AACnC,QAAA,aAAa,GAAG,uCAAuC,CAAC;AACxD,QAAA,YAAY,GAAG,mCAAmC,CAAC;AACnD,QAAA,YAAY,GAAG,4BAA4B,CAAC;AAC5C,Q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A,eAAe,GAAG,4BAA4B,CAAC;AAC/C,QAAA,eAAe,GAAG,yBAAyB,CAAC;AAC5C,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAC3C,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAEzD,oBAAoB;AACP,QAAA,gBAAgB,GAAG,uBAAuB,CAAC;AAC3C,QAAA,cAAc,GAAG,mBAAmB,CAAC;AACrC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,gBAAgB,CAAC;AACpC,QAAA,gBAAgB,GAAG,8BAA8B,CAAC;AAE/D,qBAAqB;AACR,QAAA,aAAa,GAAG,uBAAuB,CAAC;AACxC,QAAA,aAAa,GAAG,sBAAsB,CAAC;AACvC,QAAA,aAAa,GAAG,oBAAoB,CAAC;AACrC,QAAA,aAAa,GAAG,sBAAsB,CAAC;AACvC,QAAA,eAAe,GAAG,4BAA4B,CAAC;AAE5D,iCAAiC;AACpB,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,eAAe,GAAG,qBAAqB,CAAC;AACxC,QAAA,eAAe,GAAG,kBAAkB,CAAC;AACrC,QAAA,eAAe,GAAG,yBAAyB,CAAC;AAC5C,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD,cAAc;AACD,QAAA,YAAY,GAAG,oBAAoB,CAAC;AACpC,QAAA,WAAW,GAAG,oBAAoB,CAAC;AAEhD,UAAU;AACG,QAAA,WAAW,GAAG,sBAAsB,CAAC;AAElD,mBAAmB;AACN,QAAA,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Authentication & Security\nexport const AUTH_PIN_001 = 'PIN invalid';\nexport const AUTH_PIN_002 = 'PIN cancelled by user';\nexport const AUTH_PIN_003 = 'PIN attempts remaining';\nexport const AUTH_PIN_004 = 'PIN mismatch';\nexport const AUTH_LOCK_001 = 'Device is locked';\nexport const AUTH_LOCK_002 = 'Device blocked due to failed attempts';\nexport const AUTH_SEC_001 = 'Security conditions not satisfied';\nexport const AUTH_SEC_002 = 'Access rights insufficient';\nexport const AUTH_WIPE_001 = 'Wipe code mismatch';\n\n// User Action\nexport const USER_CANCEL_001 = 'User rejected action on device';\nexport const USER_CANCEL_002 = 'User cancelled operation';\nexport const USER_INPUT_001 = 'User input expected';\nexport const USER_CONFIRM_001 = 'User confirmation required';\n\n// Device State\nexport const DEVICE_STATE_001 = 'Device not initialized';\nexport const DEVICE_STATE_002 = 'Device busy';\nexport const DEVICE_STATE_003 = 'Device disconnected';\nexport const DEVICE_STATE_004 = 'Device used elsewhere';\nexport const DEVICE_STATE_005 = 'Device call in progress';\nexport const DEVICE_DETECT_001 = 'Device not found';\nexport const DEVICE_CAP_001 = 'Device missing required capability';\nexport const DEVICE_CAP_002 = 'Device is BTC-only, operation not supported';\nexport const DEVICE_MODE_001 = 'Invalid device mode';\n\n// Connection & Transport\nexport const CONN_TRANSPORT_001 = 'Transport layer missing';\nexport const CONN_CLOSED_001 = 'Connection closed unexpectedly';\nexport const CONN_IFRAME_001 = 'Unable to establish iframe connection';\nexport const CONN_SUITE_001 = 'Unable to connect to Suite';\nexport const CONN_TIMEOUT_001 = 'Connection timeout';\nexport const CONN_BLOCKED_001 = 'Connection blocked';\n\n// Data & Validation\nexport const DATA_FORMAT_001 = 'Incorrect data length';\nexport const DATA_FORMAT_002 = 'Invalid data received';\nexport const DATA_FORMAT_003 = 'Invalid parameter';\nexport const DATA_MISSING_001 = 'Missing critical parameter';\nexport const DATA_VALIDATION_001 = 'Address mismatch';\nexport const DATA_VALIDATION_002 = 'Invalid signature';\nexport const DATA_NOTFOUND_001 = 'Referenced data not found';\nexport const DATA_NOTFOUND_002 = 'File not found';\nexport const DATA_NOTFOUND_003 = 'Coin not found';\n\n// Cryptographic Operations\nexport const CRYPTO_SIGN_001 = 'Signature operation failed';\nexport const CRYPTO_ALGO_001 = 'Algorithm not supported';\nexport const CRYPTO_KEY_001 = 'Invalid key check value';\nexport const CRYPTO_ENTROPY_001 = 'Entropy check failed';\n\n// System & Internal\nexport const SYS_INTERNAL_001 = 'Internal device error';\nexport const SYS_MEMORY_001 = 'Not enough memory';\nexport const SYS_MEMORY_002 = 'Memory problem';\nexport const SYS_FILE_001 = 'File system error';\nexport const SYS_FILE_002 = 'Inconsistent file';\nexport const SYS_LICENSE_001 = 'Licensing error';\nexport const SYS_FIRMWARE_001 = 'Firmware error';\nexport const SYS_FIRMWARE_002 = 'Firmware installation failed';\n\n// Command & Protocol\nexport const PROTO_CMD_001 = 'Command not supported';\nexport const PROTO_CMD_002 = 'Command incompatible';\nexport const PROTO_CMD_003 = 'Unexpected message';\nexport const PROTO_MSG_001 = 'Invalid APDU command';\nexport const PROTO_PARAM_001 = 'Invalid command parameters';\n\n// Configuration & Initialization\nexport const CONFIG_INIT_001 = 'Not initialized';\nexport const CONFIG_INIT_002 = 'Already initialized';\nexport const CONFIG_INIT_003 = 'Manifest missing';\nexport const CONFIG_PERM_001 = 'Permissions not granted';\nexport const CONFIG_METHOD_001 = 'Method not allowed';\n\n// Transaction\nexport const TX_FUNDS_001 = 'Insufficient funds';\nexport const TX_FAIL_001 = 'Transaction failed';\n\n// Success\nexport const SUCCESS_000 = 'Operation successful';\n\n// Unknown/Fallback\nexport const UNKNOWN_001 = 'Unknown error';\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const AUTH_PIN_001 = "PIN invalid";
|
|
2
|
+
export declare const AUTH_PIN_002 = "PIN cancelled by user";
|
|
3
|
+
export declare const AUTH_PIN_003 = "PIN attempts remaining";
|
|
4
|
+
export declare const AUTH_PIN_004 = "PIN mismatch";
|
|
5
|
+
export declare const AUTH_LOCK_001 = "Device is locked";
|
|
6
|
+
export declare const AUTH_LOCK_002 = "Device blocked due to failed attempts";
|
|
7
|
+
export declare const AUTH_SEC_001 = "Security conditions not satisfied";
|
|
8
|
+
export declare const AUTH_SEC_002 = "Access rights insufficient";
|
|
9
|
+
export declare const AUTH_WIPE_001 = "Wipe code mismatch";
|
|
10
|
+
export declare const USER_CANCEL_001 = "User rejected action on device";
|
|
11
|
+
export declare const USER_CANCEL_002 = "User cancelled operation";
|
|
12
|
+
export declare const USER_INPUT_001 = "User input expected";
|
|
13
|
+
export declare const USER_CONFIRM_001 = "User confirmation required";
|
|
14
|
+
export declare const DEVICE_STATE_001 = "Device not initialized";
|
|
15
|
+
export declare const DEVICE_STATE_002 = "Device busy";
|
|
16
|
+
export declare const DEVICE_STATE_003 = "Device disconnected";
|
|
17
|
+
export declare const DEVICE_STATE_004 = "Device used elsewhere";
|
|
18
|
+
export declare const DEVICE_STATE_005 = "Device call in progress";
|
|
19
|
+
export declare const DEVICE_DETECT_001 = "Device not found";
|
|
20
|
+
export declare const DEVICE_CAP_001 = "Device missing required capability";
|
|
21
|
+
export declare const DEVICE_CAP_002 = "Device is BTC-only, operation not supported";
|
|
22
|
+
export declare const DEVICE_MODE_001 = "Invalid device mode";
|
|
23
|
+
export declare const CONN_TRANSPORT_001 = "Transport layer missing";
|
|
24
|
+
export declare const CONN_CLOSED_001 = "Connection closed unexpectedly";
|
|
25
|
+
export declare const CONN_IFRAME_001 = "Unable to establish iframe connection";
|
|
26
|
+
export declare const CONN_SUITE_001 = "Unable to connect to Suite";
|
|
27
|
+
export declare const CONN_TIMEOUT_001 = "Connection timeout";
|
|
28
|
+
export declare const CONN_BLOCKED_001 = "Connection blocked";
|
|
29
|
+
export declare const DATA_FORMAT_001 = "Incorrect data length";
|
|
30
|
+
export declare const DATA_FORMAT_002 = "Invalid data received";
|
|
31
|
+
export declare const DATA_FORMAT_003 = "Invalid parameter";
|
|
32
|
+
export declare const DATA_MISSING_001 = "Missing critical parameter";
|
|
33
|
+
export declare const DATA_VALIDATION_001 = "Address mismatch";
|
|
34
|
+
export declare const DATA_VALIDATION_002 = "Invalid signature";
|
|
35
|
+
export declare const DATA_NOTFOUND_001 = "Referenced data not found";
|
|
36
|
+
export declare const DATA_NOTFOUND_002 = "File not found";
|
|
37
|
+
export declare const DATA_NOTFOUND_003 = "Coin not found";
|
|
38
|
+
export declare const CRYPTO_SIGN_001 = "Signature operation failed";
|
|
39
|
+
export declare const CRYPTO_ALGO_001 = "Algorithm not supported";
|
|
40
|
+
export declare const CRYPTO_KEY_001 = "Invalid key check value";
|
|
41
|
+
export declare const CRYPTO_ENTROPY_001 = "Entropy check failed";
|
|
42
|
+
export declare const SYS_INTERNAL_001 = "Internal device error";
|
|
43
|
+
export declare const SYS_MEMORY_001 = "Not enough memory";
|
|
44
|
+
export declare const SYS_MEMORY_002 = "Memory problem";
|
|
45
|
+
export declare const SYS_FILE_001 = "File system error";
|
|
46
|
+
export declare const SYS_FILE_002 = "Inconsistent file";
|
|
47
|
+
export declare const SYS_LICENSE_001 = "Licensing error";
|
|
48
|
+
export declare const SYS_FIRMWARE_001 = "Firmware error";
|
|
49
|
+
export declare const SYS_FIRMWARE_002 = "Firmware installation failed";
|
|
50
|
+
export declare const PROTO_CMD_001 = "Command not supported";
|
|
51
|
+
export declare const PROTO_CMD_002 = "Command incompatible";
|
|
52
|
+
export declare const PROTO_CMD_003 = "Unexpected message";
|
|
53
|
+
export declare const PROTO_MSG_001 = "Invalid APDU command";
|
|
54
|
+
export declare const PROTO_PARAM_001 = "Invalid command parameters";
|
|
55
|
+
export declare const CONFIG_INIT_001 = "Not initialized";
|
|
56
|
+
export declare const CONFIG_INIT_002 = "Already initialized";
|
|
57
|
+
export declare const CONFIG_INIT_003 = "Manifest missing";
|
|
58
|
+
export declare const CONFIG_PERM_001 = "Permissions not granted";
|
|
59
|
+
export declare const CONFIG_METHOD_001 = "Method not allowed";
|
|
60
|
+
export declare const TX_FUNDS_001 = "Insufficient funds";
|
|
61
|
+
export declare const TX_FAIL_001 = "Transaction failed";
|
|
62
|
+
export declare const SUCCESS_000 = "Operation successful";
|
|
63
|
+
export declare const UNKNOWN_001 = "Unknown error";
|
|
64
|
+
//# sourceMappingURL=hardware-error-codes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardware-error-codes.d.cts","sourceRoot":"","sources":["../src/hardware-error-codes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,0BAA0B,CAAC;AACpD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,qBAAqB,CAAC;AAChD,eAAO,MAAM,aAAa,0CAA0C,CAAC;AACrE,eAAO,MAAM,YAAY,sCAAsC,CAAC;AAChE,eAAO,MAAM,YAAY,+BAA+B,CAAC;AACzD,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAGlD,eAAO,MAAM,eAAe,mCAAmC,CAAC;AAChE,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAG7D,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AACxD,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,eAAO,MAAM,cAAc,uCAAuC,CAAC;AACnE,eAAO,MAAM,cAAc,gDAAgD,CAAC;AAC5E,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAGrD,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAC5D,eAAO,MAAM,eAAe,mCAAmC,CAAC;AAChE,eAAO,MAAM,eAAe,0CAA0C,CAAC;AACvE,eAAO,MAAM,cAAc,+BAA+B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,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BAA4B,CAAC;AACzD,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAGtD,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAGhD,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAGlD,eAAO,MAAM,WAAW,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const AUTH_PIN_001 = "PIN invalid";
|
|
2
|
+
export declare const AUTH_PIN_002 = "PIN cancelled by user";
|
|
3
|
+
export declare const AUTH_PIN_003 = "PIN attempts remaining";
|
|
4
|
+
export declare const AUTH_PIN_004 = "PIN mismatch";
|
|
5
|
+
export declare const AUTH_LOCK_001 = "Device is locked";
|
|
6
|
+
export declare const AUTH_LOCK_002 = "Device blocked due to failed attempts";
|
|
7
|
+
export declare const AUTH_SEC_001 = "Security conditions not satisfied";
|
|
8
|
+
export declare const AUTH_SEC_002 = "Access rights insufficient";
|
|
9
|
+
export declare const AUTH_WIPE_001 = "Wipe code mismatch";
|
|
10
|
+
export declare const USER_CANCEL_001 = "User rejected action on device";
|
|
11
|
+
export declare const USER_CANCEL_002 = "User cancelled operation";
|
|
12
|
+
export declare const USER_INPUT_001 = "User input expected";
|
|
13
|
+
export declare const USER_CONFIRM_001 = "User confirmation required";
|
|
14
|
+
export declare const DEVICE_STATE_001 = "Device not initialized";
|
|
15
|
+
export declare const DEVICE_STATE_002 = "Device busy";
|
|
16
|
+
export declare const DEVICE_STATE_003 = "Device disconnected";
|
|
17
|
+
export declare const DEVICE_STATE_004 = "Device used elsewhere";
|
|
18
|
+
export declare const DEVICE_STATE_005 = "Device call in progress";
|
|
19
|
+
export declare const DEVICE_DETECT_001 = "Device not found";
|
|
20
|
+
export declare const DEVICE_CAP_001 = "Device missing required capability";
|
|
21
|
+
export declare const DEVICE_CAP_002 = "Device is BTC-only, operation not supported";
|
|
22
|
+
export declare const DEVICE_MODE_001 = "Invalid device mode";
|
|
23
|
+
export declare const CONN_TRANSPORT_001 = "Transport layer missing";
|
|
24
|
+
export declare const CONN_CLOSED_001 = "Connection closed unexpectedly";
|
|
25
|
+
export declare const CONN_IFRAME_001 = "Unable to establish iframe connection";
|
|
26
|
+
export declare const CONN_SUITE_001 = "Unable to connect to Suite";
|
|
27
|
+
export declare const CONN_TIMEOUT_001 = "Connection timeout";
|
|
28
|
+
export declare const CONN_BLOCKED_001 = "Connection blocked";
|
|
29
|
+
export declare const DATA_FORMAT_001 = "Incorrect data length";
|
|
30
|
+
export declare const DATA_FORMAT_002 = "Invalid data received";
|
|
31
|
+
export declare const DATA_FORMAT_003 = "Invalid parameter";
|
|
32
|
+
export declare const DATA_MISSING_001 = "Missing critical parameter";
|
|
33
|
+
export declare const DATA_VALIDATION_001 = "Address mismatch";
|
|
34
|
+
export declare const DATA_VALIDATION_002 = "Invalid signature";
|
|
35
|
+
export declare const DATA_NOTFOUND_001 = "Referenced data not found";
|
|
36
|
+
export declare const DATA_NOTFOUND_002 = "File not found";
|
|
37
|
+
export declare const DATA_NOTFOUND_003 = "Coin not found";
|
|
38
|
+
export declare const CRYPTO_SIGN_001 = "Signature operation failed";
|
|
39
|
+
export declare const CRYPTO_ALGO_001 = "Algorithm not supported";
|
|
40
|
+
export declare const CRYPTO_KEY_001 = "Invalid key check value";
|
|
41
|
+
export declare const CRYPTO_ENTROPY_001 = "Entropy check failed";
|
|
42
|
+
export declare const SYS_INTERNAL_001 = "Internal device error";
|
|
43
|
+
export declare const SYS_MEMORY_001 = "Not enough memory";
|
|
44
|
+
export declare const SYS_MEMORY_002 = "Memory problem";
|
|
45
|
+
export declare const SYS_FILE_001 = "File system error";
|
|
46
|
+
export declare const SYS_FILE_002 = "Inconsistent file";
|
|
47
|
+
export declare const SYS_LICENSE_001 = "Licensing error";
|
|
48
|
+
export declare const SYS_FIRMWARE_001 = "Firmware error";
|
|
49
|
+
export declare const SYS_FIRMWARE_002 = "Firmware installation failed";
|
|
50
|
+
export declare const PROTO_CMD_001 = "Command not supported";
|
|
51
|
+
export declare const PROTO_CMD_002 = "Command incompatible";
|
|
52
|
+
export declare const PROTO_CMD_003 = "Unexpected message";
|
|
53
|
+
export declare const PROTO_MSG_001 = "Invalid APDU command";
|
|
54
|
+
export declare const PROTO_PARAM_001 = "Invalid command parameters";
|
|
55
|
+
export declare const CONFIG_INIT_001 = "Not initialized";
|
|
56
|
+
export declare const CONFIG_INIT_002 = "Already initialized";
|
|
57
|
+
export declare const CONFIG_INIT_003 = "Manifest missing";
|
|
58
|
+
export declare const CONFIG_PERM_001 = "Permissions not granted";
|
|
59
|
+
export declare const CONFIG_METHOD_001 = "Method not allowed";
|
|
60
|
+
export declare const TX_FUNDS_001 = "Insufficient funds";
|
|
61
|
+
export declare const TX_FAIL_001 = "Transaction failed";
|
|
62
|
+
export declare const SUCCESS_000 = "Operation successful";
|
|
63
|
+
export declare const UNKNOWN_001 = "Unknown error";
|
|
64
|
+
//# sourceMappingURL=hardware-error-codes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardware-error-codes.d.mts","sourceRoot":"","sources":["../src/hardware-error-codes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,0BAA0B,CAAC;AACpD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,qBAAqB,CAAC;AAChD,eAAO,MAAM,aAAa,0CAA0C,CAAC;AACrE,eAAO,MAAM,YAAY,sCAAsC,CAAC;AAChE,eAAO,MAAM,YAAY,+BAA+B,CAAC;AACzD,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAGlD,eAAO,MAAM,eAAe,mCAAmC,CAAC;AAChE,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAG7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BAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAChD,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAChD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AACjD,eAAO,MAAM,gBAAgB,iCAAiC,CAAC;AAG/D,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,aAAa,yBAAyB,CAAC;AACpD,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAClD,eAAO,MAAM,aAAa,yBAAyB,CAAC;AACpD,eAAO,MAAM,eAAe,+BAA+B,CAAC;AAG5D,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,eAAe,4BAA4B,CAAC;AACzD,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAGtD,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAGhD,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAGlD,eAAO,MAAM,WAAW,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Authentication & Security
|
|
2
|
+
export const AUTH_PIN_001 = 'PIN invalid';
|
|
3
|
+
export const AUTH_PIN_002 = 'PIN cancelled by user';
|
|
4
|
+
export const AUTH_PIN_003 = 'PIN attempts remaining';
|
|
5
|
+
export const AUTH_PIN_004 = 'PIN mismatch';
|
|
6
|
+
export const AUTH_LOCK_001 = 'Device is locked';
|
|
7
|
+
export const AUTH_LOCK_002 = 'Device blocked due to failed attempts';
|
|
8
|
+
export const AUTH_SEC_001 = 'Security conditions not satisfied';
|
|
9
|
+
export const AUTH_SEC_002 = 'Access rights insufficient';
|
|
10
|
+
export const AUTH_WIPE_001 = 'Wipe code mismatch';
|
|
11
|
+
// User Action
|
|
12
|
+
export const USER_CANCEL_001 = 'User rejected action on device';
|
|
13
|
+
export const USER_CANCEL_002 = 'User cancelled operation';
|
|
14
|
+
export const USER_INPUT_001 = 'User input expected';
|
|
15
|
+
export const USER_CONFIRM_001 = 'User confirmation required';
|
|
16
|
+
// Device State
|
|
17
|
+
export const DEVICE_STATE_001 = 'Device not initialized';
|
|
18
|
+
export const DEVICE_STATE_002 = 'Device busy';
|
|
19
|
+
export const DEVICE_STATE_003 = 'Device disconnected';
|
|
20
|
+
export const DEVICE_STATE_004 = 'Device used elsewhere';
|
|
21
|
+
export const DEVICE_STATE_005 = 'Device call in progress';
|
|
22
|
+
export const DEVICE_DETECT_001 = 'Device not found';
|
|
23
|
+
export const DEVICE_CAP_001 = 'Device missing required capability';
|
|
24
|
+
export const DEVICE_CAP_002 = 'Device is BTC-only, operation not supported';
|
|
25
|
+
export const DEVICE_MODE_001 = 'Invalid device mode';
|
|
26
|
+
// Connection & Transport
|
|
27
|
+
export const CONN_TRANSPORT_001 = 'Transport layer missing';
|
|
28
|
+
export const CONN_CLOSED_001 = 'Connection closed unexpectedly';
|
|
29
|
+
export const CONN_IFRAME_001 = 'Unable to establish iframe connection';
|
|
30
|
+
export const CONN_SUITE_001 = 'Unable to connect to Suite';
|
|
31
|
+
export const CONN_TIMEOUT_001 = 'Connection timeout';
|
|
32
|
+
export const CONN_BLOCKED_001 = 'Connection blocked';
|
|
33
|
+
// Data & Validation
|
|
34
|
+
export const DATA_FORMAT_001 = 'Incorrect data length';
|
|
35
|
+
export const DATA_FORMAT_002 = 'Invalid data received';
|
|
36
|
+
export const DATA_FORMAT_003 = 'Invalid parameter';
|
|
37
|
+
export const DATA_MISSING_001 = 'Missing critical parameter';
|
|
38
|
+
export const DATA_VALIDATION_001 = 'Address mismatch';
|
|
39
|
+
export const DATA_VALIDATION_002 = 'Invalid signature';
|
|
40
|
+
export const DATA_NOTFOUND_001 = 'Referenced data not found';
|
|
41
|
+
export const DATA_NOTFOUND_002 = 'File not found';
|
|
42
|
+
export const DATA_NOTFOUND_003 = 'Coin not found';
|
|
43
|
+
// Cryptographic Operations
|
|
44
|
+
export const CRYPTO_SIGN_001 = 'Signature operation failed';
|
|
45
|
+
export const CRYPTO_ALGO_001 = 'Algorithm not supported';
|
|
46
|
+
export const CRYPTO_KEY_001 = 'Invalid key check value';
|
|
47
|
+
export const CRYPTO_ENTROPY_001 = 'Entropy check failed';
|
|
48
|
+
// System & Internal
|
|
49
|
+
export const SYS_INTERNAL_001 = 'Internal device error';
|
|
50
|
+
export const SYS_MEMORY_001 = 'Not enough memory';
|
|
51
|
+
export const SYS_MEMORY_002 = 'Memory problem';
|
|
52
|
+
export const SYS_FILE_001 = 'File system error';
|
|
53
|
+
export const SYS_FILE_002 = 'Inconsistent file';
|
|
54
|
+
export const SYS_LICENSE_001 = 'Licensing error';
|
|
55
|
+
export const SYS_FIRMWARE_001 = 'Firmware error';
|
|
56
|
+
export const SYS_FIRMWARE_002 = 'Firmware installation failed';
|
|
57
|
+
// Command & Protocol
|
|
58
|
+
export const PROTO_CMD_001 = 'Command not supported';
|
|
59
|
+
export const PROTO_CMD_002 = 'Command incompatible';
|
|
60
|
+
export const PROTO_CMD_003 = 'Unexpected message';
|
|
61
|
+
export const PROTO_MSG_001 = 'Invalid APDU command';
|
|
62
|
+
export const PROTO_PARAM_001 = 'Invalid command parameters';
|
|
63
|
+
// Configuration & Initialization
|
|
64
|
+
export const CONFIG_INIT_001 = 'Not initialized';
|
|
65
|
+
export const CONFIG_INIT_002 = 'Already initialized';
|
|
66
|
+
export const CONFIG_INIT_003 = 'Manifest missing';
|
|
67
|
+
export const CONFIG_PERM_001 = 'Permissions not granted';
|
|
68
|
+
export const CONFIG_METHOD_001 = 'Method not allowed';
|
|
69
|
+
// Transaction
|
|
70
|
+
export const TX_FUNDS_001 = 'Insufficient funds';
|
|
71
|
+
export const TX_FAIL_001 = 'Transaction failed';
|
|
72
|
+
// Success
|
|
73
|
+
export const SUCCESS_000 = 'Operation successful';
|
|
74
|
+
// Unknown/Fallback
|
|
75
|
+
export const UNKNOWN_001 = 'Unknown error';
|
|
76
|
+
//# sourceMappingURL=hardware-error-codes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardware-error-codes.mjs","sourceRoot":"","sources":["../src/hardware-error-codes.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,uBAAuB,CAAC;AACpD,MAAM,CAAC,MAAM,YAAY,GAAG,wBAAwB,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAC3C,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG,uCAAuC,CAAC;AACrE,MAAM,CAAC,MAAM,YAAY,GAAG,mCAAmC,CAAC;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG,4BAA4B,CAAC;AACzD,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD,cAAc;AACd,MAAM,CAAC,MAAM,eAAe,GAAG,gCAAgC,CAAC;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAC1D,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AAE7D,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AACzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AACtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;A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'PIN cancelled by user';\nexport const AUTH_PIN_003 = 'PIN attempts remaining';\nexport const AUTH_PIN_004 = 'PIN mismatch';\nexport const AUTH_LOCK_001 = 'Device is locked';\nexport const AUTH_LOCK_002 = 'Device blocked due to failed attempts';\nexport const AUTH_SEC_001 = 'Security conditions not satisfied';\nexport const AUTH_SEC_002 = 'Access rights insufficient';\nexport const AUTH_WIPE_001 = 'Wipe code mismatch';\n\n// User Action\nexport const USER_CANCEL_001 = 'User rejected action on device';\nexport const USER_CANCEL_002 = 'User cancelled operation';\nexport const USER_INPUT_001 = 'User input expected';\nexport const USER_CONFIRM_001 = 'User confirmation required';\n\n// Device State\nexport const DEVICE_STATE_001 = 'Device not initialized';\nexport const DEVICE_STATE_002 = 'Device busy';\nexport const DEVICE_STATE_003 = 'Device disconnected';\nexport const DEVICE_STATE_004 = 'Device used elsewhere';\nexport const DEVICE_STATE_005 = 'Device call in progress';\nexport const DEVICE_DETECT_001 = 'Device not found';\nexport const DEVICE_CAP_001 = 'Device missing required capability';\nexport const DEVICE_CAP_002 = 'Device is BTC-only, operation not supported';\nexport const DEVICE_MODE_001 = 'Invalid device mode';\n\n// Connection & Transport\nexport const CONN_TRANSPORT_001 = 'Transport layer missing';\nexport const CONN_CLOSED_001 = 'Connection closed unexpectedly';\nexport const CONN_IFRAME_001 = 'Unable to establish iframe connection';\nexport const CONN_SUITE_001 = 'Unable to connect to Suite';\nexport const CONN_TIMEOUT_001 = 'Connection timeout';\nexport const CONN_BLOCKED_001 = 'Connection blocked';\n\n// Data & Validation\nexport const DATA_FORMAT_001 = 'Incorrect data length';\nexport const DATA_FORMAT_002 = 'Invalid data received';\nexport const DATA_FORMAT_003 = 'Invalid parameter';\nexport const DATA_MISSING_001 = 'Missing critical parameter';\nexport const DATA_VALIDATION_001 = 'Address mismatch';\nexport const DATA_VALIDATION_002 = 'Invalid signature';\nexport const DATA_NOTFOUND_001 = 'Referenced data not found';\nexport const DATA_NOTFOUND_002 = 'File not found';\nexport const DATA_NOTFOUND_003 = 'Coin not found';\n\n// Cryptographic Operations\nexport const CRYPTO_SIGN_001 = 'Signature operation failed';\nexport const CRYPTO_ALGO_001 = 'Algorithm not supported';\nexport const CRYPTO_KEY_001 = 'Invalid key check value';\nexport const CRYPTO_ENTROPY_001 = 'Entropy check failed';\n\n// System & Internal\nexport const SYS_INTERNAL_001 = 'Internal device error';\nexport const SYS_MEMORY_001 = 'Not enough memory';\nexport const SYS_MEMORY_002 = 'Memory problem';\nexport const SYS_FILE_001 = 'File system error';\nexport const SYS_FILE_002 = 'Inconsistent file';\nexport const SYS_LICENSE_001 = 'Licensing error';\nexport const SYS_FIRMWARE_001 = 'Firmware error';\nexport const SYS_FIRMWARE_002 = 'Firmware installation failed';\n\n// Command & Protocol\nexport const PROTO_CMD_001 = 'Command not supported';\nexport const PROTO_CMD_002 = 'Command incompatible';\nexport const PROTO_CMD_003 = 'Unexpected message';\nexport const PROTO_MSG_001 = 'Invalid APDU command';\nexport const PROTO_PARAM_001 = 'Invalid command parameters';\n\n// Configuration & Initialization\nexport const CONFIG_INIT_001 = 'Not initialized';\nexport const CONFIG_INIT_002 = 'Already initialized';\nexport const CONFIG_INIT_003 = 'Manifest missing';\nexport const CONFIG_PERM_001 = 'Permissions not granted';\nexport const CONFIG_METHOD_001 = 'Method not allowed';\n\n// Transaction\nexport const TX_FUNDS_001 = 'Insufficient funds';\nexport const TX_FAIL_001 = 'Transaction failed';\n\n// Success\nexport const SUCCESS_000 = 'Operation successful';\n\n// Unknown/Fallback\nexport const UNKNOWN_001 = 'Unknown error';\n"]}
|