bem-ai-sdk 0.28.0 → 0.29.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 +10 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -10
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/buckets.d.mts +9 -113
- package/resources/buckets.d.mts.map +1 -1
- package/resources/buckets.d.ts +9 -113
- package/resources/buckets.d.ts.map +1 -1
- package/resources/buckets.js +3 -3
- package/resources/buckets.js.map +1 -1
- package/resources/buckets.mjs +3 -3
- package/resources/buckets.mjs.map +1 -1
- package/resources/entities/entities.d.mts +52 -103
- package/resources/entities/entities.d.mts.map +1 -1
- package/resources/entities/entities.d.ts +52 -103
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.mts +1 -1
- package/resources/entities/index.d.mts.map +1 -1
- package/resources/entities/index.d.ts +1 -1
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entity-types/entity-types.d.mts +8 -124
- package/resources/entity-types/entity-types.d.mts.map +1 -1
- package/resources/entity-types/entity-types.d.ts +8 -124
- package/resources/entity-types/entity-types.d.ts.map +1 -1
- package/resources/entity-types/entity-types.js.map +1 -1
- package/resources/entity-types/entity-types.mjs.map +1 -1
- package/resources/entity-types/index.d.mts +2 -2
- package/resources/entity-types/index.d.mts.map +1 -1
- package/resources/entity-types/index.d.ts +2 -2
- package/resources/entity-types/index.d.ts.map +1 -1
- package/resources/entity-types/index.js.map +1 -1
- package/resources/entity-types/index.mjs.map +1 -1
- package/resources/entity-types/reviewers.d.mts +10 -39
- package/resources/entity-types/reviewers.d.mts.map +1 -1
- package/resources/entity-types/reviewers.d.ts +10 -39
- package/resources/entity-types/reviewers.d.ts.map +1 -1
- package/resources/entity-types/reviewers.js +1 -1
- package/resources/entity-types/reviewers.js.map +1 -1
- package/resources/entity-types/reviewers.mjs +1 -1
- package/resources/entity-types/reviewers.mjs.map +1 -1
- package/resources/eval/eval.d.mts +2 -2
- package/resources/eval/eval.d.mts.map +1 -1
- package/resources/eval/eval.d.ts +2 -2
- package/resources/eval/eval.d.ts.map +1 -1
- package/resources/eval/eval.js.map +1 -1
- package/resources/eval/eval.mjs.map +1 -1
- package/resources/eval/index.d.mts +1 -1
- package/resources/eval/index.d.mts.map +1 -1
- package/resources/eval/index.d.ts +1 -1
- package/resources/eval/index.d.ts.map +1 -1
- package/resources/eval/index.js.map +1 -1
- package/resources/eval/index.mjs.map +1 -1
- package/resources/eval/score.d.mts +60 -219
- package/resources/eval/score.d.mts.map +1 -1
- package/resources/eval/score.d.ts +60 -219
- package/resources/eval/score.d.ts.map +1 -1
- package/resources/eval/score.js +2 -2
- package/resources/eval/score.js.map +1 -1
- package/resources/eval/score.mjs +2 -2
- package/resources/eval/score.mjs.map +1 -1
- package/resources/functions/functions.d.mts +364 -1095
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +364 -1095
- 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/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/functions/versions.d.mts +2 -108
- package/resources/functions/versions.d.mts.map +1 -1
- package/resources/functions/versions.d.ts +2 -108
- package/resources/functions/versions.d.ts.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/outputs.d.mts +1 -1
- package/resources/outputs.d.mts.map +1 -1
- package/resources/outputs.d.ts +1 -1
- package/resources/outputs.d.ts.map +1 -1
- package/resources/views.d.mts +97 -745
- package/resources/views.d.mts.map +1 -1
- package/resources/views.d.ts +97 -745
- package/resources/views.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -19
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -19
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +38 -18
- package/src/resources/buckets.ts +9 -137
- package/src/resources/entities/entities.ts +61 -118
- package/src/resources/entities/index.ts +2 -0
- package/src/resources/entity-types/entity-types.ts +8 -151
- package/src/resources/entity-types/index.ts +2 -4
- package/src/resources/entity-types/reviewers.ts +11 -49
- package/src/resources/eval/eval.ts +8 -4
- package/src/resources/eval/index.ts +4 -2
- package/src/resources/eval/score.ts +66 -263
- package/src/resources/functions/functions.ts +411 -1249
- package/src/resources/functions/index.ts +8 -0
- package/src/resources/functions/versions.ts +2 -118
- package/src/resources/index.ts +19 -9
- package/src/resources/outputs.ts +1 -0
- package/src/resources/views.ts +118 -936
- package/src/resources/workflows/workflows.ts +2 -21
- 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
|
@@ -12,7 +12,15 @@ export {
|
|
|
12
12
|
type FunctionResponse,
|
|
13
13
|
type FunctionType,
|
|
14
14
|
type ListFunctionsResponse,
|
|
15
|
+
type MetricComparison,
|
|
16
|
+
type Metrics,
|
|
17
|
+
type MetricsComparison,
|
|
18
|
+
type MetricsDetails,
|
|
15
19
|
type ParseConfig,
|
|
20
|
+
type ParseExtraFunctionConfig,
|
|
21
|
+
type RateConfidenceInterval,
|
|
22
|
+
type RenderConfig,
|
|
23
|
+
type RenderConfigInput,
|
|
16
24
|
type SendDestinationType,
|
|
17
25
|
type SplitFunctionSemanticPageItemClass,
|
|
18
26
|
type UpdateFunction,
|
|
@@ -716,7 +716,7 @@ export namespace FunctionVersion {
|
|
|
716
716
|
* Extract / Join — separated from `parseConfig` so the per-call Parse output shape
|
|
717
717
|
* stays distinct from operator-level execution flags.
|
|
718
718
|
*/
|
|
719
|
-
extraConfig?:
|
|
719
|
+
extraConfig?: FunctionsAPI.ParseExtraFunctionConfig;
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* Per-version configuration for a Parse function.
|
|
@@ -738,26 +738,6 @@ export namespace FunctionVersion {
|
|
|
738
738
|
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
-
export namespace ParseFunctionVersion {
|
|
742
|
-
/**
|
|
743
|
-
* Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
|
|
744
|
-
* Extract / Join — separated from `parseConfig` so the per-call Parse output shape
|
|
745
|
-
* stays distinct from operator-level execution flags.
|
|
746
|
-
*/
|
|
747
|
-
export interface ExtraConfig {
|
|
748
|
-
/**
|
|
749
|
-
* When true, return per-section and per-entity-mention coordinates in the parse
|
|
750
|
-
* event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
|
|
751
|
-
* array of `{page, left, top, width, height}` with coordinates normalized to [0,
|
|
752
|
-
* 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
|
|
753
|
-
* output. Only applies to the open-ended discovery path (no `schema`) and to
|
|
754
|
-
* vision input types. Bedrock-backed parse functions silently return an empty map
|
|
755
|
-
* (no native bbox support). Defaults to false.
|
|
756
|
-
*/
|
|
757
|
-
enableBoundingBoxes?: boolean;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
|
|
761
741
|
export interface RenderFunctionVersion {
|
|
762
742
|
/**
|
|
763
743
|
* Unique identifier of function.
|
|
@@ -800,7 +780,7 @@ export namespace FunctionVersion {
|
|
|
800
780
|
* the ML service against the bundled core schema; no customer-supplied schema
|
|
801
781
|
* rides this surface.
|
|
802
782
|
*/
|
|
803
|
-
renderConfig?:
|
|
783
|
+
renderConfig?: FunctionsAPI.RenderConfig;
|
|
804
784
|
|
|
805
785
|
/**
|
|
806
786
|
* Array of tags to categorize and organize functions.
|
|
@@ -812,102 +792,6 @@ export namespace FunctionVersion {
|
|
|
812
792
|
*/
|
|
813
793
|
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
814
794
|
}
|
|
815
|
-
|
|
816
|
-
export namespace RenderFunctionVersion {
|
|
817
|
-
/**
|
|
818
|
-
* Per-version configuration for a Render function.
|
|
819
|
-
*
|
|
820
|
-
* Render emits a `.docx` from schema-typed JSON by composing the JSON into a
|
|
821
|
-
* `.docx` template. The template document is stored server-side; this response
|
|
822
|
-
* exposes only the contract derived from it. Schema validation runs internally in
|
|
823
|
-
* the ML service against the bundled core schema; no customer-supplied schema
|
|
824
|
-
* rides this surface.
|
|
825
|
-
*/
|
|
826
|
-
export interface RenderConfig {
|
|
827
|
-
/**
|
|
828
|
-
* The uploaded template: its filename, a short-lived presigned download URL, and
|
|
829
|
-
* the placeholder/style contract derived from it. Absent on configs created before
|
|
830
|
-
* template capture existed.
|
|
831
|
-
*/
|
|
832
|
-
template?: RenderConfig.Template;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
export namespace RenderConfig {
|
|
836
|
-
/**
|
|
837
|
-
* The uploaded template: its filename, a short-lived presigned download URL, and
|
|
838
|
-
* the placeholder/style contract derived from it. Absent on configs created before
|
|
839
|
-
* template capture existed.
|
|
840
|
-
*/
|
|
841
|
-
export interface Template {
|
|
842
|
-
/**
|
|
843
|
-
* Short-lived presigned URL to download the stored `.docx`. The private storage
|
|
844
|
-
* location is never exposed.
|
|
845
|
-
*/
|
|
846
|
-
downloadURL?: string;
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* Supported list kinds (`decimal`, `bullet`) the template's `numbering.xml`
|
|
850
|
-
* defines an `abstractNum` for. Empty means the template can hold no list, so any
|
|
851
|
-
* list primitive will fail at render.
|
|
852
|
-
*/
|
|
853
|
-
listKinds?: Array<'decimal' | 'bullet'>;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Original filename of the uploaded template (e.g. `contract.docx`), echoed back
|
|
857
|
-
* for display. Absent on templates uploaded before the filename was captured.
|
|
858
|
-
*/
|
|
859
|
-
name?: string;
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* The placeholder contract a Render template declares, grouped by how each
|
|
863
|
-
* placeholder is filled. Derived from the template at create/update time by
|
|
864
|
-
* scanning its `docxtpl` tags; not user-supplied.
|
|
865
|
-
*
|
|
866
|
-
* - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
|
|
867
|
-
* value.
|
|
868
|
-
* - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
|
|
869
|
-
* primitive (paragraph, table, image, or list). The placeholder's own paragraph
|
|
870
|
-
* dissolves and is replaced by the rendered subdocument's blocks, rather than
|
|
871
|
-
* substituting text inline.
|
|
872
|
-
*/
|
|
873
|
-
placeholders?: Template.Placeholders;
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* Paragraph/character style IDs the uploaded template defines and the rendered
|
|
877
|
-
* output can reference. Derived from the template's `styles.xml` at create/update
|
|
878
|
-
* time.
|
|
879
|
-
*/
|
|
880
|
-
styleIds?: Array<string>;
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* Style IDs whose type is table — the styles a `table` primitive's required
|
|
884
|
-
* `styleId` can name. Empty means the template defines no table style, so any
|
|
885
|
-
* table primitive will fail at render.
|
|
886
|
-
*/
|
|
887
|
-
tableStyleIds?: Array<string>;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
export namespace Template {
|
|
891
|
-
/**
|
|
892
|
-
* The placeholder contract a Render template declares, grouped by how each
|
|
893
|
-
* placeholder is filled. Derived from the template at create/update time by
|
|
894
|
-
* scanning its `docxtpl` tags; not user-supplied.
|
|
895
|
-
*
|
|
896
|
-
* - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
|
|
897
|
-
* value.
|
|
898
|
-
* - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
|
|
899
|
-
* primitive (paragraph, table, image, or list). The placeholder's own paragraph
|
|
900
|
-
* dissolves and is replaced by the rendered subdocument's blocks, rather than
|
|
901
|
-
* substituting text inline.
|
|
902
|
-
*/
|
|
903
|
-
export interface Placeholders {
|
|
904
|
-
blockKeys: Array<string>;
|
|
905
|
-
|
|
906
|
-
stringKeys: Array<string>;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
795
|
}
|
|
912
796
|
|
|
913
797
|
export interface ListFunctionVersionsResponse {
|
package/src/resources/index.ts
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Buckets,
|
|
5
|
-
type
|
|
6
|
-
type BucketRetrieveResponse,
|
|
7
|
-
type BucketUpdateResponse,
|
|
5
|
+
type BucketV3,
|
|
8
6
|
type BucketListResponse,
|
|
9
7
|
type BucketCreateParams,
|
|
10
8
|
type BucketUpdateParams,
|
|
@@ -41,6 +39,8 @@ export {
|
|
|
41
39
|
} from './connectors';
|
|
42
40
|
export {
|
|
43
41
|
Entities,
|
|
42
|
+
type RelatedEntity,
|
|
43
|
+
type SeedRowResult,
|
|
44
44
|
type EntityUpdateResponse,
|
|
45
45
|
type EntityBulkCreateResponse,
|
|
46
46
|
type EntityBulkValidateResponse,
|
|
@@ -53,9 +53,7 @@ export {
|
|
|
53
53
|
} from './entities/entities';
|
|
54
54
|
export {
|
|
55
55
|
EntityTypes,
|
|
56
|
-
type
|
|
57
|
-
type EntityTypeRetrieveResponse,
|
|
58
|
-
type EntityTypeUpdateResponse,
|
|
56
|
+
type EntityType,
|
|
59
57
|
type EntityTypeListResponse,
|
|
60
58
|
type EntityTypeCreateParams,
|
|
61
59
|
type EntityTypeUpdateParams,
|
|
@@ -83,7 +81,15 @@ export {
|
|
|
83
81
|
type FunctionResponse,
|
|
84
82
|
type FunctionType,
|
|
85
83
|
type ListFunctionsResponse,
|
|
84
|
+
type MetricComparison,
|
|
85
|
+
type Metrics,
|
|
86
|
+
type MetricsComparison,
|
|
87
|
+
type MetricsDetails,
|
|
86
88
|
type ParseConfig,
|
|
89
|
+
type ParseExtraFunctionConfig,
|
|
90
|
+
type RateConfidenceInterval,
|
|
91
|
+
type RenderConfig,
|
|
92
|
+
type RenderConfigInput,
|
|
87
93
|
type SendDestinationType,
|
|
88
94
|
type SplitFunctionSemanticPageItemClass,
|
|
89
95
|
type UpdateFunction,
|
|
@@ -127,9 +133,13 @@ export {
|
|
|
127
133
|
export { Users, type UserListReviewerAssignmentsResponse } from './users';
|
|
128
134
|
export {
|
|
129
135
|
Views,
|
|
130
|
-
type
|
|
131
|
-
type
|
|
132
|
-
type
|
|
136
|
+
type FunctionIdentifier,
|
|
137
|
+
type TimeWindow,
|
|
138
|
+
type View,
|
|
139
|
+
type ViewAggregation,
|
|
140
|
+
type ViewColumn,
|
|
141
|
+
type ViewCreate,
|
|
142
|
+
type ViewFilter,
|
|
133
143
|
type ViewListResponse,
|
|
134
144
|
type ViewGenerateAggregationDataResponse,
|
|
135
145
|
type ViewGenerateTableDataResponse,
|