@talonic/docs 0.21.32 → 0.21.33
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/dist/content.js +141 -75
- package/dist/seo.js +122 -14
- package/openapi.json +122 -14
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -19270,9 +19270,9 @@ var sections32 = [
|
|
|
19270
19270
|
seoTitle: "Get Resolution Results: Original vs Resolved \u2014 Talonic Docs",
|
|
19271
19271
|
description: "Read a resolution run's per-field results with GET /v1/resolutions/{id}/results: original vs resolved values, the resolution step applied, and confidence.",
|
|
19272
19272
|
content: [
|
|
19273
|
-
{ type: "paragraph", text: "Retrieve the **resolution results** for a run.
|
|
19273
|
+
{ type: "paragraph", text: "Retrieve the **resolution results** for a run. `data` holds one row per document **and field**: the raw extracted value alongside the canonical value resolution produced, the `resolution_step` (strategy) that made the match, and a `confidence` score. Rows appear as documents finish resolving, so an early read during `processing` returns only the documents flushed so far; a document that has not produced any field yet contributes no rows." },
|
|
19274
19274
|
{ type: "paragraph", text: "Rows are returned oldest-first (`created_at` ascending) with no pagination. Results are also filtered by source visibility: rows whose document is hidden from you under your organization's source visibility rules are dropped from the response entirely, so two API keys can legitimately see different row counts for the same run." },
|
|
19275
|
-
{ type: "callout", variant: "info", text: "
|
|
19275
|
+
{ type: "callout", variant: "info", text: "resolution_step names the strategy that produced the resolved value \u2014 for example lookup (reference table match), registry_transfer, deterministic_compute, or source_extraction when the extracted value stood as-is. It is null when the engine recorded no method for the cell." },
|
|
19276
19276
|
{
|
|
19277
19277
|
type: "endpoint",
|
|
19278
19278
|
method: "GET",
|
|
@@ -19302,13 +19302,15 @@ var sections32 = [
|
|
|
19302
19302
|
title: "Response fields",
|
|
19303
19303
|
params: [
|
|
19304
19304
|
{ name: "data", type: "array", description: "Array of resolution result objects, ordered by created_at ascending." },
|
|
19305
|
-
{ name: "data[].id", type: "string", description: "
|
|
19305
|
+
{ name: "data[].id", type: "string", description: "Row identifier: the document result UUID and the field key joined by a colon." },
|
|
19306
|
+
{ name: "data[].result_id", type: "string", description: "UUID of the per-document result row this field belongs to." },
|
|
19306
19307
|
{ name: "data[].resolution_run_id", type: "string", description: "Parent resolution run UUID." },
|
|
19307
19308
|
{ name: "data[].document_id", type: "string", description: "Document UUID this result belongs to." },
|
|
19308
|
-
{ name: "data[].
|
|
19309
|
-
{ name: "data[].
|
|
19310
|
-
{ name: "data[].
|
|
19311
|
-
{ name: "data[].
|
|
19309
|
+
{ name: "data[].status", type: "string", description: "The document result's status: pending, processing, completed, or failed." },
|
|
19310
|
+
{ name: "data[].field_name", type: "string", description: "Field key that was resolved." },
|
|
19311
|
+
{ name: "data[].original_value", type: "any | null", description: "Raw extracted value before resolution." },
|
|
19312
|
+
{ name: "data[].resolved_value", type: "any | null", description: "Canonical value after resolution." },
|
|
19313
|
+
{ name: "data[].resolution_step", type: "string | null", description: "Strategy that produced the resolved value (for example lookup, registry_transfer, deterministic_compute, source_extraction), or null." },
|
|
19312
19314
|
{ name: "data[].confidence", type: "number | null", description: "Confidence score for the resolved value (0-1), or null when not applicable." },
|
|
19313
19315
|
{ name: "data[].created_at", type: "string", description: "ISO 8601 timestamp." }
|
|
19314
19316
|
]
|
|
@@ -19319,9 +19321,11 @@ var sections32 = [
|
|
|
19319
19321
|
code: `{
|
|
19320
19322
|
"data": [
|
|
19321
19323
|
{
|
|
19322
|
-
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
19324
|
+
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012:country",
|
|
19325
|
+
"result_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
19323
19326
|
"resolution_run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
19324
19327
|
"document_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
|
|
19328
|
+
"status": "completed",
|
|
19325
19329
|
"field_name": "country",
|
|
19326
19330
|
"original_value": "Deutschland",
|
|
19327
19331
|
"resolved_value": "DE",
|
|
@@ -19332,7 +19336,7 @@ var sections32 = [
|
|
|
19332
19336
|
]
|
|
19333
19337
|
}`
|
|
19334
19338
|
},
|
|
19335
|
-
{ type: "paragraph", text: "Use `resolution_step` to understand how each value was normalized: `lookup` indicates a direct reference table match, `
|
|
19339
|
+
{ type: "paragraph", text: "Use `resolution_step` to understand how each value was normalized: `lookup` indicates a direct reference table match, `registry_transfer` means the value was carried from the field registry, `deterministic_compute` means a formula produced the result, and `source_extraction` means the extracted value stood as-is. A `null` `resolved_value` means no strategy produced a value for the field. Recurring unmatched values are the signal to extend your reference tables before the next run." },
|
|
19336
19340
|
{ type: "paragraph", text: "Read results only after [`GET /v1/resolutions/{id}`](get-resolution) reports `completed` when you need the final picture \u2014 during `processing` the endpoint serves whatever has been flushed so far, which is useful for progress display but not for downstream consumption. For delivery-shaped output (dialect renames, suppressed fields, casts applied), configure the run's schema with a dialect and consume the run through your delivery destinations instead of re-implementing that shaping client-side." },
|
|
19337
19341
|
{ type: "heading", level: 2, id: "get-resolution-results-errors", text: "Errors" },
|
|
19338
19342
|
{
|
|
@@ -19354,7 +19358,7 @@ var sections32 = [
|
|
|
19354
19358
|
],
|
|
19355
19359
|
faq: [
|
|
19356
19360
|
{ question: "What does it mean when resolved_value is null?", answer: "No resolution strategy could match the original value to a canonical form, so the field keeps its raw extracted value. Recurring unmatched values are the signal to add entries to your reference tables \u2014 the next run created after the edit picks them up." },
|
|
19357
|
-
{ question: "Why does the endpoint return rows before the run is completed?", answer: "
|
|
19361
|
+
{ question: "Why does the endpoint return rows before the run is completed?", answer: "Per-document results are flushed in batches during execution, and each flushed document contributes one row per field. Partial reads are useful for progress display; wait for the run status to reach completed before consuming results downstream." },
|
|
19358
19362
|
{ question: "Why do I see fewer rows than the source run has documents?", answer: "Results are filtered by your organization's source visibility rules: rows for documents hidden from your API key's user are dropped from the response. A key minted by a user with broader visibility can see more rows for the same run." },
|
|
19359
19363
|
{ question: "Can I use resolution results in a data product?", answer: "Yes. Pass the completed resolution run's UUID in the run_ids array of POST /v1/data-products to assemble the resolved values into a data product ready for export or delivery." }
|
|
19360
19364
|
],
|
|
@@ -23363,7 +23367,7 @@ var sections38 = [
|
|
|
23363
23367
|
{ type: "paragraph", text: "This namespace is **Benchmarks** (the `/v1/validation` namespace): measuring how accurately a completed job run extracted data, by comparing its output against manually verified expected values. It is not the in-pipeline validation checks (see the Structuring API) that gate individual results before delivery \u2014 those keep the Validation name. `GET /v1/validation/ground-truth` lists the **golden samples** those accuracy measurements run against." },
|
|
23364
23368
|
{ type: "paragraph", text: "A **golden sample** (shown as Ground Truth in the platform) is a curated set of verified document-field value pairs: each entry names a `document_id`, a `field_name`, and the `expected_value` a correct extraction should produce. Every golden sample is bound to exactly one schema via `user_schema_id` \u2014 the schema whose fields the expected values describe \u2014 so a validation run always compares like with like. API payloads reference a dataset through the `golden_sample_id` field." },
|
|
23365
23369
|
{ type: "paragraph", text: "Do not confuse golden samples with the benchmark datasets under [`/v1/quality/ground-truth`](list-quality-datasets). Both store verified values, but a `/v1/quality` dataset holds one `expected_data` object per document and feeds repeatable benchmark runs, while a golden sample holds individual per-field expected values and scores **one specific Structuring Run** (a job run) via `POST /v1/validation/runs`." },
|
|
23366
|
-
{ type: "paragraph", text: "The list returns every golden sample in your organization, newest first, in a single response \u2014 there are no pagination parameters on this endpoint.
|
|
23370
|
+
{ type: "paragraph", text: "The list returns every golden sample in your organization, newest first, in a single response \u2014 there are no pagination parameters on this endpoint. `entry_count` is the number of expected values stored on the sample (one per document-field pair). Golden samples are curated in the Talonic platform (Review → Benchmarks); through the public API you list them, inspect their expected values, delete them, and run benchmarks against them." },
|
|
23367
23371
|
{ type: "paragraph", text: "A typical integration lists datasets, picks the one matching the schema of the Structuring Run it wants to score, then passes its `id` as `golden_sample_id` to [`POST /v1/validation/runs`](create-validation-run). Because each dataset is schema-bound, filter client-side on `user_schema_id` to find the dataset that matches the run you are validating." },
|
|
23368
23372
|
{ type: "callout", variant: "info", text: "Golden samples are reusable. Curate a dataset once and benchmark against it repeatedly as you refine your schemas and extraction pipeline \u2014 each validation run references the dataset, it never consumes it." },
|
|
23369
23373
|
{
|
|
@@ -23448,7 +23452,7 @@ var sections38 = [
|
|
|
23448
23452
|
content: [
|
|
23449
23453
|
{ type: "paragraph", text: "`GET /v1/validation/ground-truth/{id}` retrieves the full detail of a **golden sample** (Ground Truth dataset), including every manually verified expected value entry; `DELETE` on the same path permanently removes it. These datasets are the reference side of Benchmarks: accuracy measurement of extraction output, distinct from the in-pipeline checks that gate results before delivery." },
|
|
23450
23454
|
{ type: "paragraph", text: "Call GET before starting a validation run to verify that expected values are correct and complete. The `values` array contains every document-field pair with its `expected_value`, `document_id`, and `field_name`, ordered oldest-first. Review these to ensure the benchmark data reflects your current extraction requirements \u2014 a stale expected value shows up later as a false mismatch in run results, and a systematically wrong one silently caps the best score any run can achieve." },
|
|
23451
|
-
{ type: "paragraph", text: "The `values` array is filtered by document visibility: if source IAM rules hide a document from the user who minted your API key, that document's expected values are omitted from the response. `user_schema_id` confirms which schema the dataset is bound to (it is always set)
|
|
23455
|
+
{ type: "paragraph", text: "The `values` array is filtered by document visibility: if source IAM rules hide a document from the user who minted your API key, that document's expected values are omitted from the response. `user_schema_id` confirms which schema the dataset is bound to (it is always set). `entry_count` on the detail response is `null`; `values.length` is the count after visibility filtering, and the list endpoint reports the unfiltered total." },
|
|
23452
23456
|
{ type: "paragraph", text: "Deleting a golden sample is destructive beyond the dataset itself: **validation runs that reference the dataset are removed with it** (the reference cascades), along with their per-field results. Export or record any scores you need before deleting. To update individual entries, recreate the dataset in the Talonic platform with corrected values and point new validation runs at it." },
|
|
23453
23457
|
{ type: "callout", variant: "warning", text: "DELETE cascades: removing a golden sample also removes the validation runs that were scored against it, including their per-field results. This is not a soft delete \u2014 capture any accuracy history you need before calling it." },
|
|
23454
23458
|
{
|
|
@@ -23550,8 +23554,8 @@ var sections38 = [
|
|
|
23550
23554
|
description: "List validation runs with GET /v1/validation/runs. Each run scores a job run against a golden sample dataset; poll status and drill into per-field results.",
|
|
23551
23555
|
content: [
|
|
23552
23556
|
{ type: "paragraph", text: "A **validation run** is a benchmark: it compares the structured output of one job run (a **Structuring Run** in the platform) against a golden sample dataset and produces per-field comparison records. `GET /v1/validation/runs` lists the newest 100 validation runs for your organization, most recent first. This is Benchmarks \u2014 accuracy measurement after the fact \u2014 not the in-pipeline validation checks that gate results before delivery." },
|
|
23553
|
-
{ type: "paragraph", text: "Each run carries a `status` from the lifecycle `pending` → `queued` → `processing` → `completed` (or `failed`). Runs created through the public API
|
|
23554
|
-
{ type: "paragraph", text:
|
|
23557
|
+
{ type: "paragraph", text: "Each run carries a `status` from the lifecycle `pending` → `queued` → `processing` → `completed` (or `failed`). Runs created through the public API execute in the request and come back already `completed` or `failed`; only runs created from older clients can still sit in `pending`. There is no `running` status." },
|
|
23558
|
+
{ type: "paragraph", text: "`accuracy` is the run's weighted score across all fields and documents (0-1) and `total_comparisons` is the number of document-field pairs compared; both are `null` until the run completes. `field_accuracy` carries the per-field breakdown (match-type counts and a per-field score), and `matched_documents` / `unmatched_golden` / `unmatched_dataset` show how many documents were paired. For row-level detail, fetch [`GET /v1/validation/runs/{id}/results`](get-validation-results)." },
|
|
23555
23559
|
{ type: "paragraph", text: "The list includes every validation run in the organization, not only API-created ones: benchmarks launched from the platform (golden-sample comparisons, CSV comparisons, unified and LLM-judge runs) appear here too, serialized to the same shape. Use `dataspace_run_id` to correlate a run with the job it scored and `golden_sample_id` to correlate it with its dataset; both come back `null` on run types that do not use them (a CSV comparison has no job run, for example)." },
|
|
23556
23560
|
{ type: "callout", variant: "info", text: "The list returns up to 100 runs ordered by `created_at` descending, with no pagination. Delete obsolete runs with `DELETE /v1/validation/runs/{id}` if older runs you still need fall outside the window." },
|
|
23557
23561
|
{
|
|
@@ -23580,8 +23584,13 @@ var sections38 = [
|
|
|
23580
23584
|
{ name: "data[].status", type: "string", description: "Run status: pending, queued, processing, completed, or failed." },
|
|
23581
23585
|
{ name: "data[].dataspace_run_id", type: "string | null", description: "UUID of the job run (Structuring Run) being validated." },
|
|
23582
23586
|
{ name: "data[].golden_sample_id", type: "string | null", description: "UUID of the golden sample dataset." },
|
|
23583
|
-
{ name: "data[].accuracy", type: "null", description: "
|
|
23584
|
-
{ name: "data[].total_comparisons", type: "null", description: "
|
|
23587
|
+
{ name: "data[].accuracy", type: "number | null", description: "Weighted accuracy across all fields and documents (0-1). Null until the run completes." },
|
|
23588
|
+
{ name: "data[].total_comparisons", type: "integer | null", description: "Number of document-field pairs compared. Null until the run completes." },
|
|
23589
|
+
{ name: "data[].matched_documents", type: "integer", description: "Documents paired between the job run and the golden sample." },
|
|
23590
|
+
{ name: "data[].unmatched_golden", type: "integer", description: "Golden sample documents with no corresponding job-run document." },
|
|
23591
|
+
{ name: "data[].unmatched_dataset", type: "integer", description: "Job-run documents with no corresponding golden sample document." },
|
|
23592
|
+
{ name: "data[].field_accuracy", type: "object | null", description: "Per-field breakdown: total, exact, partial, mismatch, missing_actual, missing_expected, both_empty, accuracy." },
|
|
23593
|
+
{ name: "data[].error_message", type: "string | null", description: "Why a failed run failed." },
|
|
23585
23594
|
{ name: "data[].created_at", type: "string", description: "ISO 8601 creation timestamp." },
|
|
23586
23595
|
{ name: "data[].completed_at", type: "string | null", description: "ISO 8601 completion timestamp." },
|
|
23587
23596
|
{ name: "data[].links", type: "object", description: "Related resource URLs (self, results)." }
|
|
@@ -23598,8 +23607,13 @@ var sections38 = [
|
|
|
23598
23607
|
"status": "completed",
|
|
23599
23608
|
"dataspace_run_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
|
|
23600
23609
|
"golden_sample_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
23601
|
-
"accuracy":
|
|
23602
|
-
"total_comparisons":
|
|
23610
|
+
"accuracy": 0.9412,
|
|
23611
|
+
"total_comparisons": 68,
|
|
23612
|
+
"matched_documents": 17,
|
|
23613
|
+
"unmatched_golden": 0,
|
|
23614
|
+
"unmatched_dataset": 2,
|
|
23615
|
+
"field_accuracy": { "invoice_number": { "total": 17, "exact": 17, "partial": 0, "mismatch": 0, "missing_actual": 0, "missing_expected": 0, "both_empty": 0, "accuracy": 1 } },
|
|
23616
|
+
"error_message": null,
|
|
23603
23617
|
"created_at": "2024-09-14T10:32:00.000Z",
|
|
23604
23618
|
"completed_at": "2024-09-14T10:35:00.000Z",
|
|
23605
23619
|
"links": {
|
|
@@ -23627,9 +23641,9 @@ var sections38 = [
|
|
|
23627
23641
|
],
|
|
23628
23642
|
faq: [
|
|
23629
23643
|
{ question: "How many validation runs are returned?", answer: "Up to 100 runs are returned, ordered by created_at descending, in a single response without pagination. Older runs beyond the newest 100 are not listed." },
|
|
23630
|
-
{ question: "Why is accuracy
|
|
23644
|
+
{ question: "Why is accuracy null on a run?", answer: "The run has not completed. accuracy and total_comparisons are filled in when the comparison finishes; a failed run keeps them null and explains itself in error_message." },
|
|
23631
23645
|
{ question: "What is dataspace_run_id in the response?", answer: "It is the UUID of the job run (Structuring Run) whose output was validated. golden_sample_id identifies the golden sample dataset the output was compared against." },
|
|
23632
|
-
{ question: "What statuses can a validation run have?", answer: "pending
|
|
23646
|
+
{ question: "What statuses can a validation run have?", answer: "pending, queued and processing while the engine is comparing, then completed or failed. Runs created through the public API execute in the request and return already completed or failed; there is no running status." },
|
|
23633
23647
|
{ question: "Can I filter the run list by job or dataset?", answer: "No \u2014 the endpoint takes no query parameters. Fetch the newest 100 runs and filter client-side on dataspace_run_id or golden_sample_id. If runs you need regularly fall outside the 100-run window, delete superseded runs to keep the window useful." }
|
|
23634
23648
|
],
|
|
23635
23649
|
mentions: ["validation runs", "accuracy tracking", "golden_sample_id", "dataspace_run_id", "run status", "Structuring Run"]
|
|
@@ -23642,10 +23656,10 @@ var sections38 = [
|
|
|
23642
23656
|
description: "Start a validation run with POST /v1/validation/runs, registering a benchmark of one job run against a golden sample for per-field extraction accuracy.",
|
|
23643
23657
|
content: [
|
|
23644
23658
|
{ type: "paragraph", text: "`POST /v1/validation/runs` registers a **validation run**: a benchmark that compares the output of one **job run** (Structuring Run) against a **golden sample** of verified expected values. When the run executes, the engine classifies every document-field pair as `exact`, `partial`, or `mismatch` (plus missing-value categories), and an optional LLM judge pass adds semantic verdicts. This measures accuracy after extraction, unlike the in-pipeline checks that gate results before delivery." },
|
|
23645
|
-
{ type: "paragraph", text: 'The endpoint validates both references before inserting: `dataspace_run_id` is checked first (404 `"Job run ... not found."`), then `golden_sample_id` (404 `"Golden sample ... not found."`); both must be UUID v4 or the request fails with `400 VALIDATION_ERROR`. On success the run is
|
|
23646
|
-
{ type: "paragraph", text: "
|
|
23659
|
+
{ type: "paragraph", text: 'The endpoint validates both references before inserting: `dataspace_run_id` is checked first (404 `"Job run ... not found."`), then `golden_sample_id` (404 `"Golden sample ... not found."`); both must be UUID v4 or the request fails with `400 VALIDATION_ERROR`. The job run must be `completed` (a 400 `validation_error` otherwise) and must use the same schema as the golden sample. On success the comparison runs in the request and the run is returned already `completed`, with `accuracy`, `total_comparisons` and `field_accuracy` populated; if the engine hits an error the run is returned as `failed` with `error_message`.' },
|
|
23660
|
+
{ type: "paragraph", text: "This is the same engine the platform's Benchmarks surface (Review → Benchmarks) runs, so scores from the API and the dashboard agree. A golden sample with a few hundred values compares in well under a second; the request returns when the comparison is done, so there is nothing to poll." },
|
|
23647
23661
|
{ type: "paragraph", text: "For a meaningful benchmark, validate a **completed** Structuring Run whose schema matches the golden sample's `user_schema_id` \u2014 the engine compares field names defined by that schema, so a schema mismatch produces mostly missing comparisons rather than an error at creation time. If `name` is omitted, the run is named `Validation YYYY-MM-DD` from the creation date; use explicit names when creating several runs a day, since the list endpoint has no filters." },
|
|
23648
|
-
{ type: "callout", variant: "
|
|
23662
|
+
{ type: "callout", variant: "info", text: "Runs are cheap and independent. Create one per job run you want scored and compare them over time with [`GET /v1/validation/runs`](list-validation-runs)." },
|
|
23649
23663
|
{
|
|
23650
23664
|
type: "endpoint",
|
|
23651
23665
|
method: "POST",
|
|
@@ -23693,11 +23707,13 @@ var sections38 = [
|
|
|
23693
23707
|
params: [
|
|
23694
23708
|
{ name: "id", type: "string", description: "Validation run UUID." },
|
|
23695
23709
|
{ name: "name", type: "string", description: "Run name." },
|
|
23696
|
-
{ name: "status", type: "string", description: "
|
|
23710
|
+
{ name: "status", type: "string", description: "completed, or failed when the engine hit an error (see error_message)." },
|
|
23697
23711
|
{ name: "dataspace_run_id", type: "string", description: "UUID of the job run being validated." },
|
|
23698
23712
|
{ name: "golden_sample_id", type: "string", description: "UUID of the golden sample dataset." },
|
|
23699
|
-
{ name: "accuracy", type: "null", description: "
|
|
23700
|
-
{ name: "total_comparisons", type: "null", description: "
|
|
23713
|
+
{ name: "accuracy", type: "number | null", description: "Weighted accuracy across all fields and documents (0-1); null on a failed run." },
|
|
23714
|
+
{ name: "total_comparisons", type: "integer | null", description: "Number of document-field pairs compared; null on a failed run." },
|
|
23715
|
+
{ name: "field_accuracy", type: "object | null", description: "Per-field breakdown with match-type counts and a per-field score." },
|
|
23716
|
+
{ name: "error_message", type: "string | null", description: "Why a failed run failed." },
|
|
23701
23717
|
{ name: "created_at", type: "string", description: "ISO 8601 creation timestamp." },
|
|
23702
23718
|
{ name: "completed_at", type: "string | null", description: "Null until the run completes." },
|
|
23703
23719
|
{ name: "links", type: "object", description: "Related resource URLs (self, results)." }
|
|
@@ -23709,13 +23725,18 @@ var sections38 = [
|
|
|
23709
23725
|
code: `{
|
|
23710
23726
|
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
23711
23727
|
"name": "Q1 Invoice accuracy check",
|
|
23712
|
-
"status": "
|
|
23728
|
+
"status": "completed",
|
|
23713
23729
|
"dataspace_run_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
|
|
23714
23730
|
"golden_sample_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
23715
|
-
"accuracy":
|
|
23716
|
-
"total_comparisons":
|
|
23731
|
+
"accuracy": 0.9412,
|
|
23732
|
+
"total_comparisons": 68,
|
|
23733
|
+
"matched_documents": 17,
|
|
23734
|
+
"unmatched_golden": 0,
|
|
23735
|
+
"unmatched_dataset": 2,
|
|
23736
|
+
"field_accuracy": { "invoice_number": { "total": 17, "exact": 17, "partial": 0, "mismatch": 0, "missing_actual": 0, "missing_expected": 0, "both_empty": 0, "accuracy": 1 } },
|
|
23737
|
+
"error_message": null,
|
|
23717
23738
|
"created_at": "2024-09-14T10:32:00.000Z",
|
|
23718
|
-
"completed_at":
|
|
23739
|
+
"completed_at": "2024-09-14T10:32:01.000Z",
|
|
23719
23740
|
"links": {
|
|
23720
23741
|
"self": "/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
23721
23742
|
"results": "/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/results"
|
|
@@ -23740,7 +23761,7 @@ var sections38 = [
|
|
|
23740
23761
|
{ label: "Get Job Results", slug: "get-job-results" }
|
|
23741
23762
|
],
|
|
23742
23763
|
faq: [
|
|
23743
|
-
{ question: "
|
|
23764
|
+
{ question: "Does the POST wait for the comparison?", answer: "Yes. The comparison runs inside the request and the response is the finished run (completed, or failed with error_message). There is no pending phase to poll through." },
|
|
23744
23765
|
{ question: "Can I run validation against the same dataset multiple times?", answer: "Yes. You can create multiple validation runs against the same golden sample with different job runs to track accuracy improvements over time. Runs reference the dataset without consuming it." },
|
|
23745
23766
|
{ question: "What is the difference between a validation run and a benchmark run?", answer: "Both are Benchmarks surfaces. A validation run (POST /v1/validation/runs) scores one specific job run against a golden sample of per-field expected values. A benchmark run (POST /v1/quality/benchmarks) scores extraction output against a dataset of per-document expected_data objects and supports run-to-run comparison." }
|
|
23746
23767
|
],
|
|
@@ -23754,8 +23775,8 @@ var sections38 = [
|
|
|
23754
23775
|
description: "Poll a validation run for status with GET /v1/validation/runs/:id, or delete the run and its per-field results with DELETE on the same authenticated path.",
|
|
23755
23776
|
content: [
|
|
23756
23777
|
{ type: "paragraph", text: "`GET /v1/validation/runs/{id}` retrieves one **validation run** with its status and metadata; `DELETE` on the same path permanently removes the run and its per-field results. A validation run is a benchmark of a job run against a golden sample, so this endpoint is where you poll until benchmarking finishes and the per-field results are ready to read." },
|
|
23757
|
-
{ type: "paragraph", text:
|
|
23758
|
-
{ type: "paragraph", text:
|
|
23778
|
+
{ type: "paragraph", text: "After a run is created, poll this endpoint until the `status` field reaches a terminal state: the lifecycle is `pending` → `queued` → `processing` → `completed` or `failed`. Runs created through the public API return already `completed` or `failed`, so polling is only needed for runs launched elsewhere." },
|
|
23779
|
+
{ type: "paragraph", text: "Once `status` is `completed`, `accuracy` (0-1, weighted across all fields and documents), `total_comparisons` and the per-field `field_accuracy` breakdown are populated. Follow `links.results` to [the per-field results](get-validation-results) when you need row-level detail \u2014 for example to list every `mismatch` for one field." },
|
|
23759
23780
|
{ type: "callout", variant: "warning", text: "Deleting a validation run permanently removes all per-field results. The golden sample dataset and the original job run are not affected. Use DELETE only when you want to clean up outdated or erroneous runs." },
|
|
23760
23781
|
{ type: "paragraph", text: "Pair this endpoint with **Create Validation Run** for the register-then-poll workflow, or with **List Validation Runs** to find specific runs by recency. Because the list endpoint returns only the newest 100 runs, deleting superseded runs here also keeps your full history reachable through the list." },
|
|
23761
23782
|
{ type: "paragraph", text: 'The run object doubles as an audit record: `created_at` and `completed_at` bound when the benchmark ran, `dataspace_run_id` ties the score to the exact Structuring Run that produced the output, and `golden_sample_id` ties it to the exact reference dataset. Store the run `id` alongside your own release or deployment records so a later accuracy question ("what did we measure before the schema change?") resolves to one GET instead of an archaeology session.' },
|
|
@@ -23784,8 +23805,13 @@ var sections38 = [
|
|
|
23784
23805
|
{ name: "status", type: "string", description: "Run status: pending, queued, processing, completed, or failed." },
|
|
23785
23806
|
{ name: "dataspace_run_id", type: "string | null", description: "UUID of the job run being validated." },
|
|
23786
23807
|
{ name: "golden_sample_id", type: "string | null", description: "UUID of the golden sample dataset." },
|
|
23787
|
-
{ name: "accuracy", type: "null", description: "
|
|
23788
|
-
{ name: "total_comparisons", type: "null", description: "
|
|
23808
|
+
{ name: "accuracy", type: "number | null", description: "Weighted accuracy across all fields and documents (0-1). Null until the run completes." },
|
|
23809
|
+
{ name: "total_comparisons", type: "integer | null", description: "Number of document-field pairs compared. Null until the run completes." },
|
|
23810
|
+
{ name: "matched_documents", type: "integer", description: "Documents paired between the job run and the golden sample." },
|
|
23811
|
+
{ name: "unmatched_golden", type: "integer", description: "Golden sample documents with no corresponding job-run document." },
|
|
23812
|
+
{ name: "unmatched_dataset", type: "integer", description: "Job-run documents with no corresponding golden sample document." },
|
|
23813
|
+
{ name: "field_accuracy", type: "object | null", description: "Per-field breakdown: total, exact, partial, mismatch, missing_actual, missing_expected, both_empty, accuracy." },
|
|
23814
|
+
{ name: "error_message", type: "string | null", description: "Why a failed run failed." },
|
|
23789
23815
|
{ name: "created_at", type: "string", description: "ISO 8601 creation timestamp." },
|
|
23790
23816
|
{ name: "completed_at", type: "string | null", description: "ISO 8601 completion timestamp." },
|
|
23791
23817
|
{ name: "links", type: "object", description: "Related resource URLs (self, results)." }
|
|
@@ -23800,8 +23826,13 @@ var sections38 = [
|
|
|
23800
23826
|
"status": "completed",
|
|
23801
23827
|
"dataspace_run_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
|
|
23802
23828
|
"golden_sample_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
23803
|
-
"accuracy":
|
|
23804
|
-
"total_comparisons":
|
|
23829
|
+
"accuracy": 0.9412,
|
|
23830
|
+
"total_comparisons": 68,
|
|
23831
|
+
"matched_documents": 17,
|
|
23832
|
+
"unmatched_golden": 0,
|
|
23833
|
+
"unmatched_dataset": 2,
|
|
23834
|
+
"field_accuracy": { "invoice_number": { "total": 17, "exact": 17, "partial": 0, "mismatch": 0, "missing_actual": 0, "missing_expected": 0, "both_empty": 0, "accuracy": 1 } },
|
|
23835
|
+
"error_message": null,
|
|
23805
23836
|
"created_at": "2024-09-14T10:32:00.000Z",
|
|
23806
23837
|
"completed_at": "2024-09-14T10:35:00.000Z",
|
|
23807
23838
|
"links": {
|
|
@@ -23835,8 +23866,8 @@ var sections38 = [
|
|
|
23835
23866
|
],
|
|
23836
23867
|
faq: [
|
|
23837
23868
|
{ question: "Does deleting a validation run delete the golden sample?", answer: "No. Deleting a run only removes the run record and its per-field results. The golden sample dataset and the job run remain intact. (The reverse is not true: deleting a golden sample cascades to its runs.)" },
|
|
23838
|
-
{ question: "How do I poll for run completion?", answer: "
|
|
23839
|
-
{ question: "How do I get the accuracy score for a completed run?", answer: "
|
|
23869
|
+
{ question: "How do I poll for run completion?", answer: "Runs created through the API return already completed or failed, so no polling is needed. For a run launched elsewhere, call GET /v1/validation/runs/{id} until status reaches completed or failed." },
|
|
23870
|
+
{ question: "How do I get the accuracy score for a completed run?", answer: "Read accuracy (0-1, weighted across all fields and documents) and field_accuracy on the run object. Fetch links.results when you need the per-field rows behind those numbers." },
|
|
23840
23871
|
{ question: "What does a failed status mean?", answer: "The engine hit an error while executing the comparison \u2014 for example the job run's output could not be loaded. The run keeps its failed status permanently; register a new run to retry rather than expecting the failed one to re-execute." }
|
|
23841
23872
|
],
|
|
23842
23873
|
mentions: ["validation run detail", "run status polling", "accuracy score", "per-field results", "DELETE validation run"]
|
|
@@ -30983,7 +31014,7 @@ var sections48 = [
|
|
|
30983
31014
|
{ type: "paragraph", text: "The typical workflow is: extract a set of representative documents, manually verify the correct value for each schema field, then POST one entry per document. When a benchmark runs, it compares the extracted value for each field against the matching key in `expected_data` and reports per-field accuracy. Fetch candidate document ids from [`GET /v1/documents`](list-documents) \u2014 `document_id` must be an existing document in your workspace, not an arbitrary identifier." },
|
|
30984
31015
|
{ type: "paragraph", text: "`expected_data` is deliberately free-form JSON: any shape is accepted at write time, so you can store nested structures or extra keys for your own bookkeeping. Only keys that match your schema's field names participate in benchmark comparison; everything else is carried along untouched. `notes` is a free-text field for reviewer context \u2014 ambiguities, edge cases, or why a particular value was chosen \u2014 and is returned verbatim on every read." },
|
|
30985
31016
|
{ type: "paragraph", text: "The entries list is returned in full, oldest-first, with no pagination parameters \u2014 datasets are expected to hold tens to low hundreds of entries, not millions. Reads are filtered by document visibility: entries whose documents are hidden from your API key's minting user by source IAM rules are omitted. Writes require the `write` scope; the dataset itself is always tenant-checked first, so a foreign `datasetId` returns `404` before any entry is touched." },
|
|
30986
|
-
{ type: "callout", variant: "
|
|
31017
|
+
{ type: "callout", variant: "info", text: '`document_id` must reference a document in your workspace that is visible to your API key\'s minting user. An unknown, foreign, or hidden id is rejected with `404 not_found` ("Document ... not found") before anything is written \u2014 resolve ids from `GET /v1/documents`.' },
|
|
30987
31018
|
{ type: "callout", variant: "info", text: "Each entry maps a `document_id` to an `expected_data` object containing the verified field values. Field keys in `expected_data` should match the field names used in your extraction schema for accurate benchmark comparisons." },
|
|
30988
31019
|
{
|
|
30989
31020
|
type: "endpoint",
|
|
@@ -31140,7 +31171,7 @@ var sections48 = [
|
|
|
31140
31171
|
{ type: "paragraph", text: "Use this endpoint to see all benchmark runs and their accuracy scores. A typical workflow is to list benchmarks after making schema or extraction changes, then compare the latest run against previous ones using `GET /v1/quality/benchmarks/compare` to measure improvement or detect regressions." },
|
|
31141
31172
|
{ type: "paragraph", text: "Each benchmark includes `status` (`queued`, `running`, or `complete` \u2014 note the terminal value is `complete`, not `completed`), `accuracy_overall` (0-1 score, null until the run finishes), `accuracy_by_field` (per-field breakdown), and `documents_processed`/`documents_total` for progress tracking. `accuracy_delta` and `compared_to_run_id` are populated only when a run was started with a comparison target in the platform; for ad-hoc deltas use the compare endpoint." },
|
|
31142
31173
|
{ type: "paragraph", text: "Run benchmarks regularly after extraction changes. Pair with `GET /v1/quality/benchmarks/:id/results` for per-document drill-down showing which fields matched and which diverged. Use the compare endpoint to track accuracy trends across multiple runs." },
|
|
31143
|
-
{ type: "callout", variant: "info", text: "Accuracy fields (`accuracy_overall`, `accuracy_by_field`) stay null while a run is `queued` or `running`. Poll `GET /v1/quality/benchmarks/:id` and read the scores once `status` reaches `complete`. Runs created through the API
|
|
31174
|
+
{ type: "callout", variant: "info", text: "Accuracy fields (`accuracy_overall`, `accuracy_by_field`) stay null while a run is `queued` or `running`. Poll `GET /v1/quality/benchmarks/:id` and read the scores once `status` reaches `complete`. Runs created through the API execute in the request and come back `complete`." },
|
|
31144
31175
|
{
|
|
31145
31176
|
type: "endpoint",
|
|
31146
31177
|
method: "GET",
|
|
@@ -31176,7 +31207,7 @@ var sections48 = [
|
|
|
31176
31207
|
{ name: "data[].name", type: "string", description: "Benchmark run name." },
|
|
31177
31208
|
{ name: "data[].dataset_id", type: "string", description: "Ground truth dataset ID used for this run." },
|
|
31178
31209
|
{ name: "data[].user_schema_id", type: "string | null", description: "User schema scoping this benchmark, if any." },
|
|
31179
|
-
{ name: "data[].status", type: "string", description: "Run status: queued
|
|
31210
|
+
{ name: "data[].status", type: "string", description: "Run status: queued, running, or complete. Runs created through the API return already complete." },
|
|
31180
31211
|
{ name: "data[].accuracy_overall", type: "number | null", description: "Overall accuracy score (0\u20131). Null while running." },
|
|
31181
31212
|
{ name: "data[].accuracy_by_field", type: "object | null", description: "Per-field accuracy scores. Null while running." },
|
|
31182
31213
|
{ name: "data[].documents_processed", type: "integer", description: "Number of documents evaluated so far." },
|
|
@@ -31246,8 +31277,8 @@ var sections48 = [
|
|
|
31246
31277
|
{ label: "List Benchmark Datasets", slug: "list-quality-datasets" }
|
|
31247
31278
|
],
|
|
31248
31279
|
faq: [
|
|
31249
|
-
{ question: "What benchmark statuses are possible?", answer: "
|
|
31250
|
-
{ question: "Why is accuracy_overall null?", answer: "Accuracy scores are only computed when the benchmark run finishes. While the status is queued or running, accuracy fields are null
|
|
31280
|
+
{ question: "What benchmark statuses are possible?", answer: "queued, running, and complete (note: complete, not completed). Runs created through the API execute in the request and are returned already complete. Match on the exact string when polling runs launched elsewhere." },
|
|
31281
|
+
{ question: "Why is accuracy_overall null?", answer: "Accuracy scores are only computed when the benchmark run finishes. While the status is queued or running, accuracy fields are null." },
|
|
31251
31282
|
{ question: "How do I track the progress of a running benchmark?", answer: "Poll GET /v1/quality/benchmarks/:id and compare documents_processed against documents_total. Once status reaches complete, duration_ms records the total evaluation time and the accuracy fields are populated." },
|
|
31252
31283
|
{ question: "How do I compare two benchmark runs?", answer: "Call `GET /v1/quality/benchmarks/compare?run_a=<id>&run_b=<id>`. The response returns both runs side by side plus an `accuracy_delta` (run_a minus run_b) so you can quantify improvement or regression between runs." }
|
|
31253
31284
|
],
|
|
@@ -31261,11 +31292,11 @@ var sections48 = [
|
|
|
31261
31292
|
description: "Start a benchmark run with POST /v1/quality/benchmarks to score extraction output against a ground truth dataset. Returns per-field and overall accuracy.",
|
|
31262
31293
|
content: [
|
|
31263
31294
|
{ type: "paragraph", text: "`POST /v1/quality/benchmarks` starts a **benchmark run** that evaluates your current extraction output against a ground truth dataset. The benchmark compares each document in the dataset entry-by-entry and field-by-field, producing an overall accuracy score and per-field breakdowns." },
|
|
31264
|
-
{ type: "paragraph", text: "The typical workflow is: create a benchmark after making extraction changes,
|
|
31265
|
-
{ type: "paragraph", text: "The response
|
|
31295
|
+
{ type: "paragraph", text: "The typical workflow is: create a benchmark after making extraction changes, read the scores off the response, then drill into per-document results. Run multiple benchmarks against the same dataset over time to track accuracy trends." },
|
|
31296
|
+
{ type: "paragraph", text: "The evaluation runs inside the request. The response is the finished benchmark: `status: complete`, `accuracy_overall` and `accuracy_by_field` populated, `documents_processed` equal to `documents_total` (the dataset's entry count), and `duration_ms` recording the evaluation time. A 50-entry dataset typically finishes in a few seconds." },
|
|
31266
31297
|
{ type: "paragraph", text: "A benchmark does not re-extract anything: at execution the engine takes each dataset entry, finds the **latest completed extraction result** for that document under the given `user_schema_id`, and compares the extracted values field-by-field against `expected_data`. Entries whose documents have no completed result for that schema simply cannot match \u2014 run your extraction (Spec pipeline or Structuring Run) over the benchmark documents before benchmarking, or accuracy will understate real quality." },
|
|
31267
31298
|
{ type: "paragraph", text: "Multiple benchmarks can run in parallel against different datasets. Use `GET /v1/quality/benchmarks/compare` after completion to compare two runs side by side. The `dataset_id` is fixed at creation \u2014 to benchmark against a different dataset, create a new run." },
|
|
31268
|
-
{ type: "callout", variant: "
|
|
31299
|
+
{ type: "callout", variant: "info", text: "This is the same engine the platform's Benchmarks surface runs, so API and dashboard scores agree. Because the evaluation happens in the request, a large dataset means a longer request; keep your HTTP client timeout generous for datasets in the hundreds of entries." },
|
|
31269
31300
|
{
|
|
31270
31301
|
type: "endpoint",
|
|
31271
31302
|
method: "POST",
|
|
@@ -31306,12 +31337,14 @@ var sections48 = [
|
|
|
31306
31337
|
{ name: "name", type: "string", description: "Benchmark run name." },
|
|
31307
31338
|
{ name: "dataset_id", type: "string", description: "Ground truth dataset ID." },
|
|
31308
31339
|
{ name: "user_schema_id", type: "string", description: "User schema whose fields are evaluated." },
|
|
31309
|
-
{ name: "status", type: "string", description: "
|
|
31310
|
-
{ name: "accuracy_overall", type: "
|
|
31311
|
-
{ name: "
|
|
31312
|
-
{ name: "
|
|
31340
|
+
{ name: "status", type: "string", description: "complete \u2014 the evaluation ran inside the request." },
|
|
31341
|
+
{ name: "accuracy_overall", type: "number", description: "Overall accuracy (0-1) across every expected field." },
|
|
31342
|
+
{ name: "accuracy_by_field", type: "object", description: "Per-field accuracy (0-1)." },
|
|
31343
|
+
{ name: "documents_processed", type: "integer", description: "Entries evaluated; equals documents_total on a complete run." },
|
|
31344
|
+
{ name: "documents_total", type: "integer", description: "Total entries in the dataset." },
|
|
31345
|
+
{ name: "duration_ms", type: "integer", description: "Evaluation wall-clock time." },
|
|
31313
31346
|
{ name: "created_at", type: "string", description: "ISO 8601 creation timestamp." },
|
|
31314
|
-
{ name: "completed_at", type: "
|
|
31347
|
+
{ name: "completed_at", type: "string", description: "ISO 8601 completion timestamp." },
|
|
31315
31348
|
{ name: "links.self", type: "string", description: "URL to this benchmark run." },
|
|
31316
31349
|
{ name: "links.results", type: "string", description: "URL to the per-document results." }
|
|
31317
31350
|
]
|
|
@@ -31324,12 +31357,12 @@ var sections48 = [
|
|
|
31324
31357
|
"name": "Benchmark 2024-09-25",
|
|
31325
31358
|
"dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
31326
31359
|
"user_schema_id": "5e6f7a8b-9c0d-1234-abcd-ef0123456789",
|
|
31327
|
-
"status": "
|
|
31328
|
-
"accuracy_overall":
|
|
31329
|
-
"accuracy_by_field":
|
|
31330
|
-
"documents_processed":
|
|
31360
|
+
"status": "complete",
|
|
31361
|
+
"accuracy_overall": 0.943,
|
|
31362
|
+
"accuracy_by_field": { "invoice_number": 1, "total_amount": 0.92, "vendor_name": 0.91 },
|
|
31363
|
+
"documents_processed": 50,
|
|
31331
31364
|
"documents_total": 50,
|
|
31332
|
-
"duration_ms":
|
|
31365
|
+
"duration_ms": 2380,
|
|
31333
31366
|
"accuracy_delta": null,
|
|
31334
31367
|
"compared_to_run_id": null,
|
|
31335
31368
|
"created_at": "2024-09-25T12:00:00.000Z",
|
|
@@ -31359,7 +31392,7 @@ var sections48 = [
|
|
|
31359
31392
|
],
|
|
31360
31393
|
faq: [
|
|
31361
31394
|
{ question: "Can I run multiple benchmarks simultaneously?", answer: "Yes. Benchmark runs are independent and can execute in parallel against different datasets or the same dataset." },
|
|
31362
|
-
{ question: "
|
|
31395
|
+
{ question: "Does the POST wait for the evaluation?", answer: "Yes. The evaluation runs inside the request and the response is the finished run with status complete and the accuracy fields populated. duration_ms records the exact evaluation time; a 50-entry dataset typically finishes in a few seconds." },
|
|
31363
31396
|
{ question: "Does a benchmark re-extract my documents?", answer: "No. It compares expected_data against the latest completed extraction result each document already has under the benchmark's user_schema_id. Make sure the documents have been processed with that schema before benchmarking." },
|
|
31364
31397
|
{ question: "Is user_schema_id required when creating a benchmark?", answer: "Yes. Both dataset_id and user_schema_id are required UUIDs. The schema defines which fields the benchmark evaluates, so extracted values and ground truth entries are compared on the same field set." }
|
|
31365
31398
|
],
|
|
@@ -38140,6 +38173,9 @@ var sections65 = [
|
|
|
38140
38173
|
{ name: "data[].version_number", type: "integer", description: "Version number (monotonically increasing)." },
|
|
38141
38174
|
{ name: "data[].status", type: "string", description: "Version status (e.g. draft, active)." },
|
|
38142
38175
|
{ name: "data[].compiled_rules", type: "object | null", description: "Compiled execution plan for this version, when compiled." },
|
|
38176
|
+
{ name: "data[].compile_status", type: "string | null", description: "Latest compile outcome for the version, or null if never compiled." },
|
|
38177
|
+
{ name: "data[].compiled_at", type: "string | null", description: "ISO 8601 timestamp of the last successful compile." },
|
|
38178
|
+
{ name: "data[].dirty", type: "boolean", description: "True when the version has been edited since it was last compiled." },
|
|
38143
38179
|
{ name: "data[].created_at", type: "string", description: "ISO 8601 timestamp when this version was created." },
|
|
38144
38180
|
{ name: "links.self", type: "string", description: "URL to this version list." },
|
|
38145
38181
|
{ name: "links.policy", type: "string", description: "URL to the parent policy." }
|
|
@@ -38162,6 +38198,9 @@ var sections65 = [
|
|
|
38162
38198
|
"version_number": 3,
|
|
38163
38199
|
"status": "active",
|
|
38164
38200
|
"compiled_rules": { "steps": 8 },
|
|
38201
|
+
"compile_status": "ok",
|
|
38202
|
+
"compiled_at": "2024-10-15T11:31:00.000Z",
|
|
38203
|
+
"dirty": false,
|
|
38165
38204
|
"created_at": "2024-10-15T11:30:00.000Z"
|
|
38166
38205
|
},
|
|
38167
38206
|
{
|
|
@@ -38169,6 +38208,9 @@ var sections65 = [
|
|
|
38169
38208
|
"version_number": 2,
|
|
38170
38209
|
"status": "draft",
|
|
38171
38210
|
"compiled_rules": null,
|
|
38211
|
+
"compile_status": null,
|
|
38212
|
+
"compiled_at": null,
|
|
38213
|
+
"dirty": true,
|
|
38172
38214
|
"created_at": "2024-10-10T14:00:00.000Z"
|
|
38173
38215
|
}
|
|
38174
38216
|
],
|
|
@@ -38219,7 +38261,7 @@ var sections65 = [
|
|
|
38219
38261
|
type: "endpoint",
|
|
38220
38262
|
method: "GET",
|
|
38221
38263
|
path: "/v1/data-policies/{id}/fields",
|
|
38222
|
-
summary: "List declared output fields for a data policy.",
|
|
38264
|
+
summary: "List declared output fields for a data policy (its current version).",
|
|
38223
38265
|
description: "Requires read scope.",
|
|
38224
38266
|
blocks: [
|
|
38225
38267
|
{
|
|
@@ -38238,10 +38280,14 @@ var sections65 = [
|
|
|
38238
38280
|
params: [
|
|
38239
38281
|
{ name: "data", type: "array", description: "Array of field definition objects." },
|
|
38240
38282
|
{ name: "data[].id", type: "string", description: "Field row UUID." },
|
|
38283
|
+
{ name: "data[].version_id", type: "string", description: "The policy version these fields belong to (the current version, or the newest one when none is current)." },
|
|
38241
38284
|
{ name: "data[].field_key", type: "string", description: "Output field key name." },
|
|
38285
|
+
{ name: "data[].display_name", type: "string | null", description: "Human-readable label." },
|
|
38242
38286
|
{ name: "data[].field_type", type: "string", description: "Declared value type (e.g. string, number, date)." },
|
|
38243
|
-
{ name: "data[].
|
|
38244
|
-
{ name: "data[].
|
|
38287
|
+
{ name: "data[].position", type: "integer", description: "Display order within the policy." },
|
|
38288
|
+
{ name: "data[].include", type: "boolean", description: "Whether the field is emitted in the policy output." },
|
|
38289
|
+
{ name: "data[].source", type: "string | null", description: "schema_field when the field mirrors a Spec field, null for a policy-only field." },
|
|
38290
|
+
{ name: "data[].source_schema_field_id", type: "string | null", description: "The mirrored Spec field UUID, when source is schema_field." },
|
|
38245
38291
|
{ name: "links.self", type: "string", description: "URL to this field list." },
|
|
38246
38292
|
{ name: "links.policy", type: "string", description: "URL to the parent policy." }
|
|
38247
38293
|
]
|
|
@@ -38260,22 +38306,31 @@ var sections65 = [
|
|
|
38260
38306
|
"data": [
|
|
38261
38307
|
{
|
|
38262
38308
|
"id": "f1a2b3c4-0001",
|
|
38309
|
+
"version_id": "v3a2b3c4-0003",
|
|
38263
38310
|
"field_key": "country_code",
|
|
38311
|
+
"display_name": "Country code",
|
|
38264
38312
|
"field_type": "string",
|
|
38265
|
-
"
|
|
38266
|
-
"
|
|
38313
|
+
"position": 0,
|
|
38314
|
+
"include": true,
|
|
38315
|
+
"source": "schema_field",
|
|
38316
|
+
"source_schema_field_id": "sf1a2b3c4-0001"
|
|
38267
38317
|
},
|
|
38268
38318
|
{
|
|
38269
38319
|
"id": "f1a2b3c4-0002",
|
|
38320
|
+
"version_id": "v3a2b3c4-0003",
|
|
38270
38321
|
"field_key": "currency",
|
|
38322
|
+
"display_name": null,
|
|
38271
38323
|
"field_type": "string",
|
|
38272
|
-
"
|
|
38273
|
-
"
|
|
38324
|
+
"position": 1,
|
|
38325
|
+
"include": true,
|
|
38326
|
+
"source": null,
|
|
38327
|
+
"source_schema_field_id": null
|
|
38274
38328
|
}
|
|
38275
38329
|
],
|
|
38276
38330
|
"links": {
|
|
38277
38331
|
"self": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/fields",
|
|
38278
|
-
"policy": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890"
|
|
38332
|
+
"policy": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890",
|
|
38333
|
+
"version": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/versions"
|
|
38279
38334
|
}
|
|
38280
38335
|
}`
|
|
38281
38336
|
},
|
|
@@ -38319,7 +38374,7 @@ var sections65 = [
|
|
|
38319
38374
|
type: "endpoint",
|
|
38320
38375
|
method: "GET",
|
|
38321
38376
|
path: "/v1/data-policies/{id}/rules",
|
|
38322
|
-
summary: "List transformation rules for a data policy.",
|
|
38377
|
+
summary: "List transformation rules for a data policy (its current version).",
|
|
38323
38378
|
description: "Requires read scope.",
|
|
38324
38379
|
blocks: [
|
|
38325
38380
|
{
|
|
@@ -38338,11 +38393,14 @@ var sections65 = [
|
|
|
38338
38393
|
params: [
|
|
38339
38394
|
{ name: "data", type: "array", description: "Array of rule objects, ordered by ordinal." },
|
|
38340
38395
|
{ name: "data[].id", type: "string", description: "Rule UUID." },
|
|
38341
|
-
{ name: "data[].
|
|
38396
|
+
{ name: "data[].version_id", type: "string", description: "The policy version these rules belong to (the current version, or the newest one when none is current)." },
|
|
38397
|
+
{ name: "data[].field_key", type: "string | null", description: "Target output field key." },
|
|
38398
|
+
{ name: "data[].input_field_keys", type: "string[]", description: "Field keys the rule reads." },
|
|
38342
38399
|
{ name: "data[].rule_type", type: "string", description: "Rule type (e.g. select_field, transform, lookup_exact, script)." },
|
|
38343
38400
|
{ name: "data[].config", type: "object", description: "Rule-type-specific configuration." },
|
|
38344
|
-
{ name: "data[].ordinal", type: "integer", description: "
|
|
38345
|
-
{ name: "data[].
|
|
38401
|
+
{ name: "data[].ordinal", type: "integer", description: "Execution order within the version." },
|
|
38402
|
+
{ name: "data[].error_behavior", type: "string", description: "What a rule failure does to the row: flag, skip, or fail." },
|
|
38403
|
+
{ name: "data[].provenance_label", type: "string | null", description: "Label stamped on values this rule produces." },
|
|
38346
38404
|
{ name: "links.self", type: "string", description: "URL to this rule list." },
|
|
38347
38405
|
{ name: "links.policy", type: "string", description: "URL to the parent policy." }
|
|
38348
38406
|
]
|
|
@@ -38361,7 +38419,9 @@ var sections65 = [
|
|
|
38361
38419
|
"data": [
|
|
38362
38420
|
{
|
|
38363
38421
|
"id": "r1a2b3c4-0001",
|
|
38422
|
+
"version_id": "v3a2b3c4-0003",
|
|
38364
38423
|
"field_key": "country_code",
|
|
38424
|
+
"input_field_keys": ["country"],
|
|
38365
38425
|
"rule_type": "lookup_exact",
|
|
38366
38426
|
"config": {
|
|
38367
38427
|
"reference_table_id": "country_codes",
|
|
@@ -38369,22 +38429,27 @@ var sections65 = [
|
|
|
38369
38429
|
"output_column": "iso2"
|
|
38370
38430
|
},
|
|
38371
38431
|
"ordinal": 1,
|
|
38372
|
-
"
|
|
38432
|
+
"error_behavior": "flag",
|
|
38433
|
+
"provenance_label": null
|
|
38373
38434
|
},
|
|
38374
38435
|
{
|
|
38375
38436
|
"id": "r1a2b3c4-0002",
|
|
38437
|
+
"version_id": "v3a2b3c4-0003",
|
|
38376
38438
|
"field_key": "currency",
|
|
38439
|
+
"input_field_keys": ["country_code"],
|
|
38377
38440
|
"rule_type": "script",
|
|
38378
38441
|
"config": {
|
|
38379
38442
|
"script": "if record:get('country_code') == 'US' then return 'USD' end"
|
|
38380
38443
|
},
|
|
38381
38444
|
"ordinal": 2,
|
|
38382
|
-
"
|
|
38445
|
+
"error_behavior": "flag",
|
|
38446
|
+
"provenance_label": "Derived currency"
|
|
38383
38447
|
}
|
|
38384
38448
|
],
|
|
38385
38449
|
"links": {
|
|
38386
38450
|
"self": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/rules",
|
|
38387
|
-
"policy": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890"
|
|
38451
|
+
"policy": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890",
|
|
38452
|
+
"version": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/versions"
|
|
38388
38453
|
}
|
|
38389
38454
|
}`
|
|
38390
38455
|
},
|
|
@@ -45331,7 +45396,7 @@ curl -s -X POST https://api.talonic.com/v1/review-teams/$TEAM_ID/members \\
|
|
|
45331
45396
|
-d '{ "team_id": "3f2b9c44-1e0a-4b7c-9d21-5a8f0e6c3b12" }'`
|
|
45332
45397
|
},
|
|
45333
45398
|
{ type: "callout", variant: "info", text: "Team writes require a human workspace owner because teams are authority routing: whoever controls team membership controls who resolves approvals. Assigning an individual review, by contrast, is an operate-tier action any operator or granted agent can perform." },
|
|
45334
|
-
{ type: "paragraph", text: "
|
|
45399
|
+
{ type: "paragraph", text: "A team's `webhook_url` is a notification hook: whenever a review is raised with that team as assignee (`team_id` on `POST /v1/apps/:id/reviews`), Talonic POSTs the same JSON envelope the workspace-level `app.review.raised` webhook carries (`review_id`, `app_id`, `run_id`, `kind`, `question`, `team`) to that URL, unsigned and with the standard retry ladder. Platform-raised reviews (threshold holds, decision-agent failures, SLA fallbacks) arrive as `app.exception.raised` instead. Use the team hook for the team's own channel and the workspace webhook for your integration. Resolution flows back through the normal [resolve endpoint](app-reviews), so a team bot can read the inbox filtered to its assignments and resolve `data_request` reviews autonomously while leaving `approval` kinds to humans." }
|
|
45335
45400
|
],
|
|
45336
45401
|
related: [
|
|
45337
45402
|
{ label: "Human Reviews", slug: "app-reviews" },
|
|
@@ -45363,7 +45428,7 @@ var sections75 = [
|
|
|
45363
45428
|
{ type: "paragraph", text: "`GET /v1/agent-tasks` lists your workspace's document-scoped tasks, newest first, with `read` scope. Filter with `?status` (one of `available`, `claimed`, `submitted`, `timed_out`, `cancelled` \u2014 anything else is a 400), page with `?limit` (1\u2013100, default 50) and the opaque `?cursor` returned as `pagination.next_cursor`. The listing is keyset-paginated on `(created_at, id)`, so pages stay stable while new tasks are created ahead of your cursor." },
|
|
45364
45429
|
{ type: "paragraph", text: "Every route on this surface requires the credential to resolve to exactly **one tenant**. A key operating in the cross-tenant master view gets `400` with the message `Select one tenant for Agent task access` \u2014 task snapshots contain document values, and cross-tenant reads of that payload are never allowed. Additionally, Sources-IAM is evaluated as the **user who created the API key**: a task whose document sits behind a source restriction that principal is not admitted to is simply invisible (404 on fetch, absent from the list), never a 403." },
|
|
45365
45430
|
{ type: "paragraph", text: "`GET /v1/agent-tasks/:id` returns the full payload: the listing's metadata plus `input_snapshot` (the parked record's cells \u2014 and for product-grain tasks the `candidates` distributions, the frozen `autonomy` contract, the `anchor` document, and the `triggers` that parked it), `output_contract` (the declared output fields with `key`, `dataType`, `required`), free-text `instructions`, and `timeout_fallthrough` (what happens if no agent answers in time: `hold`, `skip`, or `route_to_review`)." },
|
|
45366
|
-
{ type: "callout", variant: "info", text: "The list endpoint returns
|
|
45431
|
+
{ type: "callout", variant: "info", text: "The list endpoint returns both grains. Every row carries grain (document or product); document-grain rows carry document_id and pipeline_document_id, product-grain rows carry record_id instead. Filter with ?grain=product to see only Agentic Review tasks." },
|
|
45367
45432
|
{
|
|
45368
45433
|
type: "endpoint",
|
|
45369
45434
|
method: "GET",
|
|
@@ -45376,6 +45441,7 @@ var sections75 = [
|
|
|
45376
45441
|
title: "Query parameters",
|
|
45377
45442
|
params: [
|
|
45378
45443
|
{ name: "status", type: "string", description: 'Filter to one status: available, claimed, submitted, timed_out, or cancelled. Any other value is rejected 400 ("Invalid agent task status").' },
|
|
45444
|
+
{ name: "grain", type: "string", description: 'Filter to one grain: document (Agent via MCP rail stage) or product (post-assembly Agentic Review). Any other value is rejected 400 ("Invalid agent task grain"). Both grains are listed when omitted.' },
|
|
45379
45445
|
{ name: "limit", type: "integer", default: "50", description: 'Page size, 1\u2013100. Out-of-range or non-integer values are rejected 400 ("limit must be 1..100").' },
|
|
45380
45446
|
{ name: "cursor", type: "string", description: `Opaque pagination cursor from a previous response's pagination.next_cursor. A malformed cursor is rejected 400 ("Invalid cursor").` }
|
|
45381
45447
|
]
|
package/dist/seo.js
CHANGED
|
@@ -15789,7 +15789,7 @@ var openapi_default = {
|
|
|
15789
15789
|
],
|
|
15790
15790
|
responses: {
|
|
15791
15791
|
"200": {
|
|
15792
|
-
description: "List of versions",
|
|
15792
|
+
description: "List of versions, newest first",
|
|
15793
15793
|
content: {
|
|
15794
15794
|
"application/json": {
|
|
15795
15795
|
schema: {
|
|
@@ -15810,6 +15810,30 @@ var openapi_default = {
|
|
|
15810
15810
|
status: {
|
|
15811
15811
|
type: "string"
|
|
15812
15812
|
},
|
|
15813
|
+
compiled_rules: {
|
|
15814
|
+
type: [
|
|
15815
|
+
"object",
|
|
15816
|
+
"null"
|
|
15817
|
+
],
|
|
15818
|
+
description: "Compiled execution plan, when the version has been compiled."
|
|
15819
|
+
},
|
|
15820
|
+
compile_status: {
|
|
15821
|
+
type: [
|
|
15822
|
+
"string",
|
|
15823
|
+
"null"
|
|
15824
|
+
]
|
|
15825
|
+
},
|
|
15826
|
+
compiled_at: {
|
|
15827
|
+
type: [
|
|
15828
|
+
"string",
|
|
15829
|
+
"null"
|
|
15830
|
+
],
|
|
15831
|
+
format: "date-time"
|
|
15832
|
+
},
|
|
15833
|
+
dirty: {
|
|
15834
|
+
type: "boolean",
|
|
15835
|
+
description: "Edited since the last compile."
|
|
15836
|
+
},
|
|
15813
15837
|
created_at: {
|
|
15814
15838
|
type: "string",
|
|
15815
15839
|
format: "date-time"
|
|
@@ -23730,6 +23754,18 @@ var openapi_default = {
|
|
|
23730
23754
|
]
|
|
23731
23755
|
}
|
|
23732
23756
|
},
|
|
23757
|
+
{
|
|
23758
|
+
name: "grain",
|
|
23759
|
+
in: "query",
|
|
23760
|
+
description: "Restrict to document-grain (Agent via MCP) or product-grain (Agentic Review) tasks; both when omitted.",
|
|
23761
|
+
schema: {
|
|
23762
|
+
type: "string",
|
|
23763
|
+
enum: [
|
|
23764
|
+
"document",
|
|
23765
|
+
"product"
|
|
23766
|
+
]
|
|
23767
|
+
}
|
|
23768
|
+
},
|
|
23733
23769
|
{
|
|
23734
23770
|
name: "limit",
|
|
23735
23771
|
in: "query",
|
|
@@ -23750,7 +23786,7 @@ var openapi_default = {
|
|
|
23750
23786
|
],
|
|
23751
23787
|
responses: {
|
|
23752
23788
|
"200": {
|
|
23753
|
-
description: "Cursor-paginated task metadata. Payloads are fetched individually and audited.",
|
|
23789
|
+
description: "Cursor-paginated task metadata across both grains. Payloads are fetched individually and audited.",
|
|
23754
23790
|
content: {
|
|
23755
23791
|
"application/json": {
|
|
23756
23792
|
schema: {
|
|
@@ -27765,8 +27801,10 @@ var openapi_default = {
|
|
|
27765
27801
|
"id",
|
|
27766
27802
|
"customer_id",
|
|
27767
27803
|
"pipeline_id",
|
|
27804
|
+
"grain",
|
|
27768
27805
|
"pipeline_document_id",
|
|
27769
27806
|
"document_id",
|
|
27807
|
+
"record_id",
|
|
27770
27808
|
"stage_id",
|
|
27771
27809
|
"phase_index",
|
|
27772
27810
|
"status",
|
|
@@ -27788,13 +27826,37 @@ var openapi_default = {
|
|
|
27788
27826
|
type: "string",
|
|
27789
27827
|
format: "uuid"
|
|
27790
27828
|
},
|
|
27791
|
-
|
|
27829
|
+
grain: {
|
|
27792
27830
|
type: "string",
|
|
27793
|
-
|
|
27831
|
+
enum: [
|
|
27832
|
+
"document",
|
|
27833
|
+
"product"
|
|
27834
|
+
],
|
|
27835
|
+
description: "document = one parked document at an Agent (via MCP) rail stage; product = one composed record at the post-assembly Agentic Review stage."
|
|
27836
|
+
},
|
|
27837
|
+
pipeline_document_id: {
|
|
27838
|
+
type: [
|
|
27839
|
+
"string",
|
|
27840
|
+
"null"
|
|
27841
|
+
],
|
|
27842
|
+
format: "uuid",
|
|
27843
|
+
description: "Set on document-grain tasks only."
|
|
27794
27844
|
},
|
|
27795
27845
|
document_id: {
|
|
27796
|
-
type:
|
|
27797
|
-
|
|
27846
|
+
type: [
|
|
27847
|
+
"string",
|
|
27848
|
+
"null"
|
|
27849
|
+
],
|
|
27850
|
+
format: "uuid",
|
|
27851
|
+
description: "Set on document-grain tasks only."
|
|
27852
|
+
},
|
|
27853
|
+
record_id: {
|
|
27854
|
+
type: [
|
|
27855
|
+
"string",
|
|
27856
|
+
"null"
|
|
27857
|
+
],
|
|
27858
|
+
format: "uuid",
|
|
27859
|
+
description: "The composed record under review; set on product-grain tasks only."
|
|
27798
27860
|
},
|
|
27799
27861
|
stage_id: {
|
|
27800
27862
|
type: "string"
|
|
@@ -37018,35 +37080,76 @@ var openapi_default = {
|
|
|
37018
37080
|
},
|
|
37019
37081
|
DataPolicyField: {
|
|
37020
37082
|
type: "object",
|
|
37083
|
+
description: "A declared output field of the policy's current version (fields hang off a version, not the policy).",
|
|
37021
37084
|
properties: {
|
|
37022
37085
|
id: {
|
|
37023
37086
|
type: "string",
|
|
37024
37087
|
format: "uuid"
|
|
37025
37088
|
},
|
|
37089
|
+
version_id: {
|
|
37090
|
+
type: "string",
|
|
37091
|
+
format: "uuid"
|
|
37092
|
+
},
|
|
37026
37093
|
field_key: {
|
|
37027
37094
|
type: "string"
|
|
37028
37095
|
},
|
|
37096
|
+
display_name: {
|
|
37097
|
+
type: [
|
|
37098
|
+
"string",
|
|
37099
|
+
"null"
|
|
37100
|
+
]
|
|
37101
|
+
},
|
|
37029
37102
|
field_type: {
|
|
37030
37103
|
type: "string"
|
|
37031
37104
|
},
|
|
37105
|
+
position: {
|
|
37106
|
+
type: "integer"
|
|
37107
|
+
},
|
|
37108
|
+
include: {
|
|
37109
|
+
type: "boolean"
|
|
37110
|
+
},
|
|
37032
37111
|
source: {
|
|
37033
|
-
type:
|
|
37112
|
+
type: [
|
|
37113
|
+
"string",
|
|
37114
|
+
"null"
|
|
37115
|
+
],
|
|
37116
|
+
enum: [
|
|
37117
|
+
"schema_field",
|
|
37118
|
+
null
|
|
37119
|
+
]
|
|
37034
37120
|
},
|
|
37035
|
-
|
|
37036
|
-
type:
|
|
37037
|
-
|
|
37121
|
+
source_schema_field_id: {
|
|
37122
|
+
type: [
|
|
37123
|
+
"string",
|
|
37124
|
+
"null"
|
|
37125
|
+
],
|
|
37126
|
+
format: "uuid"
|
|
37038
37127
|
}
|
|
37039
37128
|
}
|
|
37040
37129
|
},
|
|
37041
37130
|
DataPolicyRule: {
|
|
37042
37131
|
type: "object",
|
|
37132
|
+
description: "A transformation rule of the policy's current version, in execution order.",
|
|
37043
37133
|
properties: {
|
|
37044
37134
|
id: {
|
|
37045
37135
|
type: "string",
|
|
37046
37136
|
format: "uuid"
|
|
37047
37137
|
},
|
|
37138
|
+
version_id: {
|
|
37139
|
+
type: "string",
|
|
37140
|
+
format: "uuid"
|
|
37141
|
+
},
|
|
37048
37142
|
field_key: {
|
|
37049
|
-
type:
|
|
37143
|
+
type: [
|
|
37144
|
+
"string",
|
|
37145
|
+
"null"
|
|
37146
|
+
]
|
|
37147
|
+
},
|
|
37148
|
+
input_field_keys: {
|
|
37149
|
+
type: "array",
|
|
37150
|
+
items: {
|
|
37151
|
+
type: "string"
|
|
37152
|
+
}
|
|
37050
37153
|
},
|
|
37051
37154
|
rule_type: {
|
|
37052
37155
|
type: "string"
|
|
@@ -37057,9 +37160,14 @@ var openapi_default = {
|
|
|
37057
37160
|
ordinal: {
|
|
37058
37161
|
type: "integer"
|
|
37059
37162
|
},
|
|
37060
|
-
|
|
37061
|
-
type: "string"
|
|
37062
|
-
|
|
37163
|
+
error_behavior: {
|
|
37164
|
+
type: "string"
|
|
37165
|
+
},
|
|
37166
|
+
provenance_label: {
|
|
37167
|
+
type: [
|
|
37168
|
+
"string",
|
|
37169
|
+
"null"
|
|
37170
|
+
]
|
|
37063
37171
|
}
|
|
37064
37172
|
}
|
|
37065
37173
|
},
|
package/openapi.json
CHANGED
|
@@ -15769,7 +15769,7 @@
|
|
|
15769
15769
|
],
|
|
15770
15770
|
"responses": {
|
|
15771
15771
|
"200": {
|
|
15772
|
-
"description": "List of versions",
|
|
15772
|
+
"description": "List of versions, newest first",
|
|
15773
15773
|
"content": {
|
|
15774
15774
|
"application/json": {
|
|
15775
15775
|
"schema": {
|
|
@@ -15790,6 +15790,30 @@
|
|
|
15790
15790
|
"status": {
|
|
15791
15791
|
"type": "string"
|
|
15792
15792
|
},
|
|
15793
|
+
"compiled_rules": {
|
|
15794
|
+
"type": [
|
|
15795
|
+
"object",
|
|
15796
|
+
"null"
|
|
15797
|
+
],
|
|
15798
|
+
"description": "Compiled execution plan, when the version has been compiled."
|
|
15799
|
+
},
|
|
15800
|
+
"compile_status": {
|
|
15801
|
+
"type": [
|
|
15802
|
+
"string",
|
|
15803
|
+
"null"
|
|
15804
|
+
]
|
|
15805
|
+
},
|
|
15806
|
+
"compiled_at": {
|
|
15807
|
+
"type": [
|
|
15808
|
+
"string",
|
|
15809
|
+
"null"
|
|
15810
|
+
],
|
|
15811
|
+
"format": "date-time"
|
|
15812
|
+
},
|
|
15813
|
+
"dirty": {
|
|
15814
|
+
"type": "boolean",
|
|
15815
|
+
"description": "Edited since the last compile."
|
|
15816
|
+
},
|
|
15793
15817
|
"created_at": {
|
|
15794
15818
|
"type": "string",
|
|
15795
15819
|
"format": "date-time"
|
|
@@ -23710,6 +23734,18 @@
|
|
|
23710
23734
|
]
|
|
23711
23735
|
}
|
|
23712
23736
|
},
|
|
23737
|
+
{
|
|
23738
|
+
"name": "grain",
|
|
23739
|
+
"in": "query",
|
|
23740
|
+
"description": "Restrict to document-grain (Agent via MCP) or product-grain (Agentic Review) tasks; both when omitted.",
|
|
23741
|
+
"schema": {
|
|
23742
|
+
"type": "string",
|
|
23743
|
+
"enum": [
|
|
23744
|
+
"document",
|
|
23745
|
+
"product"
|
|
23746
|
+
]
|
|
23747
|
+
}
|
|
23748
|
+
},
|
|
23713
23749
|
{
|
|
23714
23750
|
"name": "limit",
|
|
23715
23751
|
"in": "query",
|
|
@@ -23730,7 +23766,7 @@
|
|
|
23730
23766
|
],
|
|
23731
23767
|
"responses": {
|
|
23732
23768
|
"200": {
|
|
23733
|
-
"description": "Cursor-paginated task metadata. Payloads are fetched individually and audited.",
|
|
23769
|
+
"description": "Cursor-paginated task metadata across both grains. Payloads are fetched individually and audited.",
|
|
23734
23770
|
"content": {
|
|
23735
23771
|
"application/json": {
|
|
23736
23772
|
"schema": {
|
|
@@ -27745,8 +27781,10 @@
|
|
|
27745
27781
|
"id",
|
|
27746
27782
|
"customer_id",
|
|
27747
27783
|
"pipeline_id",
|
|
27784
|
+
"grain",
|
|
27748
27785
|
"pipeline_document_id",
|
|
27749
27786
|
"document_id",
|
|
27787
|
+
"record_id",
|
|
27750
27788
|
"stage_id",
|
|
27751
27789
|
"phase_index",
|
|
27752
27790
|
"status",
|
|
@@ -27768,13 +27806,37 @@
|
|
|
27768
27806
|
"type": "string",
|
|
27769
27807
|
"format": "uuid"
|
|
27770
27808
|
},
|
|
27771
|
-
"
|
|
27809
|
+
"grain": {
|
|
27772
27810
|
"type": "string",
|
|
27773
|
-
"
|
|
27811
|
+
"enum": [
|
|
27812
|
+
"document",
|
|
27813
|
+
"product"
|
|
27814
|
+
],
|
|
27815
|
+
"description": "document = one parked document at an Agent (via MCP) rail stage; product = one composed record at the post-assembly Agentic Review stage."
|
|
27816
|
+
},
|
|
27817
|
+
"pipeline_document_id": {
|
|
27818
|
+
"type": [
|
|
27819
|
+
"string",
|
|
27820
|
+
"null"
|
|
27821
|
+
],
|
|
27822
|
+
"format": "uuid",
|
|
27823
|
+
"description": "Set on document-grain tasks only."
|
|
27774
27824
|
},
|
|
27775
27825
|
"document_id": {
|
|
27776
|
-
"type":
|
|
27777
|
-
|
|
27826
|
+
"type": [
|
|
27827
|
+
"string",
|
|
27828
|
+
"null"
|
|
27829
|
+
],
|
|
27830
|
+
"format": "uuid",
|
|
27831
|
+
"description": "Set on document-grain tasks only."
|
|
27832
|
+
},
|
|
27833
|
+
"record_id": {
|
|
27834
|
+
"type": [
|
|
27835
|
+
"string",
|
|
27836
|
+
"null"
|
|
27837
|
+
],
|
|
27838
|
+
"format": "uuid",
|
|
27839
|
+
"description": "The composed record under review; set on product-grain tasks only."
|
|
27778
27840
|
},
|
|
27779
27841
|
"stage_id": {
|
|
27780
27842
|
"type": "string"
|
|
@@ -36998,35 +37060,76 @@
|
|
|
36998
37060
|
},
|
|
36999
37061
|
"DataPolicyField": {
|
|
37000
37062
|
"type": "object",
|
|
37063
|
+
"description": "A declared output field of the policy's current version (fields hang off a version, not the policy).",
|
|
37001
37064
|
"properties": {
|
|
37002
37065
|
"id": {
|
|
37003
37066
|
"type": "string",
|
|
37004
37067
|
"format": "uuid"
|
|
37005
37068
|
},
|
|
37069
|
+
"version_id": {
|
|
37070
|
+
"type": "string",
|
|
37071
|
+
"format": "uuid"
|
|
37072
|
+
},
|
|
37006
37073
|
"field_key": {
|
|
37007
37074
|
"type": "string"
|
|
37008
37075
|
},
|
|
37076
|
+
"display_name": {
|
|
37077
|
+
"type": [
|
|
37078
|
+
"string",
|
|
37079
|
+
"null"
|
|
37080
|
+
]
|
|
37081
|
+
},
|
|
37009
37082
|
"field_type": {
|
|
37010
37083
|
"type": "string"
|
|
37011
37084
|
},
|
|
37085
|
+
"position": {
|
|
37086
|
+
"type": "integer"
|
|
37087
|
+
},
|
|
37088
|
+
"include": {
|
|
37089
|
+
"type": "boolean"
|
|
37090
|
+
},
|
|
37012
37091
|
"source": {
|
|
37013
|
-
"type":
|
|
37092
|
+
"type": [
|
|
37093
|
+
"string",
|
|
37094
|
+
"null"
|
|
37095
|
+
],
|
|
37096
|
+
"enum": [
|
|
37097
|
+
"schema_field",
|
|
37098
|
+
null
|
|
37099
|
+
]
|
|
37014
37100
|
},
|
|
37015
|
-
"
|
|
37016
|
-
"type":
|
|
37017
|
-
|
|
37101
|
+
"source_schema_field_id": {
|
|
37102
|
+
"type": [
|
|
37103
|
+
"string",
|
|
37104
|
+
"null"
|
|
37105
|
+
],
|
|
37106
|
+
"format": "uuid"
|
|
37018
37107
|
}
|
|
37019
37108
|
}
|
|
37020
37109
|
},
|
|
37021
37110
|
"DataPolicyRule": {
|
|
37022
37111
|
"type": "object",
|
|
37112
|
+
"description": "A transformation rule of the policy's current version, in execution order.",
|
|
37023
37113
|
"properties": {
|
|
37024
37114
|
"id": {
|
|
37025
37115
|
"type": "string",
|
|
37026
37116
|
"format": "uuid"
|
|
37027
37117
|
},
|
|
37118
|
+
"version_id": {
|
|
37119
|
+
"type": "string",
|
|
37120
|
+
"format": "uuid"
|
|
37121
|
+
},
|
|
37028
37122
|
"field_key": {
|
|
37029
|
-
"type":
|
|
37123
|
+
"type": [
|
|
37124
|
+
"string",
|
|
37125
|
+
"null"
|
|
37126
|
+
]
|
|
37127
|
+
},
|
|
37128
|
+
"input_field_keys": {
|
|
37129
|
+
"type": "array",
|
|
37130
|
+
"items": {
|
|
37131
|
+
"type": "string"
|
|
37132
|
+
}
|
|
37030
37133
|
},
|
|
37031
37134
|
"rule_type": {
|
|
37032
37135
|
"type": "string"
|
|
@@ -37037,9 +37140,14 @@
|
|
|
37037
37140
|
"ordinal": {
|
|
37038
37141
|
"type": "integer"
|
|
37039
37142
|
},
|
|
37040
|
-
"
|
|
37041
|
-
"type": "string"
|
|
37042
|
-
|
|
37143
|
+
"error_behavior": {
|
|
37144
|
+
"type": "string"
|
|
37145
|
+
},
|
|
37146
|
+
"provenance_label": {
|
|
37147
|
+
"type": [
|
|
37148
|
+
"string",
|
|
37149
|
+
"null"
|
|
37150
|
+
]
|
|
37043
37151
|
}
|
|
37044
37152
|
}
|
|
37045
37153
|
},
|