sarvamai 1.1.2-alpha.12 → 1.1.2-alpha.13
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/documentIntelligence/DocumentIntelligenceJob.d.ts +1 -3
- package/dist/cjs/api/resources/documentIntelligence/client/Client.js +1 -2
- package/dist/cjs/api/resources/documentIntelligence/client/requests/DocumentIntelligenceJobRequest.d.ts +1 -1
- package/dist/cjs/api/types/DocDigitizationCreateJobResponse.d.ts +1 -1
- package/dist/cjs/api/types/DocDigitizationJobParameters.d.ts +3 -5
- package/dist/cjs/api/types/DocDigitizationOutputFormat.d.ts +2 -0
- package/dist/cjs/api/types/DocDigitizationOutputFormat.js +2 -0
- package/dist/cjs/api/types/DocDigitizationSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/DocDigitizationSupportedLanguage.js +1 -1
- package/dist/cjs/api/types/index.d.ts +0 -1
- package/dist/cjs/api/types/index.js +0 -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/documentIntelligence/DocumentIntelligenceJob.d.mts +1 -3
- package/dist/esm/api/resources/documentIntelligence/client/Client.mjs +1 -2
- package/dist/esm/api/resources/documentIntelligence/client/requests/DocumentIntelligenceJobRequest.d.mts +1 -1
- package/dist/esm/api/types/DocDigitizationCreateJobResponse.d.mts +1 -1
- package/dist/esm/api/types/DocDigitizationJobParameters.d.mts +3 -5
- package/dist/esm/api/types/DocDigitizationOutputFormat.d.mts +2 -0
- package/dist/esm/api/types/DocDigitizationOutputFormat.mjs +2 -0
- package/dist/esm/api/types/DocDigitizationSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/DocDigitizationSupportedLanguage.mjs +1 -1
- package/dist/esm/api/types/index.d.mts +0 -1
- package/dist/esm/api/types/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +5 -18
- package/dist/cjs/api/types/DocDigitizationPromptType.d.ts +0 -23
- package/dist/cjs/api/types/DocDigitizationPromptType.js +0 -26
- package/dist/esm/api/types/DocDigitizationPromptType.d.mts +0 -23
- package/dist/esm/api/types/DocDigitizationPromptType.mjs +0 -23
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": "sarvamai",
|
|
46
|
-
"X-Fern-SDK-Version": "1.1.2-alpha.
|
|
47
|
-
"User-Agent": "sarvamai/1.1.2-alpha.
|
|
46
|
+
"X-Fern-SDK-Version": "1.1.2-alpha.13",
|
|
47
|
+
"User-Agent": "sarvamai/1.1.2-alpha.13",
|
|
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);
|
|
@@ -3,10 +3,8 @@ import type * as SarvamAI from "../../index.js";
|
|
|
3
3
|
export interface DocumentIntelligenceJobOptions {
|
|
4
4
|
/** Language code (e.g., "hi-IN", "en-IN") */
|
|
5
5
|
language?: SarvamAI.DocDigitizationSupportedLanguage;
|
|
6
|
-
/** Output format ("html" or "
|
|
6
|
+
/** Output format ("html", "md", or "json") */
|
|
7
7
|
outputFormat?: SarvamAI.DocDigitizationOutputFormat;
|
|
8
|
-
/** Prompt type for content processing */
|
|
9
|
-
promptType?: SarvamAI.DocDigitizationPromptType;
|
|
10
8
|
/** Webhook callback URL */
|
|
11
9
|
callbackUrl?: string;
|
|
12
10
|
/** Polling interval in milliseconds for waitUntilComplete (default: 2000) */
|
|
@@ -151,11 +151,10 @@ class DocumentIntelligenceClient {
|
|
|
151
151
|
return __awaiter(this, arguments, void 0, function* (options = {}, requestOptions) {
|
|
152
152
|
// Build the request from simplified options
|
|
153
153
|
const request = {};
|
|
154
|
-
if (options.language || options.outputFormat
|
|
154
|
+
if (options.language || options.outputFormat) {
|
|
155
155
|
request.job_parameters = {
|
|
156
156
|
language: options.language,
|
|
157
157
|
output_format: options.outputFormat,
|
|
158
|
-
prompt_type: options.promptType,
|
|
159
158
|
};
|
|
160
159
|
}
|
|
161
160
|
if (options.callbackUrl) {
|
|
@@ -4,7 +4,7 @@ import type * as SarvamAI from "../../../../index.js";
|
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
6
|
export interface DocumentIntelligenceJobRequest {
|
|
7
|
-
/**
|
|
7
|
+
/** Configuration parameters for the Document Intelligence job including language and output format. Defaults to Hindi (hi-IN) and Markdown output if omitted. */
|
|
8
8
|
job_parameters?: SarvamAI.DocDigitizationJobParameters;
|
|
9
9
|
/** Optional webhook for completion notification */
|
|
10
10
|
callback?: SarvamAI.DocDigitizationWebhookCallback;
|
|
@@ -4,7 +4,7 @@ export interface DocDigitizationCreateJobResponse {
|
|
|
4
4
|
job_id: string;
|
|
5
5
|
/** Storage Container Type */
|
|
6
6
|
storage_container_type: SarvamAI.StorageContainerType;
|
|
7
|
-
/**
|
|
7
|
+
/** Job configuration parameters */
|
|
8
8
|
job_parameters: SarvamAI.DocDigitizationJobParameters;
|
|
9
9
|
job_state: SarvamAI.DocDigitizationJobState;
|
|
10
10
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type * as SarvamAI from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Configuration parameters for Document Intelligence job. Specify the document language and desired output format.
|
|
4
4
|
*/
|
|
5
5
|
export interface DocDigitizationJobParameters {
|
|
6
|
-
/** BCP-47
|
|
6
|
+
/** Primary language of the document in BCP-47 format. This helps optimize text extraction accuracy for the specified language. */
|
|
7
7
|
language?: SarvamAI.DocDigitizationSupportedLanguage;
|
|
8
|
-
/** Output format
|
|
8
|
+
/** Output format for the extracted content (delivered as a ZIP file). Use 'html' for structured HTML, 'md' for Markdown, or 'json' for structured JSON data. */
|
|
9
9
|
output_format?: SarvamAI.DocDigitizationOutputFormat;
|
|
10
|
-
/** Processing mode for content extraction. When null (default), standard OCR is applied to text blocks, tables are converted based on output_format, and images/diagrams receive captions in the document language. */
|
|
11
|
-
prompt_type?: SarvamAI.DocDigitizationPromptType;
|
|
12
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/** Output format for extracted document content, delivered as a ZIP file. 'html' returns structured HTML files, 'md' returns human-readable Markdown files, 'json' returns structured JSON files for programmatic processing. */
|
|
1
2
|
export declare const DocDigitizationOutputFormat: {
|
|
2
3
|
readonly Html: "html";
|
|
3
4
|
readonly Md: "md";
|
|
5
|
+
readonly Json: "json";
|
|
4
6
|
};
|
|
5
7
|
export type DocDigitizationOutputFormat = (typeof DocDigitizationOutputFormat)[keyof typeof DocDigitizationOutputFormat];
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.DocDigitizationOutputFormat = void 0;
|
|
5
|
+
/** Output format for extracted document content, delivered as a ZIP file. 'html' returns structured HTML files, 'md' returns human-readable Markdown files, 'json' returns structured JSON files for programmatic processing. */
|
|
5
6
|
exports.DocDigitizationOutputFormat = {
|
|
6
7
|
Html: "html",
|
|
7
8
|
Md: "md",
|
|
9
|
+
Json: "json",
|
|
8
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** BCP-47 language code
|
|
1
|
+
/** BCP-47 language code specifying the primary language of the document. Supports 23 languages: 22 Indian languages (Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Odia, Punjabi, Assamese, Urdu, Sanskrit, Nepali, Konkani, Maithili, Sindhi, Kashmiri, Dogri, Manipuri, Bodo, Santali) and English language. */
|
|
2
2
|
export declare const DocDigitizationSupportedLanguage: {
|
|
3
3
|
readonly HiIn: "hi-IN";
|
|
4
4
|
readonly EnIn: "en-IN";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.DocDigitizationSupportedLanguage = void 0;
|
|
5
|
-
/** BCP-47 language code
|
|
5
|
+
/** BCP-47 language code specifying the primary language of the document. Supports 23 languages: 22 Indian languages (Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Odia, Punjabi, Assamese, Urdu, Sanskrit, Nepali, Konkani, Maithili, Sindhi, Kashmiri, Dogri, Manipuri, Bodo, Santali) and English language. */
|
|
6
6
|
exports.DocDigitizationSupportedLanguage = {
|
|
7
7
|
HiIn: "hi-IN",
|
|
8
8
|
EnIn: "en-IN",
|
|
@@ -30,7 +30,6 @@ export * from "./DocDigitizationJobState.js";
|
|
|
30
30
|
export * from "./DocDigitizationJobStatusResponse.js";
|
|
31
31
|
export * from "./DocDigitizationOutputFormat.js";
|
|
32
32
|
export * from "./DocDigitizationPageError.js";
|
|
33
|
-
export * from "./DocDigitizationPromptType.js";
|
|
34
33
|
export * from "./DocDigitizationSupportedLanguage.js";
|
|
35
34
|
export * from "./DocDigitizationUploadFilesResponse.js";
|
|
36
35
|
export * from "./DocDigitizationWebhookCallback.js";
|
|
@@ -46,7 +46,6 @@ __exportStar(require("./DocDigitizationJobState.js"), exports);
|
|
|
46
46
|
__exportStar(require("./DocDigitizationJobStatusResponse.js"), exports);
|
|
47
47
|
__exportStar(require("./DocDigitizationOutputFormat.js"), exports);
|
|
48
48
|
__exportStar(require("./DocDigitizationPageError.js"), exports);
|
|
49
|
-
__exportStar(require("./DocDigitizationPromptType.js"), exports);
|
|
50
49
|
__exportStar(require("./DocDigitizationSupportedLanguage.js"), exports);
|
|
51
50
|
__exportStar(require("./DocDigitizationUploadFilesResponse.js"), exports);
|
|
52
51
|
__exportStar(require("./DocDigitizationWebhookCallback.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.2-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.2-alpha.13";
|
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": "sarvamai",
|
|
9
|
-
"X-Fern-SDK-Version": "1.1.2-alpha.
|
|
10
|
-
"User-Agent": "sarvamai/1.1.2-alpha.
|
|
9
|
+
"X-Fern-SDK-Version": "1.1.2-alpha.13",
|
|
10
|
+
"User-Agent": "sarvamai/1.1.2-alpha.13",
|
|
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);
|
|
@@ -3,10 +3,8 @@ import type * as SarvamAI from "../../index.mjs";
|
|
|
3
3
|
export interface DocumentIntelligenceJobOptions {
|
|
4
4
|
/** Language code (e.g., "hi-IN", "en-IN") */
|
|
5
5
|
language?: SarvamAI.DocDigitizationSupportedLanguage;
|
|
6
|
-
/** Output format ("html" or "
|
|
6
|
+
/** Output format ("html", "md", or "json") */
|
|
7
7
|
outputFormat?: SarvamAI.DocDigitizationOutputFormat;
|
|
8
|
-
/** Prompt type for content processing */
|
|
9
|
-
promptType?: SarvamAI.DocDigitizationPromptType;
|
|
10
8
|
/** Webhook callback URL */
|
|
11
9
|
callbackUrl?: string;
|
|
12
10
|
/** Polling interval in milliseconds for waitUntilComplete (default: 2000) */
|
|
@@ -115,11 +115,10 @@ export class DocumentIntelligenceClient {
|
|
|
115
115
|
return __awaiter(this, arguments, void 0, function* (options = {}, requestOptions) {
|
|
116
116
|
// Build the request from simplified options
|
|
117
117
|
const request = {};
|
|
118
|
-
if (options.language || options.outputFormat
|
|
118
|
+
if (options.language || options.outputFormat) {
|
|
119
119
|
request.job_parameters = {
|
|
120
120
|
language: options.language,
|
|
121
121
|
output_format: options.outputFormat,
|
|
122
|
-
prompt_type: options.promptType,
|
|
123
122
|
};
|
|
124
123
|
}
|
|
125
124
|
if (options.callbackUrl) {
|
|
@@ -4,7 +4,7 @@ import type * as SarvamAI from "../../../../index.mjs";
|
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
6
|
export interface DocumentIntelligenceJobRequest {
|
|
7
|
-
/**
|
|
7
|
+
/** Configuration parameters for the Document Intelligence job including language and output format. Defaults to Hindi (hi-IN) and Markdown output if omitted. */
|
|
8
8
|
job_parameters?: SarvamAI.DocDigitizationJobParameters;
|
|
9
9
|
/** Optional webhook for completion notification */
|
|
10
10
|
callback?: SarvamAI.DocDigitizationWebhookCallback;
|
|
@@ -4,7 +4,7 @@ export interface DocDigitizationCreateJobResponse {
|
|
|
4
4
|
job_id: string;
|
|
5
5
|
/** Storage Container Type */
|
|
6
6
|
storage_container_type: SarvamAI.StorageContainerType;
|
|
7
|
-
/**
|
|
7
|
+
/** Job configuration parameters */
|
|
8
8
|
job_parameters: SarvamAI.DocDigitizationJobParameters;
|
|
9
9
|
job_state: SarvamAI.DocDigitizationJobState;
|
|
10
10
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type * as SarvamAI from "../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Configuration parameters for Document Intelligence job. Specify the document language and desired output format.
|
|
4
4
|
*/
|
|
5
5
|
export interface DocDigitizationJobParameters {
|
|
6
|
-
/** BCP-47
|
|
6
|
+
/** Primary language of the document in BCP-47 format. This helps optimize text extraction accuracy for the specified language. */
|
|
7
7
|
language?: SarvamAI.DocDigitizationSupportedLanguage;
|
|
8
|
-
/** Output format
|
|
8
|
+
/** Output format for the extracted content (delivered as a ZIP file). Use 'html' for structured HTML, 'md' for Markdown, or 'json' for structured JSON data. */
|
|
9
9
|
output_format?: SarvamAI.DocDigitizationOutputFormat;
|
|
10
|
-
/** Processing mode for content extraction. When null (default), standard OCR is applied to text blocks, tables are converted based on output_format, and images/diagrams receive captions in the document language. */
|
|
11
|
-
prompt_type?: SarvamAI.DocDigitizationPromptType;
|
|
12
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/** Output format for extracted document content, delivered as a ZIP file. 'html' returns structured HTML files, 'md' returns human-readable Markdown files, 'json' returns structured JSON files for programmatic processing. */
|
|
1
2
|
export declare const DocDigitizationOutputFormat: {
|
|
2
3
|
readonly Html: "html";
|
|
3
4
|
readonly Md: "md";
|
|
5
|
+
readonly Json: "json";
|
|
4
6
|
};
|
|
5
7
|
export type DocDigitizationOutputFormat = (typeof DocDigitizationOutputFormat)[keyof typeof DocDigitizationOutputFormat];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Output format for extracted document content, delivered as a ZIP file. 'html' returns structured HTML files, 'md' returns human-readable Markdown files, 'json' returns structured JSON files for programmatic processing. */
|
|
2
3
|
export const DocDigitizationOutputFormat = {
|
|
3
4
|
Html: "html",
|
|
4
5
|
Md: "md",
|
|
6
|
+
Json: "json",
|
|
5
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** BCP-47 language code
|
|
1
|
+
/** BCP-47 language code specifying the primary language of the document. Supports 23 languages: 22 Indian languages (Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Odia, Punjabi, Assamese, Urdu, Sanskrit, Nepali, Konkani, Maithili, Sindhi, Kashmiri, Dogri, Manipuri, Bodo, Santali) and English language. */
|
|
2
2
|
export declare const DocDigitizationSupportedLanguage: {
|
|
3
3
|
readonly HiIn: "hi-IN";
|
|
4
4
|
readonly EnIn: "en-IN";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** BCP-47 language code
|
|
2
|
+
/** BCP-47 language code specifying the primary language of the document. Supports 23 languages: 22 Indian languages (Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Odia, Punjabi, Assamese, Urdu, Sanskrit, Nepali, Konkani, Maithili, Sindhi, Kashmiri, Dogri, Manipuri, Bodo, Santali) and English language. */
|
|
3
3
|
export const DocDigitizationSupportedLanguage = {
|
|
4
4
|
HiIn: "hi-IN",
|
|
5
5
|
EnIn: "en-IN",
|
|
@@ -30,7 +30,6 @@ export * from "./DocDigitizationJobState.mjs";
|
|
|
30
30
|
export * from "./DocDigitizationJobStatusResponse.mjs";
|
|
31
31
|
export * from "./DocDigitizationOutputFormat.mjs";
|
|
32
32
|
export * from "./DocDigitizationPageError.mjs";
|
|
33
|
-
export * from "./DocDigitizationPromptType.mjs";
|
|
34
33
|
export * from "./DocDigitizationSupportedLanguage.mjs";
|
|
35
34
|
export * from "./DocDigitizationUploadFilesResponse.mjs";
|
|
36
35
|
export * from "./DocDigitizationWebhookCallback.mjs";
|
|
@@ -30,7 +30,6 @@ export * from "./DocDigitizationJobState.mjs";
|
|
|
30
30
|
export * from "./DocDigitizationJobStatusResponse.mjs";
|
|
31
31
|
export * from "./DocDigitizationOutputFormat.mjs";
|
|
32
32
|
export * from "./DocDigitizationPageError.mjs";
|
|
33
|
-
export * from "./DocDigitizationPromptType.mjs";
|
|
34
33
|
export * from "./DocDigitizationSupportedLanguage.mjs";
|
|
35
34
|
export * from "./DocDigitizationUploadFilesResponse.mjs";
|
|
36
35
|
export * from "./DocDigitizationWebhookCallback.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.2-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.2-alpha.13";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.1.2-alpha.
|
|
1
|
+
export const SDK_VERSION = "1.1.2-alpha.13";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1245,7 +1245,7 @@ await client.speechToTextTranslateJob.getDownloadLinks({
|
|
|
1245
1245
|
<dl>
|
|
1246
1246
|
<dd>
|
|
1247
1247
|
|
|
1248
|
-
Creates a new
|
|
1248
|
+
Creates a new Document Intelligence job.
|
|
1249
1249
|
|
|
1250
1250
|
**Supported Languages (BCP-47 format):**
|
|
1251
1251
|
- `hi-IN`: Hindi (default)
|
|
@@ -1272,23 +1272,10 @@ Creates a new document intelligence job.
|
|
|
1272
1272
|
- `sat-IN`: Santali
|
|
1273
1273
|
- `sd-IN`: Sindhi
|
|
1274
1274
|
|
|
1275
|
-
**Output Formats:**
|
|
1276
|
-
- `html`: Structured HTML with layout preservation
|
|
1277
|
-
- `md`: Markdown
|
|
1278
|
-
|
|
1279
|
-
**Prompt Types:**
|
|
1280
|
-
Customize how specific content types are processed:
|
|
1281
|
-
- `default_ocr`: Standard text extraction (default for all text blocks)
|
|
1282
|
-
- `table_to_html`: Convert tables to HTML format
|
|
1283
|
-
- `table_to_markdown`: Convert tables to Markdown format
|
|
1284
|
-
- `chart_to_markdown`: Extract chart data as Markdown table
|
|
1285
|
-
- `chart_to_json`: Extract chart data as JSON
|
|
1286
|
-
- `describe_image`: Generate image caption
|
|
1287
|
-
- `caption_en`: Same as describe_image (English)
|
|
1288
|
-
- `caption_in`: Caption in document language
|
|
1289
|
-
|
|
1290
|
-
**Webhook Callback:**
|
|
1291
|
-
Optionally provide a callback URL to receive notification when processing completes.
|
|
1275
|
+
**Output Formats (delivered as ZIP file):**
|
|
1276
|
+
- `html`: Structured HTML files with layout preservation
|
|
1277
|
+
- `md`: Markdown files (default)
|
|
1278
|
+
- `json`: Structured JSON files for programmatic processing
|
|
1292
1279
|
</dd>
|
|
1293
1280
|
</dl>
|
|
1294
1281
|
</dd>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Processing mode for content extraction.
|
|
3
|
-
*
|
|
4
|
-
* - **default_ocr**: Standard text extraction (default for all text blocks)
|
|
5
|
-
* - **table_to_html**: Convert tables to HTML format (applied to TABLE blocks)
|
|
6
|
-
* - **table_to_markdown**: Convert tables to Markdown format (applied to TABLE blocks)
|
|
7
|
-
* - **chart_to_markdown**: Extract chart data as Markdown table (applied to CHART blocks)
|
|
8
|
-
* - **chart_to_json**: Extract chart data as JSON (applied to CHART blocks)
|
|
9
|
-
* - **describe_image**: Generate image caption (applied to IMAGE/DIAGRAM blocks)
|
|
10
|
-
* - **caption_en**: Same as describe_image (English caption)
|
|
11
|
-
* - **caption_in**: Caption in document language (applied to IMAGE/DIAGRAM blocks)
|
|
12
|
-
*/
|
|
13
|
-
export declare const DocDigitizationPromptType: {
|
|
14
|
-
readonly DefaultOcr: "default_ocr";
|
|
15
|
-
readonly TableToHtml: "table_to_html";
|
|
16
|
-
readonly TableToMarkdown: "table_to_markdown";
|
|
17
|
-
readonly ChartToMarkdown: "chart_to_markdown";
|
|
18
|
-
readonly ChartToJson: "chart_to_json";
|
|
19
|
-
readonly DescribeImage: "describe_image";
|
|
20
|
-
readonly CaptionEn: "caption_en";
|
|
21
|
-
readonly CaptionIn: "caption_in";
|
|
22
|
-
};
|
|
23
|
-
export type DocDigitizationPromptType = (typeof DocDigitizationPromptType)[keyof typeof DocDigitizationPromptType];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DocDigitizationPromptType = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Processing mode for content extraction.
|
|
7
|
-
*
|
|
8
|
-
* - **default_ocr**: Standard text extraction (default for all text blocks)
|
|
9
|
-
* - **table_to_html**: Convert tables to HTML format (applied to TABLE blocks)
|
|
10
|
-
* - **table_to_markdown**: Convert tables to Markdown format (applied to TABLE blocks)
|
|
11
|
-
* - **chart_to_markdown**: Extract chart data as Markdown table (applied to CHART blocks)
|
|
12
|
-
* - **chart_to_json**: Extract chart data as JSON (applied to CHART blocks)
|
|
13
|
-
* - **describe_image**: Generate image caption (applied to IMAGE/DIAGRAM blocks)
|
|
14
|
-
* - **caption_en**: Same as describe_image (English caption)
|
|
15
|
-
* - **caption_in**: Caption in document language (applied to IMAGE/DIAGRAM blocks)
|
|
16
|
-
*/
|
|
17
|
-
exports.DocDigitizationPromptType = {
|
|
18
|
-
DefaultOcr: "default_ocr",
|
|
19
|
-
TableToHtml: "table_to_html",
|
|
20
|
-
TableToMarkdown: "table_to_markdown",
|
|
21
|
-
ChartToMarkdown: "chart_to_markdown",
|
|
22
|
-
ChartToJson: "chart_to_json",
|
|
23
|
-
DescribeImage: "describe_image",
|
|
24
|
-
CaptionEn: "caption_en",
|
|
25
|
-
CaptionIn: "caption_in",
|
|
26
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Processing mode for content extraction.
|
|
3
|
-
*
|
|
4
|
-
* - **default_ocr**: Standard text extraction (default for all text blocks)
|
|
5
|
-
* - **table_to_html**: Convert tables to HTML format (applied to TABLE blocks)
|
|
6
|
-
* - **table_to_markdown**: Convert tables to Markdown format (applied to TABLE blocks)
|
|
7
|
-
* - **chart_to_markdown**: Extract chart data as Markdown table (applied to CHART blocks)
|
|
8
|
-
* - **chart_to_json**: Extract chart data as JSON (applied to CHART blocks)
|
|
9
|
-
* - **describe_image**: Generate image caption (applied to IMAGE/DIAGRAM blocks)
|
|
10
|
-
* - **caption_en**: Same as describe_image (English caption)
|
|
11
|
-
* - **caption_in**: Caption in document language (applied to IMAGE/DIAGRAM blocks)
|
|
12
|
-
*/
|
|
13
|
-
export declare const DocDigitizationPromptType: {
|
|
14
|
-
readonly DefaultOcr: "default_ocr";
|
|
15
|
-
readonly TableToHtml: "table_to_html";
|
|
16
|
-
readonly TableToMarkdown: "table_to_markdown";
|
|
17
|
-
readonly ChartToMarkdown: "chart_to_markdown";
|
|
18
|
-
readonly ChartToJson: "chart_to_json";
|
|
19
|
-
readonly DescribeImage: "describe_image";
|
|
20
|
-
readonly CaptionEn: "caption_en";
|
|
21
|
-
readonly CaptionIn: "caption_in";
|
|
22
|
-
};
|
|
23
|
-
export type DocDigitizationPromptType = (typeof DocDigitizationPromptType)[keyof typeof DocDigitizationPromptType];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/**
|
|
3
|
-
* Processing mode for content extraction.
|
|
4
|
-
*
|
|
5
|
-
* - **default_ocr**: Standard text extraction (default for all text blocks)
|
|
6
|
-
* - **table_to_html**: Convert tables to HTML format (applied to TABLE blocks)
|
|
7
|
-
* - **table_to_markdown**: Convert tables to Markdown format (applied to TABLE blocks)
|
|
8
|
-
* - **chart_to_markdown**: Extract chart data as Markdown table (applied to CHART blocks)
|
|
9
|
-
* - **chart_to_json**: Extract chart data as JSON (applied to CHART blocks)
|
|
10
|
-
* - **describe_image**: Generate image caption (applied to IMAGE/DIAGRAM blocks)
|
|
11
|
-
* - **caption_en**: Same as describe_image (English caption)
|
|
12
|
-
* - **caption_in**: Caption in document language (applied to IMAGE/DIAGRAM blocks)
|
|
13
|
-
*/
|
|
14
|
-
export const DocDigitizationPromptType = {
|
|
15
|
-
DefaultOcr: "default_ocr",
|
|
16
|
-
TableToHtml: "table_to_html",
|
|
17
|
-
TableToMarkdown: "table_to_markdown",
|
|
18
|
-
ChartToMarkdown: "chart_to_markdown",
|
|
19
|
-
ChartToJson: "chart_to_json",
|
|
20
|
-
DescribeImage: "describe_image",
|
|
21
|
-
CaptionEn: "caption_en",
|
|
22
|
-
CaptionIn: "caption_in",
|
|
23
|
-
};
|