@talonic/docs 0.21.34 → 0.21.36

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 (2) hide show
  1. package/dist/content.js +25 -10
  2. package/package.json +1 -1
package/dist/content.js CHANGED
@@ -40332,13 +40332,18 @@ var sections68 = [
40332
40332
  { name: "verdicts[].reasoning", type: "string | null", description: "Why the validator returned this verdict." },
40333
40333
  { name: "verdicts[].stageName", type: "string | null", description: "Validation stage (gate) the verdict came from." },
40334
40334
  { name: "verdicts[].createdAt", type: "string", description: "ISO 8601 timestamp." },
40335
- { name: "priorDecisions", type: "array", description: "Earlier human decisions on this field." },
40336
- { name: "priorDecisions[].action", type: "string", description: "approve, correct, or override." },
40335
+ { name: "priorDecisions", type: "array", description: "Earlier human decisions on this field. Advisory recommendations (a reviewer's proposal on a field they could not decide directly) are excluded here \u2014 a recommendation is never a resolution. The decisions list endpoint still includes them." },
40336
+ { name: "priorDecisions[].action", type: "string", description: "approve, correct, or override \u2014 never recommend: this endpoint excludes advisory recommendation rows." },
40337
40337
  { name: "priorDecisions[].priorValue", type: "string | null", description: "Value before the decision." },
40338
40338
  { name: "priorDecisions[].finalValue", type: "string | null", description: "Value after the decision." },
40339
40339
  { name: "priorDecisions[].reason", type: "string | null", description: "Audit note recorded with the decision." },
40340
40340
  { name: "priorDecisions[].decidedByName", type: "string | null", description: "Who decided (api for API-driven decisions)." },
40341
- { name: "priorDecisions[].decidedAt", type: "string", description: "ISO 8601 timestamp." }
40341
+ { name: "priorDecisions[].decidedAt", type: "string", description: "ISO 8601 timestamp." },
40342
+ { name: "priorDecisions[].recommendedAction", type: "string | null", description: "Set only on a recommend row: the action (approve or correct) the recommender proposed. Null on every other row." },
40343
+ { name: "priorDecisions[].recommendationId", type: "string | null", description: "Credit link: the recommend row this decision confirmed or overruled, if the decider acted on one. Null when no recommendation preceded the decision." },
40344
+ { name: "priorDecisions[].recommendedByName", type: "string | null", description: "Name of the reviewer who made the linked recommendation, denormalized from recommendationId. Null when recommendationId is null." },
40345
+ { name: "priorDecisions[].decidedByEmail", type: "string | null", description: "Email of the deciding user, joined live from the user record. Null for machine actors, API-key decisions, and deleted users." },
40346
+ { name: "priorDecisions[].recommendedByEmail", type: "string | null", description: "Email of the reviewer who made the linked recommendation. Null when recommendationId is null or that user record no longer exists." }
40342
40347
  ]
40343
40348
  },
40344
40349
  {
@@ -40643,13 +40648,18 @@ var sections68 = [
40643
40648
  { name: "entries[].fieldKey", type: "string", description: "Resolved field key." },
40644
40649
  { name: "entries[].triggerType", type: "string", description: "What parked the field: gate or declarative." },
40645
40650
  { name: "entries[].stageName", type: "string | null", description: "Triggering validation gate name, if any." },
40646
- { name: "entries[].action", type: "string", description: "approve, correct, or override." },
40651
+ { name: "entries[].action", type: "string", description: "approve, correct, override, or recommend \u2014 a reviewer's advisory proposal on a field they could not decide directly. A recommend row carries no authority: it never appears in the CSV export." },
40647
40652
  { name: "entries[].priorValue", type: "string | null", description: "Value before the decision." },
40648
40653
  { name: "entries[].finalValue", type: "string | null", description: "Value after the decision." },
40649
40654
  { name: "entries[].reason", type: "string | null", description: "Audit note recorded with the decision." },
40650
40655
  { name: "entries[].decidedBy", type: "string | null", description: "User UUID, or null for system / API actors." },
40651
40656
  { name: "entries[].decidedByName", type: "string | null", description: "Decider label (api for API-driven decisions)." },
40652
- { name: "entries[].decidedAt", type: "string", description: "ISO 8601 decision timestamp." }
40657
+ { name: "entries[].decidedAt", type: "string", description: "ISO 8601 decision timestamp." },
40658
+ { name: "entries[].recommendedAction", type: "string | null", description: "Set only on a recommend row: the action (approve or correct) the recommender proposed. Null on every other row." },
40659
+ { name: "entries[].recommendationId", type: "string | null", description: "Credit link: the recommend row this decision confirmed or overruled, if the decider acted on one. Null when no recommendation preceded the decision." },
40660
+ { name: "entries[].recommendedByName", type: "string | null", description: "Name of the reviewer who made the linked recommendation, denormalized from recommendationId. Null when recommendationId is null." },
40661
+ { name: "entries[].decidedByEmail", type: "string | null", description: "Email of the deciding user, joined live from the user record. Null for machine actors, API-key decisions, and deleted users." },
40662
+ { name: "entries[].recommendedByEmail", type: "string | null", description: "Email of the reviewer who made the linked recommendation. Null when recommendationId is null or that user record no longer exists." }
40653
40663
  ]
40654
40664
  },
40655
40665
  {
@@ -40673,7 +40683,12 @@ var sections68 = [
40673
40683
  "reason": "Stripped thousands separator to match field format.",
40674
40684
  "decidedBy": null,
40675
40685
  "decidedByName": "api",
40676
- "decidedAt": "2024-09-14T11:20:05.000Z"
40686
+ "decidedAt": "2024-09-14T11:20:05.000Z",
40687
+ "recommendedAction": null,
40688
+ "recommendationId": null,
40689
+ "recommendedByName": null,
40690
+ "decidedByEmail": null,
40691
+ "recommendedByEmail": null
40677
40692
  }
40678
40693
  ]
40679
40694
  }`
@@ -40693,7 +40708,7 @@ var sections68 = [
40693
40708
  { label: "Resolve Field Review", slug: "resolve-field-review" }
40694
40709
  ],
40695
40710
  faq: [
40696
- { question: "How are API-driven decisions attributed?", answer: "Resolutions made through the API are recorded with `decidedByName` of `api` and a null `decidedBy` user id, so they are attributable without forging a user record. App resolutions carry the reviewer's name." },
40711
+ { question: "How are API-driven decisions attributed?", answer: "Resolutions made through the API are recorded with `decidedByName` of `api` and a null `decidedBy` user id, so they are attributable without forging a user record. App resolutions carry the reviewer's name and, when the user record still exists, their email (`decidedByEmail`)." },
40697
40712
  { question: "Can I get the whole organization's log at once?", answer: "Yes. Omit `pipeline_id` to read the org-wide decision log across every run. Pass `pipeline_id` to scope to a single run for a per-run handover." },
40698
40713
  { question: "Can a decision log entry be edited or deleted?", answer: "No. Decisions are immutable once written. Resolving the same field again appends a new row rather than editing the old one, so the log is a complete chronological record of every human decision." }
40699
40714
  ],
@@ -40706,7 +40721,7 @@ var sections68 = [
40706
40721
  seoTitle: "Export Review Decisions to CSV for Handover \u2014 Talonic Docs",
40707
40722
  description: "Export the field review decision log as an RFC 4180 CSV, UTF-8 with BOM so it opens cleanly in Excel. Filter to one pipeline or export the org-wide history.",
40708
40723
  content: [
40709
- { type: "paragraph", text: "Export the field-review decision log as a CSV file for customer handover. The export is the same per-field decision history as the JSON decisions endpoint, serialized as RFC 4180 CSV with a UTF-8 byte-order mark so it opens cleanly in Excel. Each row is one decision: who decided, the field, the action, the prior and final values, the gate, and the reason." },
40724
+ { type: "paragraph", text: "Export the field-review decision log as a CSV file for customer handover. The export is the same per-field decision history as the JSON decisions endpoint, minus advisory recommend rows, serialized as RFC 4180 CSV with a UTF-8 byte-order mark so it opens cleanly in Excel. Each row is one decision: who decided, the field, the action, the prior and final values, the gate, and the reason. A recommend row carries no authority and never appears in this export \u2014 only the confirming or overruling decision does." },
40710
40725
  { type: "paragraph", text: "Filter to a single run with `pipeline_id`, or omit it to export the org-wide log across every run. Unlike the JSON list, the CSV is not paginated: it returns the full decision history for the scope in one download, which is what a handover audit needs. The response is sent as a file attachment named `field-review-decisions.csv`." },
40711
40726
  { type: "paragraph", text: "The response `Content-Type` is `text/csv; charset=utf-8` and the `Content-Disposition` header marks it as an attachment, so a browser or HTTP client saves it directly. Use this endpoint when you need the decision trail outside the API, for example to hand a finished run's review history to a customer. This endpoint requires an API key with the `read` scope." },
40712
40727
  { type: "callout", variant: "info", text: "The CSV is written with a UTF-8 BOM so Excel detects the encoding and renders non-ASCII values correctly. The export is unpaginated: it returns the full decision history for the requested scope." },
@@ -40747,8 +40762,8 @@ var sections68 = [
40747
40762
  type: "code",
40748
40763
  title: "Response (text/csv)",
40749
40764
  language: "text",
40750
- code: `id,pipeline_id,document_name,field_key,trigger_type,stage_name,action,prior_value,final_value,reason,decided_by_name,decided_at
40751
- dec_uuid_1,a1b2c3d4-e5f6-7890-abcd-ef1234567890,lease_oct.pdf,total_amount,gate,Amount reconciliation,correct,"12,500.00",12500.00,Stripped thousands separator to match field format.,api,2024-09-14T11:20:05.000Z`
40765
+ code: `decided_at,decided_by,queue,document,field_key,trigger,stage,action,prior_value,final_value,reason
40766
+ 2024-09-14T11:20:05.000Z,ana@acme.com,Q3 Lease Review,lease_oct.pdf,total_amount,gate,Amount reconciliation,correct,"12,500.00",12500.00,Stripped thousands separator to match field format.`
40752
40767
  },
40753
40768
  { type: "heading", level: 2, id: "export-field-review-decisions-errors", text: "Errors" },
40754
40769
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.34",
3
+ "version": "0.21.36",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,