bem-ai-sdk 0.7.0 → 0.8.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 +21 -0
- package/package.json +1 -1
- package/resources/functions/functions.d.mts +173 -12
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +173 -12
- 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 +49 -1
- package/resources/functions/versions.d.mts.map +1 -1
- package/resources/functions/versions.d.ts +49 -1
- package/resources/functions/versions.d.ts.map +1 -1
- package/src/resources/functions/functions.ts +212 -6
- package/src/resources/functions/versions.ts +61 -0
- 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
|
@@ -85,6 +85,7 @@ export type FunctionsFunctionsPage = FunctionsPage<Function>;
|
|
|
85
85
|
|
|
86
86
|
export type CreateFunction =
|
|
87
87
|
| CreateFunction.TransformFunction
|
|
88
|
+
| CreateFunction.ExtractFunction
|
|
88
89
|
| CreateFunction.AnalyzeFunction
|
|
89
90
|
| CreateFunction.RouteFunction
|
|
90
91
|
| CreateFunction.SendFunction
|
|
@@ -129,6 +130,41 @@ export namespace CreateFunction {
|
|
|
129
130
|
tags?: Array<string>;
|
|
130
131
|
}
|
|
131
132
|
|
|
133
|
+
export interface ExtractFunction {
|
|
134
|
+
/**
|
|
135
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
136
|
+
*/
|
|
137
|
+
functionName: string;
|
|
138
|
+
|
|
139
|
+
type: 'extract';
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
143
|
+
*/
|
|
144
|
+
displayName?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
148
|
+
*/
|
|
149
|
+
outputSchema?: unknown;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Name of output schema object.
|
|
153
|
+
*/
|
|
154
|
+
outputSchemaName?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
158
|
+
* processed in row batches rather than all at once.
|
|
159
|
+
*/
|
|
160
|
+
tabularChunkingEnabled?: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Array of tags to categorize and organize functions.
|
|
164
|
+
*/
|
|
165
|
+
tags?: Array<string>;
|
|
166
|
+
}
|
|
167
|
+
|
|
132
168
|
export interface AnalyzeFunction {
|
|
133
169
|
/**
|
|
134
170
|
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
@@ -544,12 +580,13 @@ export interface EnrichStep {
|
|
|
544
580
|
}
|
|
545
581
|
|
|
546
582
|
/**
|
|
547
|
-
* A function that
|
|
548
|
-
*
|
|
549
|
-
*
|
|
583
|
+
* A function that extracts structured JSON from documents and images. Accepts a
|
|
584
|
+
* wide range of input types including PDFs, images, spreadsheets, emails, and
|
|
585
|
+
* more.
|
|
550
586
|
*/
|
|
551
587
|
export type Function =
|
|
552
588
|
| Function.TransformFunction
|
|
589
|
+
| Function.ExtractFunction
|
|
553
590
|
| Function.AnalyzeFunction
|
|
554
591
|
| Function.RouteFunction
|
|
555
592
|
| Function.SendFunction
|
|
@@ -620,6 +657,66 @@ export namespace Function {
|
|
|
620
657
|
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
621
658
|
}
|
|
622
659
|
|
|
660
|
+
/**
|
|
661
|
+
* A function that extracts structured JSON from documents and images. Accepts a
|
|
662
|
+
* wide range of input types including PDFs, images, spreadsheets, emails, and
|
|
663
|
+
* more.
|
|
664
|
+
*/
|
|
665
|
+
export interface ExtractFunction {
|
|
666
|
+
/**
|
|
667
|
+
* Unique identifier of function.
|
|
668
|
+
*/
|
|
669
|
+
functionID: string;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
673
|
+
*/
|
|
674
|
+
functionName: string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
678
|
+
*/
|
|
679
|
+
outputSchema: unknown;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Name of output schema object.
|
|
683
|
+
*/
|
|
684
|
+
outputSchemaName: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
688
|
+
* processed in row batches rather than all at once.
|
|
689
|
+
*/
|
|
690
|
+
tabularChunkingEnabled: boolean;
|
|
691
|
+
|
|
692
|
+
type: 'extract';
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Version number of function.
|
|
696
|
+
*/
|
|
697
|
+
versionNum: number;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Audit trail information for the function.
|
|
701
|
+
*/
|
|
702
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
706
|
+
*/
|
|
707
|
+
displayName?: string;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Array of tags to categorize and organize functions.
|
|
711
|
+
*/
|
|
712
|
+
tags?: Array<string>;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* List of workflows that use this function.
|
|
716
|
+
*/
|
|
717
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
718
|
+
}
|
|
719
|
+
|
|
623
720
|
export interface AnalyzeFunction {
|
|
624
721
|
/**
|
|
625
722
|
* Unique identifier of function.
|
|
@@ -1076,9 +1173,9 @@ export interface FunctionAudit {
|
|
|
1076
1173
|
*/
|
|
1077
1174
|
export interface FunctionResponse {
|
|
1078
1175
|
/**
|
|
1079
|
-
* A function that
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1176
|
+
* A function that extracts structured JSON from documents and images. Accepts a
|
|
1177
|
+
* wide range of input types including PDFs, images, spreadsheets, emails, and
|
|
1178
|
+
* more.
|
|
1082
1179
|
*/
|
|
1083
1180
|
function: Function;
|
|
1084
1181
|
}
|
|
@@ -1088,6 +1185,7 @@ export interface FunctionResponse {
|
|
|
1088
1185
|
*/
|
|
1089
1186
|
export type FunctionType =
|
|
1090
1187
|
| 'transform'
|
|
1188
|
+
| 'extract'
|
|
1091
1189
|
| 'route'
|
|
1092
1190
|
| 'send'
|
|
1093
1191
|
| 'split'
|
|
@@ -1161,6 +1259,7 @@ export interface SplitFunctionSemanticPageItemClass {
|
|
|
1161
1259
|
*/
|
|
1162
1260
|
export type UpdateFunction =
|
|
1163
1261
|
| UpdateFunction.TransformFunction
|
|
1262
|
+
| UpdateFunction.ExtractFunction
|
|
1164
1263
|
| UpdateFunction.AnalyzeFunction
|
|
1165
1264
|
| UpdateFunction.RouteFunction
|
|
1166
1265
|
| UpdateFunction.SendFunction
|
|
@@ -1205,6 +1304,41 @@ export namespace UpdateFunction {
|
|
|
1205
1304
|
tags?: Array<string>;
|
|
1206
1305
|
}
|
|
1207
1306
|
|
|
1307
|
+
export interface ExtractFunction {
|
|
1308
|
+
type: 'extract';
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1312
|
+
*/
|
|
1313
|
+
displayName?: string;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1317
|
+
*/
|
|
1318
|
+
functionName?: string;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1322
|
+
*/
|
|
1323
|
+
outputSchema?: unknown;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Name of output schema object.
|
|
1327
|
+
*/
|
|
1328
|
+
outputSchemaName?: string;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
1332
|
+
* processed in row batches rather than all at once.
|
|
1333
|
+
*/
|
|
1334
|
+
tabularChunkingEnabled?: boolean;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Array of tags to categorize and organize functions.
|
|
1338
|
+
*/
|
|
1339
|
+
tags?: Array<string>;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1208
1342
|
export interface AnalyzeFunction {
|
|
1209
1343
|
type: 'analyze';
|
|
1210
1344
|
|
|
@@ -1518,6 +1652,7 @@ export interface WorkflowUsageInfo {
|
|
|
1518
1652
|
|
|
1519
1653
|
export type FunctionCreateParams =
|
|
1520
1654
|
| FunctionCreateParams.CreateTransformFunction
|
|
1655
|
+
| FunctionCreateParams.CreateExtractFunction
|
|
1521
1656
|
| FunctionCreateParams.CreateAnalyzeFunction
|
|
1522
1657
|
| FunctionCreateParams.CreateRouteFunction
|
|
1523
1658
|
| FunctionCreateParams.CreateSendFunction
|
|
@@ -1562,6 +1697,41 @@ export declare namespace FunctionCreateParams {
|
|
|
1562
1697
|
tags?: Array<string>;
|
|
1563
1698
|
}
|
|
1564
1699
|
|
|
1700
|
+
export interface CreateExtractFunction {
|
|
1701
|
+
/**
|
|
1702
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1703
|
+
*/
|
|
1704
|
+
functionName: string;
|
|
1705
|
+
|
|
1706
|
+
type: 'extract';
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1710
|
+
*/
|
|
1711
|
+
displayName?: string;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1715
|
+
*/
|
|
1716
|
+
outputSchema?: unknown;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Name of output schema object.
|
|
1720
|
+
*/
|
|
1721
|
+
outputSchemaName?: string;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
1725
|
+
* processed in row batches rather than all at once.
|
|
1726
|
+
*/
|
|
1727
|
+
tabularChunkingEnabled?: boolean;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Array of tags to categorize and organize functions.
|
|
1731
|
+
*/
|
|
1732
|
+
tags?: Array<string>;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1565
1735
|
export interface CreateAnalyzeFunction {
|
|
1566
1736
|
/**
|
|
1567
1737
|
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
@@ -1828,6 +1998,7 @@ export declare namespace FunctionCreateParams {
|
|
|
1828
1998
|
|
|
1829
1999
|
export type FunctionUpdateParams =
|
|
1830
2000
|
| FunctionUpdateParams.UpsertTransformFunction
|
|
2001
|
+
| FunctionUpdateParams.UpsertExtractFunction
|
|
1831
2002
|
| FunctionUpdateParams.UpsertAnalyzeFunction
|
|
1832
2003
|
| FunctionUpdateParams.UpsertRouteFunction
|
|
1833
2004
|
| FunctionUpdateParams.UpsertSendFunction
|
|
@@ -1872,6 +2043,41 @@ export declare namespace FunctionUpdateParams {
|
|
|
1872
2043
|
tags?: Array<string>;
|
|
1873
2044
|
}
|
|
1874
2045
|
|
|
2046
|
+
export interface UpsertExtractFunction {
|
|
2047
|
+
type: 'extract';
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
2051
|
+
*/
|
|
2052
|
+
displayName?: string;
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
2056
|
+
*/
|
|
2057
|
+
functionName?: string;
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
2061
|
+
*/
|
|
2062
|
+
outputSchema?: unknown;
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Name of output schema object.
|
|
2066
|
+
*/
|
|
2067
|
+
outputSchemaName?: string;
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
2071
|
+
* processed in row batches rather than all at once.
|
|
2072
|
+
*/
|
|
2073
|
+
tabularChunkingEnabled?: boolean;
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Array of tags to categorize and organize functions.
|
|
2077
|
+
*/
|
|
2078
|
+
tags?: Array<string>;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
1875
2081
|
export interface UpsertAnalyzeFunction {
|
|
1876
2082
|
type: 'analyze';
|
|
1877
2083
|
|
|
@@ -49,6 +49,7 @@ export class Versions extends APIResource {
|
|
|
49
49
|
*/
|
|
50
50
|
export type FunctionVersion =
|
|
51
51
|
| FunctionVersion.TransformFunctionVersion
|
|
52
|
+
| FunctionVersion.ExtractFunctionVersion
|
|
52
53
|
| FunctionVersion.AnalyzeFunctionVersion
|
|
53
54
|
| FunctionVersion.RouteFunctionVersion
|
|
54
55
|
| FunctionVersion.SendFunctionVersion
|
|
@@ -124,6 +125,66 @@ export namespace FunctionVersion {
|
|
|
124
125
|
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
export interface ExtractFunctionVersion {
|
|
129
|
+
/**
|
|
130
|
+
* Unique identifier of function.
|
|
131
|
+
*/
|
|
132
|
+
functionID: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
136
|
+
*/
|
|
137
|
+
functionName: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
141
|
+
*/
|
|
142
|
+
outputSchema: unknown;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Name of output schema object.
|
|
146
|
+
*/
|
|
147
|
+
outputSchemaName: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Whether tabular chunking is enabled. When true, tables in CSV/Excel files are
|
|
151
|
+
* processed in row batches rather than all at once.
|
|
152
|
+
*/
|
|
153
|
+
tabularChunkingEnabled: boolean;
|
|
154
|
+
|
|
155
|
+
type: 'extract';
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Version number of function.
|
|
159
|
+
*/
|
|
160
|
+
versionNum: number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Audit trail information for the function version.
|
|
164
|
+
*/
|
|
165
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The date and time the function version was created.
|
|
169
|
+
*/
|
|
170
|
+
createdAt?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
174
|
+
*/
|
|
175
|
+
displayName?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Array of tags to categorize and organize functions.
|
|
179
|
+
*/
|
|
180
|
+
tags?: Array<string>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* List of workflows that use this function.
|
|
184
|
+
*/
|
|
185
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
186
|
+
}
|
|
187
|
+
|
|
127
188
|
export interface AnalyzeFunctionVersion {
|
|
128
189
|
/**
|
|
129
190
|
* Unique identifier of function.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.8.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|