@athenaintel/sdk 4.3.2250 → 4.3.2252
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/workspaces/client/Client.js +281 -0
- package/dist/cjs/api/resources/workspaces/client/requests/GetUsageWorkspacesRequest.d.ts +12 -0
- package/dist/cjs/api/resources/workspaces/client/requests/GetUsageWorkspacesRequest.js +3 -0
- package/dist/cjs/api/resources/workspaces/client/requests/ListMembershipsWorkspacesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/workspaces/client/requests/ListMembershipsWorkspacesRequest.js +3 -0
- package/dist/cjs/api/resources/workspaces/client/requests/ListUsageSessionsWorkspacesRequest.d.ts +22 -0
- package/dist/cjs/api/resources/workspaces/client/requests/ListUsageSessionsWorkspacesRequest.js +3 -0
- package/dist/cjs/api/resources/workspaces/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/types/WorkspaceMembershipListResponseOut.d.ts +12 -0
- package/dist/cjs/api/types/WorkspaceMembershipListResponseOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceMembershipOut.d.ts +18 -0
- package/dist/cjs/api/types/WorkspaceMembershipOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageComputerOut.d.ts +22 -0
- package/dist/cjs/api/types/WorkspaceUsageComputerOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageDayOut.d.ts +14 -0
- package/dist/cjs/api/types/WorkspaceUsageDayOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageResponseOut.d.ts +36 -0
- package/dist/cjs/api/types/WorkspaceUsageResponseOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageSessionRowOut.d.ts +65 -0
- package/dist/cjs/api/types/WorkspaceUsageSessionRowOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageSessionsResponseOut.d.ts +13 -0
- package/dist/cjs/api/types/WorkspaceUsageSessionsResponseOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageTokensOut.d.ts +17 -0
- package/dist/cjs/api/types/WorkspaceUsageTokensOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageUserOut.d.ts +22 -0
- package/dist/cjs/api/types/WorkspaceUsageUserOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceUsageWindowOut.d.ts +15 -0
- package/dist/cjs/api/types/WorkspaceUsageWindowOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +10 -0
- package/dist/cjs/api/types/index.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/workspaces/client/Client.mjs +281 -0
- package/dist/esm/api/resources/workspaces/client/requests/GetUsageWorkspacesRequest.d.mts +12 -0
- package/dist/esm/api/resources/workspaces/client/requests/GetUsageWorkspacesRequest.mjs +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/ListMembershipsWorkspacesRequest.d.mts +18 -0
- package/dist/esm/api/resources/workspaces/client/requests/ListMembershipsWorkspacesRequest.mjs +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/ListUsageSessionsWorkspacesRequest.d.mts +22 -0
- package/dist/esm/api/resources/workspaces/client/requests/ListUsageSessionsWorkspacesRequest.mjs +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/index.d.mts +3 -0
- package/dist/esm/api/types/WorkspaceMembershipListResponseOut.d.mts +12 -0
- package/dist/esm/api/types/WorkspaceMembershipListResponseOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceMembershipOut.d.mts +18 -0
- package/dist/esm/api/types/WorkspaceMembershipOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageComputerOut.d.mts +22 -0
- package/dist/esm/api/types/WorkspaceUsageComputerOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageDayOut.d.mts +14 -0
- package/dist/esm/api/types/WorkspaceUsageDayOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageResponseOut.d.mts +36 -0
- package/dist/esm/api/types/WorkspaceUsageResponseOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageSessionRowOut.d.mts +65 -0
- package/dist/esm/api/types/WorkspaceUsageSessionRowOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageSessionsResponseOut.d.mts +13 -0
- package/dist/esm/api/types/WorkspaceUsageSessionsResponseOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageTokensOut.d.mts +17 -0
- package/dist/esm/api/types/WorkspaceUsageTokensOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageUserOut.d.mts +22 -0
- package/dist/esm/api/types/WorkspaceUsageUserOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUsageWindowOut.d.mts +15 -0
- package/dist/esm/api/types/WorkspaceUsageWindowOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +10 -0
- package/dist/esm/api/types/index.mjs +10 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +200 -0
package/dist/esm/api/resources/workspaces/client/requests/ListUsageSessionsWorkspacesRequest.d.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* workspace_id: "workspace_eb171baf",
|
|
5
|
+
* days: 30,
|
|
6
|
+
* limit: 100
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListUsageSessionsWorkspacesRequest {
|
|
10
|
+
/** Unique identifier of the workspace */
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
/** First UTC day of the window (YYYY-MM-DD); requires `to` */
|
|
13
|
+
from?: string | null;
|
|
14
|
+
/** Last UTC day of the window, inclusive (YYYY-MM-DD); requires `from` */
|
|
15
|
+
to?: string | null;
|
|
16
|
+
/** Rolling window in days ending now; ignored when `from`/`to` are given */
|
|
17
|
+
days?: number;
|
|
18
|
+
/** `next_cursor` from the previous page */
|
|
19
|
+
cursor?: string | null;
|
|
20
|
+
/** Maximum sessions per page (each may yield several rows) */
|
|
21
|
+
limit?: number;
|
|
22
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type { CreatePresenceTokenWorkspacesRequest } from "./CreatePresenceTokenWorkspacesRequest.mjs";
|
|
2
2
|
export type { GetConfigurationWorkspacesRequest } from "./GetConfigurationWorkspacesRequest.mjs";
|
|
3
3
|
export type { GetToolRegistryWorkspacesRequest } from "./GetToolRegistryWorkspacesRequest.mjs";
|
|
4
|
+
export type { GetUsageWorkspacesRequest } from "./GetUsageWorkspacesRequest.mjs";
|
|
5
|
+
export type { ListMembershipsWorkspacesRequest } from "./ListMembershipsWorkspacesRequest.mjs";
|
|
6
|
+
export type { ListUsageSessionsWorkspacesRequest } from "./ListUsageSessionsWorkspacesRequest.mjs";
|
|
4
7
|
export type { PresenceResolveRequestIn } from "./PresenceResolveRequestIn.mjs";
|
|
5
8
|
export type { SearchMembersWorkspacesRequest } from "./SearchMembersWorkspacesRequest.mjs";
|
|
6
9
|
export type { UpdateWorkspaceConfigurationRequestIn } from "./UpdateWorkspaceConfigurationRequestIn.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* One page of a workspace's membership roster.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceMembershipListResponseOut {
|
|
6
|
+
/** Memberships for this page, ordered by user id */
|
|
7
|
+
memberships: AthenaIntelligence.WorkspaceMembershipOut[];
|
|
8
|
+
/** Pass as `cursor` to fetch the next page; null on the last page */
|
|
9
|
+
next_cursor: string | null;
|
|
10
|
+
/** Workspace the roster belongs to */
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One member of a workspace and their role.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceMembershipOut {
|
|
5
|
+
email: string;
|
|
6
|
+
first_name: string | null;
|
|
7
|
+
/** Membership has been removed from the workspace */
|
|
8
|
+
is_archived: boolean;
|
|
9
|
+
/** The user account is suspended deployment-wide */
|
|
10
|
+
is_suspended: boolean;
|
|
11
|
+
/** When the membership was created */
|
|
12
|
+
joined_at: string;
|
|
13
|
+
last_name: string | null;
|
|
14
|
+
/** Workspace role: owner, manager or user */
|
|
15
|
+
role: string;
|
|
16
|
+
/** User id, stable across workspaces */
|
|
17
|
+
user_id: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Usage attributed to one Computer asset over the window.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceUsageComputerOut {
|
|
6
|
+
/** The Computer asset ID */
|
|
7
|
+
computer_asset_id: string;
|
|
8
|
+
/** Whether the Computer is archived */
|
|
9
|
+
is_archived: boolean;
|
|
10
|
+
/** When the most recent usage session was created */
|
|
11
|
+
last_session_at?: string | null;
|
|
12
|
+
/** Number of successful model calls */
|
|
13
|
+
request_count: number;
|
|
14
|
+
/** Number of usage sessions */
|
|
15
|
+
session_count: number;
|
|
16
|
+
/** The Computer's title */
|
|
17
|
+
title?: string | null;
|
|
18
|
+
/** Token counters behind this Computer's usage */
|
|
19
|
+
tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
20
|
+
/** Total LLM cost in USD */
|
|
21
|
+
total_cost_usd: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Usage of the workspace on one UTC day.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceUsageDayOut {
|
|
6
|
+
/** Date in YYYY-MM-DD format (UTC) */
|
|
7
|
+
date: string;
|
|
8
|
+
/** Number of sessions created on the day */
|
|
9
|
+
session_count: number;
|
|
10
|
+
/** Token counters for the day */
|
|
11
|
+
tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
12
|
+
/** Total LLM cost in USD for the day */
|
|
13
|
+
total_cost_usd: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Aggregated LLM token and cost usage for one workspace.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceUsageResponseOut {
|
|
6
|
+
/** Users with at least one session */
|
|
7
|
+
active_users: number;
|
|
8
|
+
/** Portion of total_cost_usd produced by Computers */
|
|
9
|
+
computer_cost_usd: number;
|
|
10
|
+
/** Number of Computer usage sessions */
|
|
11
|
+
computer_sessions: number;
|
|
12
|
+
/** Portion of tokens produced by Computers' LLM usage (already included in tokens, never additive) */
|
|
13
|
+
computer_tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
14
|
+
/** Per-day breakdown, oldest first */
|
|
15
|
+
daily: AthenaIntelligence.WorkspaceUsageDayOut[];
|
|
16
|
+
/** Length of the reporting window in days */
|
|
17
|
+
days: number;
|
|
18
|
+
/** Cost of dry-run (test) sessions */
|
|
19
|
+
dry_run_cost_usd: number;
|
|
20
|
+
/** Number of dry-run (test) sessions */
|
|
21
|
+
dry_run_sessions: number;
|
|
22
|
+
/** Token counters from dry-run (test) sessions, excluded from tokens */
|
|
23
|
+
dry_run_tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
24
|
+
/** Per-Computer breakdown, highest cost first */
|
|
25
|
+
per_computer: AthenaIntelligence.WorkspaceUsageComputerOut[];
|
|
26
|
+
/** Per-member breakdown, highest cost first */
|
|
27
|
+
per_user: AthenaIntelligence.WorkspaceUsageUserOut[];
|
|
28
|
+
/** Token counters across the workspace's sessions in the window, excluding dry-run (test) sessions */
|
|
29
|
+
tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
30
|
+
/** Total LLM cost in USD */
|
|
31
|
+
total_cost_usd: number;
|
|
32
|
+
/** Number of sessions in the window */
|
|
33
|
+
total_sessions: number;
|
|
34
|
+
/** The workspace ID */
|
|
35
|
+
workspace_id: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token usage of one session for one provider/model/status combination.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceUsageSessionRowOut {
|
|
5
|
+
/** AOP asset id when started by an AOP run */
|
|
6
|
+
aop_id: string | null;
|
|
7
|
+
/** Title of that AOP */
|
|
8
|
+
aop_title: string | null;
|
|
9
|
+
/** Billing attribution of the session */
|
|
10
|
+
billed_to: string | null;
|
|
11
|
+
/** Null for an `untracked` row */
|
|
12
|
+
cache_creation_input_tokens: number | null;
|
|
13
|
+
/** Null for an `untracked` row */
|
|
14
|
+
cache_read_input_tokens: number | null;
|
|
15
|
+
/** Earliest model call in the row */
|
|
16
|
+
first_event_at: string | null;
|
|
17
|
+
/** Null for an `untracked` row */
|
|
18
|
+
input_tokens: number | null;
|
|
19
|
+
/** Latest model call in the row */
|
|
20
|
+
last_event_at: string | null;
|
|
21
|
+
/** How the session was started (user_chat, aop_execution, public_api, ...) */
|
|
22
|
+
origin_kind: string | null;
|
|
23
|
+
/** Human label for origin_kind */
|
|
24
|
+
origin_kind_label: string | null;
|
|
25
|
+
/** Null for an `untracked` row */
|
|
26
|
+
output_tokens: number | null;
|
|
27
|
+
/** Project asset id, if any */
|
|
28
|
+
project_id: string | null;
|
|
29
|
+
/** Title of that project */
|
|
30
|
+
project_title: string | null;
|
|
31
|
+
/** LLM provider */
|
|
32
|
+
provider: string;
|
|
33
|
+
/** Null for an `untracked` row */
|
|
34
|
+
reasoning_output_tokens: number | null;
|
|
35
|
+
/** Model the session asked for */
|
|
36
|
+
requested_model: string | null;
|
|
37
|
+
/** Model that actually served the calls */
|
|
38
|
+
resolved_model: string;
|
|
39
|
+
/** Billed cost of this row in USD; safe to sum across rows */
|
|
40
|
+
row_total_cost_usd: number;
|
|
41
|
+
/** Model calls aggregated into this row */
|
|
42
|
+
run_count: number;
|
|
43
|
+
/** When the session was created */
|
|
44
|
+
session_created_at: string;
|
|
45
|
+
/** Session (conversation) asset id */
|
|
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) */
|
|
48
|
+
session_total_cost_usd: number | null;
|
|
49
|
+
/** Outcome of the aggregated calls; `untracked` marks a session metered before token tracking existed, whose token counters are null */
|
|
50
|
+
status: string;
|
|
51
|
+
/** Null for an `untracked` row */
|
|
52
|
+
total_tokens: number | null;
|
|
53
|
+
/** AOP trigger type, if any */
|
|
54
|
+
trigger_type: string | null;
|
|
55
|
+
/** Null for an `untracked` row */
|
|
56
|
+
uncached_input_tokens: number | null;
|
|
57
|
+
/** Window end (exclusive) the row was bounded to */
|
|
58
|
+
usage_period_end_exclusive: string | null;
|
|
59
|
+
/** Window start the row was bounded to */
|
|
60
|
+
usage_period_start: string;
|
|
61
|
+
/** Email of the member who ran the session */
|
|
62
|
+
user_email: string | null;
|
|
63
|
+
/** Display name of that member */
|
|
64
|
+
user_name: string | null;
|
|
65
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* One page of per-session token usage for a workspace.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceUsageSessionsResponseOut {
|
|
6
|
+
/** Pass as `cursor` to fetch the next page; null when the window is exhausted */
|
|
7
|
+
next_cursor: string | null;
|
|
8
|
+
/** Rows for this page, newest session first */
|
|
9
|
+
sessions: AthenaIntelligence.WorkspaceUsageSessionRowOut[];
|
|
10
|
+
window: AthenaIntelligence.WorkspaceUsageWindowOut;
|
|
11
|
+
/** Workspace the rows belong to */
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token counters summed from the sessions' LLM usage ledgers.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceUsageTokensOut {
|
|
5
|
+
/** Input tokens written to the provider's prompt cache */
|
|
6
|
+
cache_creation_input_tokens: number;
|
|
7
|
+
/** Input tokens served from the provider's prompt cache */
|
|
8
|
+
cache_read_input_tokens: number;
|
|
9
|
+
/** Input (prompt) tokens, including cached reads */
|
|
10
|
+
input_tokens: number;
|
|
11
|
+
/** Output (completion) tokens, including reasoning tokens */
|
|
12
|
+
output_tokens: number;
|
|
13
|
+
/** Output tokens spent on reasoning */
|
|
14
|
+
reasoning_output_tokens: number;
|
|
15
|
+
/** Total tokens (input + output) */
|
|
16
|
+
total_tokens: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Usage of one workspace member over the window.
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkspaceUsageUserOut {
|
|
6
|
+
/** The user's email */
|
|
7
|
+
email: string;
|
|
8
|
+
/** First name */
|
|
9
|
+
first_name?: string | null;
|
|
10
|
+
/** Last name */
|
|
11
|
+
last_name?: string | null;
|
|
12
|
+
/** When the user's most recent session was created */
|
|
13
|
+
last_session_at?: string | null;
|
|
14
|
+
/** Number of sessions */
|
|
15
|
+
session_count: number;
|
|
16
|
+
/** Token counters across the user's sessions */
|
|
17
|
+
tokens: AthenaIntelligence.WorkspaceUsageTokensOut;
|
|
18
|
+
/** Total LLM cost in USD */
|
|
19
|
+
total_cost_usd: number;
|
|
20
|
+
/** The user ID */
|
|
21
|
+
user_id: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reporting window a usage page covers.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceUsageWindowOut {
|
|
5
|
+
/** Number of days the window spans */
|
|
6
|
+
days: number;
|
|
7
|
+
/** Last UTC day (inclusive) of an explicit window; null for a rolling window */
|
|
8
|
+
end_date: string | null;
|
|
9
|
+
/** First UTC day of an explicit `from`/`to` window; null for a rolling window */
|
|
10
|
+
start_date: string | null;
|
|
11
|
+
/** Window end (exclusive); null means 'now' for a rolling window */
|
|
12
|
+
usage_period_end_exclusive: string | null;
|
|
13
|
+
/** Window start (inclusive) */
|
|
14
|
+
usage_period_start: string;
|
|
15
|
+
}
|
|
@@ -165,7 +165,17 @@ export * from "./WorkspaceDisclaimerOut.mjs";
|
|
|
165
165
|
export * from "./WorkspaceInfoOut.mjs";
|
|
166
166
|
export * from "./WorkspaceMemberOut.mjs";
|
|
167
167
|
export * from "./WorkspaceMemberSearchResponseOut.mjs";
|
|
168
|
+
export * from "./WorkspaceMembershipListResponseOut.mjs";
|
|
169
|
+
export * from "./WorkspaceMembershipOut.mjs";
|
|
168
170
|
export * from "./WorkspaceShareAccess.mjs";
|
|
169
171
|
export * from "./WorkspaceToolRegistryResponseOut.mjs";
|
|
170
172
|
export * from "./WorkspaceToolRegistryToolOut.mjs";
|
|
173
|
+
export * from "./WorkspaceUsageComputerOut.mjs";
|
|
174
|
+
export * from "./WorkspaceUsageDayOut.mjs";
|
|
175
|
+
export * from "./WorkspaceUsageResponseOut.mjs";
|
|
176
|
+
export * from "./WorkspaceUsageSessionRowOut.mjs";
|
|
177
|
+
export * from "./WorkspaceUsageSessionsResponseOut.mjs";
|
|
178
|
+
export * from "./WorkspaceUsageTokensOut.mjs";
|
|
179
|
+
export * from "./WorkspaceUsageUserOut.mjs";
|
|
180
|
+
export * from "./WorkspaceUsageWindowOut.mjs";
|
|
171
181
|
export * from "./WrapStrategy.mjs";
|
|
@@ -165,7 +165,17 @@ export * from "./WorkspaceDisclaimerOut.mjs";
|
|
|
165
165
|
export * from "./WorkspaceInfoOut.mjs";
|
|
166
166
|
export * from "./WorkspaceMemberOut.mjs";
|
|
167
167
|
export * from "./WorkspaceMemberSearchResponseOut.mjs";
|
|
168
|
+
export * from "./WorkspaceMembershipListResponseOut.mjs";
|
|
169
|
+
export * from "./WorkspaceMembershipOut.mjs";
|
|
168
170
|
export * from "./WorkspaceShareAccess.mjs";
|
|
169
171
|
export * from "./WorkspaceToolRegistryResponseOut.mjs";
|
|
170
172
|
export * from "./WorkspaceToolRegistryToolOut.mjs";
|
|
173
|
+
export * from "./WorkspaceUsageComputerOut.mjs";
|
|
174
|
+
export * from "./WorkspaceUsageDayOut.mjs";
|
|
175
|
+
export * from "./WorkspaceUsageResponseOut.mjs";
|
|
176
|
+
export * from "./WorkspaceUsageSessionRowOut.mjs";
|
|
177
|
+
export * from "./WorkspaceUsageSessionsResponseOut.mjs";
|
|
178
|
+
export * from "./WorkspaceUsageTokensOut.mjs";
|
|
179
|
+
export * from "./WorkspaceUsageUserOut.mjs";
|
|
180
|
+
export * from "./WorkspaceUsageWindowOut.mjs";
|
|
171
181
|
export * from "./WrapStrategy.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2252";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2252";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5578,6 +5578,73 @@ await client.workspaces.searchMembers({
|
|
|
5578
5578
|
</dl>
|
|
5579
5579
|
|
|
5580
5580
|
|
|
5581
|
+
</dd>
|
|
5582
|
+
</dl>
|
|
5583
|
+
</details>
|
|
5584
|
+
|
|
5585
|
+
<details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">listMemberships</a>({ ...params }) -> AthenaIntelligence.WorkspaceMembershipListResponseOut</code></summary>
|
|
5586
|
+
<dl>
|
|
5587
|
+
<dd>
|
|
5588
|
+
|
|
5589
|
+
#### 📝 Description
|
|
5590
|
+
|
|
5591
|
+
<dl>
|
|
5592
|
+
<dd>
|
|
5593
|
+
|
|
5594
|
+
<dl>
|
|
5595
|
+
<dd>
|
|
5596
|
+
|
|
5597
|
+
The full membership roster of one workspace with each member's user id, name, email, role and join date — built for usage reporting and licence reconciliation, unlike the share-picker search at `GET /workspaces/{workspace_id}/members`. Removed members are left out unless `include_archived=true`. Pages are ordered by user id; `next_cursor` is returned while more remain. Requires workspace owner or manager (or Athena admin) permissions.
|
|
5598
|
+
</dd>
|
|
5599
|
+
</dl>
|
|
5600
|
+
</dd>
|
|
5601
|
+
</dl>
|
|
5602
|
+
|
|
5603
|
+
#### 🔌 Usage
|
|
5604
|
+
|
|
5605
|
+
<dl>
|
|
5606
|
+
<dd>
|
|
5607
|
+
|
|
5608
|
+
<dl>
|
|
5609
|
+
<dd>
|
|
5610
|
+
|
|
5611
|
+
```typescript
|
|
5612
|
+
await client.workspaces.listMemberships({
|
|
5613
|
+
workspace_id: "workspace_eb171baf",
|
|
5614
|
+
include_archived: false,
|
|
5615
|
+
limit: 200
|
|
5616
|
+
});
|
|
5617
|
+
|
|
5618
|
+
```
|
|
5619
|
+
</dd>
|
|
5620
|
+
</dl>
|
|
5621
|
+
</dd>
|
|
5622
|
+
</dl>
|
|
5623
|
+
|
|
5624
|
+
#### ⚙️ Parameters
|
|
5625
|
+
|
|
5626
|
+
<dl>
|
|
5627
|
+
<dd>
|
|
5628
|
+
|
|
5629
|
+
<dl>
|
|
5630
|
+
<dd>
|
|
5631
|
+
|
|
5632
|
+
**request:** `AthenaIntelligence.ListMembershipsWorkspacesRequest`
|
|
5633
|
+
|
|
5634
|
+
</dd>
|
|
5635
|
+
</dl>
|
|
5636
|
+
|
|
5637
|
+
<dl>
|
|
5638
|
+
<dd>
|
|
5639
|
+
|
|
5640
|
+
**requestOptions:** `WorkspacesClient.RequestOptions`
|
|
5641
|
+
|
|
5642
|
+
</dd>
|
|
5643
|
+
</dl>
|
|
5644
|
+
</dd>
|
|
5645
|
+
</dl>
|
|
5646
|
+
|
|
5647
|
+
|
|
5581
5648
|
</dd>
|
|
5582
5649
|
</dl>
|
|
5583
5650
|
</details>
|
|
@@ -5847,6 +5914,139 @@ await client.workspaces.updateToolRegistry({
|
|
|
5847
5914
|
</dl>
|
|
5848
5915
|
|
|
5849
5916
|
|
|
5917
|
+
</dd>
|
|
5918
|
+
</dl>
|
|
5919
|
+
</details>
|
|
5920
|
+
|
|
5921
|
+
<details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">getUsage</a>({ ...params }) -> AthenaIntelligence.WorkspaceUsageResponseOut</code></summary>
|
|
5922
|
+
<dl>
|
|
5923
|
+
<dd>
|
|
5924
|
+
|
|
5925
|
+
#### 📝 Description
|
|
5926
|
+
|
|
5927
|
+
<dl>
|
|
5928
|
+
<dd>
|
|
5929
|
+
|
|
5930
|
+
<dl>
|
|
5931
|
+
<dd>
|
|
5932
|
+
|
|
5933
|
+
Aggregate LLM token usage (and cost) for one workspace over the last `days` days: workspace totals plus per-member, per-day and per-Computer breakdowns. Token counters are summed from each session's usage ledger; dry-run (test) sessions are reported separately and excluded from the totals. Requires workspace owner or manager (or Athena admin) permissions — the same gate as the in-app Usage page.
|
|
5934
|
+
</dd>
|
|
5935
|
+
</dl>
|
|
5936
|
+
</dd>
|
|
5937
|
+
</dl>
|
|
5938
|
+
|
|
5939
|
+
#### 🔌 Usage
|
|
5940
|
+
|
|
5941
|
+
<dl>
|
|
5942
|
+
<dd>
|
|
5943
|
+
|
|
5944
|
+
<dl>
|
|
5945
|
+
<dd>
|
|
5946
|
+
|
|
5947
|
+
```typescript
|
|
5948
|
+
await client.workspaces.getUsage({
|
|
5949
|
+
workspace_id: "workspace_id",
|
|
5950
|
+
days: 30
|
|
5951
|
+
});
|
|
5952
|
+
|
|
5953
|
+
```
|
|
5954
|
+
</dd>
|
|
5955
|
+
</dl>
|
|
5956
|
+
</dd>
|
|
5957
|
+
</dl>
|
|
5958
|
+
|
|
5959
|
+
#### ⚙️ Parameters
|
|
5960
|
+
|
|
5961
|
+
<dl>
|
|
5962
|
+
<dd>
|
|
5963
|
+
|
|
5964
|
+
<dl>
|
|
5965
|
+
<dd>
|
|
5966
|
+
|
|
5967
|
+
**request:** `AthenaIntelligence.GetUsageWorkspacesRequest`
|
|
5968
|
+
|
|
5969
|
+
</dd>
|
|
5970
|
+
</dl>
|
|
5971
|
+
|
|
5972
|
+
<dl>
|
|
5973
|
+
<dd>
|
|
5974
|
+
|
|
5975
|
+
**requestOptions:** `WorkspacesClient.RequestOptions`
|
|
5976
|
+
|
|
5977
|
+
</dd>
|
|
5978
|
+
</dl>
|
|
5979
|
+
</dd>
|
|
5980
|
+
</dl>
|
|
5981
|
+
|
|
5982
|
+
|
|
5983
|
+
</dd>
|
|
5984
|
+
</dl>
|
|
5985
|
+
</details>
|
|
5986
|
+
|
|
5987
|
+
<details><summary><code>client.workspaces.<a href="/src/api/resources/workspaces/client/Client.ts">listUsageSessions</a>({ ...params }) -> AthenaIntelligence.WorkspaceUsageSessionsResponseOut</code></summary>
|
|
5988
|
+
<dl>
|
|
5989
|
+
<dd>
|
|
5990
|
+
|
|
5991
|
+
#### 📝 Description
|
|
5992
|
+
|
|
5993
|
+
<dl>
|
|
5994
|
+
<dd>
|
|
5995
|
+
|
|
5996
|
+
<dl>
|
|
5997
|
+
<dd>
|
|
5998
|
+
|
|
5999
|
+
Per-session LLM token usage for one workspace — the same rows as the workspace usage CSV export, as JSON. Each session yields one row per provider/model/status combination with its token breakdown and billed cost; dry-run (test) sessions are excluded. Pick the window with `from`/`to` (UTC dates, inclusive, at most 365 days) or a rolling `days`. Pages are keyset-paginated newest first: `limit` counts sessions, and `next_cursor` is returned while more sessions remain. Requires workspace owner or manager (or Athena admin) permissions.
|
|
6000
|
+
</dd>
|
|
6001
|
+
</dl>
|
|
6002
|
+
</dd>
|
|
6003
|
+
</dl>
|
|
6004
|
+
|
|
6005
|
+
#### 🔌 Usage
|
|
6006
|
+
|
|
6007
|
+
<dl>
|
|
6008
|
+
<dd>
|
|
6009
|
+
|
|
6010
|
+
<dl>
|
|
6011
|
+
<dd>
|
|
6012
|
+
|
|
6013
|
+
```typescript
|
|
6014
|
+
await client.workspaces.listUsageSessions({
|
|
6015
|
+
workspace_id: "workspace_eb171baf",
|
|
6016
|
+
days: 30,
|
|
6017
|
+
limit: 100
|
|
6018
|
+
});
|
|
6019
|
+
|
|
6020
|
+
```
|
|
6021
|
+
</dd>
|
|
6022
|
+
</dl>
|
|
6023
|
+
</dd>
|
|
6024
|
+
</dl>
|
|
6025
|
+
|
|
6026
|
+
#### ⚙️ Parameters
|
|
6027
|
+
|
|
6028
|
+
<dl>
|
|
6029
|
+
<dd>
|
|
6030
|
+
|
|
6031
|
+
<dl>
|
|
6032
|
+
<dd>
|
|
6033
|
+
|
|
6034
|
+
**request:** `AthenaIntelligence.ListUsageSessionsWorkspacesRequest`
|
|
6035
|
+
|
|
6036
|
+
</dd>
|
|
6037
|
+
</dl>
|
|
6038
|
+
|
|
6039
|
+
<dl>
|
|
6040
|
+
<dd>
|
|
6041
|
+
|
|
6042
|
+
**requestOptions:** `WorkspacesClient.RequestOptions`
|
|
6043
|
+
|
|
6044
|
+
</dd>
|
|
6045
|
+
</dl>
|
|
6046
|
+
</dd>
|
|
6047
|
+
</dl>
|
|
6048
|
+
|
|
6049
|
+
|
|
5850
6050
|
</dd>
|
|
5851
6051
|
</dl>
|
|
5852
6052
|
</details>
|