@athenaintel/sdk 4.3.2302 → 4.3.2304

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@athenaintel/sdk",
46
- "X-Fern-SDK-Version": "4.3.2302",
47
- "User-Agent": "@athenaintel/sdk/4.3.2302",
46
+ "X-Fern-SDK-Version": "4.3.2304",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2304",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -48,7 +48,7 @@ export interface SessionOut {
48
48
  thread_id: string;
49
49
  /** Display title of the session */
50
50
  title?: string | null;
51
- /** Total LLM cost of the session in USD, when tracked. Null unless the caller is Athena staff or an owner or manager of the session's workspace */
51
+ /** Total LLM cost of the session in USD, when tracked. Null unless the caller is Athena staff or an owner or manager of the session's workspace. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
52
52
  total_cost_usd?: number | null;
53
53
  /** Trigger that started an AOP/workflow run, such as schedule or api */
54
54
  trigger_type?: string | null;
@@ -17,6 +17,6 @@ export interface WorkspaceUsageComputerOut {
17
17
  title?: string | null;
18
18
  /** Token counters behind this Computer's usage */
19
19
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
20
- /** Total LLM cost in USD */
20
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
21
21
  total_cost_usd: number;
22
22
  }
@@ -9,6 +9,6 @@ export interface WorkspaceUsageDayOut {
9
9
  session_count: number;
10
10
  /** Token counters for the day */
11
11
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
12
- /** Total LLM cost in USD for the day */
12
+ /** Total LLM cost in USD for the day. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
13
13
  total_cost_usd: number;
14
14
  }
@@ -5,7 +5,7 @@ import type * as AthenaIntelligence from "../index.js";
5
5
  export interface WorkspaceUsageResponseOut {
6
6
  /** Users with at least one session */
7
7
  active_users: number;
8
- /** Portion of total_cost_usd produced by Computers */
8
+ /** Portion of total_cost_usd produced by Computers. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
9
9
  computer_cost_usd: number;
10
10
  /** Number of Computer usage sessions */
11
11
  computer_sessions: number;
@@ -15,7 +15,7 @@ export interface WorkspaceUsageResponseOut {
15
15
  daily: AthenaIntelligence.WorkspaceUsageDayOut[];
16
16
  /** Length of the reporting window in days */
17
17
  days: number;
18
- /** Cost of dry-run (test) sessions */
18
+ /** Cost in USD of dry-run (test) sessions. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
19
19
  dry_run_cost_usd: number;
20
20
  /** Number of dry-run (test) sessions */
21
21
  dry_run_sessions: number;
@@ -27,7 +27,7 @@ export interface WorkspaceUsageResponseOut {
27
27
  per_user: AthenaIntelligence.WorkspaceUsageUserOut[];
28
28
  /** Token counters across the workspace's sessions in the window, excluding dry-run (test) sessions */
29
29
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
30
- /** Total LLM cost in USD */
30
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
31
31
  total_cost_usd: number;
32
32
  /** Number of sessions in the window */
33
33
  total_sessions: number;
@@ -36,7 +36,7 @@ export interface WorkspaceUsageSessionRowOut {
36
36
  requested_model: string | null;
37
37
  /** Model that actually served the calls */
38
38
  resolved_model: string;
39
- /** Billed cost of this row in USD; safe to sum across rows */
39
+ /** Billed cost of this row in USD; safe to sum across rows. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
40
40
  row_total_cost_usd: number;
41
41
  /** Model calls aggregated into this row */
42
42
  run_count: number;
@@ -44,7 +44,7 @@ export interface WorkspaceUsageSessionRowOut {
44
44
  session_created_at: string;
45
45
  /** Session (conversation) asset id */
46
46
  session_id: string;
47
- /** Billed cost of the whole session in USD, carried by the session's first row only and null on its other rows, so summing the column never double-counts (same convention as the CSV export) */
47
+ /** Billed cost of the whole session in USD, carried by the session's first row only and null on its other rows, so summing the column never double-counts (same convention as the CSV export). Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
48
48
  session_total_cost_usd: number | null;
49
49
  /** Outcome of the aggregated calls; `untracked` marks a session metered before token tracking existed, whose token counters are null */
50
50
  status: string;
@@ -15,7 +15,7 @@ export interface WorkspaceUsageUserOut {
15
15
  session_count: number;
16
16
  /** Token counters across the user's sessions */
17
17
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
18
- /** Total LLM cost in USD */
18
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
19
19
  total_cost_usd: number;
20
20
  /** The user ID */
21
21
  user_id: string;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2302";
1
+ export declare const SDK_VERSION = "4.3.2304";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.3.2302";
4
+ exports.SDK_VERSION = "4.3.2304";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@athenaintel/sdk",
9
- "X-Fern-SDK-Version": "4.3.2302",
10
- "User-Agent": "@athenaintel/sdk/4.3.2302",
9
+ "X-Fern-SDK-Version": "4.3.2304",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2304",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -48,7 +48,7 @@ export interface SessionOut {
48
48
  thread_id: string;
49
49
  /** Display title of the session */
50
50
  title?: string | null;
51
- /** Total LLM cost of the session in USD, when tracked. Null unless the caller is Athena staff or an owner or manager of the session's workspace */
51
+ /** Total LLM cost of the session in USD, when tracked. Null unless the caller is Athena staff or an owner or manager of the session's workspace. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
52
52
  total_cost_usd?: number | null;
53
53
  /** Trigger that started an AOP/workflow run, such as schedule or api */
54
54
  trigger_type?: string | null;
@@ -17,6 +17,6 @@ export interface WorkspaceUsageComputerOut {
17
17
  title?: string | null;
18
18
  /** Token counters behind this Computer's usage */
19
19
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
20
- /** Total LLM cost in USD */
20
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
21
21
  total_cost_usd: number;
22
22
  }
@@ -9,6 +9,6 @@ export interface WorkspaceUsageDayOut {
9
9
  session_count: number;
10
10
  /** Token counters for the day */
11
11
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
12
- /** Total LLM cost in USD for the day */
12
+ /** Total LLM cost in USD for the day. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
13
13
  total_cost_usd: number;
14
14
  }
@@ -5,7 +5,7 @@ import type * as AthenaIntelligence from "../index.mjs";
5
5
  export interface WorkspaceUsageResponseOut {
6
6
  /** Users with at least one session */
7
7
  active_users: number;
8
- /** Portion of total_cost_usd produced by Computers */
8
+ /** Portion of total_cost_usd produced by Computers. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
9
9
  computer_cost_usd: number;
10
10
  /** Number of Computer usage sessions */
11
11
  computer_sessions: number;
@@ -15,7 +15,7 @@ export interface WorkspaceUsageResponseOut {
15
15
  daily: AthenaIntelligence.WorkspaceUsageDayOut[];
16
16
  /** Length of the reporting window in days */
17
17
  days: number;
18
- /** Cost of dry-run (test) sessions */
18
+ /** Cost in USD of dry-run (test) sessions. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
19
19
  dry_run_cost_usd: number;
20
20
  /** Number of dry-run (test) sessions */
21
21
  dry_run_sessions: number;
@@ -27,7 +27,7 @@ export interface WorkspaceUsageResponseOut {
27
27
  per_user: AthenaIntelligence.WorkspaceUsageUserOut[];
28
28
  /** Token counters across the workspace's sessions in the window, excluding dry-run (test) sessions */
29
29
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
30
- /** Total LLM cost in USD */
30
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
31
31
  total_cost_usd: number;
32
32
  /** Number of sessions in the window */
33
33
  total_sessions: number;
@@ -36,7 +36,7 @@ export interface WorkspaceUsageSessionRowOut {
36
36
  requested_model: string | null;
37
37
  /** Model that actually served the calls */
38
38
  resolved_model: string;
39
- /** Billed cost of this row in USD; safe to sum across rows */
39
+ /** Billed cost of this row in USD; safe to sum across rows. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
40
40
  row_total_cost_usd: number;
41
41
  /** Model calls aggregated into this row */
42
42
  run_count: number;
@@ -44,7 +44,7 @@ export interface WorkspaceUsageSessionRowOut {
44
44
  session_created_at: string;
45
45
  /** Session (conversation) asset id */
46
46
  session_id: string;
47
- /** Billed cost of the whole session in USD, carried by the session's first row only and null on its other rows, so summing the column never double-counts (same convention as the CSV export) */
47
+ /** Billed cost of the whole session in USD, carried by the session's first row only and null on its other rows, so summing the column never double-counts (same convention as the CSV export). Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
48
48
  session_total_cost_usd: number | null;
49
49
  /** Outcome of the aggregated calls; `untracked` marks a session metered before token tracking existed, whose token counters are null */
50
50
  status: string;
@@ -15,7 +15,7 @@ export interface WorkspaceUsageUserOut {
15
15
  session_count: number;
16
16
  /** Token counters across the user's sessions */
17
17
  tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
18
- /** Total LLM cost in USD */
18
+ /** Total LLM cost in USD. Already includes the workspace's LLM cost multiplier, applied once to the provider's rate; never apply it again. Sessions priced before the in-house token ledger carry their legacy figure, without it. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum. */
19
19
  total_cost_usd: number;
20
20
  /** The user ID */
21
21
  user_id: string;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2302";
1
+ export declare const SDK_VERSION = "4.3.2304";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2302";
1
+ export const SDK_VERSION = "4.3.2304";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2302",
3
+ "version": "4.3.2304",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",