extend-ai 0.0.17 → 0.0.18

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/Client.js CHANGED
@@ -82,8 +82,8 @@ class ExtendClient {
82
82
  "x-extend-api-version": (_a = _options === null || _options === void 0 ? void 0 : _options.extendApiVersion) !== null && _a !== void 0 ? _a : "2025-04-21",
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "extend-ai",
85
- "X-Fern-SDK-Version": "0.0.17",
86
- "User-Agent": "extend-ai/0.0.17",
85
+ "X-Fern-SDK-Version": "0.0.18",
86
+ "User-Agent": "extend-ai/0.0.18",
87
87
  "X-Fern-Runtime": core.RUNTIME.type,
88
88
  "X-Fern-Runtime-Version": core.RUNTIME.version,
89
89
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -18,6 +18,8 @@ export interface ParserRun {
18
18
  fileId: string;
19
19
  /** An array of chunks that were parsed from the file. */
20
20
  chunks: Extend.Chunk[];
21
+ /** Raw OCR data from the parsing process. Only included when `returnOcr` is configured in the parse config's advanced options. */
22
+ ocr?: Extend.ParserRunOcr;
21
23
  /**
22
24
  * The status of the parser run:
23
25
  * * `"PROCESSED"` - The file was successfully processed
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../index";
5
+ /**
6
+ * Raw OCR data from the parsing process. Only included when `returnOcr` is configured in the parse config's advanced options.
7
+ */
8
+ export interface ParserRunOcr {
9
+ /** An array of individual words detected by OCR. */
10
+ words?: Extend.ParserRunOcrWordsItem[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../index";
5
+ export interface ParserRunOcrWordsItem {
6
+ /** The text content of the word. */
7
+ content: string;
8
+ /** The bounding box coordinates of the word. */
9
+ boundingBox: Extend.ParserRunOcrWordsItemBoundingBox;
10
+ /** The confidence score of the OCR detection for this word, between 0 and 1. */
11
+ confidence: number;
12
+ /** The page number where the word was detected. */
13
+ pageNumber: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The bounding box coordinates of the word.
6
+ */
7
+ export interface ParserRunOcrWordsItemBoundingBox {
8
+ /** The left coordinate of the bounding box. */
9
+ left: number;
10
+ /** The right coordinate of the bounding box. */
11
+ right: number;
12
+ /** The top coordinate of the bounding box. */
13
+ top: number;
14
+ /** The bottom coordinate of the bounding box. */
15
+ bottom: number;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -65,6 +65,9 @@ export * from "./ProcessorRunSummaryType";
65
65
  export * from "./ProcessorRunSummary";
66
66
  export * from "./ParseErrorCode";
67
67
  export * from "./ParseError";
68
+ export * from "./ParserRunOcrWordsItemBoundingBox";
69
+ export * from "./ParserRunOcrWordsItem";
70
+ export * from "./ParserRunOcr";
68
71
  export * from "./ParserRunStatusEnum";
69
72
  export * from "./ParserRunMetrics";
70
73
  export * from "./ParserRun";
@@ -81,6 +81,9 @@ __exportStar(require("./ProcessorRunSummaryType"), exports);
81
81
  __exportStar(require("./ProcessorRunSummary"), exports);
82
82
  __exportStar(require("./ParseErrorCode"), exports);
83
83
  __exportStar(require("./ParseError"), exports);
84
+ __exportStar(require("./ParserRunOcrWordsItemBoundingBox"), exports);
85
+ __exportStar(require("./ParserRunOcrWordsItem"), exports);
86
+ __exportStar(require("./ParserRunOcr"), exports);
84
87
  __exportStar(require("./ParserRunStatusEnum"), exports);
85
88
  __exportStar(require("./ParserRunMetrics"), exports);
86
89
  __exportStar(require("./ParserRun"), exports);
package/dist/Client.js CHANGED
@@ -82,8 +82,8 @@ class ExtendClient {
82
82
  "x-extend-api-version": (_a = _options === null || _options === void 0 ? void 0 : _options.extendApiVersion) !== null && _a !== void 0 ? _a : "2025-04-21",
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "extend-ai",
85
- "X-Fern-SDK-Version": "0.0.17",
86
- "User-Agent": "extend-ai/0.0.17",
85
+ "X-Fern-SDK-Version": "0.0.18",
86
+ "User-Agent": "extend-ai/0.0.18",
87
87
  "X-Fern-Runtime": core.RUNTIME.type,
88
88
  "X-Fern-Runtime-Version": core.RUNTIME.version,
89
89
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -18,6 +18,8 @@ export interface ParserRun {
18
18
  fileId: string;
19
19
  /** An array of chunks that were parsed from the file. */
20
20
  chunks: Extend.Chunk[];
21
+ /** Raw OCR data from the parsing process. Only included when `returnOcr` is configured in the parse config's advanced options. */
22
+ ocr?: Extend.ParserRunOcr;
21
23
  /**
22
24
  * The status of the parser run:
23
25
  * * `"PROCESSED"` - The file was successfully processed
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../index";
5
+ /**
6
+ * Raw OCR data from the parsing process. Only included when `returnOcr` is configured in the parse config's advanced options.
7
+ */
8
+ export interface ParserRunOcr {
9
+ /** An array of individual words detected by OCR. */
10
+ words?: Extend.ParserRunOcrWordsItem[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../index";
5
+ export interface ParserRunOcrWordsItem {
6
+ /** The text content of the word. */
7
+ content: string;
8
+ /** The bounding box coordinates of the word. */
9
+ boundingBox: Extend.ParserRunOcrWordsItemBoundingBox;
10
+ /** The confidence score of the OCR detection for this word, between 0 and 1. */
11
+ confidence: number;
12
+ /** The page number where the word was detected. */
13
+ pageNumber: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The bounding box coordinates of the word.
6
+ */
7
+ export interface ParserRunOcrWordsItemBoundingBox {
8
+ /** The left coordinate of the bounding box. */
9
+ left: number;
10
+ /** The right coordinate of the bounding box. */
11
+ right: number;
12
+ /** The top coordinate of the bounding box. */
13
+ top: number;
14
+ /** The bottom coordinate of the bounding box. */
15
+ bottom: number;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -65,6 +65,9 @@ export * from "./ProcessorRunSummaryType";
65
65
  export * from "./ProcessorRunSummary";
66
66
  export * from "./ParseErrorCode";
67
67
  export * from "./ParseError";
68
+ export * from "./ParserRunOcrWordsItemBoundingBox";
69
+ export * from "./ParserRunOcrWordsItem";
70
+ export * from "./ParserRunOcr";
68
71
  export * from "./ParserRunStatusEnum";
69
72
  export * from "./ParserRunMetrics";
70
73
  export * from "./ParserRun";
@@ -81,6 +81,9 @@ __exportStar(require("./ProcessorRunSummaryType"), exports);
81
81
  __exportStar(require("./ProcessorRunSummary"), exports);
82
82
  __exportStar(require("./ParseErrorCode"), exports);
83
83
  __exportStar(require("./ParseError"), exports);
84
+ __exportStar(require("./ParserRunOcrWordsItemBoundingBox"), exports);
85
+ __exportStar(require("./ParserRunOcrWordsItem"), exports);
86
+ __exportStar(require("./ParserRunOcr"), exports);
84
87
  __exportStar(require("./ParserRunStatusEnum"), exports);
85
88
  __exportStar(require("./ParserRunMetrics"), exports);
86
89
  __exportStar(require("./ParserRun"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.17";
1
+ export declare const SDK_VERSION = "0.0.18";
package/dist/version.js CHANGED
@@ -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 = "0.0.17";
4
+ exports.SDK_VERSION = "0.0.18";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extend-ai",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "repository": "github:extend-hq/extend-typescript-sdk",
6
6
  "main": "./index.js",
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.17";
1
+ export declare const SDK_VERSION = "0.0.18";
package/version.js CHANGED
@@ -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 = "0.0.17";
4
+ exports.SDK_VERSION = "0.0.18";