@talonic/docs 0.21.36 → 0.21.43

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 CHANGED
@@ -12925,7 +12925,7 @@ var sections22 = [
12925
12925
  description: "Browse decision apps in the gallery and create one by describing it: Talonic drafts the name, mode, rules, and data access for review before anything exists.",
12926
12926
  content: [
12927
12927
  { type: "paragraph", text: "**Apps** turn your governed data into decisions. Where a Spec produces a structured table, an app *reads* tables like it \u2014 data products, reference tables, connected databases, even other apps \u2014 and produces verdicts: approve or hold a load for billing, flag an invoice, prepare a review package. Every run is recorded in a sealed, replayable ledger, so each decision names exactly what it read, which logic version decided, and who or what made the call. You reach the surface from **Apps** in the navigation." },
12928
- { type: "paragraph", text: "The gallery is a card grid built for five-second triage: each card shows the app's icon and name, its **mode chip** \u2014 *Rules* (deterministic policy sentences decide), *Assisted* (rules decide, an agent drafts review answers), or *External* (your own agent decides inside Talonic's contract) \u2014 its live state (enabled or off), the active version number, and how recently it ran. Clicking a card opens the app's detail view; the **New app** button starts creation. What you can do is role-gated: viewers browse, members run, senior members configure and publish, and owners manage access and deletion." },
12928
+ { type: "paragraph", text: "The gallery is a card grid built for five-second triage: each card shows the app's icon and name, its **mode chip** \u2014 *Rules* (deterministic policy sentences decide), *Assisted* (rules decide, an agent drafts review answers), or *External* (your own agent decides inside Talonic's contract) \u2014 its live state (enabled or off), the active version number, and how recently it ran. Clicking a card opens the app's detail view; the **New app** button starts creation. What you can do is role-gated: viewers browse, members run, senior members resolve reviews, replay, and hold the kill switch, and owners configure \u2014 create, edit drafts, publish, and manage access and deletion." },
12929
12929
  { type: "paragraph", text: 'Creation is **describe-first**. The dialog opens on a text panel: write what you want decided, in your own words \u2014 "Check every delivered load against its rate card and hold any load where the billed amount differs by more than 2 percent" \u2014 and Talonic drafts the app: a name and slug, the mode it thinks fits, your policy restated as plain-language rule sentences, the output it will emit, and the data access it needs. Nothing exists server-side yet; you are reviewing a proposal, not editing a live app.' },
12930
12930
  { type: "paragraph", text: `Review the draft before creating. Access suggestions resolve against your workspace's real resources \u2014 a "rate card" hint becomes a picker over your actual reference tables \u2014 and confirmed suggestions become read grants at creation, so the app arrives able to see its data. The proposal also lists **open questions** where your description was ambiguous; answering them now (by refining the description and re-drafting, or later as compiler guidance) is cheaper than debugging an indeterminate verdict later. Only **Create this app** makes anything real. A manual form \u2014 name, slug, mode radio cards \u2014 stays one quiet link away for when you already know exactly what you want.` },
12931
12931
  { type: "callout", variant: "info", text: "Modes are not a one-way choice. Contract, output, and ledger are identical across modes, so an app can start as Rules, become Assisted when reviewers want drafted answers, or hand its decision to your own agent as External \u2014 without migration, and with an unbroken ledger across the switch." },
@@ -12977,7 +12977,7 @@ curl -s -X POST https://api.talonic.com/v1/apps \\
12977
12977
  { question: "How are Apps different from Specs and pipelines?", answer: 'A Spec structures documents into a governed table; an app consumes tables like that and decides something about them. Pipelines answer "what does this data say", apps answer "so what do we do" \u2014 with every decision sealed in an auditable ledger. Most apps read the data product a Spec produces.' },
12978
12978
  { question: "Which mode should I start with?", answer: "Rules. It is deterministic, fully explainable, and testable against history before going live. Move to Assisted when reviewers want the platform to draft answers for them, and to External when your own agent should make the decision inside Talonic's contract and ledger. Switching later costs nothing structurally." },
12979
12979
  { question: "Does describing an app create anything?", answer: 'No. The proposal is a stateless draft: you can re-describe as often as you like and compare results. The app, its logic draft, and its access grants come into existence only when you confirm with "Create this app".' },
12980
- { question: "Who can create apps?", answer: "Creating and configuring apps requires the senior member role or above; enabling an app that executes actions on external systems requires a workspace owner. Members can trigger runs, and viewers can read everything \u2014 the gallery, ledgers, and reviews \u2014 without changing anything." }
12980
+ { question: "Who can create apps?", answer: "Creating and configuring apps \u2014 drafts, logic, publishing, activation \u2014 requires the configure tier: a workspace owner for a human session, an operate grant for a machine key. Enabling an app that executes actions on external systems likewise requires a workspace owner. Senior members resolve reviews, replay runs, and hold the kill switch; members trigger runs; viewers can read everything \u2014 the gallery, ledgers, and reviews \u2014 without changing anything." }
12981
12981
  ],
12982
12982
  mentions: ["Apps gallery", "decision apps", "autonomy modes", "rules mode", "assisted mode", "external mode", "natural-language creation", "app proposal", "access suggestions", "open questions"]
12983
12983
  },
@@ -27243,7 +27243,7 @@ var sections44 = [
27243
27243
  { type: "paragraph", text: "Use `GET` to inspect current config and delivery status. Use `PUT` to rotate credentials or change the target URL/bucket. Use `POST /test` after updating credentials to verify the new config works before live traffic flows through it. Use `DELETE` only when permanently removing a destination." },
27244
27244
  { type: "paragraph", text: "The `GET` response includes `last_delivery_at` and `last_delivery_status` to show the most recent delivery attempt. The `is_active` flag indicates whether the destination is enabled \u2014 destinations are automatically disabled on `auth_failed` or `ssrf_blocked` errors. The test endpoint returns `success`, `durationMs`, and an optional `message` describing what was probed." },
27245
27245
  { type: "paragraph", text: "If a destination becomes inactive due to auth failure, fix the credentials via `PUT`, then call the test endpoint to verify. The destination will be re-enabled automatically on a successful update. Prefer disabling (`is_active: false` via `PUT`) over deleting when you want to pause delivery but keep the history." },
27246
- { type: "callout", variant: "warning", text: "Deleting a destination cascades to all its bindings, delivery items, and DLQ entries. This is irreversible. Disable the destination (`is_active: false`) instead if you want to preserve history." },
27246
+ { type: "callout", variant: "warning", text: "Deleting a destination removes its delivery items and DLQ entries irreversibly. Bindings routed to it are kept but orphaned: deactivated, marked `last_status: destination_deleted`, with `destination_id: null` \u2014 re-point them via `PUT /v1/delivery/bindings/:id` and re-enable. Disable the destination (`is_active: false`) instead if you want to preserve history." },
27247
27247
  {
27248
27248
  type: "endpoint",
27249
27249
  method: "GET",
@@ -44437,11 +44437,11 @@ var sections74 = [
44437
44437
  parentSlug: "apps",
44438
44438
  title: "Apps Overview",
44439
44439
  seoTitle: "Apps API Overview: Governed Decision Units \u2014 Talonic Docs",
44440
- description: "The Talonic Apps surface: named, versioned decision apps over governed data, with an ETag-cached catalog, dual auth heads, and a read/run/operate/owner ladder.",
44440
+ description: "The Talonic Apps surface: named, versioned decision apps over governed data, with an ETag-cached catalog, dual auth heads, and a read/run/operate/configure ladder.",
44441
44441
  content: [
44442
44442
  { type: "paragraph", text: "**Apps** are named, versioned, publishable decision units. An app reads a governed set of inputs \u2014 published data products, reference tables, connected databases, or other apps \u2014 and produces schema-typed decisions with a replayable, provenance-carrying ledger: an append-only run journal, a queryable run projection, and an immutable sealed decision record per run. Every app runs in one of three autonomy modes: `rules` (deterministic policy cards decide), `assisted` (rules decide, a draft-only agent proposes review resolutions), or `external` (an outside agent decides inside Talonic's contract and ledger)." },
44443
- { type: "paragraph", text: "The REST surface spans six route families: `/v1/apps` (lifecycle, logic, versions, acceptance, grants), `/v1/runs` (run projection, verdict matrix, journal, sealed record), `/v1/replays`, `/v1/reviews` (the Human Review inbox), `/v1/rule-candidates`, and `/v1/review-teams`. The Talonic web UI is a client of exactly these endpoints \u2014 it holds no private capabilities \u2014 and every enabled app is additionally published as a dynamic MCP tool (`apps/<slug>`), so an external agent given only a token discovers and operates the same surface a person sees." },
44444
- { type: "paragraph", text: "Authentication is dual-headed: `tlnc_` API keys and OAuth tokens on one head, platform session JWTs on the other, both landing on the same authorization layer. Authorization is a four-tier ladder \u2014 **read < run < operate < owner** \u2014 mapped for humans from the workspace role (`viewer` \u2192 read, `member` \u2192 run, `senior_member` \u2192 operate, `owner` \u2192 owner). Machine callers are decided by per-app grants: a `read` grant admits reads, an `operate` grant admits read/run/operate, and `owner`-tier routes (grant management, deletion, pickable clients) always require a human workspace owner \u2014 they are never machine-grantable." },
44443
+ { type: "paragraph", text: "The REST surface spans six route families: `/v1/apps` (lifecycle, logic, versions, acceptance, grants), `/v1/runs` (run projection, verdict matrix, journal, sealed record), `/v1/replays`, `/v1/reviews` (the Human Review inbox), `/v1/rule-candidates`, and `/v1/review-teams`. The Talonic web UI is a client of exactly these endpoints \u2014 it holds no private capabilities \u2014 and every enabled app is additionally published as a dynamic MCP tool (`app_<slug>`, with `-` replaced by `_`), so an external agent given only a token discovers and operates the same surface a person sees." },
44444
+ { type: "paragraph", text: "Authentication is dual-headed: `tlnc_` API keys and OAuth tokens on one head, platform session JWTs on the other, both landing on the same authorization layer. Authorization is a four-tier ladder \u2014 **read < run < operate < configure (= owner)** \u2014 mapped for humans from the workspace role (`viewer` \u2192 read, `member` \u2192 run, `senior_member` \u2192 operate \u2014 resolving reviews, replays, and the disable kill switch, `owner` \u2192 configure \u2014 creating, editing drafts, publishing, activating, and promoting rule candidates). Machine callers are decided by per-app grants: a `read` grant admits reads, an `operate` grant admits read/run/operate and the configure-tier actions, and true `owner`-tier routes (grant management, deletion, pickable clients) always require a human workspace owner \u2014 they are never machine-grantable." },
44445
44445
  { type: "paragraph", text: "A compatibility rule keeps pre-Apps keys working: a key with **zero** app-grant rows falls back to its legacy scopes \u2014 `read` scope for read-tier routes, `write` for run/operate. The moment the first grant row lands on a key, that key switches to strict per-app enforcement: it can only touch apps it holds grants for, at the granted level. OAuth clients and routes without an app id in the path (the workspace review inbox, `/v1/runs/:runId`) always use the scope path, with every read tenant-scoped by the service." },
44446
44446
  { type: "paragraph", text: "The whole surface requires a concrete workspace. A key or session resolving to the cross-tenant master view is rejected with `403` and the message `A concrete workspace is required for the Apps surface` \u2014 there are no cross-tenant app reads or writes on `/v1`." },
44447
44447
  { type: "callout", variant: "warning", text: "Granting a key its first per-app grant is a behavioral switch, not just an addition: the key immediately loses legacy scope-based access to every other app in the workspace. Grant deliberately \u2014 start with read, widen to operate per app." },
@@ -44539,7 +44539,7 @@ curl -s -o /dev/null -w "%{http_code}" https://api.talonic.com/v1/apps \\
44539
44539
  { label: "List Agent Tools", slug: "agent-tools" }
44540
44540
  ],
44541
44541
  faq: [
44542
- { question: "What is the difference between the read, run, operate, and owner tiers?", answer: "read covers every GET (manifests, runs, ledger, reviews, health). run adds triggering runs. operate adds configuration: drafts, publish, enable/disable, resolving reviews, replays, raising reviews. owner covers grant and client management, review-team writes, and app deletion \u2014 and is always a human workspace owner, never an API key." },
44542
+ { question: "What is the difference between the read, run, operate, and configure tiers?", answer: "read covers every GET (manifests, runs, ledger, reviews, health). run adds triggering runs. operate adds resolving non-approval reviews, replays, raising reviews, and disabling (the kill switch). configure adds authoring: create, edit drafts, publish, activate, and promote rule candidates \u2014 for a human session this is the workspace owner role; a machine key reaches it with an operate grant. Enabling stays its own rule: plain enable is operate tier, but an app that declares `acts` needs a human workspace owner regardless of tier. True owner-tier routes \u2014 grant and client management, review-team writes, and app deletion \u2014 are always a human workspace owner, never an API key." },
44543
44543
  { question: "My existing workspace key worked yesterday and gets 403 today. What changed?", answer: "Most likely someone created the key's first per-app grant. A key with zero grants falls back to legacy read/write scopes across all apps; the first grant row flips it to strict per-app enforcement, so it now needs an explicit grant on each app it touches. Either grant it the apps it needs or remove its grants to restore legacy behavior." },
44544
44544
  { question: "How do I know when the app catalog changed?", answer: "Use the etag. GET /v1/apps returns an ETag header (also echoed in the body) hashed over each visible app's id, active content hash, and enabled flag. Re-poll with If-None-Match: a 304 means nothing changed; a 200 means an app was created, deleted, enabled, disabled, or republished \u2014 rebuild your cached catalog or MCP tool list then." },
44545
44545
  { question: 'Why do I get 403 "A concrete workspace is required"?', answer: 'Your credential resolves to the cross-tenant master view (customerId "all"), which the Apps surface rejects for reads and writes alike. Call with a key or session bound to one concrete workspace.' },
@@ -44556,7 +44556,7 @@ curl -s -o /dev/null -w "%{http_code}" https://api.talonic.com/v1/apps \\
44556
44556
  content: [
44557
44557
  { type: "paragraph", text: "`POST /v1/apps` creates an app shell: a workspace-unique `slug`, a `display_name`, and a `mode` (`rules`, `assisted`, or `external`). The response is the app's manifest with `version: null` \u2014 nothing decides yet. You then save logic as a draft version ([PUT /v1/apps/:id/logic](app-logic)), publish it, and enable the app. The slug follows the grammar `[a-z0-9][a-z0-9-]{1,62}[a-z0-9]` (3\u201364 chars) and becomes immutable at the first publish; `display_name` renames freely at any time." },
44558
44558
  { type: "paragraph", text: "The describe-first path is `POST /v1/apps/proposals`: send a plain-language `description` (20\u20132000 chars) of the decision you want automated, and the platform compiles it into a structured **proposal** \u2014 suggested name and slug, a mode, the policy restated as rule sentences with parameters, a drafted output contract, trigger defaults, the inputs it thinks the app needs, `access_needed` hints (which data products or reference tables to grant), and `open_questions` where your description was ambiguous. Nothing persists: the proposal is a draft on the wire, and the client turns an accepted proposal into a real app via `POST /v1/apps` plus `PUT /:id/logic`." },
44559
- { type: "paragraph", text: "Requests to either endpoint need the **operate** tier (senior_member and up for sessions; an operate grant or legacy `write` scope for keys). A duplicate slug is rejected with `409` and the message naming the taken slug, so creation is safe to retry with a new slug. Mode `autonomous` is reserved for a later release and rejected with `422` wherever content is validated." },
44559
+ { type: "paragraph", text: "Requests to either endpoint need the **configure** tier (a workspace owner session; an operate grant or legacy `write` scope for keys). A duplicate slug is rejected with `409` and the message naming the taken slug, so creation is safe to retry with a new slug. Mode `autonomous` is reserved for a later release and rejected with `422` wherever content is validated." },
44560
44560
  { type: "paragraph", text: "Deletion is the reverse ceremony, deliberately heavier: `DELETE /v1/apps/:id` requires the **owner** tier and is refused while the app is enabled or while other apps consume its output as an input binding (check [GET /v1/apps/:id/dependents](app-versions) first). Deleting removes configuration only \u2014 the run journal and sealed decision records survive by design, carrying no foreign key to the app." },
44561
44561
  {
44562
44562
  type: "endpoint",
@@ -44785,7 +44785,7 @@ curl -s -X POST https://api.talonic.com/v1/apps/$APP_ID/logic/compile \\
44785
44785
  { question: 'What is a "pending" card?', answer: "A card whose interpretation carries the unsupported code pending_compile: it has an author sentence but no executable predicates yet. Pending cards never decide anything. Compile grounds them in the app's bound fields; a card that cannot be grounded stays pending with the reason attached." },
44786
44786
  { question: "Can the compiler invent a field that is not in my data?", answer: "No. The compiler is restricted to the alias \u2192 field inventory returned by GET /v1/apps/:id/logic/fields, derived from the version's input bindings. A rule naming a field outside that inventory stays pending with a warning instead of being grounded against a guess." },
44787
44787
  { question: "What is the difference between PATCH /v1/apps/:id and PUT /v1/apps/:id/logic?", answer: "Nothing \u2014 they are aliases. Both take { content: <full manifest> }, validate it, and write it as the app's draft version. Use whichever reads better in your client." },
44788
- { question: "How do rules apply to only some records?", answer: `Two mechanisms: a card-level applies_to { field, equals } engages the card only for records whose field matches (e.g. document type "BOL"), and each input binding's select can narrow fields and rows at assembly time. Batch apps additionally scope card matching via decision_policy.subject.doc_type_field.` },
44788
+ { question: "How do rules apply to only some records?", answer: 'Two mechanisms: a card-level `applies_to` uses `{ field, equals }` for one exact value or `{ field, one_of }` for an explicit value set, and each input binding\'s `select` can narrow fields and rows at assembly time. Batch apps additionally scope card matching via `decision_policy.subject.doc_type_field`. Applicable records fold conservatively by default; a card may set `record_fold: "any_passes"` when one passing record is sufficient evidence.' },
44789
44789
  { question: "What does adjudication do?", answer: 'It governs fuzzy comparisons (op "similar"): pairs at or above the threshold match deterministically, and only below-threshold pairs go to the metered LLM adjudicator \u2014 and only when enabled: true. Disabled means below-threshold comparisons stay indeterminate rather than guessed. domain_hint is one sentence of your domain context interpolated into the otherwise neutral prompt.' }
44790
44790
  ],
44791
44791
  mentions: ["logic manifest", "policy cards", "rule compilation", "pending_compile", "input bindings", "output contract", "decision policy", "batch_verdicts", "edit proposals", "edit ops", "adjudication", "display metrics"]