@talonic/docs 0.21.60 → 0.21.62

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
@@ -584,6 +584,7 @@ var PLATFORM_NAV_SECTIONS = [
584
584
  ] },
585
585
  { id: "team-admin", label: "Team & Admin", children: [
586
586
  { id: "team-management", label: "Team Management" },
587
+ { id: "roles-and-permissions", label: "Roles & Permissions" },
587
588
  { id: "usage-registry", label: "Usage" },
588
589
  { id: "admin-panel", label: "Admin Panel" },
589
590
  { id: "shortcuts", label: "Keyboard Shortcuts" }
@@ -11112,7 +11113,7 @@ var sections17 = [
11112
11113
  {
11113
11114
  name: "Admin",
11114
11115
  type: "top role",
11115
- description: 'Senior Member permissions plus team management, settings, billing, API keys, and field deprioritization rules. Stored internally as `owner` and displayed as "Admin"; admins are co-equal.'
11116
+ description: 'Senior Member permissions plus team management, settings, billing, API keys, and field deprioritization rules. Stored internally as `owner` and displayed as "Admin". Every role\'s permissions are configurable; see Roles & Permissions.'
11116
11117
  }
11117
11118
  ]
11118
11119
  },
@@ -11140,7 +11141,7 @@ var sections17 = [
11140
11141
  "**Viewer** \u2014 read-only access to documents, extraction results, schemas, and reports. Cannot create, edit, or delete any resources.",
11141
11142
  "**Member** (shown in the app as **Contract Management**) \u2014 full CRUD access to documents, schemas, jobs, matching configurations, and delivery bindings, and approve, correct, or override review items. On a field tagged complex, a Member can leave a recommendation for a senior reviewer instead of deciding. Cannot manage team members or workspace settings.",
11142
11143
  "**Senior Member** (shown in the app as **Senior Contract Management**) \u2014 all Member permissions plus deciding complex-tagged fields in the Review Queue and Review Mode, and pinning fields to the top of every Review Mode rail. It does not include member or role management.",
11143
- '**Admin** \u2014 the top role: all Senior Member permissions plus field deprioritization rules, team management (approve/reject members, change roles), billing, API key generation and revocation, organization settings, and routing rules. Admins are co-equal (last-admin protection applies, and any admin can reset another admin). The role is stored internally as `owner` and displayed as "Admin".'
11144
+ '**Admin** \u2014 the top role: all Senior Member permissions plus field deprioritization rules, team management (approve/reject members, change roles), billing, API key generation and revocation, organization settings, and routing rules. Every role is a configurable default; see [Roles & Permissions](/docs/platform/roles-and-permissions). The workspace always keeps one member with Team & access. The role is stored internally as `owner` and displayed as "Admin".'
11144
11145
  ]
11145
11146
  },
11146
11147
  {
@@ -11154,6 +11155,16 @@ var sections17 = [
11154
11155
  "Optionally, change roles later from the same Team page."
11155
11156
  ]
11156
11157
  },
11158
+ {
11159
+ type: "heading",
11160
+ level: 3,
11161
+ id: "team-admin-permissions",
11162
+ text: "Configuring Permissions"
11163
+ },
11164
+ {
11165
+ type: "paragraph",
11166
+ text: "The four roles are defaults, not fixed tiers. On the Team Members page, members holding **Team & access** can change what each role can do (**Role permissions**) and give any individual their own set (**Member permissions**), across ten permissions from Export to Workspace settings. See [Roles & Permissions](/docs/platform/roles-and-permissions) for the full model, the escalation controls and the audit trail."
11167
+ },
11157
11168
  {
11158
11169
  type: "heading",
11159
11170
  level: 3,
@@ -11193,7 +11204,7 @@ var sections17 = [
11193
11204
  faq: [
11194
11205
  {
11195
11206
  question: "What roles are available in Talonic?",
11196
- answer: "Four roles, ascending: Viewer (read-only), Member (shown as Contract Management: create, edit, and review), Senior Member (shown as Senior Contract Management: also decides complex-tagged review fields and pins review fields), and Admin (team management, settings, billing, and API keys). Admin is stored internally as `owner`; admins are co-equal."
11207
+ answer: "Four roles, ascending: Viewer (read-only), Member (shown as Contract Management: create, edit, and review), Senior Member (shown as Senior Contract Management: also decides complex-tagged review fields and pins review fields), and Admin (team management, settings, billing, and API keys). Admin is stored internally as `owner`. These are defaults: each role's permissions, and any individual's, can be changed on the Team Members page."
11197
11208
  },
11198
11209
  {
11199
11210
  question: "What can a Senior Member do that a Member cannot?",
@@ -11203,6 +11214,10 @@ var sections17 = [
11203
11214
  question: "How are new team members added?",
11204
11215
  answer: "New members are added via domain matching: company email domains auto-match to your organization with pending status requiring admin approval. An Admin must explicitly approve each pending member before they gain access to any workspace data. This ensures no unauthorized users can access your documents or extraction results."
11205
11216
  },
11217
+ {
11218
+ question: "Can I change what a role or a person can do?",
11219
+ answer: "Yes. On the Team Members page, Role permissions set each role's default and Member permissions give one person their own set, across ten permissions. You can grant only permissions you hold yourself, and the workspace always keeps one member with Team & access."
11220
+ },
11206
11221
  {
11207
11222
  question: "Can I change a team member's role after they join?",
11208
11223
  answer: "Yes. Open Team Members from the user menu, find the member, and update their role. Changes take effect immediately. Only Admins can modify roles."
@@ -11229,6 +11244,194 @@ var sections17 = [
11229
11244
  "pending approval"
11230
11245
  ]
11231
11246
  },
11247
+ {
11248
+ slug: "roles-and-permissions",
11249
+ parentSlug: "team-admin",
11250
+ title: "Roles & Permissions",
11251
+ seoTitle: "Roles, Permissions and Access Control | Talonic Docs",
11252
+ description: "Configure what each role and each person can do in a Talonic workspace: ten permissions, set per role and per member, enforced by the API and audited.",
11253
+ content: [
11254
+ {
11255
+ type: "paragraph",
11256
+ text: "Every Talonic workspace controls what people can do with **permissions**. Each role carries a default set, and any member can be given their own set that differs from their role. This page describes the model for workspace owners and for the IT security teams who review it."
11257
+ },
11258
+ {
11259
+ type: "paragraph",
11260
+ text: "Permissions are configured on the **Team Members** page (user menu, then **Team Members**) in two grids. **Role permissions** set what each role can do by default. **Member permissions** show what each person can actually do and let you change it for one person. Both grids are visible only to members holding **Team & access**; other members neither see them nor receive the data from the API."
11261
+ },
11262
+ {
11263
+ type: "param-table",
11264
+ title: "Permissions",
11265
+ params: [
11266
+ { name: "Export", type: "export", description: "Download data out of the workspace: data product, record-set, document, review-decision, compliance, submission and finance exports." },
11267
+ { name: "Upload & sources", type: "ingest", description: "Upload documents, connect personal sources (Outlook, OneDrive, Gmail, Google Drive), sync sources, database snapshots and source access rules." },
11268
+ { name: "Edit & review", type: "edit", description: "Approve, correct and reject review items and edit workspace data: cases, contracts, parties, compliance work, document generation and the other day-to-day surfaces." },
11269
+ { name: "Complex review", type: "review_complex", description: "Decide fields a Spec tags as complex, and pin fields to the top of every Review Mode rail." },
11270
+ { name: "Run pipelines", type: "run", description: "Cancel runs, re-extract documents and dispatch results to delivery destinations." },
11271
+ { name: "Team & access", type: "team", description: "Invite, approve, remove and re-role members; reset passwords and two-factor authentication; edit role and member permissions; compartments; SCIM tokens; mandatory two-factor and step-up settings." },
11272
+ { name: "Integrations", type: "integrations", description: "Connect and manage workspace-wide sources and SQL connections, API sources and API keys with elevated scopes, delivery destinations, bindings and history." },
11273
+ { name: "Billing & usage", type: "billing", description: "Plan and billing settings, credits, usage and cost reports, slot packs and AWS Marketplace." },
11274
+ { name: "Data & retention", type: "data", description: "Retention policies and assignments, legal holds, dispositions, erasure, fixity checks, the audit-event log and the full workspace export." },
11275
+ { name: "Workspace settings", type: "workspace", description: "Review assignment and field deprioritization, business-rule hold overrides, cases and collections configuration, document display-name rules, compliance settings and, in self-service workspaces, Specs and schemas." }
11276
+ ]
11277
+ },
11278
+ {
11279
+ type: "paragraph",
11280
+ text: "Reading workspace data is not a permission: every active member can open the documents and results their role's visibility allows. Which documents a member sees is decided separately, by compartments, collections and source access rules, and Admins see every document regardless of permissions. Talonic Apps have their own per-app access and are not governed by these permissions."
11281
+ },
11282
+ {
11283
+ type: "heading",
11284
+ level: 3,
11285
+ id: "roles-and-permissions-defaults",
11286
+ text: "Role defaults"
11287
+ },
11288
+ {
11289
+ type: "list",
11290
+ ordered: false,
11291
+ items: [
11292
+ "**Viewer**: Export.",
11293
+ "**Member** (shown as Contract Management): Export, Upload & sources, Edit & review, Run pipelines.",
11294
+ "**Senior Member** (shown as Senior Contract Management): Member permissions plus Complex review.",
11295
+ "**Admin**: all ten permissions."
11296
+ ]
11297
+ },
11298
+ {
11299
+ type: "paragraph",
11300
+ text: "These are the built-in defaults, and every workspace starts with them. Ticking or clearing a box in **Role permissions** changes the default for that role in your workspace only, and applies at once to every member of the role who has no permissions of their own. **Restore default** returns a role to the built-in set. Defaults can both widen and narrow a role: a workspace can let Viewers manage billing, or keep Admins away from data retention."
11301
+ },
11302
+ {
11303
+ type: "heading",
11304
+ level: 3,
11305
+ id: "roles-and-permissions-members",
11306
+ text: "Per-member permissions"
11307
+ },
11308
+ {
11309
+ type: "paragraph",
11310
+ text: "Changing a box in **Member permissions** gives that person their own set, marked **Custom**. From then on their permissions no longer follow role defaults, including after a role change. **Use role default** removes the custom set and returns them to their role."
11311
+ },
11312
+ {
11313
+ type: "heading",
11314
+ level: 3,
11315
+ id: "roles-and-permissions-enforcement",
11316
+ text: "How enforcement works"
11317
+ },
11318
+ {
11319
+ type: "paragraph",
11320
+ text: "Permissions are enforced by the Talonic API, not by the browser. Every protected route names the permission it requires, and the global authorization guard admits a request only when the caller holds it, whatever their role. A refused request returns **403** with the error code `INSUFFICIENT_PERMISSIONS` and a message naming the missing permission. A write route that names no permission stays closed to every customer member. The web app hides controls the caller cannot use for convenience only."
11321
+ },
11322
+ {
11323
+ type: "paragraph",
11324
+ text: "The guard resolves a member's permissions from the database on every request, not from the session token: first the member's own set, then the workspace's default for their role, then the built-in default. A change therefore takes effect on the member's next request, with no sign-out. Connecting a mailbox or drive re-checks the permission against the member's real membership, so a Talonic employee viewing a workspace cannot connect sources in it. Workspace API keys are separate: they carry their own scopes and are not governed by member permissions."
11325
+ },
11326
+ {
11327
+ type: "heading",
11328
+ level: 3,
11329
+ id: "roles-and-permissions-escalation",
11330
+ text: "Privilege escalation controls"
11331
+ },
11332
+ {
11333
+ type: "list",
11334
+ ordered: false,
11335
+ items: [
11336
+ "**Only Team & access manages permissions.** Editing role or member permissions, inviting, approving, re-roling and removing members all require Team & access.",
11337
+ "**Grant only what you hold.** A member can tick or clear only permissions they hold themselves, in both grids.",
11338
+ "**No acting on someone more powerful.** A member can change the role or permissions of, remove, or reset the password or two-factor authentication of another member only when that member's permissions are a subset of their own, before and after the change.",
11339
+ "**No promotion beyond yourself.** Inviting someone into a role, approving a joiner, or moving a member to a role is refused when that role would hold a permission the acting member lacks.",
11340
+ "**No self-service.** Nobody changes their own role or their own permissions.",
11341
+ "**Lockout protection.** The workspace always keeps at least one active member holding Team & access. Any change that would leave none, in either grid or by role change or removal, is refused."
11342
+ ]
11343
+ },
11344
+ {
11345
+ type: "callout",
11346
+ variant: "info",
11347
+ text: "The built-in defaults match how roles behaved before permissions were configurable, so nothing changes for a workspace until someone edits a grid."
11348
+ },
11349
+ {
11350
+ type: "heading",
11351
+ level: 3,
11352
+ id: "roles-and-permissions-audit",
11353
+ text: "Audit trail"
11354
+ },
11355
+ {
11356
+ type: "paragraph",
11357
+ text: "Every change is written to the platform security log: `team.role_permissions_changed` records the workspace, role, previous and new set, and the acting member; `team.member_permissions_changed` records the affected member, their custom set (or its removal), their resulting effective permissions, and the acting member. Every request the authorization guard refuses is logged as `security.rbac_denied` with the user, method, path and reason. Role changes, removals and credential resets keep their existing log events."
11358
+ },
11359
+ {
11360
+ type: "heading",
11361
+ level: 3,
11362
+ id: "roles-and-permissions-api",
11363
+ text: "API"
11364
+ },
11365
+ {
11366
+ type: "paragraph",
11367
+ text: "The Team Members page uses these endpoints with the signed-in member's session; all three require Team & access. Sending `null` as `permissions` restores the built-in default for a role, or returns a member to their role's default."
11368
+ },
11369
+ {
11370
+ type: "code",
11371
+ language: "http",
11372
+ title: "Read the permission catalog and role defaults",
11373
+ code: "GET /team/role-permissions"
11374
+ },
11375
+ {
11376
+ type: "code",
11377
+ language: "http",
11378
+ title: "Let Viewers in this workspace also manage billing",
11379
+ code: 'PUT /team/role-permissions/viewer\nContent-Type: application/json\n\n{ "permissions": ["export", "billing"] }'
11380
+ },
11381
+ {
11382
+ type: "code",
11383
+ language: "http",
11384
+ title: "Give one member their own set",
11385
+ code: 'PATCH /team/members/{userId}/permissions\nContent-Type: application/json\n\n{ "permissions": ["team", "data"] }'
11386
+ },
11387
+ {
11388
+ type: "code",
11389
+ language: "json",
11390
+ title: "Response",
11391
+ code: '{\n "user_id": "3f1c9a2e-6b0d-4e7a-9c55-1d2e8f4a7b10",\n "permissions": ["team", "data"],\n "custom_permissions": true\n}'
11392
+ },
11393
+ {
11394
+ type: "paragraph",
11395
+ text: "For an access review, `GET /team/members` called by a member holding Team & access returns every member with their role, effective `permissions` and `custom_permissions`. Together with `GET /team/role-permissions` it gives a point-in-time record of who can do what in the workspace."
11396
+ }
11397
+ ],
11398
+ related: [
11399
+ { label: "Team Management", slug: "team-management" },
11400
+ { label: "API Keys", slug: "api-keys" },
11401
+ { label: "Admin Panel", slug: "admin-panel" }
11402
+ ],
11403
+ faq: [
11404
+ {
11405
+ question: "Can a Viewer be given more than a Viewer normally has?",
11406
+ answer: "Yes. Tick the permission for the Viewer role to give it to every Viewer, or for one person under Member permissions. Only a member who holds that permission themselves can grant it."
11407
+ },
11408
+ {
11409
+ question: "Do permission changes take effect immediately?",
11410
+ answer: "Yes. The API resolves permissions from the database on every request, so the next request after a change uses the new permissions. No sign-out or token expiry is needed."
11411
+ },
11412
+ {
11413
+ question: "Can a workspace lock itself out?",
11414
+ answer: "No. Talonic always keeps at least one active member with Team & access and refuses any change that would leave none."
11415
+ },
11416
+ {
11417
+ question: "Are permission changes audited?",
11418
+ answer: "Yes. Role default changes are logged as team.role_permissions_changed and member changes as team.member_permissions_changed, with the acting member; refused requests are logged as security.rbac_denied."
11419
+ },
11420
+ {
11421
+ question: "Do permissions control which documents someone can see?",
11422
+ answer: "No. Permissions control actions. Document visibility is set by compartments, collections and source access rules; Admins see every document."
11423
+ }
11424
+ ],
11425
+ mentions: [
11426
+ "permissions",
11427
+ "RBAC",
11428
+ "least privilege",
11429
+ "privileged access",
11430
+ "segregation of duties",
11431
+ "access review",
11432
+ "security log"
11433
+ ]
11434
+ },
11232
11435
  {
11233
11436
  slug: "usage-registry",
11234
11437
  parentSlug: "team-admin",
package/dist/index.js CHANGED
@@ -8417,6 +8417,7 @@ var PLATFORM_NAV_SECTIONS = [
8417
8417
  ] },
8418
8418
  { id: "team-admin", label: "Team & Admin", children: [
8419
8419
  { id: "team-management", label: "Team Management" },
8420
+ { id: "roles-and-permissions", label: "Roles & Permissions" },
8420
8421
  { id: "usage-registry", label: "Usage" },
8421
8422
  { id: "admin-panel", label: "Admin Panel" },
8422
8423
  { id: "shortcuts", label: "Keyboard Shortcuts" }