@athenaintel/sdk 4.3.2319 → 4.3.2321

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 (94) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +13 -8
  4. package/dist/cjs/api/resources/collabAgents/client/requests/CollabAgentSendMessageRequestIn.d.ts +0 -2
  5. package/dist/cjs/api/resources/index.d.ts +3 -0
  6. package/dist/cjs/api/resources/index.js +4 -1
  7. package/dist/cjs/api/resources/tasks/client/Client.d.ts +124 -0
  8. package/dist/cjs/api/resources/tasks/client/Client.js +535 -0
  9. package/dist/cjs/api/resources/tasks/client/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/tasks/client/index.js +17 -0
  11. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequestIn.d.ts +52 -0
  12. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequestIn.js +13 -0
  13. package/dist/cjs/api/resources/tasks/client/requests/GetTasksRequest.d.ts +10 -0
  14. package/dist/cjs/api/resources/tasks/client/requests/GetTasksRequest.js +3 -0
  15. package/dist/cjs/api/resources/tasks/client/requests/ListTasksRequest.d.ts +26 -0
  16. package/dist/cjs/api/resources/tasks/client/requests/ListTasksRequest.js +3 -0
  17. package/dist/cjs/api/resources/tasks/client/requests/SetTaskStatusRequestIn.d.ts +21 -0
  18. package/dist/cjs/api/resources/tasks/client/requests/SetTaskStatusRequestIn.js +12 -0
  19. package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequestIn.d.ts +46 -0
  20. package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequestIn.js +17 -0
  21. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +5 -0
  22. package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
  23. package/dist/cjs/api/resources/tasks/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/tasks/index.js +18 -0
  25. package/dist/cjs/api/resources/tasks/types/ListTasksRequestStatus.d.ts +7 -0
  26. package/dist/cjs/api/resources/tasks/types/ListTasksRequestStatus.js +10 -0
  27. package/dist/cjs/api/resources/tasks/types/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/tasks/types/index.js +17 -0
  29. package/dist/cjs/api/types/TaskAssigneeOut.d.ts +19 -0
  30. package/dist/cjs/api/types/TaskAssigneeOut.js +12 -0
  31. package/dist/cjs/api/types/TaskLabelIn.d.ts +9 -0
  32. package/dist/cjs/api/types/TaskLabelIn.js +3 -0
  33. package/dist/cjs/api/types/TaskLabelOut.d.ts +12 -0
  34. package/dist/cjs/api/types/TaskLabelOut.js +3 -0
  35. package/dist/cjs/api/types/TaskLinkIn.d.ts +22 -0
  36. package/dist/cjs/api/types/TaskLinkIn.js +13 -0
  37. package/dist/cjs/api/types/TaskLinkOut.d.ts +17 -0
  38. package/dist/cjs/api/types/TaskLinkOut.js +3 -0
  39. package/dist/cjs/api/types/TaskListOut.d.ts +8 -0
  40. package/dist/cjs/api/types/TaskListOut.js +3 -0
  41. package/dist/cjs/api/types/TaskOut.d.ts +51 -0
  42. package/dist/cjs/api/types/TaskOut.js +17 -0
  43. package/dist/cjs/api/types/index.d.ts +7 -0
  44. package/dist/cjs/api/types/index.js +7 -0
  45. package/dist/cjs/version.d.ts +1 -1
  46. package/dist/cjs/version.js +1 -1
  47. package/dist/esm/BaseClient.mjs +2 -2
  48. package/dist/esm/Client.d.mts +3 -0
  49. package/dist/esm/Client.mjs +5 -0
  50. package/dist/esm/api/resources/collabAgents/client/requests/CollabAgentSendMessageRequestIn.d.mts +0 -2
  51. package/dist/esm/api/resources/index.d.mts +3 -0
  52. package/dist/esm/api/resources/index.mjs +3 -0
  53. package/dist/esm/api/resources/tasks/client/Client.d.mts +124 -0
  54. package/dist/esm/api/resources/tasks/client/Client.mjs +498 -0
  55. package/dist/esm/api/resources/tasks/client/index.d.mts +1 -0
  56. package/dist/esm/api/resources/tasks/client/index.mjs +1 -0
  57. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequestIn.d.mts +52 -0
  58. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequestIn.mjs +10 -0
  59. package/dist/esm/api/resources/tasks/client/requests/GetTasksRequest.d.mts +10 -0
  60. package/dist/esm/api/resources/tasks/client/requests/GetTasksRequest.mjs +2 -0
  61. package/dist/esm/api/resources/tasks/client/requests/ListTasksRequest.d.mts +26 -0
  62. package/dist/esm/api/resources/tasks/client/requests/ListTasksRequest.mjs +2 -0
  63. package/dist/esm/api/resources/tasks/client/requests/SetTaskStatusRequestIn.d.mts +21 -0
  64. package/dist/esm/api/resources/tasks/client/requests/SetTaskStatusRequestIn.mjs +9 -0
  65. package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequestIn.d.mts +46 -0
  66. package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequestIn.mjs +14 -0
  67. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +5 -0
  68. package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
  69. package/dist/esm/api/resources/tasks/index.d.mts +2 -0
  70. package/dist/esm/api/resources/tasks/index.mjs +2 -0
  71. package/dist/esm/api/resources/tasks/types/ListTasksRequestStatus.d.mts +7 -0
  72. package/dist/esm/api/resources/tasks/types/ListTasksRequestStatus.mjs +7 -0
  73. package/dist/esm/api/resources/tasks/types/index.d.mts +1 -0
  74. package/dist/esm/api/resources/tasks/types/index.mjs +1 -0
  75. package/dist/esm/api/types/TaskAssigneeOut.d.mts +19 -0
  76. package/dist/esm/api/types/TaskAssigneeOut.mjs +9 -0
  77. package/dist/esm/api/types/TaskLabelIn.d.mts +9 -0
  78. package/dist/esm/api/types/TaskLabelIn.mjs +2 -0
  79. package/dist/esm/api/types/TaskLabelOut.d.mts +12 -0
  80. package/dist/esm/api/types/TaskLabelOut.mjs +2 -0
  81. package/dist/esm/api/types/TaskLinkIn.d.mts +22 -0
  82. package/dist/esm/api/types/TaskLinkIn.mjs +10 -0
  83. package/dist/esm/api/types/TaskLinkOut.d.mts +17 -0
  84. package/dist/esm/api/types/TaskLinkOut.mjs +2 -0
  85. package/dist/esm/api/types/TaskListOut.d.mts +8 -0
  86. package/dist/esm/api/types/TaskListOut.mjs +2 -0
  87. package/dist/esm/api/types/TaskOut.d.mts +51 -0
  88. package/dist/esm/api/types/TaskOut.mjs +14 -0
  89. package/dist/esm/api/types/index.d.mts +7 -0
  90. package/dist/esm/api/types/index.mjs +7 -0
  91. package/dist/esm/version.d.mts +1 -1
  92. package/dist/esm/version.mjs +1 -1
  93. package/package.json +1 -1
  94. package/reference.md +341 -0
@@ -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.2319",
47
- "User-Agent": "@athenaintel/sdk/4.3.2319",
46
+ "X-Fern-SDK-Version": "4.3.2321",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2321",
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,
@@ -9,6 +9,7 @@ import { MeetingsClient } from "./api/resources/meetings/client/Client.js";
9
9
  import { QueryClient } from "./api/resources/query/client/Client.js";
10
10
  import { SemanticModelClient } from "./api/resources/semanticModel/client/Client.js";
11
11
  import { SessionsClient } from "./api/resources/sessions/client/Client.js";
12
+ import { TasksClient } from "./api/resources/tasks/client/Client.js";
12
13
  import { ThreadsClient } from "./api/resources/threads/client/Client.js";
13
14
  import { ToolsClient } from "./api/resources/tools/client/Client.js";
14
15
  import { UsersClient } from "./api/resources/users/client/Client.js";
@@ -34,6 +35,7 @@ export declare class AthenaIntelligenceClient {
34
35
  protected _query: QueryClient | undefined;
35
36
  protected _semanticModel: SemanticModelClient | undefined;
36
37
  protected _sessions: SessionsClient | undefined;
38
+ protected _tasks: TasksClient | undefined;
37
39
  protected _threads: ThreadsClient | undefined;
38
40
  protected _tools: ToolsClient | undefined;
39
41
  protected _workspaces: WorkspacesClient | undefined;
@@ -50,6 +52,7 @@ export declare class AthenaIntelligenceClient {
50
52
  get query(): QueryClient;
51
53
  get semanticModel(): SemanticModelClient;
52
54
  get sessions(): SessionsClient;
55
+ get tasks(): TasksClient;
53
56
  get threads(): ThreadsClient;
54
57
  get tools(): ToolsClient;
55
58
  get workspaces(): WorkspacesClient;
@@ -13,10 +13,11 @@ const Client_js_8 = require("./api/resources/meetings/client/Client.js");
13
13
  const Client_js_9 = require("./api/resources/query/client/Client.js");
14
14
  const Client_js_10 = require("./api/resources/semanticModel/client/Client.js");
15
15
  const Client_js_11 = require("./api/resources/sessions/client/Client.js");
16
- const Client_js_12 = require("./api/resources/threads/client/Client.js");
17
- const Client_js_13 = require("./api/resources/tools/client/Client.js");
18
- const Client_js_14 = require("./api/resources/users/client/Client.js");
19
- const Client_js_15 = require("./api/resources/workspaces/client/Client.js");
16
+ const Client_js_12 = require("./api/resources/tasks/client/Client.js");
17
+ const Client_js_13 = require("./api/resources/threads/client/Client.js");
18
+ const Client_js_14 = require("./api/resources/tools/client/Client.js");
19
+ const Client_js_15 = require("./api/resources/users/client/Client.js");
20
+ const Client_js_16 = require("./api/resources/workspaces/client/Client.js");
20
21
  const BaseClient_js_1 = require("./BaseClient.js");
21
22
  class AthenaIntelligenceClient {
22
23
  constructor(options = {}) {
@@ -48,7 +49,7 @@ class AthenaIntelligenceClient {
48
49
  }
49
50
  get users() {
50
51
  var _a;
51
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_14.UsersClient(this._options)));
52
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_15.UsersClient(this._options)));
52
53
  }
53
54
  get meetings() {
54
55
  var _a;
@@ -66,17 +67,21 @@ class AthenaIntelligenceClient {
66
67
  var _a;
67
68
  return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_11.SessionsClient(this._options)));
68
69
  }
70
+ get tasks() {
71
+ var _a;
72
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_12.TasksClient(this._options)));
73
+ }
69
74
  get threads() {
70
75
  var _a;
71
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_12.ThreadsClient(this._options)));
76
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_13.ThreadsClient(this._options)));
72
77
  }
73
78
  get tools() {
74
79
  var _a;
75
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_13.ToolsClient(this._options)));
80
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_14.ToolsClient(this._options)));
76
81
  }
77
82
  get workspaces() {
78
83
  var _a;
79
- return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_js_15.WorkspacesClient(this._options)));
84
+ return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_js_16.WorkspacesClient(this._options)));
80
85
  }
81
86
  get agents() {
82
87
  var _a;
@@ -16,8 +16,6 @@ export interface CollabAgentSendMessageRequestIn {
16
16
  clientThreadKey?: string | null;
17
17
  /** The message text to submit to the agent. Delivered verbatim as the user turn of the agent session. */
18
18
  message: string;
19
- /** Reserved for Athena voice surfaces (the OpenAI Live Console). An opaque callback handle for a live voice conversation that delegated this submission: the run gains a send_voice_update tool that streams interim updates back to that conversation. Requires wait=true. Leave unset for ordinary submissions. */
20
- voiceUpdateHandle?: string | null;
21
19
  /** When false (default), the submission is queued and the endpoint returns 202 immediately. When true, the request long-polls: the connection is held open while the agent runs (typically seconds to a few minutes) and the final reply is returned in the response. */
22
20
  wait?: boolean;
23
21
  }
@@ -21,6 +21,9 @@ export * as semanticModel from "./semanticModel/index.js";
21
21
  export * from "./sessions/client/requests/index.js";
22
22
  export * as sessions from "./sessions/index.js";
23
23
  export * from "./sessions/types/index.js";
24
+ export * from "./tasks/client/requests/index.js";
25
+ export * as tasks from "./tasks/index.js";
26
+ export * from "./tasks/types/index.js";
24
27
  export * from "./threads/client/requests/index.js";
25
28
  export * as threads from "./threads/index.js";
26
29
  export * from "./tools/client/requests/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaces = exports.users = exports.tools = exports.threads = exports.sessions = exports.semanticModel = exports.query = exports.meetings = exports.databases = exports.computer = exports.collabAgents = exports.bundles = exports.assets = exports.aop = exports.agents = void 0;
39
+ exports.workspaces = exports.users = exports.tools = exports.threads = exports.tasks = exports.sessions = exports.semanticModel = exports.query = exports.meetings = exports.databases = exports.computer = exports.collabAgents = exports.bundles = exports.assets = exports.aop = exports.agents = void 0;
40
40
  exports.agents = __importStar(require("./agents/index.js"));
41
41
  __exportStar(require("./aop/client/requests/index.js"), exports);
42
42
  exports.aop = __importStar(require("./aop/index.js"));
@@ -60,6 +60,9 @@ exports.semanticModel = __importStar(require("./semanticModel/index.js"));
60
60
  __exportStar(require("./sessions/client/requests/index.js"), exports);
61
61
  exports.sessions = __importStar(require("./sessions/index.js"));
62
62
  __exportStar(require("./sessions/types/index.js"), exports);
63
+ __exportStar(require("./tasks/client/requests/index.js"), exports);
64
+ exports.tasks = __importStar(require("./tasks/index.js"));
65
+ __exportStar(require("./tasks/types/index.js"), exports);
63
66
  __exportStar(require("./threads/client/requests/index.js"), exports);
64
67
  exports.threads = __importStar(require("./threads/index.js"));
65
68
  __exportStar(require("./tools/client/requests/index.js"), exports);
@@ -0,0 +1,124 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as AthenaIntelligence from "../../../index.js";
5
+ export declare namespace TasksClient {
6
+ interface Options extends BaseClientOptions {
7
+ }
8
+ interface RequestOptions extends BaseRequestOptions {
9
+ }
10
+ }
11
+ export declare class TasksClient {
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<TasksClient.Options>;
13
+ constructor(options?: TasksClient.Options);
14
+ /**
15
+ * The tasks of a workspace the caller belongs to that they can open, soonest due first (tasks with no due date last, newest first). Open tasks unless status says otherwise. Filter by assignee (me for the caller's own), due dates (calendar days, inclusive), a label's name or a record the task links. A listed task carries no links and a null can_edit: read one task for them.
16
+ *
17
+ * @param {AthenaIntelligence.ListTasksRequest} request
18
+ * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link AthenaIntelligence.BadRequestError}
21
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
22
+ * @throws {@link AthenaIntelligence.ForbiddenError}
23
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
24
+ *
25
+ * @example
26
+ * await client.tasks.list({
27
+ * workspace_id: "ws_abc123-def456",
28
+ * limit: 50
29
+ * })
30
+ */
31
+ list(request: AthenaIntelligence.ListTasksRequest, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.TaskListOut>;
32
+ private __list;
33
+ /**
34
+ * Create a task (an assignable to-do) in a workspace the caller belongs to, with an optional due date and time, priority, assignee, labels, links to the records it is about and a folder or project to put it in. It is the caller's own unless assignee_ref names someone who can already open it (assigning never shares it) or is null. Each link must be a record the caller can open, and a parent folder needs edit access.
35
+ *
36
+ * @param {AthenaIntelligence.CreateTaskRequestIn} request
37
+ * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link AthenaIntelligence.BadRequestError}
40
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
41
+ * @throws {@link AthenaIntelligence.ForbiddenError}
42
+ * @throws {@link AthenaIntelligence.NotFoundError}
43
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
44
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
45
+ *
46
+ * @example
47
+ * await client.tasks.create({
48
+ * due_date: "2026-11-13",
49
+ * due_time: "15:00",
50
+ * due_time_zone: "America/New_York",
51
+ * labels: [{
52
+ * name: "Investor"
53
+ * }],
54
+ * links: [{
55
+ * referenced: "external_url",
56
+ * url: "https://example.com"
57
+ * }],
58
+ * priority: "high",
59
+ * title: "Send the deck to Mayfield",
60
+ * workspace_id: "ws_abc123-def456"
61
+ * })
62
+ */
63
+ create(request: AthenaIntelligence.CreateTaskRequestIn, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.TaskOut>;
64
+ private __create;
65
+ /**
66
+ * One task the caller can open: its status, due date, priority, assignee, labels, the records it links (each read with the caller's own access: one they can't open shows its kind only) and whether they may change it.
67
+ *
68
+ * @param {AthenaIntelligence.GetTasksRequest} request
69
+ * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
72
+ * @throws {@link AthenaIntelligence.ForbiddenError}
73
+ * @throws {@link AthenaIntelligence.NotFoundError}
74
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
75
+ *
76
+ * @example
77
+ * await client.tasks.get({
78
+ * asset_id: "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c"
79
+ * })
80
+ */
81
+ get(request: AthenaIntelligence.GetTasksRequest, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.TaskOut>;
82
+ private __get;
83
+ /**
84
+ * Change a task: a field left out is kept, and an explicit null clears it (title and status cannot be cleared). Needs edit access, and the task must not be in the trash. Labels and links are replaced whole; links already on it that the caller cannot open are kept. Marking it done records who and when.
85
+ *
86
+ * @param {AthenaIntelligence.UpdateTaskRequestIn} request
87
+ * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link AthenaIntelligence.BadRequestError}
90
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
91
+ * @throws {@link AthenaIntelligence.ForbiddenError}
92
+ * @throws {@link AthenaIntelligence.NotFoundError}
93
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
94
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
95
+ *
96
+ * @example
97
+ * await client.tasks.update({
98
+ * asset_id: "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c",
99
+ * priority: "medium"
100
+ * })
101
+ */
102
+ update(request: AthenaIntelligence.UpdateTaskRequestIn, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.TaskOut>;
103
+ private __update;
104
+ /**
105
+ * Mark a task done, or open it again. Needs edit access, and the task must not be in the trash. Marking it done records who and when; reopening clears both.
106
+ *
107
+ * @param {AthenaIntelligence.SetTaskStatusRequestIn} request
108
+ * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
109
+ *
110
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
111
+ * @throws {@link AthenaIntelligence.ForbiddenError}
112
+ * @throws {@link AthenaIntelligence.NotFoundError}
113
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
114
+ * @throws {@link AthenaIntelligence.ServiceUnavailableError}
115
+ *
116
+ * @example
117
+ * await client.tasks.setStatus({
118
+ * asset_id: "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c",
119
+ * status: "done"
120
+ * })
121
+ */
122
+ setStatus(request: AthenaIntelligence.SetTaskStatusRequestIn, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.TaskOut>;
123
+ private __setStatus;
124
+ }