@athenaintel/sdk 4.3.2319 → 4.3.2320
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +13 -8
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +124 -0
- package/dist/cjs/api/resources/tasks/client/Client.js +535 -0
- package/dist/cjs/api/resources/tasks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequestIn.d.ts +52 -0
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequestIn.js +13 -0
- package/dist/cjs/api/resources/tasks/client/requests/GetTasksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/tasks/client/requests/GetTasksRequest.js +3 -0
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksRequest.d.ts +26 -0
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksRequest.js +3 -0
- package/dist/cjs/api/resources/tasks/client/requests/SetTaskStatusRequestIn.d.ts +21 -0
- package/dist/cjs/api/resources/tasks/client/requests/SetTaskStatusRequestIn.js +12 -0
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequestIn.d.ts +46 -0
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequestIn.js +17 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tasks/index.d.ts +2 -0
- package/dist/cjs/api/resources/tasks/index.js +18 -0
- package/dist/cjs/api/resources/tasks/types/ListTasksRequestStatus.d.ts +7 -0
- package/dist/cjs/api/resources/tasks/types/ListTasksRequestStatus.js +10 -0
- package/dist/cjs/api/resources/tasks/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/tasks/types/index.js +17 -0
- package/dist/cjs/api/types/TaskAssigneeOut.d.ts +19 -0
- package/dist/cjs/api/types/TaskAssigneeOut.js +12 -0
- package/dist/cjs/api/types/TaskLabelIn.d.ts +9 -0
- package/dist/cjs/api/types/TaskLabelIn.js +3 -0
- package/dist/cjs/api/types/TaskLabelOut.d.ts +12 -0
- package/dist/cjs/api/types/TaskLabelOut.js +3 -0
- package/dist/cjs/api/types/TaskLinkIn.d.ts +22 -0
- package/dist/cjs/api/types/TaskLinkIn.js +13 -0
- package/dist/cjs/api/types/TaskLinkOut.d.ts +17 -0
- package/dist/cjs/api/types/TaskLinkOut.js +3 -0
- package/dist/cjs/api/types/TaskListOut.d.ts +8 -0
- package/dist/cjs/api/types/TaskListOut.js +3 -0
- package/dist/cjs/api/types/TaskOut.d.ts +51 -0
- package/dist/cjs/api/types/TaskOut.js +17 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/tasks/client/Client.d.mts +124 -0
- package/dist/esm/api/resources/tasks/client/Client.mjs +498 -0
- package/dist/esm/api/resources/tasks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tasks/client/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequestIn.d.mts +52 -0
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequestIn.mjs +10 -0
- package/dist/esm/api/resources/tasks/client/requests/GetTasksRequest.d.mts +10 -0
- package/dist/esm/api/resources/tasks/client/requests/GetTasksRequest.mjs +2 -0
- package/dist/esm/api/resources/tasks/client/requests/ListTasksRequest.d.mts +26 -0
- package/dist/esm/api/resources/tasks/client/requests/ListTasksRequest.mjs +2 -0
- package/dist/esm/api/resources/tasks/client/requests/SetTaskStatusRequestIn.d.mts +21 -0
- package/dist/esm/api/resources/tasks/client/requests/SetTaskStatusRequestIn.mjs +9 -0
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequestIn.d.mts +46 -0
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequestIn.mjs +14 -0
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/index.d.mts +2 -0
- package/dist/esm/api/resources/tasks/index.mjs +2 -0
- package/dist/esm/api/resources/tasks/types/ListTasksRequestStatus.d.mts +7 -0
- package/dist/esm/api/resources/tasks/types/ListTasksRequestStatus.mjs +7 -0
- package/dist/esm/api/resources/tasks/types/index.d.mts +1 -0
- package/dist/esm/api/resources/tasks/types/index.mjs +1 -0
- package/dist/esm/api/types/TaskAssigneeOut.d.mts +19 -0
- package/dist/esm/api/types/TaskAssigneeOut.mjs +9 -0
- package/dist/esm/api/types/TaskLabelIn.d.mts +9 -0
- package/dist/esm/api/types/TaskLabelIn.mjs +2 -0
- package/dist/esm/api/types/TaskLabelOut.d.mts +12 -0
- package/dist/esm/api/types/TaskLabelOut.mjs +2 -0
- package/dist/esm/api/types/TaskLinkIn.d.mts +22 -0
- package/dist/esm/api/types/TaskLinkIn.mjs +10 -0
- package/dist/esm/api/types/TaskLinkOut.d.mts +17 -0
- package/dist/esm/api/types/TaskLinkOut.mjs +2 -0
- package/dist/esm/api/types/TaskListOut.d.mts +8 -0
- package/dist/esm/api/types/TaskListOut.mjs +2 -0
- package/dist/esm/api/types/TaskOut.d.mts +51 -0
- package/dist/esm/api/types/TaskOut.mjs +14 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +341 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* workspace_id: "ws_abc123-def456",
|
|
6
|
+
* limit: 50
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListTasksRequest {
|
|
10
|
+
/** The workspace to list; the caller must be a member. */
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
/** Only tasks assigned to this user_… or agent_asset_…, or me. */
|
|
13
|
+
assignee_ref?: string | null;
|
|
14
|
+
/** open (the default), done or all. */
|
|
15
|
+
status?: AthenaIntelligence.ListTasksRequestStatus;
|
|
16
|
+
/** YYYY-MM-DD: only tasks due on or before this day. */
|
|
17
|
+
due_on_or_before?: string | null;
|
|
18
|
+
/** YYYY-MM-DD: only tasks due on or after this day. */
|
|
19
|
+
due_on_or_after?: string | null;
|
|
20
|
+
/** Only tasks with a label of exactly this name. */
|
|
21
|
+
label?: string | null;
|
|
22
|
+
/** Only tasks that link this asset or ontology object id. */
|
|
23
|
+
linked_id?: string | null;
|
|
24
|
+
/** At most this many tasks. */
|
|
25
|
+
limit?: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* asset_id: "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c",
|
|
5
|
+
* status: "done"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface SetTaskStatusRequestIn {
|
|
9
|
+
/** The task's asset id. */
|
|
10
|
+
asset_id: string;
|
|
11
|
+
/** open or done. */
|
|
12
|
+
status: SetTaskStatusRequestIn.Status;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace SetTaskStatusRequestIn {
|
|
15
|
+
/** open or done. */
|
|
16
|
+
const Status: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Done: "done";
|
|
19
|
+
};
|
|
20
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SetTaskStatusRequestIn = void 0;
|
|
5
|
+
var SetTaskStatusRequestIn;
|
|
6
|
+
(function (SetTaskStatusRequestIn) {
|
|
7
|
+
/** open or done. */
|
|
8
|
+
SetTaskStatusRequestIn.Status = {
|
|
9
|
+
Open: "open",
|
|
10
|
+
Done: "done",
|
|
11
|
+
};
|
|
12
|
+
})(SetTaskStatusRequestIn || (exports.SetTaskStatusRequestIn = SetTaskStatusRequestIn = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* asset_id: "asset_7c1e5b2a-4f3d-4e8a-9b6c-1d2e3f4a5b6c",
|
|
6
|
+
* priority: "medium"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface UpdateTaskRequestIn {
|
|
10
|
+
/** The task's asset id. */
|
|
11
|
+
asset_id: string;
|
|
12
|
+
/** user_…, agent_asset_… or me; null assigns it to nobody. The assignee must already be able to open the task. */
|
|
13
|
+
assignee_ref?: string | null;
|
|
14
|
+
/** New details (markdown); null clears them. */
|
|
15
|
+
description?: string | null;
|
|
16
|
+
/** YYYY-MM-DD; null clears the due date and its time. */
|
|
17
|
+
due_date?: string | null;
|
|
18
|
+
/** HH:MM (24-hour); null clears the time and keeps the date. */
|
|
19
|
+
due_time?: string | null;
|
|
20
|
+
/** The IANA time zone of due_time. */
|
|
21
|
+
due_time_zone?: string | null;
|
|
22
|
+
/** The full new set of labels; null removes them all. */
|
|
23
|
+
labels?: AthenaIntelligence.TaskLabelIn[] | null;
|
|
24
|
+
/** The full new set of links; null removes them all. Links already on the task that the caller cannot open are kept. */
|
|
25
|
+
links?: AthenaIntelligence.TaskLinkIn[] | null;
|
|
26
|
+
/** How much it matters; null is none. */
|
|
27
|
+
priority?: UpdateTaskRequestIn.Priority | null;
|
|
28
|
+
/** open or done (it cannot be cleared). */
|
|
29
|
+
status?: UpdateTaskRequestIn.Status | null;
|
|
30
|
+
/** A new title (it cannot be cleared). */
|
|
31
|
+
title?: string | null;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace UpdateTaskRequestIn {
|
|
34
|
+
const Priority: {
|
|
35
|
+
readonly None: "none";
|
|
36
|
+
readonly Low: "low";
|
|
37
|
+
readonly Medium: "medium";
|
|
38
|
+
readonly High: "high";
|
|
39
|
+
};
|
|
40
|
+
type Priority = (typeof Priority)[keyof typeof Priority];
|
|
41
|
+
const Status: {
|
|
42
|
+
readonly Open: "open";
|
|
43
|
+
readonly Done: "done";
|
|
44
|
+
};
|
|
45
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
46
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdateTaskRequestIn = void 0;
|
|
5
|
+
var UpdateTaskRequestIn;
|
|
6
|
+
(function (UpdateTaskRequestIn) {
|
|
7
|
+
UpdateTaskRequestIn.Priority = {
|
|
8
|
+
None: "none",
|
|
9
|
+
Low: "low",
|
|
10
|
+
Medium: "medium",
|
|
11
|
+
High: "high",
|
|
12
|
+
};
|
|
13
|
+
UpdateTaskRequestIn.Status = {
|
|
14
|
+
Open: "open",
|
|
15
|
+
Done: "done",
|
|
16
|
+
};
|
|
17
|
+
})(UpdateTaskRequestIn || (exports.UpdateTaskRequestIn = UpdateTaskRequestIn = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { CreateTaskRequestIn } from "./CreateTaskRequestIn.js";
|
|
2
|
+
export type { GetTasksRequest } from "./GetTasksRequest.js";
|
|
3
|
+
export type { ListTasksRequest } from "./ListTasksRequest.js";
|
|
4
|
+
export type { SetTaskStatusRequestIn } from "./SetTaskStatusRequestIn.js";
|
|
5
|
+
export type { UpdateTaskRequestIn } from "./UpdateTaskRequestIn.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** open (the default), done or all. */
|
|
2
|
+
export declare const ListTasksRequestStatus: {
|
|
3
|
+
readonly Open: "open";
|
|
4
|
+
readonly Done: "done";
|
|
5
|
+
readonly All: "all";
|
|
6
|
+
};
|
|
7
|
+
export type ListTasksRequestStatus = (typeof ListTasksRequestStatus)[keyof typeof ListTasksRequestStatus];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListTasksRequestStatus = void 0;
|
|
5
|
+
/** open (the default), done or all. */
|
|
6
|
+
exports.ListTasksRequestStatus = {
|
|
7
|
+
Open: "open",
|
|
8
|
+
Done: "done",
|
|
9
|
+
All: "all",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListTasksRequestStatus.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ListTasksRequestStatus.js"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who a task is assigned to: a person or an agent.
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskAssigneeOut {
|
|
5
|
+
/** Their name, when the caller may see it (an agent's only when they can open it). */
|
|
6
|
+
display_name: string | null;
|
|
7
|
+
/** person or agent. */
|
|
8
|
+
kind: TaskAssigneeOut.Kind;
|
|
9
|
+
/** user_… for a person, agent_asset_… for an agent. */
|
|
10
|
+
ref: string;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace TaskAssigneeOut {
|
|
13
|
+
/** person or agent. */
|
|
14
|
+
const Kind: {
|
|
15
|
+
readonly Person: "person";
|
|
16
|
+
readonly Agent: "agent";
|
|
17
|
+
};
|
|
18
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TaskAssigneeOut = void 0;
|
|
5
|
+
var TaskAssigneeOut;
|
|
6
|
+
(function (TaskAssigneeOut) {
|
|
7
|
+
/** person or agent. */
|
|
8
|
+
TaskAssigneeOut.Kind = {
|
|
9
|
+
Person: "person",
|
|
10
|
+
Agent: "agent",
|
|
11
|
+
};
|
|
12
|
+
})(TaskAssigneeOut || (exports.TaskAssigneeOut = TaskAssigneeOut = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A label to put on a task.
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskLabelIn {
|
|
5
|
+
/** #RRGGBB. Left out, a label the task already has keeps its color. */
|
|
6
|
+
color?: string | null;
|
|
7
|
+
/** The label's name (at most 64 characters, matched case-insensitively). */
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A label on a task: its name, color and who applied it.
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskLabelOut {
|
|
5
|
+
/** When it was applied (ISO 8601). */
|
|
6
|
+
applied_at: string;
|
|
7
|
+
/** Principal ref of who applied it. */
|
|
8
|
+
applied_by_ref: string;
|
|
9
|
+
/** #RRGGBB, or null. */
|
|
10
|
+
color: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A record a task is about: an asset, an ontology object or a web page.
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskLinkIn {
|
|
5
|
+
/** A place inside the asset (a cell range, a page), when one is meant. */
|
|
6
|
+
anchor?: Record<string, unknown> | null;
|
|
7
|
+
/** The asset or ontology object id (asset and ontology_object). */
|
|
8
|
+
id?: string | null;
|
|
9
|
+
/** asset, ontology_object or external_url. */
|
|
10
|
+
referenced: TaskLinkIn.Referenced;
|
|
11
|
+
/** The web page's URL (external_url). */
|
|
12
|
+
url?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace TaskLinkIn {
|
|
15
|
+
/** asset, ontology_object or external_url. */
|
|
16
|
+
const Referenced: {
|
|
17
|
+
readonly Asset: "asset";
|
|
18
|
+
readonly OntologyObject: "ontology_object";
|
|
19
|
+
readonly ExternalUrl: "external_url";
|
|
20
|
+
};
|
|
21
|
+
type Referenced = (typeof Referenced)[keyof typeof Referenced];
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TaskLinkIn = void 0;
|
|
5
|
+
var TaskLinkIn;
|
|
6
|
+
(function (TaskLinkIn) {
|
|
7
|
+
/** asset, ontology_object or external_url. */
|
|
8
|
+
TaskLinkIn.Referenced = {
|
|
9
|
+
Asset: "asset",
|
|
10
|
+
OntologyObject: "ontology_object",
|
|
11
|
+
ExternalUrl: "external_url",
|
|
12
|
+
};
|
|
13
|
+
})(TaskLinkIn || (exports.TaskLinkIn = TaskLinkIn = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A record a task is about, read as the caller.
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskLinkOut {
|
|
5
|
+
/** Its asset or object type, read as the caller. */
|
|
6
|
+
detail: string | null;
|
|
7
|
+
/** The asset or object id; null when unreadable. */
|
|
8
|
+
id: string | null;
|
|
9
|
+
/** Whether the caller can open it. One they can't shows its kind only: no id, URL or title. */
|
|
10
|
+
readable: boolean;
|
|
11
|
+
/** asset, ontology_object or external_url. */
|
|
12
|
+
referenced: string;
|
|
13
|
+
/** Its title, read as the caller. */
|
|
14
|
+
title: string | null;
|
|
15
|
+
/** The web page's URL; null when unreadable. */
|
|
16
|
+
url: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A workspace's tasks the caller can open, soonest due first (undated last).
|
|
4
|
+
*/
|
|
5
|
+
export interface TaskListOut {
|
|
6
|
+
/** At most `limit` tasks; each carries no links and a null can_edit. */
|
|
7
|
+
items: AthenaIntelligence.TaskOut[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* An assignable to-do: due on a calendar day, at a time in due_time_zone.
|
|
4
|
+
*/
|
|
5
|
+
export interface TaskOut {
|
|
6
|
+
/** Who it is for, or null for nobody. */
|
|
7
|
+
assignee: AthenaIntelligence.TaskAssigneeOut | null;
|
|
8
|
+
/** Whether the caller may change it; null in a list. */
|
|
9
|
+
can_edit: boolean | null;
|
|
10
|
+
/** When it was marked done. */
|
|
11
|
+
completed_at: string | null;
|
|
12
|
+
/** Who marked it done. */
|
|
13
|
+
completed_by_ref: string | null;
|
|
14
|
+
created_at: string | null;
|
|
15
|
+
/** The user who created it. */
|
|
16
|
+
created_by: string | null;
|
|
17
|
+
/** Markdown. */
|
|
18
|
+
description: string | null;
|
|
19
|
+
/** YYYY-MM-DD, or null. */
|
|
20
|
+
due_date: string | null;
|
|
21
|
+
/** HH:MM (24-hour), or null. */
|
|
22
|
+
due_time: string | null;
|
|
23
|
+
/** The IANA time zone of due_time. */
|
|
24
|
+
due_time_zone: string | null;
|
|
25
|
+
/** The task's asset id. */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Whether it is in the trash. */
|
|
28
|
+
is_archived: boolean;
|
|
29
|
+
labels: AthenaIntelligence.TaskLabelOut[];
|
|
30
|
+
/** The records it is about, read as the caller. Always empty in a list. */
|
|
31
|
+
links: AthenaIntelligence.TaskLinkOut[];
|
|
32
|
+
priority: TaskOut.Priority;
|
|
33
|
+
status: TaskOut.Status;
|
|
34
|
+
title: string;
|
|
35
|
+
updated_at: string | null;
|
|
36
|
+
workspace_id: string;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace TaskOut {
|
|
39
|
+
const Priority: {
|
|
40
|
+
readonly None: "none";
|
|
41
|
+
readonly Low: "low";
|
|
42
|
+
readonly Medium: "medium";
|
|
43
|
+
readonly High: "high";
|
|
44
|
+
};
|
|
45
|
+
type Priority = (typeof Priority)[keyof typeof Priority];
|
|
46
|
+
const Status: {
|
|
47
|
+
readonly Open: "open";
|
|
48
|
+
readonly Done: "done";
|
|
49
|
+
};
|
|
50
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
51
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TaskOut = void 0;
|
|
5
|
+
var TaskOut;
|
|
6
|
+
(function (TaskOut) {
|
|
7
|
+
TaskOut.Priority = {
|
|
8
|
+
None: "none",
|
|
9
|
+
Low: "low",
|
|
10
|
+
Medium: "medium",
|
|
11
|
+
High: "high",
|
|
12
|
+
};
|
|
13
|
+
TaskOut.Status = {
|
|
14
|
+
Open: "open",
|
|
15
|
+
Done: "done",
|
|
16
|
+
};
|
|
17
|
+
})(TaskOut || (exports.TaskOut = TaskOut = {}));
|
|
@@ -155,6 +155,13 @@ export * from "./StructuredDataExtractorResponse.js";
|
|
|
155
155
|
export * from "./StudioTokenRequestIn.js";
|
|
156
156
|
export * from "./StudioTokenResponseOut.js";
|
|
157
157
|
export * from "./TableRowData.js";
|
|
158
|
+
export * from "./TaskAssigneeOut.js";
|
|
159
|
+
export * from "./TaskLabelIn.js";
|
|
160
|
+
export * from "./TaskLabelOut.js";
|
|
161
|
+
export * from "./TaskLinkIn.js";
|
|
162
|
+
export * from "./TaskLinkOut.js";
|
|
163
|
+
export * from "./TaskListOut.js";
|
|
164
|
+
export * from "./TaskOut.js";
|
|
158
165
|
export * from "./TextContent.js";
|
|
159
166
|
export * from "./TextFormatModel.js";
|
|
160
167
|
export * from "./ThemeColor.js";
|
|
@@ -171,6 +171,13 @@ __exportStar(require("./StructuredDataExtractorResponse.js"), exports);
|
|
|
171
171
|
__exportStar(require("./StudioTokenRequestIn.js"), exports);
|
|
172
172
|
__exportStar(require("./StudioTokenResponseOut.js"), exports);
|
|
173
173
|
__exportStar(require("./TableRowData.js"), exports);
|
|
174
|
+
__exportStar(require("./TaskAssigneeOut.js"), exports);
|
|
175
|
+
__exportStar(require("./TaskLabelIn.js"), exports);
|
|
176
|
+
__exportStar(require("./TaskLabelOut.js"), exports);
|
|
177
|
+
__exportStar(require("./TaskLinkIn.js"), exports);
|
|
178
|
+
__exportStar(require("./TaskLinkOut.js"), exports);
|
|
179
|
+
__exportStar(require("./TaskListOut.js"), exports);
|
|
180
|
+
__exportStar(require("./TaskOut.js"), exports);
|
|
174
181
|
__exportStar(require("./TextContent.js"), exports);
|
|
175
182
|
__exportStar(require("./TextFormatModel.js"), exports);
|
|
176
183
|
__exportStar(require("./ThemeColor.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2320";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
9
|
+
"X-Fern-SDK-Version": "4.3.2320",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2320",
|
|
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,
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import { MeetingsClient } from "./api/resources/meetings/client/Client.mjs";
|
|
|
9
9
|
import { QueryClient } from "./api/resources/query/client/Client.mjs";
|
|
10
10
|
import { SemanticModelClient } from "./api/resources/semanticModel/client/Client.mjs";
|
|
11
11
|
import { SessionsClient } from "./api/resources/sessions/client/Client.mjs";
|
|
12
|
+
import { TasksClient } from "./api/resources/tasks/client/Client.mjs";
|
|
12
13
|
import { ThreadsClient } from "./api/resources/threads/client/Client.mjs";
|
|
13
14
|
import { ToolsClient } from "./api/resources/tools/client/Client.mjs";
|
|
14
15
|
import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
@@ -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;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { MeetingsClient } from "./api/resources/meetings/client/Client.mjs";
|
|
|
10
10
|
import { QueryClient } from "./api/resources/query/client/Client.mjs";
|
|
11
11
|
import { SemanticModelClient } from "./api/resources/semanticModel/client/Client.mjs";
|
|
12
12
|
import { SessionsClient } from "./api/resources/sessions/client/Client.mjs";
|
|
13
|
+
import { TasksClient } from "./api/resources/tasks/client/Client.mjs";
|
|
13
14
|
import { ThreadsClient } from "./api/resources/threads/client/Client.mjs";
|
|
14
15
|
import { ToolsClient } from "./api/resources/tools/client/Client.mjs";
|
|
15
16
|
import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
@@ -63,6 +64,10 @@ export class AthenaIntelligenceClient {
|
|
|
63
64
|
var _a;
|
|
64
65
|
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new SessionsClient(this._options)));
|
|
65
66
|
}
|
|
67
|
+
get tasks() {
|
|
68
|
+
var _a;
|
|
69
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new TasksClient(this._options)));
|
|
70
|
+
}
|
|
66
71
|
get threads() {
|
|
67
72
|
var _a;
|
|
68
73
|
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new ThreadsClient(this._options)));
|
|
@@ -21,6 +21,9 @@ export * as semanticModel from "./semanticModel/index.mjs";
|
|
|
21
21
|
export * from "./sessions/client/requests/index.mjs";
|
|
22
22
|
export * as sessions from "./sessions/index.mjs";
|
|
23
23
|
export * from "./sessions/types/index.mjs";
|
|
24
|
+
export * from "./tasks/client/requests/index.mjs";
|
|
25
|
+
export * as tasks from "./tasks/index.mjs";
|
|
26
|
+
export * from "./tasks/types/index.mjs";
|
|
24
27
|
export * from "./threads/client/requests/index.mjs";
|
|
25
28
|
export * as threads from "./threads/index.mjs";
|
|
26
29
|
export * from "./tools/client/requests/index.mjs";
|
|
@@ -21,6 +21,9 @@ export * as semanticModel from "./semanticModel/index.mjs";
|
|
|
21
21
|
export * from "./sessions/client/requests/index.mjs";
|
|
22
22
|
export * as sessions from "./sessions/index.mjs";
|
|
23
23
|
export * from "./sessions/types/index.mjs";
|
|
24
|
+
export * from "./tasks/client/requests/index.mjs";
|
|
25
|
+
export * as tasks from "./tasks/index.mjs";
|
|
26
|
+
export * from "./tasks/types/index.mjs";
|
|
24
27
|
export * from "./threads/client/requests/index.mjs";
|
|
25
28
|
export * as threads from "./threads/index.mjs";
|
|
26
29
|
export * from "./tools/client/requests/index.mjs";
|