@cubist-labs/cubesigner-sdk 0.4.265 → 0.4.266

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/cubist-labs/CubeSigner-TypeScript-SDK.git",
6
6
  "directory": "packages/sdk"
7
7
  },
8
- "version": "0.4.265",
8
+ "version": "0.4.266",
9
9
  "type": "module",
10
10
  "description": "CubeSigner TypeScript SDK",
11
11
  "license": "MIT OR Apache-2.0",
package/src/key.ts CHANGED
@@ -117,9 +117,11 @@ export enum P256 {
117
117
  export const Mnemonic = "Mnemonic" as const;
118
118
  export type Mnemonic = typeof Mnemonic;
119
119
 
120
- /** HmacSha256 key type */
121
- export const HmacSha256 = "HmacSha256" as const;
122
- export type HmacSha256 = typeof HmacSha256;
120
+ /** HmacSha256 key types */
121
+ export enum HmacSha256 {
122
+ Generic = "HmacSha256",
123
+ Bybit = "HmacSha256Bybit",
124
+ }
123
125
 
124
126
  /** Stark key type */
125
127
  export const Stark = "Stark" as const;
@@ -851,7 +853,9 @@ export function fromSchemaKeyType(ty: SchemaKeyType): KeyType {
851
853
  case "Stark":
852
854
  return Stark;
853
855
  case "HmacSha256":
854
- return HmacSha256;
856
+ return HmacSha256.Generic;
857
+ case "HmacSha256Bybit":
858
+ return HmacSha256.Bybit;
855
859
  case "Mnemonic":
856
860
  return Mnemonic;
857
861
  case "P256CosmosAddr":
package/src/schema.ts CHANGED
@@ -4091,7 +4091,7 @@ export interface components {
4091
4091
  };
4092
4092
  /**
4093
4093
  * @description Bybit-family RPC methods. Each variant authenticates as the
4094
- * [`KeyType::HmacSha256`] key in its `params.key_id` (which must carry
4094
+ * [`KeyType::HmacSha256Bybit`] key in its `params.key_id` (which must carry
4095
4095
  * [`KeyProperties::BybitApi`]).
4096
4096
  */
4097
4097
  BybitRpc:
@@ -7336,7 +7336,8 @@ export interface components {
7336
7336
  | "SecpXrpAddr"
7337
7337
  | "Ed25519XrpAddr"
7338
7338
  | "BabyJubjub"
7339
- | "HmacSha256";
7339
+ | "HmacSha256"
7340
+ | "HmacSha256Bybit";
7340
7341
  KeyTypeAndDerivationPath: {
7341
7342
  /**
7342
7343
  * @description List of derivation paths for which to derive.