unstructured-transform-client 0.18.23 → 0.18.25
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/_generated/models/JobRequestSource.d.ts +25 -0
- package/dist/_generated/models/JobRequestSource.js +43 -0
- package/dist/_generated/models/JobResult.d.ts +5 -0
- package/dist/_generated/models/JobResult.js +5 -0
- package/dist/_generated/models/JobSummary.d.ts +5 -0
- package/dist/_generated/models/JobSummary.js +5 -0
- package/dist/_generated/models/index.d.ts +1 -0
- package/dist/_generated/models/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unstructured Transform API
|
|
3
|
+
* One document in, the parsed document back. A single call takes a document and returns structured output — no job graph, no strategy selection, no model provider setup, and no polling loop. An optional schema switches the request from parse-only to parse-then-extract.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Where the job was created, the Transform UI or a direct API call.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const JobRequestSource: {
|
|
17
|
+
readonly TransformUi: "transform-ui";
|
|
18
|
+
readonly TransformApi: "transform-api";
|
|
19
|
+
};
|
|
20
|
+
export type JobRequestSource = typeof JobRequestSource[keyof typeof JobRequestSource];
|
|
21
|
+
export declare function instanceOfJobRequestSource(value: any): boolean;
|
|
22
|
+
export declare function JobRequestSourceFromJSON(json: any): JobRequestSource;
|
|
23
|
+
export declare function JobRequestSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobRequestSource;
|
|
24
|
+
export declare function JobRequestSourceToJSON(value?: JobRequestSource | null): any;
|
|
25
|
+
export declare function JobRequestSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): JobRequestSource;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Unstructured Transform API
|
|
5
|
+
* One document in, the parsed document back. A single call takes a document and returns structured output — no job graph, no strategy selection, no model provider setup, and no polling loop. An optional schema switches the request from parse-only to parse-then-extract.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Where the job was created, the Transform UI or a direct API call.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const JobRequestSource = {
|
|
19
|
+
TransformUi: 'transform-ui',
|
|
20
|
+
TransformApi: 'transform-api',
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfJobRequestSource(value) {
|
|
23
|
+
for (const key in JobRequestSource) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(JobRequestSource, key)) {
|
|
25
|
+
if (JobRequestSource[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function JobRequestSourceFromJSON(json) {
|
|
33
|
+
return JobRequestSourceFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function JobRequestSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function JobRequestSourceToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function JobRequestSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { JobStatus } from './JobStatus.js';
|
|
13
13
|
import type { ParseResult } from './ParseResult.js';
|
|
14
|
+
import type { JobRequestSource } from './JobRequestSource.js';
|
|
14
15
|
import type { SourceFile } from './SourceFile.js';
|
|
15
16
|
/**
|
|
16
17
|
* A job's state, carrying parsed content as soon as it is available.
|
|
@@ -50,6 +51,10 @@ export interface JobResult {
|
|
|
50
51
|
*
|
|
51
52
|
*/
|
|
52
53
|
result?: ParseResult;
|
|
54
|
+
/**
|
|
55
|
+
* Where the job was created, when known.
|
|
56
|
+
*/
|
|
57
|
+
requestSource: JobRequestSource | null;
|
|
53
58
|
}
|
|
54
59
|
/**
|
|
55
60
|
* Check if a given object implements the JobResult interface.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { JobStatusFromJSON, JobStatusToJSON, } from './JobStatus.js';
|
|
15
15
|
import { ParseResultFromJSON, ParseResultToJSON, } from './ParseResult.js';
|
|
16
|
+
import { JobRequestSourceFromJSON, JobRequestSourceToJSON, } from './JobRequestSource.js';
|
|
16
17
|
import { SourceFileFromJSON, SourceFileToJSON, } from './SourceFile.js';
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the JobResult interface.
|
|
@@ -24,6 +25,8 @@ export function instanceOfJobResult(value) {
|
|
|
24
25
|
return false;
|
|
25
26
|
if ((!('fileId' in value) && !('file_id' in value)) || (value['fileId'] === undefined && value['file_id'] === undefined))
|
|
26
27
|
return false;
|
|
28
|
+
if ((!('requestSource' in value) && !('request_source' in value)) || (value['requestSource'] === undefined && value['request_source'] === undefined))
|
|
29
|
+
return false;
|
|
27
30
|
return true;
|
|
28
31
|
}
|
|
29
32
|
export function JobResultFromJSON(json) {
|
|
@@ -42,6 +45,7 @@ export function JobResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
45
|
'source': json['source'] === undefined ? undefined : json['source'] === null ? null : SourceFileFromJSON(json['source']),
|
|
43
46
|
'error': json['error'] == null ? undefined : json['error'],
|
|
44
47
|
'result': json['result'] == null ? undefined : ParseResultFromJSON(json['result']),
|
|
48
|
+
'requestSource': JobRequestSourceFromJSON(json['request_source']),
|
|
45
49
|
};
|
|
46
50
|
}
|
|
47
51
|
export function JobResultToJSON(json) {
|
|
@@ -60,5 +64,6 @@ export function JobResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
64
|
'source': SourceFileToJSON(value['source']),
|
|
61
65
|
'error': value['error'],
|
|
62
66
|
'result': ParseResultToJSON(value['result']),
|
|
67
|
+
'request_source': JobRequestSourceToJSON(value['requestSource']),
|
|
63
68
|
};
|
|
64
69
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { JobStatus } from './JobStatus.js';
|
|
13
13
|
import type { JobOperation } from './JobOperation.js';
|
|
14
|
+
import type { JobRequestSource } from './JobRequestSource.js';
|
|
14
15
|
import type { SourceFile } from './SourceFile.js';
|
|
15
16
|
import type { JobResultState } from './JobResultState.js';
|
|
16
17
|
/**
|
|
@@ -63,6 +64,10 @@ export interface JobSummary {
|
|
|
63
64
|
* The associated original uploaded source file, when known.
|
|
64
65
|
*/
|
|
65
66
|
source: SourceFile | null;
|
|
67
|
+
/**
|
|
68
|
+
* Where the job was created, when known.
|
|
69
|
+
*/
|
|
70
|
+
requestSource: JobRequestSource | null;
|
|
66
71
|
}
|
|
67
72
|
/**
|
|
68
73
|
* Check if a given object implements the JobSummary interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
15
|
import { JobStatusFromJSON, JobStatusToJSON, } from './JobStatus.js';
|
|
16
16
|
import { JobOperationFromJSON, JobOperationToJSON, } from './JobOperation.js';
|
|
17
|
+
import { JobRequestSourceFromJSON, JobRequestSourceToJSON, } from './JobRequestSource.js';
|
|
17
18
|
import { SourceFileFromJSON, SourceFileToJSON, } from './SourceFile.js';
|
|
18
19
|
import { JobResultStateFromJSON, JobResultStateToJSON, } from './JobResultState.js';
|
|
19
20
|
/**
|
|
@@ -40,6 +41,8 @@ export function instanceOfJobSummary(value) {
|
|
|
40
41
|
return false;
|
|
41
42
|
if (!('source' in value) || value['source'] === undefined)
|
|
42
43
|
return false;
|
|
44
|
+
if ((!('requestSource' in value) && !('request_source' in value)) || (value['requestSource'] === undefined && value['request_source'] === undefined))
|
|
45
|
+
return false;
|
|
43
46
|
return true;
|
|
44
47
|
}
|
|
45
48
|
export function JobSummaryFromJSON(json) {
|
|
@@ -61,6 +64,7 @@ export function JobSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
64
|
'resultState': JobResultStateFromJSON(json['result_state']),
|
|
62
65
|
'resultExpiresAt': (json['result_expires_at'] == null ? null : parseDateTime(json['result_expires_at'])),
|
|
63
66
|
'source': SourceFileFromJSON(json['source']),
|
|
67
|
+
'requestSource': JobRequestSourceFromJSON(json['request_source']),
|
|
64
68
|
};
|
|
65
69
|
}
|
|
66
70
|
export function JobSummaryToJSON(json) {
|
|
@@ -82,5 +86,6 @@ export function JobSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
86
|
'result_state': JobResultStateToJSON(value['resultState']),
|
|
83
87
|
'result_expires_at': value['resultExpiresAt'] == null ? value['resultExpiresAt'] : serializeDateTime(value['resultExpiresAt']),
|
|
84
88
|
'source': SourceFileToJSON(value['source']),
|
|
89
|
+
'request_source': JobRequestSourceToJSON(value['requestSource']),
|
|
85
90
|
};
|
|
86
91
|
}
|
|
@@ -9,6 +9,7 @@ export * from './FieldMetadata.js';
|
|
|
9
9
|
export * from './JobAccepted.js';
|
|
10
10
|
export * from './JobOperation.js';
|
|
11
11
|
export * from './JobPage.js';
|
|
12
|
+
export * from './JobRequestSource.js';
|
|
12
13
|
export * from './JobResult.js';
|
|
13
14
|
export * from './JobResultState.js';
|
|
14
15
|
export * from './JobStatus.js';
|
|
@@ -11,6 +11,7 @@ export * from './FieldMetadata.js';
|
|
|
11
11
|
export * from './JobAccepted.js';
|
|
12
12
|
export * from './JobOperation.js';
|
|
13
13
|
export * from './JobPage.js';
|
|
14
|
+
export * from './JobRequestSource.js';
|
|
14
15
|
export * from './JobResult.js';
|
|
15
16
|
export * from './JobResultState.js';
|
|
16
17
|
export * from './JobStatus.js';
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED