bem-ai-sdk 0.2.0 → 0.4.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/CHANGELOG.md +16 -0
- package/client.d.mts +13 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -0
- package/client.d.ts.map +1 -1
- package/client.js +13 -0
- package/client.js.map +1 -1
- package/client.mjs +13 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/functions/functions.d.mts +233 -14
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +233 -14
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/versions.d.mts +45 -1
- package/resources/functions/versions.d.mts.map +1 -1
- package/resources/functions/versions.d.ts +45 -1
- package/resources/functions/versions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infer-schema.d.mts +133 -0
- package/resources/infer-schema.d.mts.map +1 -0
- package/resources/infer-schema.d.ts +133 -0
- package/resources/infer-schema.d.ts.map +1 -0
- package/resources/infer-schema.js +54 -0
- package/resources/infer-schema.js.map +1 -0
- package/resources/infer-schema.mjs +50 -0
- package/resources/infer-schema.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +58 -15
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +58 -15
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +17 -7
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +18 -8
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +19 -0
- package/src/resources/functions/functions.ts +287 -8
- package/src/resources/functions/versions.ts +60 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/infer-schema.ts +160 -0
- package/src/resources/workflows/workflows.ts +104 -17
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE;OACpF,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B;OACM,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EACL,OAAO,EACP,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,GAC5B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE;OACpF,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B;OACM,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,kCAAkC,EACvC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,OAAO,EACP,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,GAC5B"}
|
package/resources/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Workflows = exports.Outputs = exports.Functions = exports.Errors = exports.Calls = void 0;
|
|
4
|
+
exports.Workflows = exports.Outputs = exports.InferSchema = exports.Functions = exports.Errors = exports.Calls = void 0;
|
|
5
5
|
var calls_1 = require("./calls.js");
|
|
6
6
|
Object.defineProperty(exports, "Calls", { enumerable: true, get: function () { return calls_1.Calls; } });
|
|
7
7
|
var errors_1 = require("./errors.js");
|
|
8
8
|
Object.defineProperty(exports, "Errors", { enumerable: true, get: function () { return errors_1.Errors; } });
|
|
9
9
|
var functions_1 = require("./functions/functions.js");
|
|
10
10
|
Object.defineProperty(exports, "Functions", { enumerable: true, get: function () { return functions_1.Functions; } });
|
|
11
|
+
var infer_schema_1 = require("./infer-schema.js");
|
|
12
|
+
Object.defineProperty(exports, "InferSchema", { enumerable: true, get: function () { return infer_schema_1.InferSchema; } });
|
|
11
13
|
var outputs_1 = require("./outputs.js");
|
|
12
14
|
Object.defineProperty(exports, "Outputs", { enumerable: true, get: function () { return outputs_1.Outputs; } });
|
|
13
15
|
var workflows_1 = require("./workflows/workflows.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA2G;AAAlG,8FAAA,KAAK,OAAA;AACd,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,sDAmB+B;AAlB7B,sGAAA,SAAS,OAAA;AAmBX,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,sDAkB+B;AAjB7B,sGAAA,SAAS,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA2G;AAAlG,8FAAA,KAAK,OAAA;AACd,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,sDAmB+B;AAlB7B,sGAAA,SAAS,OAAA;AAmBX,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,sDAkB+B;AAjB7B,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export { Calls } from "./calls.mjs";
|
|
3
3
|
export { Errors, } from "./errors.mjs";
|
|
4
4
|
export { Functions, } from "./functions/functions.mjs";
|
|
5
|
+
export { InferSchema } from "./infer-schema.mjs";
|
|
5
6
|
export { Outputs, } from "./outputs.mjs";
|
|
6
7
|
export { Workflows, } from "./workflows/workflows.mjs";
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA6E;OACpF,EACL,MAAM,GAMP;OACM,EACL,SAAS,GAkBV;OACM,EACL,OAAO,GAMR;OACM,EACL,SAAS,GAiBV"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA6E;OACpF,EACL,MAAM,GAMP;OACM,EACL,SAAS,GAkBV;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,OAAO,GAMR;OACM,EACL,SAAS,GAiBV"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Infer JSON Schemas from uploaded documents using AI.
|
|
6
|
+
*
|
|
7
|
+
* Upload a file (PDF, image, spreadsheet, email, etc.) and receive a general-purpose JSON Schema
|
|
8
|
+
* that captures the document's structure. The inferred schema can be used directly as the
|
|
9
|
+
* `outputSchema` when creating Transform functions.
|
|
10
|
+
*
|
|
11
|
+
* The schema is designed to be broadly applicable to documents of the same type, not just
|
|
12
|
+
* the specific file uploaded.
|
|
13
|
+
*/
|
|
14
|
+
export declare class InferSchema extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* **Analyze a file and infer a JSON Schema from its contents.**
|
|
17
|
+
*
|
|
18
|
+
* Accepts a file via multipart form upload and uses Gemini to analyze the
|
|
19
|
+
* document, returning a description of its contents, an inferred JSON Schema
|
|
20
|
+
* capturing all extractable fields, and document classification metadata.
|
|
21
|
+
*
|
|
22
|
+
* The returned schema is designed to be reusable across many similar documents of
|
|
23
|
+
* the same type, not just the specific file uploaded. It can be used directly as
|
|
24
|
+
* the `outputSchema` when creating a Transform function.
|
|
25
|
+
*
|
|
26
|
+
* The endpoint also detects whether the file contains multiple bundled documents
|
|
27
|
+
* and classifies the content nature (textual, visual, audio, video, or mixed).
|
|
28
|
+
*
|
|
29
|
+
* ## Supported file types
|
|
30
|
+
*
|
|
31
|
+
* PDF, PNG, JPEG, HEIC, HEIF, WebP, CSV, XLS, XLSX, DOCX, JSON, HTML, XML, EML,
|
|
32
|
+
* plain text, WAV, MP3, M4A, MP4.
|
|
33
|
+
*
|
|
34
|
+
* ## File size limit
|
|
35
|
+
*
|
|
36
|
+
* Maximum file size is **20 MB**.
|
|
37
|
+
*
|
|
38
|
+
* ## Example
|
|
39
|
+
*
|
|
40
|
+
* ```bash
|
|
41
|
+
* curl -X POST https://api.bem.ai/v3/infer-schema \
|
|
42
|
+
* -H "x-api-key: YOUR_API_KEY" \
|
|
43
|
+
* -F "file=@invoice.pdf"
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body: InferSchemaCreateParams, options?: RequestOptions): APIPromise<InferSchemaCreateResponse>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Response from the infer-schema endpoint.
|
|
50
|
+
*/
|
|
51
|
+
export interface InferSchemaCreateResponse {
|
|
52
|
+
/**
|
|
53
|
+
* Analysis result returned by the infer-schema endpoint.
|
|
54
|
+
*/
|
|
55
|
+
analysis: InferSchemaCreateResponse.Analysis;
|
|
56
|
+
/**
|
|
57
|
+
* Original filename of the uploaded file.
|
|
58
|
+
*/
|
|
59
|
+
filename: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace InferSchemaCreateResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Analysis result returned by the infer-schema endpoint.
|
|
64
|
+
*/
|
|
65
|
+
interface Analysis {
|
|
66
|
+
/**
|
|
67
|
+
* Classification of the primary content. One of: `textual`, `visual`, `audio`,
|
|
68
|
+
* `video`, `mixed`.
|
|
69
|
+
*/
|
|
70
|
+
contentNature: string;
|
|
71
|
+
/**
|
|
72
|
+
* MIME content type of the uploaded file.
|
|
73
|
+
*/
|
|
74
|
+
contentType: string;
|
|
75
|
+
/**
|
|
76
|
+
* 2-3 sentence description of what the file contains.
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* List of distinct document types found in the file with counts.
|
|
81
|
+
*/
|
|
82
|
+
documentTypes: Array<Analysis.DocumentType>;
|
|
83
|
+
/**
|
|
84
|
+
* Original filename of the uploaded file.
|
|
85
|
+
*/
|
|
86
|
+
fileName: string;
|
|
87
|
+
/**
|
|
88
|
+
* High-level file category (e.g. "document", "image", "spreadsheet", "email").
|
|
89
|
+
*/
|
|
90
|
+
fileType: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the file contains multiple separate documents bundled together.
|
|
93
|
+
*/
|
|
94
|
+
isMultiDocument: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Size of the uploaded file in bytes.
|
|
97
|
+
*/
|
|
98
|
+
sizeBytes: number;
|
|
99
|
+
/**
|
|
100
|
+
* Inferred JSON Schema representing all extractable data fields.
|
|
101
|
+
*/
|
|
102
|
+
schema?: unknown;
|
|
103
|
+
}
|
|
104
|
+
namespace Analysis {
|
|
105
|
+
/**
|
|
106
|
+
* Describes a distinct document type found in the file.
|
|
107
|
+
*/
|
|
108
|
+
interface DocumentType {
|
|
109
|
+
/**
|
|
110
|
+
* Number of instances of this document type in the file.
|
|
111
|
+
*/
|
|
112
|
+
count: number;
|
|
113
|
+
/**
|
|
114
|
+
* Brief description of this document type.
|
|
115
|
+
*/
|
|
116
|
+
description: string;
|
|
117
|
+
/**
|
|
118
|
+
* Short snake_case name (e.g. "invoice", "receipt", "utility_bill").
|
|
119
|
+
*/
|
|
120
|
+
name: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export interface InferSchemaCreateParams {
|
|
125
|
+
/**
|
|
126
|
+
* The file to analyze and infer a JSON schema from.
|
|
127
|
+
*/
|
|
128
|
+
file: unknown;
|
|
129
|
+
}
|
|
130
|
+
export declare namespace InferSchema {
|
|
131
|
+
export { type InferSchemaCreateResponse as InferSchemaCreateResponse, type InferSchemaCreateParams as InferSchemaCreateParams, };
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=infer-schema.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-schema.d.mts","sourceRoot":"","sources":["../src/resources/infer-schema.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;GASG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAMvG;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,CAAC;IAE7C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE5C;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,eAAe,EAAE,OAAO,CAAC;QAEzB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB;;WAEG;QACH,UAAiB,YAAY;YAC3B;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Infer JSON Schemas from uploaded documents using AI.
|
|
6
|
+
*
|
|
7
|
+
* Upload a file (PDF, image, spreadsheet, email, etc.) and receive a general-purpose JSON Schema
|
|
8
|
+
* that captures the document's structure. The inferred schema can be used directly as the
|
|
9
|
+
* `outputSchema` when creating Transform functions.
|
|
10
|
+
*
|
|
11
|
+
* The schema is designed to be broadly applicable to documents of the same type, not just
|
|
12
|
+
* the specific file uploaded.
|
|
13
|
+
*/
|
|
14
|
+
export declare class InferSchema extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* **Analyze a file and infer a JSON Schema from its contents.**
|
|
17
|
+
*
|
|
18
|
+
* Accepts a file via multipart form upload and uses Gemini to analyze the
|
|
19
|
+
* document, returning a description of its contents, an inferred JSON Schema
|
|
20
|
+
* capturing all extractable fields, and document classification metadata.
|
|
21
|
+
*
|
|
22
|
+
* The returned schema is designed to be reusable across many similar documents of
|
|
23
|
+
* the same type, not just the specific file uploaded. It can be used directly as
|
|
24
|
+
* the `outputSchema` when creating a Transform function.
|
|
25
|
+
*
|
|
26
|
+
* The endpoint also detects whether the file contains multiple bundled documents
|
|
27
|
+
* and classifies the content nature (textual, visual, audio, video, or mixed).
|
|
28
|
+
*
|
|
29
|
+
* ## Supported file types
|
|
30
|
+
*
|
|
31
|
+
* PDF, PNG, JPEG, HEIC, HEIF, WebP, CSV, XLS, XLSX, DOCX, JSON, HTML, XML, EML,
|
|
32
|
+
* plain text, WAV, MP3, M4A, MP4.
|
|
33
|
+
*
|
|
34
|
+
* ## File size limit
|
|
35
|
+
*
|
|
36
|
+
* Maximum file size is **20 MB**.
|
|
37
|
+
*
|
|
38
|
+
* ## Example
|
|
39
|
+
*
|
|
40
|
+
* ```bash
|
|
41
|
+
* curl -X POST https://api.bem.ai/v3/infer-schema \
|
|
42
|
+
* -H "x-api-key: YOUR_API_KEY" \
|
|
43
|
+
* -F "file=@invoice.pdf"
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body: InferSchemaCreateParams, options?: RequestOptions): APIPromise<InferSchemaCreateResponse>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Response from the infer-schema endpoint.
|
|
50
|
+
*/
|
|
51
|
+
export interface InferSchemaCreateResponse {
|
|
52
|
+
/**
|
|
53
|
+
* Analysis result returned by the infer-schema endpoint.
|
|
54
|
+
*/
|
|
55
|
+
analysis: InferSchemaCreateResponse.Analysis;
|
|
56
|
+
/**
|
|
57
|
+
* Original filename of the uploaded file.
|
|
58
|
+
*/
|
|
59
|
+
filename: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace InferSchemaCreateResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Analysis result returned by the infer-schema endpoint.
|
|
64
|
+
*/
|
|
65
|
+
interface Analysis {
|
|
66
|
+
/**
|
|
67
|
+
* Classification of the primary content. One of: `textual`, `visual`, `audio`,
|
|
68
|
+
* `video`, `mixed`.
|
|
69
|
+
*/
|
|
70
|
+
contentNature: string;
|
|
71
|
+
/**
|
|
72
|
+
* MIME content type of the uploaded file.
|
|
73
|
+
*/
|
|
74
|
+
contentType: string;
|
|
75
|
+
/**
|
|
76
|
+
* 2-3 sentence description of what the file contains.
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* List of distinct document types found in the file with counts.
|
|
81
|
+
*/
|
|
82
|
+
documentTypes: Array<Analysis.DocumentType>;
|
|
83
|
+
/**
|
|
84
|
+
* Original filename of the uploaded file.
|
|
85
|
+
*/
|
|
86
|
+
fileName: string;
|
|
87
|
+
/**
|
|
88
|
+
* High-level file category (e.g. "document", "image", "spreadsheet", "email").
|
|
89
|
+
*/
|
|
90
|
+
fileType: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the file contains multiple separate documents bundled together.
|
|
93
|
+
*/
|
|
94
|
+
isMultiDocument: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Size of the uploaded file in bytes.
|
|
97
|
+
*/
|
|
98
|
+
sizeBytes: number;
|
|
99
|
+
/**
|
|
100
|
+
* Inferred JSON Schema representing all extractable data fields.
|
|
101
|
+
*/
|
|
102
|
+
schema?: unknown;
|
|
103
|
+
}
|
|
104
|
+
namespace Analysis {
|
|
105
|
+
/**
|
|
106
|
+
* Describes a distinct document type found in the file.
|
|
107
|
+
*/
|
|
108
|
+
interface DocumentType {
|
|
109
|
+
/**
|
|
110
|
+
* Number of instances of this document type in the file.
|
|
111
|
+
*/
|
|
112
|
+
count: number;
|
|
113
|
+
/**
|
|
114
|
+
* Brief description of this document type.
|
|
115
|
+
*/
|
|
116
|
+
description: string;
|
|
117
|
+
/**
|
|
118
|
+
* Short snake_case name (e.g. "invoice", "receipt", "utility_bill").
|
|
119
|
+
*/
|
|
120
|
+
name: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export interface InferSchemaCreateParams {
|
|
125
|
+
/**
|
|
126
|
+
* The file to analyze and infer a JSON schema from.
|
|
127
|
+
*/
|
|
128
|
+
file: unknown;
|
|
129
|
+
}
|
|
130
|
+
export declare namespace InferSchema {
|
|
131
|
+
export { type InferSchemaCreateResponse as InferSchemaCreateResponse, type InferSchemaCreateParams as InferSchemaCreateParams, };
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=infer-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-schema.d.ts","sourceRoot":"","sources":["../src/resources/infer-schema.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;GASG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAMvG;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,CAAC;IAE7C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE5C;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,eAAe,EAAE,OAAO,CAAC;QAEzB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB;;WAEG;QACH,UAAiB,YAAY;YAC3B;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InferSchema = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const uploads_1 = require("../internal/uploads.js");
|
|
7
|
+
/**
|
|
8
|
+
* Infer JSON Schemas from uploaded documents using AI.
|
|
9
|
+
*
|
|
10
|
+
* Upload a file (PDF, image, spreadsheet, email, etc.) and receive a general-purpose JSON Schema
|
|
11
|
+
* that captures the document's structure. The inferred schema can be used directly as the
|
|
12
|
+
* `outputSchema` when creating Transform functions.
|
|
13
|
+
*
|
|
14
|
+
* The schema is designed to be broadly applicable to documents of the same type, not just
|
|
15
|
+
* the specific file uploaded.
|
|
16
|
+
*/
|
|
17
|
+
class InferSchema extends resource_1.APIResource {
|
|
18
|
+
/**
|
|
19
|
+
* **Analyze a file and infer a JSON Schema from its contents.**
|
|
20
|
+
*
|
|
21
|
+
* Accepts a file via multipart form upload and uses Gemini to analyze the
|
|
22
|
+
* document, returning a description of its contents, an inferred JSON Schema
|
|
23
|
+
* capturing all extractable fields, and document classification metadata.
|
|
24
|
+
*
|
|
25
|
+
* The returned schema is designed to be reusable across many similar documents of
|
|
26
|
+
* the same type, not just the specific file uploaded. It can be used directly as
|
|
27
|
+
* the `outputSchema` when creating a Transform function.
|
|
28
|
+
*
|
|
29
|
+
* The endpoint also detects whether the file contains multiple bundled documents
|
|
30
|
+
* and classifies the content nature (textual, visual, audio, video, or mixed).
|
|
31
|
+
*
|
|
32
|
+
* ## Supported file types
|
|
33
|
+
*
|
|
34
|
+
* PDF, PNG, JPEG, HEIC, HEIF, WebP, CSV, XLS, XLSX, DOCX, JSON, HTML, XML, EML,
|
|
35
|
+
* plain text, WAV, MP3, M4A, MP4.
|
|
36
|
+
*
|
|
37
|
+
* ## File size limit
|
|
38
|
+
*
|
|
39
|
+
* Maximum file size is **20 MB**.
|
|
40
|
+
*
|
|
41
|
+
* ## Example
|
|
42
|
+
*
|
|
43
|
+
* ```bash
|
|
44
|
+
* curl -X POST https://api.bem.ai/v3/infer-schema \
|
|
45
|
+
* -H "x-api-key: YOUR_API_KEY" \
|
|
46
|
+
* -F "file=@invoice.pdf"
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
create(body, options) {
|
|
50
|
+
return this._client.post('/v3/infer-schema', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.InferSchema = InferSchema;
|
|
54
|
+
//# sourceMappingURL=infer-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-schema.js","sourceRoot":"","sources":["../src/resources/infer-schema.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAkE;AAElE;;;;;;;;;GASG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,kBAAkB,EAClB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAtCD,kCAsCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { multipartFormRequestOptions } from "../internal/uploads.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Infer JSON Schemas from uploaded documents using AI.
|
|
6
|
+
*
|
|
7
|
+
* Upload a file (PDF, image, spreadsheet, email, etc.) and receive a general-purpose JSON Schema
|
|
8
|
+
* that captures the document's structure. The inferred schema can be used directly as the
|
|
9
|
+
* `outputSchema` when creating Transform functions.
|
|
10
|
+
*
|
|
11
|
+
* The schema is designed to be broadly applicable to documents of the same type, not just
|
|
12
|
+
* the specific file uploaded.
|
|
13
|
+
*/
|
|
14
|
+
export class InferSchema extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* **Analyze a file and infer a JSON Schema from its contents.**
|
|
17
|
+
*
|
|
18
|
+
* Accepts a file via multipart form upload and uses Gemini to analyze the
|
|
19
|
+
* document, returning a description of its contents, an inferred JSON Schema
|
|
20
|
+
* capturing all extractable fields, and document classification metadata.
|
|
21
|
+
*
|
|
22
|
+
* The returned schema is designed to be reusable across many similar documents of
|
|
23
|
+
* the same type, not just the specific file uploaded. It can be used directly as
|
|
24
|
+
* the `outputSchema` when creating a Transform function.
|
|
25
|
+
*
|
|
26
|
+
* The endpoint also detects whether the file contains multiple bundled documents
|
|
27
|
+
* and classifies the content nature (textual, visual, audio, video, or mixed).
|
|
28
|
+
*
|
|
29
|
+
* ## Supported file types
|
|
30
|
+
*
|
|
31
|
+
* PDF, PNG, JPEG, HEIC, HEIF, WebP, CSV, XLS, XLSX, DOCX, JSON, HTML, XML, EML,
|
|
32
|
+
* plain text, WAV, MP3, M4A, MP4.
|
|
33
|
+
*
|
|
34
|
+
* ## File size limit
|
|
35
|
+
*
|
|
36
|
+
* Maximum file size is **20 MB**.
|
|
37
|
+
*
|
|
38
|
+
* ## Example
|
|
39
|
+
*
|
|
40
|
+
* ```bash
|
|
41
|
+
* curl -X POST https://api.bem.ai/v3/infer-schema \
|
|
42
|
+
* -H "x-api-key: YOUR_API_KEY" \
|
|
43
|
+
* -F "file=@invoice.pdf"
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body, options) {
|
|
47
|
+
return this._client.post('/v3/infer-schema', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=infer-schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-schema.mjs","sourceRoot":"","sources":["../src/resources/infer-schema.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,2BAA2B,EAAE;AAEtC;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,kBAAkB,EAClB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -33,16 +33,25 @@ export declare class Workflows extends APIResource {
|
|
|
33
33
|
*/
|
|
34
34
|
delete(workflowName: string, options?: RequestOptions): APIPromise<void>;
|
|
35
35
|
/**
|
|
36
|
-
* **Invoke a workflow
|
|
36
|
+
* **Invoke a workflow.**
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* Submit the input file as either a multipart form request or a JSON request with
|
|
39
|
+
* base64-encoded file content. The workflow name is derived from the URL path.
|
|
40
|
+
*
|
|
41
|
+
* ## Input Formats
|
|
42
|
+
*
|
|
43
|
+
* - **Multipart form** (`multipart/form-data`): attach the file directly via the
|
|
44
|
+
* `file` or `files` fields. Set `wait` in the form body to control synchronous
|
|
45
|
+
* behaviour.
|
|
46
|
+
* - **JSON** (`application/json`): base64-encode the file content and set it in
|
|
47
|
+
* `input.singleFile.inputContent` or `input.batchFiles.inputs[*].inputContent`.
|
|
48
|
+
* Pass `wait=true` as a query parameter to control synchronous behaviour.
|
|
40
49
|
*
|
|
41
50
|
* ## Synchronous vs Asynchronous
|
|
42
51
|
*
|
|
43
52
|
* By default the call is created asynchronously and this endpoint returns
|
|
44
|
-
* `202 Accepted` immediately with a `pending` call object. Set
|
|
45
|
-
*
|
|
53
|
+
* `202 Accepted` immediately with a `pending` call object. Set `wait` to `true` to
|
|
54
|
+
* block until the call completes (up to 30 seconds):
|
|
46
55
|
*
|
|
47
56
|
* - On success: returns `200 OK` with the completed call, `outputs` populated
|
|
48
57
|
* - On failure: returns `500 Internal Server Error` with the call and an `error`
|
|
@@ -54,7 +63,7 @@ export declare class Workflows extends APIResource {
|
|
|
54
63
|
* Poll `GET /v3/calls/{callID}` to check status, or configure a webhook
|
|
55
64
|
* subscription to receive events when the call finishes.
|
|
56
65
|
*/
|
|
57
|
-
call(workflowName: string,
|
|
66
|
+
call(workflowName: string, params: WorkflowCallParams, options?: RequestOptions): APIPromise<CallsAPI.CallGetResponse>;
|
|
58
67
|
/**
|
|
59
68
|
* Copy a Workflow
|
|
60
69
|
*/
|
|
@@ -378,22 +387,56 @@ export interface WorkflowListParams extends WorkflowsPageParams {
|
|
|
378
387
|
}
|
|
379
388
|
export interface WorkflowCallParams {
|
|
380
389
|
/**
|
|
381
|
-
*
|
|
390
|
+
* Body param: Input to the workflow call. Provide exactly one of `singleFile` or
|
|
391
|
+
* `batchFiles`.
|
|
382
392
|
*/
|
|
383
|
-
|
|
393
|
+
input: WorkflowCallParams.Input;
|
|
384
394
|
/**
|
|
385
|
-
*
|
|
395
|
+
* Query param: When `true`, the endpoint blocks until the call completes (up to 30
|
|
396
|
+
* seconds) and returns the finished call object. Default: `false`.
|
|
386
397
|
*/
|
|
387
|
-
|
|
398
|
+
wait?: boolean;
|
|
388
399
|
/**
|
|
389
|
-
*
|
|
400
|
+
* Body param: Your reference ID for tracking this call.
|
|
390
401
|
*/
|
|
391
|
-
|
|
402
|
+
callReferenceID?: string;
|
|
403
|
+
}
|
|
404
|
+
export declare namespace WorkflowCallParams {
|
|
392
405
|
/**
|
|
393
|
-
*
|
|
394
|
-
* returns the finished call object. Default: `false`.
|
|
406
|
+
* Input to the workflow call. Provide exactly one of `singleFile` or `batchFiles`.
|
|
395
407
|
*/
|
|
396
|
-
|
|
408
|
+
interface Input {
|
|
409
|
+
batchFiles?: Input.BatchFiles;
|
|
410
|
+
singleFile?: Input.SingleFile;
|
|
411
|
+
}
|
|
412
|
+
namespace Input {
|
|
413
|
+
interface BatchFiles {
|
|
414
|
+
inputs?: Array<BatchFiles.Input>;
|
|
415
|
+
}
|
|
416
|
+
namespace BatchFiles {
|
|
417
|
+
interface Input {
|
|
418
|
+
/**
|
|
419
|
+
* Base64-encoded file content
|
|
420
|
+
*/
|
|
421
|
+
inputContent: string;
|
|
422
|
+
/**
|
|
423
|
+
* The input type of the content you're sending for transformation.
|
|
424
|
+
*/
|
|
425
|
+
inputType: 'csv' | 'docx' | 'email' | 'heic' | 'html' | 'jpeg' | 'json' | 'heif' | 'm4a' | 'mp3' | 'pdf' | 'png' | 'text' | 'wav' | 'webp' | 'xls' | 'xlsx' | 'xml';
|
|
426
|
+
itemReferenceID?: string;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
interface SingleFile {
|
|
430
|
+
/**
|
|
431
|
+
* Base64-encoded file content
|
|
432
|
+
*/
|
|
433
|
+
inputContent: string;
|
|
434
|
+
/**
|
|
435
|
+
* The input type of the content you're sending for transformation.
|
|
436
|
+
*/
|
|
437
|
+
inputType: 'csv' | 'docx' | 'email' | 'heic' | 'html' | 'jpeg' | 'json' | 'heif' | 'm4a' | 'mp3' | 'pdf' | 'png' | 'text' | 'wav' | 'webp' | 'xls' | 'xlsx' | 'xml';
|
|
438
|
+
}
|
|
439
|
+
}
|
|
397
440
|
}
|
|
398
441
|
export interface WorkflowCopyParams {
|
|
399
442
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,QAAQ;OACb,KAAK,YAAY;OACjB,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,QAAQ,EAAE;OAC/E,EAAE,UAAU,EAAE;OACd,EACL,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,KAAK,mBAAmB,EACzB;OAEM,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH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