@athenaintel/sdk 4.3.2113 → 4.3.2114
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
|
@@ -30,7 +30,7 @@ import { GeneralClient } from "../resources/general/client/Client.mjs";
|
|
|
30
30
|
import { ResearchClient } from "../resources/research/client/Client.mjs";
|
|
31
31
|
import { SqlClient } from "../resources/sql/client/Client.mjs";
|
|
32
32
|
export class AgentsClient {
|
|
33
|
-
constructor(options) {
|
|
33
|
+
constructor(options = {}) {
|
|
34
34
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
35
35
|
}
|
|
36
36
|
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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class DriveClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class GeneralClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class ResearchClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class SqlClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class AopClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class AssetsClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class CollabAgentsClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class ComputerClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class DatabasesClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -16,7 +16,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
16
16
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
17
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
18
18
|
export class MeetingsClient {
|
|
19
|
-
constructor(options) {
|
|
19
|
+
constructor(options = {}) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
17
17
|
export class QueryClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class SemanticModelClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -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
|
*
|
|
@@ -16,7 +16,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
16
16
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
17
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
18
18
|
export class SessionsClient {
|
|
19
|
-
constructor(options) {
|
|
19
|
+
constructor(options = {}) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
17
17
|
export class ThreadsClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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;
|
|
@@ -21,7 +21,7 @@ import { SheetsClient } from "../resources/sheets/client/Client.mjs";
|
|
|
21
21
|
import { StructuredDataExtractorClient } from "../resources/structuredDataExtractor/client/Client.mjs";
|
|
22
22
|
import { TasksClient } from "../resources/tasks/client/Client.mjs";
|
|
23
23
|
export class ToolsClient {
|
|
24
|
-
constructor(options) {
|
|
24
|
+
constructor(options = {}) {
|
|
25
25
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
26
26
|
}
|
|
27
27
|
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
|
*
|
|
@@ -14,7 +14,7 @@ import * as core from "../../../../../../core/index.mjs";
|
|
|
14
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
export class CalendarClient {
|
|
17
|
-
constructor(options) {
|
|
17
|
+
constructor(options = {}) {
|
|
18
18
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -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
|
*
|
|
@@ -14,7 +14,7 @@ import * as core from "../../../../../../core/index.mjs";
|
|
|
14
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
export class EmailClient {
|
|
17
|
-
constructor(options) {
|
|
17
|
+
constructor(options = {}) {
|
|
18
18
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class SheetsClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class StructuredDataExtractorClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -15,7 +15,7 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
16
|
import * as AthenaIntelligence from "../../../../../index.mjs";
|
|
17
17
|
export class TasksClient {
|
|
18
|
-
constructor(options) {
|
|
18
|
+
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -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
|
*
|
|
@@ -14,7 +14,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
14
14
|
import * as environments from "../../../../environments.mjs";
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
16
|
export class UsersClient {
|
|
17
|
-
constructor(options) {
|
|
17
|
+
constructor(options = {}) {
|
|
18
18
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -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
|
*
|
|
@@ -26,7 +26,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import * as errors from "../../../../errors/index.mjs";
|
|
27
27
|
import * as AthenaIntelligence from "../../../index.mjs";
|
|
28
28
|
export class WorkspacesClient {
|
|
29
|
-
constructor(options) {
|
|
29
|
+
constructor(options = {}) {
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as core from "../core/index.mjs";
|
|
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 {
|
|
@@ -15,14 +15,16 @@ export class HeaderAuthProvider {
|
|
|
15
15
|
this.headerValue = options.apiKey;
|
|
16
16
|
}
|
|
17
17
|
static canCreate(options) {
|
|
18
|
-
|
|
18
|
+
var _a;
|
|
19
|
+
return options.apiKey != null || ((_a = process.env) === null || _a === void 0 ? void 0 : _a.ATHENA_API_KEY) != null;
|
|
19
20
|
}
|
|
20
21
|
getAuthRequest(_arg) {
|
|
21
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
|
|
23
|
+
var _a, _b;
|
|
24
|
+
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;
|
|
23
25
|
if (apiKey == null) {
|
|
24
26
|
throw new errors.AthenaIntelligenceError({
|
|
25
|
-
message: "Please specify a apiKey by passing it in to the constructor",
|
|
27
|
+
message: "Please specify a apiKey by either passing it in to the constructor or initializing a ATHENA_API_KEY environment variable",
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
const headerValue = apiKey;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2114";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2114";
|