unstructured-transform-client 0.18.108 → 0.18.110

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.
@@ -53,10 +53,6 @@ export interface ParseRunRequest {
53
53
  * Optional JSON object of advanced options. The only supported option is enrichments.image_description, a boolean that defaults to false.
54
54
  */
55
55
  advancedOptions?: string;
56
- /**
57
- * Enable field-level Extract confidence when schema is supplied.
58
- */
59
- extractConfidence?: boolean;
60
56
  }
61
57
  /**
62
58
  *
@@ -78,9 +78,6 @@ export class ParseApi extends runtime.BaseAPI {
78
78
  if (requestParameters['advancedOptions'] != null) {
79
79
  formParams.append('advanced_options', requestParameters['advancedOptions']);
80
80
  }
81
- if (requestParameters['extractConfidence'] != null) {
82
- formParams.append('extract_confidence', requestParameters['extractConfidence']);
83
- }
84
81
  let urlPath = `/api/v2/parse`;
85
82
  return {
86
83
  path: urlPath,
@@ -20,10 +20,6 @@ export interface AdvancedOptions {
20
20
  *
21
21
  */
22
22
  enrichments: Enrichments;
23
- /**
24
- * Whether field-level Extract confidence was enabled for the job.
25
- */
26
- extractConfidence?: boolean;
27
23
  }
28
24
  /**
29
25
  * Check if a given object implements the AdvancedOptions interface.
@@ -29,7 +29,6 @@ export function AdvancedOptionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  }
30
30
  return {
31
31
  'enrichments': EnrichmentsFromJSON(json['enrichments']),
32
- 'extractConfidence': json['extract_confidence'] == null ? undefined : json['extract_confidence'],
33
32
  };
34
33
  }
35
34
  export function AdvancedOptionsToJSON(json) {
@@ -41,6 +40,5 @@ export function AdvancedOptionsToJSONTyped(value, ignoreDiscriminator = false) {
41
40
  }
42
41
  return {
43
42
  'enrichments': EnrichmentsToJSON(value['enrichments']),
44
- 'extract_confidence': value['extractConfidence'],
45
43
  };
46
44
  }
@@ -29,10 +29,6 @@ export interface ExtractRequest {
29
29
  * Optional free-text guidance that shapes how extracted fields are filled. Limited to 1,048,576 bytes when encoded as UTF-8.
30
30
  */
31
31
  prompt?: string;
32
- /**
33
- * Enable field-level Extract confidence for this request.
34
- */
35
- extractConfidence?: boolean;
36
32
  }
37
33
  /**
38
34
  * Check if a given object implements the ExtractRequest interface.
@@ -32,7 +32,6 @@ export function ExtractRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'parseId': json['parse_id'],
33
33
  'schema': json['schema'],
34
34
  'prompt': json['prompt'] == null ? undefined : json['prompt'],
35
- 'extractConfidence': json['extract_confidence'] == null ? undefined : json['extract_confidence'],
36
35
  };
37
36
  }
38
37
  export function ExtractRequestToJSON(json) {
@@ -46,6 +45,5 @@ export function ExtractRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
45
  'parse_id': value['parseId'],
47
46
  'schema': value['schema'],
48
47
  'prompt': value['prompt'],
49
- 'extract_confidence': value['extractConfidence'],
50
48
  };
51
49
  }
@@ -40,7 +40,7 @@ export interface ParseResult {
40
40
  */
41
41
  markdown: string | null;
42
42
  /**
43
- * The document envelope version. Version 2.1 is returned only when extract_confidence was enabled and uses value/confidence wrappers.
43
+ * The document envelope version. Version 2.1 is returned for an Extract on a deployment that scores fields, and uses value/extract_confidence wrappers.
44
44
  */
45
45
  formatVersion: string;
46
46
  /**
package/dist/client.d.ts CHANGED
@@ -79,8 +79,6 @@ export interface ParseOptions extends RequestOptions {
79
79
  profile?: ParseRunProfileEnum;
80
80
  /** `{ enrichments: { imageDescription: true } }` describes the images in the document. */
81
81
  advancedOptions?: AdvancedOptions;
82
- /** Return field-level Extract confidence with the 2.1 response shape. */
83
- extractConfidence?: boolean;
84
82
  waitSeconds?: number;
85
83
  }
86
84
  declare class ParseNamespace {
@@ -99,7 +97,6 @@ export interface ExtractOptions extends RequestOptions {
99
97
  parseId: string;
100
98
  schema: Record<string, unknown>;
101
99
  prompt?: string;
102
- extractConfidence?: boolean;
103
100
  waitSeconds?: number;
104
101
  }
105
102
  export interface ExtractFromDocumentOptions extends RequestOptions {
@@ -110,7 +107,6 @@ export interface ExtractFromDocumentOptions extends RequestOptions {
110
107
  schema: Record<string, unknown>;
111
108
  prompt?: string;
112
109
  profile?: ParseRunProfileEnum;
113
- extractConfidence?: boolean;
114
110
  waitSeconds?: number;
115
111
  }
116
112
  declare class ExtractNamespace {
package/dist/client.js CHANGED
@@ -163,7 +163,6 @@ class ParseNamespace {
163
163
  prompt: options.prompt,
164
164
  profile: options.profile,
165
165
  advancedOptions: advancedOptionsToWire(options.advancedOptions),
166
- ...(options.extractConfidence ? { extractConfidence: true } : {}),
167
166
  }, requestInit(options)));
168
167
  }
169
168
  }
@@ -179,7 +178,6 @@ class ExtractNamespace {
179
178
  parseId: options.parseId,
180
179
  schema: options.schema,
181
180
  prompt: options.prompt,
182
- ...(options.extractConfidence ? { extractConfidence: true } : {}),
183
181
  },
184
182
  prefer: prefer(options.waitSeconds),
185
183
  }, requestInit(options)));
@@ -212,7 +210,6 @@ class ExtractNamespace {
212
210
  schema: JSON.stringify(options.schema),
213
211
  prompt: options.prompt,
214
212
  profile: options.profile,
215
- extract_confidence: options.extractConfidence ? "true" : undefined,
216
213
  },
217
214
  waitSeconds: options.waitSeconds,
218
215
  signal: options.signal,
package/dist/version.d.ts CHANGED
@@ -12,4 +12,4 @@
12
12
  * (tools/release/derived_versions.py); change the series only for a
13
13
  * deliberate minor or major release.
14
14
  */
15
- export declare const VERSION = "0.18.108";
15
+ export declare const VERSION = "0.18.110";
package/dist/version.js CHANGED
@@ -12,4 +12,4 @@
12
12
  * (tools/release/derived_versions.py); change the series only for a
13
13
  * deliberate minor or major release.
14
14
  */
15
- export const VERSION = "0.18.108";
15
+ export const VERSION = "0.18.110";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unstructured-transform-client",
3
- "version": "0.18.108",
3
+ "version": "0.18.110",
4
4
  "description": "TypeScript client for the Unstructured Transform v2 API — one document in, structured output back.",
5
5
  "license": "MIT",
6
6
  "author": "Unstructured",