@talonic/docs 0.21.6 → 0.21.7
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 +91 -18
- package/dist/index.js +62 -3
- package/dist/index.js.map +1 -1
- package/dist/seo.js +249 -7
- package/openapi.json +249 -7
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "Delivery",
|
|
62
|
-
"description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted`, `document.extraction_failed`,\n`document.structured` (per-document structured fields from a Spec pipeline / `/v1/run`; deliver with the `pipeline.capture` deliverable — its payload carries `run_id` (null outside `/v1/run`), `document_id`, `pipeline_id`, and `fields` for submission correlation),\n`run.dataspace.completed`, `run.dataspace.failed`, `result.dataspace.completed`,\n`result.dataspace.failed`, `run.structuring.completed`, `run.structuring.failed`,\n`run.resolution.completed`, `run.resolution.failed`, `run.extraction.completed`,\n`run.extraction.failed`, `result.flagged`, `result.approved`, `result.rejected`,\n`delivery.item.completed`, `delivery.item.failed`.\n\n**Signature verification (HMAC-SHA256):**\n\nHeader: `X-Talonic-Signature: t=1714060200000,v1=abc123...`\n\n```javascript\nconst crypto = require('crypto');\nconst [tPart, vPart] = signature.split(',');\nconst timestamp = tPart.split('=')[1];\nconst received = vPart.split('=')[1];\nconst expected = crypto.createHmac('sha256', signingSecret)\n .update(timestamp + '.' + rawBody).digest('hex');\nconst valid = crypto.timingSafeEqual(\n Buffer.from(received), Buffer.from(expected));\n```\n\n**Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total).\nHTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately.\n\n**Dead-letter queue recovery:** When all retries are exhausted, the delivery\nlands in the DLQ. List failed deliveries with `GET /v1/delivery/dlq`\n(filterable by `binding_id` and `error_code`). Inspect a single entry with\n`GET /v1/delivery/dlq/{id}`. Replay with `POST /v1/delivery/dlq/{id}/replay`\n— this deletes the DLQ entry, re-signs the payload with the current\nsigning secret, resets the retry counter to attempt 1, and re-enqueues\nthe delivery through the full backoff ladder.\n"
|
|
62
|
+
"description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted`, `document.extraction_failed`,\n`document.structured` (per-document structured fields from a Spec pipeline / `/v1/run`; deliver with the `pipeline.capture` deliverable — its payload carries `run_id` (null outside `/v1/run`), `document_id`, `pipeline_id`, and `fields` for submission correlation),\n`run.completed` (a `POST /v1/run` pipeline finished; payload adds `records` —\nan array of `{ document_id, filename, data }`, one entry per output row,\nALWAYS an array even for a single document; assembled runs attribute each\ncomposed row to its anchor document; `document_id` and `filename` are\nnullable — null when a row's document identity cannot be resolved —\nalongside the legacy `structured_data`,\nstill emitted but considered legacy in favor of `records`),\n`run.failed` (a `POST /v1/run` pipeline failed — every document errored\nduring ingest or extraction; the `error` object's shape varies by failure\nstage and may include `document_ids`, a best-effort array of the input\ndocument ids),\n`run.dataspace.completed`, `run.dataspace.failed`, `result.dataspace.completed`,\n`result.dataspace.failed`, `run.structuring.completed`, `run.structuring.failed`,\n`run.resolution.completed`, `run.resolution.failed`, `run.extraction.completed`,\n`run.extraction.failed`, `result.flagged`, `result.approved`, `result.rejected`,\n`delivery.item.completed`, `delivery.item.failed`.\n\n**Signature verification (HMAC-SHA256):**\n\nHeader: `X-Talonic-Signature: t=1714060200000,v1=abc123...`\n\n```javascript\nconst crypto = require('crypto');\nconst [tPart, vPart] = signature.split(',');\nconst timestamp = tPart.split('=')[1];\nconst received = vPart.split('=')[1];\nconst expected = crypto.createHmac('sha256', signingSecret)\n .update(timestamp + '.' + rawBody).digest('hex');\nconst valid = crypto.timingSafeEqual(\n Buffer.from(received), Buffer.from(expected));\n```\n\n**Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total).\nHTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately.\n\n**Dead-letter queue recovery:** When all retries are exhausted, the delivery\nlands in the DLQ. List failed deliveries with `GET /v1/delivery/dlq`\n(filterable by `binding_id` and `error_code`). Inspect a single entry with\n`GET /v1/delivery/dlq/{id}`. Replay with `POST /v1/delivery/dlq/{id}/replay`\n— this deletes the DLQ entry, re-signs the payload with the current\nsigning secret, resets the retry counter to attempt 1, and re-enqueues\nthe delivery through the full backoff ladder.\n"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "Filter",
|
|
@@ -2370,6 +2370,7 @@
|
|
|
2370
2370
|
"example": {
|
|
2371
2371
|
"document_id": "f0e1d2c3-b4a5-9687-8765-432109876543",
|
|
2372
2372
|
"filename": "receipt-march.pdf",
|
|
2373
|
+
"size_bytes": 148213,
|
|
2373
2374
|
"status": "queued",
|
|
2374
2375
|
"processing_mode": "realtime",
|
|
2375
2376
|
"source_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
@@ -17346,7 +17347,7 @@
|
|
|
17346
17347
|
"Run"
|
|
17347
17348
|
],
|
|
17348
17349
|
"summary": "Ingest documents and run a Spec's pipeline in one call",
|
|
17349
|
-
"description": "Accepts one or more files, one or more `file_urls`, or a mix of both — at least one input is required. Ingests every input (metering each ingest leg), waits for OCR to finish, then compiles the named Spec's saved rail into a pipeline and starts it — the same compile step `POST /v1/pipelines` uses, minus the separate \"upload documents first\" step. Always returns 202; poll `GET /v1/run/{id}` or listen for the `run.completed` / `run.failed` webhook (`POST /v1/webhooks`). Requires write scope. Unlike `POST /v1/process`, this endpoint does not dedup — every call starts a fresh run.\n",
|
|
17350
|
+
"description": "Accepts one or more files, one or more `file_urls`, or a mix of both — at least one input is required. Ingests every input (metering each ingest leg), waits for OCR to finish, then compiles the named Spec's saved rail into a pipeline and starts it — the same compile step `POST /v1/pipelines` uses, minus the separate \"upload documents first\" step. Always returns 202; poll `GET /v1/run/{id}` or listen for the `run.completed` / `run.failed` webhook (`POST /v1/webhooks`). Requires write scope. Unlike `POST /v1/process`, this endpoint does not dedup — every call starts a fresh run. Content-based document dedup still applies per input within the call — see the `documents` response field.\n",
|
|
17350
17351
|
"operationId": "createRun",
|
|
17351
17352
|
"security": [
|
|
17352
17353
|
{
|
|
@@ -17432,6 +17433,59 @@
|
|
|
17432
17433
|
"poll_url": {
|
|
17433
17434
|
"type": "string",
|
|
17434
17435
|
"example": "/v1/run/3d44a4dc-e3e4-4bca-b079-a9c85bf75026"
|
|
17436
|
+
},
|
|
17437
|
+
"documents": {
|
|
17438
|
+
"type": "array",
|
|
17439
|
+
"description": "One entry per input, in input order — multipart files (in request order) first, then file_urls; documents.length === input_count. Identical files submitted in the same call resolve to the same document_id, so GET /v1/run/{id}'s progress.total_documents can be lower than input_count.\n",
|
|
17440
|
+
"items": {
|
|
17441
|
+
"type": "object",
|
|
17442
|
+
"required": [
|
|
17443
|
+
"document_id",
|
|
17444
|
+
"filename",
|
|
17445
|
+
"size_bytes",
|
|
17446
|
+
"source",
|
|
17447
|
+
"deduplicated"
|
|
17448
|
+
],
|
|
17449
|
+
"properties": {
|
|
17450
|
+
"document_id": {
|
|
17451
|
+
"type": "string",
|
|
17452
|
+
"format": "uuid",
|
|
17453
|
+
"description": "The CANONICAL document — the same id result rows and the run.completed webhook's records[] carry. A byte-identical re-upload resolves to an existing document whose filename/tags may pre-date this run. This deliberately diverges from the sources/ingest dedup shape, where document_id is the link row and existing_document_id is the canonical.\n"
|
|
17454
|
+
},
|
|
17455
|
+
"filename": {
|
|
17456
|
+
"type": "string",
|
|
17457
|
+
"nullable": true,
|
|
17458
|
+
"description": "For file inputs, the caller's uploaded filename (even when deduplicated). For file_url inputs, the filename derived at download — for a deduplicated URL input this is the canonical document's stored filename, which may differ from the URL.\n"
|
|
17459
|
+
},
|
|
17460
|
+
"size_bytes": {
|
|
17461
|
+
"type": "integer",
|
|
17462
|
+
"nullable": true
|
|
17463
|
+
},
|
|
17464
|
+
"source": {
|
|
17465
|
+
"type": "string",
|
|
17466
|
+
"enum": [
|
|
17467
|
+
"file",
|
|
17468
|
+
"file_url"
|
|
17469
|
+
]
|
|
17470
|
+
},
|
|
17471
|
+
"deduplicated": {
|
|
17472
|
+
"type": "boolean",
|
|
17473
|
+
"description": "True when this input resolved to a pre-existing document instead of creating a new one."
|
|
17474
|
+
},
|
|
17475
|
+
"linked_document_id": {
|
|
17476
|
+
"type": "string",
|
|
17477
|
+
"format": "uuid",
|
|
17478
|
+
"description": "Present only when deduplicated is true — the thin per-upload link row created for this input."
|
|
17479
|
+
}
|
|
17480
|
+
},
|
|
17481
|
+
"example": {
|
|
17482
|
+
"document_id": "3d44a4dc-e3e4-4bca-b079-a9c85bf75026",
|
|
17483
|
+
"filename": "invoice.pdf",
|
|
17484
|
+
"size_bytes": 148213,
|
|
17485
|
+
"source": "file",
|
|
17486
|
+
"deduplicated": false
|
|
17487
|
+
}
|
|
17488
|
+
}
|
|
17435
17489
|
}
|
|
17436
17490
|
}
|
|
17437
17491
|
}
|
|
@@ -17459,7 +17513,7 @@
|
|
|
17459
17513
|
"Run"
|
|
17460
17514
|
],
|
|
17461
17515
|
"summary": "Poll a /v1/run request",
|
|
17462
|
-
"description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `failed` — the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. Requires read scope.\n",
|
|
17516
|
+
"description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `failed` — the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. `documents` (when present) echoes each input's resolved document plus a per-entry live `status` — omitted entirely for runs submitted before this field shipped. Requires read scope.\n",
|
|
17463
17517
|
"operationId": "pollRunRequest",
|
|
17464
17518
|
"security": [
|
|
17465
17519
|
{
|
|
@@ -17547,6 +17601,59 @@
|
|
|
17547
17601
|
"type": "integer"
|
|
17548
17602
|
}
|
|
17549
17603
|
}
|
|
17604
|
+
},
|
|
17605
|
+
"documents": {
|
|
17606
|
+
"type": "array",
|
|
17607
|
+
"nullable": true,
|
|
17608
|
+
"description": "Same items as POST /v1/run's response, each with an added per-entry status folded from the compiled pipeline's live per-document state (falls back to the run's own status when no pipeline is running yet, or the per-document fold could not be read). OPTIONAL — omitted entirely for runs submitted before this field shipped.\n",
|
|
17609
|
+
"items": {
|
|
17610
|
+
"type": "object",
|
|
17611
|
+
"required": [
|
|
17612
|
+
"document_id",
|
|
17613
|
+
"filename",
|
|
17614
|
+
"size_bytes",
|
|
17615
|
+
"source",
|
|
17616
|
+
"deduplicated",
|
|
17617
|
+
"status"
|
|
17618
|
+
],
|
|
17619
|
+
"properties": {
|
|
17620
|
+
"document_id": {
|
|
17621
|
+
"type": "string",
|
|
17622
|
+
"format": "uuid"
|
|
17623
|
+
},
|
|
17624
|
+
"filename": {
|
|
17625
|
+
"type": "string",
|
|
17626
|
+
"nullable": true
|
|
17627
|
+
},
|
|
17628
|
+
"size_bytes": {
|
|
17629
|
+
"type": "integer",
|
|
17630
|
+
"nullable": true
|
|
17631
|
+
},
|
|
17632
|
+
"source": {
|
|
17633
|
+
"type": "string",
|
|
17634
|
+
"enum": [
|
|
17635
|
+
"file",
|
|
17636
|
+
"file_url"
|
|
17637
|
+
]
|
|
17638
|
+
},
|
|
17639
|
+
"deduplicated": {
|
|
17640
|
+
"type": "boolean"
|
|
17641
|
+
},
|
|
17642
|
+
"linked_document_id": {
|
|
17643
|
+
"type": "string",
|
|
17644
|
+
"format": "uuid",
|
|
17645
|
+
"description": "Present only when deduplicated is true."
|
|
17646
|
+
},
|
|
17647
|
+
"status": {
|
|
17648
|
+
"type": "string",
|
|
17649
|
+
"enum": [
|
|
17650
|
+
"processing",
|
|
17651
|
+
"completed",
|
|
17652
|
+
"failed"
|
|
17653
|
+
]
|
|
17654
|
+
}
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17550
17657
|
}
|
|
17551
17658
|
}
|
|
17552
17659
|
}
|
|
@@ -17611,7 +17718,7 @@
|
|
|
17611
17718
|
"items": {
|
|
17612
17719
|
"type": "string"
|
|
17613
17720
|
},
|
|
17614
|
-
"description": "Event types to subscribe to (default: extraction.complete, extraction.failed). Includes run.completed / run.failed — fired on POST /v1/run pipeline completion (
|
|
17721
|
+
"description": "Event types to subscribe to (default: extraction.complete, extraction.failed). Includes run.completed / run.failed — fired on POST /v1/run pipeline completion. run.completed's payload carries records (array of { document_id, filename, data }, always present; document_id and filename are nullable — null when a row's document identity cannot be resolved) alongside the legacy structured_data; run.failed's error object may carry document_ids (best effort, present on some failure paths only). See GET /v1/webhooks/events for the full, current catalog."
|
|
17615
17722
|
},
|
|
17616
17723
|
"source_connection_id": {
|
|
17617
17724
|
"type": "string",
|
|
@@ -17853,7 +17960,7 @@
|
|
|
17853
17960
|
"Webhooks"
|
|
17854
17961
|
],
|
|
17855
17962
|
"summary": "List supported webhook event types",
|
|
17856
|
-
"description": "Live catalog served from code (not a static enum) — includes run.completed (\"A /v1/run pipeline finished; structured output is available, review-held fields null\") and run.failed (\"A /v1/run pipeline failed — all documents errored during ingest or extraction\") alongside the document/extraction/job/delivery/process event families.\n",
|
|
17963
|
+
"description": "Live catalog served from code (not a static enum) — includes run.completed (\"A /v1/run pipeline finished; structured output is available, review-held fields null\" — payload adds `records`, an array of `{ document_id, filename, data }` always present even for a single document (`document_id` and `filename` are nullable — null when a row's document identity cannot be resolved), alongside the legacy `structured_data`, which is still emitted but considered legacy in favor of `records`) and run.failed (\"A /v1/run pipeline failed — all documents errored during ingest or extraction\" — its `error` object may include `document_ids`, a best-effort array of the input document ids, present only on some failure paths) alongside the document/extraction/job/delivery/process event families.\n",
|
|
17857
17964
|
"operationId": "listWebhookEvents",
|
|
17858
17965
|
"security": [
|
|
17859
17966
|
{
|
|
@@ -18684,7 +18791,126 @@
|
|
|
18684
18791
|
},
|
|
18685
18792
|
"responses": {
|
|
18686
18793
|
"200": {
|
|
18687
|
-
"description": "{ document_id, filename, status: queued, processing_mode, source_id, links }"
|
|
18794
|
+
"description": "{ document_id, filename, size_bytes, status: queued, processing_mode, source_id, links } — same shape as POST /v1/sources/{id}/documents (this route is an alias); duplicate branch is { status: duplicate, message, document_id, existing_document_id, filename, size_bytes }"
|
|
18795
|
+
}
|
|
18796
|
+
}
|
|
18797
|
+
}
|
|
18798
|
+
},
|
|
18799
|
+
"/v1/ingest": {
|
|
18800
|
+
"post": {
|
|
18801
|
+
"tags": [
|
|
18802
|
+
"Sources"
|
|
18803
|
+
],
|
|
18804
|
+
"summary": "Ingest a document via a standalone source API key",
|
|
18805
|
+
"description": "Multipart upload of one document (≤50 MB), authenticated by a source's own `Authorization: Bearer tlnc_...` API key — no source id in the path, the key resolves it. Duplicate files (by content hash) return a `duplicate` status with the existing document's id. A narrower sibling of `POST /v1/sources/{id}/documents`: the queued response has no `processing_mode`/`source_id`, and `links` carries only `document` (no `source` link).\n",
|
|
18806
|
+
"operationId": "ingestViaApiKey",
|
|
18807
|
+
"security": [
|
|
18808
|
+
{
|
|
18809
|
+
"BearerAuth": []
|
|
18810
|
+
}
|
|
18811
|
+
],
|
|
18812
|
+
"requestBody": {
|
|
18813
|
+
"required": true,
|
|
18814
|
+
"content": {
|
|
18815
|
+
"multipart/form-data": {
|
|
18816
|
+
"schema": {
|
|
18817
|
+
"type": "object",
|
|
18818
|
+
"required": [
|
|
18819
|
+
"file"
|
|
18820
|
+
],
|
|
18821
|
+
"properties": {
|
|
18822
|
+
"file": {
|
|
18823
|
+
"type": "string",
|
|
18824
|
+
"format": "binary",
|
|
18825
|
+
"description": "The document file. Max 50 MB."
|
|
18826
|
+
},
|
|
18827
|
+
"batch_id": {
|
|
18828
|
+
"type": "string",
|
|
18829
|
+
"maxLength": 200,
|
|
18830
|
+
"description": "Optional caller grouping key stamped on the document (documents.client_batch_id)."
|
|
18831
|
+
},
|
|
18832
|
+
"metadata": {
|
|
18833
|
+
"type": "string",
|
|
18834
|
+
"description": "Optional JSON string of a FLAT object `{ [key]: string | number | boolean | null }` (nested objects/arrays rejected 400; ≤50 keys, key ≤128, string value ≤1024), stamped on the document as documents.client_metadata.\n"
|
|
18835
|
+
}
|
|
18836
|
+
}
|
|
18837
|
+
}
|
|
18838
|
+
}
|
|
18839
|
+
}
|
|
18840
|
+
},
|
|
18841
|
+
"responses": {
|
|
18842
|
+
"200": {
|
|
18843
|
+
"description": "Document ingested (or duplicate detected).",
|
|
18844
|
+
"content": {
|
|
18845
|
+
"application/json": {
|
|
18846
|
+
"schema": {
|
|
18847
|
+
"type": "object",
|
|
18848
|
+
"properties": {
|
|
18849
|
+
"document_id": {
|
|
18850
|
+
"type": "string",
|
|
18851
|
+
"format": "uuid",
|
|
18852
|
+
"description": "When status is `duplicate`, the id of the linked-duplicate row created for this upload (see `existing_document_id` for the canonical)."
|
|
18853
|
+
},
|
|
18854
|
+
"filename": {
|
|
18855
|
+
"type": "string",
|
|
18856
|
+
"description": "The uploaded file's own name."
|
|
18857
|
+
},
|
|
18858
|
+
"size_bytes": {
|
|
18859
|
+
"type": [
|
|
18860
|
+
"integer",
|
|
18861
|
+
"null"
|
|
18862
|
+
],
|
|
18863
|
+
"description": "The uploaded file's own size in bytes."
|
|
18864
|
+
},
|
|
18865
|
+
"status": {
|
|
18866
|
+
"type": "string",
|
|
18867
|
+
"enum": [
|
|
18868
|
+
"queued",
|
|
18869
|
+
"duplicate"
|
|
18870
|
+
]
|
|
18871
|
+
},
|
|
18872
|
+
"existing_document_id": {
|
|
18873
|
+
"type": [
|
|
18874
|
+
"string",
|
|
18875
|
+
"null"
|
|
18876
|
+
],
|
|
18877
|
+
"format": "uuid",
|
|
18878
|
+
"description": "Present when status is duplicate — the canonical document this upload deduplicated to."
|
|
18879
|
+
},
|
|
18880
|
+
"message": {
|
|
18881
|
+
"type": "string",
|
|
18882
|
+
"description": "Present when status is duplicate."
|
|
18883
|
+
},
|
|
18884
|
+
"links": {
|
|
18885
|
+
"type": "object",
|
|
18886
|
+
"properties": {
|
|
18887
|
+
"document": {
|
|
18888
|
+
"type": "string"
|
|
18889
|
+
}
|
|
18890
|
+
}
|
|
18891
|
+
}
|
|
18892
|
+
}
|
|
18893
|
+
},
|
|
18894
|
+
"example": {
|
|
18895
|
+
"document_id": "f0e1d2c3-b4a5-9687-8765-432109876543",
|
|
18896
|
+
"filename": "receipt-march.pdf",
|
|
18897
|
+
"size_bytes": 148213,
|
|
18898
|
+
"status": "queued",
|
|
18899
|
+
"links": {
|
|
18900
|
+
"document": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"
|
|
18901
|
+
}
|
|
18902
|
+
}
|
|
18903
|
+
}
|
|
18904
|
+
}
|
|
18905
|
+
},
|
|
18906
|
+
"400": {
|
|
18907
|
+
"$ref": "#/components/responses/BadRequest"
|
|
18908
|
+
},
|
|
18909
|
+
"401": {
|
|
18910
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
18911
|
+
},
|
|
18912
|
+
"413": {
|
|
18913
|
+
"$ref": "#/components/responses/PayloadTooLarge"
|
|
18688
18914
|
}
|
|
18689
18915
|
}
|
|
18690
18916
|
}
|
|
@@ -19718,6 +19944,13 @@
|
|
|
19718
19944
|
},
|
|
19719
19945
|
"pages": {
|
|
19720
19946
|
"type": "integer"
|
|
19947
|
+
},
|
|
19948
|
+
"size_bytes": {
|
|
19949
|
+
"type": [
|
|
19950
|
+
"integer",
|
|
19951
|
+
"null"
|
|
19952
|
+
],
|
|
19953
|
+
"example": 148213
|
|
19721
19954
|
}
|
|
19722
19955
|
}
|
|
19723
19956
|
},
|
|
@@ -20613,7 +20846,16 @@
|
|
|
20613
20846
|
},
|
|
20614
20847
|
"filename": {
|
|
20615
20848
|
"type": "string",
|
|
20616
|
-
"example": "invoice-042.pdf"
|
|
20849
|
+
"example": "invoice-042.pdf",
|
|
20850
|
+
"description": "The uploaded file's own name — present on both the `queued` and `duplicate` branches."
|
|
20851
|
+
},
|
|
20852
|
+
"size_bytes": {
|
|
20853
|
+
"type": [
|
|
20854
|
+
"integer",
|
|
20855
|
+
"null"
|
|
20856
|
+
],
|
|
20857
|
+
"example": 148213,
|
|
20858
|
+
"description": "The uploaded file's own size in bytes — present on both the `queued` and `duplicate` branches."
|
|
20617
20859
|
},
|
|
20618
20860
|
"status": {
|
|
20619
20861
|
"type": "string",
|