@athenaintel/sdk 4.3.2113 → 4.3.2115
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.d.ts +1 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +1 -1
- package/dist/cjs/Client.js +1 -1
- package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/client/Client.js +1 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +1 -1
- package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/general/client/Client.js +1 -1
- package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/research/client/Client.js +1 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +1 -1
- package/dist/cjs/api/resources/aop/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/aop/client/Client.js +1 -1
- package/dist/cjs/api/resources/assets/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/assets/client/Client.js +1 -1
- package/dist/cjs/api/resources/collabAgents/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/collabAgents/client/Client.js +1 -1
- package/dist/cjs/api/resources/computer/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/computer/client/Client.js +1 -1
- package/dist/cjs/api/resources/databases/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/databases/client/Client.js +1 -1
- package/dist/cjs/api/resources/meetings/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/meetings/client/Client.js +1 -1
- package/dist/cjs/api/resources/query/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/query/client/Client.js +1 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/email/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/email/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.js +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +1 -1
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/workspaces/client/Client.js +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.js +5 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +1 -1
- package/dist/esm/Client.mjs +1 -1
- package/dist/esm/api/resources/agents/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +1 -1
- package/dist/esm/api/resources/aop/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/aop/client/Client.mjs +1 -1
- package/dist/esm/api/resources/assets/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/assets/client/Client.mjs +1 -1
- package/dist/esm/api/resources/collabAgents/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/collabAgents/client/Client.mjs +1 -1
- package/dist/esm/api/resources/computer/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/computer/client/Client.mjs +1 -1
- package/dist/esm/api/resources/databases/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/databases/client/Client.mjs +1 -1
- package/dist/esm/api/resources/meetings/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/meetings/client/Client.mjs +1 -1
- package/dist/esm/api/resources/query/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/query/client/Client.mjs +1 -1
- package/dist/esm/api/resources/semanticModel/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/semanticModel/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/email/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/email/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.mjs +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +1 -1
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/workspaces/client/Client.mjs +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +1 -1
- package/dist/esm/auth/HeaderAuthProvider.mjs +5 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.AthenaIntelligenceEnvironment | string>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey
|
|
7
|
+
apiKey?: core.Supplier<string>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
46
|
+
"X-Fern-SDK-Version": "4.3.2115",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2115",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
36
36
|
protected _threads: ThreadsClient | undefined;
|
|
37
37
|
protected _tools: ToolsClient | undefined;
|
|
38
38
|
protected _workspaces: WorkspacesClient | undefined;
|
|
39
|
-
constructor(options
|
|
39
|
+
constructor(options?: AthenaIntelligenceClient.Options);
|
|
40
40
|
get agents(): AgentsClient;
|
|
41
41
|
get aop(): AopClient;
|
|
42
42
|
get assets(): AssetsClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -18,7 +18,7 @@ const Client_js_13 = require("./api/resources/users/client/Client.js");
|
|
|
18
18
|
const Client_js_14 = require("./api/resources/workspaces/client/Client.js");
|
|
19
19
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
20
20
|
class AthenaIntelligenceClient {
|
|
21
|
-
constructor(options) {
|
|
21
|
+
constructor(options = {}) {
|
|
22
22
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
23
23
|
}
|
|
24
24
|
get agents() {
|
|
@@ -18,7 +18,7 @@ export declare class AgentsClient {
|
|
|
18
18
|
protected _general: GeneralClient | undefined;
|
|
19
19
|
protected _research: ResearchClient | undefined;
|
|
20
20
|
protected _sql: SqlClient | undefined;
|
|
21
|
-
constructor(options
|
|
21
|
+
constructor(options?: AgentsClient.Options);
|
|
22
22
|
get drive(): DriveClient;
|
|
23
23
|
get general(): GeneralClient;
|
|
24
24
|
get research(): ResearchClient;
|
|
@@ -66,7 +66,7 @@ const Client_js_2 = require("../resources/general/client/Client.js");
|
|
|
66
66
|
const Client_js_3 = require("../resources/research/client/Client.js");
|
|
67
67
|
const Client_js_4 = require("../resources/sql/client/Client.js");
|
|
68
68
|
class AgentsClient {
|
|
69
|
-
constructor(options) {
|
|
69
|
+
constructor(options = {}) {
|
|
70
70
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
71
|
}
|
|
72
72
|
get drive() {
|
|
@@ -10,7 +10,7 @@ export declare namespace DriveClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class DriveClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<DriveClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: DriveClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Coming soon! Manage folders and search for files in the internal drive.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class DriveClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace GeneralClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class GeneralClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<GeneralClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: GeneralClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Coming soon! Call the general agent with batched requests and return the results.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class GeneralClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace ResearchClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class ResearchClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<ResearchClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: ResearchClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Coming soon! Conduct research using web and other sources.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class ResearchClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace SqlClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class SqlClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SqlClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: SqlClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Coming soon! Generate, execute, and test SQL queries. Returns an asset ID for the query object.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class SqlClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace AopClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class AopClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<AopClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: AopClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Create a new AOP (Agent Operating Procedure) asset with the given configuration. The created AOP can then be executed via /aop/execute-async, inspected via /aop/{asset_id}/config, and updated via PUT /aop/{asset_id}/config. Use [[ placeholder ]] syntax in the prompt for user inputs supplied at execution time.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class AopClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace AssetsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class AssetsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: AssetsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve a paginated list of assets with optional filtering and sorting. Assets include documents, presentations, spreadsheets, images, videos, and other file types managed by Athena Intelligence.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class AssetsClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace CollabAgentsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class CollabAgentsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<CollabAgentsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: CollabAgentsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Submit a message to a collab agent through its Programmatic channel. The agent must have the channel explicitly enabled (programmaticEnabled) and must be shared with the caller. With wait=false (default) the submission is queued and the endpoint returns 202 immediately; the resulting session appears in Athena under the caller's account. With wait=true the request long-polls: the connection stays open while the agent runs and the final agent message is returned verbatim in the reply field — size client timeouts for multi-minute runs. Submissions from the same caller with the same clientThreadKey continue one conversation until 24 hours of inactivity.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class CollabAgentsClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace ComputerClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class ComputerClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<ComputerClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: ComputerClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Deploy a computer asset's running application to a shareable, persistent preview URL — the same action the Deploy button in the Olympus UI performs. Auto-starts the computer if it is stopped, validates that the requested port is reachable, records the deployment in the asset's metadata (so the UI stays in sync), and returns the Marathon preview URL for the exposed port. Call it with different ports to deploy multiple services from the same computer.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class ComputerClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace DatabasesClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class DatabasesClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<DatabasesClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: DatabasesClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Check if a database is running, suspended, or starting up. Poll this endpoint to determine when a serverless database is ready.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class DatabasesClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace MeetingsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class MeetingsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<MeetingsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: MeetingsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve a paginated list of meetings with optional keyword search (across title, AI summary, and cached transcript text), participant email filtering, attendee domain filtering, date range filtering, and sorting.
|
|
16
16
|
*
|
|
@@ -52,7 +52,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
53
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
54
54
|
class MeetingsClient {
|
|
55
|
-
constructor(options) {
|
|
55
|
+
constructor(options = {}) {
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace QueryClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class QueryClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<QueryClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: QueryClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Get the result of an SQL query over given assets.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
53
53
|
class QueryClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace SemanticModelClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class SemanticModelClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SemanticModelClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: SemanticModelClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Generate a short-lived JWT token for direct access to the semantic model's Cube REST API. Use this token to query /cubejs-api/v1/load and /cubejs-api/v1/meta directly. Token expires after 1 hour. The token carries only the model ID and schema hash — database credentials are NOT included and are resolved server-side by Cube via callback.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class SemanticModelClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace SessionsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class SessionsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SessionsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: SessionsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded.
|
|
16
16
|
*
|
|
@@ -52,7 +52,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
53
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
54
54
|
class SessionsClient {
|
|
55
|
-
constructor(options) {
|
|
55
|
+
constructor(options = {}) {
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace ThreadsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class ThreadsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<ThreadsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: ThreadsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Stop multiple running thread executions by asset ID in a single request. This is useful for stopping many AOP executions at once from the UI. Each thread is stopped independently - failures for individual threads do not affect other threads in the batch.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
53
53
|
class ThreadsClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -20,7 +20,7 @@ export declare class ToolsClient {
|
|
|
20
20
|
protected _sheets: SheetsClient | undefined;
|
|
21
21
|
protected _structuredDataExtractor: StructuredDataExtractorClient | undefined;
|
|
22
22
|
protected _tasks: TasksClient | undefined;
|
|
23
|
-
constructor(options
|
|
23
|
+
constructor(options?: ToolsClient.Options);
|
|
24
24
|
get calendar(): CalendarClient;
|
|
25
25
|
get email(): EmailClient;
|
|
26
26
|
get sheets(): SheetsClient;
|
|
@@ -57,7 +57,7 @@ const Client_js_3 = require("../resources/sheets/client/Client.js");
|
|
|
57
57
|
const Client_js_4 = require("../resources/structuredDataExtractor/client/Client.js");
|
|
58
58
|
const Client_js_5 = require("../resources/tasks/client/Client.js");
|
|
59
59
|
class ToolsClient {
|
|
60
|
-
constructor(options) {
|
|
60
|
+
constructor(options = {}) {
|
|
61
61
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
62
62
|
}
|
|
63
63
|
get calendar() {
|
|
@@ -9,7 +9,7 @@ export declare namespace CalendarClient {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class CalendarClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CalendarClient.Options>;
|
|
12
|
-
constructor(options
|
|
12
|
+
constructor(options?: CalendarClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Coming soon! List calendar events with optional filtering.
|
|
15
15
|
*
|
|
@@ -50,7 +50,7 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
class CalendarClient {
|
|
53
|
-
constructor(options) {
|
|
53
|
+
constructor(options = {}) {
|
|
54
54
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -9,7 +9,7 @@ export declare namespace EmailClient {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class EmailClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<EmailClient.Options>;
|
|
12
|
-
constructor(options
|
|
12
|
+
constructor(options?: EmailClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Coming soon! Create email drafts with specified content and recipients.
|
|
15
15
|
*
|
|
@@ -50,7 +50,7 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
class EmailClient {
|
|
53
|
-
constructor(options) {
|
|
53
|
+
constructor(options = {}) {
|
|
54
54
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace SheetsClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class SheetsClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SheetsClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: SheetsClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Update a single cell in an Athena spreadsheet.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class SheetsClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace StructuredDataExtractorClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class StructuredDataExtractorClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<StructuredDataExtractorClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: StructuredDataExtractorClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Extract structured data.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class StructuredDataExtractorClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace TasksClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class TasksClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<TasksClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: TasksClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
|
|
16
16
|
*
|
|
@@ -51,7 +51,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const AthenaIntelligence = __importStar(require("../../../../../index.js"));
|
|
53
53
|
class TasksClient {
|
|
54
|
-
constructor(options) {
|
|
54
|
+
constructor(options = {}) {
|
|
55
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace UsersClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class UsersClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: UsersClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Returns basic information about the authenticated user including name, email, workspace details, and all workspaces the user has access to.
|
|
16
16
|
*
|
|
@@ -50,7 +50,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../environments.js"));
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
class UsersClient {
|
|
53
|
-
constructor(options) {
|
|
53
|
+
constructor(options = {}) {
|
|
54
54
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -10,7 +10,7 @@ export declare namespace WorkspacesClient {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class WorkspacesClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<WorkspacesClient.Options>;
|
|
13
|
-
constructor(options
|
|
13
|
+
constructor(options?: WorkspacesClient.Options);
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve the configuration for a workspace. Includes disclaimer settings. Requires workspace owner or admin permissions.
|
|
16
16
|
*
|
|
@@ -62,7 +62,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
62
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
63
63
|
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
64
64
|
class WorkspacesClient {
|
|
65
|
-
constructor(options) {
|
|
65
|
+
constructor(options = {}) {
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as core from "../core/index.js";
|
|
2
2
|
export declare namespace HeaderAuthProvider {
|
|
3
3
|
interface Options {
|
|
4
|
-
apiKey
|
|
4
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
export declare class HeaderAuthProvider implements core.AuthProvider {
|
|
@@ -51,14 +51,16 @@ class HeaderAuthProvider {
|
|
|
51
51
|
this.headerValue = options.apiKey;
|
|
52
52
|
}
|
|
53
53
|
static canCreate(options) {
|
|
54
|
-
|
|
54
|
+
var _a;
|
|
55
|
+
return options.apiKey != null || ((_a = process.env) === null || _a === void 0 ? void 0 : _a.ATHENA_API_KEY) != null;
|
|
55
56
|
}
|
|
56
57
|
getAuthRequest(_arg) {
|
|
57
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
|
|
59
|
+
var _a, _b;
|
|
60
|
+
const apiKey = (_a = (yield core.Supplier.get(this.headerValue))) !== null && _a !== void 0 ? _a : (_b = process.env) === null || _b === void 0 ? void 0 : _b.ATHENA_API_KEY;
|
|
59
61
|
if (apiKey == null) {
|
|
60
62
|
throw new errors.AthenaIntelligenceError({
|
|
61
|
-
message: "Please specify a apiKey by passing it in to the constructor",
|
|
63
|
+
message: "Please specify a apiKey by either passing it in to the constructor or initializing a ATHENA_API_KEY environment variable",
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
66
|
const headerValue = apiKey;
|
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.2115";
|
package/dist/cjs/version.js
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.AthenaIntelligenceEnvironment | string>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey
|
|
7
|
+
apiKey?: core.Supplier<string>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
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.2115",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2115",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class AthenaIntelligenceClient {
|
|
|
36
36
|
protected _threads: ThreadsClient | undefined;
|
|
37
37
|
protected _tools: ToolsClient | undefined;
|
|
38
38
|
protected _workspaces: WorkspacesClient | undefined;
|
|
39
|
-
constructor(options
|
|
39
|
+
constructor(options?: AthenaIntelligenceClient.Options);
|
|
40
40
|
get agents(): AgentsClient;
|
|
41
41
|
get aop(): AopClient;
|
|
42
42
|
get assets(): AssetsClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
|
15
15
|
import { WorkspacesClient } from "./api/resources/workspaces/client/Client.mjs";
|
|
16
16
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
17
17
|
export class AthenaIntelligenceClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
get agents() {
|
|
@@ -18,7 +18,7 @@ export declare class AgentsClient {
|
|
|
18
18
|
protected _general: GeneralClient | undefined;
|
|
19
19
|
protected _research: ResearchClient | undefined;
|
|
20
20
|
protected _sql: SqlClient | undefined;
|
|
21
|
-
constructor(options
|
|
21
|
+
constructor(options?: AgentsClient.Options);
|
|
22
22
|
get drive(): DriveClient;
|
|
23
23
|
get general(): GeneralClient;
|
|
24
24
|
get research(): ResearchClient;
|