@oro-ai/sdk 1.0.41 → 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
@@ -1717,6 +1717,10 @@ type ProblemProgressUpdate = {
1717
1717
  * Total number of inference calls
1718
1718
  */
1719
1719
  inference_total?: (number | null);
1720
+ /**
1721
+ * Sandbox execution time for this problem in seconds
1722
+ */
1723
+ execution_time?: (number | null);
1720
1724
  };
1721
1725
  type ProblemPublic = {
1722
1726
  /**
@@ -2493,6 +2497,10 @@ type ValidatorProblemResult = {
2493
2497
  * Total number of inference calls for this problem
2494
2498
  */
2495
2499
  inference_total?: (number | null);
2500
+ /**
2501
+ * Sandbox execution time for this problem in seconds
2502
+ */
2503
+ execution_time?: (number | null);
2496
2504
  };
2497
2505
  type ValidatorPublic = {
2498
2506
  /**
@@ -3870,7 +3878,7 @@ interface BittensorAuthConfig {
3870
3878
  * Function to sign a message with the hotkey.
3871
3879
  * Should return the signature as a hex string.
3872
3880
  *
3873
- * @param message - The message to sign (format: "{hotkey}:{timestamp}:{nonce}")
3881
+ * @param message - The message to sign (`{hotkey}:{timestamp}:{nonce}`)
3874
3882
  * @returns Signature as hex string (with or without 0x prefix)
3875
3883
  */
3876
3884
  sign: (message: string) => string | Promise<string>;
@@ -3878,8 +3886,8 @@ interface BittensorAuthConfig {
3878
3886
  /**
3879
3887
  * Generate authentication headers for a Bittensor wallet.
3880
3888
  *
3881
- * The message format is '{hotkey}:{timestamp}:{nonce}' to match
3882
- * the ORO Backend's expected signature format.
3889
+ * Message format is `{hotkey}:{timestamp}:{nonce}` (matches the ORO Backend's
3890
+ * expected signature format).
3883
3891
  *
3884
3892
  * @param config - Bittensor auth configuration
3885
3893
  * @param nonce - Optional nonce (defaults to crypto.randomUUID())
package/dist/index.d.ts CHANGED
@@ -1717,6 +1717,10 @@ type ProblemProgressUpdate = {
1717
1717
  * Total number of inference calls
1718
1718
  */
1719
1719
  inference_total?: (number | null);
1720
+ /**
1721
+ * Sandbox execution time for this problem in seconds
1722
+ */
1723
+ execution_time?: (number | null);
1720
1724
  };
1721
1725
  type ProblemPublic = {
1722
1726
  /**
@@ -2493,6 +2497,10 @@ type ValidatorProblemResult = {
2493
2497
  * Total number of inference calls for this problem
2494
2498
  */
2495
2499
  inference_total?: (number | null);
2500
+ /**
2501
+ * Sandbox execution time for this problem in seconds
2502
+ */
2503
+ execution_time?: (number | null);
2496
2504
  };
2497
2505
  type ValidatorPublic = {
2498
2506
  /**
@@ -3870,7 +3878,7 @@ interface BittensorAuthConfig {
3870
3878
  * Function to sign a message with the hotkey.
3871
3879
  * Should return the signature as a hex string.
3872
3880
  *
3873
- * @param message - The message to sign (format: "{hotkey}:{timestamp}:{nonce}")
3881
+ * @param message - The message to sign (`{hotkey}:{timestamp}:{nonce}`)
3874
3882
  * @returns Signature as hex string (with or without 0x prefix)
3875
3883
  */
3876
3884
  sign: (message: string) => string | Promise<string>;
@@ -3878,8 +3886,8 @@ interface BittensorAuthConfig {
3878
3886
  /**
3879
3887
  * Generate authentication headers for a Bittensor wallet.
3880
3888
  *
3881
- * The message format is '{hotkey}:{timestamp}:{nonce}' to match
3882
- * the ORO Backend's expected signature format.
3889
+ * Message format is `{hotkey}:{timestamp}:{nonce}` (matches the ORO Backend's
3890
+ * expected signature format).
3883
3891
  *
3884
3892
  * @param config - Bittensor auth configuration
3885
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.41",
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",
@@ -1802,6 +1802,10 @@ export type ProblemProgressUpdate = {
1802
1802
  * Total number of inference calls
1803
1803
  */
1804
1804
  inference_total?: (number | null);
1805
+ /**
1806
+ * Sandbox execution time for this problem in seconds
1807
+ */
1808
+ execution_time?: (number | null);
1805
1809
  };
1806
1810
 
1807
1811
  export type ProblemPublic = {
@@ -2620,6 +2624,10 @@ export type ValidatorProblemResult = {
2620
2624
  * Total number of inference calls for this problem
2621
2625
  */
2622
2626
  inference_total?: (number | null);
2627
+ /**
2628
+ * Sandbox execution time for this problem in seconds
2629
+ */
2630
+ execution_time?: (number | null);
2623
2631
  };
2624
2632
 
2625
2633
  export type ValidatorPublic = {