@talonic/docs 0.21.67 → 0.21.68

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/seo.js CHANGED
@@ -1173,7 +1173,7 @@ var openapi_default = {
1173
1173
  get: {
1174
1174
  operationId: "getDocumentMarkdown",
1175
1175
  summary: "Get the OCR-converted markdown of a document",
1176
- description: "Returns the full markdown representation produced by OCR for the document.\nEquivalent to passing `include_markdown=true` on `/v1/extract`, but callable\nat any time after OCR has completed. Useful for PDF-to-markdown conversion\nwithout requiring a schema or re-running extraction.\n\nReturns 404 if the document does not exist, is still being processed, or is\nan image that did not produce OCR output.\n",
1176
+ description: "Returns the full markdown representation produced by OCR for the document.\nEquivalent to passing `include_markdown=true` on `/v1/extract`, but callable\nat any time after OCR has completed. Useful for PDF-to-markdown conversion\nwithout requiring a schema or re-running extraction.\n\nReturns 404 if the document does not exist, is still being processed, or is\nan image that did not produce OCR output.\n\nA document ingested by `/v1/run` under a Spec whose Source stage sets\n`markdown_policy: on_demand` is stored without OCR. The first call to this\nendpoint starts its OCR and waits a short, bounded time for it: 200 with the\nmarkdown when it finishes in time, otherwise 202 with a `Retry-After` header\n(seconds); call again after that delay.\n",
1177
1177
  tags: [
1178
1178
  "Documents"
1179
1179
  ],
@@ -1210,6 +1210,50 @@ var openapi_default = {
1210
1210
  }
1211
1211
  }
1212
1212
  },
1213
+ "202": {
1214
+ description: "OCR for this document was deferred and is running now (OCR on demand).\nRetry after the number of seconds in the `Retry-After` header.\n",
1215
+ headers: {
1216
+ "Retry-After": {
1217
+ description: "Seconds to wait before calling again.",
1218
+ schema: {
1219
+ type: "integer",
1220
+ example: 10
1221
+ }
1222
+ }
1223
+ },
1224
+ content: {
1225
+ "application/json": {
1226
+ schema: {
1227
+ type: "object",
1228
+ required: [
1229
+ "document_id",
1230
+ "status",
1231
+ "retry_after_seconds"
1232
+ ],
1233
+ properties: {
1234
+ document_id: {
1235
+ type: "string",
1236
+ format: "uuid",
1237
+ example: "f0e1d2c3-b4a5-9687-8765-432109876543",
1238
+ description: "ID of the document whose OCR is running."
1239
+ },
1240
+ status: {
1241
+ type: "string",
1242
+ enum: [
1243
+ "processing"
1244
+ ],
1245
+ description: "Always `processing`."
1246
+ },
1247
+ retry_after_seconds: {
1248
+ type: "integer",
1249
+ example: 10,
1250
+ description: "Same value as the `Retry-After` header."
1251
+ }
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ },
1213
1257
  "401": {
1214
1258
  $ref: "#/components/responses/Unauthorized"
1215
1259
  },
package/openapi.json CHANGED
@@ -1167,7 +1167,7 @@
1167
1167
  "get": {
1168
1168
  "operationId": "getDocumentMarkdown",
1169
1169
  "summary": "Get the OCR-converted markdown of a document",
1170
- "description": "Returns the full markdown representation produced by OCR for the document.\nEquivalent to passing `include_markdown=true` on `/v1/extract`, but callable\nat any time after OCR has completed. Useful for PDF-to-markdown conversion\nwithout requiring a schema or re-running extraction.\n\nReturns 404 if the document does not exist, is still being processed, or is\nan image that did not produce OCR output.\n",
1170
+ "description": "Returns the full markdown representation produced by OCR for the document.\nEquivalent to passing `include_markdown=true` on `/v1/extract`, but callable\nat any time after OCR has completed. Useful for PDF-to-markdown conversion\nwithout requiring a schema or re-running extraction.\n\nReturns 404 if the document does not exist, is still being processed, or is\nan image that did not produce OCR output.\n\nA document ingested by `/v1/run` under a Spec whose Source stage sets\n`markdown_policy: on_demand` is stored without OCR. The first call to this\nendpoint starts its OCR and waits a short, bounded time for it: 200 with the\nmarkdown when it finishes in time, otherwise 202 with a `Retry-After` header\n(seconds); call again after that delay.\n",
1171
1171
  "tags": [
1172
1172
  "Documents"
1173
1173
  ],
@@ -1204,6 +1204,50 @@
1204
1204
  }
1205
1205
  }
1206
1206
  },
1207
+ "202": {
1208
+ "description": "OCR for this document was deferred and is running now (OCR on demand).\nRetry after the number of seconds in the `Retry-After` header.\n",
1209
+ "headers": {
1210
+ "Retry-After": {
1211
+ "description": "Seconds to wait before calling again.",
1212
+ "schema": {
1213
+ "type": "integer",
1214
+ "example": 10
1215
+ }
1216
+ }
1217
+ },
1218
+ "content": {
1219
+ "application/json": {
1220
+ "schema": {
1221
+ "type": "object",
1222
+ "required": [
1223
+ "document_id",
1224
+ "status",
1225
+ "retry_after_seconds"
1226
+ ],
1227
+ "properties": {
1228
+ "document_id": {
1229
+ "type": "string",
1230
+ "format": "uuid",
1231
+ "example": "f0e1d2c3-b4a5-9687-8765-432109876543",
1232
+ "description": "ID of the document whose OCR is running."
1233
+ },
1234
+ "status": {
1235
+ "type": "string",
1236
+ "enum": [
1237
+ "processing"
1238
+ ],
1239
+ "description": "Always `processing`."
1240
+ },
1241
+ "retry_after_seconds": {
1242
+ "type": "integer",
1243
+ "example": 10,
1244
+ "description": "Same value as the `Retry-After` header."
1245
+ }
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ },
1207
1251
  "401": {
1208
1252
  "$ref": "#/components/responses/Unauthorized"
1209
1253
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.67",
3
+ "version": "0.21.68",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,