@docling/docling-client 0.3.0 → 2.130.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
@@ -123,6 +123,8 @@ interface ConvertDocumentsOptions {
123
123
  layout_custom_config?: Record<string, unknown> | string | null;
124
124
  picture_classification_preset?: string | null;
125
125
  picture_classification_custom_config?: Record<string, unknown> | string | null;
126
+ /** Use compact table format without column padding in markdown output. */
127
+ md_compact_tables?: boolean;
126
128
  abort_on_error?: boolean;
127
129
  document_timeout?: number | null;
128
130
  }
@@ -153,8 +155,10 @@ interface PutTarget {
153
155
  interface S3Coordinates {
154
156
  endpoint: string;
155
157
  verify_ssl?: boolean;
156
- access_key: string;
157
- secret_key: string;
158
+ /** AWS region of the S3 bucket, e.g. 'us-east-2'. Required for correctly signed presigned URLs against real AWS S3 buckets. */
159
+ region?: string | null;
160
+ access_key?: string | null;
161
+ secret_key?: string | null;
158
162
  bucket: string;
159
163
  key_prefix?: string;
160
164
  max_num_elements?: number | null;
package/dist/index.d.ts CHANGED
@@ -123,6 +123,8 @@ interface ConvertDocumentsOptions {
123
123
  layout_custom_config?: Record<string, unknown> | string | null;
124
124
  picture_classification_preset?: string | null;
125
125
  picture_classification_custom_config?: Record<string, unknown> | string | null;
126
+ /** Use compact table format without column padding in markdown output. */
127
+ md_compact_tables?: boolean;
126
128
  abort_on_error?: boolean;
127
129
  document_timeout?: number | null;
128
130
  }
@@ -153,8 +155,10 @@ interface PutTarget {
153
155
  interface S3Coordinates {
154
156
  endpoint: string;
155
157
  verify_ssl?: boolean;
156
- access_key: string;
157
- secret_key: string;
158
+ /** AWS region of the S3 bucket, e.g. 'us-east-2'. Required for correctly signed presigned URLs against real AWS S3 buckets. */
159
+ region?: string | null;
160
+ access_key?: string | null;
161
+ secret_key?: string | null;
158
162
  bucket: string;
159
163
  key_prefix?: string;
160
164
  max_num_elements?: number | null;
package/dist/index.js CHANGED
@@ -1389,7 +1389,8 @@ var BOOLEAN_OPTIONS = [
1389
1389
  "do_picture_classification",
1390
1390
  "do_chart_extraction",
1391
1391
  "do_picture_description",
1392
- "abort_on_error"
1392
+ "abort_on_error",
1393
+ "md_compact_tables"
1393
1394
  ];
1394
1395
  var NUMBER_OPTIONS = [
1395
1396
  "document_timeout",
@@ -3767,13 +3768,11 @@ function validateKnownConnector(value, role) {
3767
3768
  return;
3768
3769
  }
3769
3770
  if (value.kind === "s3") {
3770
- requireStringFields(
3771
- fields,
3772
- ["endpoint", "access_key", "secret_key", "bucket", "key_prefix"],
3773
- role,
3774
- true
3775
- );
3771
+ requireStringFields(fields, ["endpoint", "bucket", "key_prefix"], role, true);
3776
3772
  validateOptionalBoolean(fields.verify_ssl, `${role} verify_ssl`);
3773
+ validateOptionalString2(fields.region, `${role} region`);
3774
+ validateOptionalString2(fields.access_key, `${role} access_key`);
3775
+ validateOptionalString2(fields.secret_key, `${role} secret_key`);
3777
3776
  validatePositiveMaxElements(fields.max_num_elements, role);
3778
3777
  return;
3779
3778
  }