@athenaintel/sdk 4.3.2146 → 4.3.2147
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/resources/semanticModel/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.js +4 -1
- 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/resources/semanticModel/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/semanticModel/client/Client.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +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.2147",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2147",
|
|
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);
|
|
@@ -12,7 +12,7 @@ export declare class SemanticModelClient {
|
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SemanticModelClient.Options>;
|
|
13
13
|
constructor(options?: SemanticModelClient.Options);
|
|
14
14
|
/**
|
|
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.
|
|
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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
|
|
16
16
|
*
|
|
17
17
|
* @param {AthenaIntelligence.GenerateTokenSemanticModelRequest} request
|
|
18
18
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -54,6 +54,7 @@ export declare class SemanticModelClient {
|
|
|
54
54
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
57
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
57
58
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
58
59
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
59
60
|
* @throws {@link AthenaIntelligence.BadGatewayError}
|
|
@@ -66,7 +66,7 @@ class SemanticModelClient {
|
|
|
66
66
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* 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.
|
|
69
|
+
* 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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
|
|
70
70
|
*
|
|
71
71
|
* @param {AthenaIntelligence.GenerateTokenSemanticModelRequest} request
|
|
72
72
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -236,6 +236,7 @@ class SemanticModelClient {
|
|
|
236
236
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
237
|
*
|
|
238
238
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
239
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
239
240
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
240
241
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
241
242
|
* @throws {@link AthenaIntelligence.BadGatewayError}
|
|
@@ -279,6 +280,8 @@ class SemanticModelClient {
|
|
|
279
280
|
switch (_response.error.statusCode) {
|
|
280
281
|
case 401:
|
|
281
282
|
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
283
|
+
case 403:
|
|
284
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
282
285
|
case 404:
|
|
283
286
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
284
287
|
case 422:
|
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.2147";
|
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.2147",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2147",
|
|
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);
|
|
@@ -12,7 +12,7 @@ export declare class SemanticModelClient {
|
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SemanticModelClient.Options>;
|
|
13
13
|
constructor(options?: SemanticModelClient.Options);
|
|
14
14
|
/**
|
|
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.
|
|
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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
|
|
16
16
|
*
|
|
17
17
|
* @param {AthenaIntelligence.GenerateTokenSemanticModelRequest} request
|
|
18
18
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -54,6 +54,7 @@ export declare class SemanticModelClient {
|
|
|
54
54
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
57
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
57
58
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
58
59
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
59
60
|
* @throws {@link AthenaIntelligence.BadGatewayError}
|
|
@@ -30,7 +30,7 @@ export class SemanticModelClient {
|
|
|
30
30
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* 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.
|
|
33
|
+
* 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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
|
|
34
34
|
*
|
|
35
35
|
* @param {AthenaIntelligence.GenerateTokenSemanticModelRequest} request
|
|
36
36
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -200,6 +200,7 @@ export class SemanticModelClient {
|
|
|
200
200
|
* @param {SemanticModelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
201
|
*
|
|
202
202
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
203
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
203
204
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
204
205
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
205
206
|
* @throws {@link AthenaIntelligence.BadGatewayError}
|
|
@@ -243,6 +244,8 @@ export class SemanticModelClient {
|
|
|
243
244
|
switch (_response.error.statusCode) {
|
|
244
245
|
case 401:
|
|
245
246
|
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
247
|
+
case 403:
|
|
248
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
246
249
|
case 404:
|
|
247
250
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
248
251
|
case 422:
|
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.2147";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2147";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3140,7 +3140,7 @@ await client.query.executeSnippet({
|
|
|
3140
3140
|
<dl>
|
|
3141
3141
|
<dd>
|
|
3142
3142
|
|
|
3143
|
-
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.
|
|
3143
|
+
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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
|
|
3144
3144
|
</dd>
|
|
3145
3145
|
</dl>
|
|
3146
3146
|
</dd>
|