@talonic/docs 0.21.66 → 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/content.js +248 -40
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +838 -10
- package/openapi.json +833 -10
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -105,6 +105,10 @@
|
|
|
105
105
|
"name": "DB Snapshots",
|
|
106
106
|
"description": "Periodic point-in-time captures of a connected database (or a folder of CSV exports) and the row-level deltas between consecutive captures: what was added, modified and removed, with before/after values and per-record history. Read-only — captures are scheduled from the app.\n\nTwo fields carry meaning that the counts alone cannot, and reading past them produces confident wrong answers. A delta's `status` is `partial` while the capture writing it is still running, so its counts are a floor (a partial delta commonly reads all-zero while hundreds of thousands of rows are in fact changing) — follow `last_complete_delta_id` for a final number. And within a delta, a table that was examined and found clean is ABSENT from `tables`, whereas a table present with `examined: false` was deferred by the scan cadence and not looked at at all.\n"
|
|
107
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"name": "Aggregate",
|
|
110
|
+
"description": "Counts and statistics about your workspace in one request: documents received and failed, pipeline errors, app decisions, deliveries, model calls, what processing cost, and the work of the standard apps. Numbers only, never document contents. Start with `GET /v1/aggregate/catalog`, which lists every dataset and field you can ask for."
|
|
111
|
+
},
|
|
108
112
|
{
|
|
109
113
|
"name": "Usage",
|
|
110
114
|
"description": "Aggregate, per-document, per-pipeline, and per-run API usage accounting (tokens, costs, operation types). Model and cost fields on the aggregate and per-document routes are redacted for organizations without the \"Cost control endpoints\" approval; the pipeline and run routes are hidden entirely (404) for such organizations and additionally require an API key carrying the `usage` scope."
|
|
@@ -1163,7 +1167,7 @@
|
|
|
1163
1167
|
"get": {
|
|
1164
1168
|
"operationId": "getDocumentMarkdown",
|
|
1165
1169
|
"summary": "Get the OCR-converted markdown of a document",
|
|
1166
|
-
"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",
|
|
1167
1171
|
"tags": [
|
|
1168
1172
|
"Documents"
|
|
1169
1173
|
],
|
|
@@ -1200,6 +1204,50 @@
|
|
|
1200
1204
|
}
|
|
1201
1205
|
}
|
|
1202
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
|
+
},
|
|
1203
1251
|
"401": {
|
|
1204
1252
|
"$ref": "#/components/responses/Unauthorized"
|
|
1205
1253
|
},
|
|
@@ -7778,6 +7826,593 @@
|
|
|
7778
7826
|
}
|
|
7779
7827
|
}
|
|
7780
7828
|
},
|
|
7829
|
+
"/v1/aggregate": {
|
|
7830
|
+
"post": {
|
|
7831
|
+
"operationId": "aggregate",
|
|
7832
|
+
"summary": "Several workspace metrics in one request",
|
|
7833
|
+
"description": "Ask several questions about your workspace in one request and get\nnumbers back, never rows. For example: how many documents arrived in\nthe last 12 hours, how many failed, and what a document cost on\naverage.\n\n**The window.** `from` and `to` are ISO-8601 timestamps with an offset\n(`2026-11-05T12:00:00Z`). The window includes `from` and excludes\n`to`, and is at most 31 days long.\n\n**The queries.** Up to 20, each with an `id` of your choice (the\nanswer is keyed by it), a `dataset` and a `measure`:\n- `count`: what the dataset counts (its description says whether\n that is rows or documents); `rows`: the number of rows.\n- `count_distinct`, `sum`, `avg`, `min`, `max`, `median`, `p1`–`p99`:\n over the field named in `of` (a number field, except for\n `count_distinct`).\n- A list of measures (`[\"avg\", \"median\"]`) answers `values` plus `n`,\n the number of rows they were computed over.\n\n`where` filters rows (`{ \"field\": \"failed\", \"op\": \"eq\", \"value\": true }`);\nwhich operators a field takes depends on its type. `group_by` splits\nthe answer by up to three fields, or by `hour` / `day` (UTC); it\nreturns at most 200 groups (largest first, or in time order when\ngrouped by `hour` / `day`), and `groups_total` says how many there\nwere. `sum`, `avg` and the other computed measures are `null` when\nthere were no rows; counts are 0.\n\n**Which datasets and fields exist:** `GET /v1/aggregate/catalog`\nlists every dataset with what one row is, its fields (type, whether\nit can be grouped, which operators it takes) and its default\nfilters. Most datasets count things *created* in the window and\nreport their status *now* (a document received yesterday that\nfailed today counts as failed). Accounts Payable bills and the Money\nFound ledger are not datasets; read them from `/v1/ap/overview` and\n`/v1/money-found/levers`.\n\n**Narrowing to documents.** `scope` restricts every query to some\ndocuments: `document_ids`, `tags` (`any` / `all`), `system_tags`,\n`source_connection_ids`, `document_types` (ids or names),\n`client_batch_ids`, `roots_only`, `attachments_only`. A dataset\nthat is not about documents refuses a scope (400). Rows tied to a\ndocument the key's owner may not see are left out; rows tied to no\ndocument (a model call outside any document, a check of a document\nset) still count unless a scope is set.\n\n**Limits.** One request runs at a time per workspace (per API process\nwhere the deployment does not share the limiter; the catalog's\n`limits.concurrency.per` says which). A second one gets 429 with\n`Retry-After: 5`: retry after that many seconds. The daily rate limit\nalso answers 429; it sends `X-RateLimit-Reset` instead. Each\nstatement may run `limits.statement_timeout_ms`; a request runs one\nstatement per dataset (plus one per grouped query), so a whole\nrequest can take longer. A statement that runs too long stops the\nrequest with 422 `aggregate_timeout`, naming the dataset; ask for a\nshorter window or fewer groups. Cost\nfields and the `model` dimension answer 403 `cost_not_visible` when\ncost visibility is off for your organization. A wrong name answers\n400 `invalid_aggregate` listing the names allowed there.\n",
|
|
7834
|
+
"tags": [
|
|
7835
|
+
"Aggregate"
|
|
7836
|
+
],
|
|
7837
|
+
"requestBody": {
|
|
7838
|
+
"required": true,
|
|
7839
|
+
"content": {
|
|
7840
|
+
"application/json": {
|
|
7841
|
+
"schema": {
|
|
7842
|
+
"type": "object",
|
|
7843
|
+
"required": [
|
|
7844
|
+
"from",
|
|
7845
|
+
"to",
|
|
7846
|
+
"queries"
|
|
7847
|
+
],
|
|
7848
|
+
"properties": {
|
|
7849
|
+
"from": {
|
|
7850
|
+
"type": "string",
|
|
7851
|
+
"format": "date-time"
|
|
7852
|
+
},
|
|
7853
|
+
"to": {
|
|
7854
|
+
"type": "string",
|
|
7855
|
+
"format": "date-time",
|
|
7856
|
+
"description": "Exclusive."
|
|
7857
|
+
},
|
|
7858
|
+
"scope": {
|
|
7859
|
+
"type": "object",
|
|
7860
|
+
"properties": {
|
|
7861
|
+
"document_ids": {
|
|
7862
|
+
"type": "array",
|
|
7863
|
+
"items": {
|
|
7864
|
+
"type": "string",
|
|
7865
|
+
"format": "uuid"
|
|
7866
|
+
},
|
|
7867
|
+
"maxItems": 1000
|
|
7868
|
+
},
|
|
7869
|
+
"tags": {
|
|
7870
|
+
"type": "object",
|
|
7871
|
+
"properties": {
|
|
7872
|
+
"any": {
|
|
7873
|
+
"type": "array",
|
|
7874
|
+
"items": {
|
|
7875
|
+
"type": "string"
|
|
7876
|
+
}
|
|
7877
|
+
},
|
|
7878
|
+
"all": {
|
|
7879
|
+
"type": "array",
|
|
7880
|
+
"items": {
|
|
7881
|
+
"type": "string"
|
|
7882
|
+
}
|
|
7883
|
+
}
|
|
7884
|
+
}
|
|
7885
|
+
},
|
|
7886
|
+
"system_tags": {
|
|
7887
|
+
"type": "object",
|
|
7888
|
+
"properties": {
|
|
7889
|
+
"any": {
|
|
7890
|
+
"type": "array",
|
|
7891
|
+
"items": {
|
|
7892
|
+
"type": "string"
|
|
7893
|
+
}
|
|
7894
|
+
},
|
|
7895
|
+
"all": {
|
|
7896
|
+
"type": "array",
|
|
7897
|
+
"items": {
|
|
7898
|
+
"type": "string"
|
|
7899
|
+
}
|
|
7900
|
+
}
|
|
7901
|
+
}
|
|
7902
|
+
},
|
|
7903
|
+
"source_connection_ids": {
|
|
7904
|
+
"type": "array",
|
|
7905
|
+
"items": {
|
|
7906
|
+
"type": "string",
|
|
7907
|
+
"format": "uuid"
|
|
7908
|
+
}
|
|
7909
|
+
},
|
|
7910
|
+
"document_types": {
|
|
7911
|
+
"type": "array",
|
|
7912
|
+
"items": {
|
|
7913
|
+
"type": "string"
|
|
7914
|
+
},
|
|
7915
|
+
"description": "Document type ids or exact names."
|
|
7916
|
+
},
|
|
7917
|
+
"client_batch_ids": {
|
|
7918
|
+
"type": "array",
|
|
7919
|
+
"items": {
|
|
7920
|
+
"type": "string"
|
|
7921
|
+
}
|
|
7922
|
+
},
|
|
7923
|
+
"roots_only": {
|
|
7924
|
+
"type": "boolean"
|
|
7925
|
+
},
|
|
7926
|
+
"attachments_only": {
|
|
7927
|
+
"type": "boolean"
|
|
7928
|
+
}
|
|
7929
|
+
}
|
|
7930
|
+
},
|
|
7931
|
+
"queries": {
|
|
7932
|
+
"type": "array",
|
|
7933
|
+
"minItems": 1,
|
|
7934
|
+
"maxItems": 20,
|
|
7935
|
+
"items": {
|
|
7936
|
+
"type": "object",
|
|
7937
|
+
"required": [
|
|
7938
|
+
"id",
|
|
7939
|
+
"dataset",
|
|
7940
|
+
"measure"
|
|
7941
|
+
],
|
|
7942
|
+
"properties": {
|
|
7943
|
+
"id": {
|
|
7944
|
+
"type": "string",
|
|
7945
|
+
"pattern": "^[a-z][a-z0-9_]{0,63}$"
|
|
7946
|
+
},
|
|
7947
|
+
"dataset": {
|
|
7948
|
+
"type": "string",
|
|
7949
|
+
"enum": [
|
|
7950
|
+
"documents",
|
|
7951
|
+
"document_cost",
|
|
7952
|
+
"pipeline_documents",
|
|
7953
|
+
"app_verdicts",
|
|
7954
|
+
"app_runs",
|
|
7955
|
+
"deliveries",
|
|
7956
|
+
"llm_calls",
|
|
7957
|
+
"compliance_evaluations",
|
|
7958
|
+
"money_found_reviews",
|
|
7959
|
+
"contract_check_decisions",
|
|
7960
|
+
"doc_gen_jobs",
|
|
7961
|
+
"doc_gen_documents",
|
|
7962
|
+
"price_invoice_checks"
|
|
7963
|
+
]
|
|
7964
|
+
},
|
|
7965
|
+
"measure": {
|
|
7966
|
+
"oneOf": [
|
|
7967
|
+
{
|
|
7968
|
+
"type": "string"
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"type": "array",
|
|
7972
|
+
"items": {
|
|
7973
|
+
"type": "string"
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
]
|
|
7977
|
+
},
|
|
7978
|
+
"of": {
|
|
7979
|
+
"type": "string"
|
|
7980
|
+
},
|
|
7981
|
+
"where": {
|
|
7982
|
+
"type": "array",
|
|
7983
|
+
"items": {
|
|
7984
|
+
"type": "object",
|
|
7985
|
+
"required": [
|
|
7986
|
+
"field",
|
|
7987
|
+
"op"
|
|
7988
|
+
],
|
|
7989
|
+
"properties": {
|
|
7990
|
+
"field": {
|
|
7991
|
+
"type": "string"
|
|
7992
|
+
},
|
|
7993
|
+
"op": {
|
|
7994
|
+
"type": "string",
|
|
7995
|
+
"enum": [
|
|
7996
|
+
"eq",
|
|
7997
|
+
"neq",
|
|
7998
|
+
"in",
|
|
7999
|
+
"not_in",
|
|
8000
|
+
"is_null",
|
|
8001
|
+
"not_null",
|
|
8002
|
+
"gt",
|
|
8003
|
+
"gte",
|
|
8004
|
+
"lt",
|
|
8005
|
+
"lte",
|
|
8006
|
+
"contains_any",
|
|
8007
|
+
"contains_all"
|
|
8008
|
+
]
|
|
8009
|
+
},
|
|
8010
|
+
"value": {}
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
},
|
|
8014
|
+
"group_by": {
|
|
8015
|
+
"type": "array",
|
|
8016
|
+
"items": {
|
|
8017
|
+
"type": "string"
|
|
8018
|
+
},
|
|
8019
|
+
"maxItems": 3
|
|
8020
|
+
}
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
}
|
|
8024
|
+
}
|
|
8025
|
+
},
|
|
8026
|
+
"example": {
|
|
8027
|
+
"from": "2026-11-05T12:00:00Z",
|
|
8028
|
+
"to": "2026-11-06T00:00:00Z",
|
|
8029
|
+
"queries": [
|
|
8030
|
+
{
|
|
8031
|
+
"id": "received",
|
|
8032
|
+
"dataset": "documents",
|
|
8033
|
+
"measure": "count",
|
|
8034
|
+
"where": [
|
|
8035
|
+
{
|
|
8036
|
+
"field": "duplicate",
|
|
8037
|
+
"op": "eq",
|
|
8038
|
+
"value": false
|
|
8039
|
+
}
|
|
8040
|
+
]
|
|
8041
|
+
},
|
|
8042
|
+
{
|
|
8043
|
+
"id": "failed",
|
|
8044
|
+
"dataset": "documents",
|
|
8045
|
+
"measure": "count",
|
|
8046
|
+
"where": [
|
|
8047
|
+
{
|
|
8048
|
+
"field": "failed",
|
|
8049
|
+
"op": "eq",
|
|
8050
|
+
"value": true
|
|
8051
|
+
}
|
|
8052
|
+
]
|
|
8053
|
+
},
|
|
8054
|
+
{
|
|
8055
|
+
"id": "by_type",
|
|
8056
|
+
"dataset": "documents",
|
|
8057
|
+
"measure": "count",
|
|
8058
|
+
"group_by": [
|
|
8059
|
+
"document_type"
|
|
8060
|
+
]
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
"id": "cost",
|
|
8064
|
+
"dataset": "document_cost",
|
|
8065
|
+
"measure": [
|
|
8066
|
+
"avg",
|
|
8067
|
+
"median"
|
|
8068
|
+
],
|
|
8069
|
+
"of": "cost_usd"
|
|
8070
|
+
}
|
|
8071
|
+
]
|
|
8072
|
+
}
|
|
8073
|
+
}
|
|
8074
|
+
}
|
|
8075
|
+
},
|
|
8076
|
+
"responses": {
|
|
8077
|
+
"200": {
|
|
8078
|
+
"description": "One result per query id.",
|
|
8079
|
+
"content": {
|
|
8080
|
+
"application/json": {
|
|
8081
|
+
"schema": {
|
|
8082
|
+
"type": "object",
|
|
8083
|
+
"properties": {
|
|
8084
|
+
"window": {
|
|
8085
|
+
"type": "object",
|
|
8086
|
+
"properties": {
|
|
8087
|
+
"from": {
|
|
8088
|
+
"type": "string",
|
|
8089
|
+
"format": "date-time"
|
|
8090
|
+
},
|
|
8091
|
+
"to": {
|
|
8092
|
+
"type": "string",
|
|
8093
|
+
"format": "date-time"
|
|
8094
|
+
}
|
|
8095
|
+
}
|
|
8096
|
+
},
|
|
8097
|
+
"as_of": {
|
|
8098
|
+
"type": "string",
|
|
8099
|
+
"format": "date-time"
|
|
8100
|
+
},
|
|
8101
|
+
"results": {
|
|
8102
|
+
"type": "object",
|
|
8103
|
+
"additionalProperties": {
|
|
8104
|
+
"type": "object",
|
|
8105
|
+
"properties": {
|
|
8106
|
+
"dataset": {
|
|
8107
|
+
"type": "string"
|
|
8108
|
+
},
|
|
8109
|
+
"kind": {
|
|
8110
|
+
"type": "string",
|
|
8111
|
+
"enum": [
|
|
8112
|
+
"event",
|
|
8113
|
+
"entity"
|
|
8114
|
+
]
|
|
8115
|
+
},
|
|
8116
|
+
"value": {
|
|
8117
|
+
"type": "number",
|
|
8118
|
+
"nullable": true
|
|
8119
|
+
},
|
|
8120
|
+
"values": {
|
|
8121
|
+
"type": "object",
|
|
8122
|
+
"additionalProperties": {
|
|
8123
|
+
"type": "number",
|
|
8124
|
+
"nullable": true
|
|
8125
|
+
}
|
|
8126
|
+
},
|
|
8127
|
+
"groups": {
|
|
8128
|
+
"type": "array",
|
|
8129
|
+
"items": {
|
|
8130
|
+
"type": "object",
|
|
8131
|
+
"properties": {
|
|
8132
|
+
"key": {
|
|
8133
|
+
"type": "object",
|
|
8134
|
+
"description": "Dimension values; null is a row without one."
|
|
8135
|
+
},
|
|
8136
|
+
"value": {
|
|
8137
|
+
"type": "number",
|
|
8138
|
+
"nullable": true
|
|
8139
|
+
},
|
|
8140
|
+
"values": {
|
|
8141
|
+
"type": "object",
|
|
8142
|
+
"additionalProperties": {
|
|
8143
|
+
"type": "number",
|
|
8144
|
+
"nullable": true
|
|
8145
|
+
}
|
|
8146
|
+
}
|
|
8147
|
+
}
|
|
8148
|
+
}
|
|
8149
|
+
},
|
|
8150
|
+
"groups_total": {
|
|
8151
|
+
"type": "integer",
|
|
8152
|
+
"description": "Groups that existed; more than groups.length when the 200-group cap applied."
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
}
|
|
8157
|
+
}
|
|
8158
|
+
},
|
|
8159
|
+
"example": {
|
|
8160
|
+
"window": {
|
|
8161
|
+
"from": "2026-11-05T12:00:00.000Z",
|
|
8162
|
+
"to": "2026-11-06T00:00:00.000Z"
|
|
8163
|
+
},
|
|
8164
|
+
"as_of": "2026-11-06T00:00:03.120Z",
|
|
8165
|
+
"results": {
|
|
8166
|
+
"received": {
|
|
8167
|
+
"dataset": "documents",
|
|
8168
|
+
"kind": "entity",
|
|
8169
|
+
"value": 412
|
|
8170
|
+
},
|
|
8171
|
+
"failed": {
|
|
8172
|
+
"dataset": "documents",
|
|
8173
|
+
"kind": "entity",
|
|
8174
|
+
"value": 3
|
|
8175
|
+
},
|
|
8176
|
+
"by_type": {
|
|
8177
|
+
"dataset": "documents",
|
|
8178
|
+
"kind": "entity",
|
|
8179
|
+
"groups": [
|
|
8180
|
+
{
|
|
8181
|
+
"key": {
|
|
8182
|
+
"document_type": "Invoice"
|
|
8183
|
+
},
|
|
8184
|
+
"value": 301
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
"key": {
|
|
8188
|
+
"document_type": "Delivery Note"
|
|
8189
|
+
},
|
|
8190
|
+
"value": 97
|
|
8191
|
+
},
|
|
8192
|
+
{
|
|
8193
|
+
"key": {
|
|
8194
|
+
"document_type": null
|
|
8195
|
+
},
|
|
8196
|
+
"value": 14
|
|
8197
|
+
}
|
|
8198
|
+
],
|
|
8199
|
+
"groups_total": 3
|
|
8200
|
+
},
|
|
8201
|
+
"cost": {
|
|
8202
|
+
"dataset": "document_cost",
|
|
8203
|
+
"kind": "entity",
|
|
8204
|
+
"values": {
|
|
8205
|
+
"avg": 0.0108,
|
|
8206
|
+
"median": 0.0104,
|
|
8207
|
+
"n": 412
|
|
8208
|
+
}
|
|
8209
|
+
}
|
|
8210
|
+
}
|
|
8211
|
+
}
|
|
8212
|
+
}
|
|
8213
|
+
}
|
|
8214
|
+
},
|
|
8215
|
+
"400": {
|
|
8216
|
+
"$ref": "#/components/responses/BadRequest"
|
|
8217
|
+
},
|
|
8218
|
+
"401": {
|
|
8219
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
8220
|
+
},
|
|
8221
|
+
"403": {
|
|
8222
|
+
"$ref": "#/components/responses/Forbidden"
|
|
8223
|
+
},
|
|
8224
|
+
"422": {
|
|
8225
|
+
"description": "A statement ran past the timeout (`aggregate_timeout`); `details.dataset` names it."
|
|
8226
|
+
},
|
|
8227
|
+
"429": {
|
|
8228
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
8229
|
+
}
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8232
|
+
},
|
|
8233
|
+
"/v1/aggregate/catalog": {
|
|
8234
|
+
"get": {
|
|
8235
|
+
"operationId": "getAggregateCatalog",
|
|
8236
|
+
"summary": "What you can ask /v1/aggregate",
|
|
8237
|
+
"description": "Every dataset, field, measure and limit `POST /v1/aggregate` accepts,\nfrom the same definitions it checks requests against. Each dataset\nsays what one row is, whether a document `scope` applies, and the\nfilters it applies by default; each field its type, whether it can\nbe grouped, which `where` operators it takes and whether it needs\ncost visibility (`cost`). `cost_visible` says whether this workspace\nmay read those. Reads no workspace data.\n",
|
|
8238
|
+
"tags": [
|
|
8239
|
+
"Aggregate"
|
|
8240
|
+
],
|
|
8241
|
+
"responses": {
|
|
8242
|
+
"200": {
|
|
8243
|
+
"description": "The catalog.",
|
|
8244
|
+
"content": {
|
|
8245
|
+
"application/json": {
|
|
8246
|
+
"schema": {
|
|
8247
|
+
"type": "object",
|
|
8248
|
+
"properties": {
|
|
8249
|
+
"datasets": {
|
|
8250
|
+
"type": "array",
|
|
8251
|
+
"items": {
|
|
8252
|
+
"type": "object",
|
|
8253
|
+
"properties": {
|
|
8254
|
+
"name": {
|
|
8255
|
+
"type": "string"
|
|
8256
|
+
},
|
|
8257
|
+
"description": {
|
|
8258
|
+
"type": "string"
|
|
8259
|
+
},
|
|
8260
|
+
"kind": {
|
|
8261
|
+
"type": "string",
|
|
8262
|
+
"enum": [
|
|
8263
|
+
"entity",
|
|
8264
|
+
"event"
|
|
8265
|
+
],
|
|
8266
|
+
"description": "`entity`: created in the window, status now. `event`: written in the window."
|
|
8267
|
+
},
|
|
8268
|
+
"document_scope": {
|
|
8269
|
+
"type": "boolean"
|
|
8270
|
+
},
|
|
8271
|
+
"defaults": {
|
|
8272
|
+
"type": "array",
|
|
8273
|
+
"items": {
|
|
8274
|
+
"type": "object",
|
|
8275
|
+
"properties": {
|
|
8276
|
+
"field": {
|
|
8277
|
+
"type": "string"
|
|
8278
|
+
},
|
|
8279
|
+
"op": {
|
|
8280
|
+
"type": "string"
|
|
8281
|
+
},
|
|
8282
|
+
"value": {}
|
|
8283
|
+
}
|
|
8284
|
+
}
|
|
8285
|
+
},
|
|
8286
|
+
"fields": {
|
|
8287
|
+
"type": "array",
|
|
8288
|
+
"items": {
|
|
8289
|
+
"type": "object",
|
|
8290
|
+
"properties": {
|
|
8291
|
+
"name": {
|
|
8292
|
+
"type": "string"
|
|
8293
|
+
},
|
|
8294
|
+
"description": {
|
|
8295
|
+
"type": "string"
|
|
8296
|
+
},
|
|
8297
|
+
"type": {
|
|
8298
|
+
"type": "string",
|
|
8299
|
+
"enum": [
|
|
8300
|
+
"text",
|
|
8301
|
+
"uuid",
|
|
8302
|
+
"bool",
|
|
8303
|
+
"number",
|
|
8304
|
+
"text[]"
|
|
8305
|
+
]
|
|
8306
|
+
},
|
|
8307
|
+
"groupable": {
|
|
8308
|
+
"type": "boolean"
|
|
8309
|
+
},
|
|
8310
|
+
"cost": {
|
|
8311
|
+
"type": "boolean"
|
|
8312
|
+
},
|
|
8313
|
+
"ops": {
|
|
8314
|
+
"type": "array",
|
|
8315
|
+
"items": {
|
|
8316
|
+
"type": "string"
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8319
|
+
}
|
|
8320
|
+
}
|
|
8321
|
+
}
|
|
8322
|
+
}
|
|
8323
|
+
}
|
|
8324
|
+
},
|
|
8325
|
+
"measures": {
|
|
8326
|
+
"type": "array",
|
|
8327
|
+
"items": {
|
|
8328
|
+
"type": "object",
|
|
8329
|
+
"properties": {
|
|
8330
|
+
"name": {
|
|
8331
|
+
"type": "string"
|
|
8332
|
+
},
|
|
8333
|
+
"description": {
|
|
8334
|
+
"type": "string"
|
|
8335
|
+
},
|
|
8336
|
+
"needs_of": {
|
|
8337
|
+
"type": "boolean"
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
}
|
|
8341
|
+
},
|
|
8342
|
+
"group_by": {
|
|
8343
|
+
"type": "object",
|
|
8344
|
+
"properties": {
|
|
8345
|
+
"time": {
|
|
8346
|
+
"type": "array",
|
|
8347
|
+
"items": {
|
|
8348
|
+
"type": "string"
|
|
8349
|
+
}
|
|
8350
|
+
},
|
|
8351
|
+
"max": {
|
|
8352
|
+
"type": "integer"
|
|
8353
|
+
},
|
|
8354
|
+
"max_buckets": {
|
|
8355
|
+
"type": "integer"
|
|
8356
|
+
}
|
|
8357
|
+
}
|
|
8358
|
+
},
|
|
8359
|
+
"scope_keys": {
|
|
8360
|
+
"type": "array",
|
|
8361
|
+
"items": {
|
|
8362
|
+
"type": "string"
|
|
8363
|
+
}
|
|
8364
|
+
},
|
|
8365
|
+
"limits": {
|
|
8366
|
+
"type": "object",
|
|
8367
|
+
"properties": {
|
|
8368
|
+
"max_window_days": {
|
|
8369
|
+
"type": "integer"
|
|
8370
|
+
},
|
|
8371
|
+
"max_queries": {
|
|
8372
|
+
"type": "integer"
|
|
8373
|
+
},
|
|
8374
|
+
"max_list_values": {
|
|
8375
|
+
"type": "integer"
|
|
8376
|
+
},
|
|
8377
|
+
"statement_timeout_ms": {
|
|
8378
|
+
"type": "integer",
|
|
8379
|
+
"description": "How long one statement may run; a request runs one per dataset plus one per grouped query."
|
|
8380
|
+
},
|
|
8381
|
+
"concurrency": {
|
|
8382
|
+
"type": "object",
|
|
8383
|
+
"properties": {
|
|
8384
|
+
"requests": {
|
|
8385
|
+
"type": "integer"
|
|
8386
|
+
},
|
|
8387
|
+
"per": {
|
|
8388
|
+
"type": "string",
|
|
8389
|
+
"enum": [
|
|
8390
|
+
"workspace",
|
|
8391
|
+
"api_process"
|
|
8392
|
+
],
|
|
8393
|
+
"description": "`api_process` where the deployment does not share the limiter across API processes."
|
|
8394
|
+
}
|
|
8395
|
+
}
|
|
8396
|
+
}
|
|
8397
|
+
}
|
|
8398
|
+
},
|
|
8399
|
+
"cost_visible": {
|
|
8400
|
+
"type": "boolean"
|
|
8401
|
+
}
|
|
8402
|
+
}
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
}
|
|
8406
|
+
},
|
|
8407
|
+
"401": {
|
|
8408
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
8409
|
+
},
|
|
8410
|
+
"429": {
|
|
8411
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
}
|
|
8415
|
+
},
|
|
7781
8416
|
"/v1/usage/documents/{id}": {
|
|
7782
8417
|
"get": {
|
|
7783
8418
|
"operationId": "getDocumentUsage",
|
|
@@ -11440,7 +12075,7 @@
|
|
|
11440
12075
|
"get": {
|
|
11441
12076
|
"operationId": "getCreditsUsage",
|
|
11442
12077
|
"summary": "Get usage statistics",
|
|
11443
|
-
"description": "Returns aggregated API usage stats grouped by operation type and model over the given period.",
|
|
12078
|
+
"description": "Returns aggregated API usage stats grouped by operation type and model over the given period. For organizations without the \"Cost control endpoints\" approval, `model` and `total_cost_usd` are omitted, rows are grouped by operation type only and ordered by `call_count`, and the response carries `\"cost_fields\": \"redacted\"`. The same gate as `GET /v1/usage`.",
|
|
11444
12079
|
"tags": [
|
|
11445
12080
|
"Credits"
|
|
11446
12081
|
],
|
|
@@ -11506,6 +12141,13 @@
|
|
|
11506
12141
|
"period_days": {
|
|
11507
12142
|
"type": "integer",
|
|
11508
12143
|
"example": 30
|
|
12144
|
+
},
|
|
12145
|
+
"cost_fields": {
|
|
12146
|
+
"type": "string",
|
|
12147
|
+
"enum": [
|
|
12148
|
+
"redacted"
|
|
12149
|
+
],
|
|
12150
|
+
"description": "Present only when model and cost fields are redacted."
|
|
11509
12151
|
}
|
|
11510
12152
|
}
|
|
11511
12153
|
}
|
|
@@ -11525,7 +12167,7 @@
|
|
|
11525
12167
|
"get": {
|
|
11526
12168
|
"operationId": "getCreditsUsageDaily",
|
|
11527
12169
|
"summary": "Get daily usage breakdown",
|
|
11528
|
-
"description": "Returns per-day API usage for the specified period (default last 30 days) as a JSON array.",
|
|
12170
|
+
"description": "Returns per-day API usage for the specified period (default last 30 days) as a JSON array. For organizations without the \"Cost control endpoints\" approval, `cost_usd` is omitted from every entry (the array carries no `cost_fields` marker). The same gate as `GET /v1/usage`.",
|
|
11529
12171
|
"tags": [
|
|
11530
12172
|
"Credits"
|
|
11531
12173
|
],
|
|
@@ -11591,7 +12233,7 @@
|
|
|
11591
12233
|
"get": {
|
|
11592
12234
|
"operationId": "getCreditsUsageLog",
|
|
11593
12235
|
"summary": "Get credit usage log",
|
|
11594
|
-
"description": "Returns a detailed per-request usage log with model, tokens, and cost, most recent first, with page/limit pagination.",
|
|
12236
|
+
"description": "Returns a detailed per-request usage log with model, tokens, and cost, most recent first, with page/limit pagination. For organizations without the \"Cost control endpoints\" approval, `model` and `cost_estimate_usd` are omitted from every item and the response carries `\"cost_fields\": \"redacted\"`. The same gate as `GET /v1/usage`.",
|
|
11595
12237
|
"tags": [
|
|
11596
12238
|
"Credits"
|
|
11597
12239
|
],
|
|
@@ -11691,6 +12333,13 @@
|
|
|
11691
12333
|
},
|
|
11692
12334
|
"limit": {
|
|
11693
12335
|
"type": "integer"
|
|
12336
|
+
},
|
|
12337
|
+
"cost_fields": {
|
|
12338
|
+
"type": "string",
|
|
12339
|
+
"enum": [
|
|
12340
|
+
"redacted"
|
|
12341
|
+
],
|
|
12342
|
+
"description": "Present only when model and cost fields are redacted."
|
|
11694
12343
|
}
|
|
11695
12344
|
}
|
|
11696
12345
|
}
|
|
@@ -32255,7 +32904,7 @@
|
|
|
32255
32904
|
"get": {
|
|
32256
32905
|
"operationId": "listContracts",
|
|
32257
32906
|
"summary": "The contract register, filtered",
|
|
32258
|
-
"description": "Every contract of the workspace with its status, dates, annual value, direction (sell, buy or internal, derived on read from the parties the documents name against the workspace's own company names), document count, next open key date, open process summary and the Price Baseline and Money Found links.
|
|
32907
|
+
"description": "Every contract of the workspace with its status, dates, annual value, direction (sell, buy or internal, derived on read from the parties the documents name against the workspace's own company names), document count, next open key date, open process summary and the Price Baseline and Money Found links. Without `page`, `limit` or `offset` the whole register is returned in one array, ordered by counterparty, then contract key. With any of them the answer is one page of one view, with `total`, `page` and `limit`.",
|
|
32259
32908
|
"tags": [
|
|
32260
32909
|
"Contracts"
|
|
32261
32910
|
],
|
|
@@ -32290,11 +32939,86 @@
|
|
|
32290
32939
|
"type": "string"
|
|
32291
32940
|
},
|
|
32292
32941
|
"description": "Exact contract key."
|
|
32942
|
+
},
|
|
32943
|
+
{
|
|
32944
|
+
"name": "view",
|
|
32945
|
+
"in": "query",
|
|
32946
|
+
"schema": {
|
|
32947
|
+
"type": "string"
|
|
32948
|
+
},
|
|
32949
|
+
"description": "Paged only: one register view (all, active, notice_soon, customer_exit, auto_renewal, open_ended, ended, review, money). An unknown view is a 400."
|
|
32950
|
+
},
|
|
32951
|
+
{
|
|
32952
|
+
"name": "sort",
|
|
32953
|
+
"in": "query",
|
|
32954
|
+
"schema": {
|
|
32955
|
+
"type": "string"
|
|
32956
|
+
},
|
|
32957
|
+
"description": "Paged only: contract, counterparty, status, ends, next, value or money. An unknown sort is a 400."
|
|
32958
|
+
},
|
|
32959
|
+
{
|
|
32960
|
+
"name": "dir",
|
|
32961
|
+
"in": "query",
|
|
32962
|
+
"schema": {
|
|
32963
|
+
"type": "string",
|
|
32964
|
+
"enum": [
|
|
32965
|
+
"asc",
|
|
32966
|
+
"desc"
|
|
32967
|
+
]
|
|
32968
|
+
}
|
|
32969
|
+
},
|
|
32970
|
+
{
|
|
32971
|
+
"name": "due",
|
|
32972
|
+
"in": "query",
|
|
32973
|
+
"schema": {
|
|
32974
|
+
"type": "string",
|
|
32975
|
+
"format": "date"
|
|
32976
|
+
},
|
|
32977
|
+
"description": "Paged only: contracts whose exit falls in the week starting on this calendar day. Not a real day is a 400."
|
|
32978
|
+
},
|
|
32979
|
+
{
|
|
32980
|
+
"name": "page",
|
|
32981
|
+
"in": "query",
|
|
32982
|
+
"schema": {
|
|
32983
|
+
"type": "integer",
|
|
32984
|
+
"minimum": 1
|
|
32985
|
+
},
|
|
32986
|
+
"description": "The page to return (1-based)."
|
|
32987
|
+
},
|
|
32988
|
+
{
|
|
32989
|
+
"name": "limit",
|
|
32990
|
+
"in": "query",
|
|
32991
|
+
"schema": {
|
|
32992
|
+
"type": "integer",
|
|
32993
|
+
"minimum": 1
|
|
32994
|
+
},
|
|
32995
|
+
"description": "Rows per page; capped at the configured most (500 by default)."
|
|
32996
|
+
},
|
|
32997
|
+
{
|
|
32998
|
+
"name": "offset",
|
|
32999
|
+
"in": "query",
|
|
33000
|
+
"schema": {
|
|
33001
|
+
"type": "integer",
|
|
33002
|
+
"minimum": 0
|
|
33003
|
+
},
|
|
33004
|
+
"description": "The first row of the page (0-based); wins over `page`. Ask from the rows already held so a row that moved meanwhile is not skipped."
|
|
33005
|
+
},
|
|
33006
|
+
{
|
|
33007
|
+
"name": "issues",
|
|
33008
|
+
"in": "query",
|
|
33009
|
+
"schema": {
|
|
33010
|
+
"type": "string",
|
|
33011
|
+
"enum": [
|
|
33012
|
+
"0",
|
|
33013
|
+
"1"
|
|
33014
|
+
]
|
|
33015
|
+
},
|
|
33016
|
+
"description": "Paged only: `1` attaches each row's open issues in any view (the review view always carries them)."
|
|
32293
33017
|
}
|
|
32294
33018
|
],
|
|
32295
33019
|
"responses": {
|
|
32296
33020
|
"200": {
|
|
32297
|
-
"description": "The matching contracts.",
|
|
33021
|
+
"description": "The matching contracts; one page with `total` when paged.",
|
|
32298
33022
|
"content": {
|
|
32299
33023
|
"application/json": {
|
|
32300
33024
|
"schema": {
|
|
@@ -32305,11 +33029,24 @@
|
|
|
32305
33029
|
"items": {
|
|
32306
33030
|
"$ref": "#/components/schemas/ContractsListItem"
|
|
32307
33031
|
}
|
|
33032
|
+
},
|
|
33033
|
+
"total": {
|
|
33034
|
+
"type": "integer",
|
|
33035
|
+
"description": "Paged only: rows of the view after the filters."
|
|
33036
|
+
},
|
|
33037
|
+
"page": {
|
|
33038
|
+
"type": "integer"
|
|
33039
|
+
},
|
|
33040
|
+
"limit": {
|
|
33041
|
+
"type": "integer"
|
|
32308
33042
|
}
|
|
32309
33043
|
}
|
|
32310
33044
|
}
|
|
32311
33045
|
}
|
|
32312
33046
|
}
|
|
33047
|
+
},
|
|
33048
|
+
"400": {
|
|
33049
|
+
"$ref": "#/components/responses/BadRequest"
|
|
32313
33050
|
}
|
|
32314
33051
|
}
|
|
32315
33052
|
}
|
|
@@ -34303,7 +35040,27 @@
|
|
|
34303
35040
|
"minimum": 1,
|
|
34304
35041
|
"maximum": 5000,
|
|
34305
35042
|
"default": 200
|
|
34306
|
-
}
|
|
35043
|
+
},
|
|
35044
|
+
"description": "Rows per page."
|
|
35045
|
+
},
|
|
35046
|
+
{
|
|
35047
|
+
"name": "offset",
|
|
35048
|
+
"in": "query",
|
|
35049
|
+
"schema": {
|
|
35050
|
+
"type": "integer",
|
|
35051
|
+
"minimum": 0,
|
|
35052
|
+
"default": 0
|
|
35053
|
+
},
|
|
35054
|
+
"description": "The first row of the page (0-based). Wins over `page` when both are given."
|
|
35055
|
+
},
|
|
35056
|
+
{
|
|
35057
|
+
"name": "page",
|
|
35058
|
+
"in": "query",
|
|
35059
|
+
"schema": {
|
|
35060
|
+
"type": "integer",
|
|
35061
|
+
"minimum": 1
|
|
35062
|
+
},
|
|
35063
|
+
"description": "The page to return (1-based, `limit` rows each); an alternative to `offset`."
|
|
34307
35064
|
},
|
|
34308
35065
|
{
|
|
34309
35066
|
"name": "scope",
|
|
@@ -34316,11 +35073,29 @@
|
|
|
34316
35073
|
],
|
|
34317
35074
|
"default": "partners"
|
|
34318
35075
|
}
|
|
35076
|
+
},
|
|
35077
|
+
{
|
|
35078
|
+
"name": "document_id",
|
|
35079
|
+
"in": "query",
|
|
35080
|
+
"schema": {
|
|
35081
|
+
"type": "string",
|
|
35082
|
+
"format": "uuid"
|
|
35083
|
+
},
|
|
35084
|
+
"description": "Only the parties of the row(s) this document belongs to."
|
|
35085
|
+
},
|
|
35086
|
+
{
|
|
35087
|
+
"name": "contract_id",
|
|
35088
|
+
"in": "query",
|
|
35089
|
+
"schema": {
|
|
35090
|
+
"type": "string",
|
|
35091
|
+
"format": "uuid"
|
|
35092
|
+
},
|
|
35093
|
+
"description": "Only the parties of this contract: the row(s) sharing the most of its documents (a framework document shared with other contracts does not pull in their parties). Not a UUID is a 400."
|
|
34319
35094
|
}
|
|
34320
35095
|
],
|
|
34321
35096
|
"responses": {
|
|
34322
35097
|
"200": {
|
|
34323
|
-
"description": "
|
|
35098
|
+
"description": "One page of the parties.",
|
|
34324
35099
|
"content": {
|
|
34325
35100
|
"application/json": {
|
|
34326
35101
|
"schema": {
|
|
@@ -34328,12 +35103,20 @@
|
|
|
34328
35103
|
"properties": {
|
|
34329
35104
|
"total": {
|
|
34330
35105
|
"type": "integer",
|
|
34331
|
-
"description": "Parties matching the filters, before
|
|
35106
|
+
"description": "Parties matching the filters, before paging."
|
|
34332
35107
|
},
|
|
34333
35108
|
"needs_attention": {
|
|
34334
35109
|
"type": "integer",
|
|
34335
35110
|
"description": "Parties in scope (before the other filters) that need a person."
|
|
34336
35111
|
},
|
|
35112
|
+
"offset": {
|
|
35113
|
+
"type": "integer",
|
|
35114
|
+
"description": "The first row of this page."
|
|
35115
|
+
},
|
|
35116
|
+
"limit": {
|
|
35117
|
+
"type": "integer",
|
|
35118
|
+
"description": "Rows per page."
|
|
35119
|
+
},
|
|
34337
35120
|
"data": {
|
|
34338
35121
|
"type": "array",
|
|
34339
35122
|
"items": {
|
|
@@ -35886,7 +36669,7 @@
|
|
|
35886
36669
|
"get": {
|
|
35887
36670
|
"operationId": "listCustomsDeclarationIssues",
|
|
35888
36671
|
"summary": "Worklist of orders with a failing check",
|
|
35889
|
-
"description": "The orders of a pipeline that are not ready, each with the checks that failed and the fields concerned, and the scored fields whose extracted value differs from the filed declaration or is missing. When `pipeline_id` is omitted, the pipeline is chosen as for `GET /v1/customs-declaration/declarations`.",
|
|
36672
|
+
"description": "The orders of a pipeline that are not ready, each with the checks that failed and the fields concerned, and the scored fields whose extracted value differs from the filed declaration or is missing. When `pipeline_id` is omitted, the pipeline is chosen as for `GET /v1/customs-declaration/declarations`. The worklist is built from at most `customs_declaration.max_records` orders: `read` says how many were read, `available` how many the pipeline holds for the key, and `truncated` is true when orders past the cap were not checked.",
|
|
35890
36673
|
"tags": [
|
|
35891
36674
|
"Customs Declaration"
|
|
35892
36675
|
],
|
|
@@ -59371,6 +60154,18 @@
|
|
|
59371
60154
|
}
|
|
59372
60155
|
}
|
|
59373
60156
|
},
|
|
60157
|
+
"read": {
|
|
60158
|
+
"type": "integer",
|
|
60159
|
+
"description": "Orders read and checked."
|
|
60160
|
+
},
|
|
60161
|
+
"available": {
|
|
60162
|
+
"type": "integer",
|
|
60163
|
+
"description": "Orders the pipeline holds for the key; more than `read` only past the cap."
|
|
60164
|
+
},
|
|
60165
|
+
"truncated": {
|
|
60166
|
+
"type": "boolean",
|
|
60167
|
+
"description": "True when `read` < `available`: orders past the cap are not in the worklist."
|
|
60168
|
+
},
|
|
59374
60169
|
"data": {
|
|
59375
60170
|
"type": "array",
|
|
59376
60171
|
"items": {
|
|
@@ -59614,6 +60409,10 @@
|
|
|
59614
60409
|
"type": "string",
|
|
59615
60410
|
"nullable": true,
|
|
59616
60411
|
"description": "The title from the chart's latest reading; absent or null for a chart never read."
|
|
60412
|
+
},
|
|
60413
|
+
"reason": {
|
|
60414
|
+
"type": "string",
|
|
60415
|
+
"description": "Optional engineering text explaining why a found chart is not ready, from its scan or latest reading that returned no values. Absent for ready charts and when no reason was stored. Clients map recognized codes to localized sentences and use a generic fallback for unknown codes; raw text is not display copy."
|
|
59617
60416
|
}
|
|
59618
60417
|
}
|
|
59619
60418
|
},
|
|
@@ -59787,6 +60586,30 @@
|
|
|
59787
60586
|
"$ref": "#/components/schemas/ChartToDataFoundChart"
|
|
59788
60587
|
}
|
|
59789
60588
|
},
|
|
60589
|
+
"pictures": {
|
|
60590
|
+
"type": "array",
|
|
60591
|
+
"description": "Optional unread figure-sized picture diagnostics, grouped by page. Omitted when the scan has none or an older scan stored no picture diagnostics. These are not chart assets or claims.",
|
|
60592
|
+
"items": {
|
|
60593
|
+
"type": "object",
|
|
60594
|
+
"required": [
|
|
60595
|
+
"page_number",
|
|
60596
|
+
"reasons"
|
|
60597
|
+
],
|
|
60598
|
+
"properties": {
|
|
60599
|
+
"page_number": {
|
|
60600
|
+
"type": "integer",
|
|
60601
|
+
"minimum": 1
|
|
60602
|
+
},
|
|
60603
|
+
"reasons": {
|
|
60604
|
+
"type": "array",
|
|
60605
|
+
"items": {
|
|
60606
|
+
"type": "string"
|
|
60607
|
+
},
|
|
60608
|
+
"description": "One engineering reason per unread picture, including the refusal code and explanation when available. Clients map recognized codes to localized sentences and fall back generically for unknown codes."
|
|
60609
|
+
}
|
|
60610
|
+
}
|
|
60611
|
+
}
|
|
60612
|
+
},
|
|
59790
60613
|
"diagrams": {
|
|
59791
60614
|
"type": "array",
|
|
59792
60615
|
"items": {
|