unstructured-transform-client 0.18.107 → 0.18.108
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/ErrorCode.d.ts +1 -0
- package/dist/_generated/models/ErrorCode.js +1 -0
- package/dist/_generated/models/InsufficientBalanceError.d.ts +47 -0
- package/dist/_generated/models/InsufficientBalanceError.js +60 -0
- package/dist/_generated/models/index.d.ts +1 -0
- package/dist/_generated/models/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export declare const ErrorCode: {
|
|
|
23
23
|
readonly InvalidSchema: "invalid_schema";
|
|
24
24
|
readonly Unauthorized: "unauthorized";
|
|
25
25
|
readonly QuotaExceeded: "quota_exceeded";
|
|
26
|
+
readonly InsufficientBalance: "insufficient_balance";
|
|
26
27
|
readonly FileTooLarge: "file_too_large";
|
|
27
28
|
readonly UnsupportedFileType: "unsupported_file_type";
|
|
28
29
|
readonly CouldNotParse: "could_not_parse";
|
|
@@ -25,6 +25,7 @@ export const ErrorCode = {
|
|
|
25
25
|
InvalidSchema: 'invalid_schema',
|
|
26
26
|
Unauthorized: 'unauthorized',
|
|
27
27
|
QuotaExceeded: 'quota_exceeded',
|
|
28
|
+
InsufficientBalance: 'insufficient_balance',
|
|
28
29
|
FileTooLarge: 'file_too_large',
|
|
29
30
|
UnsupportedFileType: 'unsupported_file_type',
|
|
30
31
|
CouldNotParse: 'could_not_parse',
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import type { ErrorCode } from './ErrorCode.js';
|
|
13
|
+
/**
|
|
14
|
+
* The Error envelope for a spent balance, with the account's balance and running work.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InsufficientBalanceError
|
|
17
|
+
*/
|
|
18
|
+
export interface InsufficientBalanceError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
code: ErrorCode;
|
|
23
|
+
/**
|
|
24
|
+
* What went wrong, and what to do about it.
|
|
25
|
+
*/
|
|
26
|
+
message: string;
|
|
27
|
+
/**
|
|
28
|
+
* The account's available balance in US dollars.
|
|
29
|
+
*/
|
|
30
|
+
balanceUsd: number;
|
|
31
|
+
/**
|
|
32
|
+
* How many of the account's jobs are still running; they finish normally.
|
|
33
|
+
*/
|
|
34
|
+
jobsStillRunning: number;
|
|
35
|
+
/**
|
|
36
|
+
* Always null, because no job was created.
|
|
37
|
+
*/
|
|
38
|
+
jobId: string | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the InsufficientBalanceError interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfInsufficientBalanceError(value: object): value is InsufficientBalanceError;
|
|
44
|
+
export declare function InsufficientBalanceErrorFromJSON(json: any): InsufficientBalanceError;
|
|
45
|
+
export declare function InsufficientBalanceErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsufficientBalanceError;
|
|
46
|
+
export declare function InsufficientBalanceErrorToJSON(json: any): InsufficientBalanceError;
|
|
47
|
+
export declare function InsufficientBalanceErrorToJSONTyped(value?: InsufficientBalanceError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { ErrorCodeFromJSON, ErrorCodeToJSON, } from './ErrorCode.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the InsufficientBalanceError interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfInsufficientBalanceError(value) {
|
|
19
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if ((!('balanceUsd' in value) && !('balance_usd' in value)) || (value['balanceUsd'] === undefined && value['balance_usd'] === undefined))
|
|
24
|
+
return false;
|
|
25
|
+
if ((!('jobsStillRunning' in value) && !('jobs_still_running' in value)) || (value['jobsStillRunning'] === undefined && value['jobs_still_running'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('jobId' in value) && !('job_id' in value)) || (value['jobId'] === undefined && value['job_id'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function InsufficientBalanceErrorFromJSON(json) {
|
|
32
|
+
return InsufficientBalanceErrorFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function InsufficientBalanceErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'code': ErrorCodeFromJSON(json['code']),
|
|
40
|
+
'message': json['message'],
|
|
41
|
+
'balanceUsd': json['balance_usd'],
|
|
42
|
+
'jobsStillRunning': json['jobs_still_running'],
|
|
43
|
+
'jobId': json['job_id'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function InsufficientBalanceErrorToJSON(json) {
|
|
47
|
+
return InsufficientBalanceErrorToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function InsufficientBalanceErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'code': ErrorCodeToJSON(value['code']),
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'balance_usd': value['balanceUsd'],
|
|
57
|
+
'jobs_still_running': value['jobsStillRunning'],
|
|
58
|
+
'job_id': value['jobId'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from './ExtractRequest.js';
|
|
|
10
10
|
export * from './ExtractionResult.js';
|
|
11
11
|
export * from './FailedPage.js';
|
|
12
12
|
export * from './FieldMetadata.js';
|
|
13
|
+
export * from './InsufficientBalanceError.js';
|
|
13
14
|
export * from './JobAccepted.js';
|
|
14
15
|
export * from './JobConfiguration.js';
|
|
15
16
|
export * from './JobOperation.js';
|
|
@@ -12,6 +12,7 @@ export * from './ExtractRequest.js';
|
|
|
12
12
|
export * from './ExtractionResult.js';
|
|
13
13
|
export * from './FailedPage.js';
|
|
14
14
|
export * from './FieldMetadata.js';
|
|
15
|
+
export * from './InsufficientBalanceError.js';
|
|
15
16
|
export * from './JobAccepted.js';
|
|
16
17
|
export * from './JobConfiguration.js';
|
|
17
18
|
export * from './JobOperation.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { isAccepted, type Outcome } from "./outcome.js";
|
|
|
21
21
|
export { VERSION } from "./version.js";
|
|
22
22
|
export { FetchError, RequiredError, ResponseError } from "./_generated/runtime.js";
|
|
23
23
|
export type { ModelError as TransformErrorBody } from "./_generated/models/index.js";
|
|
24
|
+
export type { InsufficientBalanceError } from "./_generated/models/index.js";
|
|
24
25
|
export { ErrorCode, JobStatus, OutputFormat, } from "./_generated/models/index.js";
|
|
25
26
|
export { ParseRunProfileEnum as Profile } from "./_generated/apis/ParseApi.js";
|
|
26
27
|
export type { Element, ExtractionResult, JobAccepted, JobConfiguration, JobPage, JobResult, JobSummary, ParseResult, UploadResult, } from "./_generated/models/index.js";
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED