@athenaintel/sdk 4.3.2323 → 4.3.2324
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/AssetReadResult.d.ts +5 -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/types/AssetReadResult.d.mts +5 -1
- 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.2324",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2324",
|
|
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,
|
|
@@ -11,7 +11,7 @@ export interface AssetReadResult {
|
|
|
11
11
|
asset_id: string;
|
|
12
12
|
/** The resolved asset type, when known */
|
|
13
13
|
asset_type?: string | null;
|
|
14
|
-
/** The asset content. Plain text or a JSON string for structured asset types; base64-encoded image data when format is 'image'.
|
|
14
|
+
/** The asset content. Plain text or a JSON string for structured asset types; base64-encoded image data when format is 'image'. Windowed reads also report truncated/next_offset below. */
|
|
15
15
|
content: string;
|
|
16
16
|
/** Structured teaching error, populated when is_error is true */
|
|
17
17
|
error?: AthenaIntelligence.AssetReadErrorOut | null;
|
|
@@ -21,10 +21,14 @@ export interface AssetReadResult {
|
|
|
21
21
|
format_guidance?: string | null;
|
|
22
22
|
/** True when the read failed; see the error field */
|
|
23
23
|
is_error?: boolean;
|
|
24
|
+
/** When truncated, the offset to read next: append ?offset=<next_offset> (or &offset=...) to the asset_id and read again. */
|
|
25
|
+
next_offset?: number | null;
|
|
24
26
|
/** What this asset type supports, for precise follow-up reads */
|
|
25
27
|
read_capabilities?: AthenaIntelligence.ReadCapabilitiesOut | null;
|
|
26
28
|
/** Structured payload for json-format reads, when available */
|
|
27
29
|
structured_content?: Record<string, unknown> | null;
|
|
30
|
+
/** For windowed reads (documents, text files, ...): true when content stops before the end of the asset. Null when the read is not windowed. */
|
|
31
|
+
truncated?: boolean | null;
|
|
28
32
|
/** Non-fatal notice, e.g. a page/slide clamp on the requested range */
|
|
29
33
|
warning?: string | null;
|
|
30
34
|
}
|
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.2324";
|
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.2324",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2324",
|
|
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,
|
|
@@ -11,7 +11,7 @@ export interface AssetReadResult {
|
|
|
11
11
|
asset_id: string;
|
|
12
12
|
/** The resolved asset type, when known */
|
|
13
13
|
asset_type?: string | null;
|
|
14
|
-
/** The asset content. Plain text or a JSON string for structured asset types; base64-encoded image data when format is 'image'.
|
|
14
|
+
/** The asset content. Plain text or a JSON string for structured asset types; base64-encoded image data when format is 'image'. Windowed reads also report truncated/next_offset below. */
|
|
15
15
|
content: string;
|
|
16
16
|
/** Structured teaching error, populated when is_error is true */
|
|
17
17
|
error?: AthenaIntelligence.AssetReadErrorOut | null;
|
|
@@ -21,10 +21,14 @@ export interface AssetReadResult {
|
|
|
21
21
|
format_guidance?: string | null;
|
|
22
22
|
/** True when the read failed; see the error field */
|
|
23
23
|
is_error?: boolean;
|
|
24
|
+
/** When truncated, the offset to read next: append ?offset=<next_offset> (or &offset=...) to the asset_id and read again. */
|
|
25
|
+
next_offset?: number | null;
|
|
24
26
|
/** What this asset type supports, for precise follow-up reads */
|
|
25
27
|
read_capabilities?: AthenaIntelligence.ReadCapabilitiesOut | null;
|
|
26
28
|
/** Structured payload for json-format reads, when available */
|
|
27
29
|
structured_content?: Record<string, unknown> | null;
|
|
30
|
+
/** For windowed reads (documents, text files, ...): true when content stops before the end of the asset. Null when the read is not windowed. */
|
|
31
|
+
truncated?: boolean | null;
|
|
28
32
|
/** Non-fatal notice, e.g. a page/slide clamp on the requested range */
|
|
29
33
|
warning?: string | null;
|
|
30
34
|
}
|
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.2324";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2324";
|