@happyrobot-ai/sdk 0.1.37 → 0.1.41

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyrobot-ai/sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.41",
4
4
  "description": "TypeScript SDK for the HappyRobot Public API",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -4,6 +4,7 @@
4
4
  * Maps to:
5
5
  * GET /billing/usage/details
6
6
  * GET /billing/usage/totals
7
+ * GET /billing/usage/runs/:run_id
7
8
  */
8
9
  import type { HttpClient } from "../core/http";
9
10
  export interface BillingDetailsQuery {
@@ -22,4 +23,6 @@ export declare class BillingResource {
22
23
  getDetails(query: BillingDetailsQuery): Promise<unknown>;
23
24
  /** Get billing usage totals. */
24
25
  getTotals(query: BillingTotalsQuery): Promise<unknown>;
26
+ /** Get credit consumption for a single run. */
27
+ getRunCredits(runId: string): Promise<unknown>;
25
28
  }
@@ -5,6 +5,7 @@
5
5
  * Maps to:
6
6
  * GET /billing/usage/details
7
7
  * GET /billing/usage/totals
8
+ * GET /billing/usage/runs/:run_id
8
9
  */
9
10
  Object.defineProperty(exports, "__esModule", { value: true });
10
11
  exports.BillingResource = void 0;
@@ -29,6 +30,13 @@ class BillingResource {
29
30
  query: query,
30
31
  });
31
32
  }
33
+ /** Get credit consumption for a single run. */
34
+ async getRunCredits(runId) {
35
+ return this.http.request({
36
+ method: "GET",
37
+ path: `/billing/usage/runs/${runId}`,
38
+ });
39
+ }
32
40
  }
33
41
  exports.BillingResource = BillingResource;
34
42
  //# sourceMappingURL=billing.js.map
@@ -31,6 +31,7 @@ export interface AuditRemarkDetail {
31
31
  correction: string | null;
32
32
  correction_reason: string | null;
33
33
  org_id: string;
34
+ is_e2e_test: boolean;
34
35
  user_feedback?: AuditRemarkUserFeedback | null;
35
36
  }
36
37
  /** A remark as returned by the workflow-wide listing (no use_case/node/category). */