@oro-ai/sdk 1.0.42 → 1.0.43

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/index.d.mts CHANGED
@@ -3878,7 +3878,7 @@ interface BittensorAuthConfig {
3878
3878
  * Function to sign a message with the hotkey.
3879
3879
  * Should return the signature as a hex string.
3880
3880
  *
3881
- * @param message - The message to sign (format: "{hotkey}:{timestamp}:{nonce}")
3881
+ * @param message - The message to sign (`{hotkey}:{timestamp}:{nonce}`)
3882
3882
  * @returns Signature as hex string (with or without 0x prefix)
3883
3883
  */
3884
3884
  sign: (message: string) => string | Promise<string>;
@@ -3886,8 +3886,8 @@ interface BittensorAuthConfig {
3886
3886
  /**
3887
3887
  * Generate authentication headers for a Bittensor wallet.
3888
3888
  *
3889
- * The message format is '{hotkey}:{timestamp}:{nonce}' to match
3890
- * the ORO Backend's expected signature format.
3889
+ * Message format is `{hotkey}:{timestamp}:{nonce}` (matches the ORO Backend's
3890
+ * expected signature format).
3891
3891
  *
3892
3892
  * @param config - Bittensor auth configuration
3893
3893
  * @param nonce - Optional nonce (defaults to crypto.randomUUID())
package/dist/index.d.ts CHANGED
@@ -3878,7 +3878,7 @@ interface BittensorAuthConfig {
3878
3878
  * Function to sign a message with the hotkey.
3879
3879
  * Should return the signature as a hex string.
3880
3880
  *
3881
- * @param message - The message to sign (format: "{hotkey}:{timestamp}:{nonce}")
3881
+ * @param message - The message to sign (`{hotkey}:{timestamp}:{nonce}`)
3882
3882
  * @returns Signature as hex string (with or without 0x prefix)
3883
3883
  */
3884
3884
  sign: (message: string) => string | Promise<string>;
@@ -3886,8 +3886,8 @@ interface BittensorAuthConfig {
3886
3886
  /**
3887
3887
  * Generate authentication headers for a Bittensor wallet.
3888
3888
  *
3889
- * The message format is '{hotkey}:{timestamp}:{nonce}' to match
3890
- * the ORO Backend's expected signature format.
3889
+ * Message format is `{hotkey}:{timestamp}:{nonce}` (matches the ORO Backend's
3890
+ * expected signature format).
3891
3891
  *
3892
3892
  * @param config - Bittensor auth configuration
3893
3893
  * @param nonce - Optional nonce (defaults to crypto.randomUUID())
package/dist/index.js CHANGED
@@ -642,7 +642,7 @@ function isPublicEndpoint(url) {
642
642
  } catch {
643
643
  pathname = url;
644
644
  }
645
- return pathname.includes("/v1/public/") || pathname.includes("/v1/auth/") || pathname === "/health" || pathname.endsWith("/health");
645
+ return pathname.startsWith("/v1/public/") || pathname.startsWith("/v1/auth/") || pathname === "/health" || pathname.endsWith("/health");
646
646
  }
647
647
  async function generateAuthHeaders(config, nonce) {
648
648
  const cryptoModule = typeof globalThis.crypto !== "undefined" ? globalThis.crypto : await import("crypto");
package/dist/index.mjs CHANGED
@@ -529,7 +529,7 @@ function isPublicEndpoint(url) {
529
529
  } catch {
530
530
  pathname = url;
531
531
  }
532
- return pathname.includes("/v1/public/") || pathname.includes("/v1/auth/") || pathname === "/health" || pathname.endsWith("/health");
532
+ return pathname.startsWith("/v1/public/") || pathname.startsWith("/v1/auth/") || pathname === "/health" || pathname.endsWith("/health");
533
533
  }
534
534
  async function generateAuthHeaders(config, nonce) {
535
535
  const cryptoModule = typeof globalThis.crypto !== "undefined" ? globalThis.crypto : await import("crypto");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oro-ai/sdk",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "Official TypeScript SDK for the ORO Bittensor Subnet API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",