@talonic/docs 0.21.83 → 0.21.94
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 +3138 -425
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +3108 -522
- package/openapi.json +2837 -267
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/content/helpers.ts
|
|
2
|
-
function deriveBreadcrumbs(
|
|
2
|
+
function deriveBreadcrumbs(sections88, leafId, domain) {
|
|
3
3
|
const domainLabels = {
|
|
4
4
|
api: "API Reference",
|
|
5
5
|
platform: "Platform Guide",
|
|
@@ -10,20 +10,20 @@ function deriveBreadcrumbs(sections87, leafId, domain) {
|
|
|
10
10
|
label: domainLabels[domain] ?? domain,
|
|
11
11
|
slug: domain
|
|
12
12
|
};
|
|
13
|
-
for (const group of
|
|
13
|
+
for (const group of sections88) {
|
|
14
14
|
const child = group.children?.find((c) => c.id === leafId);
|
|
15
15
|
if (child) {
|
|
16
16
|
return [root, { label: group.label, slug: group.id }, { label: child.label, slug: child.id }];
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const topLevel =
|
|
19
|
+
const topLevel = sections88.find((s) => s.id === leafId);
|
|
20
20
|
if (topLevel) {
|
|
21
21
|
return [root, { label: topLevel.label, slug: topLevel.id }];
|
|
22
22
|
}
|
|
23
23
|
return [root];
|
|
24
24
|
}
|
|
25
|
-
function derivePrevNext(
|
|
26
|
-
const flat =
|
|
25
|
+
function derivePrevNext(sections88, leafId) {
|
|
26
|
+
const flat = sections88.flatMap(
|
|
27
27
|
(s) => s.children ?? [{ id: s.id, label: s.label }]
|
|
28
28
|
);
|
|
29
29
|
const idx = flat.findIndex((c) => c.id === leafId);
|
|
@@ -47,6 +47,10 @@ var generated_nav_default = {
|
|
|
47
47
|
id: "ref-schemas",
|
|
48
48
|
label: "Schemas"
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
id: "ref-jobs-and-batches",
|
|
52
|
+
label: "Jobs & Batches"
|
|
53
|
+
},
|
|
50
54
|
{
|
|
51
55
|
id: "ref-sources",
|
|
52
56
|
label: "Sources"
|
|
@@ -95,6 +99,10 @@ var generated_nav_default = {
|
|
|
95
99
|
id: "ref-apps",
|
|
96
100
|
label: "Apps"
|
|
97
101
|
},
|
|
102
|
+
{
|
|
103
|
+
id: "ref-provenance",
|
|
104
|
+
label: "Provenance"
|
|
105
|
+
},
|
|
98
106
|
{
|
|
99
107
|
id: "ref-compliance",
|
|
100
108
|
label: "Compliance"
|
|
@@ -150,6 +158,14 @@ var generated_nav_default = {
|
|
|
150
158
|
{
|
|
151
159
|
id: "ref-suggestions",
|
|
152
160
|
label: "Suggestions"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "ref-team",
|
|
164
|
+
label: "Team"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: "ref-access-and-sharing",
|
|
168
|
+
label: "Access & sharing"
|
|
153
169
|
}
|
|
154
170
|
]
|
|
155
171
|
};
|
|
@@ -160,7 +176,7 @@ var openapi_default = {
|
|
|
160
176
|
info: {
|
|
161
177
|
title: "Talonic API",
|
|
162
178
|
version: "1.1.0",
|
|
163
|
-
description: 'Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) \u2192 Settings \u2192 API Keys \u2192 Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@invoice.pdf" \\\n -F \'schema={"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post("https://api.talonic.com/v1/extract",\n headers={"Authorization": "Bearer tlnc_live_abc123"},\n files={"file": open("invoice.pdf", "rb")},\n data={"schema": \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'})\nprint(resp.json()["data"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append("file", fs.createReadStream("invoice.pdf"));\nform.append("schema", \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\');\nconst res = await fetch("https://api.talonic.com/v1/extract", {\n method: "POST",\n headers: { Authorization: "Bearer tlnc_live_abc123" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n "extraction_id": "d1a2b3c4-5678-9abc-def0-1234567890ab",\n "request_id": "req_x7y8z9a0b1c2d3e4",\n "status": "complete",\n "document": {\n "id": "f0e1d2c3-b4a5-9687-8765-432109876543",\n "filename": "invoice.pdf",\n "pages": 2,\n "size_bytes": 184320,\n "type_detected": "Invoice",\n "language_detected": "en"\n },\n "data": {\n "vendor_name": "Acme GmbH",\n "total_amount": 14250.00,\n "invoice_date": "2025-03-15"\n },\n "confidence": {\n "overall": 0.96,\n "fields": {\n "vendor_name": 0.97,\n "total_amount": 0.94,\n "invoice_date": 0.99\n }\n },\n "processing": {\n "duration_ms": 1840,\n "pages_processed": 2,\n "region": "eu-west"\n },\n "links": {\n "self": "/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab",\n "document": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n }\n}\n```\n\n- **`data`** \u2014 extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** \u2014 per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** \u2014 use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode \u2014 see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** \u2014 save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** \u2014 configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (\u22645 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` \u2014 poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {"async": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` \u2014 daily cap for the namespace\n- `X-RateLimit-Remaining` \u2014 requests left today\n- `X-RateLimit-Reset` \u2014 ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1\u2013100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n "statusCode": 400,\n "code": "VALIDATION_ERROR",\n "error": "Bad Request",\n "message": "name is required.",\n "retryable": false,\n "timestamp": "2026-04-25T14:30:00.000Z",\n "path": "/v1/schemas"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n"no stable reason, read `message`". Message prefixes (`insufficient_grant:\n\u2026`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable \u2014 stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest\'s `subscriptions_endpoint`. An owner action \u2014 re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app\'s manifest is fetched from the vendor\'s URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app\'s surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor\'s manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller\'s workspace role (or an OAuth token\'s role claim) ranks below the route\'s tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments \u22645 pages return results synchronously (`200`). Larger documents\n\u2014 or any request with `options: {"async": true}` \u2014 return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@contract.pdf" \\\n -F \'options={"async": true}\'\n```\n\nResponse `202`:\n```json\n{\n "request_id": "req_x7y8z9a0",\n "status": "processing",\n "document": { "id": "f0e1d2c3-b4a5-9687-8765-432109876543" },\n "poll_url": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\nWhile processing: `{ "status": "processing" }`\nWhen done: `{ "status": "completed" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\n**Python \u2014 complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = "tlnc_live_..."\nBASE = "https://api.talonic.com/v1"\nHEADERS = {"Authorization": f"Bearer {API_KEY}"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f"{BASE}/extract",\n headers=HEADERS,\n files={"file": open("contract.pdf", "rb")},\n data={"options": \'{"async": true}\'})\ndoc_id = resp.json()["document"]["id"]\n\n# Step 2: Poll with exponential backoff (2s \u2192 4s \u2192 8s \u2192 16s \u2192 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f"{BASE}/documents/{doc_id}", headers=HEADERS).json()\n if doc["status"] == "completed":\n break\n if doc["status"] == "error":\n raise Exception(f"Extraction failed: {doc.get(\'error\')}")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f"{BASE}/documents/{doc_id}/extractions", headers=HEADERS).json()\ndata = extractions["data"][0]["data"]\nconfidence = extractions["data"][0]["confidence"]["overall"]\nprint(f"Extracted {len(data)} fields (confidence: {confidence})")\nprint(data)\n# \u2192 {"vendor_name": "Acme Corp", "total_amount": 1250.00, ...}\n```\n\n**TypeScript \u2014 same flow:**\n\n```typescript\nconst API_KEY = "tlnc_live_...";\nconst BASE = "https://api.talonic.com/v1";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append("file", fs.createReadStream("contract.pdf"));\nform.append("options", \'{"async": true}\');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: "POST", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === "completed") break;\n if (doc.status === "error") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// \u2192 { vendor_name: "Acme Corp", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2\u21924\u21928\u219216\u219230s cap),\ntimeout after 5 minutes.\n\n**Alternative \u2014 Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` \u2192 `queued` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1\u20135 pages | Sync, <3s | 30s |\n| 6\u201350 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass `Idempotency-Key` header on POST requests. Keys are\nscoped to your organization (all keys in a workspace share one namespace)\nand at most 64 characters (a longer key is refused with 400\n`invalid_idempotency_key` before any work). Duplicates return the cached\nresponse with `cached: true`.\n',
|
|
179
|
+
description: 'Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) \u2192 Settings \u2192 API Keys \u2192 Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@invoice.pdf" \\\n -F \'schema={"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post("https://api.talonic.com/v1/extract",\n headers={"Authorization": "Bearer tlnc_live_abc123"},\n files={"file": open("invoice.pdf", "rb")},\n data={"schema": \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'})\nprint(resp.json()["data"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append("file", fs.createReadStream("invoice.pdf"));\nform.append("schema", \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\');\nconst res = await fetch("https://api.talonic.com/v1/extract", {\n method: "POST",\n headers: { Authorization: "Bearer tlnc_live_abc123" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n "extraction_id": "d1a2b3c4-5678-9abc-def0-1234567890ab",\n "request_id": "req_x7y8z9a0b1c2d3e4",\n "status": "complete",\n "document": {\n "id": "f0e1d2c3-b4a5-9687-8765-432109876543",\n "filename": "invoice.pdf",\n "pages": 2,\n "size_bytes": 184320,\n "type_detected": "Invoice",\n "language_detected": "en"\n },\n "data": {\n "vendor_name": "Acme GmbH",\n "total_amount": 14250.00,\n "invoice_date": "2025-03-15"\n },\n "confidence": {\n "overall": 0.96,\n "fields": {\n "vendor_name": 0.97,\n "total_amount": 0.94,\n "invoice_date": 0.99\n }\n },\n "processing": {\n "duration_ms": 1840,\n "pages_processed": 2,\n "region": "eu-west"\n },\n "links": {\n "self": "/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab",\n "document": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n }\n}\n```\n\n- **`data`** \u2014 extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** \u2014 per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** \u2014 use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode \u2014 see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** \u2014 save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** \u2014 configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (\u22645 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` \u2014 poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {"async": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` \u2014 daily cap for the namespace\n- `X-RateLimit-Remaining` \u2014 requests left today\n- `X-RateLimit-Reset` \u2014 ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1\u2013100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n "statusCode": 400,\n "code": "VALIDATION_ERROR",\n "error": "Bad Request",\n "message": "name is required.",\n "retryable": false,\n "timestamp": "2026-04-25T14:30:00.000Z",\n "path": "/v1/schemas"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n"no stable reason, read `message`". Message prefixes (`insufficient_grant:\n\u2026`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable \u2014 stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest\'s `subscriptions_endpoint`. An owner action \u2014 re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app\'s manifest is fetched from the vendor\'s URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app\'s surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor\'s manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller\'s workspace role (or an OAuth token\'s role claim) ranks below the route\'s tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments \u22645 pages return results synchronously (`200`). Larger documents\n\u2014 or any request with `options: {"async": true}` \u2014 return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@contract.pdf" \\\n -F \'options={"async": true}\'\n```\n\nResponse `202`:\n```json\n{\n "request_id": "req_x7y8z9a0",\n "status": "processing",\n "document": { "id": "f0e1d2c3-b4a5-9687-8765-432109876543" },\n "poll_url": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\nWhile processing: `{ "status": "processing" }`\nWhen done: `{ "status": "completed" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\n**Python \u2014 complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = "tlnc_live_..."\nBASE = "https://api.talonic.com/v1"\nHEADERS = {"Authorization": f"Bearer {API_KEY}"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f"{BASE}/extract",\n headers=HEADERS,\n files={"file": open("contract.pdf", "rb")},\n data={"options": \'{"async": true}\'})\ndoc_id = resp.json()["document"]["id"]\n\n# Step 2: Poll with exponential backoff (2s \u2192 4s \u2192 8s \u2192 16s \u2192 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f"{BASE}/documents/{doc_id}", headers=HEADERS).json()\n if doc["status"] == "completed":\n break\n if doc["status"] == "error":\n raise Exception(f"Extraction failed: {doc.get(\'error\')}")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f"{BASE}/documents/{doc_id}/extractions", headers=HEADERS).json()\ndata = extractions["data"][0]["data"]\nconfidence = extractions["data"][0]["confidence"]["overall"]\nprint(f"Extracted {len(data)} fields (confidence: {confidence})")\nprint(data)\n# \u2192 {"vendor_name": "Acme Corp", "total_amount": 1250.00, ...}\n```\n\n**TypeScript \u2014 same flow:**\n\n```typescript\nconst API_KEY = "tlnc_live_...";\nconst BASE = "https://api.talonic.com/v1";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append("file", fs.createReadStream("contract.pdf"));\nform.append("options", \'{"async": true}\');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: "POST", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === "completed") break;\n if (doc.status === "error") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// \u2192 { vendor_name: "Acme Corp", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2\u21924\u21928\u219216\u219230s cap),\ntimeout after 5 minutes.\n\n**Alternative \u2014 Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` \u2192 `queued` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1\u20135 pages | Sync, <3s | 30s |\n| 6\u201350 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass an `Idempotency-Key` header (at most 64 characters;\na longer key is refused with 400 `invalid_idempotency_key` before any work)\non endpoints that list it. On write endpoints a retry with the same key,\nrequest and API key returns the first response with its original status\nand `Idempotent-Replayed: true`; the same key on a different request or\nfrom another API key answers 422 `idempotency_key_reused`, and a retry\nwhile the first request runs answers 409 `idempotency_request_in_progress`.\n`POST /v1/extract` returns its cached result with `cached: true` to any key\nof the workspace.\n',
|
|
164
180
|
contact: {
|
|
165
181
|
name: "Talonic Support",
|
|
166
182
|
email: "support@talonic.ai",
|
|
@@ -505,6 +521,10 @@ var openapi_default = {
|
|
|
505
521
|
{
|
|
506
522
|
name: "My Data",
|
|
507
523
|
description: "What you brought into the workspace, who can see it, and your sharing decisions. Always your own data, whichever credential asks."
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "Access & sharing",
|
|
527
|
+
description: "Who holds each source, access requests to the holder, and sharing documents or whole sources you hold with members, groups or everyone in the workspace. Always as the credential's person."
|
|
508
528
|
}
|
|
509
529
|
],
|
|
510
530
|
paths: {
|
|
@@ -1961,6 +1981,122 @@ var openapi_default = {
|
|
|
1961
1981
|
}
|
|
1962
1982
|
}
|
|
1963
1983
|
},
|
|
1984
|
+
"/v1/documents/{id}/mail-originals": {
|
|
1985
|
+
get: {
|
|
1986
|
+
operationId: "getDocumentMailOriginals",
|
|
1987
|
+
"x-audience": "public",
|
|
1988
|
+
tags: [
|
|
1989
|
+
"Documents"
|
|
1990
|
+
],
|
|
1991
|
+
summary: "Get the original messages of an email document",
|
|
1992
|
+
description: "The original messages an email document was captured from, as they were\nsent: sender, subject, sent time, the HTML body (pictures shown inside the\nmail embedded) and the plain text. Use it to show an email the way its\nsender wrote it.\n\nThe HTML is returned as the sender wrote it. Show it in a sandbox without\nscripts or remote content. An HTML body larger than 1.5 MB is left out\n(`html` is null) and the text stays. A document that was not captured from\nan email answers an empty `originals` list. At most 200 originals are\nreturned.\n\nAnswers only what the key's person may read: a document that is missing,\nin another workspace, or hidden from that person answers the same `404`.\nRequires the `read` scope (or `documents:read`). Any member of the\nworkspace may call it.\n",
|
|
1993
|
+
security: [
|
|
1994
|
+
{
|
|
1995
|
+
BearerAuth: []
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
"x-required-scopes": [
|
|
1999
|
+
"read"
|
|
2000
|
+
],
|
|
2001
|
+
parameters: [
|
|
2002
|
+
{
|
|
2003
|
+
$ref: "#/components/parameters/ResourceId"
|
|
2004
|
+
}
|
|
2005
|
+
],
|
|
2006
|
+
responses: {
|
|
2007
|
+
"200": {
|
|
2008
|
+
description: "The original messages, in the order they were stored.",
|
|
2009
|
+
content: {
|
|
2010
|
+
"application/json": {
|
|
2011
|
+
schema: {
|
|
2012
|
+
type: "object",
|
|
2013
|
+
required: [
|
|
2014
|
+
"originals"
|
|
2015
|
+
],
|
|
2016
|
+
properties: {
|
|
2017
|
+
originals: {
|
|
2018
|
+
type: "array",
|
|
2019
|
+
items: {
|
|
2020
|
+
type: "object",
|
|
2021
|
+
required: [
|
|
2022
|
+
"asset_id",
|
|
2023
|
+
"message_id",
|
|
2024
|
+
"date",
|
|
2025
|
+
"from",
|
|
2026
|
+
"subject",
|
|
2027
|
+
"html",
|
|
2028
|
+
"text"
|
|
2029
|
+
],
|
|
2030
|
+
properties: {
|
|
2031
|
+
asset_id: {
|
|
2032
|
+
type: "string",
|
|
2033
|
+
format: "uuid",
|
|
2034
|
+
description: "The stored original this message was read from."
|
|
2035
|
+
},
|
|
2036
|
+
message_id: {
|
|
2037
|
+
type: "string",
|
|
2038
|
+
nullable: true,
|
|
2039
|
+
description: "The message's own `Message-ID` header."
|
|
2040
|
+
},
|
|
2041
|
+
date: {
|
|
2042
|
+
type: "string",
|
|
2043
|
+
format: "date-time",
|
|
2044
|
+
nullable: true,
|
|
2045
|
+
description: "When the message was sent."
|
|
2046
|
+
},
|
|
2047
|
+
from: {
|
|
2048
|
+
type: "string",
|
|
2049
|
+
nullable: true
|
|
2050
|
+
},
|
|
2051
|
+
subject: {
|
|
2052
|
+
type: "string",
|
|
2053
|
+
nullable: true
|
|
2054
|
+
},
|
|
2055
|
+
html: {
|
|
2056
|
+
type: "string",
|
|
2057
|
+
nullable: true,
|
|
2058
|
+
description: "The HTML body as sent; null when the mail has none or it is larger than 1.5 MB."
|
|
2059
|
+
},
|
|
2060
|
+
text: {
|
|
2061
|
+
type: "string",
|
|
2062
|
+
nullable: true
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
example: {
|
|
2070
|
+
originals: [
|
|
2071
|
+
{
|
|
2072
|
+
asset_id: "7f1c2b9e-4d3a-4e8b-9a61-0c5d2e8f4b10",
|
|
2073
|
+
message_id: "<CAF9x2k@mail.example.com>",
|
|
2074
|
+
date: "2026-10-02T08:14:00.000Z",
|
|
2075
|
+
from: '"Anna Weber" <anna.weber@example.com>',
|
|
2076
|
+
subject: "Invoice 4471203",
|
|
2077
|
+
html: "<p>Please find the invoice attached.</p>",
|
|
2078
|
+
text: "Please find the invoice attached."
|
|
2079
|
+
}
|
|
2080
|
+
]
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"401": {
|
|
2086
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2087
|
+
},
|
|
2088
|
+
"403": {
|
|
2089
|
+
$ref: "#/components/responses/Forbidden"
|
|
2090
|
+
},
|
|
2091
|
+
"404": {
|
|
2092
|
+
$ref: "#/components/responses/NotFound"
|
|
2093
|
+
},
|
|
2094
|
+
"429": {
|
|
2095
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
1964
2100
|
"/v1/documents/upload-session": {
|
|
1965
2101
|
post: {
|
|
1966
2102
|
operationId: "createUploadSession",
|
|
@@ -3170,6 +3306,73 @@ var openapi_default = {
|
|
|
3170
3306
|
}
|
|
3171
3307
|
}
|
|
3172
3308
|
},
|
|
3309
|
+
"/v1/jobs/{id}/documents/{documentId}": {
|
|
3310
|
+
delete: {
|
|
3311
|
+
tags: [
|
|
3312
|
+
"Jobs & Batches"
|
|
3313
|
+
],
|
|
3314
|
+
summary: "Take a document out of a structuring run",
|
|
3315
|
+
description: "Removes one document from a structuring run. Held to the web route's tier; a document the caller's person may not change answers like one not in the run (404).\n",
|
|
3316
|
+
operationId: "removeJobDocument",
|
|
3317
|
+
"x-audience": "public",
|
|
3318
|
+
"x-required-scopes": [
|
|
3319
|
+
"runs:write"
|
|
3320
|
+
],
|
|
3321
|
+
security: [
|
|
3322
|
+
{
|
|
3323
|
+
BearerAuth: []
|
|
3324
|
+
}
|
|
3325
|
+
],
|
|
3326
|
+
parameters: [
|
|
3327
|
+
{
|
|
3328
|
+
name: "id",
|
|
3329
|
+
in: "path",
|
|
3330
|
+
required: true,
|
|
3331
|
+
schema: {
|
|
3332
|
+
type: "string",
|
|
3333
|
+
format: "uuid"
|
|
3334
|
+
}
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
name: "documentId",
|
|
3338
|
+
in: "path",
|
|
3339
|
+
required: true,
|
|
3340
|
+
schema: {
|
|
3341
|
+
type: "string",
|
|
3342
|
+
format: "uuid"
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
],
|
|
3346
|
+
responses: {
|
|
3347
|
+
"200": {
|
|
3348
|
+
description: "Removed",
|
|
3349
|
+
content: {
|
|
3350
|
+
"application/json": {
|
|
3351
|
+
schema: {
|
|
3352
|
+
type: "object",
|
|
3353
|
+
additionalProperties: true
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
},
|
|
3358
|
+
"400": {
|
|
3359
|
+
$ref: "#/components/responses/BadRequest"
|
|
3360
|
+
},
|
|
3361
|
+
"401": {
|
|
3362
|
+
$ref: "#/components/responses/Unauthorized"
|
|
3363
|
+
},
|
|
3364
|
+
"403": {
|
|
3365
|
+
$ref: "#/components/responses/Forbidden"
|
|
3366
|
+
},
|
|
3367
|
+
"404": {
|
|
3368
|
+
$ref: "#/components/responses/NotFound"
|
|
3369
|
+
},
|
|
3370
|
+
"429": {
|
|
3371
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3173
3376
|
"/v1/jobs/{id}": {
|
|
3174
3377
|
get: {
|
|
3175
3378
|
operationId: "getJob",
|
|
@@ -24047,6 +24250,64 @@ var openapi_default = {
|
|
|
24047
24250
|
}
|
|
24048
24251
|
}
|
|
24049
24252
|
},
|
|
24253
|
+
"/v1/documents/{id}/claims/recompute": {
|
|
24254
|
+
post: {
|
|
24255
|
+
tags: [
|
|
24256
|
+
"Provenance"
|
|
24257
|
+
],
|
|
24258
|
+
summary: "Rebuild a document's claims",
|
|
24259
|
+
description: "Rebuilds the document's claims from its current captured fields. A document the caller's person may not change answers as a missing one does (`claims: 0`).\n",
|
|
24260
|
+
operationId: "recomputeDocumentClaims",
|
|
24261
|
+
"x-audience": "public",
|
|
24262
|
+
"x-required-scopes": [
|
|
24263
|
+
"documents:write"
|
|
24264
|
+
],
|
|
24265
|
+
security: [
|
|
24266
|
+
{
|
|
24267
|
+
BearerAuth: []
|
|
24268
|
+
}
|
|
24269
|
+
],
|
|
24270
|
+
parameters: [
|
|
24271
|
+
{
|
|
24272
|
+
name: "id",
|
|
24273
|
+
in: "path",
|
|
24274
|
+
required: true,
|
|
24275
|
+
schema: {
|
|
24276
|
+
type: "string",
|
|
24277
|
+
format: "uuid"
|
|
24278
|
+
}
|
|
24279
|
+
}
|
|
24280
|
+
],
|
|
24281
|
+
responses: {
|
|
24282
|
+
"200": {
|
|
24283
|
+
description: "Rebuilt",
|
|
24284
|
+
content: {
|
|
24285
|
+
"application/json": {
|
|
24286
|
+
schema: {
|
|
24287
|
+
type: "object",
|
|
24288
|
+
additionalProperties: true
|
|
24289
|
+
}
|
|
24290
|
+
}
|
|
24291
|
+
}
|
|
24292
|
+
},
|
|
24293
|
+
"400": {
|
|
24294
|
+
$ref: "#/components/responses/BadRequest"
|
|
24295
|
+
},
|
|
24296
|
+
"401": {
|
|
24297
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24298
|
+
},
|
|
24299
|
+
"403": {
|
|
24300
|
+
$ref: "#/components/responses/Forbidden"
|
|
24301
|
+
},
|
|
24302
|
+
"404": {
|
|
24303
|
+
$ref: "#/components/responses/NotFound"
|
|
24304
|
+
},
|
|
24305
|
+
"429": {
|
|
24306
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24307
|
+
}
|
|
24308
|
+
}
|
|
24309
|
+
}
|
|
24310
|
+
},
|
|
24050
24311
|
"/v1/documents/{id}/claims": {
|
|
24051
24312
|
get: {
|
|
24052
24313
|
tags: [
|
|
@@ -31229,6 +31490,7 @@ var openapi_default = {
|
|
|
31229
31490
|
operationId: "getAppRunEvents",
|
|
31230
31491
|
"x-audience": "public",
|
|
31231
31492
|
summary: "Run journal (append-only, ordered)",
|
|
31493
|
+
description: "404 when the run names a document the caller cannot read (the journal carries the decision).",
|
|
31232
31494
|
tags: [
|
|
31233
31495
|
"Apps"
|
|
31234
31496
|
],
|
|
@@ -31246,6 +31508,9 @@ var openapi_default = {
|
|
|
31246
31508
|
responses: {
|
|
31247
31509
|
"200": {
|
|
31248
31510
|
description: "Journal events."
|
|
31511
|
+
},
|
|
31512
|
+
"404": {
|
|
31513
|
+
$ref: "#/components/responses/NotFound"
|
|
31249
31514
|
}
|
|
31250
31515
|
}
|
|
31251
31516
|
}
|
|
@@ -31758,7 +32023,7 @@ var openapi_default = {
|
|
|
31758
32023
|
operationId: "getAppRunRecord",
|
|
31759
32024
|
"x-audience": "public",
|
|
31760
32025
|
summary: "Sealed decision record (the export; 404 until the run seals)",
|
|
31761
|
-
description: "Reading the sealed record is an audited export (app.record_exported).",
|
|
32026
|
+
description: "Reading the sealed record is an audited export (app.record_exported). 404 also when the run names a document the caller cannot read.",
|
|
31762
32027
|
tags: [
|
|
31763
32028
|
"Apps"
|
|
31764
32029
|
],
|
|
@@ -54063,144 +54328,65 @@ var openapi_default = {
|
|
|
54063
54328
|
}
|
|
54064
54329
|
}
|
|
54065
54330
|
},
|
|
54066
|
-
"/v1/sources/
|
|
54331
|
+
"/v1/sources/egress": {
|
|
54332
|
+
get: {
|
|
54333
|
+
operationId: "getSourceEgress",
|
|
54334
|
+
"x-audience": "public",
|
|
54335
|
+
"x-required-scopes": [
|
|
54336
|
+
"read"
|
|
54337
|
+
],
|
|
54338
|
+
summary: "Get the workspace's dedicated egress IPs",
|
|
54339
|
+
description: "Whether Talonic has given this workspace dedicated sync egress: every source then connects from fixed IP addresses that a customer firewall can allow. `ips` lists them when `enabled` is true and is empty otherwise.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
54340
|
+
tags: [
|
|
54341
|
+
"Sources"
|
|
54342
|
+
],
|
|
54343
|
+
responses: {
|
|
54344
|
+
"200": {
|
|
54345
|
+
description: "Egress state of the workspace.",
|
|
54346
|
+
content: {
|
|
54347
|
+
"application/json": {
|
|
54348
|
+
schema: {
|
|
54349
|
+
type: "object",
|
|
54350
|
+
required: [
|
|
54351
|
+
"enabled",
|
|
54352
|
+
"ips"
|
|
54353
|
+
],
|
|
54354
|
+
properties: {
|
|
54355
|
+
enabled: {
|
|
54356
|
+
type: "boolean"
|
|
54357
|
+
},
|
|
54358
|
+
ips: {
|
|
54359
|
+
type: "array",
|
|
54360
|
+
items: {
|
|
54361
|
+
type: "string"
|
|
54362
|
+
}
|
|
54363
|
+
}
|
|
54364
|
+
}
|
|
54365
|
+
}
|
|
54366
|
+
}
|
|
54367
|
+
}
|
|
54368
|
+
},
|
|
54369
|
+
"401": {
|
|
54370
|
+
$ref: "#/components/responses/Unauthorized"
|
|
54371
|
+
},
|
|
54372
|
+
"403": {
|
|
54373
|
+
$ref: "#/components/responses/Forbidden"
|
|
54374
|
+
},
|
|
54375
|
+
"429": {
|
|
54376
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
54377
|
+
}
|
|
54378
|
+
}
|
|
54379
|
+
}
|
|
54380
|
+
},
|
|
54381
|
+
"/v1/sources/slack/sign-in": {
|
|
54067
54382
|
get: {
|
|
54068
|
-
operationId: "
|
|
54383
|
+
operationId: "getSlackSignInAvailability",
|
|
54069
54384
|
"x-audience": "public",
|
|
54070
54385
|
"x-required-scopes": [
|
|
54071
54386
|
"read"
|
|
54072
54387
|
],
|
|
54073
|
-
summary: "Check
|
|
54074
|
-
description: "Whether this
|
|
54075
|
-
tags: [
|
|
54076
|
-
"Sources"
|
|
54077
|
-
],
|
|
54078
|
-
responses: {
|
|
54079
|
-
"200": {
|
|
54080
|
-
description: "Availability.",
|
|
54081
|
-
content: {
|
|
54082
|
-
"application/json": {
|
|
54083
|
-
schema: {
|
|
54084
|
-
type: "object",
|
|
54085
|
-
required: [
|
|
54086
|
-
"available"
|
|
54087
|
-
],
|
|
54088
|
-
properties: {
|
|
54089
|
-
available: {
|
|
54090
|
-
type: "boolean"
|
|
54091
|
-
}
|
|
54092
|
-
}
|
|
54093
|
-
}
|
|
54094
|
-
}
|
|
54095
|
-
}
|
|
54096
|
-
},
|
|
54097
|
-
"401": {
|
|
54098
|
-
$ref: "#/components/responses/Unauthorized"
|
|
54099
|
-
},
|
|
54100
|
-
"403": {
|
|
54101
|
-
$ref: "#/components/responses/Forbidden"
|
|
54102
|
-
},
|
|
54103
|
-
"429": {
|
|
54104
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
54105
|
-
}
|
|
54106
|
-
}
|
|
54107
|
-
}
|
|
54108
|
-
},
|
|
54109
|
-
"/v1/sources/kendox/dedicated-egress": {
|
|
54110
|
-
get: {
|
|
54111
|
-
operationId: "getKendoxDedicatedEgress",
|
|
54112
|
-
"x-audience": "public",
|
|
54113
|
-
"x-required-scopes": [
|
|
54114
|
-
"read"
|
|
54115
|
-
],
|
|
54116
|
-
summary: "Check dedicated egress for Kendox",
|
|
54117
|
-
description: "Whether this workspace may route Kendox connections through a fixed outbound address, for a system that only accepts traffic from allowlisted addresses. The same answer is served for Amazon S3, Kendox and SQL.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
54118
|
-
tags: [
|
|
54119
|
-
"Sources"
|
|
54120
|
-
],
|
|
54121
|
-
responses: {
|
|
54122
|
-
"200": {
|
|
54123
|
-
description: "Availability.",
|
|
54124
|
-
content: {
|
|
54125
|
-
"application/json": {
|
|
54126
|
-
schema: {
|
|
54127
|
-
type: "object",
|
|
54128
|
-
required: [
|
|
54129
|
-
"available"
|
|
54130
|
-
],
|
|
54131
|
-
properties: {
|
|
54132
|
-
available: {
|
|
54133
|
-
type: "boolean"
|
|
54134
|
-
}
|
|
54135
|
-
}
|
|
54136
|
-
}
|
|
54137
|
-
}
|
|
54138
|
-
}
|
|
54139
|
-
},
|
|
54140
|
-
"401": {
|
|
54141
|
-
$ref: "#/components/responses/Unauthorized"
|
|
54142
|
-
},
|
|
54143
|
-
"403": {
|
|
54144
|
-
$ref: "#/components/responses/Forbidden"
|
|
54145
|
-
},
|
|
54146
|
-
"429": {
|
|
54147
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
54148
|
-
}
|
|
54149
|
-
}
|
|
54150
|
-
}
|
|
54151
|
-
},
|
|
54152
|
-
"/v1/sources/sql/dedicated-egress": {
|
|
54153
|
-
get: {
|
|
54154
|
-
operationId: "getSqlDedicatedEgress",
|
|
54155
|
-
"x-audience": "public",
|
|
54156
|
-
"x-required-scopes": [
|
|
54157
|
-
"read"
|
|
54158
|
-
],
|
|
54159
|
-
summary: "Check dedicated egress for SQL",
|
|
54160
|
-
description: "Whether this workspace may route SQL connections through a fixed outbound address, for a system that only accepts traffic from allowlisted addresses. The same answer is served for Amazon S3, Kendox and SQL.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
54161
|
-
tags: [
|
|
54162
|
-
"Sources"
|
|
54163
|
-
],
|
|
54164
|
-
responses: {
|
|
54165
|
-
"200": {
|
|
54166
|
-
description: "Availability.",
|
|
54167
|
-
content: {
|
|
54168
|
-
"application/json": {
|
|
54169
|
-
schema: {
|
|
54170
|
-
type: "object",
|
|
54171
|
-
required: [
|
|
54172
|
-
"available"
|
|
54173
|
-
],
|
|
54174
|
-
properties: {
|
|
54175
|
-
available: {
|
|
54176
|
-
type: "boolean"
|
|
54177
|
-
}
|
|
54178
|
-
}
|
|
54179
|
-
}
|
|
54180
|
-
}
|
|
54181
|
-
}
|
|
54182
|
-
},
|
|
54183
|
-
"401": {
|
|
54184
|
-
$ref: "#/components/responses/Unauthorized"
|
|
54185
|
-
},
|
|
54186
|
-
"403": {
|
|
54187
|
-
$ref: "#/components/responses/Forbidden"
|
|
54188
|
-
},
|
|
54189
|
-
"429": {
|
|
54190
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
54191
|
-
}
|
|
54192
|
-
}
|
|
54193
|
-
}
|
|
54194
|
-
},
|
|
54195
|
-
"/v1/sources/slack/sign-in": {
|
|
54196
|
-
get: {
|
|
54197
|
-
operationId: "getSlackSignInAvailability",
|
|
54198
|
-
"x-audience": "public",
|
|
54199
|
-
"x-required-scopes": [
|
|
54200
|
-
"read"
|
|
54201
|
-
],
|
|
54202
|
-
summary: "Check Slack sign-in availability",
|
|
54203
|
-
description: "Whether this deployment offers connecting Slack through a browser sign-in (`POST /v1/integrations/slack/authorize`). When it does not, connect Slack with a token (`POST /v1/sources/connections/slack`).\n\n**Scope:** `read` or `sources:read`.\n",
|
|
54388
|
+
summary: "Check Slack sign-in availability",
|
|
54389
|
+
description: "Whether this deployment offers connecting Slack through a browser sign-in (`POST /v1/integrations/slack/authorize`). When it does not, connect Slack with a token (`POST /v1/sources/connections/slack`).\n\n**Scope:** `read` or `sources:read`.\n",
|
|
54204
54390
|
tags: [
|
|
54205
54391
|
"Sources"
|
|
54206
54392
|
],
|
|
@@ -54289,10 +54475,6 @@ var openapi_default = {
|
|
|
54289
54475
|
type: "string",
|
|
54290
54476
|
maxLength: 255,
|
|
54291
54477
|
description: "Bucket name."
|
|
54292
|
-
},
|
|
54293
|
-
dedicated_egress: {
|
|
54294
|
-
type: "boolean",
|
|
54295
|
-
description: "Route every call through the workspace's fixed outbound address (see `GET /v1/sources/s3/dedicated-egress`)."
|
|
54296
54478
|
}
|
|
54297
54479
|
}
|
|
54298
54480
|
}
|
|
@@ -54614,10 +54796,6 @@ var openapi_default = {
|
|
|
54614
54796
|
maxLength: 1e3,
|
|
54615
54797
|
writeOnly: true,
|
|
54616
54798
|
description: "Password, for `auth_mode: password`. Write-only."
|
|
54617
|
-
},
|
|
54618
|
-
dedicated_egress: {
|
|
54619
|
-
type: "boolean",
|
|
54620
|
-
description: "Route every call through the workspace's fixed outbound address."
|
|
54621
54799
|
}
|
|
54622
54800
|
}
|
|
54623
54801
|
}
|
|
@@ -54693,10 +54871,6 @@ var openapi_default = {
|
|
|
54693
54871
|
maxLength: 2048,
|
|
54694
54872
|
writeOnly: true,
|
|
54695
54873
|
description: "Connection string including credentials. Write-only."
|
|
54696
|
-
},
|
|
54697
|
-
dedicated_egress: {
|
|
54698
|
-
type: "boolean",
|
|
54699
|
-
description: "Connect through the workspace's fixed outbound address."
|
|
54700
54874
|
}
|
|
54701
54875
|
}
|
|
54702
54876
|
}
|
|
@@ -55945,10 +56119,6 @@ var openapi_default = {
|
|
|
55945
56119
|
quick_extraction: {
|
|
55946
56120
|
type: "boolean",
|
|
55947
56121
|
description: "Use quick extraction for files brought in from this connection."
|
|
55948
|
-
},
|
|
55949
|
-
dedicated_egress: {
|
|
55950
|
-
type: "boolean",
|
|
55951
|
-
description: "Route every call through the workspace's fixed outbound address; turning it on checks the bucket is reachable that way first."
|
|
55952
56122
|
}
|
|
55953
56123
|
}
|
|
55954
56124
|
}
|
|
@@ -56019,10 +56189,6 @@ var openapi_default = {
|
|
|
56019
56189
|
type: "string",
|
|
56020
56190
|
pattern: "^[a-z]{2}(-[A-Za-z]{2})?$",
|
|
56021
56191
|
description: "Language for localized Kendox names, e.g. `de`, `en`, `de-CH`."
|
|
56022
|
-
},
|
|
56023
|
-
dedicated_egress: {
|
|
56024
|
-
type: "boolean",
|
|
56025
|
-
description: "Route every call through the workspace's fixed outbound address."
|
|
56026
56192
|
}
|
|
56027
56193
|
}
|
|
56028
56194
|
}
|
|
@@ -56094,10 +56260,6 @@ var openapi_default = {
|
|
|
56094
56260
|
minLength: 1,
|
|
56095
56261
|
maxLength: 255,
|
|
56096
56262
|
description: "New display name."
|
|
56097
|
-
},
|
|
56098
|
-
dedicated_egress: {
|
|
56099
|
-
type: "boolean",
|
|
56100
|
-
description: "Connect through the workspace's fixed outbound address; turning it on checks the database is reachable that way first."
|
|
56101
56263
|
}
|
|
56102
56264
|
}
|
|
56103
56265
|
}
|
|
@@ -57025,7 +57187,7 @@ var openapi_default = {
|
|
|
57025
57187
|
"documents:write"
|
|
57026
57188
|
],
|
|
57027
57189
|
summary: "Import files from a connection",
|
|
57028
|
-
description: "Brings the named files (ids from `GET /v1/sources/{id}/browse`) in as documents of the workspace, attributed to the caller's person, and processes them. Files already imported are skipped. A personal connection can be imported from only by the person who connected it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57190
|
+
description: "Brings the named files (ids from `GET /v1/sources/{id}/browse`) in as documents of the workspace, attributed to the caller's person, and processes them. Files already imported are skipped. A personal connection can be imported from only by the person who connected it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Two ways.** Without `async` the call imports before it answers (`201` with what was imported, skipped or failed): fit for a few files, since every file is fetched and read inside the request. With `async: true` the import is recorded and answered at once (`202` with the import run), then carried out in the background as the same person; read its progress and outcome from `GET /v1/sources/{id}/import-runs/{runId}`. Files that fail do not stop the others, and importing the same selection again brings in only what is not in yet. `folder_ids` (a mail, a thread, a directory: the files directly inside each are imported) exist only with `async: true`.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57029
57191
|
tags: [
|
|
57030
57192
|
"Sources"
|
|
57031
57193
|
],
|
|
@@ -57040,9 +57202,6 @@ var openapi_default = {
|
|
|
57040
57202
|
"application/json": {
|
|
57041
57203
|
schema: {
|
|
57042
57204
|
type: "object",
|
|
57043
|
-
required: [
|
|
57044
|
-
"file_ids"
|
|
57045
|
-
],
|
|
57046
57205
|
properties: {
|
|
57047
57206
|
file_ids: {
|
|
57048
57207
|
type: "array",
|
|
@@ -57051,7 +57210,20 @@ var openapi_default = {
|
|
|
57051
57210
|
items: {
|
|
57052
57211
|
type: "string"
|
|
57053
57212
|
},
|
|
57054
|
-
description: "File ids to import."
|
|
57213
|
+
description: "File ids to import. Required unless `async` is true and `folder_ids` names something."
|
|
57214
|
+
},
|
|
57215
|
+
folder_ids: {
|
|
57216
|
+
type: "array",
|
|
57217
|
+
maxItems: 500,
|
|
57218
|
+
items: {
|
|
57219
|
+
type: "string"
|
|
57220
|
+
},
|
|
57221
|
+
description: "Folder ids from browse (a mail, a thread, a directory). The files directly inside each are imported; each folder counts as one item of the run. Only with `async: true`.\n"
|
|
57222
|
+
},
|
|
57223
|
+
async: {
|
|
57224
|
+
type: "boolean",
|
|
57225
|
+
default: false,
|
|
57226
|
+
description: "True records the import and answers `202` with the run; the files are imported in the background."
|
|
57055
57227
|
},
|
|
57056
57228
|
tags: {
|
|
57057
57229
|
type: "array",
|
|
@@ -57068,7 +57240,7 @@ var openapi_default = {
|
|
|
57068
57240
|
},
|
|
57069
57241
|
responses: {
|
|
57070
57242
|
"201": {
|
|
57071
|
-
description: "What was imported, skipped or failed.",
|
|
57243
|
+
description: "Without `async`. What was imported, skipped or failed.",
|
|
57072
57244
|
content: {
|
|
57073
57245
|
"application/json": {
|
|
57074
57246
|
schema: {
|
|
@@ -57077,55 +57249,19 @@ var openapi_default = {
|
|
|
57077
57249
|
}
|
|
57078
57250
|
}
|
|
57079
57251
|
},
|
|
57080
|
-
"
|
|
57081
|
-
|
|
57082
|
-
},
|
|
57083
|
-
"401": {
|
|
57084
|
-
$ref: "#/components/responses/Unauthorized"
|
|
57085
|
-
},
|
|
57086
|
-
"403": {
|
|
57087
|
-
$ref: "#/components/responses/Forbidden"
|
|
57088
|
-
},
|
|
57089
|
-
"404": {
|
|
57090
|
-
$ref: "#/components/responses/NotFound"
|
|
57091
|
-
},
|
|
57092
|
-
"429": {
|
|
57093
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
57094
|
-
}
|
|
57095
|
-
}
|
|
57096
|
-
}
|
|
57097
|
-
},
|
|
57098
|
-
"/v1/sources/{id}/imports": {
|
|
57099
|
-
get: {
|
|
57100
|
-
operationId: "listSourceImports",
|
|
57101
|
-
"x-audience": "public",
|
|
57102
|
-
"x-required-scopes": [
|
|
57103
|
-
"read"
|
|
57104
|
-
],
|
|
57105
|
-
summary: "List imports from a connection",
|
|
57106
|
-
description: "What was brought in from the connection, one entry per imported file. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
57107
|
-
tags: [
|
|
57108
|
-
"Sources"
|
|
57109
|
-
],
|
|
57110
|
-
parameters: [
|
|
57111
|
-
{
|
|
57112
|
-
$ref: "#/components/parameters/ResourceId"
|
|
57113
|
-
}
|
|
57114
|
-
],
|
|
57115
|
-
responses: {
|
|
57116
|
-
"200": {
|
|
57117
|
-
description: "The imports.",
|
|
57252
|
+
"202": {
|
|
57253
|
+
description: "With `async: true`. The import run, still queued.",
|
|
57118
57254
|
content: {
|
|
57119
57255
|
"application/json": {
|
|
57120
57256
|
schema: {
|
|
57121
|
-
|
|
57122
|
-
items: {
|
|
57123
|
-
$ref: "#/components/schemas/SourceImport"
|
|
57124
|
-
}
|
|
57257
|
+
$ref: "#/components/schemas/SourceImportRun"
|
|
57125
57258
|
}
|
|
57126
57259
|
}
|
|
57127
57260
|
}
|
|
57128
57261
|
},
|
|
57262
|
+
"400": {
|
|
57263
|
+
$ref: "#/components/responses/BadRequest"
|
|
57264
|
+
},
|
|
57129
57265
|
"401": {
|
|
57130
57266
|
$ref: "#/components/responses/Unauthorized"
|
|
57131
57267
|
},
|
|
@@ -57141,15 +57277,15 @@ var openapi_default = {
|
|
|
57141
57277
|
}
|
|
57142
57278
|
}
|
|
57143
57279
|
},
|
|
57144
|
-
"/v1/sources/{id}/
|
|
57145
|
-
|
|
57146
|
-
operationId: "
|
|
57280
|
+
"/v1/sources/{id}/import-runs": {
|
|
57281
|
+
get: {
|
|
57282
|
+
operationId: "listSourceImportRuns",
|
|
57147
57283
|
"x-audience": "public",
|
|
57148
57284
|
"x-required-scopes": [
|
|
57149
|
-
"
|
|
57285
|
+
"read"
|
|
57150
57286
|
],
|
|
57151
|
-
summary: "
|
|
57152
|
-
description: "
|
|
57287
|
+
summary: "List import runs of a connection",
|
|
57288
|
+
description: "The connection's latest import runs (imports started with `async: true`, or from the Sources page), newest first, without their failure lists. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
57153
57289
|
tags: [
|
|
57154
57290
|
"Sources"
|
|
57155
57291
|
],
|
|
@@ -57158,35 +57294,27 @@ var openapi_default = {
|
|
|
57158
57294
|
$ref: "#/components/parameters/ResourceId"
|
|
57159
57295
|
},
|
|
57160
57296
|
{
|
|
57161
|
-
name: "
|
|
57162
|
-
in: "
|
|
57163
|
-
required:
|
|
57297
|
+
name: "open",
|
|
57298
|
+
in: "query",
|
|
57299
|
+
required: false,
|
|
57164
57300
|
schema: {
|
|
57165
|
-
type: "
|
|
57166
|
-
format: "uuid"
|
|
57301
|
+
type: "boolean"
|
|
57167
57302
|
},
|
|
57168
|
-
description: "
|
|
57303
|
+
description: "True keeps only runs that are still queued or running."
|
|
57169
57304
|
}
|
|
57170
57305
|
],
|
|
57171
57306
|
responses: {
|
|
57172
|
-
"
|
|
57173
|
-
description: "
|
|
57307
|
+
"200": {
|
|
57308
|
+
description: "The runs.",
|
|
57174
57309
|
content: {
|
|
57175
57310
|
"application/json": {
|
|
57176
57311
|
schema: {
|
|
57177
57312
|
type: "object",
|
|
57178
57313
|
properties: {
|
|
57179
|
-
|
|
57180
|
-
type: "string",
|
|
57181
|
-
enum: [
|
|
57182
|
-
"up_to_date",
|
|
57183
|
-
"refreshed"
|
|
57184
|
-
]
|
|
57185
|
-
},
|
|
57186
|
-
new_attachments: {
|
|
57314
|
+
data: {
|
|
57187
57315
|
type: "array",
|
|
57188
57316
|
items: {
|
|
57189
|
-
|
|
57317
|
+
$ref: "#/components/schemas/SourceImportRun"
|
|
57190
57318
|
}
|
|
57191
57319
|
}
|
|
57192
57320
|
}
|
|
@@ -57203,55 +57331,225 @@ var openapi_default = {
|
|
|
57203
57331
|
"403": {
|
|
57204
57332
|
$ref: "#/components/responses/Forbidden"
|
|
57205
57333
|
},
|
|
57206
|
-
"404": {
|
|
57207
|
-
$ref: "#/components/responses/NotFound"
|
|
57208
|
-
},
|
|
57209
57334
|
"429": {
|
|
57210
57335
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
57211
57336
|
}
|
|
57212
57337
|
}
|
|
57213
57338
|
}
|
|
57214
57339
|
},
|
|
57215
|
-
"/v1/sources/{id}/
|
|
57216
|
-
|
|
57217
|
-
operationId: "
|
|
57340
|
+
"/v1/sources/{id}/import-runs/{runId}": {
|
|
57341
|
+
get: {
|
|
57342
|
+
operationId: "getSourceImportRun",
|
|
57218
57343
|
"x-audience": "public",
|
|
57219
57344
|
"x-required-scopes": [
|
|
57220
|
-
"
|
|
57345
|
+
"read"
|
|
57221
57346
|
],
|
|
57222
|
-
summary: "
|
|
57223
|
-
description: "
|
|
57347
|
+
summary: "Read one import run",
|
|
57348
|
+
description: "Progress and outcome of one import run: how many items were asked for, how many are in, how many failed, and for each failure which item and why. `running` is true until the run has finished. Items already in stay in when others fail. Reads of a personal connection answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
57224
57349
|
tags: [
|
|
57225
57350
|
"Sources"
|
|
57226
57351
|
],
|
|
57227
57352
|
parameters: [
|
|
57228
57353
|
{
|
|
57229
57354
|
$ref: "#/components/parameters/ResourceId"
|
|
57355
|
+
},
|
|
57356
|
+
{
|
|
57357
|
+
name: "runId",
|
|
57358
|
+
in: "path",
|
|
57359
|
+
required: true,
|
|
57360
|
+
schema: {
|
|
57361
|
+
type: "string",
|
|
57362
|
+
format: "uuid"
|
|
57363
|
+
},
|
|
57364
|
+
description: "Import run UUID from `POST /v1/sources/{id}/import` (`async: true`) or `GET /v1/sources/{id}/import-runs`."
|
|
57230
57365
|
}
|
|
57231
57366
|
],
|
|
57232
57367
|
responses: {
|
|
57233
57368
|
"200": {
|
|
57234
|
-
description: "
|
|
57369
|
+
description: "The run, with its failures named.",
|
|
57235
57370
|
content: {
|
|
57236
57371
|
"application/json": {
|
|
57237
57372
|
schema: {
|
|
57238
|
-
|
|
57239
|
-
|
|
57240
|
-
|
|
57241
|
-
|
|
57242
|
-
|
|
57243
|
-
|
|
57244
|
-
|
|
57245
|
-
|
|
57246
|
-
|
|
57247
|
-
|
|
57248
|
-
|
|
57249
|
-
|
|
57250
|
-
|
|
57251
|
-
|
|
57252
|
-
|
|
57253
|
-
|
|
57254
|
-
|
|
57373
|
+
$ref: "#/components/schemas/SourceImportRun"
|
|
57374
|
+
}
|
|
57375
|
+
}
|
|
57376
|
+
}
|
|
57377
|
+
},
|
|
57378
|
+
"400": {
|
|
57379
|
+
$ref: "#/components/responses/BadRequest"
|
|
57380
|
+
},
|
|
57381
|
+
"401": {
|
|
57382
|
+
$ref: "#/components/responses/Unauthorized"
|
|
57383
|
+
},
|
|
57384
|
+
"403": {
|
|
57385
|
+
$ref: "#/components/responses/Forbidden"
|
|
57386
|
+
},
|
|
57387
|
+
"404": {
|
|
57388
|
+
$ref: "#/components/responses/NotFound"
|
|
57389
|
+
},
|
|
57390
|
+
"429": {
|
|
57391
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
57392
|
+
}
|
|
57393
|
+
}
|
|
57394
|
+
}
|
|
57395
|
+
},
|
|
57396
|
+
"/v1/sources/{id}/imports": {
|
|
57397
|
+
get: {
|
|
57398
|
+
operationId: "listSourceImports",
|
|
57399
|
+
"x-audience": "public",
|
|
57400
|
+
"x-required-scopes": [
|
|
57401
|
+
"read"
|
|
57402
|
+
],
|
|
57403
|
+
summary: "List imports from a connection",
|
|
57404
|
+
description: "What was brought in from the connection, one entry per imported file. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
|
|
57405
|
+
tags: [
|
|
57406
|
+
"Sources"
|
|
57407
|
+
],
|
|
57408
|
+
parameters: [
|
|
57409
|
+
{
|
|
57410
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57411
|
+
}
|
|
57412
|
+
],
|
|
57413
|
+
responses: {
|
|
57414
|
+
"200": {
|
|
57415
|
+
description: "The imports.",
|
|
57416
|
+
content: {
|
|
57417
|
+
"application/json": {
|
|
57418
|
+
schema: {
|
|
57419
|
+
type: "array",
|
|
57420
|
+
items: {
|
|
57421
|
+
$ref: "#/components/schemas/SourceImport"
|
|
57422
|
+
}
|
|
57423
|
+
}
|
|
57424
|
+
}
|
|
57425
|
+
}
|
|
57426
|
+
},
|
|
57427
|
+
"401": {
|
|
57428
|
+
$ref: "#/components/responses/Unauthorized"
|
|
57429
|
+
},
|
|
57430
|
+
"403": {
|
|
57431
|
+
$ref: "#/components/responses/Forbidden"
|
|
57432
|
+
},
|
|
57433
|
+
"404": {
|
|
57434
|
+
$ref: "#/components/responses/NotFound"
|
|
57435
|
+
},
|
|
57436
|
+
"429": {
|
|
57437
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
57438
|
+
}
|
|
57439
|
+
}
|
|
57440
|
+
}
|
|
57441
|
+
},
|
|
57442
|
+
"/v1/sources/{id}/imports/{importId}/resync": {
|
|
57443
|
+
post: {
|
|
57444
|
+
operationId: "resyncSourceImport",
|
|
57445
|
+
"x-audience": "public",
|
|
57446
|
+
"x-required-scopes": [
|
|
57447
|
+
"documents:write"
|
|
57448
|
+
],
|
|
57449
|
+
summary: "Read a Microsoft Teams import again",
|
|
57450
|
+
description: "Reads one imported Microsoft Teams conversation period again and brings in what is new; unchanged content is not processed again. A personal connection can be read again only by the person who connected it.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57451
|
+
tags: [
|
|
57452
|
+
"Sources"
|
|
57453
|
+
],
|
|
57454
|
+
parameters: [
|
|
57455
|
+
{
|
|
57456
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57457
|
+
},
|
|
57458
|
+
{
|
|
57459
|
+
name: "importId",
|
|
57460
|
+
in: "path",
|
|
57461
|
+
required: true,
|
|
57462
|
+
schema: {
|
|
57463
|
+
type: "string",
|
|
57464
|
+
format: "uuid"
|
|
57465
|
+
},
|
|
57466
|
+
description: "Import UUID from `GET /v1/sources/{id}/imports`."
|
|
57467
|
+
}
|
|
57468
|
+
],
|
|
57469
|
+
responses: {
|
|
57470
|
+
"201": {
|
|
57471
|
+
description: "Whether anything changed.",
|
|
57472
|
+
content: {
|
|
57473
|
+
"application/json": {
|
|
57474
|
+
schema: {
|
|
57475
|
+
type: "object",
|
|
57476
|
+
properties: {
|
|
57477
|
+
status: {
|
|
57478
|
+
type: "string",
|
|
57479
|
+
enum: [
|
|
57480
|
+
"up_to_date",
|
|
57481
|
+
"refreshed"
|
|
57482
|
+
]
|
|
57483
|
+
},
|
|
57484
|
+
new_attachments: {
|
|
57485
|
+
type: "array",
|
|
57486
|
+
items: {
|
|
57487
|
+
type: "string"
|
|
57488
|
+
}
|
|
57489
|
+
}
|
|
57490
|
+
}
|
|
57491
|
+
}
|
|
57492
|
+
}
|
|
57493
|
+
}
|
|
57494
|
+
},
|
|
57495
|
+
"400": {
|
|
57496
|
+
$ref: "#/components/responses/BadRequest"
|
|
57497
|
+
},
|
|
57498
|
+
"401": {
|
|
57499
|
+
$ref: "#/components/responses/Unauthorized"
|
|
57500
|
+
},
|
|
57501
|
+
"403": {
|
|
57502
|
+
$ref: "#/components/responses/Forbidden"
|
|
57503
|
+
},
|
|
57504
|
+
"404": {
|
|
57505
|
+
$ref: "#/components/responses/NotFound"
|
|
57506
|
+
},
|
|
57507
|
+
"429": {
|
|
57508
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
57509
|
+
}
|
|
57510
|
+
}
|
|
57511
|
+
}
|
|
57512
|
+
},
|
|
57513
|
+
"/v1/sources/{id}/make-private": {
|
|
57514
|
+
post: {
|
|
57515
|
+
operationId: "makeSourceConnectionPrivate",
|
|
57516
|
+
"x-audience": "public",
|
|
57517
|
+
"x-required-scopes": [
|
|
57518
|
+
"sources:write"
|
|
57519
|
+
],
|
|
57520
|
+
summary: "Make a connection private",
|
|
57521
|
+
description: "Restricts what the connection holds to the person who connected it (and the people they name). Idempotent: when a rule already restricts the connection, `created` is false. Allowed to the person who connected it, a member with the Integrations permission, or an owner.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57522
|
+
tags: [
|
|
57523
|
+
"Sources"
|
|
57524
|
+
],
|
|
57525
|
+
parameters: [
|
|
57526
|
+
{
|
|
57527
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57528
|
+
}
|
|
57529
|
+
],
|
|
57530
|
+
responses: {
|
|
57531
|
+
"200": {
|
|
57532
|
+
description: "Whether a restriction was added.",
|
|
57533
|
+
content: {
|
|
57534
|
+
"application/json": {
|
|
57535
|
+
schema: {
|
|
57536
|
+
type: "object",
|
|
57537
|
+
required: [
|
|
57538
|
+
"created"
|
|
57539
|
+
],
|
|
57540
|
+
properties: {
|
|
57541
|
+
created: {
|
|
57542
|
+
type: "boolean"
|
|
57543
|
+
},
|
|
57544
|
+
rule: {
|
|
57545
|
+
type: "object",
|
|
57546
|
+
additionalProperties: true,
|
|
57547
|
+
description: "The visibility rule that was added."
|
|
57548
|
+
},
|
|
57549
|
+
message: {
|
|
57550
|
+
type: "string"
|
|
57551
|
+
}
|
|
57552
|
+
}
|
|
57255
57553
|
}
|
|
57256
57554
|
}
|
|
57257
57555
|
}
|
|
@@ -65164,7 +65462,7 @@ var openapi_default = {
|
|
|
65164
65462
|
"Documents"
|
|
65165
65463
|
],
|
|
65166
65464
|
summary: "Process a skipped duplicate anyway",
|
|
65167
|
-
description: "Creates a new document that reuses an existing document's content and values, without reading the file again. The existing document must be visible to the key's person. Send an `Idempotency-Key` header to make retries safe: the same key within 24 hours
|
|
65465
|
+
description: "Creates a new document that reuses an existing document's content and values, without reading the file again. The existing document must be visible to the key's person. Send an `Idempotency-Key` header to make retries safe: the same request with the same key from the same API key within 24 hours returns the first copy with its original status and `Idempotent-Replayed: true` instead of creating another; the same key with a different body, or from another API key, answers 422 `idempotency_key_reused`; a retry while the first call still runs answers 409 `idempotency_request_in_progress`. Requires the `documents:write` scope. The key's person needs the `ingest` permission (Contract Management and above by default), as in the web app.",
|
|
65168
65466
|
security: [
|
|
65169
65467
|
{
|
|
65170
65468
|
BearerAuth: []
|
|
@@ -65175,14 +65473,7 @@ var openapi_default = {
|
|
|
65175
65473
|
],
|
|
65176
65474
|
parameters: [
|
|
65177
65475
|
{
|
|
65178
|
-
|
|
65179
|
-
in: "header",
|
|
65180
|
-
required: false,
|
|
65181
|
-
description: "Up to 255 characters; remembered for 24 hours per workspace.",
|
|
65182
|
-
schema: {
|
|
65183
|
-
type: "string",
|
|
65184
|
-
maxLength: 255
|
|
65185
|
-
}
|
|
65476
|
+
$ref: "#/components/parameters/IdempotencyKey"
|
|
65186
65477
|
}
|
|
65187
65478
|
],
|
|
65188
65479
|
requestBody: {
|
|
@@ -65220,19 +65511,20 @@ var openapi_default = {
|
|
|
65220
65511
|
}
|
|
65221
65512
|
},
|
|
65222
65513
|
responses: {
|
|
65223
|
-
"
|
|
65224
|
-
description: "
|
|
65225
|
-
|
|
65226
|
-
"
|
|
65514
|
+
"201": {
|
|
65515
|
+
description: "The new document. On a retry with the same Idempotency-Key, the first copy with `Idempotent-Replayed: true`.",
|
|
65516
|
+
headers: {
|
|
65517
|
+
"Idempotent-Replayed": {
|
|
65227
65518
|
schema: {
|
|
65228
|
-
type: "
|
|
65229
|
-
|
|
65230
|
-
|
|
65519
|
+
type: "string",
|
|
65520
|
+
enum: [
|
|
65521
|
+
"true",
|
|
65522
|
+
"false"
|
|
65523
|
+
]
|
|
65524
|
+
},
|
|
65525
|
+
description: "`true` when the body is the stored answer to an earlier request with the same key."
|
|
65231
65526
|
}
|
|
65232
|
-
}
|
|
65233
|
-
},
|
|
65234
|
-
"201": {
|
|
65235
|
-
description: "OK",
|
|
65527
|
+
},
|
|
65236
65528
|
content: {
|
|
65237
65529
|
"application/json": {
|
|
65238
65530
|
schema: {
|
|
@@ -65272,13 +65564,13 @@ var openapi_default = {
|
|
|
65272
65564
|
$ref: "#/components/responses/Forbidden"
|
|
65273
65565
|
},
|
|
65274
65566
|
"409": {
|
|
65275
|
-
description: "`
|
|
65567
|
+
description: "`idempotency_request_in_progress`: a request with the same Idempotency-Key is still running; retry shortly."
|
|
65568
|
+
},
|
|
65569
|
+
"422": {
|
|
65570
|
+
description: "`idempotency_key_reused`: the Idempotency-Key was already used for a different request or by another API key."
|
|
65276
65571
|
},
|
|
65277
65572
|
"429": {
|
|
65278
65573
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
65279
|
-
},
|
|
65280
|
-
"503": {
|
|
65281
|
-
description: "`idempotency_unavailable`: a request with an Idempotency-Key cannot be guaranteed right now; retry shortly."
|
|
65282
65574
|
}
|
|
65283
65575
|
}
|
|
65284
65576
|
}
|
|
@@ -65588,7 +65880,7 @@ var openapi_default = {
|
|
|
65588
65880
|
"Documents"
|
|
65589
65881
|
],
|
|
65590
65882
|
summary: "Tag many documents at once",
|
|
65591
|
-
description: "Adds, removes or sets tags on up to 1000 documents.
|
|
65883
|
+
description: "Adds, removes or sets tags on up to 1000 documents. Tags the documents the key's person may classify; the others (hidden, missing, or on access scopes held by someone else) are listed in `refused` and answer `status: refused` without their tags, and nothing changes on them. Answers each tagged document's resulting tags and the id of the audit event recorded for the change. Requires the `documents:write` scope. The key's person must be an Admin of the workspace, as in the web app; in a workspace whose model configuration Talonic manages this answers 403 `insufficient_role`.",
|
|
65592
65884
|
security: [
|
|
65593
65885
|
{
|
|
65594
65886
|
BearerAuth: []
|
|
@@ -65659,6 +65951,13 @@ var openapi_default = {
|
|
|
65659
65951
|
type: "string"
|
|
65660
65952
|
}
|
|
65661
65953
|
},
|
|
65954
|
+
refused: {
|
|
65955
|
+
type: "array",
|
|
65956
|
+
items: {
|
|
65957
|
+
type: "string",
|
|
65958
|
+
format: "uuid"
|
|
65959
|
+
}
|
|
65960
|
+
},
|
|
65662
65961
|
results: {
|
|
65663
65962
|
type: "array",
|
|
65664
65963
|
items: {
|
|
@@ -65671,7 +65970,8 @@ var openapi_default = {
|
|
|
65671
65970
|
status: {
|
|
65672
65971
|
type: "string",
|
|
65673
65972
|
enum: [
|
|
65674
|
-
"updated"
|
|
65973
|
+
"updated",
|
|
65974
|
+
"refused"
|
|
65675
65975
|
]
|
|
65676
65976
|
},
|
|
65677
65977
|
tags: {
|
|
@@ -70629,6 +70929,64 @@ var openapi_default = {
|
|
|
70629
70929
|
}
|
|
70630
70930
|
}
|
|
70631
70931
|
},
|
|
70932
|
+
"/v1/documents/{id}/relation-claims/recompute": {
|
|
70933
|
+
post: {
|
|
70934
|
+
tags: [
|
|
70935
|
+
"Cases"
|
|
70936
|
+
],
|
|
70937
|
+
summary: "Rebuild a document's relation claims",
|
|
70938
|
+
description: "Rebuilds the document's relation-claims ledger from its raw extraction, then resolves it when resolution is on. Needs the person's member tier; a document they may not change answers like a missing one (nothing rebuilt).\n",
|
|
70939
|
+
operationId: "recomputeDocumentRelationClaims",
|
|
70940
|
+
"x-audience": "public",
|
|
70941
|
+
"x-required-scopes": [
|
|
70942
|
+
"cases:write"
|
|
70943
|
+
],
|
|
70944
|
+
security: [
|
|
70945
|
+
{
|
|
70946
|
+
BearerAuth: []
|
|
70947
|
+
}
|
|
70948
|
+
],
|
|
70949
|
+
parameters: [
|
|
70950
|
+
{
|
|
70951
|
+
name: "id",
|
|
70952
|
+
in: "path",
|
|
70953
|
+
required: true,
|
|
70954
|
+
schema: {
|
|
70955
|
+
type: "string",
|
|
70956
|
+
format: "uuid"
|
|
70957
|
+
}
|
|
70958
|
+
}
|
|
70959
|
+
],
|
|
70960
|
+
responses: {
|
|
70961
|
+
"200": {
|
|
70962
|
+
description: "Rebuilt",
|
|
70963
|
+
content: {
|
|
70964
|
+
"application/json": {
|
|
70965
|
+
schema: {
|
|
70966
|
+
type: "object",
|
|
70967
|
+
additionalProperties: true
|
|
70968
|
+
}
|
|
70969
|
+
}
|
|
70970
|
+
}
|
|
70971
|
+
},
|
|
70972
|
+
"400": {
|
|
70973
|
+
$ref: "#/components/responses/BadRequest"
|
|
70974
|
+
},
|
|
70975
|
+
"401": {
|
|
70976
|
+
$ref: "#/components/responses/Unauthorized"
|
|
70977
|
+
},
|
|
70978
|
+
"403": {
|
|
70979
|
+
$ref: "#/components/responses/Forbidden"
|
|
70980
|
+
},
|
|
70981
|
+
"404": {
|
|
70982
|
+
$ref: "#/components/responses/NotFound"
|
|
70983
|
+
},
|
|
70984
|
+
"429": {
|
|
70985
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
70986
|
+
}
|
|
70987
|
+
}
|
|
70988
|
+
}
|
|
70989
|
+
},
|
|
70632
70990
|
"/v1/relation-claims/cases": {
|
|
70633
70991
|
get: {
|
|
70634
70992
|
operationId: "listReferenceCases",
|
|
@@ -77417,6 +77775,97 @@ var openapi_default = {
|
|
|
77417
77775
|
}
|
|
77418
77776
|
}
|
|
77419
77777
|
},
|
|
77778
|
+
"/v1/team/members/{userId}/access-until": {
|
|
77779
|
+
put: {
|
|
77780
|
+
operationId: "setMemberAccessUntil",
|
|
77781
|
+
"x-required-scopes": [
|
|
77782
|
+
"team:write"
|
|
77783
|
+
],
|
|
77784
|
+
"x-audience": "public",
|
|
77785
|
+
summary: "Make a membership temporary",
|
|
77786
|
+
description: "Sets when a member's membership ends, or `null` for no end. The hourly expiry then removes\nthe member with their shares and personal API keys, as a removal does. The moment must be\nin the future; nobody sets their own, and the workspace always keeps a member who holds `team`.\n\nScope: `team:write`. The person behind the credential needs the `team` permission\n(Admins by default).\n",
|
|
77787
|
+
tags: [
|
|
77788
|
+
"Team"
|
|
77789
|
+
],
|
|
77790
|
+
parameters: [
|
|
77791
|
+
{
|
|
77792
|
+
name: "userId",
|
|
77793
|
+
in: "path",
|
|
77794
|
+
required: true,
|
|
77795
|
+
schema: {
|
|
77796
|
+
type: "string",
|
|
77797
|
+
format: "uuid"
|
|
77798
|
+
}
|
|
77799
|
+
}
|
|
77800
|
+
],
|
|
77801
|
+
requestBody: {
|
|
77802
|
+
required: true,
|
|
77803
|
+
content: {
|
|
77804
|
+
"application/json": {
|
|
77805
|
+
schema: {
|
|
77806
|
+
type: "object",
|
|
77807
|
+
properties: {
|
|
77808
|
+
access_until: {
|
|
77809
|
+
oneOf: [
|
|
77810
|
+
{
|
|
77811
|
+
type: "string",
|
|
77812
|
+
format: "date-time"
|
|
77813
|
+
},
|
|
77814
|
+
{
|
|
77815
|
+
type: "null"
|
|
77816
|
+
}
|
|
77817
|
+
]
|
|
77818
|
+
}
|
|
77819
|
+
},
|
|
77820
|
+
required: [
|
|
77821
|
+
"access_until"
|
|
77822
|
+
]
|
|
77823
|
+
}
|
|
77824
|
+
}
|
|
77825
|
+
}
|
|
77826
|
+
},
|
|
77827
|
+
responses: {
|
|
77828
|
+
"200": {
|
|
77829
|
+
description: "Make a membership temporary: done.",
|
|
77830
|
+
content: {
|
|
77831
|
+
"application/json": {
|
|
77832
|
+
schema: {
|
|
77833
|
+
type: "object",
|
|
77834
|
+
properties: {
|
|
77835
|
+
user_id: {
|
|
77836
|
+
type: "string",
|
|
77837
|
+
format: "uuid"
|
|
77838
|
+
},
|
|
77839
|
+
access_until: {
|
|
77840
|
+
type: [
|
|
77841
|
+
"string",
|
|
77842
|
+
"null"
|
|
77843
|
+
],
|
|
77844
|
+
format: "date-time"
|
|
77845
|
+
}
|
|
77846
|
+
}
|
|
77847
|
+
}
|
|
77848
|
+
}
|
|
77849
|
+
}
|
|
77850
|
+
},
|
|
77851
|
+
"400": {
|
|
77852
|
+
$ref: "#/components/responses/BadRequest"
|
|
77853
|
+
},
|
|
77854
|
+
"401": {
|
|
77855
|
+
$ref: "#/components/responses/Unauthorized"
|
|
77856
|
+
},
|
|
77857
|
+
"403": {
|
|
77858
|
+
$ref: "#/components/responses/Forbidden"
|
|
77859
|
+
},
|
|
77860
|
+
"404": {
|
|
77861
|
+
$ref: "#/components/responses/NotFound"
|
|
77862
|
+
},
|
|
77863
|
+
"429": {
|
|
77864
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
77865
|
+
}
|
|
77866
|
+
}
|
|
77867
|
+
}
|
|
77868
|
+
},
|
|
77420
77869
|
"/v1/team/role-permissions": {
|
|
77421
77870
|
get: {
|
|
77422
77871
|
operationId: "getRolePermissions",
|
|
@@ -79392,7 +79841,7 @@ var openapi_default = {
|
|
|
79392
79841
|
"thread:read"
|
|
79393
79842
|
],
|
|
79394
79843
|
summary: "Read the thread",
|
|
79395
|
-
description: "The
|
|
79844
|
+
description: "The newest page of your conversation and anything waiting for your decision. `enabled: false` when the thread is not available to you; `cursor` is where to start reading events, and `has_older` says earlier messages can be read with the history route.\n",
|
|
79396
79845
|
tags: [
|
|
79397
79846
|
"Thread"
|
|
79398
79847
|
],
|
|
@@ -79492,6 +79941,76 @@ var openapi_default = {
|
|
|
79492
79941
|
}
|
|
79493
79942
|
}
|
|
79494
79943
|
},
|
|
79944
|
+
"/v1/thread/history": {
|
|
79945
|
+
get: {
|
|
79946
|
+
operationId: "listThreadHistory",
|
|
79947
|
+
"x-audience": "public",
|
|
79948
|
+
"x-required-scopes": [
|
|
79949
|
+
"thread:read"
|
|
79950
|
+
],
|
|
79951
|
+
summary: "Read earlier thread messages",
|
|
79952
|
+
description: "One page of your conversation further back: messages, reactions and decision cards before a given row, oldest first. Start from the `seq` of the oldest event you hold and repeat while `has_older` is true.\n",
|
|
79953
|
+
tags: [
|
|
79954
|
+
"Thread"
|
|
79955
|
+
],
|
|
79956
|
+
parameters: [
|
|
79957
|
+
{
|
|
79958
|
+
name: "before",
|
|
79959
|
+
in: "query",
|
|
79960
|
+
schema: {
|
|
79961
|
+
type: "integer",
|
|
79962
|
+
minimum: 1
|
|
79963
|
+
},
|
|
79964
|
+
description: "The `seq` of the oldest event you already hold. Omitted, the newest page is returned."
|
|
79965
|
+
},
|
|
79966
|
+
{
|
|
79967
|
+
name: "limit",
|
|
79968
|
+
in: "query",
|
|
79969
|
+
schema: {
|
|
79970
|
+
type: "integer",
|
|
79971
|
+
minimum: 1,
|
|
79972
|
+
maximum: 100,
|
|
79973
|
+
default: 50
|
|
79974
|
+
}
|
|
79975
|
+
}
|
|
79976
|
+
],
|
|
79977
|
+
responses: {
|
|
79978
|
+
"200": {
|
|
79979
|
+
description: "OK",
|
|
79980
|
+
content: {
|
|
79981
|
+
"application/json": {
|
|
79982
|
+
schema: {
|
|
79983
|
+
type: "object",
|
|
79984
|
+
properties: {
|
|
79985
|
+
events: {
|
|
79986
|
+
type: "array",
|
|
79987
|
+
items: {
|
|
79988
|
+
$ref: "#/components/schemas/ThreadEvent"
|
|
79989
|
+
}
|
|
79990
|
+
},
|
|
79991
|
+
has_older: {
|
|
79992
|
+
type: "boolean"
|
|
79993
|
+
}
|
|
79994
|
+
}
|
|
79995
|
+
}
|
|
79996
|
+
}
|
|
79997
|
+
}
|
|
79998
|
+
},
|
|
79999
|
+
"401": {
|
|
80000
|
+
$ref: "#/components/responses/Unauthorized"
|
|
80001
|
+
},
|
|
80002
|
+
"403": {
|
|
80003
|
+
$ref: "#/components/responses/Forbidden"
|
|
80004
|
+
},
|
|
80005
|
+
"404": {
|
|
80006
|
+
$ref: "#/components/responses/NotFound"
|
|
80007
|
+
},
|
|
80008
|
+
"429": {
|
|
80009
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
80010
|
+
}
|
|
80011
|
+
}
|
|
80012
|
+
}
|
|
80013
|
+
},
|
|
79495
80014
|
"/v1/thread/messages": {
|
|
79496
80015
|
post: {
|
|
79497
80016
|
operationId: "sendThreadMessage",
|
|
@@ -79667,6 +80186,56 @@ var openapi_default = {
|
|
|
79667
80186
|
}
|
|
79668
80187
|
}
|
|
79669
80188
|
},
|
|
80189
|
+
"/v1/thread/files/{documentId}": {
|
|
80190
|
+
get: {
|
|
80191
|
+
operationId: "getThreadFile",
|
|
80192
|
+
"x-audience": "public",
|
|
80193
|
+
"x-required-scopes": [
|
|
80194
|
+
"thread:read"
|
|
80195
|
+
],
|
|
80196
|
+
summary: "Get a picture you handed in",
|
|
80197
|
+
description: "A picture you handed your thread, as an image for showing it: upright and at most 1,600 pixels on its longer side. The id is `document_id` of an entry with `kind: image` in `meta.attachments` of your own message event. Anything else answers 404: a file that is not a picture, a document of the workspace, another person's file.\n",
|
|
80198
|
+
tags: [
|
|
80199
|
+
"Thread"
|
|
80200
|
+
],
|
|
80201
|
+
parameters: [
|
|
80202
|
+
{
|
|
80203
|
+
name: "documentId",
|
|
80204
|
+
in: "path",
|
|
80205
|
+
required: true,
|
|
80206
|
+
schema: {
|
|
80207
|
+
type: "string",
|
|
80208
|
+
format: "uuid"
|
|
80209
|
+
}
|
|
80210
|
+
}
|
|
80211
|
+
],
|
|
80212
|
+
responses: {
|
|
80213
|
+
"200": {
|
|
80214
|
+
description: "The picture.",
|
|
80215
|
+
content: {
|
|
80216
|
+
"image/webp": {
|
|
80217
|
+
schema: {
|
|
80218
|
+
type: "string",
|
|
80219
|
+
format: "binary"
|
|
80220
|
+
}
|
|
80221
|
+
}
|
|
80222
|
+
}
|
|
80223
|
+
},
|
|
80224
|
+
"401": {
|
|
80225
|
+
$ref: "#/components/responses/Unauthorized"
|
|
80226
|
+
},
|
|
80227
|
+
"403": {
|
|
80228
|
+
$ref: "#/components/responses/Forbidden"
|
|
80229
|
+
},
|
|
80230
|
+
"404": {
|
|
80231
|
+
$ref: "#/components/responses/NotFound"
|
|
80232
|
+
},
|
|
80233
|
+
"429": {
|
|
80234
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
80235
|
+
}
|
|
80236
|
+
}
|
|
80237
|
+
}
|
|
80238
|
+
},
|
|
79670
80239
|
"/v1/thread/approvals/{id}": {
|
|
79671
80240
|
post: {
|
|
79672
80241
|
operationId: "decideThreadApproval",
|
|
@@ -81854,6 +82423,107 @@ var openapi_default = {
|
|
|
81854
82423
|
}
|
|
81855
82424
|
}
|
|
81856
82425
|
},
|
|
82426
|
+
"/v1/me/data/groups": {
|
|
82427
|
+
get: {
|
|
82428
|
+
operationId: "listMeDataGroups",
|
|
82429
|
+
"x-audience": "public",
|
|
82430
|
+
"x-required-scopes": [
|
|
82431
|
+
"documents:read"
|
|
82432
|
+
],
|
|
82433
|
+
summary: "Group your data",
|
|
82434
|
+
description: "Your uploads or the values read out of them, counted per group (`by` source, document type, month or, for values, field) and per who can see them; narrow with the group parameters.\n",
|
|
82435
|
+
tags: [
|
|
82436
|
+
"My Data"
|
|
82437
|
+
],
|
|
82438
|
+
parameters: [
|
|
82439
|
+
{
|
|
82440
|
+
name: "kind",
|
|
82441
|
+
in: "query",
|
|
82442
|
+
required: true,
|
|
82443
|
+
schema: {
|
|
82444
|
+
type: "string",
|
|
82445
|
+
enum: [
|
|
82446
|
+
"uploads",
|
|
82447
|
+
"extracted"
|
|
82448
|
+
]
|
|
82449
|
+
}
|
|
82450
|
+
},
|
|
82451
|
+
{
|
|
82452
|
+
name: "by",
|
|
82453
|
+
in: "query",
|
|
82454
|
+
schema: {
|
|
82455
|
+
type: "string",
|
|
82456
|
+
enum: [
|
|
82457
|
+
"source",
|
|
82458
|
+
"type",
|
|
82459
|
+
"month",
|
|
82460
|
+
"field",
|
|
82461
|
+
"all"
|
|
82462
|
+
],
|
|
82463
|
+
default: "all"
|
|
82464
|
+
}
|
|
82465
|
+
},
|
|
82466
|
+
{
|
|
82467
|
+
name: "source",
|
|
82468
|
+
in: "query",
|
|
82469
|
+
description: "A source id, or `none`.",
|
|
82470
|
+
schema: {
|
|
82471
|
+
type: "string"
|
|
82472
|
+
}
|
|
82473
|
+
},
|
|
82474
|
+
{
|
|
82475
|
+
name: "type",
|
|
82476
|
+
in: "query",
|
|
82477
|
+
description: "A document type id, or `none`.",
|
|
82478
|
+
schema: {
|
|
82479
|
+
type: "string"
|
|
82480
|
+
}
|
|
82481
|
+
},
|
|
82482
|
+
{
|
|
82483
|
+
name: "month",
|
|
82484
|
+
in: "query",
|
|
82485
|
+
description: "Month, `YYYY-MM`.",
|
|
82486
|
+
schema: {
|
|
82487
|
+
type: "string",
|
|
82488
|
+
pattern: "^\\d{4}-(0[1-9]|1[0-2])$"
|
|
82489
|
+
}
|
|
82490
|
+
},
|
|
82491
|
+
{
|
|
82492
|
+
name: "field",
|
|
82493
|
+
in: "query",
|
|
82494
|
+
description: "A field id, or `none`.",
|
|
82495
|
+
schema: {
|
|
82496
|
+
type: "string"
|
|
82497
|
+
}
|
|
82498
|
+
}
|
|
82499
|
+
],
|
|
82500
|
+
responses: {
|
|
82501
|
+
"200": {
|
|
82502
|
+
description: "OK",
|
|
82503
|
+
content: {
|
|
82504
|
+
"application/json": {
|
|
82505
|
+
schema: {
|
|
82506
|
+
type: "object",
|
|
82507
|
+
additionalProperties: true
|
|
82508
|
+
}
|
|
82509
|
+
}
|
|
82510
|
+
}
|
|
82511
|
+
},
|
|
82512
|
+
"400": {
|
|
82513
|
+
$ref: "#/components/responses/BadRequest"
|
|
82514
|
+
},
|
|
82515
|
+
"401": {
|
|
82516
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82517
|
+
},
|
|
82518
|
+
"403": {
|
|
82519
|
+
$ref: "#/components/responses/Forbidden"
|
|
82520
|
+
},
|
|
82521
|
+
"429": {
|
|
82522
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82523
|
+
}
|
|
82524
|
+
}
|
|
82525
|
+
}
|
|
82526
|
+
},
|
|
81857
82527
|
"/v1/me/data/items": {
|
|
81858
82528
|
get: {
|
|
81859
82529
|
operationId: "listMeDataItems",
|
|
@@ -81862,7 +82532,7 @@ var openapi_default = {
|
|
|
81862
82532
|
"documents:read"
|
|
81863
82533
|
],
|
|
81864
82534
|
summary: "List your data items",
|
|
81865
|
-
description: "
|
|
82535
|
+
description: "A page of one group of your uploads or values, newest first: pass the `next` cursor of a page as `after` for the following one. Or one item by `id`.\n",
|
|
81866
82536
|
tags: [
|
|
81867
82537
|
"My Data"
|
|
81868
82538
|
],
|
|
@@ -81887,12 +82557,55 @@ var openapi_default = {
|
|
|
81887
82557
|
}
|
|
81888
82558
|
},
|
|
81889
82559
|
{
|
|
81890
|
-
name: "
|
|
82560
|
+
name: "source",
|
|
81891
82561
|
in: "query",
|
|
82562
|
+
description: "A source id, or `none`.",
|
|
81892
82563
|
schema: {
|
|
81893
|
-
type: "
|
|
81894
|
-
|
|
81895
|
-
|
|
82564
|
+
type: "string"
|
|
82565
|
+
}
|
|
82566
|
+
},
|
|
82567
|
+
{
|
|
82568
|
+
name: "type",
|
|
82569
|
+
in: "query",
|
|
82570
|
+
description: "A document type id, or `none`.",
|
|
82571
|
+
schema: {
|
|
82572
|
+
type: "string"
|
|
82573
|
+
}
|
|
82574
|
+
},
|
|
82575
|
+
{
|
|
82576
|
+
name: "month",
|
|
82577
|
+
in: "query",
|
|
82578
|
+
description: "Month, `YYYY-MM`.",
|
|
82579
|
+
schema: {
|
|
82580
|
+
type: "string",
|
|
82581
|
+
pattern: "^\\d{4}-(0[1-9]|1[0-2])$"
|
|
82582
|
+
}
|
|
82583
|
+
},
|
|
82584
|
+
{
|
|
82585
|
+
name: "field",
|
|
82586
|
+
in: "query",
|
|
82587
|
+
description: "A field id, or `none`.",
|
|
82588
|
+
schema: {
|
|
82589
|
+
type: "string"
|
|
82590
|
+
}
|
|
82591
|
+
},
|
|
82592
|
+
{
|
|
82593
|
+
name: "vis",
|
|
82594
|
+
in: "query",
|
|
82595
|
+
schema: {
|
|
82596
|
+
type: "string",
|
|
82597
|
+
enum: [
|
|
82598
|
+
"me",
|
|
82599
|
+
"shared",
|
|
82600
|
+
"company"
|
|
82601
|
+
]
|
|
82602
|
+
}
|
|
82603
|
+
},
|
|
82604
|
+
{
|
|
82605
|
+
name: "after",
|
|
82606
|
+
in: "query",
|
|
82607
|
+
schema: {
|
|
82608
|
+
type: "string"
|
|
81896
82609
|
}
|
|
81897
82610
|
},
|
|
81898
82611
|
{
|
|
@@ -81903,17 +82616,1378 @@ var openapi_default = {
|
|
|
81903
82616
|
minimum: 1,
|
|
81904
82617
|
default: 50
|
|
81905
82618
|
}
|
|
82619
|
+
}
|
|
82620
|
+
],
|
|
82621
|
+
responses: {
|
|
82622
|
+
"200": {
|
|
82623
|
+
description: "OK",
|
|
82624
|
+
content: {
|
|
82625
|
+
"application/json": {
|
|
82626
|
+
schema: {
|
|
82627
|
+
type: "object",
|
|
82628
|
+
additionalProperties: true
|
|
82629
|
+
}
|
|
82630
|
+
}
|
|
82631
|
+
}
|
|
81906
82632
|
},
|
|
82633
|
+
"400": {
|
|
82634
|
+
$ref: "#/components/responses/BadRequest"
|
|
82635
|
+
},
|
|
82636
|
+
"401": {
|
|
82637
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82638
|
+
},
|
|
82639
|
+
"403": {
|
|
82640
|
+
$ref: "#/components/responses/Forbidden"
|
|
82641
|
+
},
|
|
82642
|
+
"429": {
|
|
82643
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82644
|
+
}
|
|
82645
|
+
}
|
|
82646
|
+
}
|
|
82647
|
+
},
|
|
82648
|
+
"/v1/me/workspace-data": {
|
|
82649
|
+
get: {
|
|
82650
|
+
operationId: "getMeWorkspaceData",
|
|
82651
|
+
"x-audience": "public",
|
|
82652
|
+
"x-required-scopes": [
|
|
82653
|
+
"documents:read"
|
|
82654
|
+
],
|
|
82655
|
+
summary: "Count workspace data by owner",
|
|
82656
|
+
description: "The workspace's documents, fields and data points you can see, counted by whose they are: `me`, `shared` with you, or `company`.\n",
|
|
82657
|
+
tags: [
|
|
82658
|
+
"My Data"
|
|
82659
|
+
],
|
|
82660
|
+
responses: {
|
|
82661
|
+
"200": {
|
|
82662
|
+
description: "OK",
|
|
82663
|
+
content: {
|
|
82664
|
+
"application/json": {
|
|
82665
|
+
schema: {
|
|
82666
|
+
type: "object",
|
|
82667
|
+
additionalProperties: true
|
|
82668
|
+
}
|
|
82669
|
+
}
|
|
82670
|
+
}
|
|
82671
|
+
},
|
|
82672
|
+
"401": {
|
|
82673
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82674
|
+
},
|
|
82675
|
+
"403": {
|
|
82676
|
+
$ref: "#/components/responses/Forbidden"
|
|
82677
|
+
},
|
|
82678
|
+
"429": {
|
|
82679
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82680
|
+
}
|
|
82681
|
+
}
|
|
82682
|
+
}
|
|
82683
|
+
},
|
|
82684
|
+
"/v1/governance/directory": {
|
|
82685
|
+
get: {
|
|
82686
|
+
operationId: "getAccessDirectory",
|
|
82687
|
+
"x-audience": "public",
|
|
82688
|
+
"x-required-scopes": [
|
|
82689
|
+
"access:read"
|
|
82690
|
+
],
|
|
82691
|
+
summary: "List sources and their holders",
|
|
82692
|
+
description: "Every source and every person's uploads in the workspace with who holds each, and the caller's standing on it (held, through a team, licensed, an open request). Never items or counts.\n",
|
|
82693
|
+
tags: [
|
|
82694
|
+
"Access & sharing"
|
|
82695
|
+
],
|
|
82696
|
+
responses: {
|
|
82697
|
+
"200": {
|
|
82698
|
+
description: "OK",
|
|
82699
|
+
content: {
|
|
82700
|
+
"application/json": {
|
|
82701
|
+
schema: {
|
|
82702
|
+
type: "object",
|
|
82703
|
+
additionalProperties: true
|
|
82704
|
+
}
|
|
82705
|
+
}
|
|
82706
|
+
}
|
|
82707
|
+
},
|
|
82708
|
+
"401": {
|
|
82709
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82710
|
+
},
|
|
82711
|
+
"403": {
|
|
82712
|
+
$ref: "#/components/responses/Forbidden"
|
|
82713
|
+
},
|
|
82714
|
+
"429": {
|
|
82715
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82716
|
+
}
|
|
82717
|
+
}
|
|
82718
|
+
}
|
|
82719
|
+
},
|
|
82720
|
+
"/v1/governance/access-requests": {
|
|
82721
|
+
get: {
|
|
82722
|
+
operationId: "listAccessRequests",
|
|
82723
|
+
"x-audience": "public",
|
|
82724
|
+
"x-required-scopes": [
|
|
82725
|
+
"access:read"
|
|
82726
|
+
],
|
|
82727
|
+
summary: "List access requests",
|
|
82728
|
+
description: "The caller's own requests (`mine`), those on scopes they decide on (`for_my_scopes`) and, for the workspace's data protection officer, those waiting for the second decision (`to_second`).\n",
|
|
82729
|
+
tags: [
|
|
82730
|
+
"Access & sharing"
|
|
82731
|
+
],
|
|
82732
|
+
responses: {
|
|
82733
|
+
"200": {
|
|
82734
|
+
description: "OK",
|
|
82735
|
+
content: {
|
|
82736
|
+
"application/json": {
|
|
82737
|
+
schema: {
|
|
82738
|
+
type: "object",
|
|
82739
|
+
additionalProperties: true
|
|
82740
|
+
}
|
|
82741
|
+
}
|
|
82742
|
+
}
|
|
82743
|
+
},
|
|
82744
|
+
"401": {
|
|
82745
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82746
|
+
},
|
|
82747
|
+
"403": {
|
|
82748
|
+
$ref: "#/components/responses/Forbidden"
|
|
82749
|
+
},
|
|
82750
|
+
"429": {
|
|
82751
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82752
|
+
}
|
|
82753
|
+
}
|
|
82754
|
+
},
|
|
82755
|
+
post: {
|
|
82756
|
+
operationId: "createAccessRequest",
|
|
82757
|
+
"x-audience": "public",
|
|
82758
|
+
"x-required-scopes": [
|
|
82759
|
+
"access:write"
|
|
82760
|
+
],
|
|
82761
|
+
summary: "Ask for access",
|
|
82762
|
+
description: "Ask the holder of a source, of a person's uploads, or of one document in them for time-limited access. Exactly one of `scope_id` / `source_connection_id`; `document_id` narrows the request to one document. A document that does not exist and one the caller may not see answer alike (404).\n",
|
|
82763
|
+
tags: [
|
|
82764
|
+
"Access & sharing"
|
|
82765
|
+
],
|
|
82766
|
+
requestBody: {
|
|
82767
|
+
required: true,
|
|
82768
|
+
content: {
|
|
82769
|
+
"application/json": {
|
|
82770
|
+
schema: {
|
|
82771
|
+
type: "object",
|
|
82772
|
+
required: [
|
|
82773
|
+
"purpose",
|
|
82774
|
+
"duration_days"
|
|
82775
|
+
],
|
|
82776
|
+
properties: {
|
|
82777
|
+
scope_id: {
|
|
82778
|
+
type: "string",
|
|
82779
|
+
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
82780
|
+
description: "An access scope (8-4-4-4-12 hex; version digits are arbitrary)."
|
|
82781
|
+
},
|
|
82782
|
+
source_connection_id: {
|
|
82783
|
+
type: "string",
|
|
82784
|
+
format: "uuid"
|
|
82785
|
+
},
|
|
82786
|
+
document_id: {
|
|
82787
|
+
type: "string",
|
|
82788
|
+
format: "uuid"
|
|
82789
|
+
},
|
|
82790
|
+
purpose: {
|
|
82791
|
+
type: "string",
|
|
82792
|
+
maxLength: 500
|
|
82793
|
+
},
|
|
82794
|
+
duration_days: {
|
|
82795
|
+
type: "integer",
|
|
82796
|
+
minimum: 1,
|
|
82797
|
+
maximum: 90
|
|
82798
|
+
},
|
|
82799
|
+
capabilities: {
|
|
82800
|
+
type: "array",
|
|
82801
|
+
items: {
|
|
82802
|
+
type: "string",
|
|
82803
|
+
enum: [
|
|
82804
|
+
"delete",
|
|
82805
|
+
"discover",
|
|
82806
|
+
"read",
|
|
82807
|
+
"write"
|
|
82808
|
+
]
|
|
82809
|
+
}
|
|
82810
|
+
}
|
|
82811
|
+
}
|
|
82812
|
+
}
|
|
82813
|
+
}
|
|
82814
|
+
}
|
|
82815
|
+
},
|
|
82816
|
+
responses: {
|
|
82817
|
+
"201": {
|
|
82818
|
+
description: "Created",
|
|
82819
|
+
content: {
|
|
82820
|
+
"application/json": {
|
|
82821
|
+
schema: {
|
|
82822
|
+
type: "object",
|
|
82823
|
+
additionalProperties: true
|
|
82824
|
+
}
|
|
82825
|
+
}
|
|
82826
|
+
}
|
|
82827
|
+
},
|
|
82828
|
+
"400": {
|
|
82829
|
+
$ref: "#/components/responses/BadRequest"
|
|
82830
|
+
},
|
|
82831
|
+
"401": {
|
|
82832
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82833
|
+
},
|
|
82834
|
+
"403": {
|
|
82835
|
+
$ref: "#/components/responses/Forbidden"
|
|
82836
|
+
},
|
|
82837
|
+
"404": {
|
|
82838
|
+
$ref: "#/components/responses/NotFound"
|
|
82839
|
+
},
|
|
82840
|
+
"409": {
|
|
82841
|
+
$ref: "#/components/responses/Conflict"
|
|
82842
|
+
},
|
|
82843
|
+
"429": {
|
|
82844
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82845
|
+
}
|
|
82846
|
+
}
|
|
82847
|
+
}
|
|
82848
|
+
},
|
|
82849
|
+
"/v1/governance/access-requests/{id}/approve": {
|
|
82850
|
+
post: {
|
|
82851
|
+
operationId: "approveAccessRequest",
|
|
82852
|
+
"x-audience": "public",
|
|
82853
|
+
"x-required-scopes": [
|
|
82854
|
+
"access:write"
|
|
82855
|
+
],
|
|
82856
|
+
summary: "Approve an access request",
|
|
82857
|
+
description: "A holder of the request's scope approves: a licence on the scope, or a share of the one document for an item request.\n",
|
|
82858
|
+
tags: [
|
|
82859
|
+
"Access & sharing"
|
|
82860
|
+
],
|
|
82861
|
+
parameters: [
|
|
81907
82862
|
{
|
|
81908
|
-
name: "
|
|
82863
|
+
name: "id",
|
|
82864
|
+
in: "path",
|
|
82865
|
+
required: true,
|
|
82866
|
+
schema: {
|
|
82867
|
+
type: "string",
|
|
82868
|
+
format: "uuid"
|
|
82869
|
+
}
|
|
82870
|
+
}
|
|
82871
|
+
],
|
|
82872
|
+
responses: {
|
|
82873
|
+
"200": {
|
|
82874
|
+
description: "OK",
|
|
82875
|
+
content: {
|
|
82876
|
+
"application/json": {
|
|
82877
|
+
schema: {
|
|
82878
|
+
type: "object",
|
|
82879
|
+
additionalProperties: true
|
|
82880
|
+
}
|
|
82881
|
+
}
|
|
82882
|
+
}
|
|
82883
|
+
},
|
|
82884
|
+
"400": {
|
|
82885
|
+
$ref: "#/components/responses/BadRequest"
|
|
82886
|
+
},
|
|
82887
|
+
"401": {
|
|
82888
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82889
|
+
},
|
|
82890
|
+
"403": {
|
|
82891
|
+
$ref: "#/components/responses/Forbidden"
|
|
82892
|
+
},
|
|
82893
|
+
"404": {
|
|
82894
|
+
$ref: "#/components/responses/NotFound"
|
|
82895
|
+
},
|
|
82896
|
+
"409": {
|
|
82897
|
+
$ref: "#/components/responses/Conflict"
|
|
82898
|
+
},
|
|
82899
|
+
"429": {
|
|
82900
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82901
|
+
}
|
|
82902
|
+
}
|
|
82903
|
+
}
|
|
82904
|
+
},
|
|
82905
|
+
"/v1/governance/access-requests/{id}/deny": {
|
|
82906
|
+
post: {
|
|
82907
|
+
operationId: "denyAccessRequest",
|
|
82908
|
+
"x-audience": "public",
|
|
82909
|
+
"x-required-scopes": [
|
|
82910
|
+
"access:write"
|
|
82911
|
+
],
|
|
82912
|
+
summary: "Deny an access request",
|
|
82913
|
+
description: "A holder of the request's scope refuses a pending request, with a reason.\n",
|
|
82914
|
+
tags: [
|
|
82915
|
+
"Access & sharing"
|
|
82916
|
+
],
|
|
82917
|
+
parameters: [
|
|
82918
|
+
{
|
|
82919
|
+
name: "id",
|
|
82920
|
+
in: "path",
|
|
82921
|
+
required: true,
|
|
82922
|
+
schema: {
|
|
82923
|
+
type: "string",
|
|
82924
|
+
format: "uuid"
|
|
82925
|
+
}
|
|
82926
|
+
}
|
|
82927
|
+
],
|
|
82928
|
+
requestBody: {
|
|
82929
|
+
required: true,
|
|
82930
|
+
content: {
|
|
82931
|
+
"application/json": {
|
|
82932
|
+
schema: {
|
|
82933
|
+
type: "object",
|
|
82934
|
+
required: [
|
|
82935
|
+
"reason"
|
|
82936
|
+
],
|
|
82937
|
+
properties: {
|
|
82938
|
+
reason: {
|
|
82939
|
+
type: "string",
|
|
82940
|
+
maxLength: 500
|
|
82941
|
+
}
|
|
82942
|
+
}
|
|
82943
|
+
}
|
|
82944
|
+
}
|
|
82945
|
+
}
|
|
82946
|
+
},
|
|
82947
|
+
responses: {
|
|
82948
|
+
"200": {
|
|
82949
|
+
description: "OK",
|
|
82950
|
+
content: {
|
|
82951
|
+
"application/json": {
|
|
82952
|
+
schema: {
|
|
82953
|
+
type: "object",
|
|
82954
|
+
additionalProperties: true
|
|
82955
|
+
}
|
|
82956
|
+
}
|
|
82957
|
+
}
|
|
82958
|
+
},
|
|
82959
|
+
"400": {
|
|
82960
|
+
$ref: "#/components/responses/BadRequest"
|
|
82961
|
+
},
|
|
82962
|
+
"401": {
|
|
82963
|
+
$ref: "#/components/responses/Unauthorized"
|
|
82964
|
+
},
|
|
82965
|
+
"403": {
|
|
82966
|
+
$ref: "#/components/responses/Forbidden"
|
|
82967
|
+
},
|
|
82968
|
+
"404": {
|
|
82969
|
+
$ref: "#/components/responses/NotFound"
|
|
82970
|
+
},
|
|
82971
|
+
"409": {
|
|
82972
|
+
$ref: "#/components/responses/Conflict"
|
|
82973
|
+
},
|
|
82974
|
+
"429": {
|
|
82975
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
82976
|
+
}
|
|
82977
|
+
}
|
|
82978
|
+
}
|
|
82979
|
+
},
|
|
82980
|
+
"/v1/governance/access-requests/{id}/second": {
|
|
82981
|
+
post: {
|
|
82982
|
+
operationId: "secondAccessRequest",
|
|
82983
|
+
"x-audience": "public",
|
|
82984
|
+
"x-required-scopes": [
|
|
82985
|
+
"access:write"
|
|
82986
|
+
],
|
|
82987
|
+
summary: "Decide an access request as data protection officer",
|
|
82988
|
+
description: "The workspace's data protection officer decides after the holder approved: `ok` true opens it, false refuses it, with `text` as the reason or note.\n",
|
|
82989
|
+
tags: [
|
|
82990
|
+
"Access & sharing"
|
|
82991
|
+
],
|
|
82992
|
+
parameters: [
|
|
82993
|
+
{
|
|
82994
|
+
name: "id",
|
|
82995
|
+
in: "path",
|
|
82996
|
+
required: true,
|
|
82997
|
+
schema: {
|
|
82998
|
+
type: "string",
|
|
82999
|
+
format: "uuid"
|
|
83000
|
+
}
|
|
83001
|
+
}
|
|
83002
|
+
],
|
|
83003
|
+
requestBody: {
|
|
83004
|
+
required: true,
|
|
83005
|
+
content: {
|
|
83006
|
+
"application/json": {
|
|
83007
|
+
schema: {
|
|
83008
|
+
type: "object",
|
|
83009
|
+
required: [
|
|
83010
|
+
"ok",
|
|
83011
|
+
"text"
|
|
83012
|
+
],
|
|
83013
|
+
properties: {
|
|
83014
|
+
ok: {
|
|
83015
|
+
type: "boolean"
|
|
83016
|
+
},
|
|
83017
|
+
text: {
|
|
83018
|
+
type: "string"
|
|
83019
|
+
}
|
|
83020
|
+
}
|
|
83021
|
+
}
|
|
83022
|
+
}
|
|
83023
|
+
}
|
|
83024
|
+
},
|
|
83025
|
+
responses: {
|
|
83026
|
+
"200": {
|
|
83027
|
+
description: "OK",
|
|
83028
|
+
content: {
|
|
83029
|
+
"application/json": {
|
|
83030
|
+
schema: {
|
|
83031
|
+
type: "object",
|
|
83032
|
+
additionalProperties: true
|
|
83033
|
+
}
|
|
83034
|
+
}
|
|
83035
|
+
}
|
|
83036
|
+
},
|
|
83037
|
+
"400": {
|
|
83038
|
+
$ref: "#/components/responses/BadRequest"
|
|
83039
|
+
},
|
|
83040
|
+
"401": {
|
|
83041
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83042
|
+
},
|
|
83043
|
+
"403": {
|
|
83044
|
+
$ref: "#/components/responses/Forbidden"
|
|
83045
|
+
},
|
|
83046
|
+
"404": {
|
|
83047
|
+
$ref: "#/components/responses/NotFound"
|
|
83048
|
+
},
|
|
83049
|
+
"409": {
|
|
83050
|
+
$ref: "#/components/responses/Conflict"
|
|
83051
|
+
},
|
|
83052
|
+
"429": {
|
|
83053
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83054
|
+
}
|
|
83055
|
+
}
|
|
83056
|
+
}
|
|
83057
|
+
},
|
|
83058
|
+
"/v1/governance/access-requests/{id}/stop": {
|
|
83059
|
+
post: {
|
|
83060
|
+
operationId: "stopAccessRequest",
|
|
83061
|
+
"x-audience": "public",
|
|
83062
|
+
"x-required-scopes": [
|
|
83063
|
+
"access:write"
|
|
83064
|
+
],
|
|
83065
|
+
summary: "Stop an access request",
|
|
83066
|
+
description: "The requester or a holder ends an approved request; its licence or document share is revoked.\n",
|
|
83067
|
+
tags: [
|
|
83068
|
+
"Access & sharing"
|
|
83069
|
+
],
|
|
83070
|
+
parameters: [
|
|
83071
|
+
{
|
|
83072
|
+
name: "id",
|
|
83073
|
+
in: "path",
|
|
83074
|
+
required: true,
|
|
83075
|
+
schema: {
|
|
83076
|
+
type: "string",
|
|
83077
|
+
format: "uuid"
|
|
83078
|
+
}
|
|
83079
|
+
}
|
|
83080
|
+
],
|
|
83081
|
+
responses: {
|
|
83082
|
+
"200": {
|
|
83083
|
+
description: "OK",
|
|
83084
|
+
content: {
|
|
83085
|
+
"application/json": {
|
|
83086
|
+
schema: {
|
|
83087
|
+
type: "object",
|
|
83088
|
+
additionalProperties: true
|
|
83089
|
+
}
|
|
83090
|
+
}
|
|
83091
|
+
}
|
|
83092
|
+
},
|
|
83093
|
+
"400": {
|
|
83094
|
+
$ref: "#/components/responses/BadRequest"
|
|
83095
|
+
},
|
|
83096
|
+
"401": {
|
|
83097
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83098
|
+
},
|
|
83099
|
+
"403": {
|
|
83100
|
+
$ref: "#/components/responses/Forbidden"
|
|
83101
|
+
},
|
|
83102
|
+
"404": {
|
|
83103
|
+
$ref: "#/components/responses/NotFound"
|
|
83104
|
+
},
|
|
83105
|
+
"409": {
|
|
83106
|
+
$ref: "#/components/responses/Conflict"
|
|
83107
|
+
},
|
|
83108
|
+
"429": {
|
|
83109
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83110
|
+
}
|
|
83111
|
+
}
|
|
83112
|
+
}
|
|
83113
|
+
},
|
|
83114
|
+
"/v1/governance/sharing": {
|
|
83115
|
+
get: {
|
|
83116
|
+
operationId: "getSharing",
|
|
83117
|
+
"x-audience": "public",
|
|
83118
|
+
"x-required-scopes": [
|
|
83119
|
+
"access:read"
|
|
83120
|
+
],
|
|
83121
|
+
summary: "List shares",
|
|
83122
|
+
description: "Whether sharing applies in this workspace (`available`), the shares the caller gave (`given`) and the shares naming the caller (`received`).\n",
|
|
83123
|
+
tags: [
|
|
83124
|
+
"Access & sharing"
|
|
83125
|
+
],
|
|
83126
|
+
responses: {
|
|
83127
|
+
"200": {
|
|
83128
|
+
description: "OK",
|
|
83129
|
+
content: {
|
|
83130
|
+
"application/json": {
|
|
83131
|
+
schema: {
|
|
83132
|
+
type: "object",
|
|
83133
|
+
additionalProperties: true
|
|
83134
|
+
}
|
|
83135
|
+
}
|
|
83136
|
+
}
|
|
83137
|
+
},
|
|
83138
|
+
"401": {
|
|
83139
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83140
|
+
},
|
|
83141
|
+
"403": {
|
|
83142
|
+
$ref: "#/components/responses/Forbidden"
|
|
83143
|
+
},
|
|
83144
|
+
"429": {
|
|
83145
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83146
|
+
}
|
|
83147
|
+
}
|
|
83148
|
+
}
|
|
83149
|
+
},
|
|
83150
|
+
"/v1/governance/documents/{id}/access": {
|
|
83151
|
+
get: {
|
|
83152
|
+
operationId: "getDocumentAccess",
|
|
83153
|
+
"x-audience": "public",
|
|
83154
|
+
"x-required-scopes": [
|
|
83155
|
+
"access:read"
|
|
83156
|
+
],
|
|
83157
|
+
summary: "What you may do with a document",
|
|
83158
|
+
description: "For a document the caller can read: whether they may share it, write it and classify it (change its tags; a holder of its access scope only), and `pass_on`: whether they may pass it on (a share they received as a person with `may_pass_on`, its chain intact; false while the workspace's sub-shares switch is off). `managed: false` when the workspace is not on access scopes. A hidden document and a missing one answer 404 alike.\n",
|
|
83159
|
+
tags: [
|
|
83160
|
+
"Access & sharing"
|
|
83161
|
+
],
|
|
83162
|
+
parameters: [
|
|
83163
|
+
{
|
|
83164
|
+
name: "id",
|
|
83165
|
+
in: "path",
|
|
83166
|
+
required: true,
|
|
83167
|
+
schema: {
|
|
83168
|
+
type: "string",
|
|
83169
|
+
format: "uuid"
|
|
83170
|
+
}
|
|
83171
|
+
}
|
|
83172
|
+
],
|
|
83173
|
+
responses: {
|
|
83174
|
+
"200": {
|
|
83175
|
+
description: "OK",
|
|
83176
|
+
content: {
|
|
83177
|
+
"application/json": {
|
|
83178
|
+
schema: {
|
|
83179
|
+
type: "object",
|
|
83180
|
+
properties: {
|
|
83181
|
+
managed: {
|
|
83182
|
+
type: "boolean"
|
|
83183
|
+
},
|
|
83184
|
+
share: {
|
|
83185
|
+
type: "boolean"
|
|
83186
|
+
},
|
|
83187
|
+
write: {
|
|
83188
|
+
type: "boolean"
|
|
83189
|
+
},
|
|
83190
|
+
classify: {
|
|
83191
|
+
type: "boolean"
|
|
83192
|
+
}
|
|
83193
|
+
}
|
|
83194
|
+
}
|
|
83195
|
+
}
|
|
83196
|
+
}
|
|
83197
|
+
},
|
|
83198
|
+
"401": {
|
|
83199
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83200
|
+
},
|
|
83201
|
+
"403": {
|
|
83202
|
+
$ref: "#/components/responses/Forbidden"
|
|
83203
|
+
},
|
|
83204
|
+
"404": {
|
|
83205
|
+
$ref: "#/components/responses/NotFound"
|
|
83206
|
+
},
|
|
83207
|
+
"429": {
|
|
83208
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83209
|
+
}
|
|
83210
|
+
}
|
|
83211
|
+
}
|
|
83212
|
+
},
|
|
83213
|
+
"/v1/governance/documents/{id}/shares": {
|
|
83214
|
+
get: {
|
|
83215
|
+
operationId: "listDocumentShares",
|
|
83216
|
+
"x-audience": "public",
|
|
83217
|
+
"x-required-scopes": [
|
|
83218
|
+
"access:read"
|
|
83219
|
+
],
|
|
83220
|
+
summary: "List who a document is shared with",
|
|
83221
|
+
description: "The document shares of a document the caller holds, and the whole-scope shares of its scope. 404 when the caller does not hold it.\n",
|
|
83222
|
+
tags: [
|
|
83223
|
+
"Access & sharing"
|
|
83224
|
+
],
|
|
83225
|
+
parameters: [
|
|
83226
|
+
{
|
|
83227
|
+
name: "id",
|
|
83228
|
+
in: "path",
|
|
83229
|
+
required: true,
|
|
83230
|
+
schema: {
|
|
83231
|
+
type: "string",
|
|
83232
|
+
format: "uuid"
|
|
83233
|
+
}
|
|
83234
|
+
}
|
|
83235
|
+
],
|
|
83236
|
+
responses: {
|
|
83237
|
+
"200": {
|
|
83238
|
+
description: "OK",
|
|
83239
|
+
content: {
|
|
83240
|
+
"application/json": {
|
|
83241
|
+
schema: {
|
|
83242
|
+
type: "object",
|
|
83243
|
+
additionalProperties: true
|
|
83244
|
+
}
|
|
83245
|
+
}
|
|
83246
|
+
}
|
|
83247
|
+
},
|
|
83248
|
+
"401": {
|
|
83249
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83250
|
+
},
|
|
83251
|
+
"403": {
|
|
83252
|
+
$ref: "#/components/responses/Forbidden"
|
|
83253
|
+
},
|
|
83254
|
+
"404": {
|
|
83255
|
+
$ref: "#/components/responses/NotFound"
|
|
83256
|
+
},
|
|
83257
|
+
"429": {
|
|
83258
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83259
|
+
}
|
|
83260
|
+
}
|
|
83261
|
+
}
|
|
83262
|
+
},
|
|
83263
|
+
"/v1/governance/shares/documents": {
|
|
83264
|
+
post: {
|
|
83265
|
+
operationId: "shareDocuments",
|
|
83266
|
+
"x-audience": "public",
|
|
83267
|
+
"x-required-scopes": [
|
|
83268
|
+
"access:write"
|
|
83269
|
+
],
|
|
83270
|
+
summary: "Share documents",
|
|
83271
|
+
description: "Share documents the caller holds with a member, a workspace group or everyone, for reading, for `duration_days` or until stopped. Sharing a document again with the same principal replaces its window and note. Everything else in the workspace's access rules still applies to the recipient.\n",
|
|
83272
|
+
tags: [
|
|
83273
|
+
"Access & sharing"
|
|
83274
|
+
],
|
|
83275
|
+
requestBody: {
|
|
83276
|
+
required: true,
|
|
83277
|
+
content: {
|
|
83278
|
+
"application/json": {
|
|
83279
|
+
schema: {
|
|
83280
|
+
type: "object",
|
|
83281
|
+
required: [
|
|
83282
|
+
"document_ids",
|
|
83283
|
+
"to"
|
|
83284
|
+
],
|
|
83285
|
+
properties: {
|
|
83286
|
+
document_ids: {
|
|
83287
|
+
type: "array",
|
|
83288
|
+
minItems: 1,
|
|
83289
|
+
maxItems: 200,
|
|
83290
|
+
items: {
|
|
83291
|
+
type: "string",
|
|
83292
|
+
format: "uuid"
|
|
83293
|
+
}
|
|
83294
|
+
},
|
|
83295
|
+
to: {
|
|
83296
|
+
type: "object",
|
|
83297
|
+
required: [
|
|
83298
|
+
"type"
|
|
83299
|
+
],
|
|
83300
|
+
properties: {
|
|
83301
|
+
type: {
|
|
83302
|
+
type: "string",
|
|
83303
|
+
enum: [
|
|
83304
|
+
"person",
|
|
83305
|
+
"group",
|
|
83306
|
+
"everyone"
|
|
83307
|
+
]
|
|
83308
|
+
},
|
|
83309
|
+
id: {
|
|
83310
|
+
type: "string",
|
|
83311
|
+
format: "uuid",
|
|
83312
|
+
description: "The member or group; absent for everyone."
|
|
83313
|
+
}
|
|
83314
|
+
}
|
|
83315
|
+
},
|
|
83316
|
+
duration_days: {
|
|
83317
|
+
type: "integer",
|
|
83318
|
+
minimum: 1,
|
|
83319
|
+
maximum: 365,
|
|
83320
|
+
nullable: true
|
|
83321
|
+
},
|
|
83322
|
+
note: {
|
|
83323
|
+
type: "string",
|
|
83324
|
+
maxLength: 500
|
|
83325
|
+
},
|
|
83326
|
+
allow_pass_on: {
|
|
83327
|
+
type: "boolean",
|
|
83328
|
+
description: "Let the one member shared with pass it on (a person target only; needs the workspace's sub-shares switch). `false` withdraws it and ends what was passed on; omitted leaves it as it is."
|
|
83329
|
+
}
|
|
83330
|
+
}
|
|
83331
|
+
}
|
|
83332
|
+
}
|
|
83333
|
+
}
|
|
83334
|
+
},
|
|
83335
|
+
responses: {
|
|
83336
|
+
"201": {
|
|
83337
|
+
description: "Created",
|
|
83338
|
+
content: {
|
|
83339
|
+
"application/json": {
|
|
83340
|
+
schema: {
|
|
83341
|
+
type: "object",
|
|
83342
|
+
additionalProperties: true
|
|
83343
|
+
}
|
|
83344
|
+
}
|
|
83345
|
+
}
|
|
83346
|
+
},
|
|
83347
|
+
"400": {
|
|
83348
|
+
$ref: "#/components/responses/BadRequest"
|
|
83349
|
+
},
|
|
83350
|
+
"401": {
|
|
83351
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83352
|
+
},
|
|
83353
|
+
"403": {
|
|
83354
|
+
$ref: "#/components/responses/Forbidden"
|
|
83355
|
+
},
|
|
83356
|
+
"404": {
|
|
83357
|
+
$ref: "#/components/responses/NotFound"
|
|
83358
|
+
},
|
|
83359
|
+
"409": {
|
|
83360
|
+
$ref: "#/components/responses/Conflict"
|
|
83361
|
+
},
|
|
83362
|
+
"429": {
|
|
83363
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83364
|
+
}
|
|
83365
|
+
}
|
|
83366
|
+
}
|
|
83367
|
+
},
|
|
83368
|
+
"/v1/governance/shares/pass-on": {
|
|
83369
|
+
post: {
|
|
83370
|
+
operationId: "passOnShare",
|
|
83371
|
+
"x-audience": "public",
|
|
83372
|
+
"x-required-scopes": [
|
|
83373
|
+
"access:write"
|
|
83374
|
+
],
|
|
83375
|
+
summary: "Pass a share on",
|
|
83376
|
+
description: "Pass on a share the caller received with `may_pass_on` (given to them as a person by the holder): documents of it (`document_ids`), or the whole source (exactly one of `scope_id` / `source_connection_id`), to a member or a workspace group, never everyone. The new share is never wider than the one received: the same or fewer capabilities, ending at the latest when it ends (no `duration_days`: when it ends), and it cannot be passed on further. It holds only while the whole chain behind it does: the received share, its permission to pass on, the caller's membership and an active person holder of the source. The holders hear of it and can stop it. A document holding a sensitive field is not passed on. Needs the caller's member role and the workspace's sub-shares switch (409 while off). Something the caller may not pass on answers 404, like a missing one.\n",
|
|
83377
|
+
tags: [
|
|
83378
|
+
"Access & sharing"
|
|
83379
|
+
],
|
|
83380
|
+
requestBody: {
|
|
83381
|
+
required: true,
|
|
83382
|
+
content: {
|
|
83383
|
+
"application/json": {
|
|
83384
|
+
schema: {
|
|
83385
|
+
type: "object",
|
|
83386
|
+
required: [
|
|
83387
|
+
"to"
|
|
83388
|
+
],
|
|
83389
|
+
properties: {
|
|
83390
|
+
document_ids: {
|
|
83391
|
+
type: "array",
|
|
83392
|
+
minItems: 1,
|
|
83393
|
+
maxItems: 200,
|
|
83394
|
+
items: {
|
|
83395
|
+
type: "string",
|
|
83396
|
+
format: "uuid"
|
|
83397
|
+
}
|
|
83398
|
+
},
|
|
83399
|
+
scope_id: {
|
|
83400
|
+
type: "string",
|
|
83401
|
+
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
83402
|
+
description: "An access scope (8-4-4-4-12 hex; version digits are arbitrary)."
|
|
83403
|
+
},
|
|
83404
|
+
source_connection_id: {
|
|
83405
|
+
type: "string",
|
|
83406
|
+
format: "uuid"
|
|
83407
|
+
},
|
|
83408
|
+
to: {
|
|
83409
|
+
type: "object",
|
|
83410
|
+
required: [
|
|
83411
|
+
"type",
|
|
83412
|
+
"id"
|
|
83413
|
+
],
|
|
83414
|
+
properties: {
|
|
83415
|
+
type: {
|
|
83416
|
+
type: "string",
|
|
83417
|
+
enum: [
|
|
83418
|
+
"person",
|
|
83419
|
+
"group"
|
|
83420
|
+
]
|
|
83421
|
+
},
|
|
83422
|
+
id: {
|
|
83423
|
+
type: "string",
|
|
83424
|
+
format: "uuid",
|
|
83425
|
+
description: "The member or group."
|
|
83426
|
+
}
|
|
83427
|
+
}
|
|
83428
|
+
},
|
|
83429
|
+
duration_days: {
|
|
83430
|
+
type: "integer",
|
|
83431
|
+
minimum: 1,
|
|
83432
|
+
maximum: 365,
|
|
83433
|
+
nullable: true
|
|
83434
|
+
},
|
|
83435
|
+
note: {
|
|
83436
|
+
type: "string",
|
|
83437
|
+
maxLength: 500
|
|
83438
|
+
}
|
|
83439
|
+
}
|
|
83440
|
+
}
|
|
83441
|
+
}
|
|
83442
|
+
}
|
|
83443
|
+
},
|
|
83444
|
+
responses: {
|
|
83445
|
+
"201": {
|
|
83446
|
+
description: "The shares written.",
|
|
83447
|
+
content: {
|
|
83448
|
+
"application/json": {
|
|
83449
|
+
schema: {
|
|
83450
|
+
type: "array",
|
|
83451
|
+
items: {
|
|
83452
|
+
type: "object",
|
|
83453
|
+
additionalProperties: true
|
|
83454
|
+
}
|
|
83455
|
+
}
|
|
83456
|
+
}
|
|
83457
|
+
}
|
|
83458
|
+
},
|
|
83459
|
+
"400": {
|
|
83460
|
+
$ref: "#/components/responses/BadRequest"
|
|
83461
|
+
},
|
|
83462
|
+
"401": {
|
|
83463
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83464
|
+
},
|
|
83465
|
+
"403": {
|
|
83466
|
+
$ref: "#/components/responses/Forbidden"
|
|
83467
|
+
},
|
|
83468
|
+
"404": {
|
|
83469
|
+
$ref: "#/components/responses/NotFound"
|
|
83470
|
+
},
|
|
83471
|
+
"409": {
|
|
83472
|
+
$ref: "#/components/responses/Conflict"
|
|
83473
|
+
},
|
|
83474
|
+
"429": {
|
|
83475
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83476
|
+
}
|
|
83477
|
+
}
|
|
83478
|
+
}
|
|
83479
|
+
},
|
|
83480
|
+
"/v1/governance/shares/scopes": {
|
|
83481
|
+
post: {
|
|
83482
|
+
operationId: "shareScope",
|
|
83483
|
+
"x-audience": "public",
|
|
83484
|
+
"x-required-scopes": [
|
|
83485
|
+
"access:write"
|
|
83486
|
+
],
|
|
83487
|
+
summary: "Share a whole source",
|
|
83488
|
+
description: "Share a whole source the caller holds in person, or their uploads, for reading: every document of it, new ones included, until stopped or for `duration_days`. Exactly one of `scope_id` / `source_connection_id`.\n",
|
|
83489
|
+
tags: [
|
|
83490
|
+
"Access & sharing"
|
|
83491
|
+
],
|
|
83492
|
+
requestBody: {
|
|
83493
|
+
required: true,
|
|
83494
|
+
content: {
|
|
83495
|
+
"application/json": {
|
|
83496
|
+
schema: {
|
|
83497
|
+
type: "object",
|
|
83498
|
+
required: [
|
|
83499
|
+
"to"
|
|
83500
|
+
],
|
|
83501
|
+
properties: {
|
|
83502
|
+
scope_id: {
|
|
83503
|
+
type: "string",
|
|
83504
|
+
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
83505
|
+
description: "An access scope (8-4-4-4-12 hex; version digits are arbitrary)."
|
|
83506
|
+
},
|
|
83507
|
+
source_connection_id: {
|
|
83508
|
+
type: "string",
|
|
83509
|
+
format: "uuid"
|
|
83510
|
+
},
|
|
83511
|
+
to: {
|
|
83512
|
+
type: "object",
|
|
83513
|
+
required: [
|
|
83514
|
+
"type"
|
|
83515
|
+
],
|
|
83516
|
+
properties: {
|
|
83517
|
+
type: {
|
|
83518
|
+
type: "string",
|
|
83519
|
+
enum: [
|
|
83520
|
+
"person",
|
|
83521
|
+
"group",
|
|
83522
|
+
"everyone"
|
|
83523
|
+
]
|
|
83524
|
+
},
|
|
83525
|
+
id: {
|
|
83526
|
+
type: "string",
|
|
83527
|
+
format: "uuid",
|
|
83528
|
+
description: "The member or group; absent for everyone."
|
|
83529
|
+
}
|
|
83530
|
+
}
|
|
83531
|
+
},
|
|
83532
|
+
duration_days: {
|
|
83533
|
+
type: "integer",
|
|
83534
|
+
minimum: 1,
|
|
83535
|
+
maximum: 365,
|
|
83536
|
+
nullable: true
|
|
83537
|
+
},
|
|
83538
|
+
allow_pass_on: {
|
|
83539
|
+
type: "boolean",
|
|
83540
|
+
description: "Let the one member shared with pass it on (a person target only; needs the workspace's sub-shares switch). `false` withdraws it and ends what was passed on; omitted leaves it as it is."
|
|
83541
|
+
}
|
|
83542
|
+
}
|
|
83543
|
+
}
|
|
83544
|
+
}
|
|
83545
|
+
}
|
|
83546
|
+
},
|
|
83547
|
+
responses: {
|
|
83548
|
+
"201": {
|
|
83549
|
+
description: "Created",
|
|
83550
|
+
content: {
|
|
83551
|
+
"application/json": {
|
|
83552
|
+
schema: {
|
|
83553
|
+
type: "object",
|
|
83554
|
+
additionalProperties: true
|
|
83555
|
+
}
|
|
83556
|
+
}
|
|
83557
|
+
}
|
|
83558
|
+
},
|
|
83559
|
+
"400": {
|
|
83560
|
+
$ref: "#/components/responses/BadRequest"
|
|
83561
|
+
},
|
|
83562
|
+
"401": {
|
|
83563
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83564
|
+
},
|
|
83565
|
+
"403": {
|
|
83566
|
+
$ref: "#/components/responses/Forbidden"
|
|
83567
|
+
},
|
|
83568
|
+
"404": {
|
|
83569
|
+
$ref: "#/components/responses/NotFound"
|
|
83570
|
+
},
|
|
83571
|
+
"409": {
|
|
83572
|
+
$ref: "#/components/responses/Conflict"
|
|
83573
|
+
},
|
|
83574
|
+
"429": {
|
|
83575
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83576
|
+
}
|
|
83577
|
+
}
|
|
83578
|
+
}
|
|
83579
|
+
},
|
|
83580
|
+
"/v1/governance/level": {
|
|
83581
|
+
get: {
|
|
83582
|
+
operationId: "getGovernanceLevel",
|
|
83583
|
+
"x-audience": "public",
|
|
83584
|
+
"x-required-scopes": [
|
|
83585
|
+
"access:read"
|
|
83586
|
+
],
|
|
83587
|
+
summary: "The workspace's data governance",
|
|
83588
|
+
description: "Whether data governance is on, its default (`open`: what the access rules open to the workspace stays open, holders close their sources; `private`: holders, licences and shares only), and a turn-on in progress (`enabling`). Workspace owners only.\n",
|
|
83589
|
+
tags: [
|
|
83590
|
+
"Access & sharing"
|
|
83591
|
+
],
|
|
83592
|
+
responses: {
|
|
83593
|
+
"200": {
|
|
83594
|
+
description: "The governance status.",
|
|
83595
|
+
content: {
|
|
83596
|
+
"application/json": {
|
|
83597
|
+
schema: {
|
|
83598
|
+
type: "object",
|
|
83599
|
+
properties: {
|
|
83600
|
+
on: {
|
|
83601
|
+
type: "boolean"
|
|
83602
|
+
},
|
|
83603
|
+
default: {
|
|
83604
|
+
type: "string",
|
|
83605
|
+
enum: [
|
|
83606
|
+
"open",
|
|
83607
|
+
"private"
|
|
83608
|
+
]
|
|
83609
|
+
},
|
|
83610
|
+
stored_default: {
|
|
83611
|
+
type: "string",
|
|
83612
|
+
enum: [
|
|
83613
|
+
"open",
|
|
83614
|
+
"private"
|
|
83615
|
+
],
|
|
83616
|
+
nullable: true
|
|
83617
|
+
},
|
|
83618
|
+
since: {
|
|
83619
|
+
type: "string",
|
|
83620
|
+
nullable: true
|
|
83621
|
+
},
|
|
83622
|
+
enabled: {
|
|
83623
|
+
type: "boolean",
|
|
83624
|
+
description: "governance.enabled: this deployment runs the scope model."
|
|
83625
|
+
},
|
|
83626
|
+
decision_point_on: {
|
|
83627
|
+
type: "boolean"
|
|
83628
|
+
},
|
|
83629
|
+
field_tiers: {
|
|
83630
|
+
type: "boolean"
|
|
83631
|
+
},
|
|
83632
|
+
enabling: {
|
|
83633
|
+
type: "object",
|
|
83634
|
+
nullable: true,
|
|
83635
|
+
description: "A turn-on in progress: the workspace keeps its current access rules until the job has given every document its access scope; then governance switches on.",
|
|
83636
|
+
properties: {
|
|
83637
|
+
state: {
|
|
83638
|
+
type: "string",
|
|
83639
|
+
enum: [
|
|
83640
|
+
"preparing",
|
|
83641
|
+
"failed"
|
|
83642
|
+
]
|
|
83643
|
+
},
|
|
83644
|
+
default: {
|
|
83645
|
+
type: "string",
|
|
83646
|
+
enum: [
|
|
83647
|
+
"open",
|
|
83648
|
+
"private"
|
|
83649
|
+
]
|
|
83650
|
+
},
|
|
83651
|
+
requested_at: {
|
|
83652
|
+
type: "string",
|
|
83653
|
+
nullable: true
|
|
83654
|
+
},
|
|
83655
|
+
requested_by: {
|
|
83656
|
+
type: "string",
|
|
83657
|
+
nullable: true
|
|
83658
|
+
},
|
|
83659
|
+
done: {
|
|
83660
|
+
type: "integer",
|
|
83661
|
+
nullable: true,
|
|
83662
|
+
description: "Documents given their access scope so far."
|
|
83663
|
+
},
|
|
83664
|
+
total: {
|
|
83665
|
+
type: "integer",
|
|
83666
|
+
nullable: true
|
|
83667
|
+
},
|
|
83668
|
+
error: {
|
|
83669
|
+
type: "string",
|
|
83670
|
+
nullable: true
|
|
83671
|
+
}
|
|
83672
|
+
}
|
|
83673
|
+
}
|
|
83674
|
+
}
|
|
83675
|
+
}
|
|
83676
|
+
}
|
|
83677
|
+
}
|
|
83678
|
+
},
|
|
83679
|
+
"400": {
|
|
83680
|
+
$ref: "#/components/responses/BadRequest"
|
|
83681
|
+
},
|
|
83682
|
+
"401": {
|
|
83683
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83684
|
+
},
|
|
83685
|
+
"403": {
|
|
83686
|
+
$ref: "#/components/responses/Forbidden"
|
|
83687
|
+
},
|
|
83688
|
+
"429": {
|
|
83689
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83690
|
+
}
|
|
83691
|
+
}
|
|
83692
|
+
},
|
|
83693
|
+
put: {
|
|
83694
|
+
operationId: "setGovernanceLevel",
|
|
83695
|
+
"x-audience": "public",
|
|
83696
|
+
"x-required-scopes": [
|
|
83697
|
+
"access:write"
|
|
83698
|
+
],
|
|
83699
|
+
summary: "Turn data governance on or off",
|
|
83700
|
+
description: "Turn data governance on or off and choose its default. When documents still need their access scope, turning on answers at once with `enabling.state = preparing`; a background job gives every document its access scope and then switches governance on (poll `GET /v1/governance/level`). The workspace keeps its current access rules until then. A failed preparation is reported in `enabling.error`; turning on again continues where it stopped. Turning off is immediate and ends a preparation. Workspace owners only.\n",
|
|
83701
|
+
tags: [
|
|
83702
|
+
"Access & sharing"
|
|
83703
|
+
],
|
|
83704
|
+
requestBody: {
|
|
83705
|
+
required: true,
|
|
83706
|
+
content: {
|
|
83707
|
+
"application/json": {
|
|
83708
|
+
schema: {
|
|
83709
|
+
type: "object",
|
|
83710
|
+
required: [
|
|
83711
|
+
"on"
|
|
83712
|
+
],
|
|
83713
|
+
properties: {
|
|
83714
|
+
on: {
|
|
83715
|
+
type: "boolean"
|
|
83716
|
+
},
|
|
83717
|
+
default: {
|
|
83718
|
+
type: "string",
|
|
83719
|
+
enum: [
|
|
83720
|
+
"open",
|
|
83721
|
+
"private"
|
|
83722
|
+
]
|
|
83723
|
+
}
|
|
83724
|
+
}
|
|
83725
|
+
}
|
|
83726
|
+
}
|
|
83727
|
+
}
|
|
83728
|
+
},
|
|
83729
|
+
responses: {
|
|
83730
|
+
"200": {
|
|
83731
|
+
description: "The governance status after the change (or with `enabling` while it prepares).",
|
|
83732
|
+
content: {
|
|
83733
|
+
"application/json": {
|
|
83734
|
+
schema: {
|
|
83735
|
+
type: "object",
|
|
83736
|
+
properties: {
|
|
83737
|
+
on: {
|
|
83738
|
+
type: "boolean"
|
|
83739
|
+
},
|
|
83740
|
+
default: {
|
|
83741
|
+
type: "string",
|
|
83742
|
+
enum: [
|
|
83743
|
+
"open",
|
|
83744
|
+
"private"
|
|
83745
|
+
]
|
|
83746
|
+
},
|
|
83747
|
+
stored_default: {
|
|
83748
|
+
type: "string",
|
|
83749
|
+
enum: [
|
|
83750
|
+
"open",
|
|
83751
|
+
"private"
|
|
83752
|
+
],
|
|
83753
|
+
nullable: true
|
|
83754
|
+
},
|
|
83755
|
+
since: {
|
|
83756
|
+
type: "string",
|
|
83757
|
+
nullable: true
|
|
83758
|
+
},
|
|
83759
|
+
enabled: {
|
|
83760
|
+
type: "boolean",
|
|
83761
|
+
description: "governance.enabled: this deployment runs the scope model."
|
|
83762
|
+
},
|
|
83763
|
+
decision_point_on: {
|
|
83764
|
+
type: "boolean"
|
|
83765
|
+
},
|
|
83766
|
+
field_tiers: {
|
|
83767
|
+
type: "boolean"
|
|
83768
|
+
},
|
|
83769
|
+
enabling: {
|
|
83770
|
+
type: "object",
|
|
83771
|
+
nullable: true,
|
|
83772
|
+
description: "A turn-on in progress: the workspace keeps its current access rules until the job has given every document its access scope; then governance switches on.",
|
|
83773
|
+
properties: {
|
|
83774
|
+
state: {
|
|
83775
|
+
type: "string",
|
|
83776
|
+
enum: [
|
|
83777
|
+
"preparing",
|
|
83778
|
+
"failed"
|
|
83779
|
+
]
|
|
83780
|
+
},
|
|
83781
|
+
default: {
|
|
83782
|
+
type: "string",
|
|
83783
|
+
enum: [
|
|
83784
|
+
"open",
|
|
83785
|
+
"private"
|
|
83786
|
+
]
|
|
83787
|
+
},
|
|
83788
|
+
requested_at: {
|
|
83789
|
+
type: "string",
|
|
83790
|
+
nullable: true
|
|
83791
|
+
},
|
|
83792
|
+
requested_by: {
|
|
83793
|
+
type: "string",
|
|
83794
|
+
nullable: true
|
|
83795
|
+
},
|
|
83796
|
+
done: {
|
|
83797
|
+
type: "integer",
|
|
83798
|
+
nullable: true,
|
|
83799
|
+
description: "Documents given their access scope so far."
|
|
83800
|
+
},
|
|
83801
|
+
total: {
|
|
83802
|
+
type: "integer",
|
|
83803
|
+
nullable: true
|
|
83804
|
+
},
|
|
83805
|
+
error: {
|
|
83806
|
+
type: "string",
|
|
83807
|
+
nullable: true
|
|
83808
|
+
}
|
|
83809
|
+
}
|
|
83810
|
+
}
|
|
83811
|
+
}
|
|
83812
|
+
}
|
|
83813
|
+
}
|
|
83814
|
+
}
|
|
83815
|
+
},
|
|
83816
|
+
"400": {
|
|
83817
|
+
$ref: "#/components/responses/BadRequest"
|
|
83818
|
+
},
|
|
83819
|
+
"401": {
|
|
83820
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83821
|
+
},
|
|
83822
|
+
"403": {
|
|
83823
|
+
$ref: "#/components/responses/Forbidden"
|
|
83824
|
+
},
|
|
83825
|
+
"409": {
|
|
83826
|
+
$ref: "#/components/responses/Conflict"
|
|
83827
|
+
},
|
|
83828
|
+
"429": {
|
|
83829
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83830
|
+
}
|
|
83831
|
+
}
|
|
83832
|
+
}
|
|
83833
|
+
},
|
|
83834
|
+
"/v1/governance/level/dry-run": {
|
|
83835
|
+
get: {
|
|
83836
|
+
operationId: "dryRunGovernanceLevel",
|
|
83837
|
+
"x-audience": "public",
|
|
83838
|
+
"x-required-scopes": [
|
|
83839
|
+
"access:read"
|
|
83840
|
+
],
|
|
83841
|
+
summary: "Who reads what under data governance",
|
|
83842
|
+
description: "Per active member: live documents read today and under governance with the given default (`default=open|private`, `open` when omitted), with how many they would gain or lose, and the stamp report (documents still needing their access scope). Reads only. Workspace owners only.\n",
|
|
83843
|
+
tags: [
|
|
83844
|
+
"Access & sharing"
|
|
83845
|
+
],
|
|
83846
|
+
parameters: [
|
|
83847
|
+
{
|
|
83848
|
+
name: "default",
|
|
81909
83849
|
in: "query",
|
|
83850
|
+
required: false,
|
|
81910
83851
|
schema: {
|
|
81911
83852
|
type: "string",
|
|
81912
83853
|
enum: [
|
|
81913
|
-
"
|
|
81914
|
-
"
|
|
81915
|
-
]
|
|
81916
|
-
|
|
83854
|
+
"open",
|
|
83855
|
+
"private"
|
|
83856
|
+
]
|
|
83857
|
+
}
|
|
83858
|
+
}
|
|
83859
|
+
],
|
|
83860
|
+
responses: {
|
|
83861
|
+
"200": {
|
|
83862
|
+
description: "The dry run.",
|
|
83863
|
+
content: {
|
|
83864
|
+
"application/json": {
|
|
83865
|
+
schema: {
|
|
83866
|
+
type: "object",
|
|
83867
|
+
additionalProperties: true
|
|
83868
|
+
}
|
|
83869
|
+
}
|
|
83870
|
+
}
|
|
83871
|
+
},
|
|
83872
|
+
"400": {
|
|
83873
|
+
$ref: "#/components/responses/BadRequest"
|
|
83874
|
+
},
|
|
83875
|
+
"401": {
|
|
83876
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83877
|
+
},
|
|
83878
|
+
"403": {
|
|
83879
|
+
$ref: "#/components/responses/Forbidden"
|
|
83880
|
+
},
|
|
83881
|
+
"429": {
|
|
83882
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83883
|
+
}
|
|
83884
|
+
}
|
|
83885
|
+
}
|
|
83886
|
+
},
|
|
83887
|
+
"/v1/governance/shares/workspace": {
|
|
83888
|
+
post: {
|
|
83889
|
+
operationId: "setWorkspaceOpen",
|
|
83890
|
+
"x-audience": "public",
|
|
83891
|
+
"x-required-scopes": [
|
|
83892
|
+
"access:write"
|
|
83893
|
+
],
|
|
83894
|
+
summary: "Open or close a source to the workspace",
|
|
83895
|
+
description: "Where the workspace's governance default is `open`, every member reads what the access rules open to them, unless the holder closes the scope. Open (`open: true`) or close (`open: false`) a source the caller holds in person, or their uploads. Closed, its documents open only to holders, licences and shares. Exactly one of `scope_id` / `source_connection_id`.\n",
|
|
83896
|
+
tags: [
|
|
83897
|
+
"Access & sharing"
|
|
83898
|
+
],
|
|
83899
|
+
requestBody: {
|
|
83900
|
+
required: true,
|
|
83901
|
+
content: {
|
|
83902
|
+
"application/json": {
|
|
83903
|
+
schema: {
|
|
83904
|
+
type: "object",
|
|
83905
|
+
required: [
|
|
83906
|
+
"open"
|
|
83907
|
+
],
|
|
83908
|
+
properties: {
|
|
83909
|
+
scope_id: {
|
|
83910
|
+
type: "string",
|
|
83911
|
+
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
83912
|
+
description: "An access scope (8-4-4-4-12 hex; version digits are arbitrary)."
|
|
83913
|
+
},
|
|
83914
|
+
source_connection_id: {
|
|
83915
|
+
type: "string",
|
|
83916
|
+
format: "uuid"
|
|
83917
|
+
},
|
|
83918
|
+
open: {
|
|
83919
|
+
type: "boolean"
|
|
83920
|
+
}
|
|
83921
|
+
}
|
|
83922
|
+
}
|
|
83923
|
+
}
|
|
83924
|
+
}
|
|
83925
|
+
},
|
|
83926
|
+
responses: {
|
|
83927
|
+
"200": {
|
|
83928
|
+
description: "The scope, with `open_to_workspace`.",
|
|
83929
|
+
content: {
|
|
83930
|
+
"application/json": {
|
|
83931
|
+
schema: {
|
|
83932
|
+
type: "object",
|
|
83933
|
+
additionalProperties: true
|
|
83934
|
+
}
|
|
83935
|
+
}
|
|
83936
|
+
}
|
|
83937
|
+
},
|
|
83938
|
+
"400": {
|
|
83939
|
+
$ref: "#/components/responses/BadRequest"
|
|
83940
|
+
},
|
|
83941
|
+
"401": {
|
|
83942
|
+
$ref: "#/components/responses/Unauthorized"
|
|
83943
|
+
},
|
|
83944
|
+
"403": {
|
|
83945
|
+
$ref: "#/components/responses/Forbidden"
|
|
83946
|
+
},
|
|
83947
|
+
"404": {
|
|
83948
|
+
$ref: "#/components/responses/NotFound"
|
|
83949
|
+
},
|
|
83950
|
+
"409": {
|
|
83951
|
+
$ref: "#/components/responses/Conflict"
|
|
83952
|
+
},
|
|
83953
|
+
"429": {
|
|
83954
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
83955
|
+
}
|
|
83956
|
+
}
|
|
83957
|
+
}
|
|
83958
|
+
},
|
|
83959
|
+
"/v1/governance/shares/{kind}/{id}/stop": {
|
|
83960
|
+
post: {
|
|
83961
|
+
operationId: "stopShare",
|
|
83962
|
+
"x-audience": "public",
|
|
83963
|
+
"x-required-scopes": [
|
|
83964
|
+
"access:write"
|
|
83965
|
+
],
|
|
83966
|
+
summary: "Stop a share",
|
|
83967
|
+
description: "Stop a share: its granter or a holder ends it; the person it names may remove it from their own access.\n",
|
|
83968
|
+
tags: [
|
|
83969
|
+
"Access & sharing"
|
|
83970
|
+
],
|
|
83971
|
+
parameters: [
|
|
83972
|
+
{
|
|
83973
|
+
name: "kind",
|
|
83974
|
+
in: "path",
|
|
83975
|
+
required: true,
|
|
83976
|
+
schema: {
|
|
83977
|
+
type: "string",
|
|
83978
|
+
enum: [
|
|
83979
|
+
"document",
|
|
83980
|
+
"scope"
|
|
83981
|
+
]
|
|
83982
|
+
}
|
|
83983
|
+
},
|
|
83984
|
+
{
|
|
83985
|
+
name: "id",
|
|
83986
|
+
in: "path",
|
|
83987
|
+
required: true,
|
|
83988
|
+
schema: {
|
|
83989
|
+
type: "string",
|
|
83990
|
+
format: "uuid"
|
|
81917
83991
|
}
|
|
81918
83992
|
}
|
|
81919
83993
|
],
|
|
@@ -81924,18 +83998,244 @@ var openapi_default = {
|
|
|
81924
83998
|
"application/json": {
|
|
81925
83999
|
schema: {
|
|
81926
84000
|
type: "object",
|
|
81927
|
-
|
|
84001
|
+
additionalProperties: true
|
|
84002
|
+
}
|
|
84003
|
+
}
|
|
84004
|
+
}
|
|
84005
|
+
},
|
|
84006
|
+
"400": {
|
|
84007
|
+
$ref: "#/components/responses/BadRequest"
|
|
84008
|
+
},
|
|
84009
|
+
"401": {
|
|
84010
|
+
$ref: "#/components/responses/Unauthorized"
|
|
84011
|
+
},
|
|
84012
|
+
"403": {
|
|
84013
|
+
$ref: "#/components/responses/Forbidden"
|
|
84014
|
+
},
|
|
84015
|
+
"404": {
|
|
84016
|
+
$ref: "#/components/responses/NotFound"
|
|
84017
|
+
},
|
|
84018
|
+
"409": {
|
|
84019
|
+
$ref: "#/components/responses/Conflict"
|
|
84020
|
+
},
|
|
84021
|
+
"429": {
|
|
84022
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
84023
|
+
}
|
|
84024
|
+
}
|
|
84025
|
+
}
|
|
84026
|
+
},
|
|
84027
|
+
"/v1/governance/data-points": {
|
|
84028
|
+
get: {
|
|
84029
|
+
operationId: "listMyDataPoints",
|
|
84030
|
+
"x-audience": "public",
|
|
84031
|
+
"x-required-scopes": [
|
|
84032
|
+
"access:read"
|
|
84033
|
+
],
|
|
84034
|
+
summary: "My data points",
|
|
84035
|
+
description: "The Specs run over the caller's own documents: per field, what the Spec proposes (kind, audience) and the\ncaller's confirmed choice, plus the caller's overlay (hide who it came from, date precision, documents left out).\n`available: false` when the workspace's documents do not follow the access scope model.\n",
|
|
84036
|
+
tags: [
|
|
84037
|
+
"Access & sharing"
|
|
84038
|
+
],
|
|
84039
|
+
responses: {
|
|
84040
|
+
"200": {
|
|
84041
|
+
description: "OK",
|
|
84042
|
+
content: {
|
|
84043
|
+
"application/json": {
|
|
84044
|
+
schema: {
|
|
84045
|
+
type: "object",
|
|
84046
|
+
additionalProperties: true
|
|
84047
|
+
}
|
|
84048
|
+
}
|
|
84049
|
+
}
|
|
84050
|
+
},
|
|
84051
|
+
"400": {
|
|
84052
|
+
$ref: "#/components/responses/BadRequest"
|
|
84053
|
+
},
|
|
84054
|
+
"401": {
|
|
84055
|
+
$ref: "#/components/responses/Unauthorized"
|
|
84056
|
+
},
|
|
84057
|
+
"403": {
|
|
84058
|
+
$ref: "#/components/responses/Forbidden"
|
|
84059
|
+
},
|
|
84060
|
+
"404": {
|
|
84061
|
+
$ref: "#/components/responses/NotFound"
|
|
84062
|
+
},
|
|
84063
|
+
"409": {
|
|
84064
|
+
$ref: "#/components/responses/Conflict"
|
|
84065
|
+
},
|
|
84066
|
+
"429": {
|
|
84067
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
84068
|
+
}
|
|
84069
|
+
}
|
|
84070
|
+
}
|
|
84071
|
+
},
|
|
84072
|
+
"/v1/governance/data-points/shared": {
|
|
84073
|
+
get: {
|
|
84074
|
+
operationId: "listSharedDataPoints",
|
|
84075
|
+
"x-audience": "public",
|
|
84076
|
+
"x-required-scopes": [
|
|
84077
|
+
"access:read"
|
|
84078
|
+
],
|
|
84079
|
+
summary: "Data points shared with me",
|
|
84080
|
+
description: "Values of Spec fields colleagues shared with the caller, per Spec, lined up per row (`row_key`, opaque) with\ntheir context: document type, a date at the holder's precision, and who it came from unless the holder hides\nit. Never a document id, file name, link, source text or reasoning. At most 500 rows per Spec; `total_rows` and\n`truncated` say when more exist.\n",
|
|
84081
|
+
tags: [
|
|
84082
|
+
"Access & sharing"
|
|
84083
|
+
],
|
|
84084
|
+
parameters: [
|
|
84085
|
+
{
|
|
84086
|
+
name: "spec_id",
|
|
84087
|
+
in: "query",
|
|
84088
|
+
required: false,
|
|
84089
|
+
schema: {
|
|
84090
|
+
type: "string",
|
|
84091
|
+
format: "uuid"
|
|
84092
|
+
}
|
|
84093
|
+
}
|
|
84094
|
+
],
|
|
84095
|
+
responses: {
|
|
84096
|
+
"200": {
|
|
84097
|
+
description: "OK",
|
|
84098
|
+
content: {
|
|
84099
|
+
"application/json": {
|
|
84100
|
+
schema: {
|
|
84101
|
+
type: "object",
|
|
84102
|
+
additionalProperties: true
|
|
84103
|
+
}
|
|
84104
|
+
}
|
|
84105
|
+
}
|
|
84106
|
+
},
|
|
84107
|
+
"400": {
|
|
84108
|
+
$ref: "#/components/responses/BadRequest"
|
|
84109
|
+
},
|
|
84110
|
+
"401": {
|
|
84111
|
+
$ref: "#/components/responses/Unauthorized"
|
|
84112
|
+
},
|
|
84113
|
+
"403": {
|
|
84114
|
+
$ref: "#/components/responses/Forbidden"
|
|
84115
|
+
},
|
|
84116
|
+
"404": {
|
|
84117
|
+
$ref: "#/components/responses/NotFound"
|
|
84118
|
+
},
|
|
84119
|
+
"409": {
|
|
84120
|
+
$ref: "#/components/responses/Conflict"
|
|
84121
|
+
},
|
|
84122
|
+
"429": {
|
|
84123
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
84124
|
+
}
|
|
84125
|
+
}
|
|
84126
|
+
}
|
|
84127
|
+
},
|
|
84128
|
+
"/v1/governance/data-points/{specId}": {
|
|
84129
|
+
put: {
|
|
84130
|
+
operationId: "confirmDataPoints",
|
|
84131
|
+
"x-audience": "public",
|
|
84132
|
+
"x-required-scopes": [
|
|
84133
|
+
"access:write"
|
|
84134
|
+
],
|
|
84135
|
+
summary: "Confirm my data points for one Spec",
|
|
84136
|
+
description: "The caller's choices for one Spec run over their own documents: per field an audience (`private`, `people`\nwith `shared_with`, `everyone`) and optionally their own kind; a `sensitive` field stays private. The overlay\n(`hide_holder`, `date_precision`, `excluded_document_ids`) applies to every field of the Spec. Nothing is shared\nbefore this call. 404 when the caller holds no document the Spec ran over.\n",
|
|
84137
|
+
tags: [
|
|
84138
|
+
"Access & sharing"
|
|
84139
|
+
],
|
|
84140
|
+
parameters: [
|
|
84141
|
+
{
|
|
84142
|
+
name: "specId",
|
|
84143
|
+
in: "path",
|
|
84144
|
+
required: true,
|
|
84145
|
+
schema: {
|
|
84146
|
+
type: "string",
|
|
84147
|
+
format: "uuid"
|
|
84148
|
+
}
|
|
84149
|
+
}
|
|
84150
|
+
],
|
|
84151
|
+
requestBody: {
|
|
84152
|
+
required: true,
|
|
84153
|
+
content: {
|
|
84154
|
+
"application/json": {
|
|
84155
|
+
schema: {
|
|
84156
|
+
type: "object",
|
|
84157
|
+
required: [
|
|
84158
|
+
"fields"
|
|
84159
|
+
],
|
|
84160
|
+
properties: {
|
|
84161
|
+
fields: {
|
|
84162
|
+
type: "array",
|
|
81928
84163
|
items: {
|
|
81929
|
-
type: "
|
|
81930
|
-
|
|
81931
|
-
|
|
81932
|
-
|
|
84164
|
+
type: "object",
|
|
84165
|
+
required: [
|
|
84166
|
+
"field_key",
|
|
84167
|
+
"audience"
|
|
84168
|
+
],
|
|
84169
|
+
properties: {
|
|
84170
|
+
field_key: {
|
|
84171
|
+
type: "string"
|
|
84172
|
+
},
|
|
84173
|
+
audience: {
|
|
84174
|
+
type: "string",
|
|
84175
|
+
enum: [
|
|
84176
|
+
"private",
|
|
84177
|
+
"people",
|
|
84178
|
+
"everyone"
|
|
84179
|
+
]
|
|
84180
|
+
},
|
|
84181
|
+
kind: {
|
|
84182
|
+
type: "string",
|
|
84183
|
+
enum: [
|
|
84184
|
+
"plain",
|
|
84185
|
+
"customer_information",
|
|
84186
|
+
"personal",
|
|
84187
|
+
"sensitive"
|
|
84188
|
+
],
|
|
84189
|
+
nullable: true
|
|
84190
|
+
},
|
|
84191
|
+
shared_with: {
|
|
84192
|
+
type: "array",
|
|
84193
|
+
items: {
|
|
84194
|
+
type: "string",
|
|
84195
|
+
format: "uuid"
|
|
84196
|
+
}
|
|
84197
|
+
}
|
|
81933
84198
|
}
|
|
81934
84199
|
}
|
|
84200
|
+
},
|
|
84201
|
+
hide_holder: {
|
|
84202
|
+
type: "boolean"
|
|
84203
|
+
},
|
|
84204
|
+
date_precision: {
|
|
84205
|
+
type: "string",
|
|
84206
|
+
enum: [
|
|
84207
|
+
"day",
|
|
84208
|
+
"month",
|
|
84209
|
+
"year",
|
|
84210
|
+
"none"
|
|
84211
|
+
]
|
|
84212
|
+
},
|
|
84213
|
+
excluded_document_ids: {
|
|
84214
|
+
type: "array",
|
|
84215
|
+
items: {
|
|
84216
|
+
type: "string",
|
|
84217
|
+
format: "uuid"
|
|
84218
|
+
}
|
|
81935
84219
|
}
|
|
81936
84220
|
}
|
|
81937
84221
|
}
|
|
81938
84222
|
}
|
|
84223
|
+
}
|
|
84224
|
+
},
|
|
84225
|
+
responses: {
|
|
84226
|
+
"200": {
|
|
84227
|
+
description: "OK",
|
|
84228
|
+
content: {
|
|
84229
|
+
"application/json": {
|
|
84230
|
+
schema: {
|
|
84231
|
+
type: "object",
|
|
84232
|
+
additionalProperties: true
|
|
84233
|
+
}
|
|
84234
|
+
}
|
|
84235
|
+
}
|
|
84236
|
+
},
|
|
84237
|
+
"400": {
|
|
84238
|
+
$ref: "#/components/responses/BadRequest"
|
|
81939
84239
|
},
|
|
81940
84240
|
"401": {
|
|
81941
84241
|
$ref: "#/components/responses/Unauthorized"
|
|
@@ -81943,24 +84243,148 @@ var openapi_default = {
|
|
|
81943
84243
|
"403": {
|
|
81944
84244
|
$ref: "#/components/responses/Forbidden"
|
|
81945
84245
|
},
|
|
84246
|
+
"404": {
|
|
84247
|
+
$ref: "#/components/responses/NotFound"
|
|
84248
|
+
},
|
|
84249
|
+
"409": {
|
|
84250
|
+
$ref: "#/components/responses/Conflict"
|
|
84251
|
+
},
|
|
81946
84252
|
"429": {
|
|
81947
84253
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
81948
84254
|
}
|
|
81949
84255
|
}
|
|
81950
84256
|
}
|
|
81951
84257
|
},
|
|
81952
|
-
"/v1/
|
|
84258
|
+
"/v1/governance/data-points/{specId}/stop": {
|
|
84259
|
+
post: {
|
|
84260
|
+
operationId: "stopDataPoints",
|
|
84261
|
+
"x-audience": "public",
|
|
84262
|
+
"x-required-scopes": [
|
|
84263
|
+
"access:write"
|
|
84264
|
+
],
|
|
84265
|
+
summary: "Stop sharing a Spec's data points",
|
|
84266
|
+
description: "Stops sharing every field of one Spec from the caller's documents. 404 when the caller shares none of it.\n",
|
|
84267
|
+
tags: [
|
|
84268
|
+
"Access & sharing"
|
|
84269
|
+
],
|
|
84270
|
+
parameters: [
|
|
84271
|
+
{
|
|
84272
|
+
name: "specId",
|
|
84273
|
+
in: "path",
|
|
84274
|
+
required: true,
|
|
84275
|
+
schema: {
|
|
84276
|
+
type: "string",
|
|
84277
|
+
format: "uuid"
|
|
84278
|
+
}
|
|
84279
|
+
}
|
|
84280
|
+
],
|
|
84281
|
+
responses: {
|
|
84282
|
+
"200": {
|
|
84283
|
+
description: "OK",
|
|
84284
|
+
content: {
|
|
84285
|
+
"application/json": {
|
|
84286
|
+
schema: {
|
|
84287
|
+
type: "object",
|
|
84288
|
+
additionalProperties: true
|
|
84289
|
+
}
|
|
84290
|
+
}
|
|
84291
|
+
}
|
|
84292
|
+
},
|
|
84293
|
+
"400": {
|
|
84294
|
+
$ref: "#/components/responses/BadRequest"
|
|
84295
|
+
},
|
|
84296
|
+
"401": {
|
|
84297
|
+
$ref: "#/components/responses/Unauthorized"
|
|
84298
|
+
},
|
|
84299
|
+
"403": {
|
|
84300
|
+
$ref: "#/components/responses/Forbidden"
|
|
84301
|
+
},
|
|
84302
|
+
"404": {
|
|
84303
|
+
$ref: "#/components/responses/NotFound"
|
|
84304
|
+
},
|
|
84305
|
+
"409": {
|
|
84306
|
+
$ref: "#/components/responses/Conflict"
|
|
84307
|
+
},
|
|
84308
|
+
"429": {
|
|
84309
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
84310
|
+
}
|
|
84311
|
+
}
|
|
84312
|
+
}
|
|
84313
|
+
},
|
|
84314
|
+
"/v1/me/workspace-data/groups": {
|
|
81953
84315
|
get: {
|
|
81954
|
-
operationId: "
|
|
84316
|
+
operationId: "listMeWorkspaceDataGroups",
|
|
81955
84317
|
"x-audience": "public",
|
|
81956
84318
|
"x-required-scopes": [
|
|
81957
84319
|
"documents:read"
|
|
81958
84320
|
],
|
|
81959
|
-
summary: "
|
|
81960
|
-
description: "The workspace's documents
|
|
84321
|
+
summary: "Group workspace data",
|
|
84322
|
+
description: "The workspace's documents or data points you can see, counted per group (`by` source, document type, month or, for points, field) and per owner; narrow with the group parameters.\n",
|
|
81961
84323
|
tags: [
|
|
81962
84324
|
"My Data"
|
|
81963
84325
|
],
|
|
84326
|
+
parameters: [
|
|
84327
|
+
{
|
|
84328
|
+
name: "kind",
|
|
84329
|
+
in: "query",
|
|
84330
|
+
required: true,
|
|
84331
|
+
schema: {
|
|
84332
|
+
type: "string",
|
|
84333
|
+
enum: [
|
|
84334
|
+
"documents",
|
|
84335
|
+
"points"
|
|
84336
|
+
]
|
|
84337
|
+
}
|
|
84338
|
+
},
|
|
84339
|
+
{
|
|
84340
|
+
name: "by",
|
|
84341
|
+
in: "query",
|
|
84342
|
+
schema: {
|
|
84343
|
+
type: "string",
|
|
84344
|
+
enum: [
|
|
84345
|
+
"source",
|
|
84346
|
+
"type",
|
|
84347
|
+
"month",
|
|
84348
|
+
"field",
|
|
84349
|
+
"all"
|
|
84350
|
+
],
|
|
84351
|
+
default: "all"
|
|
84352
|
+
}
|
|
84353
|
+
},
|
|
84354
|
+
{
|
|
84355
|
+
name: "source",
|
|
84356
|
+
in: "query",
|
|
84357
|
+
description: "A source id, or `none`.",
|
|
84358
|
+
schema: {
|
|
84359
|
+
type: "string"
|
|
84360
|
+
}
|
|
84361
|
+
},
|
|
84362
|
+
{
|
|
84363
|
+
name: "type",
|
|
84364
|
+
in: "query",
|
|
84365
|
+
description: "A document type id, or `none`.",
|
|
84366
|
+
schema: {
|
|
84367
|
+
type: "string"
|
|
84368
|
+
}
|
|
84369
|
+
},
|
|
84370
|
+
{
|
|
84371
|
+
name: "month",
|
|
84372
|
+
in: "query",
|
|
84373
|
+
description: "Month, `YYYY-MM`.",
|
|
84374
|
+
schema: {
|
|
84375
|
+
type: "string",
|
|
84376
|
+
pattern: "^\\d{4}-(0[1-9]|1[0-2])$"
|
|
84377
|
+
}
|
|
84378
|
+
},
|
|
84379
|
+
{
|
|
84380
|
+
name: "field",
|
|
84381
|
+
in: "query",
|
|
84382
|
+
description: "A field id, or `none`.",
|
|
84383
|
+
schema: {
|
|
84384
|
+
type: "string"
|
|
84385
|
+
}
|
|
84386
|
+
}
|
|
84387
|
+
],
|
|
81964
84388
|
responses: {
|
|
81965
84389
|
"200": {
|
|
81966
84390
|
description: "OK",
|
|
@@ -81973,6 +84397,9 @@ var openapi_default = {
|
|
|
81973
84397
|
}
|
|
81974
84398
|
}
|
|
81975
84399
|
},
|
|
84400
|
+
"400": {
|
|
84401
|
+
$ref: "#/components/responses/BadRequest"
|
|
84402
|
+
},
|
|
81976
84403
|
"401": {
|
|
81977
84404
|
$ref: "#/components/responses/Unauthorized"
|
|
81978
84405
|
},
|
|
@@ -81993,7 +84420,7 @@ var openapi_default = {
|
|
|
81993
84420
|
"documents:read"
|
|
81994
84421
|
],
|
|
81995
84422
|
summary: "List workspace data by owner",
|
|
81996
|
-
description: "The documents
|
|
84423
|
+
description: "The documents or data points of one group and owner, newest first (pass a page's `next` as `after`), or the fields of one owner by `offset`.\n",
|
|
81997
84424
|
tags: [
|
|
81998
84425
|
"My Data"
|
|
81999
84426
|
],
|
|
@@ -82024,9 +84451,50 @@ var openapi_default = {
|
|
|
82024
84451
|
]
|
|
82025
84452
|
}
|
|
82026
84453
|
},
|
|
84454
|
+
{
|
|
84455
|
+
name: "source",
|
|
84456
|
+
in: "query",
|
|
84457
|
+
description: "A source id, or `none`.",
|
|
84458
|
+
schema: {
|
|
84459
|
+
type: "string"
|
|
84460
|
+
}
|
|
84461
|
+
},
|
|
84462
|
+
{
|
|
84463
|
+
name: "type",
|
|
84464
|
+
in: "query",
|
|
84465
|
+
description: "A document type id, or `none`.",
|
|
84466
|
+
schema: {
|
|
84467
|
+
type: "string"
|
|
84468
|
+
}
|
|
84469
|
+
},
|
|
84470
|
+
{
|
|
84471
|
+
name: "month",
|
|
84472
|
+
in: "query",
|
|
84473
|
+
description: "Month, `YYYY-MM`.",
|
|
84474
|
+
schema: {
|
|
84475
|
+
type: "string",
|
|
84476
|
+
pattern: "^\\d{4}-(0[1-9]|1[0-2])$"
|
|
84477
|
+
}
|
|
84478
|
+
},
|
|
84479
|
+
{
|
|
84480
|
+
name: "field",
|
|
84481
|
+
in: "query",
|
|
84482
|
+
description: "A field id, or `none`.",
|
|
84483
|
+
schema: {
|
|
84484
|
+
type: "string"
|
|
84485
|
+
}
|
|
84486
|
+
},
|
|
84487
|
+
{
|
|
84488
|
+
name: "after",
|
|
84489
|
+
in: "query",
|
|
84490
|
+
schema: {
|
|
84491
|
+
type: "string"
|
|
84492
|
+
}
|
|
84493
|
+
},
|
|
82027
84494
|
{
|
|
82028
84495
|
name: "offset",
|
|
82029
84496
|
in: "query",
|
|
84497
|
+
description: "Fields only.",
|
|
82030
84498
|
schema: {
|
|
82031
84499
|
type: "integer",
|
|
82032
84500
|
minimum: 0,
|
|
@@ -82050,19 +84518,14 @@ var openapi_default = {
|
|
|
82050
84518
|
"application/json": {
|
|
82051
84519
|
schema: {
|
|
82052
84520
|
type: "object",
|
|
82053
|
-
|
|
82054
|
-
items: {
|
|
82055
|
-
type: "array",
|
|
82056
|
-
items: {
|
|
82057
|
-
type: "object",
|
|
82058
|
-
additionalProperties: true
|
|
82059
|
-
}
|
|
82060
|
-
}
|
|
82061
|
-
}
|
|
84521
|
+
additionalProperties: true
|
|
82062
84522
|
}
|
|
82063
84523
|
}
|
|
82064
84524
|
}
|
|
82065
84525
|
},
|
|
84526
|
+
"400": {
|
|
84527
|
+
$ref: "#/components/responses/BadRequest"
|
|
84528
|
+
},
|
|
82066
84529
|
"401": {
|
|
82067
84530
|
$ref: "#/components/responses/Unauthorized"
|
|
82068
84531
|
},
|
|
@@ -82162,7 +84625,7 @@ var openapi_default = {
|
|
|
82162
84625
|
type: "string",
|
|
82163
84626
|
maxLength: 64
|
|
82164
84627
|
},
|
|
82165
|
-
description: "Unique key for idempotent requests, at most 64 characters (a longer key\nis refused with 400 `invalid_idempotency_key` before any work).
|
|
84628
|
+
description: "Unique key for idempotent requests, at most 64 characters (a longer key\nis refused with 400 `invalid_idempotency_key` before any work). A retry\nwith the same key, request and API key within 24 hours returns the\nfirst response with `Idempotent-Replayed: true`; the same key on a\ndifferent request or from another API key answers 422\n`idempotency_key_reused`. On `POST /v1/extract` the key caches the\nextraction result for the workspace instead: any key of the workspace\nsending it gets that result with `cached: true`.\n"
|
|
82166
84629
|
},
|
|
82167
84630
|
SourceConnectionId: {
|
|
82168
84631
|
name: "connectionId",
|
|
@@ -83145,7 +85608,12 @@ var openapi_default = {
|
|
|
83145
85608
|
},
|
|
83146
85609
|
decision: {
|
|
83147
85610
|
type: "object",
|
|
83148
|
-
nullable: true
|
|
85611
|
+
nullable: true,
|
|
85612
|
+
description: "Null while undecided, or when withheld (`decision_withheld`)."
|
|
85613
|
+
},
|
|
85614
|
+
decision_withheld: {
|
|
85615
|
+
type: "boolean",
|
|
85616
|
+
description: "True when the run names a document the caller cannot read: the decision is composed over all of them, so it is not served."
|
|
83149
85617
|
},
|
|
83150
85618
|
decided_by: {
|
|
83151
85619
|
type: "object",
|
|
@@ -83247,7 +85715,12 @@ var openapi_default = {
|
|
|
83247
85715
|
},
|
|
83248
85716
|
decision: {
|
|
83249
85717
|
type: "object",
|
|
83250
|
-
nullable: true
|
|
85718
|
+
nullable: true,
|
|
85719
|
+
description: "Null while undecided, or when withheld (`decision_withheld`)."
|
|
85720
|
+
},
|
|
85721
|
+
decision_withheld: {
|
|
85722
|
+
type: "boolean",
|
|
85723
|
+
description: "Present and true when the run names a document the caller cannot read: the decision is composed over all of them, so it is not served."
|
|
83251
85724
|
},
|
|
83252
85725
|
decided_by: {
|
|
83253
85726
|
type: "object",
|
|
@@ -114896,10 +117369,119 @@ var openapi_default = {
|
|
|
114896
117369
|
type: "string"
|
|
114897
117370
|
},
|
|
114898
117371
|
error: {
|
|
117372
|
+
type: "string",
|
|
117373
|
+
description: "The raw failure message."
|
|
117374
|
+
},
|
|
117375
|
+
reason: {
|
|
117376
|
+
type: "string",
|
|
117377
|
+
description: "Why the file could not be imported, in words for a person."
|
|
117378
|
+
}
|
|
117379
|
+
}
|
|
117380
|
+
}
|
|
117381
|
+
}
|
|
117382
|
+
}
|
|
117383
|
+
},
|
|
117384
|
+
SourceImportRun: {
|
|
117385
|
+
type: "object",
|
|
117386
|
+
description: "One import carried out in the background. Counts are in requested items (a folder is one item however many files it holds): `requested = imported + skipped + empty + failed + pending`.\n",
|
|
117387
|
+
properties: {
|
|
117388
|
+
id: {
|
|
117389
|
+
type: "string",
|
|
117390
|
+
format: "uuid"
|
|
117391
|
+
},
|
|
117392
|
+
source_connection_id: {
|
|
117393
|
+
type: "string",
|
|
117394
|
+
format: "uuid"
|
|
117395
|
+
},
|
|
117396
|
+
status: {
|
|
117397
|
+
type: "string",
|
|
117398
|
+
enum: [
|
|
117399
|
+
"queued",
|
|
117400
|
+
"running",
|
|
117401
|
+
"completed",
|
|
117402
|
+
"failed"
|
|
117403
|
+
],
|
|
117404
|
+
description: "`completed` also when some items failed (see `failed` and `failures`); `failed` when the run itself stopped (see `error`).\n"
|
|
117405
|
+
},
|
|
117406
|
+
running: {
|
|
117407
|
+
type: "boolean",
|
|
117408
|
+
description: "True while the run is queued or being worked on."
|
|
117409
|
+
},
|
|
117410
|
+
requested: {
|
|
117411
|
+
type: "integer",
|
|
117412
|
+
description: "Items asked for."
|
|
117413
|
+
},
|
|
117414
|
+
imported: {
|
|
117415
|
+
type: "integer",
|
|
117416
|
+
description: "Items brought into the workspace by this run."
|
|
117417
|
+
},
|
|
117418
|
+
skipped: {
|
|
117419
|
+
type: "integer",
|
|
117420
|
+
description: "Items that were in the workspace already; nothing was imported twice."
|
|
117421
|
+
},
|
|
117422
|
+
empty: {
|
|
117423
|
+
type: "integer",
|
|
117424
|
+
description: "Folders that held nothing to import."
|
|
117425
|
+
},
|
|
117426
|
+
failed: {
|
|
117427
|
+
type: "integer"
|
|
117428
|
+
},
|
|
117429
|
+
pending: {
|
|
117430
|
+
type: "integer",
|
|
117431
|
+
description: "Items not worked on yet (or never, when the run itself failed)."
|
|
117432
|
+
},
|
|
117433
|
+
error: {
|
|
117434
|
+
type: [
|
|
117435
|
+
"string",
|
|
117436
|
+
"null"
|
|
117437
|
+
],
|
|
117438
|
+
description: "Why the run as a whole stopped, when it did."
|
|
117439
|
+
},
|
|
117440
|
+
created_at: {
|
|
117441
|
+
type: "string",
|
|
117442
|
+
format: "date-time"
|
|
117443
|
+
},
|
|
117444
|
+
started_at: {
|
|
117445
|
+
type: [
|
|
117446
|
+
"string",
|
|
117447
|
+
"null"
|
|
117448
|
+
],
|
|
117449
|
+
format: "date-time"
|
|
117450
|
+
},
|
|
117451
|
+
finished_at: {
|
|
117452
|
+
type: [
|
|
117453
|
+
"string",
|
|
117454
|
+
"null"
|
|
117455
|
+
],
|
|
117456
|
+
format: "date-time"
|
|
117457
|
+
},
|
|
117458
|
+
failures: {
|
|
117459
|
+
type: "array",
|
|
117460
|
+
description: "On the single-run read. What could not be imported.",
|
|
117461
|
+
items: {
|
|
117462
|
+
type: "object",
|
|
117463
|
+
properties: {
|
|
117464
|
+
item_id: {
|
|
117465
|
+
type: "string",
|
|
117466
|
+
description: "The requested item (a file or folder id)."
|
|
117467
|
+
},
|
|
117468
|
+
file_id: {
|
|
117469
|
+
type: "string",
|
|
117470
|
+
description: "The file inside a requested folder, when the failure is that file's."
|
|
117471
|
+
},
|
|
117472
|
+
name: {
|
|
114899
117473
|
type: "string"
|
|
117474
|
+
},
|
|
117475
|
+
reason: {
|
|
117476
|
+
type: "string",
|
|
117477
|
+
description: "Why, in words for a person."
|
|
114900
117478
|
}
|
|
114901
117479
|
}
|
|
114902
117480
|
}
|
|
117481
|
+
},
|
|
117482
|
+
failures_truncated: {
|
|
117483
|
+
type: "boolean",
|
|
117484
|
+
description: "True when more failures exist than `failures` names; `failed` is always exact."
|
|
114903
117485
|
}
|
|
114904
117486
|
}
|
|
114905
117487
|
},
|
|
@@ -115803,6 +118385,10 @@ var openapi_default = {
|
|
|
115803
118385
|
},
|
|
115804
118386
|
cursor: {
|
|
115805
118387
|
type: "integer"
|
|
118388
|
+
},
|
|
118389
|
+
has_older: {
|
|
118390
|
+
type: "boolean",
|
|
118391
|
+
description: "True when the conversation goes further back than this page."
|
|
115806
118392
|
}
|
|
115807
118393
|
}
|
|
115808
118394
|
},
|
|
@@ -116763,7 +119349,7 @@ function endpointKey(method, path) {
|
|
|
116763
119349
|
const p2 = path.split("?")[0].replace(/\{[^}]+\}|:[A-Za-z_]\w*/g, "{}").replace(/\/$/, "");
|
|
116764
119350
|
return `${method.toUpperCase()} ${p2}`;
|
|
116765
119351
|
}
|
|
116766
|
-
function coveredEndpointKeys(
|
|
119352
|
+
function coveredEndpointKeys(sections88) {
|
|
116767
119353
|
const keys = /* @__PURE__ */ new Set();
|
|
116768
119354
|
const walk = (blocks) => {
|
|
116769
119355
|
for (const b of blocks) {
|
|
@@ -116773,7 +119359,7 @@ function coveredEndpointKeys(sections87) {
|
|
|
116773
119359
|
}
|
|
116774
119360
|
}
|
|
116775
119361
|
};
|
|
116776
|
-
for (const s of
|
|
119362
|
+
for (const s of sections88) walk(s.content);
|
|
116777
119363
|
return keys;
|
|
116778
119364
|
}
|
|
116779
119365
|
function tagSlug(tag) {
|
|
@@ -117035,7 +119621,7 @@ function buildGeneratedReference(spec, covered) {
|
|
|
117035
119621
|
const ib = tagOrder.indexOf(b);
|
|
117036
119622
|
return (ia < 0 ? 1e6 : ia) - (ib < 0 ? 1e6 : ib) || a.localeCompare(b);
|
|
117037
119623
|
});
|
|
117038
|
-
const
|
|
119624
|
+
const sections88 = tags.map((tag) => {
|
|
117039
119625
|
const list = byTag.get(tag);
|
|
117040
119626
|
const intro = [];
|
|
117041
119627
|
if (tagDesc.get(tag)) intro.push({ type: "paragraph", text: tagDesc.get(tag).replace(/\s*\n\s*/g, " ") });
|
|
@@ -117053,11 +119639,11 @@ function buildGeneratedReference(spec, covered) {
|
|
|
117053
119639
|
};
|
|
117054
119640
|
});
|
|
117055
119641
|
return {
|
|
117056
|
-
sections:
|
|
119642
|
+
sections: sections88,
|
|
117057
119643
|
nav: {
|
|
117058
119644
|
id: GENERATED_REFERENCE_GROUP,
|
|
117059
119645
|
label: "Endpoint Reference",
|
|
117060
|
-
children:
|
|
119646
|
+
children: sections88.map((s) => ({ id: s.slug, label: s.title.replace(/ Endpoint Reference$/, "") }))
|
|
117061
119647
|
},
|
|
117062
119648
|
generatedKeys: ops.map((o) => endpointKey(o.method, o.path))
|
|
117063
119649
|
};
|
|
@@ -117461,26 +120047,57 @@ console.log(\`Fetched \${all.length} documents\`);`
|
|
|
117461
120047
|
slug: "idempotency",
|
|
117462
120048
|
parentSlug: "overview",
|
|
117463
120049
|
title: "Idempotency",
|
|
117464
|
-
seoTitle: "Idempotency-Key Header: Safe
|
|
117465
|
-
description: "Retry
|
|
120050
|
+
seoTitle: "Idempotency-Key Header: Safe Retries \u2014 Talonic Docs",
|
|
120051
|
+
description: "Retry writes safely with the Idempotency-Key header: a retry of the same request by the same key within 24 hours returns the first response, marked Idempotent-Replayed: true, and never applies the write twice.",
|
|
117466
120052
|
content: [
|
|
117467
|
-
{ type: "paragraph", text: "Pass an `Idempotency-Key` header
|
|
117468
|
-
{ type: "paragraph", text: "
|
|
117469
|
-
{ type: "
|
|
117470
|
-
{ type: "
|
|
117471
|
-
|
|
120053
|
+
{ type: "paragraph", text: "Pass an `Idempotency-Key` header to retry a request without doing the work twice, for example after a network timeout. Generate one key (a UUID works well) per logical operation, send it with the request, and send the same request with the same key again if you are unsure whether the first one arrived." },
|
|
120054
|
+
{ type: "paragraph", text: "Two families of endpoints honor the header. **Write endpoints** that list `Idempotency-Key` in their reference (creating, changing or deleting cases, reviews, notes, matching configurations, copies of skipped duplicates and more) follow the contract below. `POST /v1/extract` keeps its own cached-result behavior, described under Extract below." },
|
|
120055
|
+
{ type: "heading", level: 2, id: "idempotency-write-endpoints", text: "Write endpoints" },
|
|
120056
|
+
{ type: "list", items: [
|
|
120057
|
+
"**First request with a key** \u2014 runs as usual. The response carries `Idempotent-Replayed: false`.",
|
|
120058
|
+
"**Retry** (same key, same method, path and body, from the same API key within 24 hours) \u2014 returns the first response with its original status code and `Idempotent-Replayed: true`. Nothing runs again.",
|
|
120059
|
+
"**Same key, different request** \u2014 422 `idempotency_key_reused`. Use a new key for a new request.",
|
|
120060
|
+
"**Same key from a different API key** \u2014 422 `idempotency_key_reused`. A stored response is only ever returned to the credential that made the first request (for OAuth and signed-in callers, the same person too), never to another key in the workspace.",
|
|
120061
|
+
"**Retry while the first request still runs** \u2014 409 `idempotency_request_in_progress`. Retry in a moment to receive the first request's result.",
|
|
120062
|
+
"**First request failed** \u2014 the key is released, so the retry runs for real.",
|
|
120063
|
+
"**After 24 hours** \u2014 the key is forgotten and a request with it runs as new."
|
|
120064
|
+
] },
|
|
117472
120065
|
{
|
|
117473
120066
|
type: "param-table",
|
|
117474
120067
|
title: "Idempotency details",
|
|
117475
120068
|
params: [
|
|
117476
120069
|
{ name: "Header", type: "", description: "`Idempotency-Key: <your-unique-key>`" },
|
|
117477
|
-
{ name: "
|
|
117478
|
-
{ name: "
|
|
117479
|
-
{ name: "
|
|
117480
|
-
{ name: "
|
|
120070
|
+
{ name: "Key format", type: "", description: "1 to 64 characters. UUIDs (36 characters) recommended. A longer or empty key answers 400 `invalid_idempotency_key` before any work." },
|
|
120071
|
+
{ name: "Window", type: "", description: "24 hours from the first request." },
|
|
120072
|
+
{ name: "Scope", type: "", description: "Per workspace and per credential: a key is claimed once per workspace, and its stored response replays only to the API key (and person) that claimed it." },
|
|
120073
|
+
{ name: "Replay marker", type: "", description: "Response header `Idempotent-Replayed: true` on a replay, `false` on a first run." }
|
|
117481
120074
|
]
|
|
117482
120075
|
},
|
|
117483
|
-
{
|
|
120076
|
+
{
|
|
120077
|
+
type: "code",
|
|
120078
|
+
language: "bash",
|
|
120079
|
+
title: "Example \u2014 safe retry of a write",
|
|
120080
|
+
code: `KEY=$(uuidgen)
|
|
120081
|
+
|
|
120082
|
+
curl -X POST https://api.talonic.com/v1/extract/dedup/process-anyway \\
|
|
120083
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
120084
|
+
-H "Content-Type: application/json" \\
|
|
120085
|
+
-H "Idempotency-Key: $KEY" \\
|
|
120086
|
+
-d '{"existing_document_id": "0b6c1f9e-2d4a-4e8b-9c1d-3f5a7b9c2e10"}'
|
|
120087
|
+
|
|
120088
|
+
# Same request, same key: the first copy comes back with Idempotent-Replayed: true
|
|
120089
|
+
curl -i -X POST https://api.talonic.com/v1/extract/dedup/process-anyway \\
|
|
120090
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
120091
|
+
-H "Content-Type: application/json" \\
|
|
120092
|
+
-H "Idempotency-Key: $KEY" \\
|
|
120093
|
+
-d '{"existing_document_id": "0b6c1f9e-2d4a-4e8b-9c1d-3f5a7b9c2e10"}'`
|
|
120094
|
+
},
|
|
120095
|
+
{ type: "heading", level: 2, id: "idempotency-extract", text: "Extract" },
|
|
120096
|
+
{ type: "paragraph", text: "On `POST /v1/extract`, a request with an already-processed key returns the cached response, marked with `cached: true` in the body." },
|
|
120097
|
+
{ type: "paragraph", text: "The cached response is guaranteed for **24 hours** and is scoped to your **organization**, not to the individual API key: any key in the same workspace replaying the idempotency key gets the same cached result, while the same key string used by a different organization is treated independently. A duplicate request within the window returns the original result immediately, with no additional credit cost. Do not rely on reusing a key after the 24-hour window \u2014 mint a fresh key per logical operation instead." },
|
|
120098
|
+
{ type: "paragraph", text: "A cached replay is a **reduced response**: it carries `extraction_id`, the original `request_id`, `status`, a slim `document` object, the extracted `data`, and `cached: true` \u2014 the `confidence` and `processing` blocks of the original response are not replayed. Document visibility is re-checked on every replay: if a Sources IAM rule has since hidden the underlying document from the calling key, the replay returns the same `404 document_not_found` a fresh request would, rather than leaking the cached content." },
|
|
120099
|
+
{ type: "paragraph", text: "Idempotency covers the retry side of resilient pipelines; for the delivery side, configure a webhook destination and listen for `extraction.complete` events instead of polling. Note that on `POST /v1/extract`, reusing a key with different request parameters still returns the first request's cached result \u2014 always generate a fresh key for each distinct operation." },
|
|
120100
|
+
{ type: "heading", level: 3, id: "idempotency-behavior", text: "Extract behavior" },
|
|
117484
120101
|
{ type: "list", items: [
|
|
117485
120102
|
"**First request** \u2014 processed normally. The response and extraction ID are cached against the key.",
|
|
117486
120103
|
"**Duplicate request** (same key within 24h) \u2014 returns the cached response immediately with HTTP 200 and `cached: true`. No new extraction is created and no credits are consumed.",
|
|
@@ -117509,7 +120126,7 @@ console.log(\`Fetched \${all.length} documents\`);`
|
|
|
117509
120126
|
{
|
|
117510
120127
|
type: "code",
|
|
117511
120128
|
language: "bash",
|
|
117512
|
-
title: "Example \u2014 safe retry
|
|
120129
|
+
title: "Example \u2014 safe retry of an extraction",
|
|
117513
120130
|
code: `# Generate a unique key per logical operation
|
|
117514
120131
|
IDEMPOTENCY_KEY=$(uuidgen)
|
|
117515
120132
|
|
|
@@ -117526,7 +120143,7 @@ curl -X POST https://api.talonic.com/v1/extract \\
|
|
|
117526
120143
|
-F "file=@invoice.pdf" \\
|
|
117527
120144
|
-F 'schema={"vendor_name":"string","total_amount":"number"}'`
|
|
117528
120145
|
},
|
|
117529
|
-
{ type: "callout", text: "Always use a new idempotency key for each distinct logical operation.
|
|
120146
|
+
{ type: "callout", text: "Always use a new idempotency key for each distinct logical operation. On write endpoints a reused key answers 422 `idempotency_key_reused`; on `POST /v1/extract` it returns the first request's cached result and ignores the new parameters." }
|
|
117530
120147
|
],
|
|
117531
120148
|
related: [
|
|
117532
120149
|
{ label: "POST /v1/extract", slug: "post-extract" },
|
|
@@ -117534,13 +120151,15 @@ curl -X POST https://api.talonic.com/v1/extract \\
|
|
|
117534
120151
|
{ label: "Webhook Events", slug: "webhook-events" }
|
|
117535
120152
|
],
|
|
117536
120153
|
faq: [
|
|
120154
|
+
{ question: "What does Idempotent-Replayed mean?", answer: "On write endpoints, Idempotent-Replayed: true says the body is the stored response to an earlier request with the same key, returned with its original status; nothing ran again. Idempotent-Replayed: false marks the first run." },
|
|
120155
|
+
{ question: "Can another API key in my workspace receive my stored response?", answer: "Not on write endpoints: a stored response replays only to the API key (and, for OAuth or signed-in callers, the person) that made the first request. Another key sending the same Idempotency-Key gets 422 idempotency_key_reused. On POST /v1/extract the cached result is shared across the keys of the workspace." },
|
|
117537
120156
|
{ question: "How do I prevent duplicate extractions on retry?", answer: "Pass an Idempotency-Key header with a unique value (e.g. UUID) on POST /v1/extract. Retries with the same key return the cached result, marked cached: true, and consume no additional credits." },
|
|
117538
120157
|
{ question: "How long are idempotency keys valid?", answer: "The cached response is guaranteed for 24 hours. Do not build on reuse after the window \u2014 generate a fresh key per logical operation, and treat any replay past 24 hours as undefined." },
|
|
117539
|
-
{ question: "What happens if I reuse an idempotency key with different parameters?", answer: "
|
|
117540
|
-
{ question: "Is the idempotency cache shared between my API keys?", answer: "
|
|
120158
|
+
{ question: "What happens if I reuse an idempotency key with different parameters?", answer: "On write endpoints the API answers 422 idempotency_key_reused and does nothing. On POST /v1/extract it returns the cached response from the first request and ignores the new parameters. Generate a fresh key for every distinct logical operation." },
|
|
120159
|
+
{ question: "Is the idempotency cache shared between my API keys?", answer: "On write endpoints, no: each stored response belongs to the key that made it. On POST /v1/extract, yes: the cache is scoped to your organization, so any key in the same workspace replaying the idempotency key receives the same cached result. The same key string used by a different organization is always independent." },
|
|
117541
120160
|
{ question: "Does a cached replay return the full original response?", answer: "No \u2014 it is a reduced shape: extraction_id, the original request_id, status, a slim document object, the extracted data, and cached: true. The confidence and processing blocks are not replayed; fetch them from GET /v1/extractions/{id} if you need them again." }
|
|
117542
120161
|
],
|
|
117543
|
-
mentions: ["idempotency", "Idempotency-Key", "retry", "duplicate requests", "cached response", "
|
|
120162
|
+
mentions: ["idempotency", "Idempotency-Key", "Idempotent-Replayed", "idempotency_key_reused", "retry", "duplicate requests", "cached response", "safe retries"]
|
|
117544
120163
|
}
|
|
117545
120164
|
];
|
|
117546
120165
|
|
|
@@ -119289,6 +121908,34 @@ curl -s -o head.bin -H "Range: bytes=0-65535" \\
|
|
|
119289
121908
|
},
|
|
119290
121909
|
{ type: "heading", level: 2, id: "document-files-provenance", text: "Provenance fields to feed it" },
|
|
119291
121910
|
{ type: "paragraph", text: "Request `include=provenance` on `GET /v1/pipelines/{id}/results` or `GET /v1/run/{id}/results` to get one provenance entry per field. Every entry carries `kind` (`span`, `assembly_override`, `auto_adjudication`, `human`, `derived`, `legacy`, or `matcher_decision`), `match` (`exact`, `approximate`, or `none`, the grade of the quote against the source), `confidence` (nullable), and `path`, the field path as an array of keys and indexes. Kinds that carry a quote add `text`, `source_document_id`, `page_index` (0-based), and `char_start`/`char_end`, UTF-16 offsets into the document's served markdown. Pass `text` and `page_index` straight to `span-geometry`, and use `match` to decide how much to trust the highlight." },
|
|
121911
|
+
{ type: "heading", level: 2, id: "document-files-mail-originals", text: "Show an email as it was sent" },
|
|
121912
|
+
{ type: "paragraph", text: "For a document captured from an email, `GET /v1/documents/{id}/mail-originals` returns the original messages it came from: `asset_id`, `message_id`, the sent time as `date`, `from`, `subject`, the HTML body as `html` (pictures shown inside the mail are embedded) and the plain `text`. The HTML is exactly what the sender wrote, so show it in a sandbox without scripts or remote content. An HTML body larger than 1.5 MB comes back as `null` and the text stays. A document that did not come from an email answers an empty `originals` list, and one call returns at most 200 originals. A missing document, one in another workspace, and one hidden from the key's person all answer the same `404`." },
|
|
121913
|
+
{
|
|
121914
|
+
type: "endpoint",
|
|
121915
|
+
method: "GET",
|
|
121916
|
+
path: "/v1/documents/{id}/mail-originals",
|
|
121917
|
+
summary: "The original messages of an email document, parsed for display.",
|
|
121918
|
+
description: "Scope: `read` (or `documents:read`). Any member of the workspace may call it. Returns `{ originals: [...] }`. 404 when the document is missing or hidden from the key's person.",
|
|
121919
|
+
blocks: []
|
|
121920
|
+
},
|
|
121921
|
+
{
|
|
121922
|
+
type: "code",
|
|
121923
|
+
language: "json",
|
|
121924
|
+
title: "Response",
|
|
121925
|
+
code: `{
|
|
121926
|
+
"originals": [
|
|
121927
|
+
{
|
|
121928
|
+
"asset_id": "7f1c2b9e-4d3a-4e8b-9a61-0c5d2e8f4b10",
|
|
121929
|
+
"message_id": "<CAF9x2k@mail.example.com>",
|
|
121930
|
+
"date": "2026-10-02T08:14:00.000Z",
|
|
121931
|
+
"from": "\\"Anna Weber\\" <anna.weber@example.com>",
|
|
121932
|
+
"subject": "Invoice 4471203",
|
|
121933
|
+
"html": "<p>Please find the invoice attached.</p>",
|
|
121934
|
+
"text": "Please find the invoice attached."
|
|
121935
|
+
}
|
|
121936
|
+
]
|
|
121937
|
+
}`
|
|
121938
|
+
},
|
|
119292
121939
|
{ type: "heading", level: 2, id: "document-files-patch", text: "Tag a document after upload" },
|
|
119293
121940
|
{ type: "paragraph", text: "`PATCH /v1/documents/{id}` updates the caller-owned tags that `POST /v1/run` sets at upload. The body must include at least one of `batch_id` or `metadata`. A string `batch_id` sets it (trimmed), `null` clears it, and a blank string is a 400. `metadata` is **merged** into the existing bag: patch keys win, other keys are kept, and `null` is stored as a value, never treated as a deletion. To retire a key, set it to a value your systems treat as empty. A merged bag that exceeds the metadata caps is rejected whole with a 400. The response is `{ id, updated: true, batch_id, metadata }`, echoing the full merged bag; each tag appears only when set." },
|
|
119294
121941
|
{
|
|
@@ -119316,7 +121963,7 @@ curl -s -o head.bin -H "Range: bytes=0-65535" \\
|
|
|
119316
121963
|
{ question: "How do I remove a metadata key?", answer: "You cannot delete a key through PATCH /v1/documents/{id}; null is stored as a value. Set the key to a value your systems treat as empty instead." },
|
|
119317
121964
|
{ question: "Why did span-geometry return 429?", answer: "Only one call per organization runs at a time because a cold page needs OCR. Wait for the Retry-After interval (5 seconds) and call it when a user selects a field, not in bulk." }
|
|
119318
121965
|
],
|
|
119319
|
-
mentions: ["document file", "Range request", "span geometry", "bounding boxes", "provenance", "match grade", "char_start", "PATCH document", "batch_id", "document metadata"]
|
|
121966
|
+
mentions: ["document file", "Range request", "span geometry", "bounding boxes", "provenance", "match grade", "char_start", "PATCH document", "batch_id", "document metadata", "email original", "mail originals"]
|
|
119320
121967
|
},
|
|
119321
121968
|
{
|
|
119322
121969
|
slug: "document-tags",
|
|
@@ -119619,7 +122266,7 @@ curl -s -o head.bin -H "Range: bytes=0-65535" \\
|
|
|
119619
122266
|
method: "POST",
|
|
119620
122267
|
path: "/v1/extract/dedup/process-anyway",
|
|
119621
122268
|
summary: "Create a separate document for a skipped duplicate.",
|
|
119622
|
-
description: "Scope: `documents:write`. The key's person must be a Member or above with the ingest permission, as in the web app; a Viewer gets 403 insufficient_role. Returns `{ document: { id, filename, status, links.self } }`. Send an `Idempotency-Key` header to make retries safe: the same key within 24 hours
|
|
122269
|
+
description: "Scope: `documents:write`. The key's person must be a Member or above with the ingest permission, as in the web app; a Viewer gets 403 insufficient_role. Returns `{ document: { id, filename, status, links.self } }`. Send an `Idempotency-Key` header to make retries safe ([Idempotency](idempotency)): the same request with the same key from the same API key within 24 hours returns the first copy with its original status and header `Idempotent-Replayed: true` instead of creating another; the same key with a different body, or from another API key, answers 422 `idempotency_key_reused`; a retry while the first call still runs answers 409 `idempotency_request_in_progress`.",
|
|
119623
122270
|
blocks: [
|
|
119624
122271
|
{ type: "param-table", title: "Body parameters", params: [
|
|
119625
122272
|
{ name: "existing_document_id", type: "uuid", required: true, description: "The document the upload was a duplicate of (`existing_document_id` in the audit log)." },
|
|
@@ -122464,24 +125111,23 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
|
|
|
122464
125111
|
content: [
|
|
122465
125112
|
{ type: "paragraph", text: "Systems that use an access key, a token or a connection string are connected in one call. Talonic checks the credentials reach the system before it saves anything, stores the secrets encrypted, and never returns them: no answer, listing or log carries a secret you sent. To change credentials, connect again with the new ones and disconnect the old connection." },
|
|
122466
125113
|
{ type: "paragraph", text: "Each call needs the `sources:write` scope, and the person behind the credential needs the Integrations permission. The new connection is attributed to that person and is private to them until they share it. Granola and Slack connect a person's own notes and conversations: only that person can configure, read from or import from them afterwards." },
|
|
122467
|
-
{ type: "paragraph", text: "
|
|
125114
|
+
{ type: "paragraph", text: "If your systems only accept known addresses, Talonic can give your workspace dedicated egress: every source then connects from fixed IP addresses you allow in your firewall. `GET /v1/sources/egress` answers whether it is on and which addresses to allow." },
|
|
122468
125115
|
ep("POST", "/v1/sources/connections/s3", "Connect an Amazon S3 bucket (or an S3-compatible store).", "Answers `201` with the connection. Scope: `sources:write`.", [
|
|
122469
125116
|
{ name: "name", type: "string", required: true, description: "Connection name." },
|
|
122470
125117
|
{ name: "access_key_id", type: "string", required: true, description: "Access key id (write-only)." },
|
|
122471
125118
|
{ name: "secret_access_key", type: "string", required: true, description: "Secret access key (write-only)." },
|
|
122472
125119
|
{ name: "region", type: "string", description: "Region.", default: "us-east-1" },
|
|
122473
125120
|
{ name: "endpoint_url", type: "string", description: "For S3-compatible stores." },
|
|
122474
|
-
{ name: "bucket", type: "string", description: "Limit the connection to one bucket." }
|
|
122475
|
-
{ name: "dedicated_egress", type: "boolean", description: "Reach the bucket from the fixed address." }
|
|
125121
|
+
{ name: "bucket", type: "string", description: "Limit the connection to one bucket." }
|
|
122476
125122
|
], "Body"),
|
|
122477
125123
|
ep("POST", "/v1/sources/connections/azure-blob", "Connect Azure Blob Storage.", "Send either `connection_string`, or `account_name` + `sas_token` + `sas_container`. Scope: `sources:write`."),
|
|
122478
|
-
ep("POST", "/v1/sources/connections/sql", "Connect a SQL database (Postgres, MySQL, SQL Server).", "Body: `name`, `engine` (`postgres`, `mysql`, `mssql`), `connection_string` (write-only)
|
|
122479
|
-
ep("POST", "/v1/sources/connections/kendox", "Connect Kendox InfoShare.", "Body: `name`, `base_url` (https), optional `tenant_name`, `auth_mode` (`api_token` with `api_token`, or `password` with `username` + `password`)
|
|
125124
|
+
ep("POST", "/v1/sources/connections/sql", "Connect a SQL database (Postgres, MySQL, SQL Server).", "Body: `name`, `engine` (`postgres`, `mysql`, `mssql`), `connection_string` (write-only). Queries run read-only. Scope: `sources:write`."),
|
|
125125
|
+
ep("POST", "/v1/sources/connections/kendox", "Connect Kendox InfoShare.", "Body: `name`, `base_url` (https), optional `tenant_name`, `auth_mode` (`api_token` with `api_token`, or `password` with `username` + `password`). Scope: `sources:write`."),
|
|
122480
125126
|
ep("POST", "/v1/sources/connections/granola", "Connect your Granola notes.", "Body: `name`, `api_key` (write-only), optional `owner_email`, optional `intake`. Every note is brought in and kept up to date. Scope: `sources:write`."),
|
|
122481
125127
|
ep("POST", "/v1/sources/connections/slack", "Connect Slack with a token.", "Body: `name`, `token` (write-only), optional `intake`. Everything the token sees is brought in: one document per conversation per day, and every shared file. To sign in at Slack instead, use `POST /v1/integrations/slack/authorize`. Scope: `sources:write`."),
|
|
122482
125128
|
ep("POST", "/v1/sources/connections/external-upload", "Create an upload link for people outside your workspace.", "Body: `name`. Answers the link token and the password you hand on; files uploaded through the link land in this source. Scope: `sources:write`."),
|
|
122483
125129
|
ep("GET", "/v1/sources/connections/:id/external-upload", "Read an upload link's token and password again.", "They are credentials you hand to outsiders, so this read needs `sources:write`."),
|
|
122484
|
-
ep("GET", "/v1/sources/
|
|
125130
|
+
ep("GET", "/v1/sources/egress", "Whether this workspace connects from dedicated egress IPs, and which.", 'Answers `{ "enabled": true | false, "ips": ["\u2026"] }`; `ips` is empty unless `enabled`. Scope: `read` or `sources:read`.'),
|
|
122485
125131
|
ep("GET", "/v1/sources/slack/sign-in", "Whether this deployment offers sign-in at Slack.", 'Answers `{ "available": true | false }`. Scope: `read` or `sources:read`.'),
|
|
122486
125132
|
{
|
|
122487
125133
|
type: "code",
|
|
@@ -122497,7 +125143,7 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
|
|
|
122497
125143
|
title: "Errors",
|
|
122498
125144
|
params: [
|
|
122499
125145
|
{ name: "400", type: "VALIDATION_ERROR", description: "The credentials do not reach the system (the message says why), a field is missing, or the master view." },
|
|
122500
|
-
{ name: "403", type: "forbidden", description: "Missing scope or permission (`reason`)
|
|
125146
|
+
{ name: "403", type: "forbidden", description: "Missing scope or permission (`reason`)." }
|
|
122501
125147
|
]
|
|
122502
125148
|
}
|
|
122503
125149
|
],
|
|
@@ -122531,13 +125177,17 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
|
|
|
122531
125177
|
ep("GET", "/v1/sources/connections/:id/intake", "Read what reads bring in.", "Scope: `read` or `sources:read`."),
|
|
122532
125178
|
ep("PATCH", "/v1/sources/connections/:id/intake", "Change what reads bring in.", "Body: `auto_sync`, `window`, and for the connection's kind `file_kinds`, `max_file_mb`, `skip_system_files`, `skip_noise` or `skip_empty_meetings`. Scope: `sources:write`."),
|
|
122533
125179
|
ep("GET", "/v1/sources/connections/:id/gmail-labels", "List a mailbox's labels.", "For choosing what a Gmail connection keeps in sync. Its author only. Scope: `read` or `sources:read`."),
|
|
122534
|
-
ep("PATCH", "/v1/sources/gmail/:connectionId/config", "Change connector settings.", 'One route per connector: `gmail`, `outlook` (bodies, threads, date range), `hubspot`, `notion`, `teams`, `granola`, `s3` (processing
|
|
125180
|
+
ep("PATCH", "/v1/sources/gmail/:connectionId/config", "Change connector settings.", 'One route per connector: `gmail`, `outlook` (bodies, threads, date range), `hubspot`, `notion`, `teams`, `granola`, `s3` (processing), `kendox` (culture), `sql` (name). Answers `{ "config": \u2026 }`. Scope: `sources:write`.'),
|
|
122535
125181
|
ep("GET", "/v1/sources/:id/browse", "Browse the files behind a connection.", "Query: `folder_id`, `page_token`, `q`. Scope: `read` or `sources:read`."),
|
|
122536
125182
|
ep("GET", "/v1/sources/:id/browse-all", "List every file under a folder at once.", "At most 5,000 entries. Amazon S3 only. Query: `folder_id`. Scope: `read` or `sources:read`."),
|
|
122537
|
-
ep("POST", "/v1/sources/:id/import", "Import chosen files as documents.", "Scope: `documents:write`.", [
|
|
122538
|
-
{ name: "file_ids", type: "string[]",
|
|
125183
|
+
ep("POST", "/v1/sources/:id/import", "Import chosen files as documents.", "Without `async` the call imports before it answers (`201` with what was imported, skipped or failed): fit for a few files. With `async: true` it answers `202` with an import run at once and imports in the background; files that fail do not stop the others, and importing the same selection again brings in only what is not in yet. Scope: `documents:write`.", [
|
|
125184
|
+
{ name: "file_ids", type: "string[]", description: "Ids from a browse answer, at most 500. Required unless `async` is true and `folder_ids` names something." },
|
|
125185
|
+
{ name: "async", type: "boolean", description: "True: answer `202` with the import run and import in the background." },
|
|
125186
|
+
{ name: "folder_ids", type: "string[]", description: "Folder ids from a browse answer (a mail, a thread, a directory), at most 500: the files directly inside each are imported. Only with `async: true`." },
|
|
122539
125187
|
{ name: "tags", type: "string[]", description: "Tags put on every imported document." }
|
|
122540
125188
|
], "Body"),
|
|
125189
|
+
ep("GET", "/v1/sources/:id/import-runs", "List a connection's import runs.", "Newest first, without their failure lists; `open=true` keeps only runs still queued or running. A personal connection's runs are its author's only. Scope: `read` or `sources:read`."),
|
|
125190
|
+
ep("GET", "/v1/sources/:id/import-runs/:runId", "Read one import run.", "How many items were asked for (`requested`), are in (`imported`, `skipped` when already there), held nothing (`empty`), failed or are still `pending`; `failures` names each failed item with the reason, and `running` says whether the run is still going. Scope: `read` or `sources:read`."),
|
|
122541
125191
|
ep("GET", "/v1/sources/:id/imports", "List what was brought in.", "A personal connection's history is its author's only. Scope: `read` or `sources:read`."),
|
|
122542
125192
|
ep("POST", "/v1/sources/:id/imports/:importId/resync", "Read one Teams transcript period again.", "Unchanged content is not processed again. Scope: `documents:write`."),
|
|
122543
125193
|
ep("POST", "/v1/sources/:id/make-private", "Make a connection private.", "Only its author (and the people they name) see what it holds. Its author or an owner may do it. Idempotent: `created: false` when a rule already restricts it. Scope: `sources:write`."),
|
|
@@ -130599,7 +133249,7 @@ var sections24 = [
|
|
|
130599
133249
|
type: "endpoint",
|
|
130600
133250
|
method: "GET",
|
|
130601
133251
|
path: "/v1/thread/state",
|
|
130602
|
-
summary: "The
|
|
133252
|
+
summary: "The newest page of your conversation, anything waiting for your decision, and the cursor to read from.",
|
|
130603
133253
|
description: "Requires thread:read.",
|
|
130604
133254
|
blocks: []
|
|
130605
133255
|
},
|
|
@@ -130651,6 +133301,14 @@ var sections24 = [
|
|
|
130651
133301
|
"has_more": false
|
|
130652
133302
|
}`
|
|
130653
133303
|
},
|
|
133304
|
+
{
|
|
133305
|
+
type: "endpoint",
|
|
133306
|
+
method: "GET",
|
|
133307
|
+
path: "/v1/thread/history",
|
|
133308
|
+
summary: "Earlier messages of your thread, one page at a time.",
|
|
133309
|
+
description: "Requires thread:read. Pass the `seq` of the oldest event you hold as `before` and repeat while `has_older` is true. Each page holds messages, reactions and decision cards, oldest first. `limit` is 1 to 100 (default 50).",
|
|
133310
|
+
blocks: []
|
|
133311
|
+
},
|
|
130654
133312
|
{
|
|
130655
133313
|
type: "endpoint",
|
|
130656
133314
|
method: "POST",
|
|
@@ -130659,6 +133317,14 @@ var sections24 = [
|
|
|
130659
133317
|
description: "Requires thread:write. Multipart field `file`, at most 25 MB each, plus optional `text` and `tz`. Each file is kept as your own document, visible to nobody else, and the files are answered together like one message. Idempotency-Key works as on messages.",
|
|
130660
133318
|
blocks: []
|
|
130661
133319
|
},
|
|
133320
|
+
{
|
|
133321
|
+
type: "endpoint",
|
|
133322
|
+
method: "GET",
|
|
133323
|
+
path: "/v1/thread/files/:documentId",
|
|
133324
|
+
summary: "A picture you handed in, as an image to show.",
|
|
133325
|
+
description: "Requires thread:read. The id is `document_id` of an entry with `kind: image` in `meta.attachments` of your own message event. Answers the picture upright, at most 1,600 pixels on its longer side, as `image/webp`. Anything that is not a picture you handed in yourself answers 404.",
|
|
133326
|
+
blocks: []
|
|
133327
|
+
},
|
|
130662
133328
|
{
|
|
130663
133329
|
type: "endpoint",
|
|
130664
133330
|
method: "POST",
|
|
@@ -130768,9 +133434,11 @@ var sections25 = [
|
|
|
130768
133434
|
{ type: "paragraph", text: "Reads need `documents:read`. Sharing decisions need `documents:write`, and the person needs the **ingest** permission. A key that belongs to no person is refused with `403` and `reason: no_person`." },
|
|
130769
133435
|
{ type: "endpoint", method: "GET", path: "/v1/my-data", summary: "Per source and item you brought in, who can see it now.", description: "Requires documents:read.", blocks: [] },
|
|
130770
133436
|
{ type: "endpoint", method: "GET", path: "/v1/me/data", summary: "How much you brought in, per kind.", description: "Requires documents:read.", blocks: [] },
|
|
130771
|
-
{ type: "endpoint", method: "GET", path: "/v1/me/data/
|
|
133437
|
+
{ type: "endpoint", method: "GET", path: "/v1/me/data/groups", summary: "Your uploads, or the values read out of them, counted per group and per who can see them.", description: "Requires documents:read. Query `kind` (`uploads` or `extracted`) and `by` (`source`, `type`, `month`, or `field` for values), narrowed by `source`, `type`, `month` (`YYYY-MM`) and `field`.", blocks: [] },
|
|
133438
|
+
{ type: "endpoint", method: "GET", path: "/v1/me/data/items", summary: "Your uploads, or the values read out of them, one group a page at a time, newest first.", description: "Requires documents:read. Query `kind` and the group (`source`, `type`, `month`, `field`, `vis`), then `limit`; pass the `next` of a page as `after` for the following page. Or one item with `id`.", blocks: [] },
|
|
130772
133439
|
{ type: "endpoint", method: "GET", path: "/v1/me/workspace-data", summary: "The workspace's documents, fields and data points you can see, by owner.", description: "Requires documents:read. Counted as `me`, `shared` with you, or `company`.", blocks: [] },
|
|
130773
|
-
{ type: "endpoint", method: "GET", path: "/v1/me/workspace-data/
|
|
133440
|
+
{ type: "endpoint", method: "GET", path: "/v1/me/workspace-data/groups", summary: "The workspace's documents or data points you can see, counted per group and per owner.", description: "Requires documents:read. Query `kind` (`documents` or `points`) and `by` (`source`, `type`, `month`, or `field` for points), narrowed by `source`, `type`, `month` (`YYYY-MM`) and `field`.", blocks: [] },
|
|
133441
|
+
{ type: "endpoint", method: "GET", path: "/v1/me/workspace-data/items", summary: "The items behind one of those counts.", description: "Requires documents:read. Query `kind` (`documents`, `fields`, `points`), `owner` (`me`, `shared`, `company`) and the group; pass the `next` of a page as `after`. Fields page by `offset`.", blocks: [] },
|
|
130774
133442
|
{ type: "heading", level: 2, id: "my-data-sharing", text: "Share and stop sharing" },
|
|
130775
133443
|
{ type: "paragraph", text: "Only the person who connected a source decides who else reads it; for anyone else the source answers `404`. A body field a route does not support is refused with `400` and nothing changes, so a share is never made wider or narrower than you asked." },
|
|
130776
133444
|
{ type: "endpoint", method: "POST", path: "/v1/my-data/sources/:id/share", summary: "Add people to who may read a source you connected.", description: "Requires documents:write. Body `user_ids`.", blocks: [] },
|
|
@@ -130832,8 +133500,52 @@ var sections25 = [
|
|
|
130832
133500
|
}
|
|
130833
133501
|
];
|
|
130834
133502
|
|
|
130835
|
-
// src/content/api/
|
|
133503
|
+
// src/content/api/access-sharing.ts
|
|
130836
133504
|
var sections26 = [
|
|
133505
|
+
{
|
|
133506
|
+
slug: "access-sharing",
|
|
133507
|
+
parentSlug: "my-data",
|
|
133508
|
+
title: "Access & sharing",
|
|
133509
|
+
seoTitle: "Access & Sharing API: Request Access and Share Documents \u2014 Talonic Docs",
|
|
133510
|
+
description: "Find who holds a source, ask the holder for access, decide on requests to your own sources, and share documents or whole sources you hold, always as yourself.",
|
|
133511
|
+
content: [
|
|
133512
|
+
{ type: "paragraph", text: "In a workspace where reads follow **access scopes**, every source and every person's uploads has a holder: the person who connected it or uploaded the files. Nobody else reads it until the holder shares it, or approves an access request. `GET /v1/governance/sharing` answers `available: false` in a workspace that is not on access scopes; the routes below then answer `409`." },
|
|
133513
|
+
{ type: "paragraph", text: "A share is for reading: one document, several, or a whole source (new documents included), with one member, a workspace group or everyone, for a number of days or until stopped. Everything else in the workspace's access rules still applies to the person you share with. A document share holds while you hold the document's source: when it moves to someone else, or you leave, your shares of it end. Asking for access to a document that does not exist and to one you may not see answer alike (`404`)." },
|
|
133514
|
+
{ type: "paragraph", text: "Reads need `access:read` (any member); asking, deciding and sharing need `access:write`, which works for Contract Management and above, not for a Viewer. The API answers for the person the key or OAuth token belongs to; a key that belongs to no person is refused with `403` and `reason: no_person`." },
|
|
133515
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/directory", summary: "Every source and person's uploads with who holds it, and where you stand on it.", description: "Requires access:read. Never items or counts.", blocks: [] },
|
|
133516
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/access-requests", summary: "Your requests, and those waiting for your decision.", description: "Requires access:read.", blocks: [] },
|
|
133517
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/access-requests", summary: "Ask the holder for access to a source, someone's uploads, or one document.", description: "Requires access:write. Body `source_connection_id` or `scope_id`, optional `document_id`, `purpose`, `duration_days` (1 to 90).", blocks: [] },
|
|
133518
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/access-requests/:id/approve", summary: "Approve a request on a source you hold.", description: "Requires access:write. A request for one document opens that document only.", blocks: [] },
|
|
133519
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/access-requests/:id/deny", summary: "Deny a request, with a reason.", description: "Requires access:write. Body `reason`.", blocks: [] },
|
|
133520
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/access-requests/:id/stop", summary: "End an approved request: yours, or one on your source.", description: "Requires access:write.", blocks: [] },
|
|
133521
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/sharing", summary: "What you shared and what is shared with you.", description: "Requires access:read. `available` says whether sharing applies in the workspace.", blocks: [] },
|
|
133522
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/documents/:id/access", summary: "Whether you may share or change a document you can read.", description: "Requires access:read. `managed: false` outside access scopes.", blocks: [] },
|
|
133523
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/documents/:id/shares", summary: "Who a document you hold is shared with.", description: "Requires access:read. 404 when you do not hold the document.", blocks: [] },
|
|
133524
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/access-requests/:id/second", summary: "Decide a request as the data protection officer of the workspace, after its holder approved.", description: "Requires access:write. Body `ok` (true opens, false refuses) and `text` (reason or note).", blocks: [] },
|
|
133525
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/shares/documents", summary: "Share documents you hold.", description: "Requires access:write. Body `document_ids` (1 to 200), `to` (`{ type: person | group, id }` or `{ type: everyone }`), optional `duration_days` (1 to 365; none = until stopped), `note` and `allow_pass_on` (a person only: they may pass it on; `false` withdraws that and ends what they passed on).", blocks: [] },
|
|
133526
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/shares/scopes", summary: "Share a whole source you hold, or your uploads.", description: "Requires access:write. Body `source_connection_id` or `scope_id`, `to`, optional `duration_days` and `allow_pass_on`.", blocks: [] },
|
|
133527
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/shares/pass-on", summary: "Pass on a share you received with permission to pass it on.", description: "Requires access:write and the member role. Body `document_ids` or one of `source_connection_id` / `scope_id`, `to` (a person or a group, never everyone), optional `duration_days` (at most until your share ends; none = when it ends) and `note`. It holds only while the whole chain behind it does, and cannot be passed on further.", blocks: [] },
|
|
133528
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/shares/:kind/:id/stop", summary: "Stop a share (`kind` document or scope); a share made to you can be removed by you.", description: "Requires access:write.", blocks: [] },
|
|
133529
|
+
{ type: "paragraph", text: "Data points share the values of single Spec fields from your own documents, never the documents. The Spec proposes who may read each field; nothing travels until you confirm. A shared value carries its Spec and field, the document type, a date at the precision you choose and your name unless you hide it, and an opaque row key that lines up the shared fields of one record. Sensitive fields stay private." },
|
|
133530
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/data-points", summary: "The Specs run over your documents: per field, what the Spec proposes and what you confirmed.", description: "Requires access:read.", blocks: [] },
|
|
133531
|
+
{ type: "endpoint", method: "PUT", path: "/v1/governance/data-points/:specId", summary: "Confirm who may read each field of one Spec, and how your values travel.", description: "Requires access:write. Body `fields` (`field_key`, `audience` private / people / everyone, optional `kind`, `shared_with`), optional `hide_holder`, `date_precision` (day, month, year, none), `excluded_document_ids`.", blocks: [] },
|
|
133532
|
+
{ type: "endpoint", method: "POST", path: "/v1/governance/data-points/:specId/stop", summary: "Stop sharing every field of one Spec.", description: "Requires access:write.", blocks: [] },
|
|
133533
|
+
{ type: "endpoint", method: "GET", path: "/v1/governance/data-points/shared", summary: "Values colleagues shared with you, per Spec, with their context and without the documents.", description: "Requires access:read. Optional `spec_id`. At most 500 rows per Spec; `total_rows` and `truncated` say when there are more.", blocks: [] }
|
|
133534
|
+
],
|
|
133535
|
+
related: [
|
|
133536
|
+
{ label: "My Data", slug: "my-data-overview" }
|
|
133537
|
+
],
|
|
133538
|
+
faq: [
|
|
133539
|
+
{ question: "Does sharing a source include documents added later?", answer: "Yes. A whole-source share covers every document of the source, including new ones, until it ends." },
|
|
133540
|
+
{ question: "What happens to my shares when a source moves to someone else?", answer: "Document shares end when you no longer hold the document's source. The new holder decides who reads it from then on." },
|
|
133541
|
+
{ question: "When does a share that was passed on end?", answer: "When any link behind it breaks: the share it came from ends or is stopped, its permission to pass on is withdrawn, the person who passed it on leaves, or the source has no active holder. The holder is told of every share passed on and can stop it." }
|
|
133542
|
+
],
|
|
133543
|
+
mentions: ["sharing", "access request", "holder", "licence", "directory", "data point"]
|
|
133544
|
+
}
|
|
133545
|
+
];
|
|
133546
|
+
|
|
133547
|
+
// src/content/api/ask.ts
|
|
133548
|
+
var sections27 = [
|
|
130837
133549
|
{
|
|
130838
133550
|
slug: "post-ask",
|
|
130839
133551
|
parentSlug: "ask",
|
|
@@ -131464,7 +134176,7 @@ while (true) {
|
|
|
131464
134176
|
];
|
|
131465
134177
|
|
|
131466
134178
|
// src/content/api/matching.ts
|
|
131467
|
-
var
|
|
134179
|
+
var sections28 = [
|
|
131468
134180
|
{
|
|
131469
134181
|
slug: "list-matching-configs",
|
|
131470
134182
|
parentSlug: "matching",
|
|
@@ -132911,7 +135623,7 @@ var sections27 = [
|
|
|
132911
135623
|
];
|
|
132912
135624
|
|
|
132913
135625
|
// src/content/api/delivery.ts
|
|
132914
|
-
var
|
|
135626
|
+
var sections29 = [
|
|
132915
135627
|
{
|
|
132916
135628
|
slug: "list-delivery-destinations",
|
|
132917
135629
|
parentSlug: "delivery",
|
|
@@ -134569,7 +137281,7 @@ Link: </v1/delivery/bindings>; rel="successor-version"
|
|
|
134569
137281
|
];
|
|
134570
137282
|
|
|
134571
137283
|
// src/content/api/batches.ts
|
|
134572
|
-
var
|
|
137284
|
+
var sections30 = [
|
|
134573
137285
|
{
|
|
134574
137286
|
slug: "list-batches",
|
|
134575
137287
|
parentSlug: "batches",
|
|
@@ -135000,7 +137712,7 @@ var sections29 = [
|
|
|
135000
137712
|
];
|
|
135001
137713
|
|
|
135002
137714
|
// src/content/api/cases.ts
|
|
135003
|
-
var
|
|
137715
|
+
var sections31 = [
|
|
135004
137716
|
{
|
|
135005
137717
|
slug: "list-cases",
|
|
135006
137718
|
parentSlug: "cases",
|
|
@@ -136380,7 +139092,7 @@ var sections30 = [
|
|
|
136380
139092
|
];
|
|
136381
139093
|
|
|
136382
139094
|
// src/content/api/review.ts
|
|
136383
|
-
var
|
|
139095
|
+
var sections32 = [
|
|
136384
139096
|
{
|
|
136385
139097
|
slug: "list-review-items",
|
|
136386
139098
|
parentSlug: "review",
|
|
@@ -137024,7 +139736,7 @@ var sections31 = [
|
|
|
137024
139736
|
];
|
|
137025
139737
|
|
|
137026
139738
|
// src/content/api/quality.ts
|
|
137027
|
-
var
|
|
139739
|
+
var sections33 = [
|
|
137028
139740
|
{
|
|
137029
139741
|
slug: "list-quality-datasets",
|
|
137030
139742
|
parentSlug: "quality",
|
|
@@ -137866,7 +140578,7 @@ var sections32 = [
|
|
|
137866
140578
|
];
|
|
137867
140579
|
|
|
137868
140580
|
// src/content/api/routing-rules.ts
|
|
137869
|
-
var
|
|
140581
|
+
var sections34 = [
|
|
137870
140582
|
{
|
|
137871
140583
|
slug: "list-routing-rules",
|
|
137872
140584
|
parentSlug: "routing-rules",
|
|
@@ -138296,7 +141008,7 @@ var sections33 = [
|
|
|
138296
141008
|
];
|
|
138297
141009
|
|
|
138298
141010
|
// src/content/api/billing.ts
|
|
138299
|
-
var
|
|
141011
|
+
var sections35 = [
|
|
138300
141012
|
{
|
|
138301
141013
|
slug: "billing-settings",
|
|
138302
141014
|
parentSlug: "billing",
|
|
@@ -138776,7 +141488,7 @@ X-Talonic-Cells-Resolved-AI: 1`
|
|
|
138776
141488
|
];
|
|
138777
141489
|
|
|
138778
141490
|
// src/content/api/registry.ts
|
|
138779
|
-
var
|
|
141491
|
+
var sections36 = [
|
|
138780
141492
|
{
|
|
138781
141493
|
slug: "registry-query",
|
|
138782
141494
|
parentSlug: "registry",
|
|
@@ -139028,7 +141740,7 @@ console.log(body.total, body.data);`
|
|
|
139028
141740
|
|
|
139029
141741
|
// src/content/api/customer-ontologies.ts
|
|
139030
141742
|
var SET = "75feea55-70ef-4fac-92f6-73ef8e7556c1";
|
|
139031
|
-
var
|
|
141743
|
+
var sections37 = [
|
|
139032
141744
|
{
|
|
139033
141745
|
slug: "customer-ontologies-overview",
|
|
139034
141746
|
parentSlug: "customer-ontologies",
|
|
@@ -139542,7 +142254,7 @@ curl -s -X POST https://api.talonic.com/v1/customer-ontologies/${SET}/publish \\
|
|
|
139542
142254
|
];
|
|
139543
142255
|
|
|
139544
142256
|
// src/content/api/account.ts
|
|
139545
|
-
var
|
|
142257
|
+
var sections38 = [
|
|
139546
142258
|
{
|
|
139547
142259
|
slug: "get-account",
|
|
139548
142260
|
parentSlug: "account",
|
|
@@ -139789,7 +142501,7 @@ curl -s -X POST https://api.talonic.com/oauth/token \\
|
|
|
139789
142501
|
];
|
|
139790
142502
|
|
|
139791
142503
|
// src/content/api/governance.ts
|
|
139792
|
-
var
|
|
142504
|
+
var sections39 = [
|
|
139793
142505
|
{
|
|
139794
142506
|
"slug": "records-retention",
|
|
139795
142507
|
"parentSlug": "records",
|
|
@@ -141600,7 +144312,7 @@ var sections38 = [
|
|
|
141600
144312
|
];
|
|
141601
144313
|
|
|
141602
144314
|
// src/content/api/nodes.ts
|
|
141603
|
-
var
|
|
144315
|
+
var sections40 = [
|
|
141604
144316
|
{
|
|
141605
144317
|
slug: "node-jobs",
|
|
141606
144318
|
parentSlug: "nodes",
|
|
@@ -141830,7 +144542,7 @@ console.log(extract.id, extract.status);`
|
|
|
141830
144542
|
];
|
|
141831
144543
|
|
|
141832
144544
|
// src/content/api/process.ts
|
|
141833
|
-
var
|
|
144545
|
+
var sections41 = [
|
|
141834
144546
|
{
|
|
141835
144547
|
slug: "submit-process",
|
|
141836
144548
|
parentSlug: "process",
|
|
@@ -142091,7 +144803,7 @@ Link: </v1/process/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890>; rel="successor-ve
|
|
|
142091
144803
|
];
|
|
142092
144804
|
|
|
142093
144805
|
// src/content/api/run.ts
|
|
142094
|
-
var
|
|
144806
|
+
var sections42 = [
|
|
142095
144807
|
{
|
|
142096
144808
|
slug: "run-spec",
|
|
142097
144809
|
parentSlug: "run",
|
|
@@ -142573,7 +145285,7 @@ curl -X POST https://api.talonic.com/v1/run \\
|
|
|
142573
145285
|
];
|
|
142574
145286
|
|
|
142575
145287
|
// src/content/api/reference-data.ts
|
|
142576
|
-
var
|
|
145288
|
+
var sections43 = [
|
|
142577
145289
|
{
|
|
142578
145290
|
slug: "list-reference-data",
|
|
142579
145291
|
parentSlug: "reference-data",
|
|
@@ -143075,7 +145787,7 @@ V003,Initech Ltd,DE,DE987654321`
|
|
|
143075
145787
|
];
|
|
143076
145788
|
|
|
143077
145789
|
// src/content/api/errors-rate-limits.ts
|
|
143078
|
-
var
|
|
145790
|
+
var sections44 = [
|
|
143079
145791
|
{
|
|
143080
145792
|
slug: "error-format",
|
|
143081
145793
|
parentSlug: "errors-rate-limits",
|
|
@@ -143457,7 +146169,7 @@ if (!res.ok) {
|
|
|
143457
146169
|
];
|
|
143458
146170
|
|
|
143459
146171
|
// src/content/api/usage.ts
|
|
143460
|
-
var
|
|
146172
|
+
var sections45 = [
|
|
143461
146173
|
{
|
|
143462
146174
|
slug: "usage-overview",
|
|
143463
146175
|
parentSlug: "usage",
|
|
@@ -143956,7 +146668,7 @@ var sections44 = [
|
|
|
143956
146668
|
];
|
|
143957
146669
|
|
|
143958
146670
|
// src/content/api/aggregate.ts
|
|
143959
|
-
var
|
|
146671
|
+
var sections46 = [
|
|
143960
146672
|
{
|
|
143961
146673
|
slug: "aggregate-overview",
|
|
143962
146674
|
parentSlug: "aggregate",
|
|
@@ -144157,7 +146869,7 @@ var sections45 = [
|
|
|
144157
146869
|
];
|
|
144158
146870
|
|
|
144159
146871
|
// src/content/api/pricing.ts
|
|
144160
|
-
var
|
|
146872
|
+
var sections47 = [
|
|
144161
146873
|
{
|
|
144162
146874
|
slug: "pricing-overview",
|
|
144163
146875
|
parentSlug: "pricing",
|
|
@@ -144271,7 +146983,7 @@ console.log(\`Batch: \${batchCredits} credits (\${batchCredits / pricing.cred
|
|
|
144271
146983
|
];
|
|
144272
146984
|
|
|
144273
146985
|
// src/content/api/document-types.ts
|
|
144274
|
-
var
|
|
146986
|
+
var sections48 = [
|
|
144275
146987
|
{
|
|
144276
146988
|
slug: "list-document-types",
|
|
144277
146989
|
parentSlug: "document-types",
|
|
@@ -144593,7 +147305,7 @@ var sections47 = [
|
|
|
144593
147305
|
];
|
|
144594
147306
|
|
|
144595
147307
|
// src/content/api/dialects.ts
|
|
144596
|
-
var
|
|
147308
|
+
var sections49 = [
|
|
144597
147309
|
{
|
|
144598
147310
|
slug: "list-dialects",
|
|
144599
147311
|
parentSlug: "dialects",
|
|
@@ -145137,7 +147849,7 @@ var sections48 = [
|
|
|
145137
147849
|
];
|
|
145138
147850
|
|
|
145139
147851
|
// src/content/api/fields.ts
|
|
145140
|
-
var
|
|
147852
|
+
var sections50 = [
|
|
145141
147853
|
{
|
|
145142
147854
|
slug: "list-fields",
|
|
145143
147855
|
parentSlug: "fields",
|
|
@@ -145680,7 +148392,7 @@ var sections49 = [
|
|
|
145680
148392
|
];
|
|
145681
148393
|
|
|
145682
148394
|
// src/content/api/data-products.ts
|
|
145683
|
-
var
|
|
148395
|
+
var sections51 = [
|
|
145684
148396
|
{
|
|
145685
148397
|
slug: "list-data-products",
|
|
145686
148398
|
parentSlug: "data-products",
|
|
@@ -146546,7 +149258,7 @@ inv_0043.pdf,INV-2026-0043,,842.10,USD`
|
|
|
146546
149258
|
];
|
|
146547
149259
|
|
|
146548
149260
|
// src/content/api/data-policies.ts
|
|
146549
|
-
var
|
|
149261
|
+
var sections52 = [
|
|
146550
149262
|
{
|
|
146551
149263
|
slug: "list-data-policies",
|
|
146552
149264
|
parentSlug: "data-policies",
|
|
@@ -147430,7 +150142,7 @@ end
|
|
|
147430
150142
|
];
|
|
147431
150143
|
|
|
147432
150144
|
// src/content/api/record-sets.ts
|
|
147433
|
-
var
|
|
150145
|
+
var sections53 = [
|
|
147434
150146
|
{
|
|
147435
150147
|
slug: "list-record-sets",
|
|
147436
150148
|
parentSlug: "record-sets",
|
|
@@ -148026,7 +150738,7 @@ var sections52 = [
|
|
|
148026
150738
|
];
|
|
148027
150739
|
|
|
148028
150740
|
// src/content/api/pipelines.ts
|
|
148029
|
-
var
|
|
150741
|
+
var sections54 = [
|
|
148030
150742
|
{
|
|
148031
150743
|
slug: "run-pipeline",
|
|
148032
150744
|
parentSlug: "pipelines",
|
|
@@ -149572,7 +152284,7 @@ curl -X POST https://api.talonic.com/v1/pipelines/$PIPELINE_ID/start \\
|
|
|
149572
152284
|
];
|
|
149573
152285
|
|
|
149574
152286
|
// src/content/api/field-reviews.ts
|
|
149575
|
-
var
|
|
152287
|
+
var sections55 = [
|
|
149576
152288
|
{
|
|
149577
152289
|
slug: "list-field-reviews",
|
|
149578
152290
|
parentSlug: "field-reviews",
|
|
@@ -150963,7 +153675,7 @@ const state = await res.json();`
|
|
|
150963
153675
|
];
|
|
150964
153676
|
|
|
150965
153677
|
// src/content/api/specs.ts
|
|
150966
|
-
var
|
|
153678
|
+
var sections56 = [
|
|
150967
153679
|
{
|
|
150968
153680
|
slug: "list-specs",
|
|
150969
153681
|
parentSlug: "specs",
|
|
@@ -151577,7 +154289,7 @@ var errors2 = (extra, notFound) => ({
|
|
|
151577
154289
|
]
|
|
151578
154290
|
});
|
|
151579
154291
|
var NO_SPEC = "No Spec with this ID in your organization.";
|
|
151580
|
-
var
|
|
154292
|
+
var sections57 = [
|
|
151581
154293
|
{
|
|
151582
154294
|
slug: "get-spec-rail",
|
|
151583
154295
|
parentSlug: "spec-config",
|
|
@@ -152698,7 +155410,7 @@ curl -X POST https://api.talonic.com/v1/schemas/${SPEC}/delivery \\
|
|
|
152698
155410
|
];
|
|
152699
155411
|
|
|
152700
155412
|
// src/content/api/reconciliation.ts
|
|
152701
|
-
var
|
|
155413
|
+
var sections58 = [
|
|
152702
155414
|
{
|
|
152703
155415
|
slug: "analyze-reconciliation",
|
|
152704
155416
|
parentSlug: "reconciliation",
|
|
@@ -153289,7 +156001,7 @@ var sections57 = [
|
|
|
153289
156001
|
];
|
|
153290
156002
|
|
|
153291
156003
|
// src/content/api/matching-packages.ts
|
|
153292
|
-
var
|
|
156004
|
+
var sections59 = [
|
|
153293
156005
|
{
|
|
153294
156006
|
slug: "create-matching-package-config",
|
|
153295
156007
|
parentSlug: "matching-packages",
|
|
@@ -153993,7 +156705,7 @@ curl -s "https://api.talonic.com/v1/matching/packages/runs?package_config_id=4f2
|
|
|
153993
156705
|
];
|
|
153994
156706
|
|
|
153995
156707
|
// src/content/api/ai-policies.ts
|
|
153996
|
-
var
|
|
156708
|
+
var sections60 = [
|
|
153997
156709
|
{
|
|
153998
156710
|
slug: "ai-policy-overview",
|
|
153999
156711
|
parentSlug: "ai",
|
|
@@ -154620,7 +157332,7 @@ console.log(catalog.counts);`
|
|
|
154620
157332
|
];
|
|
154621
157333
|
|
|
154622
157334
|
// src/content/api/apps.ts
|
|
154623
|
-
var
|
|
157335
|
+
var sections61 = [
|
|
154624
157336
|
{
|
|
154625
157337
|
slug: "apps-overview",
|
|
154626
157338
|
parentSlug: "apps",
|
|
@@ -156311,7 +159023,7 @@ curl -s "https://api.talonic.com/v1/decision-tasks/$TASK_ID/package?cursor=$CURS
|
|
|
156311
159023
|
];
|
|
156312
159024
|
|
|
156313
159025
|
// src/content/api/agent-tasks.ts
|
|
156314
|
-
var
|
|
159026
|
+
var sections62 = [
|
|
156315
159027
|
{
|
|
156316
159028
|
slug: "agent-tasks-overview",
|
|
156317
159029
|
parentSlug: "agent-tasks",
|
|
@@ -156576,7 +159288,7 @@ curl -s -X POST https://api.talonic.com/v1/agent-tasks/0b6a2f5e-8c1d-4e7a-9f3b-2
|
|
|
156576
159288
|
];
|
|
156577
159289
|
|
|
156578
159290
|
// src/content/api/db-snapshots.ts
|
|
156579
|
-
var
|
|
159291
|
+
var sections63 = [
|
|
156580
159292
|
{
|
|
156581
159293
|
slug: "db-snapshot-sources",
|
|
156582
159294
|
parentSlug: "db-snapshots",
|
|
@@ -156935,7 +159647,7 @@ var sections62 = [
|
|
|
156935
159647
|
];
|
|
156936
159648
|
|
|
156937
159649
|
// src/content/api/binding-resolutions.ts
|
|
156938
|
-
var
|
|
159650
|
+
var sections64 = [
|
|
156939
159651
|
{
|
|
156940
159652
|
slug: "resolve-bindings",
|
|
156941
159653
|
parentSlug: "binding-resolutions",
|
|
@@ -157156,7 +159868,7 @@ for (const { field_key, bindings } of res.resolutions) {
|
|
|
157156
159868
|
];
|
|
157157
159869
|
|
|
157158
159870
|
// src/content/api/compliance.ts
|
|
157159
|
-
var
|
|
159871
|
+
var sections65 = [
|
|
157160
159872
|
{
|
|
157161
159873
|
slug: "compliance-overview",
|
|
157162
159874
|
parentSlug: "compliance",
|
|
@@ -158372,7 +161084,7 @@ curl -X POST "https://api.talonic.com/v1/compliance/tasks/$TASK_ID/submit" \\
|
|
|
158372
161084
|
];
|
|
158373
161085
|
|
|
158374
161086
|
// src/content/api/contracts.ts
|
|
158375
|
-
var
|
|
161087
|
+
var sections66 = [
|
|
158376
161088
|
{
|
|
158377
161089
|
slug: "contracts-overview",
|
|
158378
161090
|
parentSlug: "contracts",
|
|
@@ -159312,7 +162024,7 @@ curl -X POST "https://api.talonic.com/v1/contracts/import/all" \\
|
|
|
159312
162024
|
];
|
|
159313
162025
|
|
|
159314
162026
|
// src/content/api/parties.ts
|
|
159315
|
-
var
|
|
162027
|
+
var sections67 = [
|
|
159316
162028
|
{
|
|
159317
162029
|
slug: "parties-overview",
|
|
159318
162030
|
parentSlug: "parties",
|
|
@@ -160013,7 +162725,7 @@ curl -X POST "https://api.talonic.com/v1/parties/$DUPLICATE_ID/merge" \\
|
|
|
160013
162725
|
];
|
|
160014
162726
|
|
|
160015
162727
|
// src/content/api/doc-gen.ts
|
|
160016
|
-
var
|
|
162728
|
+
var sections68 = [
|
|
160017
162729
|
{
|
|
160018
162730
|
slug: "doc-gen-overview",
|
|
160019
162731
|
parentSlug: "doc-gen",
|
|
@@ -161035,7 +163747,7 @@ curl -OJ "https://api.talonic.com/v1/doc-gen/jobs/$JOB_ID/zip" \\
|
|
|
161035
163747
|
];
|
|
161036
163748
|
|
|
161037
163749
|
// src/content/api/customs-declaration.ts
|
|
161038
|
-
var
|
|
163750
|
+
var sections69 = [
|
|
161039
163751
|
{
|
|
161040
163752
|
slug: "customs-declaration-overview",
|
|
161041
163753
|
parentSlug: "customs-declaration",
|
|
@@ -161381,7 +164093,7 @@ curl "https://api.talonic.com/v1/customs-declaration/declarations?pipeline_id=$P
|
|
|
161381
164093
|
];
|
|
161382
164094
|
|
|
161383
164095
|
// src/content/api/chart-to-data.ts
|
|
161384
|
-
var
|
|
164096
|
+
var sections70 = [
|
|
161385
164097
|
{
|
|
161386
164098
|
slug: "chart-to-data-overview",
|
|
161387
164099
|
parentSlug: "chart-to-data",
|
|
@@ -161865,7 +164577,7 @@ curl "https://api.talonic.com/v1/chart-to-data/runs/$RUN_ID" \\
|
|
|
161865
164577
|
];
|
|
161866
164578
|
|
|
161867
164579
|
// src/content/api/data-library.ts
|
|
161868
|
-
var
|
|
164580
|
+
var sections71 = [
|
|
161869
164581
|
{
|
|
161870
164582
|
slug: "data-library-overview",
|
|
161871
164583
|
parentSlug: "data-library",
|
|
@@ -162473,7 +165185,7 @@ var sections70 = [
|
|
|
162473
165185
|
|
|
162474
165186
|
// src/content/api/object-model.ts
|
|
162475
165187
|
var SPEC2 = "5b2e0d7a-3c11-4e0f-9a64-7f1c2d8e9b40";
|
|
162476
|
-
var
|
|
165188
|
+
var sections72 = [
|
|
162477
165189
|
{
|
|
162478
165190
|
slug: "object-model-overview",
|
|
162479
165191
|
parentSlug: "object-model",
|
|
@@ -162710,7 +165422,7 @@ var sections71 = [
|
|
|
162710
165422
|
];
|
|
162711
165423
|
|
|
162712
165424
|
// src/content/api/price-baseline.ts
|
|
162713
|
-
var
|
|
165425
|
+
var sections73 = [
|
|
162714
165426
|
{
|
|
162715
165427
|
slug: "price-baseline-overview",
|
|
162716
165428
|
parentSlug: "price-baseline",
|
|
@@ -164202,7 +166914,7 @@ curl "https://api.talonic.com/v1/price-baseline/comparisons/e04a9b17-6d28-47c5-b
|
|
|
164202
166914
|
];
|
|
164203
166915
|
|
|
164204
166916
|
// src/content/api/submissions.ts
|
|
164205
|
-
var
|
|
166917
|
+
var sections74 = [
|
|
164206
166918
|
{
|
|
164207
166919
|
slug: "submissions-overview",
|
|
164208
166920
|
parentSlug: "submissions",
|
|
@@ -164981,7 +167693,7 @@ curl "https://api.talonic.com/v1/submissions/export?spec_id=5d1c0a52-0c1e-4b64-9
|
|
|
164981
167693
|
];
|
|
164982
167694
|
|
|
164983
167695
|
// src/content/api/payables.ts
|
|
164984
|
-
var
|
|
167696
|
+
var sections75 = [
|
|
164985
167697
|
{
|
|
164986
167698
|
slug: "payables-overview",
|
|
164987
167699
|
parentSlug: "payables",
|
|
@@ -165502,7 +168214,7 @@ curl "https://api.talonic.com/v1/ap/netsuite/runs" \\
|
|
|
165502
168214
|
];
|
|
165503
168215
|
|
|
165504
168216
|
// src/content/api/money-found.ts
|
|
165505
|
-
var
|
|
168217
|
+
var sections76 = [
|
|
165506
168218
|
{
|
|
165507
168219
|
slug: "money-found-overview",
|
|
165508
168220
|
parentSlug: "money-found",
|
|
@@ -165918,7 +168630,7 @@ curl "https://api.talonic.com/v1/money-found/reviews" \\
|
|
|
165918
168630
|
];
|
|
165919
168631
|
|
|
165920
168632
|
// src/content/api/master-records.ts
|
|
165921
|
-
var
|
|
168633
|
+
var sections77 = [
|
|
165922
168634
|
{
|
|
165923
168635
|
slug: "master-records-overview",
|
|
165924
168636
|
parentSlug: "master-records",
|
|
@@ -166504,7 +169216,7 @@ curl -X POST "https://api.talonic.com/v1/master-records/vendors/records/3a7f9d1c
|
|
|
166504
169216
|
];
|
|
166505
169217
|
|
|
166506
169218
|
// src/content/api/app-workflows.ts
|
|
166507
|
-
var
|
|
169219
|
+
var sections78 = [
|
|
166508
169220
|
{
|
|
166509
169221
|
"slug": "receivables-overview",
|
|
166510
169222
|
"parentSlug": "receivables",
|
|
@@ -168868,7 +171580,7 @@ var HAND_WRITTEN = [
|
|
|
168868
171580
|
...sections40,
|
|
168869
171581
|
...sections41,
|
|
168870
171582
|
...sections42,
|
|
168871
|
-
...
|
|
171583
|
+
...sections43,
|
|
168872
171584
|
...sections45,
|
|
168873
171585
|
...sections46,
|
|
168874
171586
|
...sections47,
|
|
@@ -168902,7 +171614,8 @@ var HAND_WRITTEN = [
|
|
|
168902
171614
|
...sections75,
|
|
168903
171615
|
...sections76,
|
|
168904
171616
|
...sections77,
|
|
168905
|
-
...
|
|
171617
|
+
...sections78,
|
|
171618
|
+
...sections44
|
|
168906
171619
|
];
|
|
168907
171620
|
var GENERATED_API_REFERENCE = buildGeneratedReference(
|
|
168908
171621
|
openapi_default,
|
|
@@ -168911,7 +171624,7 @@ var GENERATED_API_REFERENCE = buildGeneratedReference(
|
|
|
168911
171624
|
var ALL_API_SECTIONS_RAW = [...HAND_WRITTEN, ...GENERATED_API_REFERENCE.sections];
|
|
168912
171625
|
|
|
168913
171626
|
// src/content/platform/start.ts
|
|
168914
|
-
var
|
|
171627
|
+
var sections79 = [
|
|
168915
171628
|
// -------------------------------------------------------------------------
|
|
168916
171629
|
{
|
|
168917
171630
|
slug: "introduction",
|
|
@@ -169673,7 +172386,7 @@ while (true) {
|
|
|
169673
172386
|
];
|
|
169674
172387
|
|
|
169675
172388
|
// src/content/platform/guides-1.ts
|
|
169676
|
-
var
|
|
172389
|
+
var sections80 = [
|
|
169677
172390
|
// ---------------------------------------------------------------------------
|
|
169678
172391
|
// uploading
|
|
169679
172392
|
// ---------------------------------------------------------------------------
|
|
@@ -170551,7 +173264,7 @@ console.log(run.accuracy_overall, run.accuracy_by_field)`
|
|
|
170551
173264
|
];
|
|
170552
173265
|
|
|
170553
173266
|
// src/content/platform/guides-2.ts
|
|
170554
|
-
var
|
|
173267
|
+
var sections81 = [
|
|
170555
173268
|
// ---------------------------------------------------------------------------
|
|
170556
173269
|
{
|
|
170557
173270
|
slug: "run-a-spec",
|
|
@@ -171397,7 +174110,7 @@ for (const c of cases) {
|
|
|
171397
174110
|
];
|
|
171398
174111
|
|
|
171399
174112
|
// src/content/platform/guides-3.ts
|
|
171400
|
-
var
|
|
174113
|
+
var sections82 = [
|
|
171401
174114
|
// ── Deliver data ──────────────────────────────────────────────────────────
|
|
171402
174115
|
{
|
|
171403
174116
|
slug: "deliver-data",
|
|
@@ -171981,7 +174694,7 @@ var errors3 = (slug, extra = []) => ({
|
|
|
171981
174694
|
]
|
|
171982
174695
|
});
|
|
171983
174696
|
var costs = (extra) => p(`${extra} Work an app does for you draws on the same credit balance as the rest of the platform; no separate per-app price is published. See [Billing, credits and usage](/docs/platform/billing-and-usage) and [rate limits](/docs/api/rate-limits).`);
|
|
171984
|
-
var
|
|
174697
|
+
var sections83 = [
|
|
171985
174698
|
// -------------------------------------------------------------------------
|
|
171986
174699
|
{
|
|
171987
174700
|
slug: "apps-gallery",
|
|
@@ -173135,7 +175848,7 @@ for (const order of data) console.log(order.lrn, order.checks.map((c) => c.id),
|
|
|
173135
175848
|
];
|
|
173136
175849
|
|
|
173137
175850
|
// src/content/platform/admin.ts
|
|
173138
|
-
var
|
|
175851
|
+
var sections84 = [
|
|
173139
175852
|
// -------------------------------------------------------------------------
|
|
173140
175853
|
{
|
|
173141
175854
|
slug: "team-management",
|
|
@@ -174351,7 +177064,7 @@ if (!status.satisfiable) console.warn('blocked operations:', status.unroutable_o
|
|
|
174351
177064
|
];
|
|
174352
177065
|
|
|
174353
177066
|
// src/content/platform/changelog.ts
|
|
174354
|
-
var
|
|
177067
|
+
var sections85 = [
|
|
174355
177068
|
{
|
|
174356
177069
|
slug: "changelog",
|
|
174357
177070
|
parentSlug: "changelog",
|
|
@@ -175737,7 +178450,7 @@ talonic --version`
|
|
|
175737
178450
|
];
|
|
175738
178451
|
|
|
175739
178452
|
// src/content/sdk/index.ts
|
|
175740
|
-
var
|
|
178453
|
+
var sections86 = sections_default;
|
|
175741
178454
|
|
|
175742
178455
|
// src/content/mcp/sections.json
|
|
175743
178456
|
var sections_default2 = [
|
|
@@ -181469,7 +184182,7 @@ var sections_default2 = [
|
|
|
181469
184182
|
];
|
|
181470
184183
|
|
|
181471
184184
|
// src/content/mcp/index.ts
|
|
181472
|
-
var
|
|
184185
|
+
var sections87 = sections_default2;
|
|
181473
184186
|
|
|
181474
184187
|
// src/content/redirects.ts
|
|
181475
184188
|
var DOCS_REDIRECTS = [
|
|
@@ -181720,17 +184433,17 @@ function scanOpenApi(spec) {
|
|
|
181720
184433
|
|
|
181721
184434
|
// src/content/index.ts
|
|
181722
184435
|
var ALL_PLATFORM_RAW = [
|
|
181723
|
-
...sections78,
|
|
181724
184436
|
...sections79,
|
|
181725
184437
|
...sections80,
|
|
181726
184438
|
...sections81,
|
|
181727
184439
|
...sections82,
|
|
181728
184440
|
...sections83,
|
|
181729
|
-
...sections84
|
|
184441
|
+
...sections84,
|
|
184442
|
+
...sections85
|
|
181730
184443
|
];
|
|
181731
184444
|
var ALL_API_RAW = ALL_API_SECTIONS_RAW;
|
|
181732
|
-
var ALL_SDK_RAW = [...
|
|
181733
|
-
var ALL_MCP_RAW = [...
|
|
184445
|
+
var ALL_SDK_RAW = [...sections86];
|
|
184446
|
+
var ALL_MCP_RAW = [...sections87];
|
|
181734
184447
|
function enrich(raw, navSections, domain) {
|
|
181735
184448
|
return raw.map((r) => {
|
|
181736
184449
|
const { prev, next } = derivePrevNext(navSections, r.slug);
|