@athenaintel/sdk 4.3.2234 → 4.3.2235
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/api/types/SemanticModelQueryResponseOut.d.ts +9 -0
- package/dist/cjs/api/types/SemanticModelSourceSnapshotOut.d.ts +15 -0
- package/dist/cjs/api/types/SemanticModelSourceSnapshotOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/api/types/SemanticModelQueryResponseOut.d.mts +9 -0
- package/dist/esm/api/types/SemanticModelSourceSnapshotOut.d.mts +15 -0
- package/dist/esm/api/types/SemanticModelSourceSnapshotOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
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.2235",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2235",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* Response from a semantic model query.
|
|
3
4
|
*/
|
|
4
5
|
export interface SemanticModelQueryResponseOut {
|
|
6
|
+
/** 'snapshot' when 'data_as_of' comes from the source tables' Iceberg snapshots (lakehouse-backed models); 'query_time' when the data is as current as the moment the warehouse answered ('queried_at'). */
|
|
7
|
+
as_of_kind?: string | null;
|
|
5
8
|
/** Query result rows */
|
|
6
9
|
data: Record<string, unknown>[];
|
|
10
|
+
/** ISO-8601 UTC time the data is current as of. For a lakehouse-backed model: the oldest last-commit time across the model's source tables. Null for models over other engines (Snowflake, Databricks, BigQuery, Postgres), which expose no snapshot, and for rows the engine served from a cache computed before a source table's latest commit — use 'queried_at' instead. */
|
|
11
|
+
data_as_of?: string | null;
|
|
7
12
|
/** Server-side execution time in milliseconds (semantic layer + engine, excluding network) — surface it to show how fast the engine answered */
|
|
8
13
|
elapsed_ms?: number;
|
|
14
|
+
/** ISO-8601 UTC time the engine computed the result (an earlier time when it was served from the engine's cache). */
|
|
15
|
+
queried_at?: string | null;
|
|
9
16
|
/** Number of rows returned */
|
|
10
17
|
row_count: number;
|
|
18
|
+
/** For a lakehouse-backed model, the Iceberg snapshot of each source table the returned rows reflect; empty for models over other engines and when the rows were computed before a source table's latest commit. */
|
|
19
|
+
source_snapshots?: AthenaIntelligence.SemanticModelSourceSnapshotOut[] | null;
|
|
11
20
|
/** True when the query produced more rows than 'limit' and the result was cut; raise 'limit' or add filters to see the rest */
|
|
12
21
|
truncated?: boolean;
|
|
13
22
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One source table's Iceberg state when a semantic model query ran.
|
|
3
|
+
*/
|
|
4
|
+
export interface SemanticModelSourceSnapshotOut {
|
|
5
|
+
/** ISO-8601 UTC commit time of that snapshot */
|
|
6
|
+
committed_at?: string | null;
|
|
7
|
+
/** Lakehouse namespace of the table */
|
|
8
|
+
namespace: string;
|
|
9
|
+
/** Current Iceberg snapshot id; null for a table never written */
|
|
10
|
+
snapshot_id?: string | null;
|
|
11
|
+
/** Table name */
|
|
12
|
+
table: string;
|
|
13
|
+
/** Iceberg table UUID (stable identity) */
|
|
14
|
+
table_uuid: string;
|
|
15
|
+
}
|
|
@@ -116,6 +116,7 @@ export * from "./SaveAssetRequestOut.js";
|
|
|
116
116
|
export * from "./SemanticModelMetaResponseOut.js";
|
|
117
117
|
export * from "./SemanticModelOrderEntry.js";
|
|
118
118
|
export * from "./SemanticModelQueryResponseOut.js";
|
|
119
|
+
export * from "./SemanticModelSourceSnapshotOut.js";
|
|
119
120
|
export * from "./SemanticModelTokenResponseOut.js";
|
|
120
121
|
export * from "./SessionOut.js";
|
|
121
122
|
export * from "./ShareAssetResponseOut.js";
|
|
@@ -132,6 +132,7 @@ __exportStar(require("./SaveAssetRequestOut.js"), exports);
|
|
|
132
132
|
__exportStar(require("./SemanticModelMetaResponseOut.js"), exports);
|
|
133
133
|
__exportStar(require("./SemanticModelOrderEntry.js"), exports);
|
|
134
134
|
__exportStar(require("./SemanticModelQueryResponseOut.js"), exports);
|
|
135
|
+
__exportStar(require("./SemanticModelSourceSnapshotOut.js"), exports);
|
|
135
136
|
__exportStar(require("./SemanticModelTokenResponseOut.js"), exports);
|
|
136
137
|
__exportStar(require("./SessionOut.js"), exports);
|
|
137
138
|
__exportStar(require("./ShareAssetResponseOut.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.2235";
|
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.2235",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2235",
|
|
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,
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* Response from a semantic model query.
|
|
3
4
|
*/
|
|
4
5
|
export interface SemanticModelQueryResponseOut {
|
|
6
|
+
/** 'snapshot' when 'data_as_of' comes from the source tables' Iceberg snapshots (lakehouse-backed models); 'query_time' when the data is as current as the moment the warehouse answered ('queried_at'). */
|
|
7
|
+
as_of_kind?: string | null;
|
|
5
8
|
/** Query result rows */
|
|
6
9
|
data: Record<string, unknown>[];
|
|
10
|
+
/** ISO-8601 UTC time the data is current as of. For a lakehouse-backed model: the oldest last-commit time across the model's source tables. Null for models over other engines (Snowflake, Databricks, BigQuery, Postgres), which expose no snapshot, and for rows the engine served from a cache computed before a source table's latest commit — use 'queried_at' instead. */
|
|
11
|
+
data_as_of?: string | null;
|
|
7
12
|
/** Server-side execution time in milliseconds (semantic layer + engine, excluding network) — surface it to show how fast the engine answered */
|
|
8
13
|
elapsed_ms?: number;
|
|
14
|
+
/** ISO-8601 UTC time the engine computed the result (an earlier time when it was served from the engine's cache). */
|
|
15
|
+
queried_at?: string | null;
|
|
9
16
|
/** Number of rows returned */
|
|
10
17
|
row_count: number;
|
|
18
|
+
/** For a lakehouse-backed model, the Iceberg snapshot of each source table the returned rows reflect; empty for models over other engines and when the rows were computed before a source table's latest commit. */
|
|
19
|
+
source_snapshots?: AthenaIntelligence.SemanticModelSourceSnapshotOut[] | null;
|
|
11
20
|
/** True when the query produced more rows than 'limit' and the result was cut; raise 'limit' or add filters to see the rest */
|
|
12
21
|
truncated?: boolean;
|
|
13
22
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One source table's Iceberg state when a semantic model query ran.
|
|
3
|
+
*/
|
|
4
|
+
export interface SemanticModelSourceSnapshotOut {
|
|
5
|
+
/** ISO-8601 UTC commit time of that snapshot */
|
|
6
|
+
committed_at?: string | null;
|
|
7
|
+
/** Lakehouse namespace of the table */
|
|
8
|
+
namespace: string;
|
|
9
|
+
/** Current Iceberg snapshot id; null for a table never written */
|
|
10
|
+
snapshot_id?: string | null;
|
|
11
|
+
/** Table name */
|
|
12
|
+
table: string;
|
|
13
|
+
/** Iceberg table UUID (stable identity) */
|
|
14
|
+
table_uuid: string;
|
|
15
|
+
}
|
|
@@ -116,6 +116,7 @@ export * from "./SaveAssetRequestOut.mjs";
|
|
|
116
116
|
export * from "./SemanticModelMetaResponseOut.mjs";
|
|
117
117
|
export * from "./SemanticModelOrderEntry.mjs";
|
|
118
118
|
export * from "./SemanticModelQueryResponseOut.mjs";
|
|
119
|
+
export * from "./SemanticModelSourceSnapshotOut.mjs";
|
|
119
120
|
export * from "./SemanticModelTokenResponseOut.mjs";
|
|
120
121
|
export * from "./SessionOut.mjs";
|
|
121
122
|
export * from "./ShareAssetResponseOut.mjs";
|
|
@@ -116,6 +116,7 @@ export * from "./SaveAssetRequestOut.mjs";
|
|
|
116
116
|
export * from "./SemanticModelMetaResponseOut.mjs";
|
|
117
117
|
export * from "./SemanticModelOrderEntry.mjs";
|
|
118
118
|
export * from "./SemanticModelQueryResponseOut.mjs";
|
|
119
|
+
export * from "./SemanticModelSourceSnapshotOut.mjs";
|
|
119
120
|
export * from "./SemanticModelTokenResponseOut.mjs";
|
|
120
121
|
export * from "./SessionOut.mjs";
|
|
121
122
|
export * from "./ShareAssetResponseOut.mjs";
|
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.2235";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2235";
|