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.
Files changed (126) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +10 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/buckets.d.mts +9 -113
  10. package/resources/buckets.d.mts.map +1 -1
  11. package/resources/buckets.d.ts +9 -113
  12. package/resources/buckets.d.ts.map +1 -1
  13. package/resources/buckets.js +3 -3
  14. package/resources/buckets.js.map +1 -1
  15. package/resources/buckets.mjs +3 -3
  16. package/resources/buckets.mjs.map +1 -1
  17. package/resources/entities/entities.d.mts +52 -103
  18. package/resources/entities/entities.d.mts.map +1 -1
  19. package/resources/entities/entities.d.ts +52 -103
  20. package/resources/entities/entities.d.ts.map +1 -1
  21. package/resources/entities/entities.js.map +1 -1
  22. package/resources/entities/entities.mjs.map +1 -1
  23. package/resources/entities/index.d.mts +1 -1
  24. package/resources/entities/index.d.mts.map +1 -1
  25. package/resources/entities/index.d.ts +1 -1
  26. package/resources/entities/index.d.ts.map +1 -1
  27. package/resources/entities/index.js.map +1 -1
  28. package/resources/entities/index.mjs.map +1 -1
  29. package/resources/entity-types/entity-types.d.mts +8 -124
  30. package/resources/entity-types/entity-types.d.mts.map +1 -1
  31. package/resources/entity-types/entity-types.d.ts +8 -124
  32. package/resources/entity-types/entity-types.d.ts.map +1 -1
  33. package/resources/entity-types/entity-types.js.map +1 -1
  34. package/resources/entity-types/entity-types.mjs.map +1 -1
  35. package/resources/entity-types/index.d.mts +2 -2
  36. package/resources/entity-types/index.d.mts.map +1 -1
  37. package/resources/entity-types/index.d.ts +2 -2
  38. package/resources/entity-types/index.d.ts.map +1 -1
  39. package/resources/entity-types/index.js.map +1 -1
  40. package/resources/entity-types/index.mjs.map +1 -1
  41. package/resources/entity-types/reviewers.d.mts +10 -39
  42. package/resources/entity-types/reviewers.d.mts.map +1 -1
  43. package/resources/entity-types/reviewers.d.ts +10 -39
  44. package/resources/entity-types/reviewers.d.ts.map +1 -1
  45. package/resources/entity-types/reviewers.js +1 -1
  46. package/resources/entity-types/reviewers.js.map +1 -1
  47. package/resources/entity-types/reviewers.mjs +1 -1
  48. package/resources/entity-types/reviewers.mjs.map +1 -1
  49. package/resources/eval/eval.d.mts +2 -2
  50. package/resources/eval/eval.d.mts.map +1 -1
  51. package/resources/eval/eval.d.ts +2 -2
  52. package/resources/eval/eval.d.ts.map +1 -1
  53. package/resources/eval/eval.js.map +1 -1
  54. package/resources/eval/eval.mjs.map +1 -1
  55. package/resources/eval/index.d.mts +1 -1
  56. package/resources/eval/index.d.mts.map +1 -1
  57. package/resources/eval/index.d.ts +1 -1
  58. package/resources/eval/index.d.ts.map +1 -1
  59. package/resources/eval/index.js.map +1 -1
  60. package/resources/eval/index.mjs.map +1 -1
  61. package/resources/eval/score.d.mts +60 -219
  62. package/resources/eval/score.d.mts.map +1 -1
  63. package/resources/eval/score.d.ts +60 -219
  64. package/resources/eval/score.d.ts.map +1 -1
  65. package/resources/eval/score.js +2 -2
  66. package/resources/eval/score.js.map +1 -1
  67. package/resources/eval/score.mjs +2 -2
  68. package/resources/eval/score.mjs.map +1 -1
  69. package/resources/functions/functions.d.mts +364 -1095
  70. package/resources/functions/functions.d.mts.map +1 -1
  71. package/resources/functions/functions.d.ts +364 -1095
  72. package/resources/functions/functions.d.ts.map +1 -1
  73. package/resources/functions/functions.js.map +1 -1
  74. package/resources/functions/functions.mjs.map +1 -1
  75. package/resources/functions/index.d.mts +1 -1
  76. package/resources/functions/index.d.mts.map +1 -1
  77. package/resources/functions/index.d.ts +1 -1
  78. package/resources/functions/index.d.ts.map +1 -1
  79. package/resources/functions/index.js.map +1 -1
  80. package/resources/functions/index.mjs.map +1 -1
  81. package/resources/functions/versions.d.mts +2 -108
  82. package/resources/functions/versions.d.mts.map +1 -1
  83. package/resources/functions/versions.d.ts +2 -108
  84. package/resources/functions/versions.d.ts.map +1 -1
  85. package/resources/index.d.mts +5 -5
  86. package/resources/index.d.mts.map +1 -1
  87. package/resources/index.d.ts +5 -5
  88. package/resources/index.d.ts.map +1 -1
  89. package/resources/index.js.map +1 -1
  90. package/resources/index.mjs.map +1 -1
  91. package/resources/outputs.d.mts +1 -1
  92. package/resources/outputs.d.mts.map +1 -1
  93. package/resources/outputs.d.ts +1 -1
  94. package/resources/outputs.d.ts.map +1 -1
  95. package/resources/views.d.mts +97 -745
  96. package/resources/views.d.mts.map +1 -1
  97. package/resources/views.d.ts +97 -745
  98. package/resources/views.d.ts.map +1 -1
  99. package/resources/workflows/workflows.d.mts +2 -19
  100. package/resources/workflows/workflows.d.mts.map +1 -1
  101. package/resources/workflows/workflows.d.ts +2 -19
  102. package/resources/workflows/workflows.d.ts.map +1 -1
  103. package/resources/workflows/workflows.js.map +1 -1
  104. package/resources/workflows/workflows.mjs.map +1 -1
  105. package/src/client.ts +38 -18
  106. package/src/resources/buckets.ts +9 -137
  107. package/src/resources/entities/entities.ts +61 -118
  108. package/src/resources/entities/index.ts +2 -0
  109. package/src/resources/entity-types/entity-types.ts +8 -151
  110. package/src/resources/entity-types/index.ts +2 -4
  111. package/src/resources/entity-types/reviewers.ts +11 -49
  112. package/src/resources/eval/eval.ts +8 -4
  113. package/src/resources/eval/index.ts +4 -2
  114. package/src/resources/eval/score.ts +66 -263
  115. package/src/resources/functions/functions.ts +411 -1249
  116. package/src/resources/functions/index.ts +8 -0
  117. package/src/resources/functions/versions.ts +2 -118
  118. package/src/resources/index.ts +19 -9
  119. package/src/resources/outputs.ts +1 -0
  120. package/src/resources/views.ts +118 -936
  121. package/src/resources/workflows/workflows.ts +2 -21
  122. package/src/version.ts +1 -1
  123. package/version.d.mts +1 -1
  124. package/version.d.ts +1 -1
  125. package/version.js +1 -1
  126. 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?: ParseFunctionVersion.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?: RenderFunctionVersion.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 {
@@ -2,9 +2,7 @@
2
2
 
3
3
  export {
4
4
  Buckets,
5
- type BucketCreateResponse,
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 EntityTypeCreateResponse,
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 ViewCreateResponse,
131
- type ViewRetrieveResponse,
132
- type ViewUpdateResponse,
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,
@@ -1954,6 +1954,7 @@ export type InputType =
1954
1954
  | 'mp4'
1955
1955
  | 'pdf'
1956
1956
  | 'png'
1957
+ | 'pptx'
1957
1958
  | 'text'
1958
1959
  | 'wav'
1959
1960
  | 'webp'