@talonic/docs 0.21.68 → 0.21.70

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
@@ -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",
@@ -1519,7 +1698,7 @@ var openapi_default = {
1519
1698
  post: {
1520
1699
  operationId: "createUploadSession",
1521
1700
  summary: "Create a browser-handoff upload session",
1522
- description: "Creates a pending document row plus a short-lived upload token and\nreturns a browser `upload_url` for it. This is the first half of the\nbrowser-handoff upload pair used by the hosted MCP connector: an\nagent creates the session, the user opens `upload_url` in a browser\nand picks the file, and the browser posts it to\n`POST /v1/upload/{token}`.\n\n**Auth is asymmetric across the pair.** This route requires an\nOAuth 2.1 bearer token (the connector OAuth session) and REJECTS\n`tlnc_` API keys with `401`. The upload route is unauthenticated\nbecause the short-lived token IS the credential. The token expires\nafter 15 minutes by default and is single-use.\n\nThe created document is targeted at extraction only\n(`ingestion_target: extract`): once uploaded, call `POST /v1/extract`\nwith the returned `document_id`.\n",
1701
+ description: "Creates a pending document row plus a short-lived upload token and\nreturns a browser `upload_url` for it. This is the first half of the\nbrowser-handoff upload pair used by the hosted MCP connector: an\nagent creates the session, the user opens `upload_url` in a browser\nand picks the file, and the browser posts it to\n`POST /v1/upload/{token}`.\n\n**Auth is asymmetric across the pair.** This route requires an\nOAuth 2.1 bearer token (the connector OAuth session) and REJECTS\n`tlnc_` API keys with `401`. The upload route is unauthenticated\nbecause the short-lived token IS the credential. The token expires\nafter 15 minutes by default and is single-use.\n\nBy default the document is targeted at extraction only\n(`ingestion_target: extract`): once uploaded, call `POST /v1/extract`\nwith the returned `document_id`. Pass `ingestion_target: ingest` to add\nthe file to the workspace instead: it is processed like an in-app upload\n(values, Field Registry, `/v1/ask`, `query_data`).\n",
1523
1702
  tags: [
1524
1703
  "Documents"
1525
1704
  ],
@@ -1543,6 +1722,21 @@ var openapi_default = {
1543
1722
  maxLength: 512,
1544
1723
  description: "Filename of the file the user will upload.",
1545
1724
  example: "invoice-2026-04.pdf"
1725
+ },
1726
+ account_id: {
1727
+ type: "string",
1728
+ maxLength: 255,
1729
+ description: "Account (company) the document belongs to, by id, name or alias. See `GET /v1/accounts`.",
1730
+ example: "Filu"
1731
+ },
1732
+ ingestion_target: {
1733
+ type: "string",
1734
+ enum: [
1735
+ "extract",
1736
+ "ingest"
1737
+ ],
1738
+ default: "extract",
1739
+ description: "`extract`: text only, for a following `POST /v1/extract`. `ingest`: full processing into workspace data."
1546
1740
  }
1547
1741
  }
1548
1742
  }
@@ -11396,6 +11590,116 @@ var openapi_default = {
11396
11590
  }
11397
11591
  }
11398
11592
  },
11593
+ "/v1/accounts": {
11594
+ get: {
11595
+ operationId: "listAccounts",
11596
+ summary: "List accounts",
11597
+ description: "The companies (portfolio companies, clients, entities) this workspace\nkeeps apart. Each document belongs to at most one account; uploads name\nit by id, name or alias, and `query_data` exposes it as `account`.\n",
11598
+ tags: [
11599
+ "Documents"
11600
+ ],
11601
+ security: [
11602
+ {
11603
+ ApiKeyAuth: []
11604
+ },
11605
+ {
11606
+ OAuthBearerAuth: []
11607
+ }
11608
+ ],
11609
+ responses: {
11610
+ "200": {
11611
+ description: "The workspace's accounts.",
11612
+ content: {
11613
+ "application/json": {
11614
+ schema: {
11615
+ type: "object",
11616
+ properties: {
11617
+ data: {
11618
+ type: "array",
11619
+ items: {
11620
+ $ref: "#/components/schemas/Account"
11621
+ }
11622
+ }
11623
+ }
11624
+ }
11625
+ }
11626
+ }
11627
+ },
11628
+ "401": {
11629
+ $ref: "#/components/responses/Unauthorized"
11630
+ }
11631
+ }
11632
+ },
11633
+ post: {
11634
+ operationId: "createAccount",
11635
+ summary: "Create an account",
11636
+ description: "Creates an account. Requires the `write` scope. 409 when a collection with that name exists.",
11637
+ tags: [
11638
+ "Documents"
11639
+ ],
11640
+ security: [
11641
+ {
11642
+ ApiKeyAuth: []
11643
+ },
11644
+ {
11645
+ OAuthBearerAuth: []
11646
+ }
11647
+ ],
11648
+ requestBody: {
11649
+ required: true,
11650
+ content: {
11651
+ "application/json": {
11652
+ schema: {
11653
+ type: "object",
11654
+ required: [
11655
+ "name"
11656
+ ],
11657
+ properties: {
11658
+ name: {
11659
+ type: "string",
11660
+ maxLength: 255,
11661
+ example: "Filu"
11662
+ },
11663
+ aliases: {
11664
+ type: "array",
11665
+ maxItems: 50,
11666
+ items: {
11667
+ type: "string",
11668
+ maxLength: 255
11669
+ },
11670
+ example: [
11671
+ "Filu Group GmbH"
11672
+ ]
11673
+ },
11674
+ description: {
11675
+ type: "string",
11676
+ maxLength: 2e3
11677
+ }
11678
+ }
11679
+ }
11680
+ }
11681
+ }
11682
+ },
11683
+ responses: {
11684
+ "201": {
11685
+ description: "Account created.",
11686
+ content: {
11687
+ "application/json": {
11688
+ schema: {
11689
+ $ref: "#/components/schemas/Account"
11690
+ }
11691
+ }
11692
+ }
11693
+ },
11694
+ "401": {
11695
+ $ref: "#/components/responses/Unauthorized"
11696
+ },
11697
+ "409": {
11698
+ description: "A collection with that name already exists."
11699
+ }
11700
+ }
11701
+ }
11702
+ },
11399
11703
  "/v1/account": {
11400
11704
  get: {
11401
11705
  operationId: "getAccount",
@@ -43119,6 +43423,41 @@ var openapi_default = {
43119
43423
  }
43120
43424
  },
43121
43425
  schemas: {
43426
+ Account: {
43427
+ type: "object",
43428
+ required: [
43429
+ "id",
43430
+ "name",
43431
+ "aliases"
43432
+ ],
43433
+ properties: {
43434
+ id: {
43435
+ type: "string",
43436
+ format: "uuid"
43437
+ },
43438
+ name: {
43439
+ type: "string",
43440
+ example: "Filu"
43441
+ },
43442
+ aliases: {
43443
+ type: "array",
43444
+ items: {
43445
+ type: "string"
43446
+ },
43447
+ example: [
43448
+ "Filu Group GmbH"
43449
+ ]
43450
+ },
43451
+ description: {
43452
+ type: "string",
43453
+ nullable: true
43454
+ },
43455
+ created_at: {
43456
+ type: "string",
43457
+ format: "date-time"
43458
+ }
43459
+ }
43460
+ },
43122
43461
  PipelineCancelResponse: {
43123
43462
  type: "object",
43124
43463
  required: [
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tailwind CSS preset for @talonic/docs consumers.
3
+ * Adds the Void design system color tokens and font families
4
+ * so doc components render correctly in any host app.
5
+ */
6
+ declare const voidDocsPreset: {
7
+ darkMode: "class";
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ 'void-bg': string;
12
+ 'void-bg-elevated': string;
13
+ 'void-surface': string;
14
+ 'void-surface-2': string;
15
+ 'void-surface-3': string;
16
+ 'void-border': string;
17
+ 'void-border-hover': string;
18
+ 'void-text-primary': string;
19
+ 'void-text-secondary': string;
20
+ 'void-text-muted': string;
21
+ 'void-text-tertiary': string;
22
+ 'void-accent': string;
23
+ 'void-accent-hover': string;
24
+ 'void-accent-dim': string;
25
+ 'void-accent-tint': string;
26
+ 'void-danger': string;
27
+ 'void-danger-solid': string;
28
+ 'void-divider': string;
29
+ 'void-warning': string;
30
+ 'void-warning-dim': string;
31
+ 'void-tier-1': string;
32
+ 'void-tier-2': string;
33
+ 'void-tier-3': string;
34
+ };
35
+ fontFamily: {
36
+ space: string[];
37
+ body: string[];
38
+ mono: string[];
39
+ };
40
+ };
41
+ };
42
+ plugins: never[];
43
+ };
44
+
45
+ export { voidDocsPreset as default };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tailwind CSS preset for @talonic/docs consumers.
3
+ * Adds the Void design system color tokens and font families
4
+ * so doc components render correctly in any host app.
5
+ */
6
+ declare const voidDocsPreset: {
7
+ darkMode: "class";
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ 'void-bg': string;
12
+ 'void-bg-elevated': string;
13
+ 'void-surface': string;
14
+ 'void-surface-2': string;
15
+ 'void-surface-3': string;
16
+ 'void-border': string;
17
+ 'void-border-hover': string;
18
+ 'void-text-primary': string;
19
+ 'void-text-secondary': string;
20
+ 'void-text-muted': string;
21
+ 'void-text-tertiary': string;
22
+ 'void-accent': string;
23
+ 'void-accent-hover': string;
24
+ 'void-accent-dim': string;
25
+ 'void-accent-tint': string;
26
+ 'void-danger': string;
27
+ 'void-danger-solid': string;
28
+ 'void-divider': string;
29
+ 'void-warning': string;
30
+ 'void-warning-dim': string;
31
+ 'void-tier-1': string;
32
+ 'void-tier-2': string;
33
+ 'void-tier-3': string;
34
+ };
35
+ fontFamily: {
36
+ space: string[];
37
+ body: string[];
38
+ mono: string[];
39
+ };
40
+ };
41
+ };
42
+ plugins: never[];
43
+ };
44
+
45
+ export { voidDocsPreset as default };
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",
@@ -1513,7 +1692,7 @@
1513
1692
  "post": {
1514
1693
  "operationId": "createUploadSession",
1515
1694
  "summary": "Create a browser-handoff upload session",
1516
- "description": "Creates a pending document row plus a short-lived upload token and\nreturns a browser `upload_url` for it. This is the first half of the\nbrowser-handoff upload pair used by the hosted MCP connector: an\nagent creates the session, the user opens `upload_url` in a browser\nand picks the file, and the browser posts it to\n`POST /v1/upload/{token}`.\n\n**Auth is asymmetric across the pair.** This route requires an\nOAuth 2.1 bearer token (the connector OAuth session) and REJECTS\n`tlnc_` API keys with `401`. The upload route is unauthenticated\nbecause the short-lived token IS the credential. The token expires\nafter 15 minutes by default and is single-use.\n\nThe created document is targeted at extraction only\n(`ingestion_target: extract`): once uploaded, call `POST /v1/extract`\nwith the returned `document_id`.\n",
1695
+ "description": "Creates a pending document row plus a short-lived upload token and\nreturns a browser `upload_url` for it. This is the first half of the\nbrowser-handoff upload pair used by the hosted MCP connector: an\nagent creates the session, the user opens `upload_url` in a browser\nand picks the file, and the browser posts it to\n`POST /v1/upload/{token}`.\n\n**Auth is asymmetric across the pair.** This route requires an\nOAuth 2.1 bearer token (the connector OAuth session) and REJECTS\n`tlnc_` API keys with `401`. The upload route is unauthenticated\nbecause the short-lived token IS the credential. The token expires\nafter 15 minutes by default and is single-use.\n\nBy default the document is targeted at extraction only\n(`ingestion_target: extract`): once uploaded, call `POST /v1/extract`\nwith the returned `document_id`. Pass `ingestion_target: ingest` to add\nthe file to the workspace instead: it is processed like an in-app upload\n(values, Field Registry, `/v1/ask`, `query_data`).\n",
1517
1696
  "tags": [
1518
1697
  "Documents"
1519
1698
  ],
@@ -1537,6 +1716,21 @@
1537
1716
  "maxLength": 512,
1538
1717
  "description": "Filename of the file the user will upload.",
1539
1718
  "example": "invoice-2026-04.pdf"
1719
+ },
1720
+ "account_id": {
1721
+ "type": "string",
1722
+ "maxLength": 255,
1723
+ "description": "Account (company) the document belongs to, by id, name or alias. See `GET /v1/accounts`.",
1724
+ "example": "Filu"
1725
+ },
1726
+ "ingestion_target": {
1727
+ "type": "string",
1728
+ "enum": [
1729
+ "extract",
1730
+ "ingest"
1731
+ ],
1732
+ "default": "extract",
1733
+ "description": "`extract`: text only, for a following `POST /v1/extract`. `ingest`: full processing into workspace data."
1540
1734
  }
1541
1735
  }
1542
1736
  }
@@ -11376,6 +11570,116 @@
11376
11570
  }
11377
11571
  }
11378
11572
  },
11573
+ "/v1/accounts": {
11574
+ "get": {
11575
+ "operationId": "listAccounts",
11576
+ "summary": "List accounts",
11577
+ "description": "The companies (portfolio companies, clients, entities) this workspace\nkeeps apart. Each document belongs to at most one account; uploads name\nit by id, name or alias, and `query_data` exposes it as `account`.\n",
11578
+ "tags": [
11579
+ "Documents"
11580
+ ],
11581
+ "security": [
11582
+ {
11583
+ "ApiKeyAuth": []
11584
+ },
11585
+ {
11586
+ "OAuthBearerAuth": []
11587
+ }
11588
+ ],
11589
+ "responses": {
11590
+ "200": {
11591
+ "description": "The workspace's accounts.",
11592
+ "content": {
11593
+ "application/json": {
11594
+ "schema": {
11595
+ "type": "object",
11596
+ "properties": {
11597
+ "data": {
11598
+ "type": "array",
11599
+ "items": {
11600
+ "$ref": "#/components/schemas/Account"
11601
+ }
11602
+ }
11603
+ }
11604
+ }
11605
+ }
11606
+ }
11607
+ },
11608
+ "401": {
11609
+ "$ref": "#/components/responses/Unauthorized"
11610
+ }
11611
+ }
11612
+ },
11613
+ "post": {
11614
+ "operationId": "createAccount",
11615
+ "summary": "Create an account",
11616
+ "description": "Creates an account. Requires the `write` scope. 409 when a collection with that name exists.",
11617
+ "tags": [
11618
+ "Documents"
11619
+ ],
11620
+ "security": [
11621
+ {
11622
+ "ApiKeyAuth": []
11623
+ },
11624
+ {
11625
+ "OAuthBearerAuth": []
11626
+ }
11627
+ ],
11628
+ "requestBody": {
11629
+ "required": true,
11630
+ "content": {
11631
+ "application/json": {
11632
+ "schema": {
11633
+ "type": "object",
11634
+ "required": [
11635
+ "name"
11636
+ ],
11637
+ "properties": {
11638
+ "name": {
11639
+ "type": "string",
11640
+ "maxLength": 255,
11641
+ "example": "Filu"
11642
+ },
11643
+ "aliases": {
11644
+ "type": "array",
11645
+ "maxItems": 50,
11646
+ "items": {
11647
+ "type": "string",
11648
+ "maxLength": 255
11649
+ },
11650
+ "example": [
11651
+ "Filu Group GmbH"
11652
+ ]
11653
+ },
11654
+ "description": {
11655
+ "type": "string",
11656
+ "maxLength": 2000
11657
+ }
11658
+ }
11659
+ }
11660
+ }
11661
+ }
11662
+ },
11663
+ "responses": {
11664
+ "201": {
11665
+ "description": "Account created.",
11666
+ "content": {
11667
+ "application/json": {
11668
+ "schema": {
11669
+ "$ref": "#/components/schemas/Account"
11670
+ }
11671
+ }
11672
+ }
11673
+ },
11674
+ "401": {
11675
+ "$ref": "#/components/responses/Unauthorized"
11676
+ },
11677
+ "409": {
11678
+ "description": "A collection with that name already exists."
11679
+ }
11680
+ }
11681
+ }
11682
+ },
11379
11683
  "/v1/account": {
11380
11684
  "get": {
11381
11685
  "operationId": "getAccount",
@@ -43099,6 +43403,41 @@
43099
43403
  }
43100
43404
  },
43101
43405
  "schemas": {
43406
+ "Account": {
43407
+ "type": "object",
43408
+ "required": [
43409
+ "id",
43410
+ "name",
43411
+ "aliases"
43412
+ ],
43413
+ "properties": {
43414
+ "id": {
43415
+ "type": "string",
43416
+ "format": "uuid"
43417
+ },
43418
+ "name": {
43419
+ "type": "string",
43420
+ "example": "Filu"
43421
+ },
43422
+ "aliases": {
43423
+ "type": "array",
43424
+ "items": {
43425
+ "type": "string"
43426
+ },
43427
+ "example": [
43428
+ "Filu Group GmbH"
43429
+ ]
43430
+ },
43431
+ "description": {
43432
+ "type": "string",
43433
+ "nullable": true
43434
+ },
43435
+ "created_at": {
43436
+ "type": "string",
43437
+ "format": "date-time"
43438
+ }
43439
+ }
43440
+ },
43102
43441
  "PipelineCancelResponse": {
43103
43442
  "type": "object",
43104
43443
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.68",
3
+ "version": "0.21.70",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,