@talonic/docs 0.21.68 → 0.21.69

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.
Files changed (3) hide show
  1. package/dist/seo.js +179 -0
  2. package/openapi.json +179 -0
  3. package/package.json +1 -1
package/dist/seo.js CHANGED
@@ -1008,6 +1008,185 @@ var openapi_default = {
1008
1008
  }
1009
1009
  }
1010
1010
  },
1011
+ "/v1/documents/{id}/segments": {
1012
+ get: {
1013
+ operationId: "listDocumentSegments",
1014
+ summary: "List the documents a packet was split into",
1015
+ description: "A packet is one PDF that held several separate documents (a scanned folder, a mailroom batch). With packet splitting on, each logical document becomes its own document with its own type and fields; the packet stays as the container and keeps the full text. Segments come back in page order, each a full document object whose `parent.pages` is the page range it was cut from. A document that was not split answers with an empty list.\n",
1016
+ tags: [
1017
+ "Documents"
1018
+ ],
1019
+ parameters: [
1020
+ {
1021
+ $ref: "#/components/parameters/ResourceId"
1022
+ }
1023
+ ],
1024
+ responses: {
1025
+ "200": {
1026
+ description: "The packet's segments.",
1027
+ content: {
1028
+ "application/json": {
1029
+ schema: {
1030
+ type: "object",
1031
+ properties: {
1032
+ document_id: {
1033
+ type: "string",
1034
+ format: "uuid"
1035
+ },
1036
+ filename: {
1037
+ type: "string"
1038
+ },
1039
+ pages: {
1040
+ type: "integer"
1041
+ },
1042
+ is_packet: {
1043
+ type: "boolean"
1044
+ },
1045
+ segment_count: {
1046
+ type: "integer"
1047
+ },
1048
+ data: {
1049
+ type: "array",
1050
+ items: {
1051
+ type: "object"
1052
+ }
1053
+ },
1054
+ links: {
1055
+ type: "object"
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ }
1061
+ },
1062
+ "404": {
1063
+ description: "Document not found."
1064
+ }
1065
+ }
1066
+ }
1067
+ },
1068
+ "/v1/settings/packet-split": {
1069
+ get: {
1070
+ operationId: "getPacketSplitSettings",
1071
+ tags: [
1072
+ "Documents"
1073
+ ],
1074
+ summary: "Get the packet-split setting",
1075
+ description: "Whether a PDF that holds several separate documents is cut into one document per logical document. `enabled` is the workspace's own switch, `effective` is what the pipeline does, and `locked` says why the switch has no effect (`forced_on` by the deployment, or `unavailable`).\n",
1076
+ responses: {
1077
+ "200": {
1078
+ description: "The packet-split setting.",
1079
+ content: {
1080
+ "application/json": {
1081
+ schema: {
1082
+ type: "object",
1083
+ properties: {
1084
+ enabled: {
1085
+ type: "boolean"
1086
+ },
1087
+ effective: {
1088
+ type: "boolean"
1089
+ },
1090
+ locked: {
1091
+ type: "string",
1092
+ nullable: true
1093
+ },
1094
+ vision_read: {
1095
+ type: "boolean",
1096
+ description: "Every split document is read from its page images instead of the OCR text."
1097
+ },
1098
+ vision_available: {
1099
+ type: "boolean",
1100
+ description: "False when the deployment has no vision model; `vision_read` then has no effect."
1101
+ }
1102
+ }
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ },
1109
+ patch: {
1110
+ operationId: "updatePacketSplitSettings",
1111
+ tags: [
1112
+ "Documents"
1113
+ ],
1114
+ summary: "Change the packet-split settings",
1115
+ description: "Partial update: send `enabled`, `vision_read` or both. Applies to documents ingested from now on. Requires the `write` scope.\n",
1116
+ requestBody: {
1117
+ required: true,
1118
+ content: {
1119
+ "application/json": {
1120
+ schema: {
1121
+ type: "object",
1122
+ properties: {
1123
+ enabled: {
1124
+ type: "boolean"
1125
+ },
1126
+ vision_read: {
1127
+ type: "boolean"
1128
+ }
1129
+ }
1130
+ }
1131
+ }
1132
+ }
1133
+ },
1134
+ responses: {
1135
+ "200": {
1136
+ description: "The resulting packet-split setting."
1137
+ }
1138
+ }
1139
+ }
1140
+ },
1141
+ "/v1/documents/{id}/vision-read": {
1142
+ post: {
1143
+ operationId: "visionReadDocument",
1144
+ tags: [
1145
+ "Documents"
1146
+ ],
1147
+ summary: "Read a document again from its page images",
1148
+ description: "The vision model reads each page IMAGE (handwriting, stamps and signatures included), the result replaces the document's text, and the fields are captured again. On a split packet this runs over every segment. Answers `available: false` and queues nothing when the deployment has no vision model. Requires the `write` scope.\n",
1149
+ parameters: [
1150
+ {
1151
+ $ref: "#/components/parameters/ResourceId"
1152
+ }
1153
+ ],
1154
+ responses: {
1155
+ "201": {
1156
+ description: "The documents queued for the vision read.",
1157
+ content: {
1158
+ "application/json": {
1159
+ schema: {
1160
+ type: "object",
1161
+ properties: {
1162
+ document_id: {
1163
+ type: "string",
1164
+ format: "uuid"
1165
+ },
1166
+ available: {
1167
+ type: "boolean"
1168
+ },
1169
+ queued: {
1170
+ type: "integer"
1171
+ },
1172
+ document_ids: {
1173
+ type: "array",
1174
+ items: {
1175
+ type: "string",
1176
+ format: "uuid"
1177
+ }
1178
+ }
1179
+ }
1180
+ }
1181
+ }
1182
+ }
1183
+ },
1184
+ "404": {
1185
+ description: "Document not found."
1186
+ }
1187
+ }
1188
+ }
1189
+ },
1011
1190
  "/v1/documents/{id}/lineage": {
1012
1191
  get: {
1013
1192
  operationId: "getDocumentLineage",
package/openapi.json CHANGED
@@ -1003,6 +1003,185 @@
1003
1003
  }
1004
1004
  }
1005
1005
  },
1006
+ "/v1/documents/{id}/segments": {
1007
+ "get": {
1008
+ "operationId": "listDocumentSegments",
1009
+ "summary": "List the documents a packet was split into",
1010
+ "description": "A packet is one PDF that held several separate documents (a scanned folder, a mailroom batch). With packet splitting on, each logical document becomes its own document with its own type and fields; the packet stays as the container and keeps the full text. Segments come back in page order, each a full document object whose `parent.pages` is the page range it was cut from. A document that was not split answers with an empty list.\n",
1011
+ "tags": [
1012
+ "Documents"
1013
+ ],
1014
+ "parameters": [
1015
+ {
1016
+ "$ref": "#/components/parameters/ResourceId"
1017
+ }
1018
+ ],
1019
+ "responses": {
1020
+ "200": {
1021
+ "description": "The packet's segments.",
1022
+ "content": {
1023
+ "application/json": {
1024
+ "schema": {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "document_id": {
1028
+ "type": "string",
1029
+ "format": "uuid"
1030
+ },
1031
+ "filename": {
1032
+ "type": "string"
1033
+ },
1034
+ "pages": {
1035
+ "type": "integer"
1036
+ },
1037
+ "is_packet": {
1038
+ "type": "boolean"
1039
+ },
1040
+ "segment_count": {
1041
+ "type": "integer"
1042
+ },
1043
+ "data": {
1044
+ "type": "array",
1045
+ "items": {
1046
+ "type": "object"
1047
+ }
1048
+ },
1049
+ "links": {
1050
+ "type": "object"
1051
+ }
1052
+ }
1053
+ }
1054
+ }
1055
+ }
1056
+ },
1057
+ "404": {
1058
+ "description": "Document not found."
1059
+ }
1060
+ }
1061
+ }
1062
+ },
1063
+ "/v1/settings/packet-split": {
1064
+ "get": {
1065
+ "operationId": "getPacketSplitSettings",
1066
+ "tags": [
1067
+ "Documents"
1068
+ ],
1069
+ "summary": "Get the packet-split setting",
1070
+ "description": "Whether a PDF that holds several separate documents is cut into one document per logical document. `enabled` is the workspace's own switch, `effective` is what the pipeline does, and `locked` says why the switch has no effect (`forced_on` by the deployment, or `unavailable`).\n",
1071
+ "responses": {
1072
+ "200": {
1073
+ "description": "The packet-split setting.",
1074
+ "content": {
1075
+ "application/json": {
1076
+ "schema": {
1077
+ "type": "object",
1078
+ "properties": {
1079
+ "enabled": {
1080
+ "type": "boolean"
1081
+ },
1082
+ "effective": {
1083
+ "type": "boolean"
1084
+ },
1085
+ "locked": {
1086
+ "type": "string",
1087
+ "nullable": true
1088
+ },
1089
+ "vision_read": {
1090
+ "type": "boolean",
1091
+ "description": "Every split document is read from its page images instead of the OCR text."
1092
+ },
1093
+ "vision_available": {
1094
+ "type": "boolean",
1095
+ "description": "False when the deployment has no vision model; `vision_read` then has no effect."
1096
+ }
1097
+ }
1098
+ }
1099
+ }
1100
+ }
1101
+ }
1102
+ }
1103
+ },
1104
+ "patch": {
1105
+ "operationId": "updatePacketSplitSettings",
1106
+ "tags": [
1107
+ "Documents"
1108
+ ],
1109
+ "summary": "Change the packet-split settings",
1110
+ "description": "Partial update: send `enabled`, `vision_read` or both. Applies to documents ingested from now on. Requires the `write` scope.\n",
1111
+ "requestBody": {
1112
+ "required": true,
1113
+ "content": {
1114
+ "application/json": {
1115
+ "schema": {
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "enabled": {
1119
+ "type": "boolean"
1120
+ },
1121
+ "vision_read": {
1122
+ "type": "boolean"
1123
+ }
1124
+ }
1125
+ }
1126
+ }
1127
+ }
1128
+ },
1129
+ "responses": {
1130
+ "200": {
1131
+ "description": "The resulting packet-split setting."
1132
+ }
1133
+ }
1134
+ }
1135
+ },
1136
+ "/v1/documents/{id}/vision-read": {
1137
+ "post": {
1138
+ "operationId": "visionReadDocument",
1139
+ "tags": [
1140
+ "Documents"
1141
+ ],
1142
+ "summary": "Read a document again from its page images",
1143
+ "description": "The vision model reads each page IMAGE (handwriting, stamps and signatures included), the result replaces the document's text, and the fields are captured again. On a split packet this runs over every segment. Answers `available: false` and queues nothing when the deployment has no vision model. Requires the `write` scope.\n",
1144
+ "parameters": [
1145
+ {
1146
+ "$ref": "#/components/parameters/ResourceId"
1147
+ }
1148
+ ],
1149
+ "responses": {
1150
+ "201": {
1151
+ "description": "The documents queued for the vision read.",
1152
+ "content": {
1153
+ "application/json": {
1154
+ "schema": {
1155
+ "type": "object",
1156
+ "properties": {
1157
+ "document_id": {
1158
+ "type": "string",
1159
+ "format": "uuid"
1160
+ },
1161
+ "available": {
1162
+ "type": "boolean"
1163
+ },
1164
+ "queued": {
1165
+ "type": "integer"
1166
+ },
1167
+ "document_ids": {
1168
+ "type": "array",
1169
+ "items": {
1170
+ "type": "string",
1171
+ "format": "uuid"
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ }
1177
+ }
1178
+ },
1179
+ "404": {
1180
+ "description": "Document not found."
1181
+ }
1182
+ }
1183
+ }
1184
+ },
1006
1185
  "/v1/documents/{id}/lineage": {
1007
1186
  "get": {
1008
1187
  "operationId": "getDocumentLineage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.68",
3
+ "version": "0.21.69",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,