@athenaintel/sdk 4.3.2233 → 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.
@@ -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.2233",
47
- "User-Agent": "@athenaintel/sdk/4.3.2233",
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,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The asset a read resolved to, after the caller passed its permission check.
3
+ */
4
+ export interface AssetReadIdentityOut {
5
+ /** The asset id the permission check authorized */
6
+ id: string;
7
+ /** The asset's title */
8
+ title?: string | null;
9
+ /** The asset's original type (athena_original_type) */
10
+ type?: string | null;
11
+ /** The workspace that owns the asset */
12
+ workspace_id?: string | null;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,8 @@ import type * as AthenaIntelligence from "../index.js";
5
5
  export interface AssetReadResult {
6
6
  /** Supported/preferred anchors, returned after an unsupported anchor */
7
7
  anchor_guidance?: string | null;
8
+ /** The asset the read resolved to. Set only when the caller passed the asset's permission check: on a successful read, and on a teaching error (bad anchor, unsupported format) returned after that check. Null when the asset was refused or not found. */
9
+ asset?: AthenaIntelligence.AssetReadIdentityOut | null;
8
10
  /** The asset identifier this result is for */
9
11
  asset_id: string;
10
12
  /** The resolved asset type, when known */
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,6 +23,7 @@ export * from "./AssetCommentThread.js";
23
23
  export * from "./AssetContentRequestOut.js";
24
24
  export * from "./AssetNode.js";
25
25
  export * from "./AssetReadErrorOut.js";
26
+ export * from "./AssetReadIdentityOut.js";
26
27
  export * from "./AssetReadResponseOut.js";
27
28
  export * from "./AssetReadResult.js";
28
29
  export * from "./AssetScreenshotResponseOut.js";
@@ -115,6 +116,7 @@ export * from "./SaveAssetRequestOut.js";
115
116
  export * from "./SemanticModelMetaResponseOut.js";
116
117
  export * from "./SemanticModelOrderEntry.js";
117
118
  export * from "./SemanticModelQueryResponseOut.js";
119
+ export * from "./SemanticModelSourceSnapshotOut.js";
118
120
  export * from "./SemanticModelTokenResponseOut.js";
119
121
  export * from "./SessionOut.js";
120
122
  export * from "./ShareAssetResponseOut.js";
@@ -39,6 +39,7 @@ __exportStar(require("./AssetCommentThread.js"), exports);
39
39
  __exportStar(require("./AssetContentRequestOut.js"), exports);
40
40
  __exportStar(require("./AssetNode.js"), exports);
41
41
  __exportStar(require("./AssetReadErrorOut.js"), exports);
42
+ __exportStar(require("./AssetReadIdentityOut.js"), exports);
42
43
  __exportStar(require("./AssetReadResponseOut.js"), exports);
43
44
  __exportStar(require("./AssetReadResult.js"), exports);
44
45
  __exportStar(require("./AssetScreenshotResponseOut.js"), exports);
@@ -131,6 +132,7 @@ __exportStar(require("./SaveAssetRequestOut.js"), exports);
131
132
  __exportStar(require("./SemanticModelMetaResponseOut.js"), exports);
132
133
  __exportStar(require("./SemanticModelOrderEntry.js"), exports);
133
134
  __exportStar(require("./SemanticModelQueryResponseOut.js"), exports);
135
+ __exportStar(require("./SemanticModelSourceSnapshotOut.js"), exports);
134
136
  __exportStar(require("./SemanticModelTokenResponseOut.js"), exports);
135
137
  __exportStar(require("./SessionOut.js"), exports);
136
138
  __exportStar(require("./ShareAssetResponseOut.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2233";
1
+ export declare const SDK_VERSION = "4.3.2235";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.3.2233";
4
+ exports.SDK_VERSION = "4.3.2235";
@@ -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.2233",
10
- "User-Agent": "@athenaintel/sdk/4.3.2233",
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,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The asset a read resolved to, after the caller passed its permission check.
3
+ */
4
+ export interface AssetReadIdentityOut {
5
+ /** The asset id the permission check authorized */
6
+ id: string;
7
+ /** The asset's title */
8
+ title?: string | null;
9
+ /** The asset's original type (athena_original_type) */
10
+ type?: string | null;
11
+ /** The workspace that owns the asset */
12
+ workspace_id?: string | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -5,6 +5,8 @@ import type * as AthenaIntelligence from "../index.mjs";
5
5
  export interface AssetReadResult {
6
6
  /** Supported/preferred anchors, returned after an unsupported anchor */
7
7
  anchor_guidance?: string | null;
8
+ /** The asset the read resolved to. Set only when the caller passed the asset's permission check: on a successful read, and on a teaching error (bad anchor, unsupported format) returned after that check. Null when the asset was refused or not found. */
9
+ asset?: AthenaIntelligence.AssetReadIdentityOut | null;
8
10
  /** The asset identifier this result is for */
9
11
  asset_id: string;
10
12
  /** The resolved asset type, when known */
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -23,6 +23,7 @@ export * from "./AssetCommentThread.mjs";
23
23
  export * from "./AssetContentRequestOut.mjs";
24
24
  export * from "./AssetNode.mjs";
25
25
  export * from "./AssetReadErrorOut.mjs";
26
+ export * from "./AssetReadIdentityOut.mjs";
26
27
  export * from "./AssetReadResponseOut.mjs";
27
28
  export * from "./AssetReadResult.mjs";
28
29
  export * from "./AssetScreenshotResponseOut.mjs";
@@ -115,6 +116,7 @@ export * from "./SaveAssetRequestOut.mjs";
115
116
  export * from "./SemanticModelMetaResponseOut.mjs";
116
117
  export * from "./SemanticModelOrderEntry.mjs";
117
118
  export * from "./SemanticModelQueryResponseOut.mjs";
119
+ export * from "./SemanticModelSourceSnapshotOut.mjs";
118
120
  export * from "./SemanticModelTokenResponseOut.mjs";
119
121
  export * from "./SessionOut.mjs";
120
122
  export * from "./ShareAssetResponseOut.mjs";
@@ -23,6 +23,7 @@ export * from "./AssetCommentThread.mjs";
23
23
  export * from "./AssetContentRequestOut.mjs";
24
24
  export * from "./AssetNode.mjs";
25
25
  export * from "./AssetReadErrorOut.mjs";
26
+ export * from "./AssetReadIdentityOut.mjs";
26
27
  export * from "./AssetReadResponseOut.mjs";
27
28
  export * from "./AssetReadResult.mjs";
28
29
  export * from "./AssetScreenshotResponseOut.mjs";
@@ -115,6 +116,7 @@ export * from "./SaveAssetRequestOut.mjs";
115
116
  export * from "./SemanticModelMetaResponseOut.mjs";
116
117
  export * from "./SemanticModelOrderEntry.mjs";
117
118
  export * from "./SemanticModelQueryResponseOut.mjs";
119
+ export * from "./SemanticModelSourceSnapshotOut.mjs";
118
120
  export * from "./SemanticModelTokenResponseOut.mjs";
119
121
  export * from "./SessionOut.mjs";
120
122
  export * from "./ShareAssetResponseOut.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2233";
1
+ export declare const SDK_VERSION = "4.3.2235";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2233";
1
+ export const SDK_VERSION = "4.3.2235";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2233",
3
+ "version": "4.3.2235",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",