@docling/docling-client 2.151.1 → 2.152.0

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/index.d.cts CHANGED
@@ -97,6 +97,16 @@ interface HeadingHierarchyOptions {
97
97
  style_size_tolerance?: number;
98
98
  /** Optional override of numbering-scheme precedence (highest level first). Default: null. */
99
99
  numbering_schemes?: string[] | null;
100
+ /**
101
+ * Extra keyword markers for the numbering signal, as a mapping from a scheme
102
+ * family to its words, for documents that are not in English. Empty by default.
103
+ */
104
+ numbering_keywords?: Record<string, string[]> | null;
105
+ /**
106
+ * Extra number words that count as the enumerator after a keyword marker, in
107
+ * addition to the English ones ('one', 'first', ...). Empty by default.
108
+ */
109
+ numbering_number_words?: string[] | null;
100
110
  /** Maximum inferred heading depth. Default: 6. */
101
111
  max_level?: number;
102
112
  /** Minimum normalized title-similarity (0..1) for bookmark matches. Default: 0.8. */
@@ -112,7 +122,12 @@ interface ConvertDocumentsOptions {
112
122
  [key: string]: unknown;
113
123
  from_formats?: InputFormat[];
114
124
  to_formats?: OutputFormat[];
115
- pipeline?: ProcessingPipeline;
125
+ /**
126
+ * Choose the pipeline to process PDF or image files.
127
+ * If not set (or null), the server uses its default pipeline
128
+ * (`standard` unless the administrator configured another one).
129
+ */
130
+ pipeline?: ProcessingPipeline | null;
116
131
  /**
117
132
  * Only convert a range of pages (1-based, inclusive). The service default
118
133
  * is the whole document, which the client never sends explicitly.
package/dist/index.d.ts CHANGED
@@ -97,6 +97,16 @@ interface HeadingHierarchyOptions {
97
97
  style_size_tolerance?: number;
98
98
  /** Optional override of numbering-scheme precedence (highest level first). Default: null. */
99
99
  numbering_schemes?: string[] | null;
100
+ /**
101
+ * Extra keyword markers for the numbering signal, as a mapping from a scheme
102
+ * family to its words, for documents that are not in English. Empty by default.
103
+ */
104
+ numbering_keywords?: Record<string, string[]> | null;
105
+ /**
106
+ * Extra number words that count as the enumerator after a keyword marker, in
107
+ * addition to the English ones ('one', 'first', ...). Empty by default.
108
+ */
109
+ numbering_number_words?: string[] | null;
100
110
  /** Maximum inferred heading depth. Default: 6. */
101
111
  max_level?: number;
102
112
  /** Minimum normalized title-similarity (0..1) for bookmark matches. Default: 0.8. */
@@ -112,7 +122,12 @@ interface ConvertDocumentsOptions {
112
122
  [key: string]: unknown;
113
123
  from_formats?: InputFormat[];
114
124
  to_formats?: OutputFormat[];
115
- pipeline?: ProcessingPipeline;
125
+ /**
126
+ * Choose the pipeline to process PDF or image files.
127
+ * If not set (or null), the server uses its default pipeline
128
+ * (`standard` unless the administrator configured another one).
129
+ */
130
+ pipeline?: ProcessingPipeline | null;
116
131
  /**
117
132
  * Only convert a range of pages (1-based, inclusive). The service default
118
133
  * is the whole document, which the client never sends explicitly.
package/dist/index.js CHANGED
@@ -2106,7 +2106,7 @@ var JSON_STRING_CONFIG_OPTIONS = [
2106
2106
  "chart_extraction_custom_config"
2107
2107
  ];
2108
2108
  function validateStringEnum(value, allowed, name) {
2109
- if (value !== void 0 && !allowed.has(value)) {
2109
+ if (value !== void 0 && value !== null && !allowed.has(value)) {
2110
2110
  throw new DoclingProtocolError(`${name} contains an unsupported value`);
2111
2111
  }
2112
2112
  }