@athenaintel/sdk 4.3.2237 → 4.3.2239

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.2237",
47
- "User-Agent": "@athenaintel/sdk/4.3.2237",
46
+ "X-Fern-SDK-Version": "4.3.2239",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2239",
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,
@@ -35,9 +35,11 @@ export declare class SemanticModelClient {
35
35
  * @param {AthenaIntelligence.GetMetaSemanticModelRequest} request
36
36
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
+ * @throws {@link AthenaIntelligence.BadRequestError}
38
39
  * @throws {@link AthenaIntelligence.UnauthorizedError}
39
40
  * @throws {@link AthenaIntelligence.ForbiddenError}
40
41
  * @throws {@link AthenaIntelligence.NotFoundError}
42
+ * @throws {@link AthenaIntelligence.ConflictError}
41
43
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
42
44
  * @throws {@link AthenaIntelligence.BadGatewayError}
43
45
  *
@@ -54,9 +56,11 @@ export declare class SemanticModelClient {
54
56
  * @param {AthenaIntelligence.SemanticModelQueryRequestIn} request
55
57
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
56
58
  *
59
+ * @throws {@link AthenaIntelligence.BadRequestError}
57
60
  * @throws {@link AthenaIntelligence.UnauthorizedError}
58
61
  * @throws {@link AthenaIntelligence.ForbiddenError}
59
62
  * @throws {@link AthenaIntelligence.NotFoundError}
63
+ * @throws {@link AthenaIntelligence.ConflictError}
60
64
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
61
65
  * @throws {@link AthenaIntelligence.BadGatewayError}
62
66
  *
@@ -155,9 +155,11 @@ class SemanticModelClient {
155
155
  * @param {AthenaIntelligence.GetMetaSemanticModelRequest} request
156
156
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
157
157
  *
158
+ * @throws {@link AthenaIntelligence.BadRequestError}
158
159
  * @throws {@link AthenaIntelligence.UnauthorizedError}
159
160
  * @throws {@link AthenaIntelligence.ForbiddenError}
160
161
  * @throws {@link AthenaIntelligence.NotFoundError}
162
+ * @throws {@link AthenaIntelligence.ConflictError}
161
163
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
162
164
  * @throws {@link AthenaIntelligence.BadGatewayError}
163
165
  *
@@ -196,12 +198,16 @@ class SemanticModelClient {
196
198
  }
197
199
  if (_response.error.reason === "status-code") {
198
200
  switch (_response.error.statusCode) {
201
+ case 400:
202
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
199
203
  case 401:
200
204
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
201
205
  case 403:
202
206
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
203
207
  case 404:
204
208
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
209
+ case 409:
210
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
205
211
  case 422:
206
212
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
207
213
  case 502:
@@ -242,9 +248,11 @@ class SemanticModelClient {
242
248
  * @param {AthenaIntelligence.SemanticModelQueryRequestIn} request
243
249
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
244
250
  *
251
+ * @throws {@link AthenaIntelligence.BadRequestError}
245
252
  * @throws {@link AthenaIntelligence.UnauthorizedError}
246
253
  * @throws {@link AthenaIntelligence.ForbiddenError}
247
254
  * @throws {@link AthenaIntelligence.NotFoundError}
255
+ * @throws {@link AthenaIntelligence.ConflictError}
248
256
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
249
257
  * @throws {@link AthenaIntelligence.BadGatewayError}
250
258
  *
@@ -287,12 +295,16 @@ class SemanticModelClient {
287
295
  }
288
296
  if (_response.error.reason === "status-code") {
289
297
  switch (_response.error.statusCode) {
298
+ case 400:
299
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
290
300
  case 401:
291
301
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
292
302
  case 403:
293
303
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
294
304
  case 404:
295
305
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
306
+ case 409:
307
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
296
308
  case 422:
297
309
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
298
310
  case 502:
@@ -15,6 +15,10 @@ export interface SemanticModelQueryResponseOut {
15
15
  queried_at?: string | null;
16
16
  /** Number of rows returned */
17
17
  row_count: number;
18
+ /** Hash of the deployed semantic model definition that computed the rows (the same value the model's citations record); null for a model that was never deployed. */
19
+ schema_hash?: string | null;
20
+ /** Deployment number of the semantic model definition that computed the rows; null for a model that was never deployed. */
21
+ schema_version?: number | null;
18
22
  /** 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
23
  source_snapshots?: AthenaIntelligence.SemanticModelSourceSnapshotOut[] | null;
20
24
  /** True when the query produced more rows than 'limit' and the result was cut; raise 'limit' or add filters to see the rest */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2237";
1
+ export declare const SDK_VERSION = "4.3.2239";
@@ -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.2237";
4
+ exports.SDK_VERSION = "4.3.2239";
@@ -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.2237",
10
- "User-Agent": "@athenaintel/sdk/4.3.2237",
9
+ "X-Fern-SDK-Version": "4.3.2239",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2239",
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,
@@ -35,9 +35,11 @@ export declare class SemanticModelClient {
35
35
  * @param {AthenaIntelligence.GetMetaSemanticModelRequest} request
36
36
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
+ * @throws {@link AthenaIntelligence.BadRequestError}
38
39
  * @throws {@link AthenaIntelligence.UnauthorizedError}
39
40
  * @throws {@link AthenaIntelligence.ForbiddenError}
40
41
  * @throws {@link AthenaIntelligence.NotFoundError}
42
+ * @throws {@link AthenaIntelligence.ConflictError}
41
43
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
42
44
  * @throws {@link AthenaIntelligence.BadGatewayError}
43
45
  *
@@ -54,9 +56,11 @@ export declare class SemanticModelClient {
54
56
  * @param {AthenaIntelligence.SemanticModelQueryRequestIn} request
55
57
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
56
58
  *
59
+ * @throws {@link AthenaIntelligence.BadRequestError}
57
60
  * @throws {@link AthenaIntelligence.UnauthorizedError}
58
61
  * @throws {@link AthenaIntelligence.ForbiddenError}
59
62
  * @throws {@link AthenaIntelligence.NotFoundError}
63
+ * @throws {@link AthenaIntelligence.ConflictError}
60
64
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
61
65
  * @throws {@link AthenaIntelligence.BadGatewayError}
62
66
  *
@@ -119,9 +119,11 @@ export class SemanticModelClient {
119
119
  * @param {AthenaIntelligence.GetMetaSemanticModelRequest} request
120
120
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
121
121
  *
122
+ * @throws {@link AthenaIntelligence.BadRequestError}
122
123
  * @throws {@link AthenaIntelligence.UnauthorizedError}
123
124
  * @throws {@link AthenaIntelligence.ForbiddenError}
124
125
  * @throws {@link AthenaIntelligence.NotFoundError}
126
+ * @throws {@link AthenaIntelligence.ConflictError}
125
127
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
126
128
  * @throws {@link AthenaIntelligence.BadGatewayError}
127
129
  *
@@ -160,12 +162,16 @@ export class SemanticModelClient {
160
162
  }
161
163
  if (_response.error.reason === "status-code") {
162
164
  switch (_response.error.statusCode) {
165
+ case 400:
166
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
163
167
  case 401:
164
168
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
165
169
  case 403:
166
170
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
167
171
  case 404:
168
172
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
173
+ case 409:
174
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
169
175
  case 422:
170
176
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
171
177
  case 502:
@@ -206,9 +212,11 @@ export class SemanticModelClient {
206
212
  * @param {AthenaIntelligence.SemanticModelQueryRequestIn} request
207
213
  * @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
208
214
  *
215
+ * @throws {@link AthenaIntelligence.BadRequestError}
209
216
  * @throws {@link AthenaIntelligence.UnauthorizedError}
210
217
  * @throws {@link AthenaIntelligence.ForbiddenError}
211
218
  * @throws {@link AthenaIntelligence.NotFoundError}
219
+ * @throws {@link AthenaIntelligence.ConflictError}
212
220
  * @throws {@link AthenaIntelligence.UnprocessableEntityError}
213
221
  * @throws {@link AthenaIntelligence.BadGatewayError}
214
222
  *
@@ -251,12 +259,16 @@ export class SemanticModelClient {
251
259
  }
252
260
  if (_response.error.reason === "status-code") {
253
261
  switch (_response.error.statusCode) {
262
+ case 400:
263
+ throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
254
264
  case 401:
255
265
  throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
256
266
  case 403:
257
267
  throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
258
268
  case 404:
259
269
  throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
270
+ case 409:
271
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
260
272
  case 422:
261
273
  throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
262
274
  case 502:
@@ -15,6 +15,10 @@ export interface SemanticModelQueryResponseOut {
15
15
  queried_at?: string | null;
16
16
  /** Number of rows returned */
17
17
  row_count: number;
18
+ /** Hash of the deployed semantic model definition that computed the rows (the same value the model's citations record); null for a model that was never deployed. */
19
+ schema_hash?: string | null;
20
+ /** Deployment number of the semantic model definition that computed the rows; null for a model that was never deployed. */
21
+ schema_version?: number | null;
18
22
  /** 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
23
  source_snapshots?: AthenaIntelligence.SemanticModelSourceSnapshotOut[] | null;
20
24
  /** True when the query produced more rows than 'limit' and the result was cut; raise 'limit' or add filters to see the rest */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2237";
1
+ export declare const SDK_VERSION = "4.3.2239";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2237";
1
+ export const SDK_VERSION = "4.3.2239";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2237",
3
+ "version": "4.3.2239",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",