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
@@ -520,7 +520,7 @@ export declare namespace CreateFunction {
520
520
  * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
521
521
  * stays distinct from operator-level execution flags.
522
522
  */
523
- extraConfig?: ParseFunction.ExtraConfig;
523
+ extraConfig?: FunctionsAPI.ParseExtraFunctionConfig;
524
524
  /**
525
525
  * Per-version configuration for a Parse function.
526
526
  *
@@ -534,25 +534,6 @@ export declare namespace CreateFunction {
534
534
  */
535
535
  tags?: Array<string>;
536
536
  }
537
- namespace ParseFunction {
538
- /**
539
- * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
540
- * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
541
- * stays distinct from operator-level execution flags.
542
- */
543
- interface ExtraConfig {
544
- /**
545
- * When true, return per-section and per-entity-mention coordinates in the parse
546
- * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
547
- * array of `{page, left, top, width, height}` with coordinates normalized to [0,
548
- * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
549
- * output. Only applies to the open-ended discovery path (no `schema`) and to
550
- * vision input types. Bedrock-backed parse functions silently return an empty map
551
- * (no native bbox support). Defaults to false.
552
- */
553
- enableBoundingBoxes?: boolean;
554
- }
555
- }
556
537
  interface RenderFunction {
557
538
  /**
558
539
  * Name of function. Must be UNIQUE on a per-environment basis.
@@ -565,7 +546,7 @@ export declare namespace CreateFunction {
565
546
  * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
566
547
  * returns the derived contract.
567
548
  */
568
- renderConfig: RenderFunction.RenderConfig;
549
+ renderConfig: FunctionsAPI.RenderConfigInput;
569
550
  type: 'render';
570
551
  /**
571
552
  * Display name of function. Human-readable name to help you identify the function.
@@ -576,32 +557,6 @@ export declare namespace CreateFunction {
576
557
  */
577
558
  tags?: Array<string>;
578
559
  }
579
- namespace RenderFunction {
580
- /**
581
- * Request-side render configuration. Carries the template document as
582
- * base64-encoded `.docx` bytes: the server validates them, stores the template,
583
- * and derives the placeholder/style-id contract at create/update time, so clients
584
- * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
585
- * returns the derived contract.
586
- */
587
- interface RenderConfig {
588
- template: RenderConfig.Template;
589
- }
590
- namespace RenderConfig {
591
- interface Template {
592
- /**
593
- * Base64-encoded `.docx` bytes. In the Bem CLI, use `@path/to/file` to embed it
594
- * automatically.
595
- */
596
- base64: string;
597
- /**
598
- * Original upload filename (e.g. `contract.docx`), stored for display only. Does
599
- * not affect where the template is stored.
600
- */
601
- name?: string;
602
- }
603
- }
604
- }
605
560
  }
606
561
  /**
607
562
  * Configuration for an enrich function.
@@ -694,9 +649,9 @@ export declare namespace EnrichConfig {
694
649
  * Natural-language instructions for LLM agent reasoning.
695
650
  *
696
651
  * When set, the candidates fetched from the endpoint are passed to an LLM with
697
- * these instructions, which selects the best match(es) and returns them with
698
- * confidence scores. Each injected result has the shape
699
- * `{ data, confidence, reasoning? }`.
652
+ * these instructions, which selects the best match(es) and returns them ranked
653
+ * best-first. Each injected result has the shape
654
+ * `{ data, rank, confidence, reasoning? }` (rank is 1-based, 1 = best).
700
655
  *
701
656
  * When omitted, the raw fetched value is injected without any LLM involvement.
702
657
  */
@@ -809,10 +764,30 @@ export declare namespace EnrichConfig {
809
764
  * - `exact`: Exact keyword matching — best for SKU numbers, IDs, routing numbers
810
765
  * - `hybrid`: Combined semantic + keyword search — best for tags and categories
811
766
  *
812
- * **Result Format (collection source):**
767
+ * **Result Format (collection source, exact mode — no re-ranking):**
813
768
  *
814
769
  * - Always an array sorted by relevance (best match first)
815
- * - Each element: `{ data, cosineDistance? }` or `{ data, hybridScore? }`
770
+ * - Each element: `{ data, cosine_distance? }` or `{ data, hybrid_score? }`
771
+ *
772
+ * **Result Format (collection source, semantic/hybrid — re-ranking always on):**
773
+ *
774
+ * - Re-ranking uses a fixed, built-in instruction to the LLM (rank the candidates
775
+ * by how well each matches the source value); it is not configurable per step
776
+ * - Array of matches, best first:
777
+ * `[{ data, rank, confidence?, reasoning?, score?, scoreType?, cosine_distance?, hybrid_score? }, ...]`
778
+ * - `rank` is 1-based (1 = best)
779
+ * - `confidence` is the LLM's 0–1 score. It is present only for entries the LLM
780
+ * ranked and **omitted** for backfilled entries (see below) — a missing
781
+ * `confidence` means "not ranked by the LLM", not a score of 0
782
+ * - `score` is the original retrieval score and `scoreType` says which metric it
783
+ * is (`"cosineDistance"` for semantic search, `"hybridScore"` for hybrid); both
784
+ * included only when `includeScore` is set
785
+ * - `cosine_distance` (semantic) and `hybrid_score` (hybrid) are **deprecated**
786
+ * (use `score` + `scoreType`): each mirrors `score` under the pre-rerank field
787
+ * name for backward compatibility; exactly one is present, matching `scoreType`
788
+ * - Length is `min(candidates surviving the scoreThreshold filter, topK)`. The LLM
789
+ * re-orders the survivors; if it ranks fewer than that length, the remaining
790
+ * survivors are backfilled in retrieval (score) order with `confidence` omitted
816
791
  *
817
792
  * **Result Format (endpoint source, no matchInstructions):**
818
793
  *
@@ -820,7 +795,9 @@ export declare namespace EnrichConfig {
820
795
  *
821
796
  * **Result Format (endpoint source, with matchInstructions):**
822
797
  *
823
- * - Array of LLM-ranked matches: `[{ data, confidence, reasoning? }, ...]`
798
+ * - Array of LLM-ranked matches, best first:
799
+ * `[{ data, rank, confidence, reasoning? }, ...]`
800
+ * - `rank` is 1-based (1 = best); `confidence` is the LLM's 0–1 score
824
801
  * - Length capped by `enrichEndpoint.matchTopK` (default 1)
825
802
  */
826
803
  export interface EnrichStep {
@@ -916,6 +893,11 @@ export interface EnrichStep {
916
893
  *
917
894
  * - 1: Returns array with single best match: `[{...}]`
918
895
  * - > 1: Returns array with multiple matches: `[{...}, {...}, ...]`
896
+ *
897
+ * When re-ranking is on (the default for `semantic`/`hybrid`), `topK` is still the
898
+ * number of results returned — re-ranking changes their order, not the count. The
899
+ * candidate pool the LLM chooses from is widened internally to at least 5, so even
900
+ * `topK: 1` re-ranks a real pool and returns the single best match.
919
901
  */
920
902
  topK?: number;
921
903
  }
@@ -1430,7 +1412,7 @@ export declare namespace Function {
1430
1412
  * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
1431
1413
  * stays distinct from operator-level execution flags.
1432
1414
  */
1433
- extraConfig?: ParseFunction.ExtraConfig;
1415
+ extraConfig?: FunctionsAPI.ParseExtraFunctionConfig;
1434
1416
  /**
1435
1417
  * Per-version configuration for a Parse function.
1436
1418
  *
@@ -1448,25 +1430,6 @@ export declare namespace Function {
1448
1430
  */
1449
1431
  usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
1450
1432
  }
1451
- namespace ParseFunction {
1452
- /**
1453
- * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
1454
- * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
1455
- * stays distinct from operator-level execution flags.
1456
- */
1457
- interface ExtraConfig {
1458
- /**
1459
- * When true, return per-section and per-entity-mention coordinates in the parse
1460
- * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
1461
- * array of `{page, left, top, width, height}` with coordinates normalized to [0,
1462
- * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
1463
- * output. Only applies to the open-ended discovery path (no `schema`) and to
1464
- * vision input types. Bedrock-backed parse functions silently return an empty map
1465
- * (no native bbox support). Defaults to false.
1466
- */
1467
- enableBoundingBoxes?: boolean;
1468
- }
1469
- }
1470
1433
  interface RenderFunction {
1471
1434
  /**
1472
1435
  * Unique identifier of function.
@@ -1498,7 +1461,7 @@ export declare namespace Function {
1498
1461
  * the ML service against the bundled core schema; no customer-supplied schema
1499
1462
  * rides this surface.
1500
1463
  */
1501
- renderConfig?: RenderFunction.RenderConfig;
1464
+ renderConfig?: FunctionsAPI.RenderConfig;
1502
1465
  /**
1503
1466
  * Array of tags to categorize and organize functions.
1504
1467
  */
@@ -1508,93 +1471,6 @@ export declare namespace Function {
1508
1471
  */
1509
1472
  usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
1510
1473
  }
1511
- namespace RenderFunction {
1512
- /**
1513
- * Per-version configuration for a Render function.
1514
- *
1515
- * Render emits a `.docx` from schema-typed JSON by composing the JSON into a
1516
- * `.docx` template. The template document is stored server-side; this response
1517
- * exposes only the contract derived from it. Schema validation runs internally in
1518
- * the ML service against the bundled core schema; no customer-supplied schema
1519
- * rides this surface.
1520
- */
1521
- interface RenderConfig {
1522
- /**
1523
- * The uploaded template: its filename, a short-lived presigned download URL, and
1524
- * the placeholder/style contract derived from it. Absent on configs created before
1525
- * template capture existed.
1526
- */
1527
- template?: RenderConfig.Template;
1528
- }
1529
- namespace RenderConfig {
1530
- /**
1531
- * The uploaded template: its filename, a short-lived presigned download URL, and
1532
- * the placeholder/style contract derived from it. Absent on configs created before
1533
- * template capture existed.
1534
- */
1535
- interface Template {
1536
- /**
1537
- * Short-lived presigned URL to download the stored `.docx`. The private storage
1538
- * location is never exposed.
1539
- */
1540
- downloadURL?: string;
1541
- /**
1542
- * Supported list kinds (`decimal`, `bullet`) the template's `numbering.xml`
1543
- * defines an `abstractNum` for. Empty means the template can hold no list, so any
1544
- * list primitive will fail at render.
1545
- */
1546
- listKinds?: Array<'decimal' | 'bullet'>;
1547
- /**
1548
- * Original filename of the uploaded template (e.g. `contract.docx`), echoed back
1549
- * for display. Absent on templates uploaded before the filename was captured.
1550
- */
1551
- name?: string;
1552
- /**
1553
- * The placeholder contract a Render template declares, grouped by how each
1554
- * placeholder is filled. Derived from the template at create/update time by
1555
- * scanning its `docxtpl` tags; not user-supplied.
1556
- *
1557
- * - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
1558
- * value.
1559
- * - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
1560
- * primitive (paragraph, table, image, or list). The placeholder's own paragraph
1561
- * dissolves and is replaced by the rendered subdocument's blocks, rather than
1562
- * substituting text inline.
1563
- */
1564
- placeholders?: Template.Placeholders;
1565
- /**
1566
- * Paragraph/character style IDs the uploaded template defines and the rendered
1567
- * output can reference. Derived from the template's `styles.xml` at create/update
1568
- * time.
1569
- */
1570
- styleIds?: Array<string>;
1571
- /**
1572
- * Style IDs whose type is table — the styles a `table` primitive's required
1573
- * `styleId` can name. Empty means the template defines no table style, so any
1574
- * table primitive will fail at render.
1575
- */
1576
- tableStyleIds?: Array<string>;
1577
- }
1578
- namespace Template {
1579
- /**
1580
- * The placeholder contract a Render template declares, grouped by how each
1581
- * placeholder is filled. Derived from the template at create/update time by
1582
- * scanning its `docxtpl` tags; not user-supplied.
1583
- *
1584
- * - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
1585
- * value.
1586
- * - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
1587
- * primitive (paragraph, table, image, or list). The placeholder's own paragraph
1588
- * dissolves and is replaced by the rendered subdocument's blocks, rather than
1589
- * substituting text inline.
1590
- */
1591
- interface Placeholders {
1592
- blockKeys: Array<string>;
1593
- stringKeys: Array<string>;
1594
- }
1595
- }
1596
- }
1597
- }
1598
1474
  }
1599
1475
  export interface FunctionAudit {
1600
1476
  /**
@@ -1634,6 +1510,122 @@ export interface ListFunctionsResponse {
1634
1510
  */
1635
1511
  totalCount?: number;
1636
1512
  }
1513
+ /**
1514
+ * Comparison of a single metric between two versions
1515
+ */
1516
+ export interface MetricComparison {
1517
+ /**
1518
+ * Value in baseline version (null if not available)
1519
+ */
1520
+ baselineValue?: number | null;
1521
+ /**
1522
+ * Value in comparison version (null if not available)
1523
+ */
1524
+ comparisonValue?: number | null;
1525
+ /**
1526
+ * Absolute difference (comparisonValue - baselineValue)
1527
+ */
1528
+ difference?: number | null;
1529
+ /**
1530
+ * **Percentage change from baseline to comparison**
1531
+ *
1532
+ * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
1533
+ *
1534
+ * - Positive values indicate improvement
1535
+ * - Negative values indicate regression
1536
+ */
1537
+ liftPercent?: number | null;
1538
+ }
1539
+ /**
1540
+ * Comprehensive performance metrics
1541
+ */
1542
+ export interface Metrics {
1543
+ /**
1544
+ * Overall accuracy
1545
+ */
1546
+ accuracy?: number | null;
1547
+ /**
1548
+ * F1 Score (harmonic mean of precision and recall)
1549
+ */
1550
+ f1Score?: number | null;
1551
+ /**
1552
+ * False Negatives
1553
+ */
1554
+ fn?: number;
1555
+ /**
1556
+ * False Positives
1557
+ */
1558
+ fp?: number;
1559
+ /**
1560
+ * Precision (TP / (TP + FP))
1561
+ */
1562
+ precision?: number | null;
1563
+ /**
1564
+ * Recall (TP / (TP + FN))
1565
+ */
1566
+ recall?: number | null;
1567
+ /**
1568
+ * True Negatives
1569
+ */
1570
+ tn?: number;
1571
+ /**
1572
+ * True Positives
1573
+ */
1574
+ tp?: number;
1575
+ }
1576
+ /**
1577
+ * Comparison of metrics between two versions
1578
+ */
1579
+ export interface MetricsComparison {
1580
+ /**
1581
+ * Comparison of a single metric between two versions
1582
+ */
1583
+ accuracy?: MetricComparison;
1584
+ /**
1585
+ * Comparison of a single metric between two versions
1586
+ */
1587
+ f1Score?: MetricComparison;
1588
+ /**
1589
+ * Comparison of a single metric between two versions
1590
+ */
1591
+ precision?: MetricComparison;
1592
+ /**
1593
+ * Comparison of a single metric between two versions
1594
+ */
1595
+ recall?: MetricComparison;
1596
+ }
1597
+ /**
1598
+ * Detailed performance metrics and analysis
1599
+ */
1600
+ export interface MetricsDetails {
1601
+ /**
1602
+ * Comprehensive performance metrics
1603
+ */
1604
+ aggregateMetrics?: Metrics;
1605
+ /**
1606
+ * Enhanced field metrics with comprehensive analytics
1607
+ */
1608
+ fieldMetrics?: Array<MetricsDetails.FieldMetric>;
1609
+ /**
1610
+ * Area Under the Precision-Recall Curve
1611
+ */
1612
+ precisionRecallAuc?: number;
1613
+ }
1614
+ export declare namespace MetricsDetails {
1615
+ /**
1616
+ * Enhanced field metrics with comprehensive analytics
1617
+ */
1618
+ interface FieldMetric {
1619
+ /**
1620
+ * JSON path to the field
1621
+ */
1622
+ fieldPath: string;
1623
+ /**
1624
+ * Comprehensive performance metrics
1625
+ */
1626
+ metrics?: FunctionsAPI.Metrics;
1627
+ }
1628
+ }
1637
1629
  /**
1638
1630
  * Per-version configuration for a Parse function.
1639
1631
  *
@@ -1671,6 +1663,163 @@ export interface ParseConfig {
1671
1663
  */
1672
1664
  schema?: unknown;
1673
1665
  }
1666
+ /**
1667
+ * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
1668
+ * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
1669
+ * stays distinct from operator-level execution flags.
1670
+ */
1671
+ export interface ParseExtraFunctionConfig {
1672
+ /**
1673
+ * When true, return per-section and per-entity-mention coordinates in the parse
1674
+ * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
1675
+ * array of `{page, left, top, width, height}` with coordinates normalized to [0,
1676
+ * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
1677
+ * output. Only applies to the open-ended discovery path (no `schema`) and to
1678
+ * vision input types. Bedrock-backed parse functions silently return an empty map
1679
+ * (no native bbox support). Defaults to false.
1680
+ */
1681
+ enableBoundingBoxes?: boolean;
1682
+ }
1683
+ /**
1684
+ * Confidence interval for a rate/proportion using Wald (normal approximation)
1685
+ * method by default.
1686
+ *
1687
+ * Wald confidence intervals use the normal approximation to the binomial
1688
+ * distribution. For extreme rates or small sample sizes, Wilson confidence
1689
+ * intervals may be more appropriate.
1690
+ */
1691
+ export interface RateConfidenceInterval {
1692
+ /**
1693
+ * Current number of samples/observations available
1694
+ */
1695
+ currentSample: number;
1696
+ /**
1697
+ * Minimum number of samples needed for reliable confidence interval calculation
1698
+ */
1699
+ sampleNeeded: number;
1700
+ /**
1701
+ * Lower bound of the confidence interval (null if insufficient sample size)
1702
+ */
1703
+ ciLower?: number | null;
1704
+ /**
1705
+ * Upper bound of the confidence interval (null if insufficient sample size)
1706
+ */
1707
+ ciUpper?: number | null;
1708
+ /**
1709
+ * Point estimate (observed rate) at the center of the interval (null if
1710
+ * insufficient sample size)
1711
+ */
1712
+ mid?: number | null;
1713
+ }
1714
+ /**
1715
+ * Per-version configuration for a Render function.
1716
+ *
1717
+ * Render emits a `.docx` from schema-typed JSON by composing the JSON into a
1718
+ * `.docx` template. The template document is stored server-side; this response
1719
+ * exposes only the contract derived from it. Schema validation runs internally in
1720
+ * the ML service against the bundled core schema; no customer-supplied schema
1721
+ * rides this surface.
1722
+ */
1723
+ export interface RenderConfig {
1724
+ /**
1725
+ * The uploaded template: its filename, a short-lived presigned download URL, and
1726
+ * the placeholder/style contract derived from it. Absent on configs created before
1727
+ * template capture existed.
1728
+ */
1729
+ template?: RenderConfig.Template;
1730
+ }
1731
+ export declare namespace RenderConfig {
1732
+ /**
1733
+ * The uploaded template: its filename, a short-lived presigned download URL, and
1734
+ * the placeholder/style contract derived from it. Absent on configs created before
1735
+ * template capture existed.
1736
+ */
1737
+ interface Template {
1738
+ /**
1739
+ * Short-lived presigned URL to download the stored `.docx`. The private storage
1740
+ * location is never exposed.
1741
+ */
1742
+ downloadURL?: string;
1743
+ /**
1744
+ * Supported list kinds (`decimal`, `bullet`) the template's `numbering.xml`
1745
+ * defines an `abstractNum` for. Empty means the template can hold no list, so any
1746
+ * list primitive will fail at render.
1747
+ */
1748
+ listKinds?: Array<'decimal' | 'bullet'>;
1749
+ /**
1750
+ * Original filename of the uploaded template (e.g. `contract.docx`), echoed back
1751
+ * for display. Absent on templates uploaded before the filename was captured.
1752
+ */
1753
+ name?: string;
1754
+ /**
1755
+ * The placeholder contract a Render template declares, grouped by how each
1756
+ * placeholder is filled. Derived from the template at create/update time by
1757
+ * scanning its `docxtpl` tags; not user-supplied.
1758
+ *
1759
+ * - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
1760
+ * value.
1761
+ * - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
1762
+ * primitive (paragraph, table, image, or list). The placeholder's own paragraph
1763
+ * dissolves and is replaced by the rendered subdocument's blocks, rather than
1764
+ * substituting text inline.
1765
+ */
1766
+ placeholders?: Template.Placeholders;
1767
+ /**
1768
+ * Paragraph/character style IDs the uploaded template defines and the rendered
1769
+ * output can reference. Derived from the template's `styles.xml` at create/update
1770
+ * time.
1771
+ */
1772
+ styleIds?: Array<string>;
1773
+ /**
1774
+ * Style IDs whose type is table — the styles a `table` primitive's required
1775
+ * `styleId` can name. Empty means the template defines no table style, so any
1776
+ * table primitive will fail at render.
1777
+ */
1778
+ tableStyleIds?: Array<string>;
1779
+ }
1780
+ namespace Template {
1781
+ /**
1782
+ * The placeholder contract a Render template declares, grouped by how each
1783
+ * placeholder is filled. Derived from the template at create/update time by
1784
+ * scanning its `docxtpl` tags; not user-supplied.
1785
+ *
1786
+ * - `stringKeys`: bare string placeholders (`{{ key }}`) filled with a single
1787
+ * value.
1788
+ * - `blockKeys`: wrapped-primitive placeholders (`{{p key }}`) — bind one core
1789
+ * primitive (paragraph, table, image, or list). The placeholder's own paragraph
1790
+ * dissolves and is replaced by the rendered subdocument's blocks, rather than
1791
+ * substituting text inline.
1792
+ */
1793
+ interface Placeholders {
1794
+ blockKeys: Array<string>;
1795
+ stringKeys: Array<string>;
1796
+ }
1797
+ }
1798
+ }
1799
+ /**
1800
+ * Request-side render configuration. Carries the template document as
1801
+ * base64-encoded `.docx` bytes: the server validates them, stores the template,
1802
+ * and derives the placeholder/style-id contract at create/update time, so clients
1803
+ * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
1804
+ * returns the derived contract.
1805
+ */
1806
+ export interface RenderConfigInput {
1807
+ template: RenderConfigInput.Template;
1808
+ }
1809
+ export declare namespace RenderConfigInput {
1810
+ interface Template {
1811
+ /**
1812
+ * Base64-encoded `.docx` bytes. In the Bem CLI, use `@path/to/file` to embed it
1813
+ * automatically.
1814
+ */
1815
+ base64: string;
1816
+ /**
1817
+ * Original upload filename (e.g. `contract.docx`), stored for display only. Does
1818
+ * not affect where the template is stored.
1819
+ */
1820
+ name?: string;
1821
+ }
1822
+ }
1674
1823
  /**
1675
1824
  * Destination type for a Send function.
1676
1825
  */
@@ -1965,7 +2114,7 @@ export declare namespace UpdateFunction {
1965
2114
  * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
1966
2115
  * stays distinct from operator-level execution flags.
1967
2116
  */
1968
- extraConfig?: ParseFunction.ExtraConfig;
2117
+ extraConfig?: FunctionsAPI.ParseExtraFunctionConfig;
1969
2118
  /**
1970
2119
  * Name of function. Must be UNIQUE on a per-environment basis.
1971
2120
  */
@@ -1983,25 +2132,6 @@ export declare namespace UpdateFunction {
1983
2132
  */
1984
2133
  tags?: Array<string>;
1985
2134
  }
1986
- namespace ParseFunction {
1987
- /**
1988
- * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
1989
- * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
1990
- * stays distinct from operator-level execution flags.
1991
- */
1992
- interface ExtraConfig {
1993
- /**
1994
- * When true, return per-section and per-entity-mention coordinates in the parse
1995
- * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
1996
- * array of `{page, left, top, width, height}` with coordinates normalized to [0,
1997
- * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
1998
- * output. Only applies to the open-ended discovery path (no `schema`) and to
1999
- * vision input types. Bedrock-backed parse functions silently return an empty map
2000
- * (no native bbox support). Defaults to false.
2001
- */
2002
- enableBoundingBoxes?: boolean;
2003
- }
2004
- }
2005
2135
  interface RenderFunction {
2006
2136
  type: 'render';
2007
2137
  /**
@@ -2019,38 +2149,12 @@ export declare namespace UpdateFunction {
2019
2149
  * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
2020
2150
  * returns the derived contract.
2021
2151
  */
2022
- renderConfig?: RenderFunction.RenderConfig;
2152
+ renderConfig?: FunctionsAPI.RenderConfigInput;
2023
2153
  /**
2024
2154
  * Array of tags to categorize and organize functions.
2025
2155
  */
2026
2156
  tags?: Array<string>;
2027
2157
  }
2028
- namespace RenderFunction {
2029
- /**
2030
- * Request-side render configuration. Carries the template document as
2031
- * base64-encoded `.docx` bytes: the server validates them, stores the template,
2032
- * and derives the placeholder/style-id contract at create/update time, so clients
2033
- * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
2034
- * returns the derived contract.
2035
- */
2036
- interface RenderConfig {
2037
- template: RenderConfig.Template;
2038
- }
2039
- namespace RenderConfig {
2040
- interface Template {
2041
- /**
2042
- * Base64-encoded `.docx` bytes. In the Bem CLI, use `@path/to/file` to embed it
2043
- * automatically.
2044
- */
2045
- base64: string;
2046
- /**
2047
- * Original upload filename (e.g. `contract.docx`), stored for display only. Does
2048
- * not affect where the template is stored.
2049
- */
2050
- name?: string;
2051
- }
2052
- }
2053
- }
2054
2158
  }
2055
2159
  export interface UserActionSummary {
2056
2160
  /**
@@ -2119,11 +2223,11 @@ export interface FunctionCompareMetricsResponse {
2119
2223
  /**
2120
2224
  * Comparison of metrics between two versions
2121
2225
  */
2122
- aggregateComparison?: FunctionCompareMetricsResponse.AggregateComparison;
2226
+ aggregateComparison?: MetricsComparison;
2123
2227
  /**
2124
2228
  * Detailed performance metrics and analysis
2125
2229
  */
2126
- baselineMetrics?: FunctionCompareMetricsResponse.BaselineMetrics;
2230
+ baselineMetrics?: MetricsDetails;
2127
2231
  /**
2128
2232
  * Number of transformations used to calculate baseline metrics
2129
2233
  */
@@ -2131,7 +2235,7 @@ export interface FunctionCompareMetricsResponse {
2131
2235
  /**
2132
2236
  * Detailed performance metrics and analysis
2133
2237
  */
2134
- comparisonMetrics?: FunctionCompareMetricsResponse.ComparisonMetrics;
2238
+ comparisonMetrics?: MetricsDetails;
2135
2239
  /**
2136
2240
  * Number of transformations used to calculate comparison metrics
2137
2241
  */
@@ -2149,527 +2253,55 @@ export interface FunctionCompareMetricsResponse {
2149
2253
  }
2150
2254
  export declare namespace FunctionCompareMetricsResponse {
2151
2255
  /**
2152
- * Comparison of metrics between two versions
2256
+ * Comparison of field-level metrics
2153
2257
  */
2154
- interface AggregateComparison {
2258
+ interface FieldMetricsChange {
2155
2259
  /**
2156
- * Comparison of a single metric between two versions
2260
+ * Comparison of metrics between two versions
2157
2261
  */
2158
- accuracy?: AggregateComparison.Accuracy;
2262
+ comparison: FunctionsAPI.MetricsComparison;
2159
2263
  /**
2160
- * Comparison of a single metric between two versions
2264
+ * JSON pointer path to the field
2161
2265
  */
2162
- f1Score?: AggregateComparison.F1Score;
2266
+ fieldPath: string;
2267
+ }
2268
+ }
2269
+ /**
2270
+ * Response containing review requirements estimate
2271
+ */
2272
+ export interface FunctionEstimateReviewRequirementsResponse {
2273
+ /**
2274
+ * Detailed review requirements estimate
2275
+ */
2276
+ estimate: FunctionEstimateReviewRequirementsResponse.Estimate;
2277
+ /**
2278
+ * Name of the analyzed function
2279
+ */
2280
+ functionName: string;
2281
+ /**
2282
+ * Version number of the function that was analyzed
2283
+ */
2284
+ functionVersionNum: number;
2285
+ /**
2286
+ * Detailed performance metrics and analysis
2287
+ */
2288
+ metrics?: MetricsDetails;
2289
+ }
2290
+ export declare namespace FunctionEstimateReviewRequirementsResponse {
2291
+ /**
2292
+ * Detailed review requirements estimate
2293
+ */
2294
+ interface Estimate {
2163
2295
  /**
2164
- * Comparison of a single metric between two versions
2296
+ * Distribution of confidence levels
2165
2297
  */
2166
- precision?: AggregateComparison.Precision;
2298
+ confidenceDistribution: Estimate.ConfidenceDistribution;
2167
2299
  /**
2168
- * Comparison of a single metric between two versions
2300
+ * Number of transformations already labeled
2169
2301
  */
2170
- recall?: AggregateComparison.Recall;
2171
- }
2172
- namespace AggregateComparison {
2302
+ labeledTransformations: number;
2173
2303
  /**
2174
- * Comparison of a single metric between two versions
2175
- */
2176
- interface Accuracy {
2177
- /**
2178
- * Value in baseline version (null if not available)
2179
- */
2180
- baselineValue?: number | null;
2181
- /**
2182
- * Value in comparison version (null if not available)
2183
- */
2184
- comparisonValue?: number | null;
2185
- /**
2186
- * Absolute difference (comparisonValue - baselineValue)
2187
- */
2188
- difference?: number | null;
2189
- /**
2190
- * **Percentage change from baseline to comparison**
2191
- *
2192
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2193
- *
2194
- * - Positive values indicate improvement
2195
- * - Negative values indicate regression
2196
- */
2197
- liftPercent?: number | null;
2198
- }
2199
- /**
2200
- * Comparison of a single metric between two versions
2201
- */
2202
- interface F1Score {
2203
- /**
2204
- * Value in baseline version (null if not available)
2205
- */
2206
- baselineValue?: number | null;
2207
- /**
2208
- * Value in comparison version (null if not available)
2209
- */
2210
- comparisonValue?: number | null;
2211
- /**
2212
- * Absolute difference (comparisonValue - baselineValue)
2213
- */
2214
- difference?: number | null;
2215
- /**
2216
- * **Percentage change from baseline to comparison**
2217
- *
2218
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2219
- *
2220
- * - Positive values indicate improvement
2221
- * - Negative values indicate regression
2222
- */
2223
- liftPercent?: number | null;
2224
- }
2225
- /**
2226
- * Comparison of a single metric between two versions
2227
- */
2228
- interface Precision {
2229
- /**
2230
- * Value in baseline version (null if not available)
2231
- */
2232
- baselineValue?: number | null;
2233
- /**
2234
- * Value in comparison version (null if not available)
2235
- */
2236
- comparisonValue?: number | null;
2237
- /**
2238
- * Absolute difference (comparisonValue - baselineValue)
2239
- */
2240
- difference?: number | null;
2241
- /**
2242
- * **Percentage change from baseline to comparison**
2243
- *
2244
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2245
- *
2246
- * - Positive values indicate improvement
2247
- * - Negative values indicate regression
2248
- */
2249
- liftPercent?: number | null;
2250
- }
2251
- /**
2252
- * Comparison of a single metric between two versions
2253
- */
2254
- interface Recall {
2255
- /**
2256
- * Value in baseline version (null if not available)
2257
- */
2258
- baselineValue?: number | null;
2259
- /**
2260
- * Value in comparison version (null if not available)
2261
- */
2262
- comparisonValue?: number | null;
2263
- /**
2264
- * Absolute difference (comparisonValue - baselineValue)
2265
- */
2266
- difference?: number | null;
2267
- /**
2268
- * **Percentage change from baseline to comparison**
2269
- *
2270
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2271
- *
2272
- * - Positive values indicate improvement
2273
- * - Negative values indicate regression
2274
- */
2275
- liftPercent?: number | null;
2276
- }
2277
- }
2278
- /**
2279
- * Detailed performance metrics and analysis
2280
- */
2281
- interface BaselineMetrics {
2282
- /**
2283
- * Comprehensive performance metrics
2284
- */
2285
- aggregateMetrics?: BaselineMetrics.AggregateMetrics;
2286
- /**
2287
- * Enhanced field metrics with comprehensive analytics
2288
- */
2289
- fieldMetrics?: Array<BaselineMetrics.FieldMetric>;
2290
- /**
2291
- * Area Under the Precision-Recall Curve
2292
- */
2293
- precisionRecallAuc?: number;
2294
- }
2295
- namespace BaselineMetrics {
2296
- /**
2297
- * Comprehensive performance metrics
2298
- */
2299
- interface AggregateMetrics {
2300
- /**
2301
- * Overall accuracy
2302
- */
2303
- accuracy?: number | null;
2304
- /**
2305
- * F1 Score (harmonic mean of precision and recall)
2306
- */
2307
- f1Score?: number | null;
2308
- /**
2309
- * False Negatives
2310
- */
2311
- fn?: number;
2312
- /**
2313
- * False Positives
2314
- */
2315
- fp?: number;
2316
- /**
2317
- * Precision (TP / (TP + FP))
2318
- */
2319
- precision?: number | null;
2320
- /**
2321
- * Recall (TP / (TP + FN))
2322
- */
2323
- recall?: number | null;
2324
- /**
2325
- * True Negatives
2326
- */
2327
- tn?: number;
2328
- /**
2329
- * True Positives
2330
- */
2331
- tp?: number;
2332
- }
2333
- /**
2334
- * Enhanced field metrics with comprehensive analytics
2335
- */
2336
- interface FieldMetric {
2337
- /**
2338
- * JSON path to the field
2339
- */
2340
- fieldPath: string;
2341
- /**
2342
- * Comprehensive performance metrics
2343
- */
2344
- metrics?: FieldMetric.Metrics;
2345
- }
2346
- namespace FieldMetric {
2347
- /**
2348
- * Comprehensive performance metrics
2349
- */
2350
- interface Metrics {
2351
- /**
2352
- * Overall accuracy
2353
- */
2354
- accuracy?: number | null;
2355
- /**
2356
- * F1 Score (harmonic mean of precision and recall)
2357
- */
2358
- f1Score?: number | null;
2359
- /**
2360
- * False Negatives
2361
- */
2362
- fn?: number;
2363
- /**
2364
- * False Positives
2365
- */
2366
- fp?: number;
2367
- /**
2368
- * Precision (TP / (TP + FP))
2369
- */
2370
- precision?: number | null;
2371
- /**
2372
- * Recall (TP / (TP + FN))
2373
- */
2374
- recall?: number | null;
2375
- /**
2376
- * True Negatives
2377
- */
2378
- tn?: number;
2379
- /**
2380
- * True Positives
2381
- */
2382
- tp?: number;
2383
- }
2384
- }
2385
- }
2386
- /**
2387
- * Detailed performance metrics and analysis
2388
- */
2389
- interface ComparisonMetrics {
2390
- /**
2391
- * Comprehensive performance metrics
2392
- */
2393
- aggregateMetrics?: ComparisonMetrics.AggregateMetrics;
2394
- /**
2395
- * Enhanced field metrics with comprehensive analytics
2396
- */
2397
- fieldMetrics?: Array<ComparisonMetrics.FieldMetric>;
2398
- /**
2399
- * Area Under the Precision-Recall Curve
2400
- */
2401
- precisionRecallAuc?: number;
2402
- }
2403
- namespace ComparisonMetrics {
2404
- /**
2405
- * Comprehensive performance metrics
2406
- */
2407
- interface AggregateMetrics {
2408
- /**
2409
- * Overall accuracy
2410
- */
2411
- accuracy?: number | null;
2412
- /**
2413
- * F1 Score (harmonic mean of precision and recall)
2414
- */
2415
- f1Score?: number | null;
2416
- /**
2417
- * False Negatives
2418
- */
2419
- fn?: number;
2420
- /**
2421
- * False Positives
2422
- */
2423
- fp?: number;
2424
- /**
2425
- * Precision (TP / (TP + FP))
2426
- */
2427
- precision?: number | null;
2428
- /**
2429
- * Recall (TP / (TP + FN))
2430
- */
2431
- recall?: number | null;
2432
- /**
2433
- * True Negatives
2434
- */
2435
- tn?: number;
2436
- /**
2437
- * True Positives
2438
- */
2439
- tp?: number;
2440
- }
2441
- /**
2442
- * Enhanced field metrics with comprehensive analytics
2443
- */
2444
- interface FieldMetric {
2445
- /**
2446
- * JSON path to the field
2447
- */
2448
- fieldPath: string;
2449
- /**
2450
- * Comprehensive performance metrics
2451
- */
2452
- metrics?: FieldMetric.Metrics;
2453
- }
2454
- namespace FieldMetric {
2455
- /**
2456
- * Comprehensive performance metrics
2457
- */
2458
- interface Metrics {
2459
- /**
2460
- * Overall accuracy
2461
- */
2462
- accuracy?: number | null;
2463
- /**
2464
- * F1 Score (harmonic mean of precision and recall)
2465
- */
2466
- f1Score?: number | null;
2467
- /**
2468
- * False Negatives
2469
- */
2470
- fn?: number;
2471
- /**
2472
- * False Positives
2473
- */
2474
- fp?: number;
2475
- /**
2476
- * Precision (TP / (TP + FP))
2477
- */
2478
- precision?: number | null;
2479
- /**
2480
- * Recall (TP / (TP + FN))
2481
- */
2482
- recall?: number | null;
2483
- /**
2484
- * True Negatives
2485
- */
2486
- tn?: number;
2487
- /**
2488
- * True Positives
2489
- */
2490
- tp?: number;
2491
- }
2492
- }
2493
- }
2494
- /**
2495
- * Comparison of field-level metrics
2496
- */
2497
- interface FieldMetricsChange {
2498
- /**
2499
- * Comparison of metrics between two versions
2500
- */
2501
- comparison: FieldMetricsChange.Comparison;
2502
- /**
2503
- * JSON pointer path to the field
2504
- */
2505
- fieldPath: string;
2506
- }
2507
- namespace FieldMetricsChange {
2508
- /**
2509
- * Comparison of metrics between two versions
2510
- */
2511
- interface Comparison {
2512
- /**
2513
- * Comparison of a single metric between two versions
2514
- */
2515
- accuracy?: Comparison.Accuracy;
2516
- /**
2517
- * Comparison of a single metric between two versions
2518
- */
2519
- f1Score?: Comparison.F1Score;
2520
- /**
2521
- * Comparison of a single metric between two versions
2522
- */
2523
- precision?: Comparison.Precision;
2524
- /**
2525
- * Comparison of a single metric between two versions
2526
- */
2527
- recall?: Comparison.Recall;
2528
- }
2529
- namespace Comparison {
2530
- /**
2531
- * Comparison of a single metric between two versions
2532
- */
2533
- interface Accuracy {
2534
- /**
2535
- * Value in baseline version (null if not available)
2536
- */
2537
- baselineValue?: number | null;
2538
- /**
2539
- * Value in comparison version (null if not available)
2540
- */
2541
- comparisonValue?: number | null;
2542
- /**
2543
- * Absolute difference (comparisonValue - baselineValue)
2544
- */
2545
- difference?: number | null;
2546
- /**
2547
- * **Percentage change from baseline to comparison**
2548
- *
2549
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2550
- *
2551
- * - Positive values indicate improvement
2552
- * - Negative values indicate regression
2553
- */
2554
- liftPercent?: number | null;
2555
- }
2556
- /**
2557
- * Comparison of a single metric between two versions
2558
- */
2559
- interface F1Score {
2560
- /**
2561
- * Value in baseline version (null if not available)
2562
- */
2563
- baselineValue?: number | null;
2564
- /**
2565
- * Value in comparison version (null if not available)
2566
- */
2567
- comparisonValue?: number | null;
2568
- /**
2569
- * Absolute difference (comparisonValue - baselineValue)
2570
- */
2571
- difference?: number | null;
2572
- /**
2573
- * **Percentage change from baseline to comparison**
2574
- *
2575
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2576
- *
2577
- * - Positive values indicate improvement
2578
- * - Negative values indicate regression
2579
- */
2580
- liftPercent?: number | null;
2581
- }
2582
- /**
2583
- * Comparison of a single metric between two versions
2584
- */
2585
- interface Precision {
2586
- /**
2587
- * Value in baseline version (null if not available)
2588
- */
2589
- baselineValue?: number | null;
2590
- /**
2591
- * Value in comparison version (null if not available)
2592
- */
2593
- comparisonValue?: number | null;
2594
- /**
2595
- * Absolute difference (comparisonValue - baselineValue)
2596
- */
2597
- difference?: number | null;
2598
- /**
2599
- * **Percentage change from baseline to comparison**
2600
- *
2601
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2602
- *
2603
- * - Positive values indicate improvement
2604
- * - Negative values indicate regression
2605
- */
2606
- liftPercent?: number | null;
2607
- }
2608
- /**
2609
- * Comparison of a single metric between two versions
2610
- */
2611
- interface Recall {
2612
- /**
2613
- * Value in baseline version (null if not available)
2614
- */
2615
- baselineValue?: number | null;
2616
- /**
2617
- * Value in comparison version (null if not available)
2618
- */
2619
- comparisonValue?: number | null;
2620
- /**
2621
- * Absolute difference (comparisonValue - baselineValue)
2622
- */
2623
- difference?: number | null;
2624
- /**
2625
- * **Percentage change from baseline to comparison**
2626
- *
2627
- * Formula: ((comparisonValue - baselineValue) / baselineValue) \* 100
2628
- *
2629
- * - Positive values indicate improvement
2630
- * - Negative values indicate regression
2631
- */
2632
- liftPercent?: number | null;
2633
- }
2634
- }
2635
- }
2636
- }
2637
- /**
2638
- * Response containing review requirements estimate
2639
- */
2640
- export interface FunctionEstimateReviewRequirementsResponse {
2641
- /**
2642
- * Detailed review requirements estimate
2643
- */
2644
- estimate: FunctionEstimateReviewRequirementsResponse.Estimate;
2645
- /**
2646
- * Name of the analyzed function
2647
- */
2648
- functionName: string;
2649
- /**
2650
- * Version number of the function that was analyzed
2651
- */
2652
- functionVersionNum: number;
2653
- /**
2654
- * Detailed performance metrics and analysis
2655
- */
2656
- metrics?: FunctionEstimateReviewRequirementsResponse.Metrics;
2657
- }
2658
- export declare namespace FunctionEstimateReviewRequirementsResponse {
2659
- /**
2660
- * Detailed review requirements estimate
2661
- */
2662
- interface Estimate {
2663
- /**
2664
- * Distribution of confidence levels
2665
- */
2666
- confidenceDistribution: Estimate.ConfidenceDistribution;
2667
- /**
2668
- * Number of transformations already labeled
2669
- */
2670
- labeledTransformations: number;
2671
- /**
2672
- * Number of transformations without evaluation data
2304
+ * Number of transformations without evaluation data
2673
2305
  */
2674
2306
  missingEvaluations: number;
2675
2307
  /**
@@ -2762,40 +2394,7 @@ export declare namespace FunctionEstimateReviewRequirementsResponse {
2762
2394
  * distribution. For extreme rates or small sample sizes, Wilson confidence
2763
2395
  * intervals may be more appropriate.
2764
2396
  */
2765
- '95'?: AccuracyAboveThreshold._95;
2766
- }
2767
- namespace AccuracyAboveThreshold {
2768
- /**
2769
- * Confidence interval for a rate/proportion using Wald (normal approximation)
2770
- * method by default.
2771
- *
2772
- * Wald confidence intervals use the normal approximation to the binomial
2773
- * distribution. For extreme rates or small sample sizes, Wilson confidence
2774
- * intervals may be more appropriate.
2775
- */
2776
- interface _95 {
2777
- /**
2778
- * Current number of samples/observations available
2779
- */
2780
- currentSample: number;
2781
- /**
2782
- * Minimum number of samples needed for reliable confidence interval calculation
2783
- */
2784
- sampleNeeded: number;
2785
- /**
2786
- * Lower bound of the confidence interval (null if insufficient sample size)
2787
- */
2788
- ciLower?: number | null;
2789
- /**
2790
- * Upper bound of the confidence interval (null if insufficient sample size)
2791
- */
2792
- ciUpper?: number | null;
2793
- /**
2794
- * Point estimate (observed rate) at the center of the interval (null if
2795
- * insufficient sample size)
2796
- */
2797
- mid?: number | null;
2798
- }
2397
+ '95'?: FunctionsAPI.RateConfidenceInterval;
2799
2398
  }
2800
2399
  /**
2801
2400
  * False Discovery Rate confidence intervals by confidence level. Keys are
@@ -2811,40 +2410,7 @@ export declare namespace FunctionEstimateReviewRequirementsResponse {
2811
2410
  * distribution. For extreme rates or small sample sizes, Wilson confidence
2812
2411
  * intervals may be more appropriate.
2813
2412
  */
2814
- '95'?: FalseDiscoveryRate._95;
2815
- }
2816
- namespace FalseDiscoveryRate {
2817
- /**
2818
- * Confidence interval for a rate/proportion using Wald (normal approximation)
2819
- * method by default.
2820
- *
2821
- * Wald confidence intervals use the normal approximation to the binomial
2822
- * distribution. For extreme rates or small sample sizes, Wilson confidence
2823
- * intervals may be more appropriate.
2824
- */
2825
- interface _95 {
2826
- /**
2827
- * Current number of samples/observations available
2828
- */
2829
- currentSample: number;
2830
- /**
2831
- * Minimum number of samples needed for reliable confidence interval calculation
2832
- */
2833
- sampleNeeded: number;
2834
- /**
2835
- * Lower bound of the confidence interval (null if insufficient sample size)
2836
- */
2837
- ciLower?: number | null;
2838
- /**
2839
- * Upper bound of the confidence interval (null if insufficient sample size)
2840
- */
2841
- ciUpper?: number | null;
2842
- /**
2843
- * Point estimate (observed rate) at the center of the interval (null if
2844
- * insufficient sample size)
2845
- */
2846
- mid?: number | null;
2847
- }
2413
+ '95'?: FunctionsAPI.RateConfidenceInterval;
2848
2414
  }
2849
2415
  /**
2850
2416
  * False Positive Rate confidence intervals by confidence level. Keys are
@@ -2860,40 +2426,7 @@ export declare namespace FunctionEstimateReviewRequirementsResponse {
2860
2426
  * distribution. For extreme rates or small sample sizes, Wilson confidence
2861
2427
  * intervals may be more appropriate.
2862
2428
  */
2863
- '95'?: FalsePositiveRate._95;
2864
- }
2865
- namespace FalsePositiveRate {
2866
- /**
2867
- * Confidence interval for a rate/proportion using Wald (normal approximation)
2868
- * method by default.
2869
- *
2870
- * Wald confidence intervals use the normal approximation to the binomial
2871
- * distribution. For extreme rates or small sample sizes, Wilson confidence
2872
- * intervals may be more appropriate.
2873
- */
2874
- interface _95 {
2875
- /**
2876
- * Current number of samples/observations available
2877
- */
2878
- currentSample: number;
2879
- /**
2880
- * Minimum number of samples needed for reliable confidence interval calculation
2881
- */
2882
- sampleNeeded: number;
2883
- /**
2884
- * Lower bound of the confidence interval (null if insufficient sample size)
2885
- */
2886
- ciLower?: number | null;
2887
- /**
2888
- * Upper bound of the confidence interval (null if insufficient sample size)
2889
- */
2890
- ciUpper?: number | null;
2891
- /**
2892
- * Point estimate (observed rate) at the center of the interval (null if
2893
- * insufficient sample size)
2894
- */
2895
- mid?: number | null;
2896
- }
2429
+ '95'?: FunctionsAPI.RateConfidenceInterval;
2897
2430
  }
2898
2431
  /**
2899
2432
  * Precision confidence intervals by confidence level. Keys are confidence levels
@@ -2908,40 +2441,7 @@ export declare namespace FunctionEstimateReviewRequirementsResponse {
2908
2441
  * distribution. For extreme rates or small sample sizes, Wilson confidence
2909
2442
  * intervals may be more appropriate.
2910
2443
  */
2911
- '95'?: Precision._95;
2912
- }
2913
- namespace Precision {
2914
- /**
2915
- * Confidence interval for a rate/proportion using Wald (normal approximation)
2916
- * method by default.
2917
- *
2918
- * Wald confidence intervals use the normal approximation to the binomial
2919
- * distribution. For extreme rates or small sample sizes, Wilson confidence
2920
- * intervals may be more appropriate.
2921
- */
2922
- interface _95 {
2923
- /**
2924
- * Current number of samples/observations available
2925
- */
2926
- currentSample: number;
2927
- /**
2928
- * Minimum number of samples needed for reliable confidence interval calculation
2929
- */
2930
- sampleNeeded: number;
2931
- /**
2932
- * Lower bound of the confidence interval (null if insufficient sample size)
2933
- */
2934
- ciLower?: number | null;
2935
- /**
2936
- * Upper bound of the confidence interval (null if insufficient sample size)
2937
- */
2938
- ciUpper?: number | null;
2939
- /**
2940
- * Point estimate (observed rate) at the center of the interval (null if
2941
- * insufficient sample size)
2942
- */
2943
- mid?: number | null;
2944
- }
2444
+ '95'?: FunctionsAPI.RateConfidenceInterval;
2945
2445
  }
2946
2446
  /**
2947
2447
  * Recall confidence intervals by confidence level. Keys are confidence levels as
@@ -2956,148 +2456,7 @@ export declare namespace FunctionEstimateReviewRequirementsResponse {
2956
2456
  * distribution. For extreme rates or small sample sizes, Wilson confidence
2957
2457
  * intervals may be more appropriate.
2958
2458
  */
2959
- '95'?: Recall._95;
2960
- }
2961
- namespace Recall {
2962
- /**
2963
- * Confidence interval for a rate/proportion using Wald (normal approximation)
2964
- * method by default.
2965
- *
2966
- * Wald confidence intervals use the normal approximation to the binomial
2967
- * distribution. For extreme rates or small sample sizes, Wilson confidence
2968
- * intervals may be more appropriate.
2969
- */
2970
- interface _95 {
2971
- /**
2972
- * Current number of samples/observations available
2973
- */
2974
- currentSample: number;
2975
- /**
2976
- * Minimum number of samples needed for reliable confidence interval calculation
2977
- */
2978
- sampleNeeded: number;
2979
- /**
2980
- * Lower bound of the confidence interval (null if insufficient sample size)
2981
- */
2982
- ciLower?: number | null;
2983
- /**
2984
- * Upper bound of the confidence interval (null if insufficient sample size)
2985
- */
2986
- ciUpper?: number | null;
2987
- /**
2988
- * Point estimate (observed rate) at the center of the interval (null if
2989
- * insufficient sample size)
2990
- */
2991
- mid?: number | null;
2992
- }
2993
- }
2994
- }
2995
- }
2996
- /**
2997
- * Detailed performance metrics and analysis
2998
- */
2999
- interface Metrics {
3000
- /**
3001
- * Comprehensive performance metrics
3002
- */
3003
- aggregateMetrics?: Metrics.AggregateMetrics;
3004
- /**
3005
- * Enhanced field metrics with comprehensive analytics
3006
- */
3007
- fieldMetrics?: Array<Metrics.FieldMetric>;
3008
- /**
3009
- * Area Under the Precision-Recall Curve
3010
- */
3011
- precisionRecallAuc?: number;
3012
- }
3013
- namespace Metrics {
3014
- /**
3015
- * Comprehensive performance metrics
3016
- */
3017
- interface AggregateMetrics {
3018
- /**
3019
- * Overall accuracy
3020
- */
3021
- accuracy?: number | null;
3022
- /**
3023
- * F1 Score (harmonic mean of precision and recall)
3024
- */
3025
- f1Score?: number | null;
3026
- /**
3027
- * False Negatives
3028
- */
3029
- fn?: number;
3030
- /**
3031
- * False Positives
3032
- */
3033
- fp?: number;
3034
- /**
3035
- * Precision (TP / (TP + FP))
3036
- */
3037
- precision?: number | null;
3038
- /**
3039
- * Recall (TP / (TP + FN))
3040
- */
3041
- recall?: number | null;
3042
- /**
3043
- * True Negatives
3044
- */
3045
- tn?: number;
3046
- /**
3047
- * True Positives
3048
- */
3049
- tp?: number;
3050
- }
3051
- /**
3052
- * Enhanced field metrics with comprehensive analytics
3053
- */
3054
- interface FieldMetric {
3055
- /**
3056
- * JSON path to the field
3057
- */
3058
- fieldPath: string;
3059
- /**
3060
- * Comprehensive performance metrics
3061
- */
3062
- metrics?: FieldMetric.Metrics;
3063
- }
3064
- namespace FieldMetric {
3065
- /**
3066
- * Comprehensive performance metrics
3067
- */
3068
- interface Metrics {
3069
- /**
3070
- * Overall accuracy
3071
- */
3072
- accuracy?: number | null;
3073
- /**
3074
- * F1 Score (harmonic mean of precision and recall)
3075
- */
3076
- f1Score?: number | null;
3077
- /**
3078
- * False Negatives
3079
- */
3080
- fn?: number;
3081
- /**
3082
- * False Positives
3083
- */
3084
- fp?: number;
3085
- /**
3086
- * Precision (TP / (TP + FP))
3087
- */
3088
- precision?: number | null;
3089
- /**
3090
- * Recall (TP / (TP + FN))
3091
- */
3092
- recall?: number | null;
3093
- /**
3094
- * True Negatives
3095
- */
3096
- tn?: number;
3097
- /**
3098
- * True Positives
3099
- */
3100
- tp?: number;
2459
+ '95'?: FunctionsAPI.RateConfidenceInterval;
3101
2460
  }
3102
2461
  }
3103
2462
  }
@@ -3395,7 +2754,7 @@ export declare namespace FunctionCreateParams {
3395
2754
  * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
3396
2755
  * stays distinct from operator-level execution flags.
3397
2756
  */
3398
- extraConfig?: CreateParseFunction.ExtraConfig;
2757
+ extraConfig?: ParseExtraFunctionConfig;
3399
2758
  /**
3400
2759
  * Per-version configuration for a Parse function.
3401
2760
  *
@@ -3409,25 +2768,6 @@ export declare namespace FunctionCreateParams {
3409
2768
  */
3410
2769
  tags?: Array<string>;
3411
2770
  }
3412
- namespace CreateParseFunction {
3413
- /**
3414
- * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
3415
- * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
3416
- * stays distinct from operator-level execution flags.
3417
- */
3418
- interface ExtraConfig {
3419
- /**
3420
- * When true, return per-section and per-entity-mention coordinates in the parse
3421
- * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
3422
- * array of `{page, left, top, width, height}` with coordinates normalized to [0,
3423
- * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
3424
- * output. Only applies to the open-ended discovery path (no `schema`) and to
3425
- * vision input types. Bedrock-backed parse functions silently return an empty map
3426
- * (no native bbox support). Defaults to false.
3427
- */
3428
- enableBoundingBoxes?: boolean;
3429
- }
3430
- }
3431
2771
  interface CreateRenderFunction {
3432
2772
  /**
3433
2773
  * Name of function. Must be UNIQUE on a per-environment basis.
@@ -3440,7 +2780,7 @@ export declare namespace FunctionCreateParams {
3440
2780
  * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
3441
2781
  * returns the derived contract.
3442
2782
  */
3443
- renderConfig: CreateRenderFunction.RenderConfig;
2783
+ renderConfig: RenderConfigInput;
3444
2784
  type: 'render';
3445
2785
  /**
3446
2786
  * Display name of function. Human-readable name to help you identify the function.
@@ -3451,32 +2791,6 @@ export declare namespace FunctionCreateParams {
3451
2791
  */
3452
2792
  tags?: Array<string>;
3453
2793
  }
3454
- namespace CreateRenderFunction {
3455
- /**
3456
- * Request-side render configuration. Carries the template document as
3457
- * base64-encoded `.docx` bytes: the server validates them, stores the template,
3458
- * and derives the placeholder/style-id contract at create/update time, so clients
3459
- * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
3460
- * returns the derived contract.
3461
- */
3462
- interface RenderConfig {
3463
- template: RenderConfig.Template;
3464
- }
3465
- namespace RenderConfig {
3466
- interface Template {
3467
- /**
3468
- * Base64-encoded `.docx` bytes. In the Bem CLI, use `@path/to/file` to embed it
3469
- * automatically.
3470
- */
3471
- base64: string;
3472
- /**
3473
- * Original upload filename (e.g. `contract.docx`), stored for display only. Does
3474
- * not affect where the template is stored.
3475
- */
3476
- name?: string;
3477
- }
3478
- }
3479
- }
3480
2794
  }
3481
2795
  export type FunctionUpdateParams = FunctionUpdateParams.UpsertExtractFunction | FunctionUpdateParams.UpsertClassifyFunction | FunctionUpdateParams.UpsertSendFunction | FunctionUpdateParams.UpsertSplitFunction | FunctionUpdateParams.UpsertJoinFunction | FunctionUpdateParams.UpsertPayloadShapingFunction | FunctionUpdateParams.UpsertEnrichFunction | FunctionUpdateParams.UpsertParseFunction | FunctionUpdateParams.UpsertRenderFunction;
3482
2796
  export declare namespace FunctionUpdateParams {
@@ -3718,7 +3032,7 @@ export declare namespace FunctionUpdateParams {
3718
3032
  * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
3719
3033
  * stays distinct from operator-level execution flags.
3720
3034
  */
3721
- extraConfig?: UpsertParseFunction.ExtraConfig;
3035
+ extraConfig?: ParseExtraFunctionConfig;
3722
3036
  /**
3723
3037
  * Name of function. Must be UNIQUE on a per-environment basis.
3724
3038
  */
@@ -3736,25 +3050,6 @@ export declare namespace FunctionUpdateParams {
3736
3050
  */
3737
3051
  tags?: Array<string>;
3738
3052
  }
3739
- namespace UpsertParseFunction {
3740
- /**
3741
- * Cross-cutting toggles for Parse functions. Mirrors the `extraConfig` surface on
3742
- * Extract / Join — separated from `parseConfig` so the per-call Parse output shape
3743
- * stays distinct from operator-level execution flags.
3744
- */
3745
- interface ExtraConfig {
3746
- /**
3747
- * When true, return per-section and per-entity-mention coordinates in the parse
3748
- * event's `fieldBoundingBoxes` map (same shape as Extract: JSON Pointer key →
3749
- * array of `{page, left, top, width, height}` with coordinates normalized to [0,
3750
- * 1]). Keys are `/sections/{N}` and `/entities/{N}/occurrences/{M}` into the parse
3751
- * output. Only applies to the open-ended discovery path (no `schema`) and to
3752
- * vision input types. Bedrock-backed parse functions silently return an empty map
3753
- * (no native bbox support). Defaults to false.
3754
- */
3755
- enableBoundingBoxes?: boolean;
3756
- }
3757
- }
3758
3053
  interface UpsertRenderFunction {
3759
3054
  type: 'render';
3760
3055
  /**
@@ -3772,38 +3067,12 @@ export declare namespace FunctionUpdateParams {
3772
3067
  * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
3773
3068
  * returns the derived contract.
3774
3069
  */
3775
- renderConfig?: UpsertRenderFunction.RenderConfig;
3070
+ renderConfig?: RenderConfigInput;
3776
3071
  /**
3777
3072
  * Array of tags to categorize and organize functions.
3778
3073
  */
3779
3074
  tags?: Array<string>;
3780
3075
  }
3781
- namespace UpsertRenderFunction {
3782
- /**
3783
- * Request-side render configuration. Carries the template document as
3784
- * base64-encoded `.docx` bytes: the server validates them, stores the template,
3785
- * and derives the placeholder/style-id contract at create/update time, so clients
3786
- * never submit `placeholders` or `styleIds`. The response shape (`RenderConfig`)
3787
- * returns the derived contract.
3788
- */
3789
- interface RenderConfig {
3790
- template: RenderConfig.Template;
3791
- }
3792
- namespace RenderConfig {
3793
- interface Template {
3794
- /**
3795
- * Base64-encoded `.docx` bytes. In the Bem CLI, use `@path/to/file` to embed it
3796
- * automatically.
3797
- */
3798
- base64: string;
3799
- /**
3800
- * Original upload filename (e.g. `contract.docx`), stored for display only. Does
3801
- * not affect where the template is stored.
3802
- */
3803
- name?: string;
3804
- }
3805
- }
3806
- }
3807
3076
  }
3808
3077
  export interface FunctionListParams extends FunctionsPageParams {
3809
3078
  displayName?: string;
@@ -3908,7 +3177,7 @@ export interface FunctionGetMetricsParams {
3908
3177
  types?: Array<FunctionType>;
3909
3178
  }
3910
3179
  export declare namespace Functions {
3911
- export { type ClassificationListItem as ClassificationListItem, type CreateFunction as CreateFunction, type EnrichConfig as EnrichConfig, type EnrichStep as EnrichStep, type Function as Function, type FunctionAudit as FunctionAudit, type FunctionResponse as FunctionResponse, type FunctionType as FunctionType, type ListFunctionsResponse as ListFunctionsResponse, type ParseConfig as ParseConfig, type SendDestinationType as SendDestinationType, type SplitFunctionSemanticPageItemClass as SplitFunctionSemanticPageItemClass, type UpdateFunction as UpdateFunction, type UserActionSummary as UserActionSummary, type WorkflowUsageInfo as WorkflowUsageInfo, type FunctionCompareMetricsResponse as FunctionCompareMetricsResponse, type FunctionEstimateReviewRequirementsResponse as FunctionEstimateReviewRequirementsResponse, type FunctionGetMetricsResponse as FunctionGetMetricsResponse, type FunctionsFunctionsPage as FunctionsFunctionsPage, type FunctionCreateParams as FunctionCreateParams, type FunctionUpdateParams as FunctionUpdateParams, type FunctionListParams as FunctionListParams, type FunctionCompareMetricsParams as FunctionCompareMetricsParams, type FunctionEstimateReviewRequirementsParams as FunctionEstimateReviewRequirementsParams, type FunctionGetMetricsParams as FunctionGetMetricsParams, };
3180
+ export { type ClassificationListItem as ClassificationListItem, type CreateFunction as CreateFunction, type EnrichConfig as EnrichConfig, type EnrichStep as EnrichStep, type Function as Function, type FunctionAudit as FunctionAudit, type FunctionResponse as FunctionResponse, type FunctionType as FunctionType, type ListFunctionsResponse as ListFunctionsResponse, type MetricComparison as MetricComparison, type Metrics as Metrics, type MetricsComparison as MetricsComparison, type MetricsDetails as MetricsDetails, type ParseConfig as ParseConfig, type ParseExtraFunctionConfig as ParseExtraFunctionConfig, type RateConfidenceInterval as RateConfidenceInterval, type RenderConfig as RenderConfig, type RenderConfigInput as RenderConfigInput, type SendDestinationType as SendDestinationType, type SplitFunctionSemanticPageItemClass as SplitFunctionSemanticPageItemClass, type UpdateFunction as UpdateFunction, type UserActionSummary as UserActionSummary, type WorkflowUsageInfo as WorkflowUsageInfo, type FunctionCompareMetricsResponse as FunctionCompareMetricsResponse, type FunctionEstimateReviewRequirementsResponse as FunctionEstimateReviewRequirementsResponse, type FunctionGetMetricsResponse as FunctionGetMetricsResponse, type FunctionsFunctionsPage as FunctionsFunctionsPage, type FunctionCreateParams as FunctionCreateParams, type FunctionUpdateParams as FunctionUpdateParams, type FunctionListParams as FunctionListParams, type FunctionCompareMetricsParams as FunctionCompareMetricsParams, type FunctionEstimateReviewRequirementsParams as FunctionEstimateReviewRequirementsParams, type FunctionGetMetricsParams as FunctionGetMetricsParams, };
3912
3181
  export { Copy as Copy, type FunctionCopyRequest as FunctionCopyRequest, type CopyCreateParams as CopyCreateParams, };
3913
3182
  export { Versions as Versions, type FunctionVersion as FunctionVersion, type ListFunctionVersionsResponse as ListFunctionVersionsResponse, type VersionRetrieveResponse as VersionRetrieveResponse, type VersionRetrieveParams as VersionRetrieveParams, };
3914
3183
  export { Regression as Regression, type RegressionApplyCorrectionsResponse as RegressionApplyCorrectionsResponse, type RegressionRunResponse as RegressionRunResponse, type RegressionApplyCorrectionsParams as RegressionApplyCorrectionsParams, type RegressionRunParams as RegressionRunParams, };