@athenaintel/sdk 4.3.2110 → 4.3.2112

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.
Files changed (60) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +65 -0
  3. package/dist/cjs/api/resources/assets/client/Client.js +274 -0
  4. package/dist/cjs/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.d.ts +19 -0
  5. package/dist/cjs/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.js +3 -0
  6. package/dist/cjs/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.d.ts +15 -0
  7. package/dist/cjs/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.js +3 -0
  8. package/dist/cjs/api/resources/assets/client/requests/ListActivityAssetsRequest.d.ts +13 -0
  9. package/dist/cjs/api/resources/assets/client/requests/ListActivityAssetsRequest.js +3 -0
  10. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +3 -0
  11. package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -1
  12. package/dist/cjs/api/resources/tools/client/Client.js +7 -1
  13. package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +2 -0
  14. package/dist/cjs/api/types/ActivityClockRangeIn.d.ts +9 -0
  15. package/dist/cjs/api/types/ActivityClockRangeIn.js +3 -0
  16. package/dist/cjs/api/types/ActivityDeltaOut.d.ts +11 -0
  17. package/dist/cjs/api/types/ActivityDeltaOut.js +3 -0
  18. package/dist/cjs/api/types/ActivityItemOut.d.ts +19 -0
  19. package/dist/cjs/api/types/ActivityItemOut.js +3 -0
  20. package/dist/cjs/api/types/AssetActivityDeltaResponseOut.d.ts +11 -0
  21. package/dist/cjs/api/types/AssetActivityDeltaResponseOut.js +3 -0
  22. package/dist/cjs/api/types/AssetActivityResponseOut.d.ts +14 -0
  23. package/dist/cjs/api/types/AssetActivityResponseOut.js +3 -0
  24. package/dist/cjs/api/types/GeneralAgentConfig.d.ts +1 -1
  25. package/dist/cjs/api/types/SessionOut.d.ts +7 -1
  26. package/dist/cjs/api/types/index.d.ts +5 -0
  27. package/dist/cjs/api/types/index.js +5 -0
  28. package/dist/cjs/version.d.ts +1 -1
  29. package/dist/cjs/version.js +1 -1
  30. package/dist/esm/BaseClient.mjs +2 -2
  31. package/dist/esm/api/resources/assets/client/Client.d.mts +65 -0
  32. package/dist/esm/api/resources/assets/client/Client.mjs +274 -0
  33. package/dist/esm/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.d.mts +19 -0
  34. package/dist/esm/api/resources/assets/client/requests/AssetActivityDeltaBatchRequestIn.mjs +2 -0
  35. package/dist/esm/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.d.mts +15 -0
  36. package/dist/esm/api/resources/assets/client/requests/GetActivityDeltaAssetsRequest.mjs +2 -0
  37. package/dist/esm/api/resources/assets/client/requests/ListActivityAssetsRequest.d.mts +13 -0
  38. package/dist/esm/api/resources/assets/client/requests/ListActivityAssetsRequest.mjs +2 -0
  39. package/dist/esm/api/resources/assets/client/requests/index.d.mts +3 -0
  40. package/dist/esm/api/resources/tools/client/Client.d.mts +2 -1
  41. package/dist/esm/api/resources/tools/client/Client.mjs +7 -1
  42. package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +2 -0
  43. package/dist/esm/api/types/ActivityClockRangeIn.d.mts +9 -0
  44. package/dist/esm/api/types/ActivityClockRangeIn.mjs +2 -0
  45. package/dist/esm/api/types/ActivityDeltaOut.d.mts +11 -0
  46. package/dist/esm/api/types/ActivityDeltaOut.mjs +2 -0
  47. package/dist/esm/api/types/ActivityItemOut.d.mts +19 -0
  48. package/dist/esm/api/types/ActivityItemOut.mjs +2 -0
  49. package/dist/esm/api/types/AssetActivityDeltaResponseOut.d.mts +11 -0
  50. package/dist/esm/api/types/AssetActivityDeltaResponseOut.mjs +2 -0
  51. package/dist/esm/api/types/AssetActivityResponseOut.d.mts +14 -0
  52. package/dist/esm/api/types/AssetActivityResponseOut.mjs +2 -0
  53. package/dist/esm/api/types/GeneralAgentConfig.d.mts +1 -1
  54. package/dist/esm/api/types/SessionOut.d.mts +7 -1
  55. package/dist/esm/api/types/index.d.mts +5 -0
  56. package/dist/esm/api/types/index.mjs +5 -0
  57. package/dist/esm/version.d.mts +1 -1
  58. package/dist/esm/version.mjs +1 -1
  59. package/package.json +1 -1
  60. package/reference.md +205 -1
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -10,6 +10,6 @@ export interface GeneralAgentConfig {
10
10
  export declare namespace GeneralAgentConfig {
11
11
  type EnabledTools = EnabledTools.Item[];
12
12
  namespace EnabledTools {
13
- type Item = ("search" | "browse") | string;
13
+ type Item = ("search" | "tavily_search" | "browse") | string;
14
14
  }
15
15
  }
@@ -16,6 +16,8 @@ export interface SessionOut {
16
16
  created_at: string;
17
17
  /** Unique identifier of the user who created this session */
18
18
  created_by_id?: string | null;
19
+ /** Canonical failure reason for failed runs; null for non-failed runs */
20
+ failure_reason_v2?: string | null;
19
21
  /** Unique identifier of the session asset (e.g., 'asset_abc123') */
20
22
  id: string;
21
23
  /** Whether this is a branched sub-session of another session */
@@ -28,11 +30,15 @@ export interface SessionOut {
28
30
  num_messages?: number | null;
29
31
  /** Asset ID of the parent session for sub-sessions */
30
32
  parent_session_id?: string | null;
33
+ /** Canonical latest-run status: scheduled, queued, running, needs_input, completed, failed, or canceled */
34
+ run_status_v2?: string | null;
35
+ /** Canonical user-facing session status: idle, active, needs_input, or error */
36
+ session_status_v2: string;
31
37
  /** Kind of session: 'session' (chat), 'video_session', 'desktop_session', or 'mobile_session' */
32
38
  session_type?: string | null;
33
39
  /** Channel the session originated from (e.g., 'web', 'api', 'agent_email', 'agent_slack', 'agent_sms') */
34
40
  source_channel?: string | null;
35
- /** Execution state of the session (e.g., 'running', 'completed') */
41
+ /** Deprecated legacy execution state. Use session_status_v2, run_status_v2, and failure_reason_v2 for status UI. */
36
42
  state?: string | null;
37
43
  /** LangChain thread ID backing this session's message history */
38
44
  thread_id: string;
@@ -1,3 +1,6 @@
1
+ export * from "./ActivityClockRangeIn.mjs";
2
+ export * from "./ActivityDeltaOut.mjs";
3
+ export * from "./ActivityItemOut.mjs";
1
4
  export * from "./AopAsyncExecuteResponseOut.mjs";
2
5
  export * from "./AopConfigResponseOut.mjs";
3
6
  export * from "./AopConfigUpdateResponseOut.mjs";
@@ -6,6 +9,8 @@ export * from "./AopExecuteRequestIn.mjs";
6
9
  export * from "./AopExecuteResponseOut.mjs";
7
10
  export * from "./ApprovalMode.mjs";
8
11
  export * from "./ArchiveAssetResponseOut.mjs";
12
+ export * from "./AssetActivityDeltaResponseOut.mjs";
13
+ export * from "./AssetActivityResponseOut.mjs";
9
14
  export * from "./AssetCapabilitiesResponseOut.mjs";
10
15
  export * from "./AssetComment.mjs";
11
16
  export * from "./AssetCommentThread.mjs";
@@ -1,3 +1,6 @@
1
+ export * from "./ActivityClockRangeIn.mjs";
2
+ export * from "./ActivityDeltaOut.mjs";
3
+ export * from "./ActivityItemOut.mjs";
1
4
  export * from "./AopAsyncExecuteResponseOut.mjs";
2
5
  export * from "./AopConfigResponseOut.mjs";
3
6
  export * from "./AopConfigUpdateResponseOut.mjs";
@@ -6,6 +9,8 @@ export * from "./AopExecuteRequestIn.mjs";
6
9
  export * from "./AopExecuteResponseOut.mjs";
7
10
  export * from "./ApprovalMode.mjs";
8
11
  export * from "./ArchiveAssetResponseOut.mjs";
12
+ export * from "./AssetActivityDeltaResponseOut.mjs";
13
+ export * from "./AssetActivityResponseOut.mjs";
9
14
  export * from "./AssetCapabilitiesResponseOut.mjs";
10
15
  export * from "./AssetComment.mjs";
11
16
  export * from "./AssetCommentThread.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2110";
1
+ export declare const SDK_VERSION = "4.3.2112";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2110";
1
+ export const SDK_VERSION = "4.3.2112";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2110",
3
+ "version": "4.3.2112",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -890,6 +890,210 @@ await client.assets.rename({
890
890
  </dl>
891
891
 
892
892
 
893
+ </dd>
894
+ </dl>
895
+ </details>
896
+
897
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">listActivity</a>({ ...params }) -> AthenaIntelligence.AssetActivityResponseOut</code></summary>
898
+ <dl>
899
+ <dd>
900
+
901
+ #### 📝 Description
902
+
903
+ <dl>
904
+ <dd>
905
+
906
+ <dl>
907
+ <dd>
908
+
909
+ Admin only. List the edit history of a collaborative asset, newest first: who edited it, when, and under which agent/session attribution. Works for every collaborative asset type. Each item's from_clock/to_clock identify the edit for the companion delta endpoint, which reports what actually changed.
910
+ </dd>
911
+ </dl>
912
+ </dd>
913
+ </dl>
914
+
915
+ #### 🔌 Usage
916
+
917
+ <dl>
918
+ <dd>
919
+
920
+ <dl>
921
+ <dd>
922
+
923
+ ```typescript
924
+ await client.assets.listActivity({
925
+ asset_id: "asset_id"
926
+ });
927
+
928
+ ```
929
+ </dd>
930
+ </dl>
931
+ </dd>
932
+ </dl>
933
+
934
+ #### ⚙️ Parameters
935
+
936
+ <dl>
937
+ <dd>
938
+
939
+ <dl>
940
+ <dd>
941
+
942
+ **request:** `AthenaIntelligence.ListActivityAssetsRequest`
943
+
944
+ </dd>
945
+ </dl>
946
+
947
+ <dl>
948
+ <dd>
949
+
950
+ **requestOptions:** `AssetsClient.RequestOptions`
951
+
952
+ </dd>
953
+ </dl>
954
+ </dd>
955
+ </dl>
956
+
957
+
958
+ </dd>
959
+ </dl>
960
+ </details>
961
+
962
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">getActivityDelta</a>({ ...params }) -> AthenaIntelligence.AssetActivityDeltaResponseOut</code></summary>
963
+ <dl>
964
+ <dd>
965
+
966
+ #### 📝 Description
967
+
968
+ <dl>
969
+ <dd>
970
+
971
+ <dl>
972
+ <dd>
973
+
974
+ Admin only. Report what changed between two Keryx clocks — for spreadsheets, the per-cell before/after values; for documents, the inserted and deleted text; for presentations, the affected slides. Take the clocks from the activity endpoint. Computed by the same differ the in-app Activity pane renders, so the payload matches what a user sees. Always inspect delta.coverage: caps and non-decodable bulk regions are reported there rather than silently omitted.
975
+ </dd>
976
+ </dl>
977
+ </dd>
978
+ </dl>
979
+
980
+ #### 🔌 Usage
981
+
982
+ <dl>
983
+ <dd>
984
+
985
+ <dl>
986
+ <dd>
987
+
988
+ ```typescript
989
+ await client.assets.getActivityDelta({
990
+ asset_id: "asset_id",
991
+ from: 1,
992
+ to: 1
993
+ });
994
+
995
+ ```
996
+ </dd>
997
+ </dl>
998
+ </dd>
999
+ </dl>
1000
+
1001
+ #### ⚙️ Parameters
1002
+
1003
+ <dl>
1004
+ <dd>
1005
+
1006
+ <dl>
1007
+ <dd>
1008
+
1009
+ **request:** `AthenaIntelligence.GetActivityDeltaAssetsRequest`
1010
+
1011
+ </dd>
1012
+ </dl>
1013
+
1014
+ <dl>
1015
+ <dd>
1016
+
1017
+ **requestOptions:** `AssetsClient.RequestOptions`
1018
+
1019
+ </dd>
1020
+ </dl>
1021
+ </dd>
1022
+ </dl>
1023
+
1024
+
1025
+ </dd>
1026
+ </dl>
1027
+ </details>
1028
+
1029
+ <details><summary><code>client.assets.<a href="/src/api/resources/assets/client/Client.ts">getActivityDeltas</a>({ ...params }) -> AthenaIntelligence.AssetActivityDeltaResponseOut</code></summary>
1030
+ <dl>
1031
+ <dd>
1032
+
1033
+ #### 📝 Description
1034
+
1035
+ <dl>
1036
+ <dd>
1037
+
1038
+ <dl>
1039
+ <dd>
1040
+
1041
+ Admin only. Batch form of the activity-delta endpoint: diff several clock ranges in one request. Prefer this when walking a whole log — one call computes every range in a single pass over the document instead of one request each (up to 25 per call). Results come back in request order, and a range that could not be read carries its own `error` instead of failing the batch. Same payload and `coverage` semantics as the single-range endpoint.
1042
+ </dd>
1043
+ </dl>
1044
+ </dd>
1045
+ </dl>
1046
+
1047
+ #### 🔌 Usage
1048
+
1049
+ <dl>
1050
+ <dd>
1051
+
1052
+ <dl>
1053
+ <dd>
1054
+
1055
+ ```typescript
1056
+ await client.assets.getActivityDeltas({
1057
+ asset_id: "asset_id",
1058
+ ranges: [{
1059
+ from: 1752694811020,
1060
+ to: 1752694813551
1061
+ }, {
1062
+ from: 1752691402184,
1063
+ to: 1752691409776
1064
+ }]
1065
+ });
1066
+
1067
+ ```
1068
+ </dd>
1069
+ </dl>
1070
+ </dd>
1071
+ </dl>
1072
+
1073
+ #### ⚙️ Parameters
1074
+
1075
+ <dl>
1076
+ <dd>
1077
+
1078
+ <dl>
1079
+ <dd>
1080
+
1081
+ **request:** `AthenaIntelligence.AssetActivityDeltaBatchRequestIn`
1082
+
1083
+ </dd>
1084
+ </dl>
1085
+
1086
+ <dl>
1087
+ <dd>
1088
+
1089
+ **requestOptions:** `AssetsClient.RequestOptions`
1090
+
1091
+ </dd>
1092
+ </dl>
1093
+ </dd>
1094
+ </dl>
1095
+
1096
+
893
1097
  </dd>
894
1098
  </dl>
895
1099
  </details>
@@ -3584,7 +3788,7 @@ await client.tools.rawData({
3584
3788
  <dl>
3585
3789
  <dd>
3586
3790
 
3587
- Save a file as an asset in the user's workspace.
3791
+ Save a file as an asset in the target workspace.
3588
3792
  </dd>
3589
3793
  </dl>
3590
3794
  </dd>